1 2002-12-23 Adam Fedor <fedor@gnu.org>
3 * maint.c (maintenance_demangle): Add switch to demangle
4 ObjC language symbols as well.
6 2002-12-23 Adam Fedor <fedor@gnu.org>
8 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
9 last argument from complaint function call.
11 2002-12-20 Kevin Buettner <kevinb@redhat.com>
13 * exec.c (print_section_info): Add FIXME comments regarding format
16 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
18 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
19 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
21 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
23 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
25 2002-12-23 David Carlton <carlton@math.stanford.edu>
27 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
28 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
29 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
30 information associated to a minsym, not lookup_symbol.
32 2002-12-21 Mark Kettenis <kettenis@gnu.org>
34 * x86-64-tdep.h (x86_64_init_abi): New prototype.
35 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
36 (x86_64_init_abi): Make non-static. Set number of pseudo
38 (x86_64_gdbarch_init): Remove function.
39 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
40 Remove code dealing with dissambly.
41 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
42 (_initialize_x86_64_linux_tdep): New function.
43 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
46 2002-12-14 Mark Kettenis <kettenis@gnu.org>
48 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
49 (struct gdb_osabi_handler): Remove member `arch'. Add member
51 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
52 construct a `struct bfd_arch_info' and store it in the `struct
53 gdb_osabi_handler' that is created.
54 (gdbarch_init_osabi): Check for compatibility based on machine
55 type and architecture.
56 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
58 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
59 second argument in call to gdbarch_register_osabi.
60 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
61 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
62 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
63 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
64 * arm-tdep.c (_initialize_arm_tdep): Likewise.
65 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
66 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
67 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
68 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
69 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
70 * i386-tdep.c (_initialize_i386_tdep): Likewise.
71 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
72 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
73 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
74 _initialize_i386bsd_tdep and updated likewise.
75 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
76 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
77 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
78 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
79 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
80 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
81 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
82 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
83 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
84 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
86 2002-12-20 Kevin Buettner <kevinb@redhat.com>
88 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
89 DT_MIPS_RLD_MAP case for 64-bit targets.
91 2002-12-20 Kevin Buettner <kevinb@redhat.com>
93 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
94 ``temp_saved_regs'', not the pointer or other storage contiguous
97 2002-12-20 Kevin Buettner <kevinb@redhat.com>
99 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
100 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
101 (mips_linux_get_longjmp_target): Delete declarations.
102 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
103 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
104 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
105 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
106 (mips_linux_get_longjmp_target)
107 (mips_linux_svr4_fetch_link_map_offsets): Make static.
108 (mips_linux_init_abi): New function.
109 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
111 2002-12-19 Keith Seitz <keiths@redhat.com>
113 patch committed by Elena Zannoni <ezannoni@redhat.com>
114 * thread.c (do_captured_list_thread_ids): Call prune_threads and
115 target_find_new_threads. Fix for PR mi/669.
117 2002-12-19 David Carlton <carlton@math.stanford.edu>
119 * linespec.c (decode_line_1): Move code into decode_all_digits.
120 (decode_all_digits): New function.
122 2002-12-19 Kevin Buettner <kevinb@redhat.com>
124 * exec.c (print_section_info): Select a format string to use with
125 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
127 2002-12-18 Andrew Cagney <ac131313@redhat.com>
129 * frame.c (deprecated_update_current_frame_pc_hack): Replace
130 deprecated_update_current_frame_pc_hack.
131 (deprecated_update_frame_base_hack): New function.
132 * frame.h (deprecated_update_frame_pc_hack): Replace
133 (deprecated_update_frame_base_hack): Declare.
134 * infrun.c (normal_stop): Update.
136 2002-12-18 Andrew Cagney <ac131313@redhat.com>
138 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
139 frame_extra_info_zalloc.
140 (rs6000_frame_args_address): Use get_frame_extra_info.
141 (frame_get_saved_regs): Use get_frame_saved_regs.
142 (frame_initial_stack_address): Use get_frame_saved_regs and
143 get_frame_extra_info.
144 (frame_initial_stack_address): Use get_frame_extra_info.
146 2002-12-17 Kevin Buettner <kevinb@redhat.com>
148 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
150 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
151 checks for r3900_regnames[].
153 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
155 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
157 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
159 2002-12-17 David Carlton <carlton@math.stanford.edu>
161 * symtab.c (lookup_partial_symbol): Don't search past the end of
164 2002-12-17 Andrew Cagney <ac131313@redhat.com>
166 * stack.c (frame_info): Use get_frame_saved_regs.
167 * breakpoint.c (until_break_command): Use get_frame_pc.
169 2002-12-16 Kevin Buettner <kevinb@redhat.com>
171 * buildsym.c (block_end_complaint, anon_block_end_complaint)
172 (innerblock_complaint, innerblock_anon_complaint)
173 (blockvector_complaint): Delete deprecated complaint structs.
174 (finish_block, make_blockvector, end_symtab): Replace calls
175 to complain() with calls to complaint().
176 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
177 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
178 (unexpected_type_complaint, bad_sclass_complaint)
179 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
180 Delete deprecated complaint structs.
181 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
182 Replace calls to complain() with calls to complaint().
183 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
184 (unknown_symtype_complaint, unknown_symchar_complaint)
185 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
186 (lbrac_mismatch_complaint, repeated_header_complaint)
187 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
188 Delete deprecated complaint structs.
189 (unknown_symtype_complaint, lbrac_mismatch_complaint)
190 (repeated_header_complaint)
191 (function_outside_compiliation_unit_complaint): New functions.
192 (add_old_header_file, find_corresponding_bincl_psymtab)
193 (set_namestring, find_stab_function_addr, read_dbx_symtab)
194 (process_one_symbol): Replace calls to complain() with, possibly
195 indirect, calls to complaint().
196 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
197 (unknown_attribute_form, unknown_attribute_length)
198 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
199 (const_ignored, botched_modified_type, op_deref2, op_deref4)
200 (basereg_not_handled, dup_user_type_allocation)
201 (dup_user_type_definition, missing_tag, bad_array_element_type)
202 (subscript_data_items, unhandled_array_subscript_format)
203 (unknown_array_subscript_format, not_row_major)
204 (missing_at_name): Delete deprecated complaint structs.
205 (bad_die_ref_complaint, unknown_attribute_form_complaint)
206 (dup_user_type_definition_complaint)
207 (bad_array_element_type_complaint): New functions.
208 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
209 (decode_subscript_data_item, dwarf_read_array_type)
210 (read_tag_string_type, read_subroutine_type, read_func_scope)
211 (locval, scan_partial_symbols, decode_modified_type)
212 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
213 (attribute_size): Replace calls to complain() with, possibly
214 indirect, calls to complaint().
215 * elfread.c (section_info_complaint, section_info_dup_complaint)
216 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
217 Delete deprecated complaint structs.
218 (elf_symtab_read, elfstab_offset_sections): Replace calls to
219 complain() with calls to complaint().
220 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
222 (stub_noname_complaint): New function.
223 (check_typedef, add_mangled_type): Replace calls to complain()
224 with calls to complaint().
225 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
226 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
227 (hpread_unhandled_type_complaint, hpread_struct_complaint)
228 (hpread_array_complaint, hpread_type_lookup_complaint)
229 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
230 (hpread_unhandled_common_complaint)
231 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
232 struct definitions and declarations.
233 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
234 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
235 Replace calls to complain() with, possibly indirect, calls to
237 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
239 * mdebugread.c (bad_file_number_complaint, index_complaint)
240 (aux_index_complaint, block_index_complaint)
241 (unknown_ext_complaint, unknown_sym_complaint)
242 (unknown_st_complaint, block_overflow_complaint)
243 (basic_type_complaint, unknown_type_qual_complaint)
244 (array_index_type_complaint, bad_tag_guess_complaint)
245 (block_member_complaint, stEnd_complaint)
246 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
247 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
248 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
249 (bad_continued_complaint, bad_rfd_entry_complaint)
250 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
251 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
252 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
253 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
255 (index_complaint, unknown_ext_complaint, basic_type_complaint)
256 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
257 (unexpected_type_code_complaint)
258 (function_outside_compilation_unit_complaint): New functions.
259 (parse_symbol, parse_type, upgrade_type, parse_procedure)
260 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
261 Replace calls to complain() with, possibly indirect calls to
263 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
264 Delete deprecated complaint structs.
265 (lookup__objc_class, lookup_child_selector): Replace complain()
267 * remote-vx.c (cant_contact_target): Delete deprecated complaint
269 (vx_lookup_symbol): Replace complain() with complaint().
270 * stabsread.c (invalid_cpp_abbrev_complaint)
271 (invalid_cpp_type_complaint, member_fn_complaint)
272 (const_vol_complaint, error_type_complaint)
273 (invalid_member_complaint, range_type_base_complaint)
274 (reg_value_complaint, vtbl_notfound_complaint)
275 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
276 (unresolved_sym_chain_complaint, stabs_general_complaint)
277 (lrs_general_complaint, multiply_defined_struct): Delete
278 deprecated complaint structs.
279 (invalid_cpp_abbrev_complaint, ref_value_complaint)
280 (stabs_general_complaint, lrs_general_complaint)
281 (msg_unknown_complaint): New functions.
282 (dbx_lookup_type, read_cfront_baseclasses)
283 (read_cfront_member_functions, resolve_symbol_reference)
284 (define_symbol, resolve_live_range, add_live_range, read_type)
285 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
286 (read_one_struct_field, read_baseclasses, read_tilde_fields)
287 (read_cfront_static_fields, attach_fields_to_type)
288 (complain_about_struct_wipeout, read_range_type)
289 (common_block_start, common_block_end, cleanup_undefined_types)
290 (scan_file_globals): Replace complain() with complaint().
291 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
292 Delete deprecated complaint struct declarations.
293 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
294 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
295 (bf_not_found_complaint, ef_complaint, eb_complaint)
296 (function_outside_compilation_unit_complaint): New functions.
297 (record_include_begin, record_include_end, enter_line_range)
298 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
299 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
300 complain() with complaint().
302 2002-12-16 Andrew Cagney <ac131313@redhat.com>
304 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
305 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
306 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
307 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
308 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
309 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
310 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
311 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
312 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
313 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
314 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
315 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
316 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
317 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
318 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
319 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
320 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
321 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
322 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
323 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
324 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
325 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
326 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
327 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
328 * config/m88k/xm-dgux.h: Delete.
329 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
330 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
331 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
332 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
333 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
334 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
335 * ch-valprint.c: Delete.
337 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
339 * infrun.c (handle_inferior_event): Rearrange code to resume if
340 no catchpoint triggers for an event.
342 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
344 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
345 and TARGET_WAITKIND_VFORKED cases.
347 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
349 * infrun.c (handle_inferior_event): Assume that catchpoints
350 are not affected by DECR_PC_AFTER_BREAK.
352 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
354 * target.c (update_current_target): Don't inherit DONT_USE.
355 * target.h (struct target_ops): Remove DONT_USE.
356 (target_next): Remove macro.
358 2002-12-15 Mark Kettenis <kettenis@gnu.org>
360 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
362 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
364 * arm-tdep.c (convert_from_extended): New argument to hold the
365 type of floating point result we want to convert to. Make input
366 argument const. Fix all callers.
367 (convert_to_extended): Similarly.
368 (arm_extract_return_value): Now takes a regcache argument. Change
369 code to use regcache accessor functions. Correctly extract
370 smaller-than-word results on big-endian machines.
371 (arm_store_return_value): Now takes a regcache argument. Change
372 code to use regcache accessor functions. Correctly zero/sign extend
373 smaller than word results before storing into r0.
374 (arm_gdbarch_init): Register new-style extract_return_value and
375 store_return_value functions.
377 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
379 * thread-db.c (thread_from_lwp): Uniquify error msg.
380 (lwp_from_thread): Ditto.
381 (check_event): Ditto.
382 (find_new_threads_callback): Ditto.
383 (thread_db_pid_to_str): Ditto.
385 2002-12-13 Andrew Cagney <ac131313@redhat.com>
387 * frame.h (get_frame_saved_regs): Declare.
388 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
390 * frame.c (get_frame_saved_regs): New function.
391 (frame_saved_regs_zalloc): Return the allocated saved_regs.
393 2002-12-13 Andrew Cagney <ac131313@redhat.com>
395 * frame.c (deprecated_update_current_frame_pc_hack): New
397 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
398 * infrun.c (normal_stop): Use said function instead of directly
399 modifying the frame's PC.
401 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
403 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
405 2002-12-13 Kevin Buettner <kevinb@redhat.com>
407 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
408 config/mips/tm-irix6.h (NUM_REGS): Delete.
409 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
410 (temp_saved_regs): Declare as a pointer rather than an array.
411 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
412 that ``temp_saved_regs'' has storage allocated to it and that
413 it's the correct size.
415 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
417 * defs.h (init_last_source_visited): New prototype.
419 * source.c (add_path): New function that adds to a specified path.
420 (mod_path): Change to call add_path.
421 (init_last_source_visited): New function to allow interfaces to
422 initialize static variable: last_source_visited. Part of fix
424 * Makefile.in: Add support for mi/mi-cmd-env.c.
426 2002-12-13 Andrew Cagney <ac131313@redhat.com>
428 * frame.h (frame_id_unwind): Declare.
429 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
431 (frame_id_unwind_ftype): Declare.
432 * frame.c (frame_id_unwind): New function.
433 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
434 (create_new_frame, get_prev_frame): Pass id_unwind to
436 (frame_saved_regs_id_unwind): New function.
437 (frame_saved_regs_id_unwind): New function.
438 * dummy-frame.c (dummy_frame_id_unwind): New function.
439 (struct dummy_frame): Add field id.
440 (generic_push_dummy_frame): Initialize `id'.
441 * dummy-frame.h (dummy_frame_id_unwind): Declare.
443 2002-12-13 Andrew Cagney <ac131313@redhat.com>
445 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
446 pass that to set_momentary_breakpoint. Move comments to where they
448 * frame.h (set_current_frame): Delete declaration.
449 * frame.c (set_current_frame): Delete function.
451 2002-12-13 Andrew Cagney <ac131313@redhat.com>
453 * frame.c (frame_extra_info_zalloc): New function.
454 * frame.h (frame_extra_info_zalloc): Declare.
456 2002-12-13 Joel Brobecker <brobecker@gnat.com>
458 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
459 in the previous prototype change to set_momentary_breakpoint.
461 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
463 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
465 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
466 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
467 (stop_stepping): Remove outdated check for child vfork events.
469 2002-12-12 Andrew Cagney <ac131313@redhat.com>
471 * GDB 5.3 released from gdb_5_3-branch.
473 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
475 * corelow.c (init_core_ops): Delete references to to_require_attach
476 and to_require_detach.
477 * exec.c (init_exec_ops): Likewise.
478 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
479 hppa_require_detach directly.
480 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
481 * inftarg.c (child_detach): Remove.
482 (child_detach_from_process): Rename to child_detach, remove
484 (child_attach): Remove.
485 (child_attach_to_process): Rename to child_attach, remove after_fork
487 (init_child_ops): Delete references to to_require_attach
488 and to_require_detach.
489 * infttrace.c (hppa_require_attach): Update comment.
490 * target.c (cleanup_target, update_current_target)
491 (init_dummy_target, setup_target_debug): Delete references to
492 to_require_attach and to_require_detach.
493 (find_default_require_detach, find_default_require_attach)
494 (debug_to_require_attach, debug_to_require_detach): Remove
496 * target.h (struct target_ops): Remove to_require_attach
497 and to_require_detach.
498 (target_require_attach, target_require_detach): Delete macros.
499 (find_default_require_detach, find_default_require_attach): Delete
501 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
503 2002-12-11 Andrew Cagney <ac131313@redhat.com>
505 * frame.c (get_frame_extra_info): New function.
506 * frame.h (get_frame_extra_info): Declare.
508 2002-12-11 Andrew Cagney <ac131313@redhat.com>
510 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
511 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
512 with `struct frame_id'.
513 (set_longjmp_resume_breakpoint): Ditto.
514 * infrun.c (handle_inferior_event): Update.
515 * breakpoint.c (watch_command_1, until_break_command): Update.
516 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
517 (handle_inferior_event, step_over_function): Update.
518 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
519 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
520 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
521 * infcmd.c (finish_command, run_stack_dummy): Update.
523 2002-12-11 Kevin Buettner <kevinb@redhat.com>
525 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
526 (dwarf2_non_const_array_bound_ignored)
527 (dwarf2_missing_line_number_section)
528 (dwarf2_statement_list_fits_in_line_number_section)
529 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
530 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
531 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
532 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
533 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
534 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
535 (dwarf2_missing_member_fn_type_complaint)
536 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
537 (dwarf2_const_value_length_mismatch)
538 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
539 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
540 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
541 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
542 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
543 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
544 complaints using deprecated struct..
545 (dwarf2_non_const_array_bound_ignored_complaint)
546 (dwarf2_complex_location_expr_complaint)
547 (dwarf2_unsupported_at_frame_base_complaint)
548 (dwarf2_const_value_length_mismatch_complaint)
549 (dwarf2_macros_too_long_complaint)
550 (dwarf2_macro_malformed_definition_complaint)
551 (dwarf2_invalid_attrib_class_complaint): New functions.
552 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
553 (read_structure_scope, read_array_type, read_common_block)
554 (read_tag_pointer_type, read_base_type, read_partial_die)
555 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
556 (new_symbol, dwarf2_const_value, read_type_die)
557 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
558 (parse_macro_definition, dwarf_decode_macros): Replace calls to
559 complain() with, possibly indirect, calls to complaint().
561 2002-12-11 Andrew Cagney <cagney@redhat.com>
563 * frame.c (deprecated_get_frame_saved_regs): Rename
564 get_frame_saved_regs.
565 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
566 * sparc-tdep.c: Update.
567 * hppa-tdep.c: Update.
568 * h8500-tdep.c: Update.
570 2002-12-11 Kevin Buettner <kevinb@redhat.com>
572 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
573 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
574 ``char *'' for return and parameter types.
575 * gdbarch.h, gdbarch.c: Regenerate.
576 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
577 return type from ``char *'' to ``const char *''.
578 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
581 2002-12-11 Mark Kettenis <kettenis@gnu.org>
583 * i386-tdep.c: Include "dummy-frame.h".
584 (i386_frame_chain, i386_frame_saved_pc): Replace
585 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
586 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
588 2002-12-10 Andrew Cagney <cagney@redhat.com>
590 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
591 Change to a function with predicate.
592 * gdbarch.h, gdbarch.c: Re-generate.
593 * frame.c (get_prev_frame): Update. Test
594 DEPRECATED_INIT_FRAME_PC_P.
595 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
596 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
597 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
598 * alpha-tdep.c (alpha_gdbarch_init): Update.
599 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
600 * mips-tdep.c (mips_gdbarch_init): Update.
601 * i386-interix-tdep.c (i386_interix_init_abi): Update.
602 * arm-tdep.c: Update comments.
603 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
604 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
605 * frv-tdep.c (frv_gdbarch_init): Ditto.
606 * x86-64-tdep.c (x86_64_init_abi): Ditto.
607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
608 * s390-tdep.c (s390_gdbarch_init): Ditto.
609 * v850-tdep.c (v850_gdbarch_init): Ditto.
610 * vax-tdep.c (vax_gdbarch_init): Ditto.
611 * sh-tdep.c (sh_gdbarch_init): Ditto.
612 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
614 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
616 * i386-tdep.c (i386_gdbarch_init): Ditto.
617 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
618 * cris-tdep.c (cris_gdbarch_init): Ditto.
619 * avr-tdep.c (avr_gdbarch_init): Ditto.
620 * arm-tdep.c (arm_gdbarch_init): Ditto.
621 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
622 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
624 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
626 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
628 * hppah-nat.c (saved_vfork_pid): Add.
629 (child_post_follow_vfork): Remove.
630 (child_follow_fork): New function.
631 (child_wait): Call detach_breakpoints after receiving the child vfork.
632 Call child_resume directly instead of going through resume ().
633 Make sure we have the exec before reporting the vfork.
634 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
635 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
636 (follow_fork): New function. Call target_follow_fork.
637 (follow_inferior_reset_breakpoints): New function broken out from
638 old follow_inferior_fork.
639 (resume): Remove hack to follow exec after vfork.
640 * inftarg.c (child_post_follow_vfork): Remove.
641 (child_follow_fork): New function.
642 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
643 * target.c (cleanup_target): Replace to_post_follow_vfork with
645 (update_current_target): Likewise.
646 (setup_target_debug): Likewise.
647 (debug_to_post_follow_vfork): Remove.
648 (debug_to_follow_fork): New function.
649 * target.h (struct target_ops): Replace to_post_folow_vfork with
651 (child_post_follow_vfork): Remove prototype.
652 (child_follow_fork): Add prototype.
653 (target_post_follow_vfork): Remove macro.
654 (target_follow_fork): Add macro.
656 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
658 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
659 (child_post_follow_vfork): Cancel pending exec event if we follow
661 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
662 events have been processed. Return a fake TARGET_WAITKIND_EXECD
663 event at the following wait call if necessary.
664 * infrun.c (follow_vfork): Don't follow_exec here.
665 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
666 case about HP/UX 10.20. Remove code pushed down to
667 hppah-nat.c:child_wait.
668 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
669 vfork_in_flight is set.
671 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
673 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
674 for the parent's fork event.
675 * infrun.c (handle_inferior_event): Only expect one fork event.
676 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
677 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
679 2002-12-10 Andrew Cagney <ac131313@redhat.com>
681 * PROBLEMS: Delete reference to PR gdb/725.
683 * MAINTAINERS (gdb.c++): Add David Carlton.
685 2002-12-09 David Carlton <carlton@math.stanford.edu>
687 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
688 * cli/cli-cmds.c: Ditto.
690 2002-12-09 Andrew Cagney <cagney@redhat.com>
692 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
693 function address in <>.
694 * gdbarch.c: Re-generate.
696 2002-12-09 David Carlton <carlton@math.stanford.edu>
698 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
700 2002-12-09 David Carlton <carlton@math.stanford.edu>
702 * linespec.c (symtab_from_filename): New function.
703 (decode_line_1): Move code into symtab_from_filename.
705 2002-12-09 Kevin Buettner <kevinb@redhat.com>
707 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
709 2002-12-07 Andrew Cagney <ac131313@redhat.com>
711 * f-valprint.c (info_common_command): Use get_frame_pc.
712 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
713 * ax-gdb.c (agent_command): Ditto.
714 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
715 (rs6000_pop_frame): Ditto.
716 (rs6000_frameless_function_invocation): Ditto.
717 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
718 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
719 * macroscope.c (default_macro_scope): Ditto.
720 * stack.c (print_frame_info_base): Ditto.
721 (print_frame, frame_info, print_frame_label_vars): Ditto.
722 (return_command, func_command, get_frame_language): Ditto.
723 * infcmd.c (finish_command): Ditto.
724 * dummy-frame.c (cached_find_dummy_frame): Ditto.
725 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
726 (break_at_finish_at_depth_command_1): Ditto.
727 (break_at_finish_command_1): Ditto.
728 (until_break_command, get_catch_sals): Ditto.
729 * blockframe.c (func_frame_chain_valid): Ditto.
730 (frameless_look_for_prologue): Ditto.
731 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
733 2002-12-08 Andrew Cagney <ac131313@redhat.com>
735 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
736 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
738 2002-12-08 Andrew Cagney <ac131313@redhat.com>
740 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
742 * gdbarch.h, gdbarch.c: Re-generate.
743 * frame.c (get_prev_frame): Explictly assign prev's pc with value
744 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
746 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
747 declaration to a function returning a CORE_ADDR.
748 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
749 * arch-utils.c (init_frame_pc_noop): Return the PC value.
750 (init_frame_pc_default): Ditto.
751 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
752 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
753 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
754 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
755 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
756 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
758 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
759 to init_frame_pc_noop.
760 (i386_interix_init_frame_pc): Delete function.
761 * z8k-tdep.c (init_frame_pc): Delete function.
762 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
763 (INIT_FRAME_PC_FIRST): Ditto.
764 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
765 (INIT_FRAME_PC_FIRST): Ditto.
766 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
767 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
769 (INIT_FRAME_PC_FIRST): Convert to an expression.
770 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
772 2002-12-08 Andrew Cagney <ac131313@redhat.com>
774 * blockframe.c: Use get_frame_base instead of directly accessing
775 the `struct frame_info' member frame.
776 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
777 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
779 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
781 * Makefile.in (readline_h): Define.
782 (completer.o): Depend on readline_h.
784 (event-top.o): Ditto.
791 (tracepoint.o): Ditto.
794 (tui-hooks.o): Ditto.
797 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
799 More cleanup from import of readline 4.3.
800 * completer.h (complete_line, readline_line_completion_function):
802 (line_completion_function): Removed, not used outside of completer.c.
803 * completer.c (readline_line_completion_function,
804 complete_function, line_completion_function): Use const for first
806 (line_completion_function): Make static.
807 (filename_completer): filename_completion_function is now called
808 rl_filename_completion_function
809 * corelow.c: Include <readline/readline.h>.
815 * top.c (init_main): No need to coerce
816 readline_line_completion_function anymore.
817 * cli/cli-dump.c: Include <readline/readline.h>.
819 2002-12-08 Andrew Cagney <ac131313@redhat.com>
821 * stack.c (frame_info): Use get_prev_frame.
822 * blockframe.c (frame_address_in_block): Ditto.
823 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
824 (rs6000_frameless_function_invocation): Ditto.
825 (rs6000_frame_saved_pc): Ditto.
826 (rs6000_frame_chain): Ditto.
827 * arch-utils.c (init_frame_pc_default): Ditto.
829 2002-12-08 Andrew Cagney <ac131313@redhat.com>
831 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
832 Delete redundant definition.
834 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
836 Import of readline 4.3:
837 * cli/cli-cmds.c: Include readline/tilde.h.
838 * cli/cli-setshow.c: Ditto.
839 * defs.h: Don't declare tilde_expand anymore, since readline
842 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
844 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
845 -Werror on this file.
847 2002-12-07 Andrew Cagney <ac131313@redhat.com>
849 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
851 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
852 * gdbarch.c: Regenerate.
854 2002-12-06 Andrew Cagney <ac131313@redhat.com>
856 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
857 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
858 provide a default value.
859 * gdbarch.h, gdbarch.c: Regenerate.
860 * frame.c (get_prev_frame): Update. Check
861 DEPRECATED_INIT_FRAME_PC_FIRST_P.
862 * s390-tdep.c (s390_gdbarch_init): Update.
863 * mips-tdep.c (mips_gdbarch_init): Update.
864 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
865 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
866 * alpha-tdep.c (alpha_gdbarch_init): Update.
868 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
870 * ia64-linux-nat.c: Include gdb_string.h.
871 * alpha-nat.c: Ditto.
872 * ppc-linux-nat.c: Ditto.
873 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
876 2002-12-05 Andrew Cagney <ac131313@redhat.com>
878 * gdbthread.h: Include "frame.h".
879 (struct thread_info): Replace step_frame_address with
881 * inferior.h: Include "frame.h".
882 (step_frame_id): Replace external variable step_frame_address.
883 * gdbthread.h (save_infrun_state): Replace step_frame_address
884 parameter with step_frame_id parameter.
885 (load_infrun_state): Ditto.
886 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
887 * infcmd.c (step_frame_id, step_1, step_once): Update.
888 * thread.c (load_infrun_state, save_infrun_state): Update.
889 * infrun.c (clear_proceed_status, save_inferior_status): Update.
890 (handle_inferior_event, step_over_function): Update.
891 (normal_stop, context_switch, restore_inferior_status): Update.
892 (struct inferior_status): Replace step_frame_address with
895 2002-12-05 David Carlton <carlton@math.stanford.edu>
897 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
898 DW_TAG_member as well as a declaration as being a C++ static data
900 (read_structure_scope): Combine tests for DW_TAG_member and
903 2002-12-05 David Carlton <carlton@math.stanford.edu>
905 * linespec.c (decode_compound): New function.
906 (decode_line_1): Move code into decode_compound.
908 2002-12-05 David Carlton <carlton@math.stanford.edu>
910 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
912 (lookup_symbol_aux): Do the 'field_of_this' check before checking
913 the static block. See PR gdb/804.
915 2002-12-05 David Carlton <carlton@math.stanford.edu>
917 * symtab.c (lookup_symbol_aux_block): New function.
918 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
920 2002-12-05 Andrew Cagney <ac131313@redhat.com>
922 * gdbarch.sh: Dump the predicate function and macro values.
923 (read): Print error on standard error.
924 * gdbarch.c: Regenerate.
926 2002-12-04 Kevin Buettner <kevinb@redhat.com>
928 * Makefile.in (mips_tdep_h): Define.
929 (mips-tdep.o): Add mips_tdep_h to dependency list.
930 * mips-tdep.h: New file.
931 * mips-tdep.c (mips-tdep.h): Include.
932 (enum mips_abi): Move to mips-tdep.h.
933 (mips_abi): New function.
935 2002-12-04 David Carlton <carlton@math.stanford.edu>
937 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
939 2002-12-04 David Carlton <carlton@math.stanford.edu>
941 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
943 (lookup_symbol_aux_minsyms): New function.
945 2002-12-04 J. Brobecker <brobecker@gnat.com>
947 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
949 2002-12-04 J. Brobecker <brobecker@gnat.com>
951 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
952 which is an obsolete macro name.
954 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
956 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
957 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
959 2002-12-03 H.J. Lu (hjl@gnu.org)
961 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
962 (create_breakpoints): Make sure the addr_string field is not
965 2002-12-03 Andrew Cagney <ac131313@redhat.com>
967 * sparc-nat.c (fetch_inferior_registers)
968 (store_inferior_registers): Add comment on problem of LWP vs
971 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
972 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
973 (lin_lwp_store_registers): Remove.
974 (init_lin_lwp_ops): Use fetch_inferior_registers
975 and store_inferior_registers directly.
976 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
977 (store_inferior_registers): Likewise.
980 2002-12-03 Andrew Cagney <ac131313@redhat.com>
982 * frame.h (get_frame_id): Convert to a function.
983 (null_frame_id, frame_id_p): Declare.
984 (frame_id_eq, frame_id_inner): Declare.
985 (frame_id_build): New function.
986 * frame.c (get_frame_id): Update. Use null_frame_id.
987 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
989 (null_frame_id, frame_id_p): Define.
990 (frame_id_eq, frame_id_inner): Define.
991 (frame_id_build): New function.
992 * varobj.c (varobj_create): Update.
993 (varobj_update): Update.
994 * valops.c (value_assign): Update.
995 (new_root_variable): Update.
996 * infrun.c (save_inferior_status): Update.
997 * breakpoint.c (watch_command_1): Update.
999 2002-12-03 J. Brobecker <brobecker@gnat.com>
1001 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1004 2002-12-03 Andrew Cagney <cagney@redhat.com>
1006 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1009 * PROBLEMS: Mention PR gdb/725.
1011 2002-12-03 Andreas Schwab <schwab@suse.de>
1013 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1015 2002-12-02 Adam Fedor <fedor@gnu.org>
1016 Klee Dienes <kdienes@apple.com>
1018 * objc-lang.c (objc_printstr): Add width arg to match
1020 (compare_selectors): Add 'const' to arg types.
1021 (compare_classes): Likewise.
1022 (find_imps): Cast msym pointer to avoid compiler warning.
1023 (print_object_command): Validate the address before
1024 passing it to the print routine.
1025 (find_objc_msgcall_submethod): Change function argument to
1027 * objc-lang.h: Add 'extern' to all function declarations.
1028 (value_nsstring): Add declaration.
1030 2002-12-02 J. Brobecker <brobecker@gnat.com>
1032 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1033 Fixes a build failure on HP/UX.
1035 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1037 (hpread_has_name): Advance declaration to avoid a compilation warning.
1038 (pst_syms_count): Add missing variable type. By change, the compiler
1039 was defaulting to int, which seems a good choice. Fixes a compilation
1041 (pst_syms_size): Likewise.
1043 2002-12-02 J. Brobecker <brobecker@gnat.com>
1045 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1046 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1047 later to set the proper gdbarch methods depending on the osabi.
1048 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1050 2002-12-02 J. Brobecker <brobecker@gnat.com>
1052 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1053 * osabi.c (gdb_osabi_name): Add strings images for the two new
1055 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1057 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1059 * MAINTAINERS (Java): Global maintainers are responible for Java.
1060 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1061 part Java maintainers.
1063 2002-12-02 J. Brobecker <brobecker@gnat.com>
1065 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1066 Fixes a compilation failure on AiX.
1068 2002-12-02 J. Brobecker <brobecker@gnat.com>
1070 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1071 why aix-thread.o is not listed.
1073 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1075 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1076 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1077 * gdbarch.h, gdbarch.c: Re-generate.
1078 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1079 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1080 * config/pa/tm-hppa.h, frame.h: Update.
1081 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1082 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1083 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1084 * cris-tdep.c, alpha-tdep.c: Update.
1085 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1086 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1087 (get_prev_frame): Ditto.
1089 2002-11-30 Andrew Cagney <cagney@redhat.com>
1091 * exec.c (xfer_memory): Replace boolean with int.
1092 * p-exp.y: Use 0 instead of false.
1093 * corelow.c (gdb_check_format): Change return type to int from
1095 * utils.c: Don't include <curses.h> or <term.h> first.
1097 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1099 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1100 (m68hc11_register_byte): Remove.
1101 (m68hc11_gdbarch_init): Don't set the above.
1103 2002-11-29 Andrew Cagney <cagney@redhat.com>
1105 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1106 by calling get_selected_frame.
1107 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1108 set_current_frame, create_new_frame, select_frame and
1110 * remote-e7000.c (e7000_start_remote): Ditto.
1111 * remote-mips.c (common_open): Ditto
1112 * remote-rdp.c (remote_rdp_open): Ditto.
1114 2002-11-29 Andreas Schwab <schwab@suse.de>
1116 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1117 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1118 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1119 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1120 read_memory_unsigned_integer instead of read_memory_integer when
1121 dealing with addresses and instruction opcodes.
1122 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1123 (m68k_linux_frame_saved_pc): Likewise.
1125 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1127 * stack.c (selected_frame, select_frame): Move from here ...
1128 * frame.c (selected_frame, select_frame): ... to here. Include
1130 * Makefile.in (frame.o): Update dependencies.
1131 * frame.c (get_selected_frame): New function.
1132 * frame.h (get_selected_frame): Declare.
1133 (deprecated_selected_frame): Rename selected_frame.
1134 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1135 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1136 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1137 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1138 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1139 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1140 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1141 * z8k-tdep.c, cli/cli-cmds.c: Update.
1143 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1145 * frame.h (get_selected_block): Add comments.
1147 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1149 * frame.c (pc_notcurrent): New function.
1150 (find_frame_sal): New function.
1151 * frame.h (find_frame_sal): Declare.
1152 (struct symtab_and_line): Add opaque declaration.
1153 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1155 (frame_info): Ditto.
1156 * ada-lang.c (find_printable_frame): Ditto.
1158 2002-11-28 J. Brobecker <brobecker@gnat.com>
1160 * configure.in: Check that the pthdebug library is recent enough
1161 before enabling thread support on native AiX.
1162 * configure: Regenerate.
1164 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1165 from the list of object files as it is now appended by configure
1166 if thread support is enabled.
1167 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1168 if thread support is enabled.
1170 2002-11-28 Andrew Cagney <cagney@redhat.com>
1172 * stack.c (get_selected_block): In-line get_current_block.
1173 * frame.h (get_current_block): Delete declaration.
1174 * blockframe.c (get_current_block): Delete function.
1176 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1178 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1179 USE_GENERIC_DUMMY_FRAMES.
1180 * gdbarch.h, gdbarch.c: Regenerate.
1181 * valops.c, frame.c: Update.
1182 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1183 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1184 * config/pa/tm-hppa.h, blockframe.c: Update.
1185 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1186 * m68k-tdep.c, alpha-tdep.c: Ditto.
1188 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1189 * mips-tdep.c: Ditto.
1191 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1193 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1194 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1195 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1196 * gdbarch.c, gdbarch.h: Re-generate.
1197 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1198 (CALL_DUMMY_LOCATION): Delete macro definition.
1199 (PC_IN_CALL_DUMMY): Delete macro definitions.
1201 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1202 default is already generic_pc_in_call_dummy.
1203 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1204 * v850-tdep.c (v850_gdbarch_init): Ditto.
1205 * sh-tdep.c (sh_gdbarch_init): Ditto.
1206 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1207 * mips-tdep.c (mips_gdbarch_init): Ditto.
1208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1210 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1211 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1212 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1213 * avr-tdep.c (avr_gdbarch_init): Ditto.
1215 * arm-tdep.c (arm_gdbarch_init): Do not set
1216 use_generic_dummy_frames, default is already 1.
1217 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1218 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1219 * v850-tdep.c (v850_gdbarch_init): Ditto.
1220 * sh-tdep.c (sh_gdbarch_init): Ditto.
1221 * s390-tdep.c (s390_gdbarch_init): Ditto.
1222 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1223 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1224 * mips-tdep.c (mips_gdbarch_init): Ditto.
1225 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1227 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1228 * i386-tdep.c (i386_gdbarch_init): Ditto.
1229 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1230 * frv-tdep.c (frv_gdbarch_init): Ditto.
1231 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1232 * cris-tdep.c (cris_gdbarch_init): Ditto.
1233 * avr-tdep.c (avr_gdbarch_init): Ditto.
1235 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1236 call_dummy_location, default is already AT_ENTRY_POINT.
1237 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1238 * v850-tdep.c (v850_gdbarch_init): Ditto.
1239 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1240 * sh-tdep.c (sh_gdbarch_init): Ditto.
1241 * s390-tdep.c (s390_gdbarch_init): Ditto.
1242 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1243 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1244 * mips-tdep.c (mips_gdbarch_init): Ditto.
1245 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1247 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1248 * i386-tdep.c (i386_gdbarch_init): Ditto.
1249 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1250 * frv-tdep.c (frv_gdbarch_init): Ditto.
1251 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1252 * cris-tdep.c (cris_gdbarch_init): Ditto.
1253 * avr-tdep.c (avr_gdbarch_init): Ditto.
1254 * arm-tdep.c (arm_gdbarch_init): Ditto.
1255 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1257 2002-11-28 Andrew Cagney <cagney@redhat.com>
1259 * frame.h: Update comments on set_current_frame, create_new_frame,
1260 flush_cached_frames, reinit_frame_cache, select_frame and
1263 2002-11-27 Andrew Cagney <cagney@redhat.com>
1265 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1266 deprecated pc_in_call_dummy function.
1267 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1268 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1269 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1270 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1271 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1273 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1275 * Makefile.in: Remove Tix dependencies.
1276 * acinclude.m4: Ditto.
1277 * aclocal.m4: Ditto.
1278 * configure.in: Ditto.
1279 * configure: Regenerated.
1281 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1283 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1284 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1285 * gdbarch.c: Re-generate.
1287 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1289 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1290 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1291 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1292 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1293 pc_in_call_dummy_at_entry_point.
1294 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1295 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1296 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1297 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1298 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1299 pc_in_call_dummy_on_stack.
1300 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1301 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1302 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1303 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1304 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1306 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1308 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1309 pc_in_call_dummy_before_text_end
1310 (deprecated_pc_in_call_dummy_after_text_end): Rename
1311 pc_in_call_dummy_after_text_end.
1312 (deprecated_pc_in_call_dummy_on_stack): Rename
1313 pc_in_call_dummy_on_stack.
1314 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1315 pc_in_call_dummy_at_entry_point.
1316 * m68k-tdep.c (m68k_gdbarch_init): Update.
1317 * s390-tdep.c (s390_gdbarch_init): Update.
1318 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1319 * vax-tdep.c (vax_gdbarch_init): Update.
1320 * sparc-tdep.c (sparc_gdbarch_init): Update.
1321 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1322 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1323 * i386-tdep.c (i386_gdbarch_init): Update.
1324 * frv-tdep.c (frv_gdbarch_init): Update.
1325 * cris-tdep.c (cris_gdbarch_init): Update.
1326 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1327 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1328 (deprecated_pc_in_call_dummy_after_text_end)
1329 (deprecated_pc_in_call_dummy_on_stack)
1330 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1331 * alpha-tdep.c (alpha_gdbarch_init): Update.
1333 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1335 * acconfig.h (HAVE_PREAD64): Add.
1336 * configure.in: Check for pread64.
1337 * config.in: Regenerated.
1338 * configure: Regenerated.
1339 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1340 * linux-proc.c (linux_proc_xfer_memory): New function.
1341 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1343 2002-11-25 David Carlton <carlton@math.stanford.edu>
1345 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1348 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1350 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1351 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1353 2002-11-25 Jim Blandy <jimb@redhat.com>
1355 * symfile.c (init_objfile_sect_indices): New function.
1356 (default_symfile_offsets): Move the section-index-initializing
1357 stuff into init_objfile_sect_indices, and call that.
1359 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1360 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1362 * symfile.c (syms_from_objfile): Adjust indentation.
1364 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1365 || info_verbose isn't true.
1367 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1369 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1370 default to get_frame_base.
1371 * gdbarch.h, gdbarch.c: Regenerate.
1372 * arch-utils.c (default_frame_address): Delete function.
1373 * arch-utils.h (default_frame_address): Delete declaration
1375 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1377 * varobj.c (find_frame_addr_in_frame_chain):
1378 Use get_frame_base instead of FRAME_FP,
1381 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1383 * frame.h (FRAME_FP): Delete macro.
1384 (get_frame_base): New function declaration.
1385 * frame.c (get_frame_base): New function.
1386 (get_frame_id): Use ->frame.
1387 (frame_find_by_id): Rewrite to use get_frame_id.
1388 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1389 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1390 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1391 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1392 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1393 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1394 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1396 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1398 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1400 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1402 * frame.c (set_unwind_by_pc): Revert change below, use
1404 (get_prev_frame): Ditto.
1406 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1408 * dummy-frame.c (pc_in_dummy_frame): New function.
1409 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1410 (find_dummy_frame): Update comment.
1411 (generic_pop_current_frame): Use get_frame_type.
1412 * dummy-frame.h (pc_in_dummy_frame): Declare.
1413 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1414 (create_new_frame): Use pc_in_dummy_frame.
1415 (get_prev_frame): Use pc_in_dummy_frame.
1416 (frame_saved_regs_register_unwind): Use get_prev_frame.
1417 (deprecated_generic_get_saved_register): Use get_prev_frame.
1419 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1421 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1423 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1424 (varobj_create): Note that frame ID should be used.
1425 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1427 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1429 * breakpoint.c: Include "gdb_assert.h".
1430 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1432 * Makefile.in (breakpoint.o): Update dependencies.
1433 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1434 deprecated_frame_in_dummy.
1435 * stack.c (print_frame_info_base): Ditto.
1436 (frame_info): Ditto.
1437 (print_frame_info_base): Ditto. Delete dead code.
1439 2002-11-23 Andreas Schwab <schwab@suse.de>
1441 * Makefile.in (m68k_tdep_h): Define.
1442 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1443 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1444 * m68k-tdep.c: Move register number enum ...
1445 * m68k-tdep.h: ... to this new file and rename the constants from
1446 E_* to M68K_*. All uses changed.
1447 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1448 * abug-rom.c: Include "m68k-tdep.h". Use
1449 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1450 * cpu32bug-rom.c: Likewise.
1451 * dbug-rom.c: Likewise.
1452 * m68k-tdep.c: Likewise.
1453 * m68klinux-nat.c: Likewise.
1454 * remote-est.c: Likewise.
1455 * rom68k-rom.c: Likewise.
1456 * config/m68k/tm-linux.h: Likewise.
1458 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1460 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1461 dummy frame initialization code.
1462 * mips-tdep.c (mips_gdbarch_init): Ditto.
1464 2002-11-22 Christopher Faylor <cgf@redhat.com>
1466 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1469 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1471 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1472 to default_frame_address.
1473 * gdbarch.h, gdbarch.c: Re-generate.
1475 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1476 or frame_locals_address to default_frame_address.
1477 * m68k-tdep.c (m68k_gdbarch_init): Update.
1478 * i386-tdep.c (i386_gdbarch_init): Update.
1479 * frv-tdep.c (frv_gdbarch_init): Update.
1480 * sh-tdep.c (sh_gdbarch_init): Update.
1481 * v850-tdep.c (v850_gdbarch_init): Update.
1482 * sparc-tdep.c (sparc_gdbarch_init): Update.
1483 * mips-tdep.c (mips_gdbarch_init): Update.
1484 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1485 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1488 * cris-tdep.c (cris_frame_args_address): Delete function.
1489 (cris_frame_locals_address): Delete function.
1490 (cris_gdbarch_init): Do not set frame_args_address or
1491 frame_locals_address.
1493 2002-11-22 Michael Snyder <msnyder@redhat.com>
1495 * thread-db.c (thread_db_load): Tell the user what's going on
1496 if dlopen fails on libthread_db.
1498 2002-11-23 Andreas Schwab <schwab@suse.de>
1500 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1501 invariant return values.
1503 2002-11-22 Andreas Schwab <schwab@suse.de>
1505 * valops.c (value_slice): Move declaration of `offset' to avoid
1508 2002-11-22 Christopher Faylor <cgf@redhat.com>
1510 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1511 (struct so_stuff): Add end_addr field.
1512 (register_loaded_dll): Calculate and store end address of loaded dll.
1513 (solib_address): New function.
1514 (child_solib_loaded_library_pathname): Pass carefully constructed
1515 section info to safe_symbol_file_add rather than ignoring it.
1516 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1518 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1519 (child_create_inferior): Fix a compiler warning.
1520 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1521 (solib_address): Declare new function.
1523 2002-11-22 Andreas Schwab <schwab@suse.de>
1525 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1528 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1530 * maint.c (_initialize_maint_cmds): Fix typo. From
1531 Francesco Potorti` <pot@gnu.org>.
1533 2002-11-21 Andrew Cagney <cagney@redhat.com>
1535 * mips-tdep.c (mips_dump_tdep): Delete references to
1536 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1537 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1538 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1539 * printcmd.c (build_address_symbolic): Delete calls to
1540 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1541 (address_info): Ditto.
1544 2002-11-19 Klee Dienes <kdienes@apple.com>
1545 Adam Fedor <fedor@gnu.org>
1547 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1548 the ability to explicitly specify the quote characters and word
1549 break characters; if NULL is specified for either, use the old
1550 behavior of using the characters used by the completer.
1551 (skip_chars): New function. Convenience wrapper around
1552 skip_quoted_chars to provide the original skip_chars behavior.
1553 * completer.h (skip_quoted_chars): Add prototype.
1555 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1557 Problems reported by Paul Eggert.
1558 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1560 2002-11-19 Andreas Schwab <schwab@suse.de>
1562 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1563 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1564 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1565 (m68k_linux_frame_saved_pc): Move to ...
1566 * m68klinux-tdep.c: ... here. New file.
1567 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1568 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1570 2002-11-19 Adam Fedor <fedor@gnu.org>
1572 * objc-exp.y: Revert to old skip_quoted usage.
1574 2002-11-19 Adam Fedor <fedor@gnu.org>
1576 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1577 (objc_lang_h): Define.
1578 (YYFILES): Add objc-exp.tab.c.
1579 (local-maintainer-clean): Remove objc-exp.tab.c.
1580 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1582 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1584 * p-exp.y (typecast rule): Add automatic dereference of
1585 pascal classes if needed.
1586 (THIS): Set current_type.
1587 Automatically dereference pascal classes.
1588 (typebase rule): Add ^typebase recognition.
1590 2002-11-18 Adam Fedor <fedor@gnu.org>
1592 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1593 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1594 (op_name): Handle OP_OBJC_SELF.
1595 * Makefile.in (expprint.o): Add additional depends.
1597 2002-11-18 Adam Fedor <fedor@gnu.org>
1599 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1600 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1601 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1602 * objc-exp.y: Likewise.
1604 2002-11-18 Adam Fedor <fedor@gnu.org>
1606 * gdb/parser-defs.h: (struct objc_class_str): New structure
1607 for parsing ObjC classes.
1609 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1611 * stack.c (frame_relative_level): Copy function from here ...
1612 * frame.c (frame_relative_level): ...to here.
1614 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1616 * frame.h (enum frame_type): Define.
1617 (get_frame_type): Declare.
1618 (struct frame_info): Add field `type'. Delete field
1619 signal_handler_caller.
1620 (deprecated_set_frame_signal_handler_caller): Declare.
1621 * frame.c (get_frame_type): New function.
1622 (deprecated_set_frame_type): New function.
1623 (create_new_frame): Set the frame's type.
1624 (get_prev_frame): Similar.
1625 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1626 * s390-tdep.c: Ditto.
1627 * m68klinux-nat.c: Ditto.
1628 * ns32k-tdep.c: Ditto.
1629 * x86-64-linux-tdep.c: Ditto.
1630 * vax-tdep.c: Ditto.
1631 * rs6000-tdep.c: Ditto.
1632 * ppc-linux-tdep.c: Ditto.
1633 * i386-interix-tdep.c: Ditto.
1634 * mips-tdep.c: Ditto.
1635 * m68k-tdep.c: Ditto.
1636 * hppa-tdep.c: Ditto.
1637 * ia64-tdep.c: Ditto.
1638 * cris-tdep.c: Ditto.
1639 * arm-tdep.c: Ditto.
1640 * alpha-tdep.c: Ditto.
1641 * i386-tdep.c: Ditto.
1643 * ada-lang.c: Ditto.
1644 * blockframe.c: Update.
1645 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1646 deprecated_set_frame_type instead of signal_handler_caller.
1647 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1648 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1649 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1651 2002-11-18 Klee Dienes <kdienes@apple.com>
1653 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1655 2002-11-18 Klee Dienes <kdienes@apple.com>
1657 * buildsym.c (pop_context): Add comment.
1659 2002-11-18 Klee Dienes <kdienes@apple.com>
1661 * buildsym.h (pop_context): Convert to function, defined in
1663 * buildsym.c: Include gdb_assert.h.
1664 (pop_context): Implement as C function. Add check for stack
1666 * dbxread.c (process_one_symbol): Complain and stop processing
1667 that symbol if we are already at the top of the context stack for
1668 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1669 when processing N_RBRAC.
1671 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1673 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1675 (struct target_waitstatus): Add opaque definition.
1676 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1677 * exec.c (init_exec_ops): Likewise.
1678 * fork-child.c (clone_and_follow_inferior): Remove.
1679 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1680 * inferior.h (clone_and_follow_inferior): Remove prototype.
1681 * infrun.c (follow_fork_mode_both): Remove.
1682 (follow_fork_mode_kind_names): Remove commented out "both".
1683 (follow_inferior_fork): Remove follow_fork_mode_both support.
1684 * inftarg.c (child_clone_and_follow_inferior): Remove.
1685 (child_post_follow_inferior_by_clone): Remove.
1686 (init_child_ops): Don't set to_clone_and_follow_inferior
1687 or to_post_follow_inferior_by_clone.
1688 * target.c (default_clone_and_follow_inferior): Remove.
1689 (cleanup_target): Don't set to_clone_and_follow_inferior
1690 or to_post_follow_inferior_by_clone.
1691 (find_default_clone_and_follow_inferior): Remove.
1692 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1693 (debug_to_clone_and_follow_inferior): Remove.
1694 (debug_to_post_follow_inferior_by_clone): Remove.
1695 (setup_target_debug): Don't set to_clone_and_follow_inferior
1696 or to_post_follow_inferior_by_clone.
1697 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1698 and to_post_follow_inferior_by_clone.
1699 (child_clone_and_follow_inferior): Remove prototype.
1700 (child_post_follow_inferior_by_clone): Remove prototype.
1701 (target_clone_and_follow_inferior): Remove macro.
1702 (target_post_follow_inferior_by_clone): Remove macro.
1703 (find_default_clone_and_follow_inferior): Remove prototype.
1705 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1707 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1708 inferior_has_vforked, and inferior_has_execd instead of
1709 target_has_forked, target_has_vforked, and target_has_execd.
1710 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1711 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1712 (CHILD_WAIT): Define.
1713 (child_wait): Add prototype.
1714 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1716 (hpux_has_vforked): Likewise, from child_has_vforked.
1717 (hpux_has_execd): Likewise, from child_has_execd.
1718 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1719 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1720 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1721 and hpux_has_syscall_event instead of the target hooks.
1722 * infrun.c (inferior_has_forked, inferior_has_vforked)
1723 (inferior_has_execd): New functions.
1724 * inftarg.c (not_same_real_pid): Remove.
1725 (child_wait): Remove references to not_same_real_pid,
1726 target_has_forked, target_has_vforked, target_has_execd,
1727 and target_has_syscall_event.
1728 (child_has_forked, child_has_vforked, child_has_execd)
1729 (child_has_syscall_event): Remove.
1730 (init_child_ops): Remove references to child_has_forked,
1731 child_has_vforked, child_has_execd, and child_has_syscall_event.
1732 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1733 (hpux_has_vforked): Likewise, from child_has_vforked.
1734 (hpux_has_execd): Likewise, from child_has_execd.
1735 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1736 * target.c (cleanup_target): Remove references to
1737 to_has_forked, to_has_vforked, to_has_execd, and
1738 to_has_syscall_event.
1739 (update_current_target): Likewise.
1740 (setup_target_debug): Likewise.
1741 (debug_to_has_forked): Remove.
1742 (debug_to_has_vforked): Remove.
1743 (debug_to_has_execd): Remove.
1744 (debug_to_has_syscall_event): Remove.
1745 * target.h (struct target_ops): Remove to_has_forked.
1746 to_has_vforked, to_has_execd, and to_has_syscall_event.
1747 (child_has_forked, child_has_vforked, child_has_execd)
1748 (child_has_syscall_event): Remove prototypes.
1749 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1751 (target_has_forked, target_has_vforked, target_has_execd)
1752 (target_has_syscall_event): Remove macros.
1754 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1756 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1757 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1758 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1759 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1760 * target.c (cleanup_target): Remove reference to
1761 to_can_follow_vfork_prior_to_exec.
1762 (update_current_target): Likewise.
1763 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1764 (setup_target_debug): Remove reference to
1765 to_can_follow_vfork_prior_to_exec.
1766 * target.h (struct target_ops): Remove
1767 to_can_follow_vfork_prior_to_exec.
1768 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1769 (target_can_follow_vfork_prior_to_exec): Remove definition.
1770 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1772 * infrun.c (follow_vfork_when_exec): Remove.
1773 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1774 (follow_exec): Likewise.
1775 (handle_inferior_event): Likewise.
1776 (keep_going): Likewise.
1778 2002-11-15 Andrew Cagney <cagney@redhat.com>
1780 * frame.c (generic_unwind_get_saved_register): Make static.
1781 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1782 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1783 defaults to generic_unwind_get_saved_register.
1784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1785 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1786 * frv-tdep.c (frv_gdbarch_init): Ditto.
1787 * i386-tdep.c (i386_gdbarch_init): Ditto.
1788 * s390-tdep.c (s390_gdbarch_init): Ditto.
1789 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1790 * v850-tdep.c (v850_gdbarch_init): Ditto.
1791 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1793 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1795 2002-11-15 Andrew Cagney <cagney@redhat.com>
1797 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1800 2002-11-15 Andrew Cagney <cagney@redhat.com>
1802 * frame.h (sigtramp_saved_pc): Delete declaration.
1803 * blockframe.c (sigtramp_saved_pc): Delete function.
1804 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1805 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1806 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1807 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1809 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1811 * frame.c (frame_pc_unwind): New function.
1812 (frame_saved_regs_pc_unwind): New function.
1813 (frame_register_unwind): Pass unwind_cache instead of
1814 register_unwind_cache.
1815 (set_unwind_by_pc): Add unwind_pc parameter, set.
1816 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1817 (get_prev_frame): Ditto.
1818 * frame.h (frame_pc_unwind_ftype): Declare.
1819 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1820 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1821 (frame_pc_unwind): Declare.
1822 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1823 (struct dummy_frame): Add comment mentioning that values are for
1825 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1826 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1827 (generic_file_frame_chain_valid): Ditto.
1828 * stack.c (frame_info): Ditto.
1830 2002-11-15 David Carlton <carlton@math.stanford.edu>
1832 * linespec.c (locate_first_half): New function.
1833 (decode_line_1): Move code into locate_first_half.
1835 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1837 * complaints.h: Add comment explaining how to eliminate a
1838 deprecated_complain call.
1839 * complaints.h: Fix spelling errors.
1841 2002-11-15 David Carlton <carlton@math.stanford.edu>
1843 * printcmd.c: Remove #include "disasm.h".
1845 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1847 * frame.h: Move the most relevant interface functions to the start
1850 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1852 * regcache.h (deprecated_registers): Rename registers.
1853 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1854 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1855 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1856 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1857 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1858 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1859 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1860 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1861 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1862 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1863 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1864 * v850ice.c: Update.
1866 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1868 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1871 2002-11-13 Andrew Cagney <cagney@redhat.com>
1873 * regcache.h (deprecated_read_register_bytes): Rename
1874 read_register_bytes.
1875 (deprecated_write_register_bytes): Rename write_register_bytes.
1876 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1877 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1878 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1879 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1880 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1881 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1882 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1883 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1884 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1885 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1886 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1887 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1888 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1889 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1891 2002-11-13 Jim Blandy <jimb@redhat.com>
1893 * findvar.c (read_var_value): Doc fix.
1895 2002-11-13 Andrew Cagney <cagney@redhat.com>
1897 * regcache.c (struct regcache): Replace passthough_p with
1899 (regcache_xmalloc): Initialize readonly_p.
1900 (build_regcache): Initialize readonly_p.
1901 (regcache_save): New function.
1902 (regcache_restore): New function.
1903 (regcache_cpy): Re-implement using regcache_save and
1905 (regcache_raw_read): Update.
1906 (regcache_cooked_read): When a read-only cache, checked for cached
1907 pseudo register values.
1908 (regcache_raw_write): Assert that the cache is not read-only.
1909 Remove code handling a non-passthrough cache.
1910 * regcache.h (regcache_save): Declare.
1911 (regcache_restore): Declare.
1913 2002-11-13 Andrew Cagney <cagney@redhat.com>
1915 * regcache.c (struct regcache_descr): Add fields
1916 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1917 (init_legacy_regcache_descr): Compute the size of a cooked
1918 register cache and then assign that to sizeof_raw_registers. Set
1919 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1920 (init_legacy_regcache_descr): Ditto.
1922 2002-11-13 Andrew Cagney <cagney@redhat.com>
1924 * regcache.c (register_buffer): Move to near start of file, update
1926 (regcache_raw_read): Use.
1927 (regcache_raw_write): Use.
1928 (struct regcache): Rename raw_registers to registers and
1929 raw_register_valid_p to register_valid_p.
1930 (regcache_xmalloc): Update.
1931 (regcache_xfree): Update.
1932 (register_buffer): Update.
1933 (regcache_cpy): Update.
1934 (regcache_cpy_no_passthrough): Update.
1935 (regcache_valid_p): Update.
1936 (deprecated_grub_regcache_for_registers): Update.
1937 (deprecated_grub_regcache_for_register_valid): Update.
1938 (set_register_cached): Update.
1939 (regcache_raw_write): Update.
1941 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1943 * p-exp.y (name_not_typename): Use copy_name to
1944 set current_type variable for fields of THIS.
1946 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1948 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1949 * monitor.c (init_base_monitor_ops): Likewise.
1950 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1951 * remote-array.c (init_array_ops): Likewise.
1952 * remote-e7000.c (init_e7000_ops): Likewise.
1953 * remote-es.c (init_es1800_ops): Likewise.
1954 (init_es1800_child_ops): Likewise.
1955 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1956 * remote-sim.c (init_gdbsim_ops): Likewise.
1957 * remote-st.c (init_st2000_ops): Likewise.
1958 * sol-thread.c (init_sol_core_ops): Likewise.
1959 (init_sol_thread_ops): Likewise.
1960 * v850ice.c (init_850ice_ops): Likewise.
1961 * win32-nat.c (init_child_ops): Likewise.
1962 * wince.c (init_child_ops): Likewise.
1964 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1966 * utils.c (gdb_realpath): Make rp a constant pointer.
1968 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1970 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1971 a constant buffer; cannonicalize_file_name(); realpath() with a
1972 pathconf() defined buffer, xstrdup().
1974 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1976 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1977 to hang2.C; hang3.c to hang3.C.
1979 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1981 * findvar.c (read_var_value): Reenable TLS code.
1983 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1984 Jim Blandy <jimb@redhat.com>
1986 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1987 * target.c (update_current_target): Add
1988 to_get_thread_local_address.
1989 * target.h (to_get_thread_local_address): Export.
1990 (target_get_thread_local_address): Define.
1991 (target_get_thread_local_address_p): Define.
1992 * thread-db.c: Include solib-svr4.h.
1993 (td_thr_tls_get_addr_p): Define.
1994 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1995 (thread_db_get_thread_local_address): New function.
1996 (init_thread_db_ops): Initialize to_get_thread_local_address.
1997 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1998 * configure: Regenerate.
1999 * config.in: Regenerate.
2001 2002-11-11 David Carlton <carlton@math.stanford.edu>
2003 * linespec.c (set_flags): New function.
2004 (decode_line_1): Move code into set_flags.
2006 2002-11-11 David Carlton <carlton@math.stanford.edu>
2008 * linespec.c (decode_line_1): Move chunks of code to separate
2010 (initialize_defaults): New function.
2011 (decode_indirect): New function.
2013 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2015 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2016 instead of void_code_ptr.
2017 (sigtramp_saved_pc): Ditto.
2019 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2022 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2024 * gdbtypes.h (struct main_type): Move artificial flag out of
2025 loc. New member of ``struct field'' named static_kind. Reduce
2026 overloaded meaning of bitsize.
2027 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2028 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2029 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2031 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2033 (template_to_fixed_record_type, template_to_static_fixed_type)
2034 (to_record_with_fixed_variant_part): Likewise.
2035 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2036 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2037 * dwarfread.c (struct_type, enum_type): Likewise.
2038 * hpread.c (hpread_read_enum_type)
2039 (hpread_read_function_type, hpread_read_doc_function_type)
2040 (hpread_read_struct_type): Likewise.
2041 * mdebugread.c (parse_symbol): Likewise.
2043 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2045 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2046 * stack.c (print_frame_info_base): Update.
2047 (print_frame_info_base, frame_info): Update.
2048 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2049 (sparc_frame_saved_pc): Update.
2050 * ada-lang.c (find_printable_frame): Update.
2051 * breakpoint.c (deprecated_frame_in_dummy): Update.
2053 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2055 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2057 (regmap): Extend to cover all registers.
2058 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2059 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2061 (fetch_register, sore_register): Simplify.
2062 (old_fetch_inferior_registers, old_store_inferior_registers):
2064 (cannot_fetch_register, cannot_store_register): Change
2065 implementation to use regmap array to decide which registers
2066 cannot be fetched/stored. This removes $orig_eax from the
2067 registers that cannot be fetched/stored.
2068 (fetch_inferior_registers): Call fetch_register directly instead
2069 of calling old_fetch_inferior_registers.
2070 (store_inferior_registers): Call store_register directly instead
2071 of calling old_store_inferior_registers.
2072 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2073 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2074 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2076 2002-11-09 Klee Dienes <kdienes@apple.com>
2078 * i387-tdep.c (i387_supply_register): When called with NULL as a
2079 buffer, mark the register as not provided (to mirror the behavior
2080 of supply_register).
2081 (i387_supply_fxsave): Ditto.
2082 (i387_supply_fsave): Ditto (inherits the behavior from
2083 i387_supply_register).
2085 2002-11-09 Klee Dienes <kdienes@apple.com>
2087 * blockframe.c (sigtramp_saved_pc): Use
2088 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2089 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2090 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2092 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2094 * frame.c (get_prev_frame): Test prev_p to identify a previously
2095 unwound frame. Initialize prev_p.
2096 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2099 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2101 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2102 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2103 more comments. Zap dead code.
2105 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2107 * infcmd.c (print_vector_info, print_float_info): Move code that
2108 checks whether the target has any registers and whether there is a
2109 selected frame up, such that it is also used if a target provides
2110 multi-arch definitions of these functions.
2112 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2114 * Makefile.in (DESTDIR): Define.
2115 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2118 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2119 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2121 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2123 * i386-linux-tdep.c: Include "reggroups.h".
2124 (i386_linux_register_reggroup_p): New function.
2125 (i386_linux_init_abi): Set register_reggroup_p to
2126 i386_linux_register_reggroup_p.
2127 * i386-tdep.h (i386_register_reggroup_p): Declare.
2128 * i386-tdep.c: Include "reggroups.h".
2129 (i386_init_reggroups): New function.
2130 (i386_add_reggroups): New function.
2131 (i386_register_reggroup_p): New function.
2132 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2133 (_initialize_i386_tdep): Call i386_init_reggroups.
2134 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2137 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2139 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2140 request that's available in *BSD.
2142 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2144 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2147 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2149 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2150 * dummy-frame.c (find_dummy_frame): Rename
2151 generic_find_dummy_frame, make static. Return the dummy frame
2152 instead of the regcache.
2153 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2154 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2155 (dummy_frame_register_unwind): Rename
2156 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2157 * dummy-frame.h (dummy_frame_register_unwind): Rename
2158 generic_call_dummy_register_unwind.
2160 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2162 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2163 except the inclusion of "i386/tm-i386.h", to...
2164 * config/i386/nm-i386v42mp.h: ...here.
2165 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2167 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2169 * Makefile.in (frame.o): Update dependencies.
2170 * blockframe.c (current_frame, frame_obstack_alloc)
2171 (frame_saved_regs_zalloc, get_current_frame)
2172 (set_current_frame, create_new_frame)
2173 (set_unwind_by_pc, get_next_frame)
2174 (flush_cached_frames, reinit_frame_cache)
2175 (frame_saved_regs_register_unwind)
2176 (deprecated_generic_get_saved_register)
2177 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2178 (_initialize_blockframe): Move frame code from here...
2179 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2180 "annotate.h" and "dummy-frame.h".
2181 (_initialize_frame): New function.
2183 2002-11-08 Jim Blandy <jimb@redhat.com>
2185 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2186 when we finish a function a context.
2187 * buildsym.h (outermost_context_p): New macro.
2188 (Bug analyzed by David Edelsohn.)
2190 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2192 * blockframe.c: Include "dummy-frame.h".
2193 (struct dummy_frame, dummy_frame_stack)
2194 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2195 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2196 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2197 (generic_save_call_dummy_addr, generic_pop_current_frame)
2198 (generic_pop_dummy_frame, generic_fix_call_dummy)
2199 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2200 dummy frame code from here...
2201 * dummy-frame.c: ...to here. New file.
2202 * dummy-frame.h: New file.
2203 (generic_call_dummy_register_unwind): Declare.
2204 (generic_find_dummy_frame): Declare.
2205 * Makefile.in (SFILES): Add dummy-frame.c.
2206 (dummy-frame.o): Specify dependencies.
2207 (dummy_frame_h): Define.
2208 (COMMON_OBS): Add dummy-frame.o.
2209 (blockframe.o): Update dependencies.
2211 2002-11-08 Jim Blandy <jimb@redhat.com>
2213 * dwarf2read.c (read_func_scope): Restore local_symbols and
2214 param_symbols after we finish the function context. (Based on a
2215 patch from David Edelsohn.)
2217 2002-11-08 David Carlton <carlton@math.stanford.edu>
2219 * linespec.c (symbol_found): New function.
2220 (minsym_found): New function.
2221 (decode_line_1): Separate out some code into separate functions.
2223 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2225 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2226 the benefit of the interix target.
2227 * i386-tdep.h (i386_frameless_signal_p): Declare.
2229 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2231 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2232 declaration that snuck in from change below.
2234 2002-11-06 Andrew Cagney <cagney@redhat.com>
2236 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2238 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2239 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2240 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2241 (i386_mxcsr_regnum_p): new function. Use instead of
2243 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2244 (i386_sse_regnum_p): Declare.
2245 (i386_mxcsr_regnum_p): Declare.
2246 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2247 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2248 (IS_FP_REGNUM): Update definition.
2249 (IS_FPU_CTRL_REGNUM): Update definition..
2250 (IS_SSE_REGNUM): Update definition..
2251 * i386v-nat.c (register_u_addr): Update.
2252 * go32-nat.c (fetch_register): Update.
2253 (store_register): Update.
2255 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2257 Preparation work to convert the hppa targets to multiarch partial.
2259 * hppa-tdep.c: Add new functions replacing macro bodies from
2260 config/pa/tm-hppa.h. These function will be used to initialize
2261 the gdbarch structure. Import some comments from tm-hppa.h,
2262 and place them where appropriate, to avoid loosing them when
2263 we cleanup this file.
2264 (hppa_reg_struct_has_addr): New function.
2265 (hppa_inner_than): New function.
2266 (hppa_stack_align): New function.
2267 (hppa_pc_requires_run_before_use): New function.
2268 (hppa_instruction_nullified): New function.
2269 (hppa_register_byte): New function.
2270 (hppa_register_virtual_type): New function.
2271 (hppa_store_struct_return): New function.
2272 (hppa_cannot_store_register): New function.
2273 (hppa_frame_args_address): New function.
2274 (hppa_frame_locals_address): New function.
2275 (hppa_smash_text_address): New function.
2276 (hppa_coerce_float_to_double): New function. Requires the inclusion
2279 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2281 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2282 gdbarch-eligible macro to a call to the new associated function
2283 created in hppa-tdep.c.
2284 (INNER_THAN): Likewise.
2285 (STACK_ALIGN): Likewise.
2286 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2287 (INSTRUCTION_NULLIFIED): Likewise.
2288 (REGISTER_BYTE): Likewise.
2289 (REGISTER_VIRTUAL_TYPE): Likewise.
2290 (STORE_STRUCT_RETURN): Likewise.
2291 (CANNOT_STORE_REGISTER): Likewise.
2292 (FRAME_ARGS_ADDRESS): Likewise.
2293 (FRAME_LOCALS_ADDRESS): Likewise.
2294 (SMASH_TEXT_ADDRESS): Likewise.
2295 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2296 (ABOUT_TO_RETURN): Delete, as no longer used.
2298 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2300 * printcmd.c (disassemble_command): Remove obsolete function.
2301 (_initialize_printcmd): Do not create disassemble command here.
2302 * cli/cli-cmds.c (disassemble_command): New function. Implements
2303 disassemble command.
2304 (init_cli_cmds): Create disassemble command here instead.
2306 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2308 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2310 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2312 * regcache.h (regcache_cooked_read_using_offset_hack)
2313 (regcache_cooked_write_using_offset_hack): Delete declarations.
2314 (register_changed): Delete declaration.
2315 * regcache.c (regcache_cooked_read_using_offset_hack)
2316 (regcache_cooked_write_using_offset_hack): Delete functions.
2317 (cooked_xfer_using_offset_hack): Delete function.
2318 (register_changed): Delete function.
2320 2002-11-07 Jim Blandy <jimb@redhat.com>
2322 * macroscope.c: #include "complaints.h".
2323 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2324 but not in the macro table.
2325 * Makefile.in (macroscope.o): Record dependency.
2327 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2329 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2331 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2333 * regcache.c (deprecated_registers_fetched): Update.
2334 * regcache.h (deprecated_registers_fetched): Rename
2336 * remote-vxsparc.c (vx_read_register): Update.
2337 * remote-vxmips.c (vx_read_register): Update.
2338 * remote-vx68.c (vx_read_register): Update.
2339 * irix5-nat.c (fetch_core_registers): Update.
2340 * mipsm3-nat.c (fetch_inferior_registers): Update.
2341 * sun3-nat.c (fetch_inferior_registers): Update.
2342 * symm-nat.c (fetch_inferior_registers): Update.
2343 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2344 (fetch_core_registers): Update.
2345 (fetch_kcore_registers): Update.
2346 * mips-nat.c (fetch_inferior_registers): Update.
2347 * corelow.c (get_core_registers): Update.
2348 * a68v-nat.c (fetch_inferior_registers): Update.
2350 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2352 Put in place the framework necessary for multiarching the hppa targets.
2353 * hppa-tdep.c (hppa_gdbarch_init): New function.
2354 (hppa_dump_tdep): New function.
2355 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2356 tdep structure dumper.
2357 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2358 until the multi-arching conversion has partially been completed.
2360 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2362 * valops.c (value_assign): Merge lval_register case into
2363 lval_reg_frame_relative. Use frame_register and
2364 regcache_cooked_write instead of get_saved_register and
2365 write_register_bytes. After flushing the register cache, try to
2366 re-select the selected frame.
2368 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2370 * regcache.h (deprecated_register_valid): Rename register_valid.
2371 * regcache.c: Update.
2372 * ia64-aix-nat.c: Update.
2373 * i386gnu-nat.c: Update.
2374 * alpha-nat.c: Update.
2375 * sparc-nat.c: Update.
2376 * lynx-nat.c: Update.
2377 * remote-mips.c: Update.
2379 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2381 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2382 to end of file, to be more consistent with the pratice followed
2385 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2387 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2388 (print_float_info): Print registers in float_reggroup.
2389 (print_vector_info): Print registers in vector_reggroup.
2390 (default_print_registers_info): When all, print registers in
2391 all_reggroup. Otherwize, print registers in general_reggroup.
2392 (registers_info): Rewrite. Add support for register groups.
2395 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2397 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2399 (symtab_symbol_info): Remove eons old ifdeffed out code.
2400 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2403 2002-11-06 Theodore A. Roth <troth@openavr.org>
2405 * c-exp.y: Add missing semi-colons.
2406 * f-exp.y: Add missing semi-colons.
2407 * m2-exp.y: Add missing semi-colons.
2408 * p-exp.y: Add missing semi-colons.
2409 Add empty action to start rule to avoid a type clash error when
2410 building with bison >= 1.50.
2412 2002-11-06 Jim Blandy <jimb@redhat.com>
2414 * macrotab.h (struct macro_source_file): Doc fix.
2416 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2418 * varobj.c (child_exists, cplus_number_of_children): Change
2419 STREQ macro references to strcmp.
2420 (cplus_name_of_child): Change code to handle the fact that
2421 fields are not necessarily contiguous with regards to their
2422 access control. This is a fix for PR gdb/792.
2424 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2426 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2427 * gdbarch.h, gdbarch.c: Regnerate.
2428 * frame.h (frame_register): Declare.
2429 * frame.c (frame_register): New function.
2430 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2431 GET_SAVED_REGISTER, otherwize call
2432 generic_unwind_get_saved_register.
2433 (frame_register_read): Use frame_register instead of
2436 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2438 From Jim Ingham <jingham@apple.com>:
2439 * event-top.c (gdb_disable_readline): New function.
2440 (_initialize_event_loop): Move comment.
2442 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2444 * event-loop.c (start_event_loop): Add comment.
2447 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2449 * infcmd.c (default_print_registers_info): Do not call
2450 PRINT_REGISTER_HOOK.
2452 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2454 * sparc-tdep.c (sparc_print_register_hook): Make static.
2455 (sparc_print_registers_info): New function.
2456 (sparc_do_registers_info): New function.
2457 (sparclet_print_registers_info): New function.
2458 (sparclet_do_registers_info): New function.
2459 (do_sparc_print_registers_info): New function.
2460 (sparc_print_registers): New static function, clone of infcmd.c's
2461 default_print_registers_info.
2462 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2463 (sparclet_do_registers_info): Declare.
2464 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2465 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2467 (sparc_do_registers_info): Declare.
2468 (PRINT_REGISTER_HOOK): Delete macro.
2469 (sparc_print_register_hook): Delete declaration.
2471 2002-11-05 David Carlton <carlton@math.stanford.edu>
2473 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2475 (lookup_symbol_aux_local): New function.
2476 (lookup_symbol_aux_symtabs): New function.
2477 (lookup_symbol_aux_psymtabs): New function.
2479 2002-11-05 David Carlton <carlton@math.stanford.edu>
2481 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2482 previous values of 'objfile' and 'block'.
2484 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2486 * values.c (value_change_enclosing_type): Set
2487 enclosing_type field correctly also for the case where
2488 more memory needs to be allocated.
2490 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2492 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2495 * i387-tdep.c (i387_print_float_info): Replace calls to
2496 register_read and deprecated_read_register_gen with calls to
2497 frame_register_read, and make the necessary adjustments to the
2500 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2502 * gdbarch.sh (register_reggroup_p): Allow default value.
2503 * gdbarch.h, gdbarch.c: Regenerate.
2505 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2507 * regcache.h: Add coment indicating replacements for deprecated
2510 2002-11-02 Andrew Cagney <cagney@redhat.com>
2512 * reggroups.h, reggroups.c: New files.
2513 * regcache.c: Include "reggroups.h".
2514 (enum regcache_dump_what): Add `regcache_dump_groups'.
2515 (regcache_dump): Contract size of the "Type" column. When
2516 specified, dump the register's groups.
2517 (maintenance_print_register_groups): New function.
2518 (_initialize_regcache): Add command `maint print register-groups'.
2519 * Makefile.in (COMMON_OBS): Add reggroups.o
2520 (SFILES): Add reggroups.c.
2521 (reggroups_h): Define.
2522 (regcache.o, gdbarch.o): Update dependencies.
2523 (reggroups.o): Specify dependencies.
2524 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2525 Add opaque declaration for `struct reggroup' in generated .h file.
2526 Include "reggroups.h" in generated .c file.
2527 gdbarch.h, gdbarch.c: Re-generate.
2529 2002-11-02 Andrew Cagney <cagney@redhat.com>
2531 * regcache.h (deprecated_read_register_gen): Rename
2533 (deprecated_write_register_gen): Rename write_register_gen.
2534 * i387-tdep.c: Update.
2535 * x86-64-linux-nat.c: Update
2537 * thread-db.c: Update.
2538 * win32-nat.c: Update.
2539 * mips-tdep.c: Update.
2540 * d10v-tdep.c: Update.
2541 * cris-tdep.c: Update.
2542 * remote-sim.c: Update.
2543 * remote-rdi.c: Update.
2544 * remote-rdp.c: Update.
2547 * blockframe.c: Update.
2548 * x86-64-tdep.c: Update.
2549 * xstormy16-tdep.c: Update.
2550 * sh-tdep.c: Update.
2551 * s390-tdep.c: Update.
2552 * rs6000-tdep.c: Update.
2553 * sparc-tdep.c: Update.
2554 * i386-tdep.c: Update.
2555 * dwarf2cfi.c: Update.
2556 * regcache.c: Update.
2558 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2560 New interix-specific files:
2561 * config/i386/nm-interix.h: New file.
2562 * config/i386/interix.mh: New file.
2563 * config/i386/interix.mt: New file.
2564 * i386-interix-nat.c: New file.
2565 * i386-interix-tdep.c: New file.
2567 2002-11-01 Andrew Cagney <cagney@redhat.com>
2569 * frame.h (deprecated_generic_get_saved_register): Rename
2570 generic_get_saved_register.
2571 * blockframe.c (deprecated_generic_get_saved_register): Update.
2572 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2573 (xstormy16_frame_saved_register): Update.
2574 * sh-tdep.c (sh_gdbarch_init): Update.
2575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2576 * ia64-tdep.c (ia64_get_saved_register): Update.
2577 * cris-tdep.c (cris_gdbarch_init): Update.
2578 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2579 * arm-tdep.c (arm_gdbarch_init): Update.
2581 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2583 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2585 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2587 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2588 trampolines in sigaction.
2590 2002-10-31 Andrew Cagney <cagney@redhat.com>
2592 * h8300-tdep.c: Include "gdb_assert.h".
2593 (h8300_print_register): Add gdbarch, file and frame parameters.
2594 Use frame_read_unsigned_register to read the register's value.
2595 Use fprintf_filtered to display output.
2596 (h8300_print_registers_info): Replace h8300_do_registers_info.
2597 (h8300_gdbarch_init): Set print_registers_info.
2599 2002-10-31 Andrew Cagney <cagney@redhat.com>
2601 * frame.c (frame_read_unsigned_register): New function.
2602 (frame_read_signed_register): New function.
2603 * frame.h (frame_read_unsigned_register): Declare.
2604 (frame_read_signed_register): Declare.
2606 2002-10-31 Andrew Cagney <cagney@redhat.com>
2608 * h8500-tdep.c (h8500_print_registers_info): New static function,
2609 clone of infcmd.c's default_print_registers_info.
2610 (h8500_do_registers_info): New funtion.
2611 (h8500_print_register_hook): Rename print_register_hook, make
2614 * config/h8500/tm-h8500.h: Update copyright.
2615 (DEPRECATED_DO_REGISTERS_INFO): Define.
2616 (h8500_do_registers_info: Declare.
2617 (PRINT_REGISTER_HOOK): Delete macro.
2618 (print_register_hook): Delete function.
2620 2002-10-31 Andrew Cagney <cagney@redhat.com>
2622 * z8k-tdep.c (z8k_print_register_hook): Make static.
2623 (z8k_print_registers_info): New static function, clone of
2624 infcmd.c's default_print_registers_info.
2625 (z8k_do_registers_info): New function. Wrap
2626 z8k_print_registers_info.
2627 * config/z8k/tm-z8k.h: Update copyright.
2628 (PRINT_REGISTER_HOOK): Delete macro.
2629 (z8k_print_register_hook): Delete declaration.
2630 (DEPRECATED_DO_REGISTERS_INFO): Define.
2631 (z8k_do_registers_info): Declare.
2633 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2635 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2636 as this is already provided by value.h, and was actually causing
2637 a compilation error because of a conflict in parameter type
2638 declaration due to a missing const keyword.
2639 (low_text_segment_addres): Fix a compilation warning.
2641 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2643 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2644 registers without a name.
2645 (mips_linux_cannot_store_register): Don't store registers without
2648 2002-10-28 David Carlton <carlton@math.stanford.edu>
2650 * symtab.c (find_addr_symbol): Delete. (It was already commented
2652 * symtab.h: Delete prototype for find_addr_symbol.
2654 2002-10-26 Andrew Cagney <cagney@redhat.com>
2656 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2658 gdbarch.h, gdbarch.c: Re-generate.
2659 * infcmd.c (default_print_registers_info): Update reference.
2660 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2661 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2662 * sh-tdep.c (sh_gdbarch_init): Ditto.
2663 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2664 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2666 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2668 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2669 cfi_init_extra_frame_info.
2670 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2671 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2673 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2674 target where necessary. Add more comments and remove the ones
2675 that don't provide any useful information.
2677 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2678 deprecated_read_register_dummy with
2679 frame_unwind_unsigned_register.
2681 * i386-tdep.c (i386_extract_struct_value_address): Use
2682 regcache_raw_read_unsigned instead of
2683 regcache_cooked_read_unsigned since we know that the register
2684 we're reading isn't a pseudo register. Rename variable 'val' into
2685 the more descriptive 'addr'.
2687 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2688 (x86_64_push_return_address): Add comment.
2689 (x86_64_pop_frame): Make static.
2690 (examine_argument): Clarify comment.
2691 (x86_64_skip_prologue): Make prolog_expact variable static.
2693 * dwarf2cfi.c: Fix some formatting problems.
2694 (context_cpy, read_encoded_pointer): Clarify comments.
2696 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2697 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2698 i386 target back into x86_64_gdbarch_init. Add some comments and
2699 remove meaningless ones.
2701 2002-10-25 Andrew Cagney <cagney@redhat.com>
2703 * complaints.h (struct deprecated_complaint): Rename `struct
2705 * complaints.c (complain): Update.
2706 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2707 incorrect comment indicating that "symfile.h" was being included
2708 for the `struct complaint' definition.
2709 * remote-vx.c: Update.
2710 * objc-lang.c: Update.
2711 * xcoffread.c: Update.
2713 * mdebugread.c: Update.
2714 * stabsread.c: Update.
2715 * dwarf2read.c: Update.
2716 * dwarfread.c: Update.
2717 * elfread.c: Update.
2718 * coffread.c: Update.
2719 * stabsread.h: Update.
2720 * dbxread.c: Update.
2721 * buildsym.c: Update.
2722 * gdbtypes.c: Update.
2723 * macrotab.c: Update.
2725 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2727 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2728 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2729 (x86_64_init_abi): ...new function.
2731 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2732 * i386v-nat.c: Include "i386-tdep.h".
2734 2002-10-25 Andrew Cagney <cagney@redhat.com>
2736 * gdbtypes.c (address_space_name_to_int): Update.
2737 (address_space_int_to_name): Update.
2738 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2739 multi-arch predicate.
2740 (address_class_name_to_type_flags): Ditto.
2741 * gdbarch.h, gdbarch.c: Re-generate.
2743 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2745 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2747 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2749 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2751 * symtab.h (INIT_SAL): Delete macro.
2753 * symtab.c (init_sal): New function.
2755 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2756 to init_sal function call.
2757 (find_sal_from_funcs_and_line): Ditto.
2758 (all_sals_for_line): Ditto.
2759 * breakpoint.c (create_internal_breakpoint): Ditto.
2760 (create_fork_vfork_event_catchpoint): Ditto.
2761 (create_exec_event_catchpoint): Ditto.
2762 (parse_breakpoint_sals): Ditto.
2763 (watch_command_1): Ditto.
2764 (handle_gnu_4_16_catch_command): Ditto.
2765 (clear_command): Ditto.
2766 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2767 * infcmd.c (run_stack_dummy): Ditto.
2768 * infrun.c (process_event_stop_test): Ditto.
2769 (check_sigtramp2): Ditto.
2770 (step_over_function): Ditto.
2771 * linespec.c (decode_line_2): Ditto.
2772 (decode_line_1): Ditto.
2773 * source.c (line_info): Ditto.
2774 * symtab.c (find_pc_sect_line): Ditto.
2776 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2778 * dwarf2cfi.c (struct context)
2779 (struct context_reg): Moved to dwarf2cfi.h
2780 (context_alloc, frame_state_alloc, context_cpy):
2781 Made extern instead of static, removed prototypes.
2782 * dwarf2cfi.h (struct context)
2783 (struct context_reg): New, moved from dwarf2cfi.c
2784 (context_alloc, frame_state_alloc, context_cpy):
2786 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2787 Changed from static to extern.
2788 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2789 (LINUX_SIGCONTEXT_FP_OFFSET)
2790 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2791 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2792 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2793 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2794 set_gdbarch_*() calls now use x86-64 specific functions
2795 instead of DWARF2 CFI ones.
2796 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2797 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2798 (x86_64_init_extra_frame_info): New prototypes.
2800 2002-10-23 David Carlton <carlton@math.stanford.edu>
2802 * linespec.c: #include "parser-defs.h".
2803 Delete prototype for find_template_name_end.
2804 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2806 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2808 * NEWS: add recent mi fixes.
2809 * varobj.c (struct varobj): Add new "updated" flag.
2810 (new_variable): Default "updated" flag to 0.
2811 (varobj_set_value): Set "updated" flag to 1 if value
2813 (varobj_update): Check varobj "updated" flag before
2814 comparing old and refreshed values. Fix for
2817 2002-10-23 David Carlton <carlton@math.stanford.edu>
2819 * parse.c (parse_exp_1): Use BLOCK_START.
2820 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2822 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2824 2002-10-23 David Carlton <carlton@math.stanford.edu>
2826 * symtab.c: Delete cplusplus_hint.
2827 Delete prototype for find_template_name_end.
2829 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2831 * symtab.h: Update comment.
2833 2002-10-23 Michael Snyder <msnyder@redhat.com>
2835 * printcmd.c (address_info): Restore quotes in output.
2836 * valops.c (value_of_local): Restore quotes in error message.
2838 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2840 * symtab.c (symbol_demangled_name): New function.
2841 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2842 turning most of it into a function.
2843 (symbol_demangled_name): Export.
2845 2002-10-23 Michael Snyder <msnyder@redhat.com>
2847 * valops.c (value_of_local): Restore quotes in error message.
2849 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2851 * symtab.c (symbol_init_language_specific): New function.
2852 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2853 turning most of it into a function.
2854 (symbol_init_language_specific): Export.
2856 2002-10-23 David Carlton <carlton@math.stanford.edu>
2858 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2859 (dwarf_attr_name): Ditto.
2860 (dwarf_type_encoding_name): Ditto.
2861 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2862 (process_die): Handle DW_TAG_namespace,
2863 DW_TAG_imported_declaration, DW_TAG_imported_module.
2864 (read_namespace): New function.
2866 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2868 * configure.in: Define NEW_PROC_API on Interix too.
2869 * configure: Regenerate.
2871 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2873 * configure: Regenerate using the proper version of autoconf.
2875 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2877 * findvar.c (read_var_value): Temporarily disable TLS code, until
2878 complete TLS support is added.
2880 2002-10-21 Jim Blandy <jimb@redhat.com>
2881 Elena Zannoni <ezannoni@redhat.com>
2883 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2884 for thread local storage locations.
2885 (struct symbol): Add objfile field.
2886 (SYMBOL_OBJFILE): Define.
2887 * dwarf2read.c (is_thread_local): New static variable.
2888 (new_symbol): If variable is in thread local fill in address class
2889 and objfile appropriately.
2890 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2892 * printcmd.c (address_info): Print the information for thread
2893 local storage variable.
2894 * findvar.c (read_var_value): In case of thread local variable,
2895 defer to the target vector code to compute address.
2897 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2899 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2900 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2902 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2904 * symtab.h (address_class): Rename
2905 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2906 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2907 * printcmd.c (address_info): Ditto.
2908 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2910 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2912 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2913 DBREG_DRX macro to acces debug registers.
2915 * Makefile.in (i386obsd-tdep.o): New target.
2917 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2918 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2920 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2921 * config/i386/obsd.mt: New file.
2922 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2923 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2924 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2925 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2926 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2927 * i386obsd-tdep.c: New file.
2929 2002-10-19 Adam Fedor <fedor@gnu.org>
2931 * objc-exp.y (name_not_typename): Fix invalid comment.
2933 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2935 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2936 to allocate partial syms and macro byte caches.
2938 2002-10-18 David Carlton <carlton@math.stanford.edu>
2940 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2942 2002-10-18 Adam Fedor <fedor@gnu.org>
2944 * stabsread.c (find_name_end): New function.
2945 (define_symbol): Use it.
2947 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2949 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2950 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2951 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2952 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2954 2002-10-17 David Carlton <carlton@math.stanford.edu>
2956 * symfile.h: Add opaque declaration for struct obstack.
2957 Declare obsavestring to take a const char *.
2958 * symfile.c (obsavestring): Make first argument a const char *.
2960 2002-10-16 Adam Fedor <fedor@gnu.org>
2962 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2963 names when matching breakpoints in current file.
2965 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2967 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2968 (read_tag_pointer_type): Add address class support.
2969 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2970 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2972 * gdbarch.h, gdbarch.c: Regenerate.
2973 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2974 (make_type_with_address_space, recursive_type_dump): Add address
2976 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2977 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2978 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2980 2002-10-16 Klee Dienes <kdienes@apple.com>
2982 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2983 to get the last character of a char[] buffer, not
2984 name[sizeof(vptr_name)-1].
2986 2002-10-14 Adam Fedor <fedor@gnu.org>
2988 * symtab.h: New objc_specific struct.
2989 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2990 (SYMBOL_DEMANGLED_NAME): Likewise.
2992 2002-10-14 Adam Fedor <fedor@gnu.org>
2994 * symfile.c (init_filename_language_table): Add ObjC file extension.
2996 2002-10-14 Adam Fedor <fedor@gnu.org>
2998 * utils.c (puts_filtered_tabular): New function.
2999 (fprintf_symbol_filtered): Get ObjC demangled name.
3000 * defs.h (puts_filtered_tabular): Declared.
3002 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3004 * c-lang.h (c_type_print_varspec_prefix): Delete.
3005 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3006 ``need_post_space'' parameter. Adjust all callers.
3008 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3010 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3011 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3012 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3013 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3015 2002-10-13 Adam Fedor <fedor@gnu.org>
3017 * source.c (print_source_lines): Update comments.
3019 2002-10-13 Adam Fedor <fedor@gnu.org>
3021 * valops.c (value_of_local): New function.
3022 (value_of_this): Use it.
3023 * value.h (value_of_local): Declared.
3025 2002-10-13 Adam Fedor <fedor@gnu.org>
3027 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3028 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3030 2002-10-12 Adam Fedor <fedor@gnu.org>
3032 * language.c (binop_result_type): Add language_objc to case.
3033 (integral_type): Likewise.
3034 (character_type): Likewise.
3035 (string_type): Likewise.
3036 (boolean_type): Likewise.
3037 (structured_type): Likewise.
3038 (binop_type_check): Likewise.
3040 2002-10-11 Adam Fedor <fedor@gnu.org>
3042 * printcmd.c (address_info): Print 'self' for ObjC.
3044 2002-10-11 Adam Fedor <fedor@gnu.org>
3046 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3049 2002-10-11 Adam Fedor <fedor@gnu.org>
3051 * language.h (CAST_IS_CONVERSION): Add language_objc.
3053 2002-10-11 Adam Fedor <fedor@gnu.org>
3055 * defs.h (enum language): Add language_objc.
3057 2002-10-11 Klee Dienes <kdienes@apple.com>
3059 * corefile.c (read_memory_typed_address): New function.
3060 * gdbcore.h (read_memory_typed_address): Add prototype.
3061 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3062 to read a value destined for a CORE_ADDR, not read_memory_integer.
3063 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3064 (f77_get_dynamic_lowerbound): Ditto.
3066 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3068 * utils.c (string_to_core_addr): After turning string into
3069 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3070 which will do necessary sign-extension, etc.
3072 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3074 * c-exp.y (THIS): Delete token and grammar rule.
3075 (yylex): Don't return THIS.
3076 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3077 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3078 * demangle.c (cplus_markers): Update comment. Put '$'
3079 first. Remove CPLUS_MARKER.
3080 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3081 * jv-exp.y (THIS): Delete token and grammar rule.
3082 (yylex): Don't return THIS.
3083 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3084 * objc-exp.y (THIS): Delete token and grammar rule.
3085 (yylex): Don't return THIS.
3086 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3087 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3088 (read_member_functions): Likewise for opname.
3089 (read_tilde_fields): Use is_cplus_marker.
3091 * defs.h (CPLUS_MARKER): Don't define.
3092 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3093 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3094 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3095 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3096 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3098 * config/i386/tm-i386v4.h: Delete file.
3099 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3100 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3101 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3102 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3103 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3104 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3105 * config/i386/i386v4.mt (TM_FILE): Likewise.
3106 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3108 2002-10-10 Marko Mlinar <markom@opencores.org>
3110 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3111 accidentially not commited 2002-10-09
3112 * gdbarch.h, gdbarch.c: Re-generate.
3114 2002-10-09 Marko Mlinar <markom@opencores.org>
3116 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3117 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3118 * gdbarch.h, gdbarch.c: Re-generate.
3120 2002-10-08 Petr Sorfa <petrs@caldera.com>
3122 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3124 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3125 so we can work on more than one compilation unit at a time. This
3126 helps prepare GDB to handle inter-CU die references.
3127 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3128 the code to be defined before struct comp_unit_head.
3129 (comp_unit_head): Added new members - offset, cu_head,
3130 begin_die, next and dwarf2_abbrevs.
3131 (dwarf2_abbrevs): Removed single static var; now member of
3132 struct comp_unit_head.
3133 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3135 (psymtab_to_symtab_1): Changed to work with the new
3136 struct comp_unit_head.
3137 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3138 constructs the dwarf2_abbrevs[] inside the cu_header.
3139 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3140 dwarf2_abbrev table to clean up.
3141 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3142 handling of dwarf2_abbrevs inside the cu_header.
3143 (read_partial_die): Now supports the call to the new
3144 dwarf2_lookup_abbrev.
3145 (read_full_die): Now supports the call to the new
3146 dwarf2_lookup_abbrev.
3148 2002-10-06 Christopher Faylor <cgf@redhat.com>
3150 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3151 insure that shell variables, such as "transformed_name" are propagated
3152 to later shell statements in rule.
3154 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3156 * config/i386/nm-i386sco.h: Add protection against
3157 multiple-inclusion. Include "i386/nm-i386v.h".
3158 (REGISTER_U_ADDR): Remove define.
3159 (i386_register_u_addr): Remove prototype.
3161 2002-10-04 Michael Snyder <msnyder@redhat.com>
3163 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3164 before treating it as a single-step event.
3166 2002-10-03 Adam Fedor <fedor@gnu.org>
3168 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3169 (objc_demangle): Remove assignment in if statements, Replace
3171 (add_msglist): Likewise.
3172 (end_msglist): Likewise.
3173 (complare_selectors): Likewise.
3174 (selectors_info): Likewise.
3175 (compare_classes): Likewise.
3176 (classes_info): Likewise.
3177 (print_object_command): Likewise.
3178 (find_objc_msgcall_submethod): Replace PTR with void *.
3179 * objc-lang.h: Remove check for __STDC__.
3181 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3183 * ui-out.h (ui_out_field_fmt_int): New prototype.
3184 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3185 of field width and alignment.
3186 * stack.c (print_frame_info_base): When printing frame level, use
3187 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3190 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3192 * MAINTAINERS: Add self to Write After Approval list.
3194 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3196 * infcmd.c (interrupt_target_command_wrapper): Delete.
3197 (interrupt_target_command): Make non static.
3198 (nofp_registers_info): Make static.
3199 * stack.c (return_command_wrapper): Delete.
3200 (return_command): Make non static.
3202 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3204 * event-top.c (gdb_setup_readline): New function. Code moved from
3205 _initialize_event_loop().
3206 (_initialize_event_loop): Call gdb_setup_readline().
3208 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3210 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3211 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3212 * gdbarch.h, gdbarch.c: Re-generate.
3214 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3217 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3219 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3220 of fill_in_vptr_fieldno.
3222 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3224 * inferior.h (registers_info, stepi_command, nexti_command,
3225 continue_command, interrupt_target_command): Export from infcmd.c.
3226 * frame.h (args_info, selected_frame_level_changed_hook,
3227 return_command): Export from stack.c.
3228 * v850ice.c (stepi_command, nexti_command, continue_command): use
3229 prototypes from inferior.h.
3230 * tracepoint.c (registers_info, args_info, locals_info): Use
3231 prototypes from frame.h and inferior.h.
3232 * Makefile.in (mi-main.o): Add dependency on frame.h.
3234 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3236 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3237 value in register 3 adjusted by ppc_gp0_regnum.
3239 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3241 2002-10-02 Marko Mlinar <markom@opencores.org>
3243 * MAINTAINERS: Add myself to the Write After Approval list.
3245 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3247 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3248 of the section for the N64 ABI, fixed.
3250 * config/mips/tm-irix6.h: Include solib.h.
3252 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3254 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3257 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3259 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3260 and that "mi0" syntax has been removed.
3262 2002-09-30 David Carlton <carlton@math.stanford.edu>
3264 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3265 * ppc-sysv-tdep.c: #include "gdb_string.h".
3266 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3269 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3271 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3272 "vrsave"'s register number.
3274 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3276 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3277 use frame_unwind_signed_register to obtain the PC.
3278 (mips_frame_chain): Handle a generic dummy frame.
3279 (mips_init_extra_frame_info): When a generic dummy frame, don't
3280 re-compute the frame base.
3281 (mips_pop_frame): Handle generic dummy frames.
3282 (mips_gdbarch_init): When generic dummy frames, set
3283 use_generic_dummy_frames, push_dummy_frame to
3284 generic_push_dummy_frame, pc_in_call_dummy to
3285 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3286 generic_save_dummy_frame_tos.
3288 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3290 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3291 against TOP when TOP was explictly set.
3292 (generic_push_dummy_frame): Set TOP to zero.
3294 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3296 * event-loop.c (start_event_loop): Rename variable 'result' to
3297 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3299 2002-09-30 Keith Seitz <keiths@redhat.com>
3301 * gdb-events.sh (selected_thread_changed): New event.
3302 * gdb-events.c: Regenerated.
3303 * gdb-events.h: Regenerated.
3305 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3307 * MAINTAINERS: Add self to Write After Approval list.
3309 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3311 * disasm.c: New file.
3312 * disasm.h: New file.
3313 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3314 (compare_lines): Ditto.
3315 (dump_insns): Ditto.
3316 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3318 (do_assembly_only): Ditto.
3319 (do_disassembly): Renamed to gdb_disassembly and moved to
3320 disasm.c. Sdded uiout argument.
3321 * Makefile.in: Add new files. Reorder SFILES list. Update
3322 dependencies. Include libgdb.a later in the insight executable.
3324 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3326 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3327 bfd/elf64-alpha-fbsd.c.
3329 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3331 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3334 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3336 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3338 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3340 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3341 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3342 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3343 (S_msg_sig_post_reply): Ditto.
3345 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3347 * sh-tdep.c (sh_use_struct_convention): Use definition according
3349 (sh_push_arguments): Store in register with correct endianess.
3350 (sh_default_store_return_value): Ditto.
3351 (sh_gdbarch_init): Set sizeof long double to 8.
3353 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3355 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3356 Fix some whitespace problems.
3358 2002-09-27 David Carlton <carlton@math.stanford.edu>
3360 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3361 (mcore-tdep.o): Ditto.
3362 (ns32k-tdep.o): Ditto.
3363 (ns32knbsd-tdep.o): Ditto.
3365 (vax-tdep.o): Ditto.
3366 * cris-tdep.c: #include "gdb_string.h"
3367 * mcore-tdep.c: Ditto.
3368 * ns32k-tdep.c: Ditto.
3369 * ns32knbsd-tdep.c: Ditto.
3371 * vax-tdep.c: Ditto.
3373 2002-09-27 David Carlton <carlton@math.stanford.edu>
3375 * config/djgpp/fnchange.lst: Add entries for
3376 gdb/testsuite/gdb.c++/m-static files.
3378 2002-09-27 Jim Wilson <wilson@redhat.com>
3380 * MAINTAINERS: Add myself to the Write After Approval list.
3382 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3384 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3387 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3389 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3392 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3394 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3395 (rs6000_struct_return_address): Delete variable.
3396 (rs6000_store_struct_return): Update.
3397 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3398 deprecated_extract_struct_value_address.
3399 (rs6000_frame_align): New function.
3400 (rs6000_gdbarch_init): Set frame_align.
3402 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3404 From Grace Sainsbury <graces@redhat.com>:
3405 * Makefile.in (gdbtk-main.o): New target.
3406 (gdb.o): New target.
3408 (main.o): Update dependencies.
3409 (gdb$(EXEEXT)): Add gdb.o.
3410 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3411 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3412 (SUBDIR_GDBTK_CLEAN): Set.
3413 (install-gdbtk): Install the insight binary.
3414 (uninstall-gdbtk): New target.
3415 (all-gdbtk, clean-gdbtk): New rule.
3416 * top.c (use_windows): Default to zero.
3417 * main.c: Include "main.h".
3419 (struct captured_main_args): Delete.
3420 (gdb_main): New function.
3424 2002-09-25 Andrew Cagney <cagney@redhat.com>
3426 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3427 (frame_map_regnum_to_name): New function.
3428 (frame_map_name_to_regnum): New function.
3429 * frame.h (frame_map_name_to_regnum): Declare.
3430 (frame_map_regnum_to_name): Declare.
3431 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3432 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3433 * parse.c: Do not include "builtin-regs.h".
3434 (target_map_name_to_register): Delete function.
3435 (write_dollar_variable): Use frame_map_name_to_regnum.
3436 * parser-defs.h (target_map_name_to_register): Delete declaration.
3437 * expprint.c: Include "frame.h".
3438 (print_subexp): Use frame_map_regnum_to_name.
3439 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3440 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3442 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3444 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3445 wasn't saved, and the next innermost frame is a dummy, return the
3446 dummy frame's link register.
3448 2002-09-24 Jim Blandy <jimb@redhat.com>
3450 Fix from Paul Breed:
3451 * main.c (captured_main): Add a `break' after the case for 'b'.
3453 2002-09-24 Keith Seitz <keiths@redhat.com>
3455 * varobj.c (c_type_of_child): Use get_target_type instead
3456 of TYPE_TARGET_TYPE.
3458 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3460 * source.c (get_current_or_default_source_symtab_and_line): Remove
3462 (set_default_source_symtab_and_line): New function. Attempts to
3463 determine a source file to list lines from if one is not currently
3465 (get_current_source_symtab_and_line): Initialize sal.pc and
3467 (set_current_source_symtab_and_line): Mark argument as const.
3468 * source.h: Update declarations and comments.
3469 * linespec.c (decode_line_1): Replace call to removed routine above.
3470 * stack.c (print_frame_info_base): Ditto.
3471 * cli/cli-cmds.c (edit_command): Ditto.
3472 (list_command): Ditto.
3474 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3476 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3477 sal.pc and sal.end fields.
3478 (get_current_or_default_source_symtab_and_line): Ditto.
3479 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3480 so we do not cause a new source symtab to be searched for (reverting an
3481 unintentional change from the 2002-09-20 patch).
3482 * scm-lang.c (scm_unpac): Ditto.
3484 2002-09-21 Andrew Cagney <cagney@redhat.com>
3486 * complaints.c (symfile_explanations): Remove new-line from
3487 ``isolated_message''.
3488 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3489 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3491 2002-09-20 Nick Clifton <nickc@redhat.com>
3493 * NEWS: Announce that V850EA ISA is no longer supported.
3494 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3496 2002-09-20 David Carlton <carlton@math.stanford.edu>
3498 * Makefile.in (c-lang.o): Correct dependencies.
3499 (utils.o): Gather dependencies.
3501 * c-lang.c: #include "gdb_string.h"
3503 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3505 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3506 * cli/cli-cmds.c (list_command): New function. Implements the new
3508 (_init_cli_cmds): Add new command definition.
3509 * gdb.1: Document edit command.
3510 * doc/gdb.texinfo: Document edit command.
3512 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3514 * source.c: Make global variables current_source_symtab and
3515 current_source_line static.
3516 (list_command): Moved to cli/cli-cmds.c.
3517 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3518 (get_first_line_listed): New accessor function.
3519 (get_lines_to_list): New accessor function.
3520 (get_current_source_symtab_and_line): New function. Retrieves the
3521 position in the source code that we consider current.
3522 (get_current_or_default_source_symtab_and_line): New function.
3523 Like the above but attempts to determine a default position if one
3524 is not currently defined.
3525 (set_current_source_symtab_and_line): New function. Sets the source
3526 code position considered current and returns the previously set one.
3527 (clear_current_source_symtab_and_line): Reset stored information about
3528 a current source line.
3529 (_initialize_source): Remove registration for the "list" command and
3531 * source.h: Add declarations for the new functions above.
3532 * symtab.h: Remove declarations for the global variables mentioned
3534 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3535 obtain current source line.
3536 * linespec.c (decode_line_1): Ditto.
3537 * macroscope.c (default_macro_scope): Ditto.
3538 * scm-lang.c (scm_unpac): Ditto.
3539 * stack.c (print_frame_info_base): Ditto.
3540 * symfile.c (clear_symtab_users): Ditto.
3541 * symtab.c (decode_line_spec): Ditto.
3542 * cli/cli-cmds.c (list_command): Moved here from source.c.
3543 (ambiguous_line_spec): Moved here from source.c.
3544 (_init_cli_cmds): Add definition for "list" and its alias.
3545 * Makefile.in: Update dependencies.
3547 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3549 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3550 with what gcc thinks is correct.
3552 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3554 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3555 multiple register push instruction.
3557 2002-09-19 Jim Blandy <jimb@redhat.com>
3559 Add support for distinct host and target character sets.
3560 * charset.c, charset.h: New files.
3561 * c-exp.y: #include "charset.h".
3562 (yylex): Convert character and string literals to the target
3563 character set, before returning them as the semantic value of the
3565 * c-lang.c: #include "charset.h".
3566 (c_emit_char): Use charset-specific methods to recognize
3567 characters with backslash escape forms, to decide which characters
3568 to print literally and which to print using numeric escape
3569 sequences, and to convert target characters to host characters
3571 * utils.c: #include "charset.h".
3572 (no_control_char_error): New function.
3573 (parse_escape): Use charset-specific methods to recognize
3574 backslash escapes, parse `control character' notation, and convert
3575 characters from the host character set to the target character set.
3576 * configure.in: Set the default host character set.
3577 Check where to find iconv, and what its argument types might be.
3578 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3579 * Makefile.in (SFILES): List charset.c.
3580 (COMMON_OBS): List charset.o.
3581 (charset.o): New rule.
3582 (charset_h): New header dependency variable.
3583 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3584 (LIBICONV): New variable, set by configure.
3585 (CLIBS): Include $(LIBICONV) here.
3586 * aclocal.m4, config.in, configure: Regenerated.
3588 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3590 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3593 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3595 * gdb_mbuild.sh: New file.
3597 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3599 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3601 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3603 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3604 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3605 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3606 valops.c, value.h: Revert previous change.
3608 2002-09-18 Michael Snyder <msnyder@redhat.com>
3610 Preliminary support for Objective-C:
3611 * defs.h (language_objc): New enum value.
3612 (puts_filtered_tabular): Declaration only, exported from utils.c.
3613 (skip_quoted): Delete, declared in completer.h.
3614 * c-exp.y: Include completer.h.
3617 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3618 New operator enum values.
3619 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3620 * language.c (binop_result_type): Handle language_objc case.
3621 (integral_type, character_type, string_type, boolean_type,
3622 structured_type, binop_type_check): Ditto.
3623 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3624 (struct objc_specific): Add to general_symbol_info.
3625 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3626 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3627 * parser-defs.h (struct objc_class_str): New struct type.
3628 (start_msglist, end_msglist, add_msglist): Declaration only,
3629 exported from objc-lang.c.
3630 * value.h (value_of_local, value_nsstring,
3631 call_function_by_hand_expecting_type): Exported from valops.c.
3632 * valops.c (find_function_addr): Export.
3633 (call_function_by_hand_expecting_type): New function.
3634 (value_of_local): New function.
3635 * symfile.c (init_filename_language_table): Add ".m" extension
3637 * utils.c (puts_filtered_tabular): New function.
3638 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3639 (set/show demangle): Extend help-string to refer to ObjC.
3640 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3641 * stabsread.c (symbol_reference_defined): Objective-C symbols
3642 may contain colons: make allowances when scanning stabs strings
3644 (objc_find_colon): New function.
3645 * printcmd.c (address_info): If language == objc then print
3646 "self" instead of "this".
3647 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3648 OP_NSSTRING, and OP_SELF.
3649 (prefixify_subexp): Ditto.
3650 * source.c (print_source_lines): Mention objc in comment.
3651 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3654 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3656 * complaints.h: Update copyright.
3657 (struct complaints): Declare.
3658 (struct complaint): Make `message' constant.
3659 (internal_complaint): Declare.
3660 (complaint): Declare.
3661 (complaint_root): Delete declaration.
3662 (symfile_complaints): Delete declaration.
3663 (struct complaints): Add opaque declaration.
3664 (clear_complaints): Add a complaints parameter.
3665 * complaints.c: Update copyright.
3666 (enum complaint_series): Define.
3667 (complaint_root): Delete.
3668 (struct complaints): Define.
3669 (complaint_sentinel, symfile_complaint_book): New variables.
3670 (symfile_explanations, symfile_complaints): New variables.
3672 (get_complaints): New function.
3673 (vcomplaint): New function.
3674 (complaint): New function.
3675 (internal_complaint): New function.
3676 (complain): Call vcomplain with symfile_complaint.
3677 (clear_complaints): Rewrite.
3678 (_initialize_complaints): Use add_setshow_command.
3679 * Makefile.in (complaints.o): Update dependencies.
3680 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3681 to call to clear_complaints.
3682 (new_symfile_objfile, reread_symbols): Ditto.
3683 (oldsyms_complaint): Delete.
3684 (empty_symtab_complaint, unknown_option_complaint): Delete.
3685 (free_named_symtabs): Use complaint instead of complain.
3687 2002-09-18 Michael Snyder <msnyder@redhat.com>
3689 Contributed by Apple Computer, Inc. Merged with current sources
3690 by Adam Fedor <fedor@doc.com> [cagney].
3692 * objc-lang.c: First clean-up round: comments, indentation.
3693 * objc-lang.h: Ditto.
3694 * objc-lang.y: Ditto.
3696 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3698 * maint.c (maintenance_internal_error): Print the parameter as the
3700 (maintenance_internal_warning): New function.
3701 (_initialize_maint_cmds): Add command `maint internal-warning'.
3703 * defs.h (internal_warning, internal_vwarning): Declare.
3704 * utils.c (struct internal_problem): Define.
3705 (internal_vproblem): New function.
3706 (internal_warning): New function.
3707 (internal_vwarning): New function.
3708 (internal_warning_problem, internal_error_problem): New variables.
3709 (internal_verror): Just call internal_vproblem.
3711 2002-09-18 Michael Snyder <msnyder@redhat.com>
3713 * objc-lang.c: New file, support for Objective-C.
3714 Preliminary check-in, not yet integrated into gdb.
3715 * objc-lang.h: New file.
3716 * objc-exp.y: New file.
3718 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3720 * infrun.c (signal_stop_update): Convert definition to ISO C.
3721 (signal_print_update): Ditto.
3722 (signal_pass_update): Ditto.
3723 * inflow.c (terminal_save_ours): Ditto.
3725 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3728 * config/djgpp/fnchange.lst: Handle name clashes between
3729 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3732 * i386-linux-tdep.h: Fix tipo.
3734 2002-09-18 Adam Fedor <fedor@gnu.org>
3736 * MAINTAINERS: Add myself to the Write After Approval list.
3738 2002-09-18 Jim Blandy <jimb@redhat.com>
3740 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3741 texthigh and textlow to reader-specific structs caused
3742 objfile_relocate to miss them. This is fixable, but the work that
3743 the change was supposed to prepare GDB for never got done anyway.
3745 2002-09-18 David Carlton <carlton@math.stanford.edu>
3747 * MAINTAINERS: Alphabetize Write After Approval list.
3749 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3752 * values.c (value_static_field): Call read_var_value.
3754 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3756 * valops.c (hand_function_call): Align the initial stack pointer
3757 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3758 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3760 * mips-tdep.c (mips_frame_align): New function.
3761 (mips_gdbarch_init): Set frame_align.
3762 * gdbarch.sh (FRAME_ALIGN): New method.
3763 * gdbarch.h, gdbarch.c: Re-generate.
3765 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3767 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3770 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3772 * NEWS: Mention that MIPS $fp behavior changed.
3773 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3774 reference to FP_REGNUM.
3775 (mipsnbsd_cannot_store_register): Ditto.
3776 * mips-linux-nat.c: Update copyright.
3777 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3778 (mips_linux_cannot_store_register): Ditto.
3779 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3780 * config/mips/tm-mips.h: Update copyright.
3781 (FP_REGNUM): Delete macro.
3782 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3783 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3784 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3785 (mips_r3041_reg_names, mips_r3051_reg_names)
3786 (mips_r3081_reg_names): Replace "fp" with "".
3789 2002-09-17 Theodore A. Roth <troth@verinet.com>
3791 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3792 generic_read_register_dummy() (PR gdb/703).
3793 (avr_push_return_address): #if 0 out unused vars.
3794 (avr_gdbarch_init): Enable use of avr_push_return_address().
3796 2002-09-17 Michael Snyder <msnyder@redhat.com>
3798 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3799 RTE will take care of it.
3801 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3803 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3804 invalid, return SP_REGNUM.
3806 2002-09-17 Michael Snyder <msnyder@redhat.com>
3808 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3809 point registers without sign extension.
3811 2002-09-17 Andrew Cagney <cagney@redhat.com>
3813 * blockframe.c (deprecated_read_register_dummy): Rename
3814 generic_read_register_dummy.
3815 * frame.c (frame_unwind_signed_register): New function.
3816 (frame_unwind_unsigned_register): New function.
3817 * frame.h (frame_unwind_signed_register): Declare.
3818 (frame_unwind_unsigned_register): Declare.
3819 (deprecated_read_register_dummy): Rename
3820 generic_read_register_dummy.
3822 * h8300-tdep.c (h8300_frame_chain): Update.
3823 (h8300_frame_saved_pc): Update.
3824 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3825 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3826 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3827 (s390_frame_chain): Update.
3828 * v850-tdep.c (v850_find_callers_reg): Update.
3829 (v850_frame_saved_pc): Update.
3830 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3831 (m32r_find_callers_reg): Update.
3832 (m32r_frame_saved_pc): Update.
3833 * sh-tdep.c (sh_find_callers_reg): Update.
3834 (sh64_get_saved_pr): Update.
3835 (sh_init_extra_frame_info): Update.
3836 (sh_init_extra_frame_info): Update.
3837 (sh64_init_extra_frame_info): Update.
3838 (sh64_init_extra_frame_info): Update.
3839 * mcore-tdep.c (mcore_find_callers_reg): Update.
3840 (mcore_frame_saved_pc): Update.
3841 (mcore_init_extra_frame_info): Update.
3842 * i386-tdep.c (i386_frame_saved_pc): Update.
3843 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3844 (ia64_init_extra_frame_info): Update.
3845 (ia64_init_extra_frame_info): Update.
3846 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3847 * cris-tdep.c (cris_init_extra_frame_info): Update.
3848 * avr-tdep.c (avr_frame_chain): Update.
3849 (avr_init_extra_frame_info): Update.
3850 (avr_frame_saved_pc): Update.
3851 * arm-tdep.c (arm_find_callers_reg): Update.
3852 (arm_init_extra_frame_info): Update.
3853 (arm_frame_saved_pc): Update.
3855 2002-09-17 Tom Tromey <tromey@redhat.com>
3857 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3860 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3862 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3863 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3865 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3868 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3870 * osfsolib.c: Remove file, replaced by solib-osf.c.
3871 * Makefile.in: Remove compilation rules for osfsolib.c.
3873 2002-09-16 David Carlton <carlton@math.stanford.edu>
3875 * cp-valprint.c (cp_print_class_method): Correct args to
3876 check_stub_method_group.
3878 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3880 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3881 `set architecture'. Unify naming convention of functions.
3882 (h8300_skip_prologue): Improve prologue analysis.
3883 (h8300_push_arguments): Rewritten to more closely match GCC's
3884 bizarre argument-passing behavior, along with the comment describing
3886 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3887 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3888 sim, remote-e7000.c, remote-hms.c and remote.c
3890 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3892 * i386-tdep.c (gdb_print_insn_i386): Removed.
3893 (i386_print_insn): New function.
3894 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3895 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3898 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3900 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3903 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3905 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3906 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3907 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3909 2002-09-13 Christopher Faylor <cgf@redhat.com>
3911 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3913 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3915 * gdbtypes.c (check_stub_method): Make static.
3916 (check_stub_method_group): New function.
3917 * gdbtypes.h: Update prototypes.
3918 * cp-support.c: New file.
3919 * cp-support.h: New file.
3921 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3922 (update_method_name_from_physname): New function.
3923 (read_member_functions): Correct method names for operators
3924 and v3 constructors/destructors. Separate v2 constructors and
3926 * Makefile.in (stabsread.o): Update dependencies.
3927 (SFILES): Add cp-support.c.
3928 (COMMON_OBS): Add cp-support.o.
3929 (cp_support_h, cp-support.o): Add.
3931 * cp-valprint.c (cp_print_class_method): Call
3932 check_stub_method_group instead of check_stub_method. Remove
3934 * p-valprint.c (pascal_object_print_class_method): Likewise.
3935 * valops.c (search_struct_method): Likewise.
3936 (find_method_list, value_struct_elt_for_reference): Likewise.
3938 2002-09-13 Andrew Cagney <cagney@redhat.com>
3940 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3941 * gdbarch.h, gdbarch.c: Regenerate.
3943 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3945 * frame.c (find_saved_register): Delete function.
3946 * frame.h (find_saved_register): Delete declaration.
3949 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3951 * mips-tdep.c (read_next_frame_reg): Re-hack using
3952 frame_register_unwind.
3954 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3956 * mips-tdep.c (mips_get_saved_register): Re-hack using
3957 frame_register_unwind.
3959 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3961 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3962 vector. Will be useful for Interix.
3963 * gdbarch.h, gdbarch.c: Regenerate.
3965 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3966 name of the malloc function by NAME_OF_MALLOC.
3968 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3970 * value.h (find_function_in_inferior): Add const keyword to
3971 one of the parameters. Allows us to invoke this function with
3973 * valops.c (find_function_in_inferior): Likewise.
3975 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3977 * exec.c (xfer_memory): Fix compilation warning with old versions
3979 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3981 2002-09-12 David Carlton <carlton@math.stanford.edu>
3983 * symtab.h: Run through gdb_indent.h.
3984 Add 2002 to Copyright year list.
3986 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3988 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3990 * MAINTAINERS: Add myself to write after approval list.
3992 2002-09-11 J. Brobecker <brobecker@gnat.com>
3994 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3996 2002-09-11 J. Brobecker <brobecker@gnat.com>
3998 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4001 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4003 * procfs.c (do_detach): Clear current signal, not just fault.
4004 Corrects problem with breakpoint trap signal leaking to detached
4007 2002-09-10 Michael Snyder <msnyder@redhat.com>
4009 * buildsym.c (finish_block): Protect against null pointer.
4011 2002-09-10 Andrew Cagney <cagney@redhat.com>
4013 * infcmd.c (default_print_registers_info): Send all output to
4014 ``file'' instead of ``gdb_stdout''.
4016 2002-09-10 Michael Snyder <msnyder@redhat.com>
4018 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4019 LONGEST, and use signed register read (addresses are sign-
4022 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4024 * event-loop.c (gdb_do_one_event): Make public.
4025 * event-loop.h (gdb_do_one_event): Declare.
4027 2002-09-10 Jeff Law <law@redhat.com>
4029 * infttrace.c (child_resume): Simplify and rework to avoid
4032 2002-09-09 Fred Fish <fnf@intrinsity.com>
4034 * printcmd.c (print_scalar_formatted): "len" is the number of
4035 target bytes, NOT the number of target bits.
4037 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4039 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4040 * top.c (init_main): Set rl_terminal_name.
4042 2002-09-08 Aidan Skinner <aidan@velvet.net>
4044 * ada-lang.c (ada_array_bound, ada_type_match,
4045 _initialize_ada_language): Fix K&R definitions.
4046 * ada-tasks.c (get_current_task): Fix K&R definitions.
4047 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4049 2002-09-07 Christopher Faylor <cgf@redhat.com>
4051 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4054 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4056 * i386-tdep.c (i386_register_virtual_type,
4057 i386_register_convertible, i386_register_convert_to_virtual,
4058 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4059 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4060 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4061 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4062 Don't set push_arguments twice.
4064 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4065 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4066 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4067 sigtramp_end to NULL.
4068 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4070 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4072 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4075 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4076 * gdbarch.h, gdbarch.c: Re-generate.
4077 * blockframe.c (find_pc_sect_partial_function): Convert to use
4078 SIGTRAMP_START_P predicate.
4080 2002-09-05 Michael Snyder <msnyder@redhat.com>
4082 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4083 generic_dummy_frame method and old method. Also distinguish
4084 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4085 (arm_extract_return_value): Use new regcache method.
4087 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4088 adjustment that doesn't conform to the ABI.
4089 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4090 saved regcache, not from current regcache.
4092 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4094 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4097 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4099 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4100 if arm_apcs_32 is false.
4102 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4104 GDB 5.3 branch created.
4106 2002-09-03 Theodore A. Roth <troth@verinet.com>
4108 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4109 generic_unwind_get_saved_register.
4111 2002-09-03 David Carlton <carlton@math.stanford.edu>
4113 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4114 argument (PR gdb/653). Update call to smash_to_method_type.
4115 (read_structure_scope): Update call to dwarf2_add_member_fn.
4117 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4119 * x86-64-linux-tdep.c: Include gdb_string.h
4120 * x86-64-linux-nat.c: Ditto.
4122 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4124 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4125 when YYDEBUG is set to 1.
4126 * c-exp.y: Likewise.
4127 * f-exp.y: Likewise.
4128 * jv-exp.y: Likewise.
4129 * m2-exp.y: Likewise.
4130 * p-exp.y: Likewise.
4132 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4134 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4136 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4137 solib_svr4_fetch_link_map_offsets to
4138 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4139 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4140 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4141 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4142 solib-svr4.o, and solib-legacy.o.
4143 * config/i386/tm-nbsd.h: Include solib.h.
4145 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4147 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4148 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4149 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4150 comment noting that this needs its own target configuration.
4151 * config/i386/nbsd.mt: New file.
4152 * config/i386/nbsdaout.mt: Remove.
4153 * config/i386/nbsdelf.mt: Ditto.
4154 * config/i386/tm-nbsdaout.h: Ditto.
4156 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4158 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4159 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4160 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4162 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4163 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4164 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4166 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4168 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4169 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4170 * i386-tdep.h (i386bsd_init_abi): New prototype.
4171 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4172 function declaration.
4173 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4174 for NetBSD-a.out or NetBSD-ELF.
4175 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4176 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4177 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4178 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4180 (i386nbsd_pc_in_sigtramp): New function.
4181 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4182 i386nbsd_pc_in_sigtramp.
4183 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4184 and i386nbsdelf_init_abi OS ABI handlers.
4185 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4186 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4188 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4190 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4191 registers if the target really has them.
4193 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4195 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4198 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4200 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4202 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4203 (alphanbsd_skip_sigtramp_frame): New functions.
4204 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4205 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4206 to alphanbsd_sigcontext_addr.
4208 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4210 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4212 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4213 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4214 nbsd_pc_in_sigtramp.
4215 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4216 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4217 * nbsd-tdep.c: Include gdb_string.h.
4218 (nbsd_pc_in_sigtramp): New function.
4219 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4220 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4221 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4222 ppcnbsd_pc_in_sigtramp.
4223 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4224 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4225 shnbsd_pc_in_sigtramp.
4226 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4227 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4228 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4230 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4232 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4233 watchpoints to NULL.
4234 (insert_breakpoints): set val field of watchpoints if NULL.
4237 2002-08-29 Jim Blandy <jimb@redhat.com>
4239 * symtab.c (lookup_symbol_aux): In the cases where we find a
4240 minimal symbol of an appropriate name and use its address to
4241 select a symtab to read and search, use `name' (as passed to us)
4242 as the demangled name when searching the symtab's global and
4243 static blocks, not the minsym's name.
4245 2002-08-29 Keith Seitz <keiths@redhat.com>
4247 * stack.c (print_frame_info_base): Always set current_source_symtab
4248 and current_source_line.
4250 2002-08-29 Donn Terry <donnte@microsoft.com>
4252 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4254 2002-08-28 Keith Seitz <keiths@redhat.com>
4256 * stack.c (select_frame): Add FIXME concerning selected-frame
4258 (select_frame_command): Send selected-frame-level-changed
4259 event notification, but only if the level actually changed.
4260 (up_silently_base): Add selected-frame-level-changed event
4262 (down_silently_base): Likewise.
4264 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4266 * Makefile.in: Update dependencies for all gdb/*.c files.
4268 2002-08-27 Tom Tromey <tromey@redhat.com>
4270 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4271 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4272 Update dependencies.
4273 * i387-tdep.c: Include gdb_string.h.
4274 * osabi.c: Likewise.
4275 * i386-linux-nat.c: Likewise.
4276 * lin-lwp.c: Likewise.
4277 * ax-gdb.c: Likewise.
4278 * signals/signals.c: Likewise.
4279 * jv-valprint.c: Likewise.
4280 * p-lang.c: Likewise.
4281 * c-valprint.c: Likewise.
4282 * cp-abi.c: Likewise.
4284 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4286 * cli/cli-script.h (copy_command_lines): Export.
4287 * breakpoint.c: Include cli/cli-script.h.
4288 * Makefile.in (breakpoint.o): Update dependencies.
4290 2002-08-26 Michael Snyder <msnyder@redhat.com>
4292 * breakpoint.c (insert_breakpoints): Protect all references
4293 to 'process_warning'. Shorten long lines.
4295 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4297 * cli/cli-script.c (copy_command_lines): New function.
4298 * defs.h (copy_command_lines): Export.
4299 * testsuite/gdb.base/commands.exp: New tests for commands
4300 attached to a temporary breakpoint, and for commands that
4301 delete the breakpoint they are attached to.
4303 2002-08-26 Michael Snyder <msnyder@redhat.com>
4305 * breakpoint.c (bpstat_stop_status): Instead of copying the
4306 pointer to the breakpoint commands struct, make a new copy
4307 of the struct and point to that.
4308 (bpstat_clear): Free the commands struct.
4309 (bpstat_clear_actions): Free the commands struct.
4310 (bpstat_do_actions): Free the command actions. Also execute
4311 the local cleanups, instead of deleting them.
4312 (delete_breakpoint): Leave the commands field of the bpstat
4313 chain alone -- it will be freed later.
4315 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4317 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4318 deleted in 2002-08-20 commit. This function is still used by
4321 2002-08-26 Keith Seitz <keiths@redhat.com>
4323 * gdb-events.sh: Add selected-frame-level-changed event.
4324 * gdb-events.c: Regenerated.
4325 * gdb-events.h: Regenerated.
4327 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4330 * inflow.c (terminal_save_ours): New function to save terminal
4332 * inferior.h (terminal_save_ours): Declare.
4333 * target.c (debug_to_terminal_save_ours): New function.
4334 (cleanup_target): Defaults to_terminal_save_ours.
4335 (update_current_target): Inherit to_terminal_save_ours.
4336 (setup_target_debug): Set to_terminal_save_ours.
4337 * target.h (target_terminal_save_ours): New to save terminal settings.
4338 (target_ops): New member to_terminal_save_ours.
4339 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4340 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4341 * inftarg.c (init_child_ops): Likewise.
4342 * m3-nat.c (init_m3_ops): Likewise.
4343 * procfs.c (init_procfs_ops): Likewise.
4344 * wince.c (init_child_ops): Likewise.
4345 * win32-nat.c (init_child_ops): Likewise.
4346 * sol-thread.c (init_sol_thread_ops): Likewise.
4348 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4350 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4351 use regcache_* functions.
4352 (i386_gdbarch_init): Set store_return_value instead of
4353 deprecated_store_return_value.
4355 * regcache.c (regcache_raw_write_signed,
4356 regcache_raw_write_unsigned): New functions.
4357 * regcache.h (regcache_raw_write_signed,
4358 regcache_raw_write_unsigned): New prototypes.
4360 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4362 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4363 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4364 source file dependencies. Cleanup corresponding generator rules.
4366 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4368 * regcache.h (register_offset_hack): Declare.
4369 (regcache_cooked_read_using_offset_hack): Declare.
4370 (regcache_cooked_write_using_offset_hack): Declare.
4372 * regcache.c (register_offset_hack): New function.
4373 (regcache_cooked_read_using_offset_hack): New function.
4374 (regcache_cooked_write_using_offset_hack): New function.
4375 (regcache_dump): Check that the registers, according to their
4376 offset, are packed hard against each other.
4377 (cooked_xfer_using_offset_hack): New function.
4379 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4381 * regcache.c (struct regcache_descr): Add field register_type.
4382 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4384 (init_regcache_descr): Initialize register_type. Pass the descr
4385 to init_legacy_regcache_descr. Use register_type instead of
4386 REGISTER_VIRTUAL_TYPE.
4387 (register_type): New function.
4388 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4389 * regcache.h (register_type): Declare.
4391 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4393 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4394 instead of deprecated_store_return_value. Fix fallout from
4395 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4397 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4399 * regcache.c (max_register_size): New function.
4400 (init_legacy_regcache_descr): Ensure that max_register_size is
4401 large enough for REGISTER_VIRTUAL_SIZE.
4402 * regcache.h (max_register_size): Declare.
4404 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4406 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4408 (e500_extract_return_value): Change type of valbuf pointer to
4411 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4413 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4416 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4417 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4418 long long) to prevent compiler warning on 64-bit systems.
4420 2002-08-23 Andrew Cagney <cagney@redhat.com>
4422 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4423 (DEPRECATED_STORE_RETURN_VALUE): New method.
4424 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4425 * gdbarch.h, gdbarch.c: Re-generate.
4427 * values.c (set_return_value): Pass current_regcache to
4429 * arch-utils.h (legacy_store_return_value): Declare.
4430 * arch-utils.c (legacy_store_return_value): New function.
4431 (legacy_extract_return_value): Update parameters.
4433 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4435 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4436 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4437 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4438 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4439 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4440 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4441 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4442 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4443 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4444 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4447 * i386-tdep.c (i386_extract_return_value): Update.
4448 * arch-utils.c (legacy_extract_return_value): Update.
4449 * frv-tdep.c (frv_gdbarch_init): Update.
4450 * cris-tdep.c (cris_gdbarch_init): Update.
4451 * d10v-tdep.c (d10v_gdbarch_init): Update.
4452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4453 * m68k-tdep.c (m68k_gdbarch_init): Update.
4454 * mcore-tdep.c (mcore_gdbarch_init): Update.
4455 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4456 * s390-tdep.c (s390_gdbarch_init): Update.
4457 * sparc-tdep.c (sparc_gdbarch_init): Update.
4458 * sh-tdep.c (sh_gdbarch_init): Update.
4459 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4460 * v850-tdep.c (v850_gdbarch_init): Update.
4461 * avr-tdep.c (avr_gdbarch_init): Update.
4462 * ia64-tdep.c (ia64_gdbarch_init): Update.
4463 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4464 * vax-tdep.c (vax_gdbarch_init): Update.
4465 * alpha-tdep.c (alpha_gdbarch_init): Update.
4466 * arm-tdep.c (arm_gdbarch_init): Update.
4467 * mips-tdep.c (mips_gdbarch_init): Update.
4468 * i386-tdep.c (i386_gdbarch_init): Update.
4470 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4472 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4473 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4475 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4477 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4480 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4482 * infrun.c (handle_inferior_event): Move a comment outside of a
4483 function call, in order to avoid indent reformatting this part
4484 of the code in an unreadable way.
4486 2002-08-23 Grace Sainsbury <graces@redhat.com>
4488 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4489 when breakpoints fail. Move general breakpoint error messages to
4491 * breakpoint.c (insert_breakpoints): Change warnings when
4492 breakpoints are nto inserted to specify the type. Remove call to
4493 memory_error when hardware breakpoints can't be inserted. Remove
4494 multiple calls to warning so all messages are sent to the user at
4496 (delete_breakpoints): Make insert error messsages more explicit.
4498 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4500 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4501 gdbserver/ChangeLog.
4503 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4505 * i386-tdep.c: Include "objfiles.h".
4506 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4507 skip_trampoline_code.
4508 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4509 (CPLUS_MARKER): Define to '.'.
4511 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4513 (linux_corefile_thread_callback): Increase args->num_notes.
4514 (linux_make_note_section): Initialize thread_args.num_notes, and
4515 use it to determine whether notes for any threads were created.
4517 2002-08-23 Donn Terry <donnte@microsoft.com>
4519 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4520 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4522 (write_with_trace): Conditionalize out the switch branch handling
4523 PCSHOLD if the corresponding macro is not defined. Likewise for
4524 PRSABORT and PRSTOP.
4525 This change will be needed by the Interix port.
4527 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4529 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4530 write_register wherever possible instead of manipulating the
4531 register bytes directly.
4532 Assign VALUE_CONTENTS to a variable and use that.
4533 The GPR numbers are now dependent on the architecture.
4535 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4537 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4539 (skip_prologue): Add support for BookE/e500 instructions.
4540 (e500_extract_return_value): New function.
4541 (frame_get_saved_regs): Add support for saving ev registers and
4543 (e500_store_return_value): New function.
4544 (rs6000_gdbarch_init): Move up default intializations of
4545 deprecated_extract_return_value and store_return_value. Overwrite
4546 init of store_return_value with e500 specific version.
4547 Set extract_return_value for e500.
4549 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4551 * blockframe.c (generic_call_dummy_register_unwind): Use
4552 regcache_cooked_read to catch cases in which the variable is
4553 stored in a pseudo register.
4555 2002-08-22 Andrew Cagney <cagney@redhat.com>
4557 * NEWS: Mention that the i960 has been made obsolete.
4558 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4560 (remote-nrom.o): Obsolete target.
4561 (remote-nindy.o, i960-tdep.o): Ditto.
4562 * remote-nrom.c: Make file obsolete.
4563 * remote-nindy.c, remote-vx960.c: Ditto.
4564 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4565 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4566 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4567 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4568 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4569 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4570 i960-*-vxworks* obsolete.
4571 * MAINTAINERS: Note that the i960 is obsolete.
4573 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4575 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4576 detach to allow reinitialization.
4578 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4580 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4583 2002-08-22 Jim Blandy <jimb@redhat.com>
4585 * coffread.c (coff_symfile_read): Don't try to read the line
4586 number table from disk if the image file doesn't have a symbol
4587 table; we'll never actually look at the info anyway, and Windows
4588 ships DLL's with bogus file offsets for the line number data.
4590 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4592 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4595 2002-08-21 Michael Snyder <msnyder@redhat.com>
4597 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4598 (MSYMBOL_SIZE): Replace macro with function.
4599 (DEFAULT_MIPS_TYPE): Delete unused macro.
4600 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4601 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4603 2002-08-21 Jim Blandy <jimb@redhat.com>
4605 * valops.c (value_cast): Simplify and correct logic for doing a
4606 static cast from a pointer to a base class to a pointer to a
4609 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4611 * infcmd.c (default_print_registers_info): Replace
4613 (registers_info): Use gdbarch_print_registers_info instead of
4615 * inferior.h (default_print_registers_info): Replace
4617 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4618 (DO_REGISTERS_INFO): Change to a predicate function.
4619 * gdbarch.h, gdbarch.c: Regenerate.
4621 2002-08-21 Keith Seitz <keiths@redhat.com>
4623 * gdb-events.sh: Add target-changed event.
4624 * gdb-events.c: Regenerated.
4625 * gdb-events.c: Regenerated.
4626 * valops.c (value_assign): Add target-changed event notification
4627 to inlval_register, lval_memory, and lval_reg_frame_relative.
4629 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4631 * NEWS: Add an entry regarding the improvement of the next/step
4632 operation on Alpha Tru64 multi-processor machines.
4634 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4636 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4638 * Makefile.in: Update all _h macro definitions.
4639 * Makefile.in (install-gdbtk): Move to install section.
4640 (rdi-share/libangsd.a): Move to end of file.
4642 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4644 * frame.c (frame_register_unwind): When a register, set addrp to
4645 the register's byte.
4647 2002-08-20 Michael Snyder <msnyder@redhat.com>
4649 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4650 used locally, so move them from the target machine header to here.
4651 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4652 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4654 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4656 2002-08-20 Andrew Cagney <cagney@redhat.com>
4658 * NEWS: Mention that the Apollo line was made obsolete.
4659 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4660 m68*-hp-hpux* obsolete.
4661 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4662 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4663 * buildsym.c (make_blockvector): Make static.
4664 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4665 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4666 (ALLDEPFILES): Remove dstread.c.
4667 (dstread.o): Obsolete make rule.
4668 * dstread.c: Makefile obsolete.
4670 * config/m68k/hp300hpux.mt: Ditto.
4671 * config/m68k/hp300hpux.mh: Ditto.
4672 * config/m68k/hp300bsd.mt: Ditto.
4673 * config/m68k/hp300bsd.mh: Ditto.
4674 * config/m68k/apollo68b.mt: Ditto.
4675 * config/m68k/apollo68v.mh: Ditto.
4676 * config/m68k/apollo68b.mh: Ditto.
4678 2002-08-20 Michael Snyder <msnyder@redhat.com>
4680 * mips-tdep.c (mips_in_return_stub): Make static.
4681 (mips_gdbarch_init): Set in_solib_return_trampoline.
4682 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4684 2002-08-20 Michael Snyder <msnyder@redhat.com>
4686 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4687 * gdbarch.c, gdbarch.h: Regenerate.
4688 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4690 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4692 2002-08-20 Michael Snyder <msnyder@redhat.com>
4694 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4695 (mips_gdbarch_init): Set skip_trampoline_code,
4696 in_solib_call_trampoline.
4697 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4698 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4700 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4702 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4704 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4705 vector type for ev registers.
4706 (e500_pseudo_register_read): New function.
4707 (e500_pseudo_register_write): New function.
4708 (e500_dwarf2_reg_to_regnum): New function.
4709 (PPC_UISA_NOFP_SPRS): New macro.
4710 (PPC_EV_REGS): New macro.
4711 (PPC_GPRS_PSEUDO_REGS): New macro.
4712 (registers_e500): New register set for e500.
4713 (variants): Add e500 variant.
4714 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4715 before setting architectural dependent variations. Initialize ev
4716 registers numbers. Add case for e500 architecture. Set the
4717 number of pseudo registers.
4719 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4721 * rs6000-tdep.c: Clean up comments.
4723 2002-08-20 Andrew Cagney <cagney@redhat.com>
4725 * h8300-tdep.c: Re-indent file.
4727 2002-08-20 Jim Blandy <jimb@redhat.com>
4729 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4732 2002-08-20 Keith Seitz <keiths@redhat.com>
4734 * breakpoints.c (watch_command_1): Use internal breakpoint
4735 when setting a watchpoint_scope breakpoint.
4737 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4739 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4740 (build_builtin_type_vec64i): Ditto.
4741 (build_builtin_type_vec128): Ditto.
4742 (build_builtin_type_vec128i): Ditto.
4744 2002-08-19 Michael Snyder <msnyder@redhat.com>
4746 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4747 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4748 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4749 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4750 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4751 CALL_DUMMY_ADDRESS): Delete.
4752 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4753 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4754 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4755 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4756 push_return_address.
4757 (mips_register_raw_size, mips_eabi_use_struct_convention,
4758 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4759 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4760 mips_init_extra_frame_info, mips_eabi_push_arguments,
4761 mips_n32n64_push_arguments, mips_push_return_address,
4762 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4763 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4765 2002-08-19 Michael Snyder <msnyder@redhat.com>
4767 * mips-tdep.c (mips_frame_num_args): New function.
4768 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4769 frame_saved_pc, frame_args_address, frame_locals_address,
4770 frame_num_args, and frame_args_skip.
4771 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4772 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4773 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4774 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4776 2002-08-20 Michael Snyder <msnyder@redhat.com>
4778 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4779 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4780 * mips-tdep.c (mips_store_struct_return): New function.
4781 (mips_extract_struct_value_address): New function.
4782 (mips_gdbarch_init): Set store_struct_return and
4783 extract_struct_value_address.
4785 2002-08-20 David Carlton <carlton@math.stanford.edu>
4787 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4788 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4789 (read_file_scope): Check that line_header is nonzero before
4790 decoding macro information.
4792 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4794 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4795 flag the general-purpose registers as floating-point on targets
4796 that don't support the floating-point registers.
4798 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4800 * rs6000-tdep.c (altivec_register_p): Delete.
4801 (rs6000_do_altivec_registers): Delete.
4802 (rs6000_altivec_registers_info): Delete.
4803 (rs6000_do_registers_info): Delete.
4804 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4805 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4807 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4809 * infcmd.c (do_registers_info): Print vector registers in hex
4811 (print_vector_info): Check that printing registers
4813 (print_float_info): Ditto.
4815 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4817 * mips-tdep.c (mips_gdbarch_init): Update.
4818 (mips_o32_extract_return_value): Rewrite.
4819 (mips_o32_store_return_value): Rewrite.
4820 (mips_o32_xfer_return_value): New function.
4821 (mips_xfer_register): Tweak debug print message. Allow for
4822 buf_offset when dumping the value transfered.
4824 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4826 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4827 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4828 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4829 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4830 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4832 2002-08-14 Michael Snyder <msnyder@redhat.com>
4834 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4836 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4838 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4840 (P): New macro to define a register as a pseudo register.
4841 (R, R4, R8, R16, FR32, R64, R0): Updated.
4842 (struct variant): Add new fields for number of pseudo registers
4843 and number of total registers.
4844 (tot_num_registers): New macro replacing....
4845 (num_registers): ...deleted macro.
4846 (num_registers): New function.
4847 (num_pseudo_registers): New function.
4848 (variants): Update all variants to intialize new fields correctly.
4849 Postpone initialization of number of pseudo regs and real regs.
4850 (init_variants): New function.
4851 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4854 2002-08-19 David Carlton <carlton@math.stanford.edu>
4856 * valops.c (search_struct_field): Change error message to treat
4857 return value of 0 from value_static_field as meaning that field is
4859 (value_struct_elt_for_reference): Ditto.
4860 * values.c (value_static_field): Treat an unresolved location the
4861 same as a nonexistent symbol. Fix PR gdb/635.
4862 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4863 enclosed. Fix PR gdb/574.
4864 * MAINTAINERS: Add self to Write After Approval list.
4866 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4868 * mips-tdep.c (mips_xfer_register): New function.
4869 (mips_n32n64_extract_return_value): Rewrite.
4870 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4871 instead of deprecated_extract_return_value.
4873 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4875 * rs6000-tdep.c (TDEP): Delete macro.
4876 (branch_dest): Replace use of TDEP macro with its body.
4877 (rs6000_pop_frame): Ditto.
4878 (rs6000_push_arguments): Ditto.
4879 (rs6000_skip_trampoline_code): Ditto.
4880 (rs6000_frame_saved_pc): Ditto.
4881 (rs6000_frame_chain): Ditto.
4882 (rs6000_register_name): Ditto.
4883 (rs6000_register_byte): Ditto.
4884 (rs6000_register_raw_size): Ditto.
4885 (rs6000_register_virtual_type): Ditto.
4886 (rs6000_register_convertible): Ditto.
4887 (rs6000_convert_from_func_ptr_addr): Ditto.
4889 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4891 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4893 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4894 MIPS_LINUX_JB_ELEMENT_SIZE.
4895 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4896 for MAX_REGISTER_RAW_SIZE arrays.
4897 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4898 MIPS_LINUX_JB_ELEMENT_SIZE.
4900 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4902 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4904 2002-08-19 Aidan Skinner <aidan@velvet.net>
4906 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4907 ada-valprint.c ada-tasks.c.
4908 (YYFILES): Add ada-exp.y.
4909 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4910 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4911 (ada-exp.tab.o): New target.
4913 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4915 * regcache.c (regcache_xfer_part): New function.
4916 (regcache_raw_read_part): New function.
4917 (regcache_raw_write_part): New function.
4918 (regcache_cooked_read_part): New function.
4919 (regcache_cooked_write_part): New function.
4920 * regcache.h (regcache_raw_read_part): Declare.
4921 (regcache_raw_write_part): Declare.
4922 (regcache_cooked_read_part): Declare.
4923 (regcache_cooked_write_part): Declare.
4925 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4927 * remote.c (remote_open_1): Add async_p.
4928 (remote_async_open_1): Delete.
4929 (open_remote_target): Delete.
4930 (remote_open, extended_remote_open): Update calls to remote_open_1.
4931 (remote_async_open, extended_remote_async_open): Call
4932 remote_open_1 instead of remote_async_open_1.
4934 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4936 * blockframe.c: Fix a few coding standard violations.
4938 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4940 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4942 * config/i386/tm-i386sco5.h: ... here. File removed.
4943 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4945 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4946 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4947 (TM_FILE): Set to tm-i386.h.
4948 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4949 * config/i386/tm-i386v.h: Remove file.
4950 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4951 instead of "i386/tm-i386v.h".
4952 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4953 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4955 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4956 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4959 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4961 * config/i386/nm-i386v.h: Add protection against
4963 (i386_register_u_addr): Remove prototype.
4964 (register_u_addr): New prototype.
4965 (REGISTER_U_ADDR): Redefine accordingly.
4966 * i386v-nat.c: Improve several comments.
4967 (i386_register_u_addr): Change signature and rename to
4968 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4971 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4973 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4974 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4975 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4976 deprecated_extract_return_value.
4977 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4978 rename mips_o32o64_push_arguments.
4979 (mips_gdbarch_init): Update.
4980 (mips_extract_return_value): Delete.
4981 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4982 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4983 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4984 (mips_n32n64_extract_return_value): Clone
4985 mips_extract_return_value.
4986 (mips_store_return_value): Delete.
4987 (mips_o32_store_return_value): Clone mips_store_return_value.
4988 (mips_o64_store_return_value): Clone mips_store_return_value.
4989 (mips_eabi_store_return_value): Clone mips_store_return_value.
4990 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4992 2002-08-18 Aidan Skinner <aidan@velvet.net>
4994 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4995 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4997 2002-08-18 Aidan Skinner <aidan@velvet.net>
4999 * ada-lang.c: Run through gdb_indent.sh.
5000 * ada-lang.h: Run through gdb_indent.sh.
5001 * ada-tasks.c: Run through gdb_indent.sh.
5002 * ada-typeprint.c: Run through gdb_indent.sh.
5003 * ada-valprint.c: Run through gdb_indent.sh.
5005 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5007 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5010 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5012 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5014 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5015 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5017 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5018 write_register_gen instead of write_register_bytes.
5020 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5021 i[3456]-*-osf1mk* configurations have been made obsolete.
5022 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5023 i[3456]86-*-osf1mk* hosts obsolete.
5024 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5026 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5027 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5028 config/i386/i386m3.mt, config/i386/nm-m3.h,
5029 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5030 config/i386/i386mk.mh, config/i386/i386mk.mt,
5031 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5033 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5034 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5035 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5037 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5039 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5040 (hppa_value_returned_from_stack): Declare.
5041 (hppa_extract_return_value): Declare.
5042 * config/pa/hppa.mt: New file.
5043 * configure.tgt: Recognize hppa*-*-*.
5044 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5046 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5048 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5051 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5053 * top.c (gdb_rl_operate_and_get_next): Make sure
5054 operate-and-get-next functions correctly even when the history
5055 list is completely filled.
5057 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5059 * MAINTAINERS (Target Instruction Set Architectures): Rename
5060 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5061 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5062 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5063 already listed under Host/Native.
5065 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5066 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5069 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5071 * config/ia64/ia64.mt: New file.
5072 * config/alpha/alpha.mt: New file.
5073 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5074 ia64-linux-gnu. Mention that ia64-elf is broken.
5075 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5077 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5079 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5080 generic_func_frame_valid instead of func_frame_valid.
5082 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5084 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5085 procfs appears to be broken when debugging on multi-processor
5086 machines. So enable software single stepping in order to avoid
5087 using the procfs interface to do next/step operations, using
5088 internal breakpoints instead.
5090 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5091 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5092 make this pc address equal to the value it would have if the
5093 system stepping capability was used. Also set a new flag used
5094 to ensure that we don't readjust the PC one more time later.
5096 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5097 address by DECR_PC_AFTER_BREAK when software single step is
5098 in use for this architecture, as this has already been taken
5099 care of in handle_inferior_event().
5101 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5103 * infrun.c (handle_inferior_event): Minor reformatting, to make
5104 a rather long condition expression easier to read.
5106 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5108 * Makefile.in (gdbtk.o): Move to end of file.
5109 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5110 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5111 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5112 (gdbtk-wrapper.o, gdbres.o): Ditto.
5114 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5116 * Makefile.in (copying.o): Separate out compile rule.
5117 (hpux-thread.o, procfs.o, signals.o): Ditto.
5118 (v850ice.o, z8k-tdep.o): Ditto.
5119 (tui-file.o): Move to TUI section.
5120 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5121 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5123 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5125 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5126 skip_trampoline_code, for better namespace-proofing.
5128 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5130 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5132 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5134 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5136 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5137 signal, check whether we hit a breakpoint before checking for a
5138 single step breakpoint. Otherwise, GDB fails to notice that a
5139 breakpoint has been hit when stepping onto a breakpoint.
5141 2002-08-16 Keith Seitz <keiths@redhat.com>
5143 * gdb-events.sh (clear_gdb_event_hooks): New function.
5144 * gdb-events.c: Regenerate.
5145 * gdb-events.h: Regenerate.
5147 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5149 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5150 not_a_sw_breakpoint.
5151 * breakpoint.h (bpstat_stop_status): Add parameter names.
5153 2002-08-16 Grace Sainsbury <graces@redhat.com>
5155 * remote.c (remote_insert_hw_breakpoint)
5156 (remote_remove_hw_breakpoint): Fix calculation of length field
5159 2002-08-15 Michael Snyder <msnyder@redhat.com>
5161 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5162 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5163 (supply_fpregset): Ditto.
5165 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5166 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5167 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5168 (TARGET_READ_SP): Delete.
5169 (DO_REGISTERS_INFO): Delete.
5170 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5172 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5173 from macros to functions.
5175 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5176 (mips_register_convertible, mips_register_convert_to_virtual,
5177 mips_register_convert_to_raw): Make static.
5178 (mips_read_sp): New function.
5179 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5180 (mips_do_registers_info): Make static.
5181 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5182 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5183 (mips_register_convert_from_type, mips_register_convert_to_type):
5185 (mips_gdbarch_init): Set up function_start_offset,
5186 register_virtual_size, pc_in_sigtramp.
5188 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5190 * infcmd.c (vector_info): New function.
5191 (_initialize_infcmd): Add command "info vector".
5192 (print_vector_info): New function.
5194 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5195 * gdbarch.h, gdbarch.c: Regenerate.
5197 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5199 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5200 ``print_all''. Only print vector registers when ``print_all''.
5202 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5204 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5205 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5207 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5208 Add `args' parameter.
5209 * gdbarch.h, gdbarch.c: Regenerate.
5211 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5213 * infcmd.c (float_info): Call print_float_info.
5214 (print_float_info): New function. By default, print the
5215 floating-point registers.
5217 * arch-utils.h (default_print_float_info): Delete declaration.
5218 * arch-utils.c (default_print_float_info): Delete function.
5220 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5222 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5225 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5228 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5229 * configure.host: Make i[3456]86-*-aix host obsolete.
5230 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5231 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5232 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5233 config/i386/xm-i386aix.h: Make files obsolete.
5234 * i386aix-nat.c: Make file obsolete.
5235 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5236 (i386aix-nat.o): Make target obsolete.
5238 * config/i386/nm-gnu.h: Removed.
5239 * config/i386/nm-i386gnu.h: New file.
5240 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5241 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5243 * config/i386/tm-i386gnu.h: ... here. Removed.
5244 * config/i386/xm-i386gnu.h: Removed.
5245 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5246 (NAT_FILE): Set to nm-i386gnu.h.
5247 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5248 * i386-tdep.c: New file.
5249 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5250 (i386gnu-tdep.o): Specify dependencies.
5252 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5254 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5255 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5256 Adjust a few comments to reflect reality a bit closer.
5257 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5258 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5259 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5260 target_insert_watchpoint, target_remove_watchpoint):
5262 * config/i386/nm-i386sco5.h: ... here.
5263 (kernel_u_size): Add prototype. Improve a few comments and add
5264 protection against multiple inclusion.
5266 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5269 * uw-thread.c (SP_ARG0): Define if not already defined.
5270 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5272 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5274 * config/i386/tm-i386.h: Don't include "regcache.h".
5276 * i387-tdep.h (i387_print_float_info): New prototype.
5277 * i387-tdep.c (print_i387_value, print_i387_ext,
5278 print_i387_status_word, print_i387_control_word): Add `struct
5279 ui_file *' argument and use it for output.
5280 (i387_print_float_info): Renamed from i387_float_info. Add
5281 `struct gdbarch *' and `struct ui_file *' arguments and use the
5283 * i386-tdep.c: Include "i387-tdep.h".
5284 (i386_gdbarch_init): Set print_float_info.
5285 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5286 (FLOAT_INFO): Remove define.
5288 2002-08-13 Michael Snyder <msnyder@redhat.com>
5290 * mips-tdep.c (mips_push_arguments): Rename to
5291 mips_eabi_push_arguments, and tune for EABI.
5292 (MIPS_REGS_HAVE_HOME_P): Delete.
5293 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5294 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5295 Delete references to mips_regs_have_home_p.
5297 2002-08-14 Keith Seitz <keiths@redhat.com>
5299 * Makefile.in (install-gdbtk): Create insight plugin directory.
5300 Install plugins.tcl file.
5302 2002-08-14 Keith Seitz <keiths@redhat.com>
5304 * configure.in: Move SUBDIRS to near top of the file so that
5305 --enable options may add things to it.
5306 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5307 * configure: Regenerate.
5309 2002-08-13 Michael Snyder <msnyder@redhat.com>
5311 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5312 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5313 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5315 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5317 * vax-tdep.c (vax_get_saved_register): Delete function.
5318 (vax_gdbarch_init): Update.
5319 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5320 (ns32k_gdbarch_init): Update.
5321 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5322 (alpha_gdbarch_init): Update.
5324 2002-08-13 Andrew Cagney <cagney@redhat.com>
5326 * regcache.c (init_regcache_descr): Overallocate the
5327 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5328 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5330 (set_register_cached): Add range checking assertions. Use
5333 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5335 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5336 numbers for MMX registers.
5338 2002-08-13 Andrew Cagney <cagney@redhat.com>
5340 * i386-tdep.c (i386_gdbarch_init): Use
5341 generic_unwind_get_saved_register.
5343 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5345 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5346 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5348 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5349 Delete. Add comment regarding this now-deleted target method.
5351 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5353 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5354 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5355 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5356 real PC and the page number (if it's within the memory bank window).
5357 (m68hc11_pseudo_register_write): Likewise when saving.
5358 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5359 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5360 (m68hc11_register_raw_size): And use 32-bit for it.
5361 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5362 16K memory bank is used by the prog; also use the virtual pc.
5364 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5366 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5367 (m68hc11_gdbarch_init): Install it in gdbarch.
5368 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5369 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5370 (MSYMBOL_SIZE): New for documentation.
5371 (insn_return_kind): Enum to specify how a function returns.
5372 (frame_extra_info): Cleanup and record the return mode.
5373 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5374 register in address computation.
5375 (m68hc11_get_return_insn): New to obtain the return instruction used
5377 (m68hc11_frame_init_saved_regs): Take into account the return
5378 instruction used by the function for far and interrupt functions.
5379 (m68hc11_init_extra_frame_info): Take into account page register.
5380 (m68hc11_frame_args_address): Adjust according to the return mode.
5381 (show_regs): Print page register only when it's used.
5383 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5385 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5386 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5387 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5389 (m68hc11_register_raw_size): Likewise.
5391 2002-08-13 Andrew Cagney <cagney@redhat.com>
5393 * i386-tdep.c (i386_register_name): Handle mmx registers.
5394 (mmx_regnum_p): New function.
5395 (i386_mmx_names): New array.
5396 (mmx_num_regs): New variable.
5397 (i386_pseudo_register_read): New function.
5398 (i386_pseudo_register_write): New function.
5399 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5401 * regcache.c (regcache_raw_read_unsigned): New function.
5402 (regcache_raw_read_signed): New function.
5403 * regcache.h (regcache_raw_read_unsigned): Declare.
5404 (regcache_raw_read_signed): Declare.
5406 2002-08-13 Andrew Cagney <cagney@redhat.com>
5408 * regcache.c (regcache_raw_read_as_address): Delete function.
5409 (regcache_cooked_read_signed): New function.
5410 (regcache_cooked_read_unsigned): New function.
5411 * regcache.h (regcache_cooked_read_signed): Declare.
5412 (regcache_cooked_read_unsigned): Declare.
5413 (regcache_raw_read_as_address): Delete declaration.
5415 * blockframe.c (generic_read_register_dummy): Use
5416 regcache_cooked_read_unsigned.
5417 * i386-tdep.c (i386_extract_struct_value_address): Use
5418 regcache_cooked_read_unsigned.
5420 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5423 double sizes according to ELF ABI flags.
5424 (gdbarch_tdep): Record elf_flags.
5426 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5428 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5429 (m6812_prolog): They can appear in 68HC12 function prologue.
5430 (m68hc11_frame_chain): Cleanup.
5432 2002-08-12 Andrew Cagney <cagney@redhat.com>
5434 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5436 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5437 (i386_linux_register_raw_size): Delete function.
5438 (i386_linux_init_abi): Update.
5439 * i386-tdep.c (i386_register_raw_size): Delete function.
5440 (i386_register_byte): Delete function.
5441 (i386_gdbarch_init): Update.
5442 (i386_register_size): Delete array.
5443 (i386_register_offset): Delete array.
5445 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5446 (REGISTER_RAW_SIZE): Delete macro.
5447 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5448 (REGISTER_BYTE): Delete macro.
5450 2002-08-11 Aidan Skinner <aidan@velvet.net>
5452 * ada-lang.c (ada_lookup_partial_symbol)
5453 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5454 prototype names so that grep ^func works properly.
5456 * ada-lang.c (ada_array_element_type)
5457 (ada_lookup_partial_symbol): Fix typos in parameter list.
5459 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5460 Fix prototype names so that grep ^func works properly.
5462 2002-08-10 Andrew Cagney <cagney@redhat.com>
5463 Elena Zannoni <ezannoni@redhat.com>
5464 Martin M. Hunt <hunt@redhat.com>
5466 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5467 (build_builtin_type_vec128i): Set the vector bit.
5468 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5469 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5470 (build_builtin_type_vec64): New function.
5471 (build_builtin_type_vec64i): New function.
5472 (build_gdbtypes): Initialize builtin_type_vec64 and
5473 builtin_type_vec64i.
5475 2002-08-09 Andrew Cagney <cagney@redhat.com>
5477 * regcache.c (regcache_dump): Compare the register offset
5479 * arch-utils.c (generic_register_byte): New function.
5480 * arch-utils.h (generic_register_byte): Declare.
5481 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5482 * gdbarch.h, gdbarch.c: Regenerate.
5484 2002-08-09 Andrew Cagney <cagney@redhat.com>
5486 * regcache.c: Include "gdbcmd.h"
5487 (_initialize_regcache): Add commands "maintenance print
5488 registers", "maintenance print raw-registers" and "maintenance
5489 print cooked-registers".
5490 (enum regcache_dump_what): Define.
5491 (dump_endian_bytes): New function.
5492 (regcache_dump): New function.
5493 (regcache_print): New function.
5494 (maintenance_print_registers): New function.
5495 (maintenance_print_raw_registers): New function.
5496 (maintenance_print_cooked_registers): New function.
5497 * Makefile.in (regcache.o): Update dependencies.
5499 2002-08-09 Michael Snyder <msnyder@redhat.com>
5501 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5502 (mips_push_arguments): Correct some comments. Use paddr_nz
5503 for printing addresses in debug output. Replace static
5504 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5505 (mips_n32n64_push_arguments): New function, cloned from
5506 mips_push_arguments and tuned for the n32/n64 ABI.
5507 (mips_push_register): Buffer needs dynamic allocation.
5508 (mips_print_register): Ditto.
5509 (do_gp_register_row): Ditto.
5510 (mips_store_return_value): Ditto.
5511 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5513 2002-08-09 Don Howard <dhoward@redhat.com>
5515 * memattr.c (mem_info_command): Print special case of upper bound
5516 as max CORE_ADDR + 1.
5518 2002-08-08 Michael Snyder <msnyder@redhat.com>
5520 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5521 returns structs by ref if they're too big to fit in two registers.
5523 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5525 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5527 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5528 mips_find_saved_regs().
5529 (mips_pop_frame): Likewise.
5531 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5533 * blockframe.c (frame_saved_regs_register_unwind): Revise
5534 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5537 2002-08-09 Grace Sainsbury <graces@redhat.com>
5539 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5540 T-packets; the 'a' is not taken as a register number.
5541 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5542 (remote_stopped_data_address): New functions; add to target
5544 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5545 prototypes to match other implementations of this
5546 function. replace integer argument with pointer -- the length
5547 field in the Z-packet is the length of what is pointed to or 1 if
5548 pointer is null. Add to target vector.
5549 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5553 * remote.c (remote_wait): Add support to extract optional
5554 watchpoint information from T-packet. Ignore unrecognized
5555 optional info in T-packet.
5556 (remote_async_wait): Ditto.
5558 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5560 * cli/cli-dump.c: Change fopen modes to use binary open modes
5561 as defined in include/fopen-bin.h throughout.
5563 2002-08-08 Michael Snyder <msnyder@redhat.com>
5565 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5567 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5569 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5570 assertion failure by returning early after a warning.
5572 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5574 * mips-tdep.c (mips_find_saved_regs): Make static.
5575 (mips_frame_init_saved_regs): New function.
5576 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5577 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5578 (mips_find_saved_regs): Delete declaration.
5580 2002-08-08 Grace Sainsbury <graces@redhat.com>
5582 * remote.c (remote_wait, remote_async_wait): Change
5583 thread_num from int to ULONGEST.
5584 (unpack_varlen_hex): Change result parameter from
5585 int * to ULONGEST *.
5587 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5589 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5590 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5592 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5594 2002-08-08 Andrew Cagney <cagney@redhat.com>
5596 * gcore.c (override_derive_stack_segment): Delete variable.
5597 (preempt_derive_stack_segment): Delete function.
5598 (derive_stack_segment): Delete function.
5599 (default_derive_stack_segment): Renamed to derive_stack_segment.
5600 (override_derive_heap_segment): Delete variable.
5601 (preempt_derive_heap_segment): Delete function.
5602 (derive_heap_segment): Delete function.
5603 (default_derive_heap_segment): Rename to derive_heap_segment.
5605 2002-08-06 Michael Snyder <msnyder@redhat.com>
5607 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5608 * mips-tdep.c (mips_EABI_use_struct_convention,
5609 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5610 New functions. (mips_use_struct_convention): Delete.
5611 (mips_gdbarch_init): set use_gdbarch_convention.
5613 2002-08-06 Michael Snyder <msnyder@redhat.com>
5615 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5616 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5617 mips_o32_reg_struct_has_addr): New functions.
5618 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5620 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5622 * regcache.c (pseudo_register): Delete function.
5623 (fetch_register): Delete function.
5624 (store_register): Delete function.
5625 (regcache_raw_read, legacy_read_register_gen): Use
5626 target_fetch_registers instead of fetch_register.
5627 (legacy_write_register_gen, regcache_raw_write): Use
5628 target_store_register instead of store_register.
5629 (write_register_bytes): Ditto.
5631 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5632 (STORE_PSEUDO_REGISTER): Delete.
5633 * gdbarch.h, gdbarch.c: Regenerate.
5635 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5637 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5638 write dump file binary.
5640 2002-08-05 Michael Snyder <msnyder@redhat.com>
5642 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5643 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5644 (mips_gdbarch_init): Set N32 target to be mips64.
5646 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5648 * frame.c (find_saved_register): Break out of loop once saved
5649 register address is found. Don't mention sparc in loop comment
5652 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5654 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5655 mips_default_saved_regsize to 8.
5657 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5659 * gcore.c: Do not include <sys/procfs.h>.
5660 * Makefile.in (gcore.o): Update dependencies.
5662 2002-08-06 Andrew Cagney <cagney@redhat.com>
5664 * configure.tgt: Make arc-*-* obsolete.
5665 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5666 * MAINTAINERS: Make arc-elf obsolete.
5667 * arc-tdep.c: Make file obsolete.
5668 * config/arc/arc.mt: Ditto.
5669 * config/arc/tm-arc.h: Ditto.
5671 2002-08-05 Theodore A. Roth <troth@verinet.com>
5673 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5675 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5677 * mcore-tdep.c (mcore_gdbarch_init): Use
5678 generic_unwind_get_saved_register instead of
5679 generic_get_saved_register.
5680 * v850-tdep.c (v850_gdbarch_init): Ditto.
5681 * frv-tdep.c (frv_gdbarch_init): Ditto.
5682 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5683 * s390-tdep.c (s390_gdbarch_init): Ditto.
5684 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5685 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5686 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5688 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5690 * objfiles.h: Add missing #include "symfile.h"
5692 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5694 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5696 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5697 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5700 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5702 * NEWS: Cleanup and nitpick.
5704 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5706 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5708 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5710 * Makefile.in (gdbtk-bp.o): Update dependencies.
5711 (gdbtk-register.o): Ditto.
5712 (gdbtk-varobj.o): Ditto.
5714 2002-08-03 Andrew Cagney <cagney@redhat.com>
5716 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5717 m68hc11_fetch_pseudo_register.
5718 (m68hc11_pseudo_register_write): Replace
5719 m68hc11_store_pseudo_register.
5720 (m68hc11_gdbarch_init): Update.
5722 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5724 * gdbarch.sh: Include "gdb_string.h".
5725 * gdbarch.c: Regenerate.
5727 * regcache.c: Include "gdb_string.h".
5728 * ax-general.c: Ditto.
5730 * std-regs.c: Ditto.
5731 * fbsd-proc.c: Ditto.
5734 * Makefile.in (regcache.o): Update dependencies.
5735 (thread.o, gdbarch.o): Ditto.
5736 (ax-general.o, gdbarch.o): Ditto.
5737 (varobj.o, std-regs.o): Ditto.
5738 (fbsd-proc.o): Specify dependencies.
5740 2002-08-02 Andrew Cagney <cagney@redhat.com>
5742 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5744 (regcache_cooked_write): Ditto.
5746 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5748 * regcache.c (regcache_cooked_read): New function.
5749 (regcache_cooked_write): New function.
5750 (read_register_gen): Rewrite using regcache_cooked_read.
5751 (write_register_gen): Rewrite using regcache_cooked_write.
5753 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5756 2002-08-02 Andrew Cagney <cagney@redhat.com>
5758 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5759 Replace the architecture methods register_read and register_write.
5760 * gdbarch.h, gdbarch.c: Regenerate.
5761 * regcache.c (init_regcache_descr): Update.
5762 (read_register_gen): Update.
5763 (write_register_gen): Update.
5764 (supply_register): Update comment.
5766 * sh-tdep.c (sh_gdbarch_init): Update.
5767 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5768 `regcache' and `gdbarch' parameters. Make `buffer' a void
5769 pointer. Update code.
5770 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5771 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5772 void pointer. Update code.
5773 (sh64_register_write): Delete.
5774 (sh4_register_read): Delete.
5775 (sh64_register_read): Delete.
5776 (sh4_register_write): Delete.
5777 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5778 void pointer, `to' parameter a void pointer.
5779 (sh_sh64_register_convert_to_raw): Ditto.
5781 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5783 * mips-tdep.c (mips_register_virtual_type): Use architecture
5784 invariant return values.
5786 2002-08-01 Andrew Cagney <cagney@redhat.com>
5788 * linux-proc.c: Include "gdb_string.h".
5789 * Makefile.in (linux-proc.o): Update dependency list.
5791 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5793 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5796 2002-08-01 Grace Sainsbury <graces@redhat.com>
5798 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5799 to_insert_watchpoint, to_remove_watchpoint,
5800 to_stopped_by_watchpoint, to_stopped_data_address,
5801 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5802 target vecctor. Define their corresponding macros so they call
5805 * target.c: Add default and debug versions of for
5806 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5807 to_insert_watchpoint, to_remove_watchpoint,
5808 to_stopped_by_watchpoint, to_stopped_data_address,
5809 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5811 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5813 * mips-tdep.c (mips_register_virtual_type): New function.
5814 (mips_gdbarch_init): Register mips_register_virtual_type()
5815 with gdbarch machinery.
5816 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5817 this file instead of tm-bigmips.h.
5818 (MIPS_REGSIZE): Delete this macro.
5819 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5820 multiarch version in mips-tdep.c will be found.
5822 2002-08-01 Andrew Cagney <cagney@redhat.com>
5824 * NEWS: Menion that CHILL has been made obsolete.
5826 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5827 * stabsread.c (read_range_type): Ditto.
5828 * gdbtypes.h: Ditto.
5829 * language.c (binop_type_check): Ditto.
5830 (binop_result_type): Ditto.
5831 (integral_type): Ditto.
5832 (character_type): Ditto.
5833 (string_type): Ditto.
5834 (boolean_type): Ditto.
5835 (structured_type): Ditto.
5836 (lang_bool_type): Ditto.
5837 (binop_type_check): Ditto.
5838 * language.h (_LANG_chill): Ditto.
5839 * dwarfread.c (set_cu_language): Ditto.
5840 * dwarfread.c (CHILL_PRODUCER): Ditto.
5841 * dwarfread.c (handle_producer): Ditto.
5842 * expression.h (enum exp_opcode): Ditto.
5843 * eval.c: Ditto for comments.
5844 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5845 * expprint.c (print_subexp): Ditto.
5846 (print_subexp): Ditto.
5847 * valops.c (value_cast): Ditto.
5848 (search_struct_field): Ditto.
5849 * value.h (COERCE_VARYING_ARRAY): Ditto.
5850 * symfile.c (init_filename_language_table): Ditto.
5851 (add_psymbol_with_dem_name_to_list): Ditto.
5852 * valarith.c (value_binop): Ditto.
5854 * valops.c (value_slice): Ditto.
5855 * symtab.h (union language_specific): Ditto.
5856 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5857 (SYMBOL_DEMANGLED_NAME): Ditto.
5858 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5859 * defs.h (enum language): Ditto.
5860 * symtab.c (got_symtab): Ditto.
5861 * utils.c (fprintf_symbol_filtered): Ditto.
5863 * ch-typeprint.c: Make file obsolete.
5864 * ch-valprint.c: Make file obsolete.
5865 * ch-lang.h: Make file obsolete.
5866 * ch-exp.c: Make file obsolete.
5867 * ch-lang.c: Make file obsolete.
5869 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5871 (TARGET_FLAGS_TO_PASS): Ditto.
5872 (CHILLFLAGS): Obsolete.
5874 (CHILL_FOR_TARGET): Obsolete.
5875 (CHILL_LIB): Obsolete.
5876 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5878 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5879 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5881 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5884 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5886 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5887 This does not change anything at the moment, but will be helpful
5888 later when full Ada support is integrated.
5890 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5892 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5895 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5897 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5898 and save it in a local variable. Use variable in later test.
5900 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5902 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5903 test. (Thanks to Daniel Jacobowitz.)
5905 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5907 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5908 (mips_abi_strings): Add "n64".
5909 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5911 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5913 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5914 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5916 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5918 * utils.c (host_pointer_to_address, address_to_host_pointer):
5919 Use gdb_assert() instead of explicit call to internal_error().
5921 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5923 * Makefile.in (rs6000-nat.o): Update dependencies.
5925 From Nicholas Duffek:
5926 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5927 (aix-thread.o): New rule.
5928 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5929 * config/powerpc/aix432.mh: New file.
5931 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5933 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5934 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5935 (fetch_core_registers, ppc_linux_supply_gregset)
5936 (ppc_linux_supply_fpregset): New functions.
5937 (ppc_linux_regset_core_fns): New.
5938 (_initialize_ppc_linux_tdep): Call add_core_fns.
5939 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5940 and ppc_linux_supply_gregset.
5941 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5942 (supply_fpregset): Call ppc_linux_supply_fpregset.
5943 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5945 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5947 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5949 * symtab.c (lookup_symbol): Demangle before lowercasing.
5951 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5953 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5955 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5956 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5957 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5958 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5960 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5961 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5962 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5963 (avr-tdep.o, mon960-rom.o): Ditto.
5964 (aout_stabs_gnu_h): Define.
5965 (symtab_h): Remove $(gdb_obstack_h).
5967 2002-07-30 Jim Blandy <jimb@redhat.com>
5969 Patch from David Carlton <carlton@math.stanford.edu>:
5970 * gdbinit.in: Move the `dir' commands that add GDB's own source
5971 directory to the search path to the end, so that the `gdb' source
5972 directory will be searched first.
5974 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5976 * gdb_obstack.h: New file.
5977 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5978 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5979 * objfiles.h: Include "gdb_obstack.h".
5980 * Makefile.in (gdb_obstack_h): Define.
5981 (symtab_h): Add $(gdb_obstack_h).
5982 (objfiles_h): Add $(gdb_obstack_h).
5984 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5985 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5986 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5987 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5988 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5989 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5990 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5991 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5993 * Makefile.in (bcache.o): Update dependencies.
5994 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5995 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5996 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5997 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5998 (stabsread.o, symfile.o, symmisc.o): Ditto.
5999 (symtab.o, typeprint.o, macroexp.o): Ditto.
6000 (macrotab.o, mdebugread.o): Ditto.
6001 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6002 (coff_ecoff_h, aout_aout64_h): Define.
6003 (aout_stabs_gnu_h, libaout_h): Define.
6005 2002-07-29 Andrew Cagney <cagney@redhat.com>
6007 * regcache.c (struct regcache_descr): Rename nr_registers to
6008 nr_cooked_registers. Revise comments describing the structure
6010 (init_regcache_descr): Update.
6011 (init_legacy_regcache_descr): Update.
6012 (read_register_gen, write_register_gen): When a cooked register in
6013 the raw register range, directly access the value from the raw
6016 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6018 * z8k-tdep.c: Do not include "obstack.h".
6019 * h8300-tdep.c, h8500-tdep.c: Ditto.
6020 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6021 * valprint.c, v850-tdep.c: Ditto.
6022 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6023 * mn10200-tdep.c: Ditto.
6025 * Makefile.in (z8k-tdep.o): Update dependencies.
6026 (m68hc11-tdep.o, valprint.o): Ditto.
6027 (v850-tdep.o, d10v-tdep.o): Ditto.
6028 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6029 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6030 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6031 (sh_opc_h, gdb_sim_sh_h): Define.
6032 (elf_sh_h, elf_bfd_h): Define.
6033 (opcode_m68hc11_h): Define.
6034 (OPCODES_SRC, OPCODES_DIR): define.
6035 (OPCODES): Use $(OPCODES_DIR).
6036 (gdb_sim_d10v_h): Rename sim_d10v_h.
6037 (gdb_sim_arm_h): Rename sim_arm_h.
6039 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6041 * utils.c (host_pointer_to_address, address_to_host_pointer):
6042 Change internal_error() message to indicate function responsible
6045 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6047 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6048 calls to local_hex_string_custom().
6050 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6052 * irix5-nat.c: Move IRIX shared library support from here...
6053 * solib-irix.c: ...to here. Revised substantially to work with
6054 generic solib framework.
6056 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6057 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6058 * mips-irix-tdep.c: New file.
6060 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6061 (mips-irix-tdep.o, solib-irix.o): New rules.
6062 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6064 * config/mips/irix6.mt (TDEPFILES): Likewise.
6065 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6067 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6069 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6070 disabled (via ``#if 0'') includes.
6072 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6074 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6075 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6076 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6077 Add support for the fpscr register.
6078 * rs6000-nat.c (regmap, fetch_inferior_registers)
6079 (store_inferior_registers, fetch_core_registers): Likewise.
6081 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6083 * rs6000-nat.c (language.h): Include.
6084 (special_regs): Delete this array.
6085 (regmap): New function.
6086 (fetch_register, store_register): Use regmap() to map gdb
6087 register numbers to ptrace register numbers. Also, use
6088 outputs from regmap() to make decisions regarding type of
6089 ptrace() call to make. In particular, don't compare against
6090 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6091 (fetch_inferior_registers, store_inferior_registers): Where
6092 possible, obtain register numbers from tdep struct. Don't
6093 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6094 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6095 (LAST_UISA_SP_REGNUM): Delete.
6097 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6099 * rs6000-nat.c (ppc-tdep.h): Include.
6100 (fetch_registers, store_register, fetch_core_registers): Don't
6101 access registers[] directly. Instead, use supply_register() or
6102 regcache_collect() as appropriate.
6103 (find_toc_address): Format hex address with local_hex_string().
6105 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6107 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6110 2002-07-24 Tom Tromey <tromey@redhat.com>
6112 * jv-exp.y: Marked all strings with _().
6113 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6115 (MethodInvocation, CastExpression, parse_number, yyerror,
6116 java_type_from_name, push_expression_name, yylex): Typo fixes.
6118 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6120 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6121 (tee_file_flush, tee_file_write, tee_file_fputs)
6122 (tee_file_isatty): New.
6123 * ui-file.h (tee_file_new): Add prototype.
6125 2002-07-24 Aidan Skinner <aidan@velvet.net>
6127 * ada-lang.c: Change k&r style function definitions to prototyped
6129 * ada-typeprint.c: Change k&r style function definitions to prototyped
6131 * ada-valprint.c: Change k&r style function definitions to prototyped
6134 2002-07-24 Andrew Cagney <cagney@redhat.com>
6136 * README: Remove reference to remote-bug.
6137 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6139 (m88k-nat.o): Delete rule.
6140 (m88k-tdep.o): Delete rule.
6141 (remote-bug.o): Delete rule.
6142 * MAINTAINERS: Mark as obsolete.
6143 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6144 * m88k-tdep.c: Make file obsolete.
6145 * config/m88k/m88k.mh: Ditto.
6146 * config/m88k/delta88v4.mh: Ditto.
6147 * config/m88k/delta88v4.mt: Ditto.
6148 * config/m88k/delta88.mt: Ditto.
6149 * config/m88k/delta88.mh: Ditto.
6150 * remote-bug.c: Ditto.
6151 * config/m88k/tm-delta88.h: Ditto.
6152 * config/m88k/nm-delta88v4.h: Ditto.
6153 * config/m88k/xm-delta88.h: Ditto.
6154 * config/m88k/xm-dgux.h: Ditto.
6155 * config/m88k/tm-m88k.h: Ditto.
6156 * config/m88k/nm-m88k.h: Ditto.
6157 * config/m88k/tm-delta88v4.h: Ditto.
6158 * m88k-nat.c: Ditto.
6159 * cxux-nat.c: Ditto.
6160 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6161 and m88*-*-* obsolete.
6162 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6165 2002-07-24 Andrew Cagney <cagney@redhat.com>
6167 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6168 constant. Same for local pointer variables.
6169 (extract_signed_integer): Ditto.
6170 * defs.h (extract_unsigned_integer): Update.
6171 (extract_signed_integer): Update.
6173 2002-07-24 Andrew Cagney <cagney@redhat.com>
6175 * regcache.c (regcache_raw_write): Change buf parameter to a
6176 constant void pointer.
6177 (regcache_raw_read): Change buf parameter to a void pointer.
6178 (legacy_write_register_gen): Change myaddr parameter a constant
6180 (supply_register): Change val parameter to a const void pointer.
6181 * regcache.h (regcache_raw_write): Update declaration.
6182 (regcache_raw_read): Update declaration.
6183 (supply_register): Update declaration.
6185 2002-07-24 Tom Tromey <tromey@redhat.com>
6187 * defs.h (gdb_readline_wrapper): Declare.
6188 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6189 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6190 * top.c (gdb_readline_wrapper): New function.
6191 (command_line_input): Use it.
6193 2002-07-24 Andrew Cagney <cagney@redhat.com>
6195 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6196 regcache_read and regcache_write.
6197 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6198 * regcache.c: Update.
6199 * sh-tdep.c (sh64_push_arguments): Update comment.
6200 (sh_pseudo_register_read): Update.
6201 (sh_pseudo_register_write): Update.
6202 (sh4_register_read): Update.
6203 (sh4_register_write): Update.
6204 (sh64_pseudo_register_read): Update.
6205 (sh64_pseudo_register_write): Update.
6206 (sh64_register_read): Update.
6207 (sh64_register_write): Update.
6208 * i386-tdep.c (i386_extract_return_value): Update.
6209 (i386_extract_struct_value_address): Update.
6210 (i386_extract_return_value): Update.
6211 * blockframe.c (generic_read_register_dummy): Update.
6212 (generic_call_dummy_register_unwind): Update
6213 * infrun.c (write_inferior_status_register): Update.
6215 2002-07-23 Jim Blandy <jimb@redhat.com>
6217 * parser-defs.h (expression_context_pc): Make this extern.
6218 (Thanks to Michael Snyder.)
6220 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6222 GDB 5.2.1 released from 5.2 branch.
6223 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6224 * README: Update to mention 5.2.1.
6226 2002-07-23 Mark Salter <msalter@redhat.com>
6228 * remote.c (remote_read_bytes): Fix check for error.
6230 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6232 * aix-thread.c (language.h): Include.
6233 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6234 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6235 Print newlines at end of debug messages.
6236 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6237 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6239 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6241 * aix-thread.c (ppc-tdep.h): Include.
6242 (special_register_p): New function.
6243 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6244 (store_regs_user_thread): Use register number information from
6245 gdbarch_tdep struct instead of hardcoded offsets relative to
6246 FIRST_UISA_SP_REGNUM.
6247 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6248 special_register_p() instead of using FPLAST_REGNUM and
6249 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6250 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6251 will be MQ's register number.
6253 2002-07-22 Michael Snyder <msnyder@redhat.com>
6255 * aix-thread.c (ops): Rename to aix_thread_ops.
6256 (base_ops): Rename to base_target.
6257 (ops_attach): Rename to aix_thread_attach.
6258 (ops_detach): Rename to aix_thread_detach.
6259 (ops_resume): Rename to aix_thread_detach.
6260 (ops_wait): Rename to aix_thread_wait.
6261 (ops_kill): Rename to aix_thread_kill.
6262 (init_ops): Rename to init_aix_thread_ops.
6263 (ops_fetch_register): Rename to aix_thread_fetch_register.
6264 (ops_store_register): Rename to aix_thread_store_register.
6265 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6266 (ops_thread_alive): Rename to aix_thread_thread_alive.
6267 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6268 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6269 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6270 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6271 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6272 (store_regs_lib): Rename to store_regs_user_thread.
6273 (store_regs_kern): Rename to store_regs_kernel_thread.
6275 2002-07-22 Michael Snyder <msnyder@redhat.com>
6277 * aix-thread.c (ops_prepare_to_store): Eliminate.
6278 (init_ops): Don't initialize ops.prepare_to_store.
6279 (store_regs_kern): Pre-fetch register buffers from child,
6280 because some registers may not be in the cache. Copy
6281 regs from register cache only if they are cached.
6282 (store_regs_lib): Copy regs from register cache only
6284 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6285 fill_gprs64): Ditto.
6287 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6289 * aix-thread.c (gdb_assert.h): Include.
6290 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6291 register sizes (from register cache) match size of buffer holding
6293 (fill_sprs32): Change parameter types to match those in the ptrace()
6295 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6296 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6298 2002-07-22 Michael Snyder <msnyder@redhat.com>
6300 * aix-thread.c (supply_sprs64): Cosmetic change.
6301 (supply_sprs32): Cosmetic change.
6302 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6303 (fill_sprs64): Use regcache_collect instead of read_register.
6304 (store_regs_lib): Use regcache_collect instead of
6305 read_register. Use fill_sprs32 instead of fill_sprs64,
6306 if debugging a 32-bit architecture.
6307 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6308 out of the register cache, instead of passing a pointer into
6309 the register cache directly to ptrace. Use regcache_collect
6310 insteaad of read_register.
6311 (ops_prepare_to_store): Use target_read_registers instead
6312 of read_register_bytes.
6314 2002-07-20 Aidan Skinner <aidan@velvet.net>
6316 * MAINTAINERS: Add self under write after approval.
6318 2002-07-20 Aidan Skinner <aidan@velvet.net>
6320 * ada-tasks.c: Change k&r style function definitions to prototyped
6323 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6325 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6326 * x86-64-tdep.c: Include "objfiles.h".
6327 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6328 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6330 2002-07-17 Michal Ludvig <michal@suse.cz>
6332 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6333 (update_context): Initialise cfa variable.
6335 2002-07-17 Michael Snyder <msnyder@redhat.com>
6337 * aix-thread.c: Shorten some long lines.
6338 Bring comments into line with code spec.
6340 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6342 * infrun.c: Re-indent using gdb_indent.sh.
6344 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6346 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6347 Leave the indentation temporarily untouched, to minimize the diffs.
6349 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6351 * stabsread.c: Make os9k sections of the code obsolete,
6353 * stabsread.h: Make os9k sections of the code obsolete.
6355 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6357 * linux-low.c (regsets_store_inferior_registers): Add free()
6358 at the end of a loop to prevent memory leak.
6359 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6360 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6361 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6363 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6365 2002-07-17 Jim Blandy <jimb@redhat.com>
6367 * macrocmd.c (info_macro_command): Remove newline from error
6370 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6372 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6373 (sh_gdbarch_init): Use it for sh-dsp.
6375 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6377 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6378 64-bit DWARF2 format.
6380 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6382 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6383 <sys/proc.h> when not available.
6385 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6387 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6388 * stabsread.c: Make os9k sections of the code obsolete.
6389 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6390 * config/i386/i386os9k.mt: Make file obsolete.
6391 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6392 (COMMON_OBS): Remove os9kread.o
6393 (SFILES): Remove os9kread.c.
6394 (os9kread.o, remote-os9k.o): Make target obsolete.
6395 * remote-os9k.c: Make file obsolete.
6396 * os9kread.c: Make file obsolete.
6399 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6401 * NEWS: Mention that the FR30 has been made obsolete.
6402 * fr30-tdep.c: Make file obsolete.
6403 * config/fr30/tm-fr30.h: Ditto.
6404 * config/fr30/fr30.mt: Ditto.
6405 * configure.tgt: Make fr30-*-elf obsolete.
6406 * MAINTAINERS: Make fr30-elf obsolete.
6408 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6410 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6411 found is not inside a section.
6413 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6415 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6417 (pdc_realloc): Use xrealloc() instead of realloc().
6419 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6421 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6422 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6423 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6426 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6428 * aix-thread.c (ptrace_check): Eliminate goto.
6429 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6432 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6434 * aix-thread.c (gdbcmd.h): Include.
6435 (DEBUG, DBG, DBG2, dbg): Eliminate.
6436 (debug_aix_thread): New static global.
6437 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6438 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6439 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6440 invocations to DBG and DBG2 macros to test against
6441 ``debug_aix_thread'' and call fprintf_unfiltered().
6442 (_initialize_aix_thread): Add new command "set debug aix-thread".
6444 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6446 From Gerhard Tonn <TON@de.ibm.com>:
6447 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6448 instead of supply_register.
6450 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6452 * dwarf2cfi.c: Include "gdb_assert.h".
6453 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6455 (update_context): Do not use __func__. Add missing ``break''.
6456 (update_context): Do not use __func__.
6458 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6460 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6461 and its setting. Set gdbarch instruction printing functions
6462 directly. For non-rs6000 case use new function
6463 gdb_print_insn_powerpc.
6464 (gdb_print_insn_powerpc): New function.
6466 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6468 * NEWS: Mention that the d30v has been marked obsolete.
6469 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6470 * configure.tgt: Mark d30v-*-* as obsolete.
6471 * d30v-tdep.c: Mark file as obsolete.
6472 * config/d30v/d30v.mt: Ditto.
6473 * config/d30v/tm-d30v.h: Ditto.
6475 2002-07-13 Aidan Skinner <aidan@velvet.net>
6477 * ada-tasks.c (add_task_entry): replace calls to
6478 malloc() with xmalloc
6479 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6481 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6482 ada_finish_decode_line_1, all_sals_for_line
6483 ada_breakpoint_rewrite): replace calls to free() with xfree()
6485 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6487 From Nicholas Duffek (with minor changes by Martin Hunt,
6488 Louis Hamilton, and Kevin Buettner):
6489 * aix-thread.c: New file.
6491 2002-07-12 Petr Sorfa <petrs@caldera.com>
6493 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6494 complaint for invalid attribute class or form.
6495 (read_func_scope): DW_AT_frame_base
6496 better handling of DW_AT_block*.
6497 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6498 better handling of DW_AT_block*.
6499 (read_common_block): DW_AT_location
6500 better handling of DW_AT_block*.
6501 (read_partial_die): DW_AT_location better handling
6503 (new_symbol): DW_AT_external better handling of
6504 DW_AT_block*. Proper initialization of variable
6506 (attr_form_is_block): New function that returns true
6507 if the attribute's form is of DW_FORM_block*.
6509 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6511 * valops.c (find_method_list): Remove comment about
6512 removed STATIC_MEMFUNCP argument.
6513 (value_find_oload_method_list): Likewise.
6515 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6517 From Nicholas Duffek:
6518 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6519 target_new_objfile_hook.
6521 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6523 From Nicholas Duffek:
6524 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6527 2002-07-12 Andrew Cagney <cagney@redhat.com>
6529 * MAINTAINERS: Mention --enable-sim-build-warnings.
6530 (m68hc11-elf): Disable sim build warnings.
6531 (m32r-elf): Mark as broken obsolete candidate.
6532 (x86_64-linux-gnu): Mark as buildable with -Werror.
6533 (arm-elf): Change -w to ``,'' which enables warnings but not
6536 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6538 * bcache.h: Update copyright.
6539 (struct bstring, struct bcache): Move definition to "bcache.c".
6540 Replaced by opaque declaration.
6541 (bcache_xfree): Replace free_bcache.
6542 (bcache_xmalloc, bcache_memory_used): Declare.
6544 * bcache.c: Update copyright.
6545 (struct bstring, struct bcache): Moved to here from "bcache.h".
6547 (bcache_xmalloc, bcache_memory_used): New functions.
6548 (bcache_xfree): Replace function free_bcache.
6550 * Makefile.in (objfiles.o): Add $(bcache_h).
6551 (objfiles_h): Remove $(bcache_h).
6552 (symfile.o): Add $(bcache_h).
6554 * symmisc.c: Update copyright.
6555 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6556 (print_objfile_statistics): Use bcache_memory_used.
6558 * symfile.c: Include "bcache.h".
6559 (reread_symbols): Use bcache_xfree.
6560 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6561 (add_psymbol_to_list): Pass psymbol_cache by value.
6562 (add_psymbol_with_dem_name_to_list): Ditto.
6564 * objfiles.h: Update copyright.
6565 (struct bcache): Declare opaque. Do not include "bcache.h".
6566 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6568 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6570 * objfiles.c: Include "bcache.h". Update copyright.
6571 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6573 (free_objfile): Use bcache_xfree.
6575 2002-07-11 Grace Sainsbury <graces@redhat.com>
6577 * monitor.c (monitor_fetch_register): Make name a constant.
6578 (monitor_store_register): Same.
6580 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6582 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6583 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6584 (finish_block) For non-function blocks, hash the symbol table. For
6585 function blocks, mark the symbol table as unhashed.
6586 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6587 (msymbol_hash_iw): Likewise.
6588 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6590 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6591 (lookup_minimal_symbol): Likewise for both.
6592 * symtab.h (struct block): Add `hashtable' flag. Comment the
6594 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6595 (ALL_BLOCK_SYMBOLS): Update.
6596 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6597 (struct symbol): Add `hash_next' pointer.
6598 * symtab.c (lookup_block_symbol): Search using the hash table when
6600 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6601 (search_symbols, find_addr_symbol): Likewise.
6603 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6604 (read_dst_symtab): Likewise.
6605 * jv-lang.c (get_java_class_symtab): Likewise.
6606 * mdebugread.c: Include "gdb_assert.h".
6607 (shrink_block): Assert that the block being modified is not hashed.
6608 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6609 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6611 (dump_symtab): Recognize hashed blocks.
6612 * printcmd.c (print_frame_args): Assert that function blocks do not
6613 have hashed symbol tables.
6614 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6615 (fill_in_ada_prototype, debug_print_block): Likewise.
6616 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6618 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6620 * stack.c (print_frame): Use result of frame_address_in_block()
6621 instead of fi->pc when evaluating symbols.
6622 (backtrace_command_1): Ditto.
6624 2002-07-11 Andrew Cagney <cagney@redhat.com>
6626 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6629 * arm-tdep.c (arm_register_name): Make return type constant.
6631 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6633 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6635 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6636 * s390-tdep.c (s390_fp_regnum): Ditto.
6637 (s390_read_fp): Ditto.
6638 (s390_pop_frame): Ditto.
6639 (_initialize_s390_tdep): Ditto.
6640 * remote.c (get_remote_state): Ditto.
6641 * procfs.c (mappingflags): Ditto.
6642 * memattr.c (_initialize_mem): Ditto.
6643 * mcore-tdep.c (mcore_pop_frame): Ditto.
6644 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6645 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6646 * language.c (set_case_str): Ditto.
6647 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6648 * frv-tdep.c (new_variant): Ditto.
6649 (frv_stopped_data_address): Ditto.
6650 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6651 (context_alloc): Ditto.
6652 (frame_state_alloc): Ditto.
6653 (unwind_tmp_obstack_init): Ditto.
6654 (unwind_tmp_obstack_free): Ditto.
6655 (cfi_read_fp): Ditto.
6656 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6657 (cris_pop_frame): Ditto.
6658 * c-lang.c (scanning_macro_expansion): Ditto.
6659 (finished_macro_expansion): Ditto.
6660 (c_preprocess_and_parse): Ditto.
6661 * gdbarch.sh: Ditto.
6662 * gdbarch.h, gdbarch.c: Regenerate.
6663 * config/mn10200/tm-mn10200.h: Adjust indentation.
6664 * target.c: Adjust indentation.
6665 * symtab.h: Adjust indentation.
6666 * stabsread.h: Adjust indentation.
6667 * remote-es.c: Adjust indentation.
6668 * os9kread.c: Adjust indentation.
6670 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6672 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6673 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6675 2002-07-10 Grace Sainsbury <graces@redhat.com>
6677 * NEWS: Mention m68k, mcore multi-arching.
6678 * MAINTAINERS: Change status of m68k, mcore to reflect
6681 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6683 * valops.c (find_overload_match): Free oload_syms.
6685 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6687 Define HAVE_SYS_PROC_H if sys/proc.h exists
6688 * configure.in: Add check for sys/proc.h
6689 * config.in: Regenerate.
6690 * configure: Regenerate.
6692 2002-07-09 Grace Sainsbury <graces@redhat.com>
6694 * config/m68k/tm-m68k.h: Remove macros wrapped in
6695 #if !GDB_MULTI_ARCH.
6697 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6699 * config.in, configure: Regenerate.
6701 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6703 * dwarf2cfi.c: Include "gcore.h".
6704 (execute_stack_op): Fix implementation of the
6705 DW_OP_deref and DW_OP_deref_size operators by letting do their
6706 lookup in the target.
6708 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6710 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6711 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6714 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6716 Fix PR gdb/595, gdb/602
6717 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6718 Don't call value_cast, just read the vtable pointer; update comments
6721 2002-07-05 Grace Sainsbury <graces@redhat.com>
6723 * config/mcore/tm-mcore.h: Remove file.
6724 * config/mcore/mcore.mt: Remove definition of TM_FILE
6725 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6727 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6729 * i386bsd-tdep.c: Include "gdb_string.h".
6731 2002-07-04 Grace Sainsbury <graces@redhat.com>
6733 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6734 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6736 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6737 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6738 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6739 (RETVAL_REGNUM): Move macros from tm-mcore.h
6740 (mcore_reg_struct_has_addr): New function.
6741 (mcore_gdbarch_init): Added initializations for the macros removed
6744 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6746 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6747 traditonal string branding within the ELF header.
6749 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6751 * symtab.c (remove_params): New function.
6752 (make_symbol_overload_list): Use it instead of cplus_demangle.
6753 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6755 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6757 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6759 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6761 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6762 and tdep->sigtramp_end.
6763 * i386obsd-nat.c: New file.
6764 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6766 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6767 Don't call get_current_frame().
6769 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6771 * i386-nat.c (child_post_startup_inferior): New function
6772 calling i386_cleanup_dregs if
6773 I386_USE_GENERIC_WATCHPOINTS is defined.
6774 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6775 conditional to acknowledge that i386-nat.c has its
6776 own child_post_startup_inferior function.
6778 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6780 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6781 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6782 instead of MAX_REGISTER_RAW_SIZE.
6783 (i386_extract_return_value, i386_extract_struct_value_address):
6784 Convert to use regcache.
6785 (i386_gdbarch_init): Set max_register_raw_size and
6786 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6787 Set extract_return_value and extract_struct_value_address instead
6788 of their deprecated variants.
6790 Convert i386 target to generic dummy frames.
6791 * i386-tdep.c: Include "symfile.h".
6792 (i386_frameless_signal_p): Consider a function to be frameless if
6793 the pc points at the first instruction of the function.
6794 (i386_frame_chain): Handle (generic) call dummies.
6795 (i386_frame_saved_pc): Likewise.
6796 (i386_frame_init_saved_regs): Remove code dealing with call
6797 dummies on the stack.
6798 (i386_push_dummy_frame): Removed.
6799 (i386_call_dummy_words): Removed.
6800 (i386_fix_call_dummy): Removed.
6801 (i386_push_return_address): New function.
6802 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6803 parameter, and don't call get_current_frame.
6804 (i386_pop_frame): New function.
6805 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6806 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6807 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6808 call_dummy_length to 0, set call_dummy_words to NULL, set
6809 sizeof_call_dummy_words to 0, set fix_call_dummy to
6810 generic_fix_call_dummy, set pc_in_call_dummy to
6811 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6812 generic_push_dummy_frame, set push_return_address to
6813 i386_push_return_address and set frame_chain_valid to
6814 generic_file_frame_chain_valid.
6816 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6818 * gdbarch.sh (struct regcache): Add opaque declaration.
6819 (EXTRACT_RETURN_VALUE): New architecture method.
6820 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6821 * gdbarch.h, gdbarch.c: Regenerate.
6822 * arch-utils.c (legacy_extract_return_value): New function.
6823 * arch-utils.h (legacy_extract_return_value): Declare.
6824 * values.c (value_being_returned): Re-enable code handling
6825 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6826 deprecated_grub_regcache_for_registers call to block handling
6827 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6828 (EXTRACT_RETURN_VALUE): Do not define.
6830 2002-07-03 Grace Sainsbury <graces@redhat.com>
6832 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6833 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6834 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6835 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6836 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6837 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6838 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6839 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6840 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6841 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6842 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6843 argument so the function fits the prototype in the architecture
6845 (mcore_pop_frame): Remove argument so the function fits the
6846 prototype. Use get_current_frame instead of the argument.
6847 (mcore_push_arguments): Change type of struct_return so the
6848 function can be used in the architecture vector.
6849 (mcore_store_struct_return): Add.
6850 (mcore_frame_init_saved_regs): Add.
6851 (mcore_gdbarch_init): Add function calls to replace the macros
6852 removed from tm-mcore.h
6854 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6856 * infcmd.c (print_return_value): Remove compatibility code calling
6857 deprecated_grub_regcache_for_registers.
6859 * values.c: Include "regcache.h".
6860 (value_being_returned): Update. Use
6861 deprecated_grub_regcache_for_registers to extract the register
6863 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6864 ``struct regcache''.
6865 * Makefile.in (values.o): Add dependency on $(regcache_h).
6867 * inferior.h (run_stack_dummy): Change type of second parameter to
6868 a ``struct regcache''.
6869 * valops.c (hand_function_call): Change type of retbuf to ``struct
6870 regcache''. Allocate using regcache_xmalloc, clean using
6871 make_cleanup_regcache_xfree.
6872 * infcmd.c (run_stack_dummy): Update. Use
6873 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6875 * regcache.c (do_regcache_xfree): New function.
6876 (make_cleanup_regcache_xfree): New function.
6877 * regcache.h (make_cleanup_regcache_xfree): Declare.
6879 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6881 * event-top.c (command_line_handler): Don't read past
6882 beginning of buffer.
6884 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6886 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6888 (varobj_create): Store frame_id for root.
6889 (varobj_gen_name): Use xasprintf.
6890 (varobj_update): Save and restore frame using get_frame_id() and
6892 (create_child): Use xasprintf.
6893 (new_root_variable): Initialize frame_id.
6894 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6895 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6896 to prevent memory leak.
6898 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6900 * valops.c (hand_function_call): Move declaration of retbuf to
6901 start of function, allocate using malloc, add a cleanup but before
6902 the inf_status cleanup, cleanup the buffer. Rename local variable
6903 old_chain to inf_status_cleanup.
6905 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6907 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6909 * cli/cli-decode.c (cmd_func_p): New function.
6910 (cmd_func): New function.
6912 * command.h: Add cmd_func() and cmd_func_p().
6914 2002-07-03 Grace Sainsbury <graces@redhat.com>
6916 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6917 (REGISTER_SIZE): Remove.
6918 (MAX_REGISTER_RAW_SIZE): Remove.
6919 (REGISTER_VIRTUAL_TYPE): Remove.
6920 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6921 (REGISTER_NAME): Remove.
6922 (USE_GENERIC_DUMMY_FRAMES): Remove.
6923 (CALL_DUMMY): Remove.
6924 (CALL_DUMMY_START_OFFSET): Remove.
6925 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6926 (CALL_DUMMY_LOCATION): Remove.
6927 (FIX_CALL_DUMMY): Remove.
6928 (CALL_DUMMY_ADDRESS): Remove.
6929 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6930 (SAVE_DUMMY_FRAME_TOS): Remove.
6931 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6932 (mcore_register_virtual_type): New function.
6933 (mcore_register_byte): New function.
6934 (mcore_register_size): New function.
6935 (mcore_register_name): New function.
6936 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6937 macros removed from tm-mcore.h.
6938 (mcore_dump_tdep): Add.
6939 (_initialize_mcore_tdep): Add gdbarch_register call.
6941 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6943 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6944 frameless_look_for_prologue, such that we actually call this
6947 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6949 * frame.h (frame_address_in_block): New function.
6951 * blockframe.c (frame_address_in_block): New function extracted
6952 from get_frame_block().
6953 (get_frame_block): Use frame_address_in_block().
6954 (block_innermost_frame): Use frame_address_in_block() to match
6955 the frame pc address against the block boundaries rather than
6956 the frame pc directly. This prevents a failure when a frame pc
6957 is actually a return-address pointing immediately after the end
6960 2002-07-02 Grace Sainsbury <graces@redhat.com>
6962 * MAINTAINERS: Add self under write after approval.
6964 2002-07-02 Grace Sainsbury <graces@redhat.com>
6966 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6967 used in architecture vector. The default is
6968 m68k_local_breakpoint_from_pc.
6969 (m68k_local_breakpoint_from_pc): Add.
6970 (enum): Add register numbers from tm-m68k.h.
6971 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6973 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6974 GDB_MULTI_ARCH_PARTIAL.
6975 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6976 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6978 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6979 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6980 to enum in m68k-tdep.c
6982 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6984 * solib-osf.c (open_map): Compute the list of shared libraries
6985 loaded by the inferior, rather than the list of libraries loaded
6986 by GDB itself. Otherwise, GDB ends up reading the symbols from
6987 the wrong shared libraries...
6989 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6991 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6992 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6994 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6996 (FRAMELESS_SIGNAL): Remove function.
6997 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6998 i386_linux_saved_pc_after_call): Removed.
6999 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7000 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7001 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7003 * i386-tdep.c (i386_frameless_signal_p): New function.
7004 (i386_frame_chain): Deal with frameless signals.
7005 (i386_sigtramp_saved_sp): New function.
7006 (i386_frame_saved_pc): Deal with frameless signals.
7007 (i386_saved_pc_after_call): Make sure the correct value is
7008 returned just after entry into a sigtramp.
7009 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7010 i386fbsd4_sc_sp_offset): New variables.
7011 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7012 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7013 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7014 similiar to what we already did for sc_pc_offset.
7015 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7018 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7020 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7022 * config/i386/tm-x86-64linux.h: New.
7023 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7025 * config/i386/nm-x86-64.h: Rename to ...
7026 * config/i386/nm-x86-64linux.h: ... this one.
7027 * config/i386/x86-64linux.mh: Reflect the above change.
7029 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7031 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7032 with sigcontext_addr. Add sc_sp_offset.
7033 (i386bsd_sigtramp_saved_pc): Remove prototype.
7034 (i386bsd_sicontext_addr): Add prototype.
7035 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7036 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7037 (i386_svr4_sigtramp_saved_pc): Removed.
7038 (i386_svr4_sigcontext_addr): New function.
7039 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7040 Initialize tdep->sigcontext_addr instead. Initialize
7041 tdep->sc_pc_offset and tdep->sc_sp_offset.
7042 (i386_gdbarch_init): Likewise.
7043 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7045 (i386bsd_sigtramp_saved_pc): Remove function.
7046 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7047 Initialize tdep->sigcontext_addr instead. Initialize
7049 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7050 of tdep->sigtramp_saved_pc.
7051 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7052 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7055 * i386-tdep.c (i386_frameless_function_invocation,
7056 i386_frame_num_args, i386_frame_init_saved_regs,
7057 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7058 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7059 i386_extract_return_value, i386_store_return_value,
7060 i386_extract_struct_value_address, i386_register_virtual_type,
7061 i386_register_convertible, i386_register_convert_to_virtual,
7062 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7063 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7066 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7068 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7070 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7071 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7072 this macro. Include "value.h".
7074 2002-06-30 Aidan Skinner <aidan@velvet.net>
7076 * ada-exp.tab.c: remove as it's a generated file
7077 * ada-lex.c: remove as it's a generated file
7079 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7081 * config/i386/tm-i386.h (struct frame_info, struct
7082 frame_saved_regs, struct value, struct type): Remove forward
7085 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7086 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7087 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7088 (FILL_FPXREGSET): Define.
7090 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7092 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7093 i[3456]86-*-netbsd* case.
7094 * config/i386/tm-obsd.h: Removed.
7095 * config/i386/obsd.mt: Removed.
7096 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7098 (MH_CFLAGS): Add -DYYDEBUG=0.
7100 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7101 i386nbsd_sc_pc_offset on OpenBSD too.
7103 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7104 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7105 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7107 * i386bsd-tdep.c: Include "arch-utils.h".
7108 (i386bsd_aout_in_solib_call_trampoline): New function.
7109 (i386bsd_init_abi): Set in_solib_call_trampoline to
7110 i386bsd_aout_in_solib_call_trampoline.
7111 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7112 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7114 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7116 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7117 (struct obstack, struct bcache): Add opaque declarations.
7118 * Makefile.in (macrotab_h): Update
7120 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7122 * blockframe.c (generic_find_dummy_frame): Change return type to
7123 ``struct regcache''.
7124 (struct dummy_frame): Replace field ``registers'' with regcache, a
7125 struct regcache object.
7126 (generic_find_dummy_frame): Update.
7127 (generic_push_dummy_frame): Update. Use regcache_xfree,
7128 regcache_xmalloc and regcache_cpy.
7129 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7131 (deprecated_generic_find_dummy_frame): Update.
7132 (generic_read_register_dummy): Update. Use
7133 regcache_read_as_address.
7134 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7135 (generic_get_saved_register): Update. Use regcache_read.
7137 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7139 * Makefile.in (objfiles_h): Add $(bcache_h).
7140 * objfiles.h: Include "bcache.h".
7142 * Makefile.in (symtab_h): Remove $(bcache_h).
7143 * symtab.h: Do not include "bcache.h".
7145 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7147 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7148 generic_func_frame_chain_valid.
7150 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7152 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7153 * config/i386/tm-fbsd.h: Likewise.
7155 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7157 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7158 generic_unwind_get_saved_register.
7160 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7162 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7163 * regcache.c (supply_register): Add missing argument to
7164 register_buffer call.
7166 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7168 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7169 Solaris /bin/grep does not not like it. From Peter Schauer.
7171 2002-06-26 Tom Tromey <tromey@redhat.com>
7173 * command.h (add_setshow_cmd): Declare.
7174 (add_setshow_cmd_full): Declare.
7175 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7176 returns void. Use add_setshow_cmd_full.
7177 (add_setshow_cmd_full): New function.
7178 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7179 (add_setshow_boolean_cmd): Likewise.
7181 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7183 * config/vax/tm-vax.h: Protect from multiple inclusion.
7184 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7185 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7186 * config/vax/tm-vaxbsd.h: ...here. New file.
7187 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7189 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7191 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7192 (BELIEVE_PCC_PROMOTION): Remove.
7193 (AP_REGNUM): Move to...
7194 * config/vax/nm-vax.h: ...here.
7195 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7196 (vax_breakpoint_from_pc): New function.
7197 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7198 and gdbarch_believe_pcc_promotion.
7200 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7202 * Makefile.in (vax_tdep_h): Define.
7203 (vax-tdep.o): Use $(vax_tdep_h).
7204 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7205 (vax_dump_tdep): New function.
7206 (_initialize_vax_tdep): Register vax_dump_tdep.
7207 * vax-tdep.h: Include osabi.h.
7208 (struct gdbarch_tdep): New.
7210 2002-06-26 Andrew Cagney <cagney@redhat.com>
7212 * frame.h (deprecated_generic_find_dummy_frame): Rename
7213 generic_find_dummy_frame.
7214 * blockframe.c (generic_find_dummy_frame): Make static.
7215 (deprecated_generic_find_dummy_frame): New function.
7216 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7217 generic_find_dummy_frame with deprecated_find_dummy_frame.
7218 (sh64_nofp_frame_init_saved_regs): Ditto.
7219 (sh_fp_frame_init_saved_regs): Ditto.
7220 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7221 (s390_frame_chain): Ditto.
7222 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7224 2002-06-26 Grace Sainsbury <graces@redhat.com>
7226 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7227 gdbarch vector are at the top.
7229 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7230 (FRAME_ARGS_ADDRESS): Remove.
7231 (FRAME_LOCALS_ADDRESS): Remove.
7232 (FRAME_NUM_ARGS): Remove.
7233 (FRAME_ARGS_SKIP): Remove.
7234 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7235 (m68k_gdbarch_init): Add gdbarch initializations for macros
7236 undefined in tm-m68k.h
7238 2002-06-26 Grace Sainsbury <graces@redhat.com>
7240 * monitor.h: Add the function regname to monitor_ops
7241 structure. This way NUM_REGS does not have to be a constant.
7242 * monitor.c (monitor_fetch_register): Added support for regname
7243 function. The function is called if the array regnames is NULL.
7244 (monitor_store_register): Same.
7245 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7247 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7248 cpu32bug_cmds.regname to point to new function.
7249 * abug-rom.c (abug_regname): Same as above.
7250 (init_abug_cmds): Same.
7251 * dbug-rom.c (dbug_regname): Same as above.
7252 (init_dbug_cmds): Same.
7253 * remote-est.c (est_regname): Same.
7254 (init_est_cmds): Same.
7255 * rom68k-rom.c (rom68k_regname): Same.
7256 (init_rom68k_cmds): Same.
7258 2002-06-25 Tom Tromey <tromey@redhat.com>
7260 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7262 2002-06-25 Andrew Cagney <cagney@redhat.com>
7264 * infrun.c (stop_registers): Change variable's type to ``struct
7266 (xmalloc_inferior_status): Delete function.
7267 (free_inferior_status): Delete function.
7268 (normal_stop): Use regcache_cpy.
7269 (struct inferior_status): Change type of fields ``stop_registers''
7270 and ``registers'' to ``struct regcache''.
7271 (write_inferior_status_register): Use regcache_write.
7272 (save_inferior_status): Instead of calling
7273 xmalloc_inferior_status, allocate the inf_status buffer directly.
7274 Use regcache_dup_no_passthrough and regcache_dup to save the
7276 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7277 Replace the stop_registers regcache instead of overriding it. Use
7278 regcache_xfree. Instead of calling free_inferior_status, xfree
7279 the buffer directly.
7280 (discard_inferior_status): Use regcache_xfree. Instead of calling
7281 free_inferior_status, xfree the buffer directly.
7282 (build_infrun): Use regcache_xmalloc.
7283 (_initialize_infrun): Delete redundant call to build_infrun.
7285 * Makefile.in (infcmd.o): Add $(regcache_h).
7287 * infcmd.c: Include "regcache.h".
7288 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7289 obtain the address of `stop_registers' register buffer.
7290 (print_return_value): Ditto.
7292 * inferior.h (struct regcache): Add opaque declaration.
7293 (stop_registers): Change variable's declared type to ``struct
7296 2002-06-24 Tom Tromey <tromey@redhat.com>
7298 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7299 * target.c (initialize_targets): Fixed typo in
7300 trust-readonly-sections `show' documentation.
7302 * main.c: Marked all strings with _().
7304 2002-06-24 Don Howard <dhoward@redhat.com>
7306 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7307 that means max CORE_ADDR+1.
7308 (lookup_mem_region): Ditto.
7309 (mem_info_command): Ditto.
7311 2002-06-24 Grace Sainsbury <graces@redhat.com>
7313 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7314 (REGISTER_BYTES_OK): Remove.
7315 (REGISTER_BYTES): Remove.
7316 (STORE_STRUCT_RETURN): Remove.
7317 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7318 (STORE_RETURN_VALUE): Remove.
7319 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7320 (FRAME_CHAIN): Remove.
7321 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7322 (FRAME_SAVED_PC): Remove.
7323 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7324 (m68k_store_struct_return): Add.
7325 (m68k_deprecated_extract_return_value): Add.
7326 (m68k_deprecated_extract_struct_value_address): Add.
7327 (m68k_store_return_value): Add.
7328 (m68k_frame_chain): Add.
7329 (m68k_frameless_function_invocation): Add.
7330 (m68k_frame_saved_pc): Add.
7331 (m68k_gdbarch_init): added set_gdbarch calls for new
7332 functions and deleted macros.
7334 2002-06-23 Tom Tromey <tromey@redhat.com>
7336 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7337 (ALLDEPFILES): Likewise.
7338 (udiheaders): Removed.
7339 (udip2soc.o): Likewise.
7340 (udi2go32.o): Likewise.
7342 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7344 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7346 * infrun.c (_initialize_infrun): Delete unnecessary call to
7349 * regcache.h: Update comments describing the regcache_cpy family
7351 (regcache_save, regcache_restore): Delete declaration.
7352 (regcache_save_no_passthrough): Delete declaration.
7353 (regcache_restore_no_passthrough): Delete declaration.
7354 * regcache.c (regcache_save): Delete function.
7355 (regcache_save_no_passthrough): Delete function.
7356 (regcache_restore): Delete function.
7357 (regcache_restore_no_passthrough): Delete function.
7359 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7361 * config/m68k/tm-m68k.h: Fix typo.
7362 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7363 (m68k_frame_init_saved_regs): Declare.
7365 2002-06-21 Jim Blandy <jimb@redhat.com>
7367 Remove some vestiges of Harris 88k support.
7368 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7369 register numbering quirk.
7370 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7371 odd symbols occurring in Harris 88k ELF targets.
7373 2002-06-21 Tom Tromey <tromey@redhat.com>
7375 * gdb_locale.h: New file.
7376 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7377 (defs_h): Added gdb_locale.h.
7378 * configure, config.in: Rebuilt.
7379 * configure.in (PACKAGE): Define.
7380 * defs.h: Include gdb_locale.h.
7381 * main.c (captured_main): Call setlocale, bindtextdomain,
7384 2002-06-21 Dave Brolley <brolley@redhat.com>
7386 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7387 * config/frv/frv.mt: New file.
7388 * config/frv/tm-frv.h: New file.
7389 * configure.tgt: Support frv-*-*.
7390 * Makefile.in (frv-tdep.o): New target.
7391 * frv-tdep.c: New file.
7392 * NEWS: Mention frv.
7394 2002-06-21 Dave Brolley <brolley@redhat.com>
7396 * MAINTAINERS: Add self to "Write After Approval" list.
7398 2002-06-21 Grace Sainsbury <graces@redhat.com>
7400 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7401 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7402 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7403 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7404 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7406 * m68k-tdep.c: Include arch-utils.h
7407 (m68k_register_raw_size): Add.
7408 (m68k_register_virtual_size): Add.
7409 (m68k_register_virtual_type): Add.
7410 (m68k_register_name): Add.
7411 (m68k_stack_align): Add.
7412 (m68k_register_byte): Add.
7413 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7416 2002-06-21 Grace Sainsbury <graces@redhat.com>
7418 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7419 m68k_find_saved_regs.
7420 (m68k_pop_frame): Removed saved_regs structure, and replaced
7421 references to it with frame->saved_regs.
7422 (m68k_gdbarch_init): Added function calls to initialize the
7424 (m68k_fix_call_dummy): Add.
7425 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7426 (CALL_DUMMY): Remove.
7427 (CALL_DUMMY_LENGTH): Remove.
7428 (CALL_DUMMY_START_OFFSET): Remove.
7429 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7430 (FIX_CALL_DUMMY): Remove.
7431 (PUSH_DUMMY_FRAME): Remove.
7432 (POP_FRAME): Remove.
7434 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7436 * parse.c (parse_fprintf): New function used to avoid calls to
7437 fprintf in bison parser generated debug code.
7438 * parser-defs.h: Declaration of new parse_fprintf function.
7439 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7440 Set YYDEBUG to 1 by default.
7441 Set YYFPRINTF as parse_fprintf.
7443 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7445 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7447 (pointer_encoding, enum ptr_encoding): New.
7448 (execute_cfa_program): Take care about pointer encoding.
7449 (dwarf2_build_frame_info): Only call parse_frame_info for
7450 .debug_frame and .eh_frame.
7451 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7452 fixed augmentation handling, added relative addressing,
7453 ignore duplicate FDEs. Added comments.
7454 * dwarf2cfi.c: Reindented.
7456 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7458 * event-top.c (command_handler): Don't use space_at_cmd_start
7459 unless there is sbrk() on the host. Assign time and space data
7460 to union fields of the appropriate length.
7462 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7464 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7465 x86_64_register_name. Return type changed to 'const char *'.
7466 (x86_64_register_name2nr): Rename to x86_64_register_number.
7467 (x86_64_gdbarch_init): Update to reflect the change.
7468 * x86-64-tdep.h: Ditto.
7469 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7470 (supply_fpregset): Ditto.
7472 2002-06-19 Andrew Cagney <cagney@redhat.com>
7474 * regcache.h: Update copyright.
7475 (struct regcache, struct gdbarch): Add opaque declarations.
7476 (current_regcache): Declare global variable.
7477 (regcache_read, regcache_write): Add gdbarch parameter.
7478 (regcache_save, regcache_save_no_passthrough)
7479 (regcache_restore, regcache_restore_no_passthrough)
7480 (regcache_dup, regcache_dup_no_passthrough)
7481 (regcache_cpy, regcache_cpy_no_passthrough)
7482 (deprecated_grub_regcache_for_registers)
7483 (deprecated_grub_regcache_for_register_valid)
7484 (regcache_valid_p): Add function declarations.
7486 * regcache.c: Update copyright.
7487 (regcache_descr_handle): New global variable.
7488 (struct regcache_descr): Define.
7489 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7490 (regcache_descr, xfree_regcache_descr): New functions.
7491 (struct regcache): Define.
7492 (regcache_xmalloc, regcache_xfree): New functions.
7493 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7494 (regcache_dup, regcache_dup_no_passthrough): New functions.
7495 (regcache_valid_p, regcache_read_as_address): New functions.
7496 (deprecated_grub_regcache_for_registers): New function.
7497 (deprecated_grub_regcache_for_register_valid): New function.
7498 (current_regcache): New global variable.
7499 (register_buffer): Add regcache parameter. Update calls.
7500 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7501 (read_register_gen, write_register_gen): Update register_buffer
7502 call. Test for legacy_p instead of gdbarch_register_read_p or
7503 gdbarch_register_write_p.
7504 (regcache_collect): Update register_buffer call.
7505 (build_regcache): Rewrite. Use deprecated grub functions.
7506 (regcache_save, regcache_save_no_passthrough): New functions.
7507 (regcache_restore, regcache_restore_no_passthrough): New
7509 (_initialize_regcache): Create the regcache_data_handle. Swap
7510 current_regcache global variable.
7512 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7513 parameter to regcache_read and regcache_write calls.
7514 (sh4_register_read): Ditto.
7515 (sh64_pseudo_register_read): Ditto.
7516 (sh64_register_read): Ditto.
7517 (sh_pseudo_register_write): Ditto.
7518 (sh4_register_write): Ditto.
7519 (sh64_pseudo_register_write): Ditto.
7520 (sh64_register_write): Ditto.
7522 * defs.h (XCALLOC): Define.
7524 2002-06-19 Grace Sainsbury <graces@redhat.com>
7526 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7527 * m68k-tdep.c (m68k_gdbarch_init): Added.
7528 (m68k_dump_tdep): Added.
7530 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7532 * ada-lang.c (fill_in_ada_prototype): Update comment.
7534 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7536 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7538 (mips_abi_string, mips_abi_strings): New.
7539 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7540 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7541 tdep->mips_abi_string. Honor mips_abi_string. Default to
7542 O32 if no ABI is found.
7543 (mips_dump_tdep): Use mips_abi_strings.
7544 (mips_abi_update): New function.
7545 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7546 ``set mips abi'' and ``show mips abi''. Check the size of
7549 2002-06-19 Andrew Cagney <cagney@redhat.com>
7551 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7554 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7556 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7557 current frame using only the first stack size adjustment. All
7558 subsequent size adjustments are not considered to be part of
7559 the "static" part of the current frame.
7560 Compute the address of the saved registers relative to the
7561 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7562 in use in this frame.
7564 2002-06-18 Don Howard <dhoward@redhat.com>
7566 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7567 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7568 suggesting this solution.
7570 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7572 * config/romp/xm-rtbsd.h: Delete file.
7573 * config/romp/rtbsd.mh: Delete file.
7575 2002-06-18 Keith Seitz <keiths@redhat.com>
7577 * breakpoint.c (condition_command): Post breakpoint_modify
7578 when a condition is added to an existing breakpoint.
7579 (commands_command): Likewise for commands.
7580 (set_ignore_count): Likewise for ignore counts.
7581 If no tty, do not simply return, still need to send event
7583 (ignore_command): Only print a newline if the command came
7585 Don't call breakpoints_changed, since this is now properly
7586 handled by set_ignore_count.
7588 2002-06-18 Andrew Cagney <cagney@redhat.com>
7590 * MAINTAINERS: Note that cris-elf target can be compiled with
7592 * cris-tdep.c (cris_register_name): Make return type constant.
7593 (cris_breakpoint_from_pc): Ditto.
7595 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7597 * frame.h (struct frame_info): Change type of context to
7600 2002-06-17 Andrew Cagney <cagney@redhat.com>
7602 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7604 * gdbarch.h, gdbarch.c: Regenerate.
7605 * config/mips/tm-mips.h (mips_register_name): Update.
7606 * i386-tdep.h (i386_register_name): Update.
7607 * mips-tdep.c (mips_register_name): Update
7608 * alpha-tdep.c (alpha_register_name): Update.
7609 * arch-utils.c (legacy_register_name): Update.
7610 * arch-utils.h (legacy_register_name): Update.
7611 * avr-tdep.c (avr_register_name): Update.
7612 * ia64-tdep.c (ia64_register_name): Update.
7613 * i386-tdep.c (i386_register_name): Update.
7614 * sparc-tdep.c (sparc32_register_name): Update.
7615 (sparc64_register_name): Update.
7616 (sparclite_register_name): Update.
7617 (sparclet_register_name): Update.
7618 * sh-tdep.c (sh_generic_register_name): Update.
7619 (sh_sh_register_name): Update.
7620 (sh_sh3_register_name): Update.
7621 (sh_sh3e_register_name): Update.
7622 (sh_sh_dsp_register_name): Update.
7623 (sh_sh3_dsp_register_name): Update.
7624 (sh_sh4_register_name): Update.
7625 (sh_sh64_register_name): Update.
7626 * s390-tdep.c (s390_register_name): Update.
7627 * rs6000-tdep.c (rs6000_register_name): Update.
7628 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7629 (ns32k_register_name_32382): Update.
7630 * d10v-tdep.c (d10v_ts2_register_name): Update.
7631 (d10v_ts3_register_name): Update.
7632 * xstormy16-tdep.c (xstormy16_register_name): Update.
7633 * vax-tdep.c (vax_register_name): Update.
7634 * v850-tdep.c (v850_register_name): Update.
7635 * m68hc11-tdep.c (m68hc11_register_name): Update.
7636 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7637 (am33_register_name): Update.
7639 2002-06-17 Grace Sainsbury <graces@redhat.com>
7641 * m68k-tdep.c: Reindented.
7643 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7645 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7646 list of predefined types.
7648 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7650 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7651 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7652 REGISTER_CONVERT_TO_RAW): Remove defines.
7653 (i386_register_virtual_type, i386_register_convertible,
7654 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7656 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7657 macros mentioned above.
7659 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7660 (i386lynx_saved_pc_after_call): Remove prototype.
7661 * i386ly-tdep.c: Include "i386-tdep.h".
7662 (i386lynx_saved_pc_after_call): Make static. Use
7663 read_memory_nobpt instead of read_memory. Use
7664 read_memory_unsigned_integer instead of read_memory_integer.
7665 (i386lynx_init_abi): New function.
7666 (i386lynx_coff_osabi_sniffer): New function.
7667 (_initialize_i386bsd_tdep): New function.
7669 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7670 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7671 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7672 (i386_fix_call_dummy): Remove prototype.
7673 * i386-tdep.c (i386_call_dummy_words): New variable.
7674 (i386_gdbarch_init): Adjust for removal of the
7675 macros mentioned above.
7677 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7679 * command.h (add_setshow_auto_boolean_cmd): Replace
7680 add_set_auto_boolean_cmd.
7681 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7682 add_set_auto_boolean_cmd.
7683 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7684 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7685 mask-address'' command.
7686 (show_mask_address): Add cmd parameter.
7687 * remote.c (add_packet_config_cmd): Update. Change type of
7688 set_func and show_func to cmd_sfunc_ftype.
7689 (_initialize_remote): Update `set remote Z-packet'
7690 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7691 (show_remote_protocol_e_packet_cmd): Ditto.
7692 (show_remote_protocol_E_packet_cmd): Ditto.
7693 (show_remote_protocol_P_packet_cmd): Ditto.
7694 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7695 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7696 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7697 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7698 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7699 (show_remote_protocol_Z_packet_cmd): Ditto.
7700 (show_remote_protocol_binary_download_cmd): Ditto.
7701 (show_remote_cmd): Pass NULL to all of above.
7703 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7705 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7706 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7707 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7708 POP_FRAME): Remove defines.
7709 (i386_push_arguments, i386_store_struct_return,
7710 i386_extract_return_value, i386_store_return_value,
7711 i386_extract_struct_value_address, i386_push_dummy_frame,
7712 i386_pop_frame): Renove prototypes.
7713 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7714 macros mentioned above.
7716 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7718 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7719 add_set_boolean_cmd.
7720 (add_setshow_cmd): New function.
7721 * command.h (add_setshow_boolean_cmd): Replace
7722 add_set_boolean_cmd.
7723 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7724 and ``set rdiromatzero''.
7725 * maint.c (_initialize_maint_cmds): Update commented out code.
7726 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7727 * target.c (initialize_targets): Update `set
7728 trust-readonly-sections'.
7729 * remote.c (_initialize_remote): Update `set remotebreak'.
7731 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7733 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7734 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7735 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7736 fit into multi-arch framework.
7737 (i386_breakpoint_from_pc): New function.
7738 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7741 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7742 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7743 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7744 (i386_frameless_function_invocation, i386_frame_num_args,
7745 i386_frame_init_saved_regs): Remove prototypes.
7746 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7747 macros mentioned above.
7749 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7751 * cli/cli-decode.c (set_cmd_cfunc): Update.
7752 (set_cmd_sfunc): Update.
7753 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7754 (set_cmd_sfunc, set_cmd_cfunc): Update.
7755 * cli/cli-decode.h: Update.
7757 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7759 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7760 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7762 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7764 * defs.h (auto_boolean): Declare enum.
7765 * command.h (cmd_auto_boolean): Delete enum.
7766 * mips-tdep.c (mask_address_var): Update.
7767 (mips_mask_address_p): Update.
7768 (show_mask_address): Update.
7769 * remote.c (struct packet_config): Update.
7770 (update_packet_config): Update.
7771 (show_packet_config_cmd): Update.
7772 (packet_ok): Update.
7773 (add_packet_config_cmd): Update.
7774 (_initialize_remote):
7775 * command.h: Update.
7776 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7777 (do_setshow_command): Update.
7778 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7779 * cli/cli-decode.h: Update.
7781 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7783 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7784 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7785 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7786 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7787 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7788 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7790 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7791 list of DJGPP COFF targets.
7793 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7794 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7795 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7796 (FP0_REGNUM): Remove define.
7797 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7798 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7799 (i386_register_virtual_size): Remove protoype.
7800 * i386-tdep.c (i386_register_virtual_size): Removed.
7801 (i386_extract_return_value, i386_store_return_value): Use
7802 FP0_REGNUM instead of NUM_FREGS to determine whether the
7803 floating-point registers are available.
7804 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7805 Adjust for removal of macros mentioned above.
7807 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7809 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7811 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7813 (supply_gregset, fill_gregset): Remove use of register keyword and
7814 remove declaration for regmap. Use I386_NUM_GREGS instead of
7815 NUM_REGS and NUM_FREGS.
7816 (FPREGSET_FSAVE_OFFSET): Remove.
7817 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7818 NUM_FREGS to determine whether the floating-point registers are
7821 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7822 gnu_store_registers): Replace usage of NUM_GREGS with
7825 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7826 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7827 usage of NUM_GREGS with I386_NUM_GREGS.
7829 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7831 * i386bsd-nat.c: Include "i386-tdep.h".
7832 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7835 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7836 and associated comment. They no longer make any sense, since we
7837 don't use this file anymore on Linux.
7839 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7840 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7841 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7842 elements in these arrays.
7843 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7846 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7848 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7849 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7851 2002-06-14 Andrew Cagney <cagney@redhat.com>
7853 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7854 EXTRACT_RETURN_VALUE.
7855 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7856 EXTRACT_STRUCT_VALUE_ADDRESS.
7857 * gdbarch.h, gdbarch.c: Regenerate.
7859 * values.c (value_being_returned): Handle
7860 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7861 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7863 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7864 * arm-tdep.c (arm_gdbarch_init): Update.
7865 * avr-tdep.c (avr_gdbarch_init): Update.
7866 * cris-tdep.c (cris_gdbarch_init): Update.
7867 * d10v-tdep.c (d10v_gdbarch_init): Update.
7868 * ia64-tdep.c (ia64_gdbarch_init): Update.
7869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7870 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7871 * s390-tdep.c (s390_gdbarch_init): Update.
7872 * sh-tdep.c (sh_gdbarch_init): Update.
7873 * s390-tdep.c (s390_gdbarch_init): Update.
7874 * sparc-tdep.c (sparc_gdbarch_init): Update.
7875 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7876 * v850-tdep.c (v850_gdbarch_init): Update.
7877 * vax-tdep.c (vax_gdbarch_init): Update.
7878 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7881 * config/arc/tm-arc.h: Update.
7882 * config/d30v/tm-d30v.h: Update.
7883 * config/fr30/tm-fr30.h: Update.
7884 * config/h8300/tm-h8300.h: Update.
7885 * config/h8500/tm-h8500.h: Update.
7886 * config/i386/tm-i386.h: Update.
7887 * config/i386/tm-ptx.h: Update.
7888 * config/i386/tm-symmetry.h: Update.
7889 * config/i960/tm-i960.h: Update.
7890 * config/m32r/tm-m32r.h: Update.
7891 * config/m68k/tm-delta68.h: Update.
7892 * config/m68k/tm-linux.h: Update.
7893 * config/m68k/tm-m68k.h: Update.
7894 * config/m88k/tm-m88k.h: Update.
7895 * config/mcore/tm-mcore.h: Update.
7896 * config/mips/tm-mips.h: Update.
7897 * config/mn10200/tm-mn10200.h: Update.
7898 * config/pa/tm-hppa.h: Update.
7899 * config/pa/tm-hppa64.h: Update.
7900 * config/sparc/tm-sp64.h: Update.
7901 * config/sparc/tm-sparc.h: Update.
7902 * config/sparc/tm-sparclet.h: Update.
7903 * config/z8k/tm-z8k.h: Update.
7905 2002-06-14 Andrew Cagney <cagney@redhat.com>
7907 * Makefile.in (i386_linux_tdep_h): Define.
7908 (i386_tdep_h, i387_tdep_h): Define.
7909 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7910 $(i386_tdep_h) and $(i387_tdep_h).
7911 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7913 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7915 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7916 Already covered by the default.
7918 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7919 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7920 (i386_gdbarch_init): Initialize long_double_format and long_double
7923 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7924 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7926 * config/i386/i386sol2.mh: ... here.
7927 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7928 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7929 (SIGCONTEXT_PC_OFFSET): Remove define.
7930 (IN_SIGTRAMP): Remove define.
7931 * i386-sol2-tdep.c: New file.
7933 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7934 * config/i386/tm-i386nw.h: Removed.
7936 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7937 USE_STRUCT_CONVENTION): Remove defines.
7938 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7939 (get_longjmp_target): Remove prototype.
7940 (IN_SIGTRAMP): Remove define.
7941 (i386bsd_in_sigtramp): Remove prototype.
7942 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7943 function. Update comment accordingly
7944 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7945 (FRAME_SAVED_PC): Remove define.
7946 (i386bsd_frame_saved_pc): Remove prototype.
7947 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7948 GET_LONGJMP_TARGET): Remove defines.
7949 (get_longjmp_target): Remove prototype.
7950 (IN_SIGTRAMP): Remove define.
7951 (i386bsd_in_sigtramp): Remove prototype.
7952 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7953 function. Update comment accordingly
7954 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7955 (FRAME_SAVED_PC): Remove define.
7956 (i386bsd_frame_saved_pc): Remove prototype.
7957 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7959 (USE_STRUCT_CONVENTION): Remove prototype.
7960 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7962 (_initialize_i386bsd_nat): Revise logic to determine some
7963 constants at compile time when compiling a native GDB. Warn if
7964 things don't match up with what we expect.
7965 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7967 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7968 to use date stored in `struct gdbarch_tdep'.
7969 (i386bsd_sigcontext_offset): Remove varaible.
7970 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7971 stored in `struct gdbarch_tdep'.
7972 (i386bsd_frame_saved_pc): Make static.
7973 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7974 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7975 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7976 i386fbsd4_sc_pc_offset): New variables.
7977 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7978 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7980 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7982 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7983 Modify the value of i386fbsd_sigtramp_start and
7984 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7985 i386fbsd_sigtramp_end.
7986 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7989 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7990 define to i386-linux-tdep.h.
7991 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7992 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7994 (i386_linux_register_name, i386_linux_register_byte,
7995 i386_linux_register_raw_size): Remove prototypes.
7996 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7997 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7998 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7999 TARGET_WRITE_PC): Remove defines.
8000 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8001 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8002 i386_linux_write_pc): Remove prototypes.
8003 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8004 (get_longjmp_target): Remove prototype.
8005 * i386-linux-tdep.h: New file.
8006 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8007 * i386-linux-tdep.c: Include "i386-tdep.h" and
8008 "i386-linux-tdep.h".
8009 (i386_linux_register_name, i386_linux_register_byte,
8010 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8011 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8013 (i386_linux_init_abi): New function.
8014 (_initialize_i386_linux_tdep): New function.
8016 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8017 (i386_saved_pc_after_call): Remove prototype.
8018 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8019 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8020 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8021 (i386_register_name, i386_stab_reg_to_regnum,
8022 i386_dwarf_reg_to_regnum): Remove prototypes.
8023 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8024 SIZEOF_SSE_REGS): Remove defines.
8025 (REGISTER_BYTES): Remove define.
8026 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8027 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8028 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8029 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8030 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8031 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8032 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8033 (get_longjmp_target): Remove prototype.
8034 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8035 (sigtramp_saved_pc): Remove define.
8036 (i386v4_sigtramp_saved_pc): Remove prototype.
8037 * config/i386/tm-go32.h (FRAME_CHAIN,
8038 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8039 (i386go32_frame_saved_pc): Remove prototype.
8040 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8041 (get_longjmp_target): Remove prototype.
8042 * i386-tdep.h: Include "osabi.h".
8043 (enum i386_abi): Removed.
8044 (enum struct_return): New enum.
8045 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8046 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8047 sc_pc_offset members.
8048 (i386_gdbarch_register_os_abi): Remove prototype.
8049 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8050 I386_SSE_NUM_REGS): New defines.
8051 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8052 I386_SSE_SIZEOF_REGS): New defines.
8053 (i386_register_name, i386_register_byte, i386_register_raw_size):
8055 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8056 (i386bsd_sigtramp_saved_pc): New prototype.
8057 * i386-tdep.c: Don't include "elf-bfd.h".
8058 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8059 i386_frame_chain, i386_saved_pc_after_call): Make static.
8060 (i386_frame_saved_pc): Rewrite to call architecture dependent
8061 function to deal with signal handlers. Make static.
8062 (i386go32_frame_saved_pc): Removed.
8063 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8065 (i386_get_longjmp_target): New function.
8066 (default_struct_convention, pcc_struct_convention,
8067 reg_struct_convention, valid_conventions, struct_convention): New
8069 (i386_use_struct_convention): New function.
8070 (i386v4_sigtramp_saved_pc): Renamed to
8071 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8072 (i386_pc_in_sigtramp): New function.
8073 (i386_abi_names): Removed.
8074 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8075 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8077 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8078 i386_gdbarch_register_os_abi): Removed.
8079 (struct i386_abi_handler): Removed.
8080 (i386_abi_handler_list): Removed.
8081 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8083 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8084 i386_nw_init_abi): New functions.
8085 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8086 Use set_gdbarch_xxx() calls instead of relying on macros for a
8088 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8089 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8090 Register the various architecture variants defined in this file.
8092 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8094 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8095 (struct main_type): Remove arg_types member. Update comments for
8097 (TYPE_ARG_TYPES): Remove.
8098 (TYPE_FN_FIELD_ARGS): Update.
8099 (smash_to_method_type): Update prototype.
8101 * c-typeprint.c (cp_type_print_method_args): Take method type
8102 instead of argument list. Use new argument layout. Simplify.
8103 (c_type_print_args): Use new argument layout. Simplify.
8104 (c_type_print_base): Update call to cp_type_print_method_args.
8105 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8106 argument; use die->type instead. Update call to
8107 smash_to_method_type.
8108 (read_structure_scope): Update call to dwarf2_add_member_fn.
8109 * gdbtypes.c (allocate_stub_method): Update comment.
8110 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8111 Use new argument layout.
8112 (check_stub_method): Use new argument layout. Don't count
8113 void as an argument.
8114 (print_arg_types): Update comments. Use new argument layout.
8115 (recursive_dump_type): Don't print arg_types member.
8116 * hpread.c (hpread_read_struct_type): Use new argument layout.
8117 (fixup_class_method_type): Likewise.
8118 (hpread_type_lookup): Likewise.
8119 * stabsread.c (read_type): Update calls to read_args and
8120 smash_to_method_type.
8121 (read_args): Use new argument layout. Simplify.
8122 * valops.c (typecmp): Use new argument layout. Update parameters
8123 and comments. Simplify.
8124 (hand_function_call): Use new argument layout.
8125 (search_struct_method): Update call to typecmp.
8126 (find_overload_match): Use new argument layout.
8128 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8130 * NEWS: Mention multithreaded debug support for gdbserver.
8132 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8134 * MAINTAINERS: Mention NEWS.
8136 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8138 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8139 (struct mips_objfile_private, compare_pdr_entries): New.
8140 (non_heuristic_proc_desc): Read the ".pdr" section if it
8143 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8145 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8146 (arm_debug): New static variable.
8147 (_initialize_arm_tdep): Add ``set debug arm'' command.
8149 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8151 * Makefile.in (sim_arm_h): Define.
8152 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8153 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8154 (arm_register_sim_regno): New function, map an internal REGNUM
8155 onto a simulator register number.
8156 (arm_gdbarch_init): Set register_sim_regno.
8158 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8160 * MAINTAINERS: Add self.
8162 2002-06-11 Jim Blandy <jimb@redhat.com>
8164 * source.c (source_info): Mention whether the symtab has
8165 information about preprocessor macros.
8167 Call the command `info macro', not `show macro'.
8168 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8170 (_initialize_macrocmd): Register `info_macro_command' in
8171 `infolist', not `showlist'.
8173 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8175 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8176 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8177 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8178 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8179 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8181 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8182 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8183 (_initialize_mips_tdep): Remove dead code.
8184 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8185 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8186 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8187 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8188 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8189 MIPS_LAST_FP_ARG_REGNUM): Remove.
8191 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8193 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8194 (unwind_tmp_obstack_free, parse_frame_info)
8195 (update_context, cfi_read_fp, cfi_write_fp)
8196 (cfi_frame_chain, cfi_init_extra_frame_info)
8197 (cfi_virtual_frame_pointer): Use the above function.
8198 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8200 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8202 * v850-tdep.c (v850_type_is_scalar): New function.
8203 (v850_use_struct_convention): Match current gcc implementation
8204 as close as possible.
8205 (v850_push_arguments): Fix stack_offset handling. Don't write
8206 struct_addr into register. This is done by v850_store_struct_return.
8207 (v850_extract_return_value): Care for structs.
8208 (v850_store_return_value): Ditto.
8209 (v850_store_struct_return): Actually write address.
8211 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8213 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8214 without debug information too.
8216 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8218 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8219 Make multi-arch pure.
8220 * gdbarch.h, gdbarch.c: Re-generate.
8221 * arm-tdep.c (arm_print_float_info): Update.
8222 * arch-utils.h (default_print_float_info): Update.
8223 * arch-utils.c (default_print_float_info): Update.
8224 * infcmd.c (float_info): Update call.
8226 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8228 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8229 the front of the initialize list.
8231 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8233 * infrun.c (struct inferior_status): Replace fields
8234 selected_frame_address and selected_level with field
8236 (save_inferior_status): Update. Use get_frame_id.
8237 (struct restore_selected_frame_args): Delete.
8238 (restore_selected_frame): Update. Use frame_find_by_id.
8239 (restore_inferior_status): Update.
8241 * breakpoint.h (struct breakpoint): Change type of
8242 watchpoint_frame to frame_id.
8243 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8244 call to get_current_frame.
8245 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8247 (watchpoint_check): Use frame_find_by_id.
8249 * frame.h (record_selected_frame): Delete declaration.
8250 * stack.c (record_selected_frame): Delete function.
8252 * frame.h (struct frame_id): Define.
8253 (get_frame_id): Declare.
8254 (frame_find_by_id): Declare.
8255 * frame.c (frame_find_by_id): New function.
8256 (get_frame_id): New function.
8258 2002-06-10 Andrey Volkov <avolkov@transas.com>
8260 * ser-e7kpc.c: Fix duplicated define and call of
8261 _initialize_ser_e7000pc
8263 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8265 * signals/signals.c (target_signal_from_host): Fix #ifdef
8267 (do_target_signal_to_host): Likewise.
8269 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8271 * mips-tdep.c (mips_find_abi_section): New function.
8272 (mips_gdbarch_init): Call it.
8274 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8276 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8277 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8278 after Andrew's 2002-06-08 gdbarch change.
8280 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8282 * i386-linux-nat.c (suppy_gregset): Don't supply
8283 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8285 (fill_gregset): Don't fetch it under the same circumstances.
8287 2002-06-09 Andrew Cagney <cagney@redhat.com>
8289 * Makefile.in (callback_h): Define.
8290 (remote_sim_h): Update path to remote-sim.h.
8291 (remote-rdp.o): Add $(callback_h).
8292 (remote-sim.o): Use $(callback_h).
8293 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8294 * remote-rdp.c: Include "gdb/callback.h".
8296 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8298 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8299 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8301 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8303 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8304 * rdi-share/serpardr.c: Ditto.
8305 * rdi-share/unixcomm.c: Ditto.
8306 * rdi-share/serdrv.c: Ditto.
8307 * rdi-share/hostchan.h: Ditto.
8308 * rdi-share/hostchan.c: Ditto.
8309 * rdi-share/host.h: Ditto.
8310 * rdi-share/devsw.c: Ditto.
8312 * objfiles.h: Change type of obj_private to void pointer.
8313 * pa64solib.c: Update copyright. Don't include "assert.h", use
8314 strcmp instead of STREQ, use LONGEST, do not use PTR
8315 * somsolib.c: Ditto.
8317 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8318 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8319 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8321 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8323 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8324 (default_get_saved_register): Delete function.
8325 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8326 generic_unwind_get_saved_register.
8327 * gdbarch.h, gdbarch.c: Re-generate.
8329 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8331 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8332 generic_func_frame_chain_valid.
8333 * gdbarch.h, gdbarch.c: Re-generate.
8334 * blockframe.c (generic_func_frame_chain_valid): Only check
8335 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8336 passing FP to PC_IN_CALL_DUMMY.
8339 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8341 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8342 (register_gdbarch_data): Initialize init_p.
8343 (gdbarch_data): Initialize data pointer using the init function.
8344 (init_gdbarch_data): Delete function.
8345 (gdbarch_update_p): Update.
8346 (initialize_non_multiarch): Update.
8347 (struct gdbarch): Add field initialized_p.
8348 * gdbarch.h, gdbarch.c: Re-generate.
8350 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8352 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8353 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8354 better do the things actually here.
8355 * x86-64-tdep.c (x86_64_register_name2nr): New.
8356 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8357 (x86_64_gdbarch_init): Respect the above change.
8358 * x86-64-tdep.h (x86_64_register_name2nr)
8359 (x86_64_register_nr2name): Add prototypes.
8360 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8362 2002-06-06 Michael Snyder <msnyder@redhat.com>
8364 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8365 Delete extra braces and re-indent.
8366 (d10v_store_return_value): Char return values
8367 must be shifted over by one byte in R0.
8368 (d10v_extract_return_value): Delete extra braces, re-indent.
8370 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8372 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8373 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8374 (d10v_integer_to_address): Rewrite.
8375 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8376 the d10v specific functions which take care of converting to the
8379 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8381 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8382 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8384 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8386 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8388 * config/tm-linux.h: Ditto.
8389 * config/alpha/tm-alphalinux.h: Ditto.
8390 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8391 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8392 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8393 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8394 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8395 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8396 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8397 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8398 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8399 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8400 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8401 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8402 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8403 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8404 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8405 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8406 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8407 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8408 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8409 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8410 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8411 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8412 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8413 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8414 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8415 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8416 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8417 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8418 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8419 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8420 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8421 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8422 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8423 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8424 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8425 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8426 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8428 2002-05-04 Aidan Skinner <aidan@velvet.net>
8430 * ada-exp.tab.c: New file
8431 * ada-exp.y: New file
8432 * ada-lang.c: New file
8433 * ada-lang.h: New file
8434 * ada-lex.c: New file
8435 * ada-lex.l: New file
8436 * ada-tasks.c: New file
8437 * ada-typeprint.c: New file
8438 * ada-valprint.c: New file
8440 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8442 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8443 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8445 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8447 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8448 insetead of ppc-linux-tdep.o.
8449 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8450 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8452 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8454 2002-05-07 Christian Groessler <chris@groessler.org>
8455 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8456 bit register contents for little endian hosts.
8458 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8460 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8463 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8465 * gdbarch.h: Regenerate.
8467 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8469 * MAINTAINERS: Add everyone to write-after-approval list.
8471 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8473 * stack.c (frame_info): Use frame_register_unwind instead of
8474 saved_regs. Mention when the SP is on the stack or in a register.
8476 * frame.h (frame_register_unwind_ftype): Define. Document.
8477 (struct frame_info): Add field register_unwind and
8478 register_unwind_cache.
8479 (frame_register_unwind): Declare.
8480 (generic_unwind_get_saved_register): Declare.
8482 * frame.c (frame_register_unwind): New function.
8483 (generic_unwind_get_saved_register): New function.
8485 * blockframe.c (generic_call_dummy_register_unwind): New function.
8486 (frame_saved_regs_register_unwind): New function.
8487 (set_unwind_by_pc): New function.
8488 (create_new_frame): New function.
8489 (get_prev_frame): New function.
8491 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8493 * a29k-share/: Delete directory.
8494 * remote-vx29k.c: Delete file.
8496 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8498 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8499 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8501 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8503 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8504 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8507 (sparcnbsd-tdep.o): New dependency lists.
8508 * NEWS: Note new UltraSPARC NetBSD native configuration.
8509 * configure.host (sparc64-*-netbsd*): New host.
8510 * configure.tgt (sparc-*-netbsdelf*)
8511 (sparc-*-netbsd*): Set gdb_target to nbsd.
8512 (sparc64-*-netbsd*): New target.
8513 * sparc64nbsd-nat.c: New file.
8514 * sparcnbsd-nat.c: New file.
8515 * sparcnbsd-tdep.c: New file.
8516 * sparcnbsd-tdep.h: New file.
8517 * config/sparc/nbsd.mt: New file.
8518 * config/sparc/nbsd64.mh: New file.
8519 * config/sparc/nbsd64.mt: New file.
8520 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8521 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8523 * config/sparc/nbsdaout.mt: Remove.
8524 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8525 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8527 * config/sparc/nbsdelf.mt: Remove.
8528 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8529 sparc-nat.c compatiblity defines.
8530 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8531 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8532 * config/sparc/tm-nbsd64.h: New file.
8533 * config/sparc/tm-nbsdaout.h: Remove.
8534 * config/sparc/xm-nbsd.h: Remove.
8536 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8538 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8539 * sparc-tdep.c: Include osabi.h.
8540 (gdbarch_tdep): Add osabi member.
8541 (_initialize_sparc_tdep): Use gdbarch_register.
8542 (sparc_gdbarch_init): Use generic OS ABI framework.
8543 (sparc_dump_tdep): New function.
8545 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8547 * corefile.c (do_captured_read_memory_integer): Return non-zero
8549 (safe_read_memory_integer): Copy result of memory read when
8550 status is non-zero. Also, add comments.
8552 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8554 * Makefile.in (ppc_tdep_h): Define.
8557 (rs6000-tdep.o): Use $(ppc_tdep_h).
8560 (ppcnbsd-tdep.o): New dependency lists.
8561 * ppc-tdep.h: Use generic OS ABI framework.
8562 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8563 (ppc_linux_init_abi): New functions.
8564 (ppc_sysv_abi_broken_use_struct_convention)
8565 (ppc_sysv_abi_use_struct_convention)
8566 (ppc_sysv_abi_push_arguments): Move to...
8567 * ppc-sysv-tdep.c: ...here.
8568 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8569 * rs6000-tdep.c (process_note_abi_tag_sections)
8570 (get_elfosabi): Remove.
8571 (rs6000_gdbarch_init): Use generic OS ABI framework.
8572 (rs6000_dump_tdep): New function.
8573 (_initialize_rs6000_tdep): Use gdbarch_register.
8574 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8575 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8576 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8577 of ppc-linux-tdep.o.
8578 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8579 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8580 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8581 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8582 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8583 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8585 2002-05-29 Jim Blandy <jimb@redhat.com>
8587 * macroscope.c (default_macro_scope): Put `void' in empty argument
8590 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8592 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8593 * arch-utils.c: Include "sim-regno.h".
8594 * gdbarch.sh: Don't include "sim-regno.h".
8595 * gdbarch.h, gdbarch.c: Regenerate.
8596 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8598 * arch-utils.h (legacy_register_sim_regno): To here.
8599 * remote-sim.c (legacy_register_sim_regno): Move function from
8601 * arch-utils.c (legacy_register_sim_regno): To here.
8603 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8605 * sim-regno.h: New file.
8606 * Makefile.in (sim_regno_h): Define.
8607 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8608 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8609 (legacy_register_sim_regno): New function.
8610 (one2one_register_sim_regno): New function.
8611 (gdbsim_fetch_register): Rewrite.
8612 (gdbsim_store_register): Only store a register when
8613 REGISTER_SIM_REGNO is valid.
8614 * d10v-tdep.c: Include "sim-regno.h".
8615 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8616 (d10v_ts3_register_sim_regno): Ditto.
8617 * gdbarch.sh: Include "sim-regno.h".
8618 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8619 * gdbarch.h, gdbarch.c: Regenerate.
8620 * arch-utils.h (default_register_sim_regno): Delete declaration.
8621 * arch-utils.c (default_register_sim_regno): Delete function.
8623 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8625 * ppcnbsd-nat.c: Rewrite.
8626 * ppcnbsd-tdep.c: New file.
8627 * ppcnbsd-tdep.h: New file.
8628 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8629 solib.o, and solib-svr4.o.
8630 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8631 nbsd-tdep.o, and corelow.o.
8633 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8635 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8636 `tr' and `sed'. Mention that `broken' targets are not expected to
8639 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8641 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8642 Let PC point right after the prologue before looking up symbols.
8644 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8646 * i386-tdep.c (i386_register_virtual_type): Return
8647 builtin_type_vec128i for SSE registers.
8649 * gdbtypes.h (builtin_type_vec128i): Declare.
8651 * gdbtypes.c (build_builtin_type_vec128i): New function.
8652 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8653 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8654 (build_gdbtypes): Initialize new builtin vector types.
8655 (_initialize_gdbtypes): Register new vector types with gdbarch.
8657 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8659 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8660 since it has been multi-arch'd.
8661 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8662 Move Alpha and VAX multi-arch news entries to same section
8663 as other multi-arch news.
8665 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8667 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8668 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8669 static. Rename some register numbers to put them in ns32k-tdep
8671 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8672 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8674 (_initialize_ns32k_tdep): Use gdbarch_register.
8675 * ns32k-tdep.h: New file.
8676 * ns32knbsd-tdep.c: New file.
8677 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8678 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8679 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8680 REGISTER_BYTES, REGISTER_BYTE): Remove.
8681 * config/ns32k/tm-ns32k.h: New file.
8682 * config/ns32k/tm-umax.h: Remove.
8684 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8686 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8687 ns32k_store_struct_return, ns32k_extract_return_value,
8688 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8690 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8691 ns32k_saved_pc_after_call.
8692 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8693 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8694 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8695 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8696 ns32k_extract_struct_value_address.
8698 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8700 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8701 ns32k_fix_call_dummy): New.
8702 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8703 ns32k_call_dummy_words.
8704 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8705 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8706 CALL_DUMMY_NARGS): Remove.
8707 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8709 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8711 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8712 ns32k_frame_saved_pc, ns32k_frame_args_address,
8713 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8714 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8715 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8716 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8717 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8718 (BREAKPOINT): Remove..
8719 (FRAME_CHAIN): Define as ns32k_frame_chain.
8720 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8721 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8722 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8723 (FRAME_FIND_SAVED_REGS): Remove.
8724 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8725 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8726 (POP_FRAME): Define as ns32k_pop_frame.
8728 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8730 * ns32k-tdep.c (ns32k_register_byte_32082,
8731 ns32k_register_byte_32382, ns32k_register_raw_size,
8732 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8734 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8735 ns32k_register_byte_32382.
8736 * config/ns32k/tm-umax.h: Update copyright years.
8737 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8738 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8739 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8740 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8741 (ns32k_get_enter_addr): Fix prototype.
8743 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8745 * ns32k-tdep.c: Update copyright years.
8746 (ns32k_register_name_32082): New function.
8747 (ns32k_register_name_32382): Ditto.
8748 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8749 (REGISTER_NAME): Define as ns32k_register_name_32382.
8750 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8751 (REGISTER_NAME): Define as ns32k_register_name_32082.
8753 2002-05-24 Jim Blandy <jimb@redhat.com>
8755 * dwarf2read.c (free_line_header): Use xfree, not free.
8757 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8759 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8760 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8762 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8764 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8766 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8768 From Ross Alexander at NEC Europe:
8769 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8771 2002-05-23 Michael Snyder <msnyder@redhat.com>
8773 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8774 for input, rather than parse_and_eval_address.
8776 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8778 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8779 * Makefile.in (sim_d10v_h): Update definition.
8781 2002-05-24 Andrew Cagney <cagney@redhat.com>
8783 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8784 change `2002-05-22 Michael Snyder' below.
8785 (d10v_push_arguments): Ditto.
8786 (d10v_extract_return_value): Ditto.
8788 2002-05-23 Jim Blandy <jimb@redhat.com>
8790 * macrotab.c (check_for_redefinition): Don't complain if the new
8791 definition is the same as the previous one. Take more arguments
8792 to allow the comparison.
8793 (macro_define_object, macro_define_function): Pass more arguments
8794 to check_for_redefinition.
8796 2002-05-22 Michael Snyder <msnyder@redhat.com>
8798 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8799 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8800 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8801 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8802 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8803 Add a temp variable to save a call (and a memory read).
8804 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8805 if possible (so that PC_IN_CALL_DUMMY will work).
8807 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8809 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8811 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8813 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8815 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8816 (dwarf2_build_frame_info): Add offset to fde->initial_location
8817 so that frames of shared libraries are mapped correctly.
8818 (execute_stack_op): Change type of 'result' from ULONGEST to
8821 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8823 * config/alpha/tm-nbsd.h: Include solib.h.
8825 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8827 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8828 assumptions about the host's byte order.
8830 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8832 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8834 * alphanbsd-tdep.c: Include solib-svr4.h.
8835 * shnbsd-tdep.c: Ditto.
8837 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8839 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8840 nbsd-tdep.h to dependency list.
8841 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8842 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8843 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8844 nbsdaout.mh and nbsdelf.mh consistently.
8845 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8846 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8847 nbsdaout.mt and nbsdelf.mh consistently.
8848 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8849 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8850 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8851 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8852 a.out shared library stuff from here...
8853 * config/nm-nbsdaout.h: ...to here.
8854 * config/tm-nbsd.h: Remove.
8855 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8856 * config/arm/nbsd.mh: Remove.
8857 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8859 * config/arm/nbsdaout.mh: New file.
8860 * config/arm/nbsdelf.mh: New file.
8861 * config/arm/nm-nbsdaout.h: New file.
8862 * config/i386/nbsd.mh: Remove.
8863 * config/i386/nbsd.mt: Remove.
8864 * config/i386/nbsdaout.mh: New file.
8865 * config/i386/nbsdaout.mt: New file.
8866 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8867 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8868 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8869 i386_register_u_addr): Remove.
8870 * config/i386/nm-nbsdaout.h: New file.
8871 * config/i386/nm-nbsdelf.h: Remove.
8872 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8873 (USE_STRUCT_CONVENTION): Remove.
8874 * config/i386/tm-nbsdaout.h: New file.
8875 * config/i386/tm-nbsdelf.h: Remove.
8876 * config/m68k/nbsd.mh: Remove.
8877 * config/m68k/nbsd.mt: Remove.
8878 * config/m68k/nbsdaout.mh: New file.
8879 * config/m68k/nbsdaout.mt: New file.
8880 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8881 * config/m68k/nm-nbsdaout.h: New file.
8882 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8883 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8884 * config/ns32k/nbsd.mh: Remove.
8885 * config/ns32k/nbsd.mt: Remove.
8886 * config/ns32k/nbsdaout.mh: New file.
8887 * config/ns32k/nbsdaout.mt: New file.
8888 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8889 * config/ns32k/nm-nbsdaout.h: New file.
8890 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8891 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8892 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8893 (SVR4_SHARED_LIBS): Remove.
8894 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8895 * config/sparc/nbsd.mh: Remove.
8896 * config/sparc/nbsd.mt: Remove.
8897 * config/sparc/nbsdaout.mh: New file.
8898 * config/sparc/nbsdaout.mt: New file.
8899 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8900 * config/sparc/nbsdelf.mt: New file.
8901 * config/sparc/nm-nbsdaout.h: New file.
8902 * config/sparc/nm-nbsdelf.h: Remove.
8903 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8904 * config/sparc/tm-nbsdaout.h: New file.
8906 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8908 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8910 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8912 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8914 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8916 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8918 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8920 * NEWS: Note new MIPS NetBSD native configuration.
8921 * configure.host (mips*-*-netbsd*): New host.
8922 * configure.tgt (mips*-*-netbsd*): New target.
8923 * mipsnbsd-nat.c: New file.
8924 * mipsnbsd-tdep.c: New file.
8925 * mipsnbsd-tdep.h: New file.
8926 * config/mips/nbsd.mh: New file.
8927 * config/mips/nbsd.mt: New file.
8928 * config/mips/nm-nbsd.h: New file.
8929 * config/mips/tm-nbsd.h: New file.
8931 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8933 * Makefile.in (SFILES): Add osabi.c.
8934 (COMMON_OBS): Add osabi.o.
8935 (osabi.o): New dependency list.
8936 * osabi.c: New file.
8937 * osabi.h: New file.
8938 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8940 * Makefile.in (alpha_tdep_h): Define and use instead of
8942 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8943 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8945 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8946 * alpha-tdep.h: Include osabi.h.
8947 (alpha_abi): Remove.
8948 (gdbarch_tdep): Use generic OS ABI framework.
8949 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8950 gdbarch_register_osabi.
8951 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8952 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8953 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8955 * Makefile.in (sh_tdep_h): Add osabi.h.
8956 * sh-tdep.h (sh_osabi): Remove.
8957 (gdbarch_tdep): Use generic OS ABI framework.
8958 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8959 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8960 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8961 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8963 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8964 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8965 gdbarch_register_osabi.
8966 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8967 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8968 (get_elfosabi): Rename to...
8969 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8970 ABI framework support routines.
8971 (arm_gdbarch_init): Use generic OS ABI framework.
8972 (arm_dump_tdep): Likewise.
8973 (_initialize_arm_tdep): Likewise.
8974 * arm-tdep.h: Include osabi.h.
8976 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8978 (arm_gdbarch_register_os_abi): Remove prototype.
8979 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8980 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8982 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8983 * mips-tdep.c: Include osabi.h.
8984 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8987 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8989 * h8300-tdep.c: Fix formatting.
8991 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8993 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8994 printing vector registers.
8996 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8998 From Fernando Nasser:
8999 * remote.c (remote_async_open_1): Re-throw the exception when the
9001 (remote_cisco_open): Ditto.
9002 (remote_open_1): Ditto.
9004 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9006 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9007 (remote_start_remote): Add uiout parameter. Pass through to
9008 remote_start_remote_dummy.
9009 (remote_open_1): Use catch_exception instead of catch_errors.
9010 (remote_async_open_1): Ditto.
9011 (remote_cisco_open): Ditto.
9013 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9015 * remote.c (remote_start_remote): Replace PTR with void pointer.
9016 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9019 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9021 * gdb_indent.sh: Allow the script to be run in the sim directory.
9023 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9025 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9026 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9028 * corelow.c (core_open): Only call set_gdbarch_from_file if
9031 2002-05-17 Andrey Volkov <avolkov@transas.com>
9033 * h8300-tdep.c: Add support of EXR register
9034 * config/h8300/tm-h8300.h: Ditto.
9036 2002-05-17 Andrey Volkov <avolkov@transas.com>
9038 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9040 2002-05-17 Andrey Volkov <avolkov@transas.com>
9042 * h8300-tdep.c: Change literal regnums to REGNO.
9044 2002-05-17 Jim Blandy <jimb@redhat.com>
9046 * NEWS: Note addition of macro support.
9048 Expand preprocessor macros in C expressions.
9049 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9050 (scan_macro_expansion, scanning_macro_expansion,
9051 finished_macro_expansion): New function declarations.
9052 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9053 variable declarations.
9054 * parser-defs.h (expression_context_pc): New declaration.
9055 * parse.c (expression_context_pc): New variable.
9056 (parse_exp_1): Set expression_context_pc, as well as
9057 expression_context_block.
9058 * c-exp.y (yylex): If we're not already reading the result of a
9059 macro expansion, try to macro-expand the next token. When we're
9060 done scanning a macro expansion, switch back to the mainline text.
9061 Commas and `if's in a macro's expansion don't terminate the input.
9062 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9063 (macro_original_text, macro_expanded_text,
9064 expression_macro_lookup_func, expression_macro_lookup_baton): New
9066 (scan_macro_expansion, scanning_macro_expansion,
9067 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9068 c_preprocess_and_parse): New functions.
9069 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9070 c_preprocess_and_parse, instead of c_parse.
9071 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9072 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9074 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9076 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9077 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9078 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9080 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9082 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9084 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9086 * Makefile.in (sh_tdep_h): Define and use.
9087 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9088 register enum): Move to...
9089 * * sh-tdep.h: ...here.
9090 * sh-tdep.c: Include sh-tdep.h.
9091 * sh3-rom.c: Likewise.
9092 * shnbsd-tdep.c: Likewise.
9094 2002-05-16 Michael Snyder <msnyder@redhat.com>
9096 * arm-tdep.c: Spelling fix in comment.
9098 2002-05-16 Jim Blandy <jimb@redhat.com>
9100 Add commands for manually expanding macros and showing their
9102 * macrocmd.c, macroscope.c, macroscope.h: New files.
9103 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9104 (macroscope_h): New variable.
9105 (HFILES_NO_SRCDIR): Add macroscope.h.
9106 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9107 (macroscope.o, macrocmd.o): New rules.
9109 Teach the Dwarf 2 reader to read macro information.
9110 * dwarf2read.c: #include "macrotab.h".
9111 (dwarf_macinfo_buffer): New variable.
9112 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9114 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9115 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9116 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9117 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9118 dwarf2_macro_spaces_in_definition): New complaints.
9119 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9120 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9121 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9122 the partial symbol table.
9123 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9124 from what's recorded in the partial symbol table.
9125 (read_file_scope): If the compilation unit has a
9126 `DW_AT_macro_info' attribute, read its macro information.
9127 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9129 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9132 * ser-tcp.c: Don't include <netinet/udp.h>.
9134 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9136 * MAINTAINERS: Update my email address.
9138 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9140 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9141 include file of the same name.
9143 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9145 * configure.tgt: Mark v850 as multi-arched.
9146 * config/v850/tm-v850.h: Remove file.
9147 * config/v850/v850.mt: Eliminate TM_FILE.
9149 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9151 * v850-tdep.c: Full multi-arch.
9152 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9153 Define GDB_MULTI_ARCH to 2.
9155 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9157 * p-exp.y (current_type): New static variable.
9158 Carries the type of the expression at the position that is parsed.
9159 (push_current_type, pop_current_type): Two new functions. Used
9160 to store/restore current_type in expression on specific tokens.
9161 (search_field): New static variable. Set to one after parsing a point
9162 as at that point only a FIELDNAME token should be searched.
9163 (FIELDNAME): New token. After a point only a token belonging to
9164 current_type type definition is allowed.
9165 (all over token rules): reset and change current_type according
9167 (exp '[' rule): insert implicit array index field if
9168 exp is a pascal string type.
9170 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9172 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9173 frame info. Use frame_info's saved_regs instead of matching member
9174 in extra_frame_info throughout.
9175 (v850_frame_init_saved_regs): New function.
9176 (v850_init_extra_frame_info): Move most functionality into
9177 v850_frame_init_saved_regs().
9178 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9179 (v850_frame_find_saved_regs): Remove declaration.
9180 (FRAME_FIND_SAVED_REGS): Remove definition.
9181 (v850_frame_init_saved_regs): Add declaration.
9182 (FRAME_INIT_SAVED_REGS): Add definition.
9184 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9186 * v850-tdep.c: Begin multi-arch'ing v850.
9187 (v850_target_architecture_hook): Remove function.
9188 (v850_gdbarch_init): New function. Add code previously in
9189 v850_target_architecture_hook().
9190 (_initialize_v850_tdep): Don't set target_architecture_hook.
9191 Call register_gdbarch_init() instead.
9193 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9195 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9196 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9197 (fixup_class_method_type): Likewise.
9199 2002-05-15 Jim Blandy <jimb@redhat.com>
9201 Add macro structures to GDB's symbol tables. Nobody puts anything
9203 * symtab.h (struct symtab): New member: `macro_table'.
9204 * buildsym.h (pending_macros): New global variable.
9205 * buildsym.c: #include "macrotab.h".
9206 (buildsym_init): Initialize `pending_macros'.
9207 (end_symtab): If we found macro information while reading a CU's
9208 debugging info, do build a symtab structure for it. Make the
9209 symtab point to the macro information, and clear the
9210 `pending_macros' pointer which held it while we were reading the
9212 (really_free_pendings): Free any pending macro table.
9213 * objfiles.h (struct objfile): New member: `macro_cache'.
9214 * objfiles.c (allocate_objfile): Set allocate and free functions
9215 for the macro cache's objstack.
9216 (free_objfile): Empty the macro cache's obstack.
9217 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9218 set new allocate and free functions for it.
9219 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9220 free functions for the macro cache's objstack. (Why is this
9221 function building its own objfile?)
9222 * symmisc.c (print_objfile_statistics): Print statistics on the
9224 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9226 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9228 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9229 (REGISTER_U_ADDR): Delete definition.
9230 (arm_register_u_addr): Delete declaration.
9232 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9234 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9235 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9237 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9239 * regcache.c (register_valid): Revise comments refering to "Not
9240 available" and "unavailable".
9241 * frame.c (frame_register_read): Ditto.
9242 * findvar.c (value_of_register): Ditto.
9244 2002-05-15 Andrew Cagney <cagney@redhat.com>
9246 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9247 (remote-sim.o): Update dependencies.
9248 (d10v-tdep.o): Specify dependencies.
9249 (sim_d10v_h): Define.
9251 2002-05-14 Jim Blandy <jimb@redhat.com>
9253 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9254 * macrotab.c (macro_lookup_inclusion, find_definition,
9255 new_macro_table): Same.
9257 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9258 not `! strcmp ()'. This is a dubious improvement.
9259 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9261 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9262 although it's not necessary, to avoid a warning.
9264 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9266 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9267 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9268 TYPE_INSTANCE_FLAGS.
9269 (struct main_type): New.
9270 (struct type): Move most members to struct main_type. Change
9271 cv_type and as_type to new type_chain member. Add instance_flags.
9272 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9273 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9274 (finish_cv_type): Remove prototype.
9275 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9277 (alloc_type_instance): New function.
9278 (smash_type): New function.
9279 (make_pointer_type, make_reference_type, make_function_type)
9280 (smash_to_member_type, smash_to_method_type): Call smash_type.
9281 (make_qualified_type): New function.
9282 (make_type_with_address_space): Call make_qualified_type.
9283 (make_cv_type): Likewise.
9284 (finish_cv_type): Remove unnecessary function.
9285 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9286 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9287 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9288 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9289 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9290 * hpread.c (hpread_read_struct_type): Likewise.
9291 * stabsread.c (read_struct_type): Likewise.
9293 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9295 * configure.tgt: Add a catch all sh* target, for cases like
9296 sh[2,3,4]-elf and sh-hms.
9298 2002-05-14 Keith Seitz <keiths@redhat.com>
9300 * event-loop.c (create_file_handler): Don't do anything but
9301 update data when we are given a fd which we are already
9304 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9306 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9307 (update_context): Use __func__ in warnings.
9309 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9311 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9312 and tcp_close to net_open and net_close.
9313 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9314 using UDP if requested. Don't try to disable Nagle on UDP
9316 * remote.c (remote_serial_open): New function. Warn about UDP.
9317 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9319 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9321 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9323 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9325 * configure.tgt: Remove sh-hms target.
9326 * MAINTAINERS: Don't list sh-hms as a separate target.
9328 2002-05-13 Jim Blandy <jimb@redhat.com>
9330 Add first preprocessor macro-expansion files.
9331 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9332 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9333 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9334 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9335 (COMMON_OBS): Add macrotab.o, macroexp.o.
9336 (macroexp.o, macrotab.o): New rules.
9338 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9340 * config/m88k/tm-m88k.h: Update copyright.
9341 (m88k_target_write_pc): Declare
9342 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9343 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9344 (SHIFT_INST_REGS): Update definition.
9345 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9346 using old definition of TARGET_WRITE_PC.
9347 * regcache.c (generic_target_write_pc): Delete code handling
9349 * gdbarch.sh (NNPC_REGNUM): Delete.
9350 * gdbarch.h, gdbarch.c: Regenerate.
9352 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9354 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9357 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9359 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9360 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9361 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9363 * c-typeprint.c (cp_type_print_method_args): Likewise.
9364 (c_type_print_args): Likewise.
9365 * d10v-tdep.c (d10v_push_arguments): Likewise.
9366 (d10v_extract_return_value): Likewise.
9367 * expprint.c (print_subexp): Likewise.
9368 * gdbtypes.c (lookup_primitive_typename): Likewise.
9369 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9370 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9371 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9372 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9373 (TYPE_VECTOR): Likewise.
9374 * hpread.c (hpread_read_struct_type)
9375 (fix_static_member_physnames, fixup_class_method_type)
9376 (hpread_type_lookup): Likewise.
9377 * mdebugread.c (parse_symbol, parse_type): Likewise.
9378 * p-lang.c (is_pascal_string_type): Likewise.
9379 * valops.c (hand_function_call): Likewise.
9380 * x86-64-tdep.c (classify_argument): Likewise.
9382 * hpread.c (hpread_read_function_type)
9383 (hpread_read_doc_function_type): Call replace_type.
9384 * dstread.c (create_new_type): Delete.
9385 (decode_dst_structure, process_dst_function): Call alloc_type.
9386 Use type access macros.
9388 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9390 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9391 the're not supported by the current architecture.
9392 (i387_fill_fxsave): Likewise.
9394 2002-05-12 Fred Fish <fnf@redhat.com>
9396 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9397 sect_index_xxx members to index the first slot in section_offsets
9398 if all of the section_offsets are zero.
9400 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9402 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9403 checked in with last change.
9405 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9407 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9408 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9411 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9413 * Makefile.in: Update dependencies.
9415 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9417 * language.c (local_hex_string_custom): Simplify. Do not depend
9418 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9420 * memattr.c (mem_info_command): Replace calls to
9421 longest_local_hex_string and longest_local_hex_string_custom.
9422 * buildsym.c (make_blockvector): Ditto.
9423 * solib.c (info_sharedlibrary_command): Ditto.
9424 * tracepoint.c (tracepoints_info): Ditto.
9425 * symtab.c (print_msymbol_info): Ditto.
9427 * language.c (local_hex_string): Delete.
9428 (local_hex_string_custom): Delete.
9429 (longest_local_hex_string): Rename to local_hex_string.
9430 (longest_local_hex_string_custom): Rename to
9431 local_hex_string_custom.
9432 * language.h (local_hex_string): Change parameter type to LONGEST.
9433 (local_hex_string_custom): Ditto.
9434 (longest_local_hex_string): Delete declaration.
9435 (longest_local_hex_string_custom): Ditto.
9437 * solib.c: Update copyright.
9438 * memattr.c: Update copyright.
9440 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9442 * arch-utils.h (legacy_register_to_value): Declare.
9443 (legacy_value_to_register): Declare.
9444 (legacy_convert_register_p): Declare.
9445 * arch-utils.c (legacy_register_to_value): New function.
9446 (legacy_value_to_register): New function.
9447 (legacy_convert_register_p): New function.
9449 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9450 (VALUE_TO_REGISTER): Define.
9451 (CONVERT_REGISTER_P): Define.
9452 * gdbarch.h, gdbarch.c: Regenerate.
9454 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9456 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9459 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9460 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9462 * Makefile.in: Update dependencies for valops.c.
9463 * valops.c: Include "gdb_assert.h".
9464 (typecmp): Skip THIS parameter to methods.
9465 (find_method_list): Remove static_memfuncp argument,
9466 update callers. Check for stub methods.
9467 (find_value_oload_method_list): Don't set *static_memfuncp.
9468 (find_overload_match): Don't check for stub methods. Assert
9469 that methods are not stubbed. Handle static methods.
9470 (value_find_oload_method_list): Remove static_memfuncp argument.
9471 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9472 to the argument list for static stub methods.
9473 * value.h (value_find_oload_method_list): Update prototype.
9475 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9477 * arch-utils.h (generic_register_size): Declare.
9478 (generic_register_raw_size, generic_register_virtual_size): Delete
9480 * arch-utils.c (generic_register_raw_size): Delete.
9481 (generic_register_size): New function.
9482 (generic_register_virtual_size): Delete.
9484 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9485 default generic_register_size.
9486 * gdbarch.h, gdbarch.c: Re-generate.
9488 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9489 register_virtual_size.
9490 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9491 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9493 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9495 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9496 * gdbarch.h, gdbarch.c: Regenerate.
9497 * gnu-v3-abi.c: Update copyright.
9498 (vtable_address_point_offset): Update.
9499 (gnuv3_rtti_type): Update.
9500 (gnuv3_baseclass_offset): Update.
9501 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9502 (init_fetch_link_map_offsets): Update.
9503 * remote.c (get_remote_state): Update.
9505 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9507 * TODO: Remove value_headof/value_from_vtable_info comment.
9508 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9509 * values.c (value_headof, value_from_vtable_info): Delete.
9510 * value.h (value_from_vtable_info): Delete prototype.
9512 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9514 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9515 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9517 (gdb_assert_h): Define.
9518 (gdb_wait_h): Define.
9519 (gdb_regex_h): Define.
9521 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9523 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9524 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9526 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9528 * nbsd-tdep.c: Fix comment.
9530 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9532 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9533 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9534 (nbsd-tdep.o): New dependency list.
9535 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9537 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9538 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9539 * nbsd-tdep.c: New file.
9540 * nbsd-tdep.h: New file.
9541 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9543 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9544 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9545 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9546 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9548 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9550 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9551 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9552 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9553 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9554 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9555 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9557 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9559 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9560 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9561 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9562 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9563 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9564 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9565 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9567 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9569 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9570 fetch_elfcore_registers to...
9571 * i386nbsd-tdep.c: ...here.
9572 (i386nbsd_use_struct_convention): Rename to...
9573 (i386nbsd_aout_use_struct_convention): ...this.
9574 (i386nbsd_supply_reg): New function.
9575 (i386nbsd_fill_reg): New function.
9576 (fetch_core_registers): Use i386nbsd_supply_reg.
9577 (fetch_elfcore_registers): Likewise.
9578 (_initialize_i386nbsd_tdep): New function.
9579 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9580 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9581 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9582 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9583 (i386nbsd_aout_use_struct_convention): ...this.
9585 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9587 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9588 (store_inferior_registers): Use shnbsd_fill_reg.
9589 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9590 sh_nbsd_supply_register): Collapse into...
9591 (shnbsd_supply_reg): ...this.
9592 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9593 (shnbsd_fill_reg): ...this.
9594 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9595 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9596 (fetch_core_registers): Use shnbsd_supply_reg.
9597 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9598 (sh_nbsd_core_fns): Rename to...
9599 (shnbsd_core_fns): ...this.
9600 (sh_nbsd_elfcore_fns): Rename to...
9601 (shnbsd_elfcore_fns): ...this.
9602 (sh_nbsd_init_abi): Rename to...
9603 (shnbsd_init_abi): ...this.
9604 (_initialize_sh_nbsd_tdep): Rename to...
9605 (_initialize_shnbsd_tdep): ...this.
9606 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9607 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9608 sh_nbsd_fill_register): Remove prototypes.
9609 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9611 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9613 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9614 (i387-nat.o): Delete dependency list.
9615 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9616 (x86-64-linux-nat.o): Likewise.
9617 * i387-nat.c: Delete file, moving contents to...
9618 * i387-tdep.c: ...here.
9619 * i387-nat.h: Rename...
9620 * i387-tdep.h: ...to this.
9621 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9622 * i386-linux-nat.c: Likewise.
9623 * i386bsd-nat.c: Likewise.
9624 * i386gnu-nat.c: Likewise.
9625 * i386nbsd-nat.c: Likewise.
9626 * i386v4-nat.c: Likewise.
9627 * x86-64-linux-nat.c: Likewise.
9628 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9629 * config/i386/go32.mh (NATDEPFILES): Likewise.
9630 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9631 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9632 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9633 * config/i386/linux.mh (NATDEPFILES): Likewise.
9634 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9635 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9636 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9637 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9639 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9641 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9642 (alphanbsd-nat.o): Remove dependency list.
9643 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9644 * alphanbsd-nat.c: Delete. Contents moved to...
9645 * alphanbsd-tdep.c: ...here.
9646 (_initialize_alphanbsd_tdep): Register core functions.
9647 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9649 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9651 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9652 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9653 (alphanbsd-nat.o): Likewise.
9654 (alphabsd-tdep.o): New dependency list.
9655 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9656 (fill_gregset): Use alphabsd_fill_reg.
9657 (supply_fpregset): Use alphabsd_supply_fpreg.
9658 (fill_fpregset): Use alphabsd_fill_fpreg.
9659 (fetch_inferior_registers): Use struct reg and struct fpreg
9660 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9661 and alphabsd_supply_fpreg.
9662 (store_inferior_registers): Use struct reg and struct fpreg
9663 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9664 and alphabsd_fill_fpreg.
9665 * alphabsd-tdep.c: New file.
9666 * alphabsd-tdep.h: New file.
9667 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9668 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9669 alphabsd_supply_fpreg.
9670 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9671 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9673 2002-05-11 Eric Christopher <echristo@redhat.com>
9675 * mips-tdep.c (mips_double_register_type): Fix thinko.
9676 (mips_single_register_type): Ditto.
9677 * MAINTAINERS: Add self.
9679 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9681 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9682 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9683 right thing on architectures with different endianness and/or
9686 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9688 From Christian Limpach <chris@Pin.LU>
9689 * configure.in: Change sed expression which comments out
9690 NATDEPFILES to also comment out continuation lines.
9691 * configure: Regenerate.
9693 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9695 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9698 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9700 * sh-tdep.c: Include correct file.
9702 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9704 New support for sh64-elf (sh5) target.
9706 * configure.tgt: For sh64-elf target, default to sh-elf.
9708 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9709 (struct gdbarch_tdep): Add new fields for new registers and ABI
9712 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9713 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9714 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9715 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9716 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9717 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9718 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9719 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9720 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9721 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9722 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9723 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9724 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9725 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9726 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9727 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9728 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9729 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9730 sign_extend, sh64_nofp_frame_init_saved_regs,
9731 sh64_init_extra_frame_info, sh64_get_saved_register,
9732 sh64_extract_struct_value_address, sh64_pop_frame,
9733 sh64_push_arguments, sh64_extract_return_value,
9734 sh64_store_return_value, sh64_show_media_regs,
9735 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9736 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9737 sh_sh64_register_virtual_type,
9738 sh_sh64_register_convert_to_virtual,
9739 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9740 sh64_register_read, sh64_pseudo_register_write,
9741 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9742 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9743 sh64_do_pseudo_register, sh_compact_do_registers_info,
9744 sh64_do_registers_info, sh_gdbarch_init): New functions.
9746 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9748 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9750 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9752 * linespec.c (decode_line_1): Check for a double quote after
9753 a filename correctly.
9755 2002-05-10 Jim Blandy <jimb@redhat.com>
9757 Properly track the size of the current objfile's .debug_line section.
9758 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9759 (DWARF_LINE_SIZE): New macro.
9760 (dwarf2_build_psymtabs_hard): Record the line section's size in
9761 the partial symbol table.
9762 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9765 2002-05-10 Petr Sorfa <petrs@caldera.com>
9767 * ia64-tdep.c: Handle breakpoints on L instruction type
9768 in MLX instruction bundle by moving the breakpoint to
9769 the third slot (X instruction type) as L holds only data.
9771 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9773 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9774 (process_one_symbol): Complain about discarding local symbols
9775 due to a misplaced N_LBRAC entry.
9777 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9779 From Daniel Berlin <dan@cgsoftware.com>
9780 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9781 decrease the depth we are at, in the case of templates.
9783 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9785 * mips-tdep.c (mips_float_register_type): New function.
9786 (mips_double_register_type): New function.
9787 (mips_print_register): Use them.
9788 (do_fp_register_row): Likewise.
9790 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9792 * signals/signals.c (signals): Remove conditional compilation around
9793 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9794 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9796 2002-05-09 Michael Snyder <msnyder@redhat.com>
9798 * remote-rdp.c (remote_rdp_can_run): Remove.
9800 2002-05-09 Tom Tromey <tromey@redhat.com>
9802 * jv-valprint.c (java_val_print): Handle `char' as a special case
9805 2002-05-09 Michael Snyder <msnyder@redhat.com>
9807 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9808 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9809 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9810 str r(0123),[sp,#nn].
9811 (arm_skip_prologue): Ditto. Also make disassembly
9812 order-independent by placing it in a loop.
9814 2002-05-06 Michael Snyder <msnyder@redhat.com>
9816 * stabsread.c (read_type): Add recognition for new attribute:
9817 "@V;" means that an array type is actually a vector.
9818 This is analogous to the vector flag that's been added to dwarf2.
9820 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9822 * i386-tdep.h (i386_abi): New enum.
9823 (struct gdbarch_tdep): Replace os_ident member with abi.
9824 (i386_gdbarch_register_os_abi): New prototype.
9825 * i386-tdep.c (i386_abi_names): New array.
9826 (process_note_abi_tag_sections): Removed.
9827 (process_note_sections): New function.
9828 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9829 (struct i386_abi_handler): New struct.
9830 (i386_abi_handler_list): New variable.
9831 (i386_gdbarch_register_os_abi): New function.
9832 (i386_gdbarch_init): Adapt for the changes given above.
9834 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9836 * gregset.h: Say "GNU/Linux".
9838 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9840 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9841 (build_gdbtypes): Build builtin_type_v2_float.
9842 (_initialize_gdbtypes): Register new builtin type.
9844 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9846 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9847 (clear_gdbarch_swap): New function.
9848 (initialize_non_multiarch): Call.
9849 (gdbarch_update_p): Before calling init(), swap out and clear the
9850 existing architecture.
9851 * gdbarch.c: Regenerate.
9853 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9855 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9858 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9860 * sh-nbsd-nat.c: Rename to...
9861 * shnbsd-nat.c: ...this.
9862 * sh-nbsd-tdep.c: Rename to...
9863 * shnbsd-tdep.c: ...this.
9864 * sh-nbsd-tdep.h: Rename to...
9865 * shnbsd-tdep.h: ...this.
9866 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9867 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9869 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9871 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9872 concatenation for command help messages.
9874 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9876 * NEWS: Note new sh*-*-netbsdelf* configuration.
9877 * configure.host: Set gdb_host_cpu to sh for all sh*.
9878 (sh*-*-netbsdelf*): New host.
9879 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9880 (sh*-*-netbsdelf*): New target.
9881 * sh-nbsd-nat.c: New file.
9882 * sh-nbsd-tdep.c: New file.
9883 * sh-nbsd-tdep.h: New file.
9884 * config/sh/nbsd.mh: New file.
9885 * config/sh/nbsd.mt: New file.
9886 * config/sh/nm-nbsd.h: New file.
9887 * config/sh/tm-nbsd.h: New file.
9889 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9891 * sh-tdep.c (sh_osabi_names): Declare.
9892 (process_note_abi_tag_sections): New function.
9893 (get_elfosabi): Ditto.
9894 (sh_gdbarch_register_os_abi): Ditto.
9895 (sh_dump_tdep): Ditto.
9896 _initialize_sh_tdep): Use gdbarch_register to register
9897 sh_gdbarch_init and sh_dump_tdep.
9898 * config/sh/tm-sh.h (sh_osabi): Declare.
9899 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9901 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9903 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9904 (thumb_scan_prologue): Ditto.
9905 (arm_find_callers_reg): Ditto.
9906 (arm_frame_chain): Ditto.
9907 (arm_init_extra_frame_info): Ditto.
9908 (arm_frame_saved_pc): Ditto.
9909 (arm_pop_frame): Ditto.
9910 (arm_push_return_address): New function.
9911 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9912 call_dummy_location, call_dummy_breakpoint_offset_p,
9913 call_dummy_breakpoint_offset, call_dummy_p,
9914 call_dummy_stack_adjust_p, call_dummy_words,
9915 sizeof_call_dummy_words, call_dummy_start_offset,
9916 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9917 call_dummy_address, push_return_address and push_dummy_frame for
9918 generic dummy frames.
9920 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9922 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9923 size computation for alloca.
9924 (sh_fp_frame_init_saved_regs): Likewise.
9926 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9928 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9929 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9930 * arm-tdep.c (arm_store_return_value): Use them.
9931 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9932 * remote-rdp.c (remote_rdp_fetch_register): Use
9933 ARM_MAX_REGISTER_RAW_SIZE.
9934 (remote_rdp_store_register): Likewise.
9936 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9938 * dwarf2cfi.c: Code cleanup, removed unused variables,
9939 added default labels to switch {} statements.
9940 * x86-64-tdep.c: Ditto.
9941 * x86-64-linux-nat.c: Ditto.
9943 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9945 * solib.h: Protect against multiple inclusion.
9947 2002-05-06 Jim Blandy <jimb@redhat.com>
9949 Add first preprocessor macro-expansion files.
9950 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9951 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9952 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9953 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9954 (COMMON_OBS): Add macrotab.o, macroexp.o.
9955 (macroexp.o, macrotab.o): New rules.
9957 Separate the job of reading the line number info statement program
9958 header (...expialidocious) out into its own function.
9959 * dwarf2read.c (struct line_head, struct filenames, struct
9960 directories): Replace with...
9961 (struct line_header): New structure, containing the full
9962 contents of the statement program header, including the
9963 include directory and file name tables.
9964 (read_file_scope): If we have line number info, instead of just
9965 calling dwarf_decode_lines to do all the work, call
9966 dwarf_decode_line_header first to get a `struct line_header'
9967 containing the data in the statement program header, and then
9968 pass that to dwarf_decode_lines, which will pick up where that
9969 left off. Be sure to clean up the `struct line_header' object.
9970 (dwarf_decode_line_header, free_line_header, add_include_dir,
9971 add_file_name): New functions.
9972 (dwarf_decode_lines): Move all the code to read the statement
9973 program header into dwarf_decode_line_header. Take the line
9974 header it built as the first argument, instead of the offset to
9975 the compilation unit's line number info. Use the new `struct
9976 line_header' type instead of the old structures. No need to do
9977 cleanups here now, since we don't allocate anything.
9978 (dwarf2_statement_list_fits_in_line_number_section,
9979 dwarf2_line_header_too_long): New complaints.
9981 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9983 * gdbtypes.c (init_vector_type): New function.
9984 (build_builtin_type_vec128): Simplify the representation of SIMD
9986 (build_gdbtypes): Initialize new builtin vector types.
9987 (_initialize_gdbtypes): Register new vector types with gdbarch.
9988 (builtin_type_v4_float, builtin_type_v4_int32,
9989 builtin_type_v8_int16, builtin_type_v16_int8,
9990 builtin_type_v2_int32, builtin_type_v4_int16,
9991 builtin_type_v8_int8): New (renamed) SIMD types.
9993 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9995 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9996 (i387_fill_fxsave): Likewise.
9998 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10000 * alpha-tdep.c (alpha_extract_return_value): Don't use
10001 non-constant array size in prototype.
10003 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10005 From Brian Taylor <briant at model dot com>:
10006 * ui-out.c (ui_out_field_core_addr): Use the function
10007 longest_local_hex_string_custom'to format addresses > 32 bits
10010 * ui-out.c (ui_out_field_core_addr): Update comment.
10012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10014 * stack.c (select_and_print_frame): Make static. Delete the
10016 (func_command): Update call.
10017 (select_frame_command): Delete code computing the frame level.
10018 * frame.h (select_and_print_frame): Delete declaration.
10020 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10022 * sparc-tdep.c (sparc_get_saved_register): Comment why
10023 get_prev_frame call is safe.
10025 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10027 * frame.h (select_frame): Delete level parameter.
10028 * stack.c (select_frame): Update. Use frame_relative_level to
10029 obtain the frame's level.
10030 (select_and_print_frame): Update call.
10031 (select_frame_command): Ditto.
10032 (up_silently_base): Ditto.
10033 (down_silently_base): Ditto.
10034 * ocd.c (ocd_start_remote): Ditto.
10035 * remote-rdp.c (remote_rdp_open): Ditto.
10036 * remote-mips.c (mips_initialize): Ditto.
10037 (common_open): Ditto.
10038 * remote-e7000.c (e7000_start_remote): Ditto.
10039 * m3-nat.c (select_thread): Ditto.
10040 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10041 (child_get_current_exception_event): Ditto.
10042 * varobj.c (varobj_create): Ditto.
10043 (varobj_update): Ditto.
10044 (c_value_of_root): Ditto.
10045 * tracepoint.c (finish_tfind_command): Ditto.
10046 * corelow.c (core_open): Ditto.
10047 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10048 * thread.c (info_threads_command): Ditto.
10049 (switch_to_thread): Ditto.
10050 * infrun.c (normal_stop): Ditto.
10051 (restore_selected_frame): Ditto.
10052 (restore_inferior_status): Ditto.
10053 * breakpoint.c (insert_breakpoints): Ditto.
10054 (watchpoint_check): Ditto.
10055 (bpstat_stop_status): Ditto.
10056 (do_enable_breakpoint): Ditto.
10057 * blockframe.c (flush_cached_frames): Ditto.
10058 (reinit_frame_cache): Ditto.
10060 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10062 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10065 2002-05-04 Jim Blandy <jimb@redhat.com>
10067 * gdbtypes.c (replace_type): Doc fix.
10069 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10071 * valprint.c (strcat_longest): Delete commented out function.
10074 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10076 * MAINTAINERS: Mark a29k as deleted.
10077 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10078 Move new configurations to the top.
10079 * configure.tgt: Remove a29k.
10080 * config/a29k/tm-vx29k.h: Delete.
10081 * config/a29k/vx29k.mt: Delete.
10082 * config/a29k/tm-a29k.h: Delete.
10083 * config/a29k/a29k-udi.mt: Delete.
10084 * config/a29k/a29k.mt: Delete.
10085 * a29k-tdep.c: Delete.
10086 * remote-udi.c: Delete.
10087 * remote-mm.c: Delete.
10088 * remote-eb.c: Delete.
10089 * remote-adapt.c: Delete.
10090 * Makefile.in: Remove obsolete code.
10091 * config/s390/s390x.mt: Ditto.
10092 * config/s390/s390.mt: Ditto.
10093 * config/sparc/sparclynx.mh: Ditto.
10094 * config/sparc/linux.mh: Ditto.
10095 * config/pa/hppaosf.mh: Ditto.
10096 * config/pa/hppabsd.mh: Ditto.
10097 * config/ns32k/nbsd.mt: Ditto.
10098 * config/mips/vr5000.mt: Ditto.
10099 * config/m68k/sun3os4.mh: Ditto.
10100 * config/m68k/nbsd.mt: Ditto.
10101 * config/m68k/m68klynx.mh: Ditto.
10102 * config/m32r/m32r.mt: Ditto.
10103 * config/i386/x86-64linux.mt: Ditto.
10104 * config/i386/nbsdelf.mt: Ditto.
10105 * config/i386/nbsd.mt: Ditto.
10106 * config/i386/i386lynx.mh: Ditto.
10108 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10110 * target.c (debug_print_register): New function. Handle oversize
10112 (debug_to_fetch_registers): Call.
10113 (debug_to_store_registers): Call.
10115 2002-05-03 Jim Blandy <jimb@redhat.com>
10117 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10118 (read_type): Doc fix.
10119 * gdbtypes.c (replace_type): Doc fix.
10121 * stabsread.c (multiply_defined_struct): New complaint.
10122 (read_struct_type): If the type we were passed isn't empty, or
10123 incomplete, don't read the new struct type into it; complain,
10124 and return the original type unchanged. Take a new `type_code'
10125 argument, which is the type code for the new type.
10126 (read_type): Rather than storing the type's type code here, pass
10127 it as an argument to read_struct_type, and let that take care of
10128 storing it. That way, we don't overwrite the original type code,
10129 so read_struct_type can use it to decide whether we're overwriting
10130 something we shouldn't.
10131 (complain_about_struct_wipeout): New function.
10133 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10135 * gdbarch.sh: Assert that gdbarch is non-NULL.
10136 * gdbarch.c: Regenerate.
10138 2002-05-03 Jason Merrill <jason@redhat.com>
10140 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10143 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10145 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10146 (x86_64_dwarf2gdb_regno_map_length),
10147 (x86_64_dwarf2_reg_to_regnum): Added.
10148 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10149 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10150 (_initialize_x86_64_tdep): Synced with the change above.
10151 (x86_64_skip_prologue): Reformulated message.
10153 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10155 * f-exp.y: Also use new prev_lexptr variable
10156 to improve error reporting. Based on Michael Snyder
10157 2002-04-24 dated patch to c-exp.y.
10158 * jv-exp.y: Likewise.
10159 * m2-exp.y: Likewise.
10161 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10163 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10164 we are dealing with vectors.
10166 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10168 * config/m68k/tm-nbsd.h: Obvious fix,
10169 correct machine name.
10171 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10173 * p-typeprint.c (pascal_type_print_base): Add support
10174 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10176 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10178 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10179 for fondamental pascal 'char' type.
10181 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10183 * p-lang.h (is_pascal_string_type): Declaration changed,
10184 new sixth argument of type char ** added.
10185 * p-lang.c (is_pascal_string_type): Implementation
10186 changed. Args length_pos, length_size, string_pos, char_size
10187 can now be NULL. New argument arrayname set to the field
10188 name of the char array. Return value set to char array
10189 field index plus one.
10190 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10191 is_pascal_string_type function.
10193 2002-05-02 Andrew Cagney <cagney@redhat.com>
10195 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10196 <cagney@redhat.com> change.
10197 * gdbarch.c: Regenerate.
10199 2002-05-02 Andrew Cagney <cagney@redhat.com>
10201 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10202 before probing for a new one. Detect errorenous gdbarch_init
10204 * gdbarch.c: Regenerate.
10206 2002-05-01 Andrew Cagney <cagney@redhat.com>
10208 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10209 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10210 * config/v850/tm-v850.h: Ditto. Update copyright.
10212 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10214 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10217 2002-04-30 Michael Snyder <msnyder@redhat.com>
10219 * arm-tdep.c: Whitespace clean-ups.
10220 (arm_skip_prologue): Fix thinko; two lines
10221 should have been removed as part of 4/24 change.
10223 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10225 * rs6000-tdep.c: Added comment describing how fpscr register
10226 numbers were chosen.
10228 2002-04-30 Michael Snyder <msnyder@redhat.com>
10230 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10232 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10234 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10235 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10236 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10238 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10240 From Louis Hamilton <hamilton@redhat.com>:
10241 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10242 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10243 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10244 not bfd-private xcoff data, to determine wordsize.
10245 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10247 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10249 GDB 5.2 released from 5.2 branch.
10251 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10253 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10254 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10255 (x86_64_register_info_table): Added comments with register numbers.
10257 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10259 * rs6000-tdep.c (rs6000_extract_return_value,
10260 rs6000_store_return_value): Handle returning vectors.
10261 (rs6000_gdbarch_init): Use
10262 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10263 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10265 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10267 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10268 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10270 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10272 * hpread.c (hpread_psymtab_to_symtab_1,
10273 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10274 with fprintf_unfiltered (gdb_stderr,...).
10276 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10278 * remote-array.c (printf_monitor, write_monitor,
10279 array_insert_breakpoint, array_remove_breakpoint ):
10280 Replace fprintf (stderr,...
10281 with fprintf_unfiltered (gdb_stderr,....
10282 * remote-es.c: Likewise.
10283 * remote-os9k.c: Likewise.
10284 * remote-st.c: Likewise.
10286 2002-04-28 Andreas Schwab <schwab@suse.de>
10288 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10289 linux-proc.o and gcore.o.
10291 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10293 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10294 code without frame pointers.
10296 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10298 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10299 ON_STACK is needed.
10301 2002-04-26 Ben Elliston <bje@redhat.com>
10303 * target.c (do_xfer_memory): Correct reference to the new option
10304 "trust-readonly-sections".
10306 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10308 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10309 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10310 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10312 (read_array_type): Record the fact that this array type is really a
10313 vector (i.e. are passed in by value).
10315 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10317 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10318 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10319 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10320 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10321 * alpha-linux-tdep.c: Include frame.h.
10322 (alpha_linux_sigcontext_addr): New function.
10323 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10324 alpha_linux_sigcontext_addr.
10325 * alpha-osf1-tdep.c: Include gdbcore.h.
10326 (alpha_osf1_sigcontext_addr): New function.
10327 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10328 alpha_osf1_sigcontext_addr.
10329 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10330 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10332 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10334 * stack.c (selected_frame_level):
10335 (select_frame): Do not set selected_frame_level.
10336 * frame.h (selected_frame_level): Delete declaration.
10338 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10340 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10341 convert_from_func_ptr-addr when AIX / PowerOpen.
10343 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10345 * valops.c (hand_function_call): Call
10346 generic_save_call_dummy_addr.
10347 * frame.h (generic_save_call_dummy_addr): Declare.
10348 * blockframe.c (struct dummy_frame): Add fields call_lo and
10350 (generic_find_dummy_frame): Check for PC in range call_lo to
10351 call_hi instead of entry_point_address.
10352 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10353 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10354 (generic_save_call_dummy_addr): New function.
10356 2002-04-24 David S. Miller <davem@redhat.com>
10358 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10359 sparc_skip_prologue.
10360 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10361 information to find prologue when possible.
10362 (sparc_prologue_frameless_p): Call examine_prologue directly.
10363 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10364 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10366 (SKIP_PROLOGUE): Likewise.
10368 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10370 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10371 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10372 indicate that the condition it was testing is always true.
10373 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10374 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10375 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10377 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10379 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10380 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10381 tdep->jb_pc and tdep->jb_elt_size.
10382 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10383 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10384 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10385 * alpha-nat.c (get_longjmp_target): Remove.
10386 (JB_ELEMENT_SIZE): Ditto.
10388 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10389 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10390 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10391 to alpha_get_longjmp_target.
10392 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10393 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10394 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10396 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10398 * README: Update to GDB 5.2.
10400 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10402 * gdbarch.sh (LC_ALL): Set to `c'.
10404 2002-04-25 Theodore A. Roth <troth@verinet.com>
10406 * avr-tdep.c: Ran through gdb_indent.sh.
10408 2002-04-25 Theodore A. Roth <troth@verinet.com>
10410 * MAINTAINERS: Add myself as AVR maintainer.
10411 * NEWS: Note new target avr.
10413 2002-04-25 Theodore A. Roth <troth@verinet.com>
10415 * Makefile.in: Add support for AVR target.
10416 * configure.tgt: Add support for AVR target.
10417 * avr-tdep.c: New file
10418 * config/avr/avr.mt: New file.
10420 2002-04-25 Theodore A. Roth <troth@verinet.com>
10422 * MAINTAINERS: Add myself to write-after-approval.
10424 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10426 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10427 with fprintf_unfiltered (gdb_stderr,....
10429 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10432 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10434 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10436 * p-exp.y: Also use new prev_lexptr variable
10437 to improve error reporting. Based on Michael Snyder
10438 2002-04-24 dated patch to c-exp.y.
10440 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10442 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10443 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10444 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10446 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10448 (FUNCTION_START_OFFSET): Remove.
10449 (BREAKPOINT): Ditto.
10451 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10453 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10456 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10458 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10459 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10460 alpha_linux_pc_in_sigtramp.
10461 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10462 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10463 alpha_osf1_pc_in_sigtramp.
10464 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10465 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10466 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10467 alphafbsd_pc_in_sigtramp.
10468 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10469 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10470 alphanbsd_pc_in_sigtramp.
10471 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10472 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10474 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10476 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10478 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10480 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10482 (alphanbsd-nat.o): New dependency list.
10483 (alphanbsd-tdep.o): Ditto.
10484 * NEWS: Note new native NetBSD/alpha configuration.
10485 * alphanbsd-nat.c: New file.
10486 * alphanbsd-tdep.c: Ditto.
10487 * configure.host (alpha*-*-netbsd*): New host.
10488 * configure.tgt (alpha*-*-netbsd*): New target.
10489 * config/alpha/nbsd.mh: New file.
10490 * config/alpha/nbsd.mt: Ditto.
10491 * config/alpha/nm-nbsd.h: Ditto.
10492 * config/alpha/tm-nbsd.h: Ditto.
10494 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10496 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10497 (alpha-osf1-tdep.o): New dependency list.
10498 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10499 and skip_sigtramp_frame members.
10500 * alpha-linux-tdep.c: Include gdbcore.h.
10501 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10502 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10503 * alpha-osf1-tdep.c: New file.
10504 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10506 (alpha_frame_past_sigtramp_frame): New function.
10507 (alpha_dynamic_sigtramp_offset): Ditto.
10508 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10509 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10510 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10511 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10512 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10513 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10514 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10515 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10516 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10517 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10518 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10519 to find_solib_trampoline_target.
10520 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10521 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10522 (SKIP_TRAMPOLINE_CODE): Remove.
10523 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10524 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10525 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10526 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10527 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10528 (PROC_SIGTRAMP_MAGIC): Ditto.
10529 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10530 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10531 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10532 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10533 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10535 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10537 * NEWS: Note that Alpha targets are now multi-arch.
10539 2002-04-24 Michael Snyder <msnyder@redhat.com>
10541 * parser-defs.h (prev_lexptr): New external variable.
10542 * parse.c (parse_exp_1): Set prev_lexptr to null before
10543 calling the language-specific parser.
10544 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10545 (yyerror): Use prev_lexptr in error reporting.
10547 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10549 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10550 * gregset.h: If FILL_FPXREGSET is defined, provide
10551 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10552 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10553 is defined, call fill_fpxregset.
10555 2002-04-24 Roland McGrath <roland@frob.com>
10557 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10558 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10559 (supply_gregset, supply_fpregset): New functions.
10561 * gnu-nat.c (gnu_find_memory_regions): New function.
10562 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10563 (gnu_xfer_memory): Add a cast.
10565 2002-04-24 Michael Snyder <msnyder@redhat.com>
10567 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10568 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10569 of argument regs ("str r(0123), [r11, #-nn"]).
10570 (arm_skip_prologue): Better handling for frameless functions.
10571 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10572 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10574 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10576 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10577 NUM_PSEUDO_REGS can be used.
10579 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10581 * arch-utils.h: Update copyright.
10583 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10584 * gdbarch.h, gdbarch.c: Re-generate.
10586 * inferior.h (IN_SIGTRAMP): Delete definition.
10587 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10588 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10590 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10591 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10592 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10593 (find_proc_framesize): Ditto.
10594 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10595 (alpha_init_extra_frame_info): Ditto.
10596 * infrun.c (handle_inferior_event): Ditto.
10597 (handle_inferior_event): Ditto.
10598 (check_sigtramp2): Ditto.
10599 * blockframe.c (create_new_frame): Ditto.
10600 (get_prev_frame): Ditto.
10601 * ppc-linux-tdep.c: Update comments.
10602 * i386-linux-tdep.c: Update comments.
10603 * breakpoint.c (bpstat_what): Update comment.
10605 2002-04-24 David S. Miller <davem@redhat.com>
10607 * i960-tdep.c (register_in_window_p): New function.
10608 (i960_find_saved_register): Use it instead of
10609 REGISTER_IN_WINDOW_P.
10610 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10612 * symtab.h (find_stab_function_addr): Kill extern.
10613 * minsyms.c (find_stab_function_addr): Remove from here...
10614 * dbxread.c: ... to here, and mark it static.
10616 2002-04-20 David S. Miller <davem@redhat.com>
10618 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10619 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10621 2002-04-21 David S. Miller <davem@redhat.com>
10623 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10624 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10625 (vx_write_register): Likewise.
10627 2002-04-23 J. Brobecker <brobecker@gnat.com>
10629 * source.c (is_regular_file): New function.
10630 (openp): Check wether file to open is a regular file
10631 to avoid opening directories.
10633 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10635 * findvar.c (extract_signed_integer): Cast printf argument
10636 to suppress format warning.
10637 (extract_unsigned_integer): Likewise.
10638 * infcmd.c (registers_info): Likewise.
10639 * top.c (get_prompt_1): Likewise.
10640 * valops.c (value_assign): Likewise.
10641 * valprint.c (print_decimal): Likewise.
10643 2002-04-22 H.J. Lu (hjl@gnu.org)
10645 * c-exp.y (typebase): Support
10647 [long|long long|short] [signed|unsigned] [int|]
10651 signed [long|long long|short] int
10653 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10655 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10657 * vax-tdep.h: New file.
10658 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10659 Make several routines static.
10660 (vax_get_saved_register): New function.
10661 (vax_gdbarch_init): New function.
10662 (_initialize_vax_tdep): Register vax_gdbarch_init.
10663 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10664 Remove macros now under the control of gdbarch.
10666 2002-04-22 Michael Snyder <msnyder@redhat.com>
10668 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10669 Some whitespace and coding standards tweaks.
10671 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10673 * vax-tdep.c: Include regcache.h.
10674 (vax_call_dummy_words): New.
10675 (sizeof_vax_call_dummy_words): New.
10676 (vax_fix_call_dummy): New function.
10677 (vax_saved_pc_after_call): Ditto.
10678 * config/vax/tm-vax.h: Don't include regcache.h.
10679 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10680 (CALL_DUMMY): Remove.
10681 (CALL_DUMMY_WORDS): Define.
10682 (SIZEOF_CALL_DUMMY_WORDS): Define.
10683 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10685 2002-04-18 Michael Snyder <msnyder@redhat.com>
10687 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10689 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10691 * vax-tdep.c (vax_frame_chain): New function.
10692 (vax_push_dummy_frame): Ditto.
10693 (vax_pop_frame): Ditto.
10694 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10695 (FRAMELESS_FUNCTION_INVOCATION): Use
10696 generic_frameless_function_invocation_not.
10697 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10698 (POP_FRAME): Use vax_pop_frame.
10700 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10702 * vax-tdep.c (vax_store_struct_return): New function.
10703 (vax_extract_return_value): Ditto.
10704 (vax_store_return_value): Ditto.
10705 (vax_extract_struct_value_address): Ditto.
10706 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10707 vax_store_struct_return.
10708 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10709 (STORE_RETURN_VALUE): Use vax_store_return_value.
10710 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10712 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10714 * vax-tdep.c (vax_frame_saved_pc): New function.
10715 (vax_frame_args_address_correct): Ditto.
10716 (vax_frame_args_address): Ditto.
10717 (vax_frame_locals_address): Ditto.
10718 (vax_frame_num_args): Move code to be in proximity to
10719 other frame-related functions.
10720 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10721 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10722 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10723 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10724 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10726 2002-04-22 H.J. Lu (hjl@gnu.org)
10728 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10731 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10733 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10734 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10735 (FRAME_INIT_SAVED_REGS): New macro.
10737 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10739 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10741 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10743 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10745 (fetch_osf_core_registers): Likewise.
10746 (supply_gregset): Likewise.
10748 2002-04-22 J. Brobecker <brobecker@gnat.com>
10750 * symfile.h (get_section_index): Define.
10751 * symfile.c (get_section_index): New function.
10752 * mdebugread.c (SC_IS_SBSS): New macro.
10753 (SC_IS_BSS): Return true for the scBss storage class only, as
10754 the scSBss storage class refers to the .sbss section.
10755 (parse_partial_symbols): Discard the symbols which associated
10756 section does not exist.
10757 Make sure to use the .sbss section index for symbols which
10758 storage class is scBss, rather than using the .bss section index.
10760 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10762 * vax-tdep.c: Update copyright years.
10763 (vax_register_name): New function.
10764 (vax_register_byte): Ditto.
10765 (vax_register_raw_size): Ditto.
10766 (vax_register_virtual_size): Ditto.
10767 (vax_register_virtual_type): Ditto.
10768 * config/vax/tm-vax.h: Update copyright years.
10769 (REGISTER_NAMES): Remove.
10770 (REGISTER_NAME): Define.
10771 (REGISTER_BYTE): Use vax_register_byte.
10772 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10773 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10774 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10776 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10778 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10780 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10782 2002-04-21 David S. Miller <davem@redhat.com>
10784 * arch-utils.c (generic_prologue_frameless_p): Kill
10785 SKIP_PROLOGUE_FRAMELESS_P code.
10786 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10788 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10789 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10790 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10792 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10793 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10794 (sparc_gdbarch_init): Pass it to
10795 set_gdbarch_prologue_frameless_p.
10797 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10799 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10800 (alphabsd-nat.o): New dependency list.
10802 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10804 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10806 (alpha-linux-tdep.o): New dependency list.
10807 (alphafbsd-tdep.o): Likewise.
10809 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10811 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10813 * alpha-tdep.c: ...from here.
10814 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10816 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10818 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10819 prototype from here...
10820 * alpha-tdep.h: ...to here.
10822 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10824 * frame.h (selected_frame_level): Document as deprecated.
10825 (frame_relative_level): Declare.
10826 * stack.c (frame_relative_level): New function.
10827 (selected_frame_level): Document as deprecated.
10828 (select_frame): Do not set the selected_frame_level.
10830 * stack.c (frame_info, record_selected_frame): Update.
10831 (frame_command, current_frame_command): Update.
10832 (up_silently_base, up_command, down_silently_base): Update.
10833 (down_command): Update.
10834 * inflow.c (kill_command): Update.
10835 * tracepoint.c (finish_tfind_command): Update.
10836 * corelow.c (core_open): Update.
10837 * thread.c (info_threads_command): Update.
10838 (do_captured_thread_select): Update.
10839 * infcmd.c (finish_command): Update.
10840 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10844 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10846 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10848 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10851 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10853 * alphafbsd-tdep.c: Update copyright years. Include
10855 (alphafbsd_use_struct_convention): Make static.
10856 (alphafbsd_init_abi): New function.
10857 (_initialize_alphafbsd_tdep): New function.
10858 * config/alpha/tm-fbsd.h: Update copyright years.
10859 (USE_STRUCT_CONVENTION): Remove.
10861 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10863 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10864 an Alpha ABI variant.
10865 (alpha_abi_handler_list): Declare.
10866 (alpha_gdbarch_register_os_abi): New function.
10867 (alpha_gdbarch_init): Give registered ABI variant handlers a
10868 chance to tweak the gdbarch once we have set up defaults.
10869 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10871 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10873 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10874 to standard_coerce_float_to_double.
10875 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10877 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10879 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10880 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10881 from gdbarch_tdep rather than a constant.
10882 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10883 the default text address for all Alpha Unix ABIs.
10884 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10885 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10887 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10889 * alpha-tdep.h: New file. Includes several Alpha target constants
10891 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10892 let gdbarch deal with.
10893 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10894 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10895 to dependency list.
10896 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10897 Alpha target register names.
10898 * alphabsd-nat.c: Likewise.
10899 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10900 Alpha target register names. Make serveral routines static.
10901 (alpha_get_saved_register): New function.
10902 (alpha_abi_names): New.
10903 (process_note_abi_tag_sections): New function.
10904 (get_elfosabi): New function.
10905 (alpha_gdbarch_init): New function.
10906 (alpha_dump_tdep): New function.
10907 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10909 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10911 * frame.c (find_saved_register): Delete #ifdef
10912 HAVE_REGISTER_WINDOWS code.
10913 * config/sparc/tm-sparc.h: Update comments.
10914 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10916 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10918 * i960-tdep.c (i960_find_saved_register): New function.
10919 (i960_get_saved_register): New function.
10920 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10921 (i960_get_saved_register): Declare.
10922 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10924 2002-04-20 David S. Miller <davem@redhat.com>
10926 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10928 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10930 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10931 instead of NUM_PSEUDO_REGS.
10933 2002-04-20 David S. Miller <davem@redhat.com>
10935 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10936 GDB_MULTI_ARCH_PARTIAL
10937 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10938 define, let tm-sp64.h do it.
10940 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10942 * frame.c (find_saved_register): Avoid a NULL pointer
10943 dereference and actually walk the frame list.
10945 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10947 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10948 sorted in most most-recent-used order. Document.
10949 * gdbarch.h, gdbarch.c: Regenerate.
10951 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10953 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10955 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10956 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10957 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10960 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10963 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10964 (build_builtin_type_vec128): Ditto.
10965 (append_composite_type_field): Fix calculation of type length in
10968 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10970 * config/djgpp/README: Update.
10972 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10975 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10977 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10978 (alpha_setup_arbitrary_frame): ...to this.
10979 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10980 for alpha_setup_arbitrary_frame.
10982 2002-04-18 Andrew Cagney <cagney@redhat.com>
10984 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10985 * gdbarch.h, gdbarch.c: Regenerate.
10987 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10988 * target.h (memory_breakpoint_from_pc): Update declaration.
10989 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10991 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10992 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10993 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10994 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10995 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10996 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10997 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10998 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10999 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11000 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11001 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11002 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11004 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11006 * monitor.c (monitor_insert_breakpoint): Ditto.
11007 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11009 * config/mcore/tm-mcore.h: Update copyright.
11010 * mem-break.c: Ditto.
11011 * xstormy16-tdep.c: Ditto.
11013 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11015 * p-exp.y: Add precedence rule for '^' token.
11016 This removes the shift/reduce conflicts.
11017 Remove the comment concerning these shift/reduce conflicts.
11019 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11021 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11022 (registers_powerpc_nofp): New register set for processors
11023 without floating point unit.
11025 2002-04-18 David S. Miller <davem@redhat.com>
11027 * MAINTAINERS: Add myself to write-after-approval.
11029 2002-04-17 Michael Snyder <msnyder@redhat.com>
11031 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11033 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11035 * rs6000-tdep.c (frame_initial_stack_address): Use
11036 frame_register_read to read the alloca_reg.
11038 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11040 * frame.c (find_saved_register): Find saved registers in the next
11044 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11046 * gdbarch.sh (LANG): Set to ``c''.
11048 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11050 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11052 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11054 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11057 * hpread.c (hpread_get_lntt): Add declaration.
11058 Also fix PR gdb/391.
11060 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11062 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11063 * aclocal.m4, configure: Re-generate.
11066 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11068 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11069 instead of tm_print_insn.
11071 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11073 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11075 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11077 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11078 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11079 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11081 2002-04-12 Don Howard <dhoward@redhat.com>
11083 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11084 max_user_call_depth.
11085 (init_cmd_lists): Initialize the new value;
11086 * cli/cli-script.c (execute_user_command): Limit the call depth of
11087 user defined commands. This avoids a core-dump when user commands
11088 are infinitly recursive.
11090 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11092 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11093 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11094 from tdep struct instead of DEFAULT_LR_SAVE.
11095 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11096 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11097 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11099 2002-04-12 Michael Snyder <msnyder@redhat.com>
11101 * Remote.c: Spelling fix.
11102 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11103 If no symbol found for "sbrk", try "_sbrk".
11104 (make_output_phdrs): Use bfd_section_name.
11105 (gcore_copy_callback): Use bfd_section_name.
11106 * eval.c: Indentation fix-ups.
11107 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11108 in case it gets applied to an address that is already
11109 in the instruction space.
11110 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11111 * symfile.c: Fix indentation, long lines.
11112 * source.c: White space fix-up.
11114 2002-04-12 Andrew Cagney <cagney@redhat.com>
11116 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11117 * frame.c (frame_register_read): New function. Return non-zero on
11119 (read_relative_register_raw_bytes_for_frame): Delete.
11120 (read_relative_register_raw_bytes): Delete.
11121 * frame.h (frame_register_read): Declare.
11122 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11123 * sh-tdep.c: Ditto.
11124 * infcmd.c (do_registers_info): Ditto.
11125 * hppa-tdep.c: Ditto.
11126 * rs6000-tdep.c: Ditto.
11127 * h8500-tdep.c: Ditto.
11128 * mips-tdep.c: Ditto.
11129 * h8300-tdep.c: Ditto.
11130 * z8k-tdep.c: Ditto.
11132 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11134 From Jimi X <jimix@watson.ibm.com>:
11135 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11138 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11140 From Jimi X <jimix@watson.ibm.com>:
11141 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11144 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11146 From Jimi X <jimix@watson.ibm.com>:
11147 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11148 register sets for these processor variants.
11150 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11152 * regformats/reg-ppc.dat: Support FPSCR.
11154 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11156 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11157 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11158 Add fpscr as an invalid/unfetchable register.
11159 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11160 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11161 (fill_fpregset): Add support for register fpscr.
11162 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11163 (fill_gregset): Account for the fact that register ``mq'' might
11165 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11166 (registers_power): Add fpscr to register set at slot 71.
11167 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11168 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11170 2002-04-11 Michael Snyder <msnyder@redhat.com>
11172 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11173 * configure: Regenerate.
11174 * config.in: Regenerate.
11175 * acconfig.h: Add define for _SYSCALL32.
11176 * core-sol2.c: Remove #define _SYSCALL32.
11177 * solib-legacy.c: Remove #define _SYSCALL32.
11179 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11181 * stack.c (select_frame): Cleanup internal error message, do not
11184 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11186 * stack.c (select_frame): Check that selected_frame and the
11187 specified level are as expected.
11188 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11190 * frame.h (struct frame_info): Add field `level'. Update
11192 Work-in-progress PR gdb/464.
11194 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11196 * maint.c (maint_print_section_info): Rename print_section_info.
11197 (print_bfd_section_info, print_objfile_section_info): Update.
11198 * inferior.h (struct gdbarch): Add opaque declaration.
11199 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11200 * gdbarch.h: Regenerate.
11202 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11204 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11205 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11206 (kernel_u_size): Added.
11207 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11208 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11210 2002-04-04 Jim Ingham <jingham@apple.com>
11212 * valarith.c (find_size_for_pointer_math): New function, either returns
11213 the size for a pointer's target, returns 1 for void *, or errors for
11215 (value_add, value_sub): use find_size_for_pointer_math.
11217 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11219 * linux-low.c (linux_look_up_symbols): New hook.
11220 (linux_target_ops): Add linux_look_up_symbols.
11221 * remote-utils.c (decode_address): New function.
11222 (look_up_one_symbol): New function.
11223 * server.c (handle_query): Call target look_up_symbols hook.
11224 * server.h (look_up_one_symbol): Add prototype.
11225 * target.h (struct target_ops): Add look_up_symbols hook.
11227 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11229 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11230 override FP_REGNUM with frame->fp. Update copyright.
11231 * parse.c (num_std_regs, std_regs): Delete.
11232 (target_map_name_to_register): Do not search std_regs. Update
11233 function description.
11234 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11235 declarations. Update copyright.
11238 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11240 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11241 after the last symbol in a block.
11243 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11245 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11246 is non zero as a found symbol.
11248 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11250 * findvar.c: Include "builtin-regs.h".
11251 (value_of_register): Call value_of_builtin_reg when applicable.
11252 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11253 (target_map_name_to_register): Call
11254 builtin_reg_map_name_to_regnum.
11255 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11256 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11257 (builtin_regs_h): Define.
11258 (builtin-regs.o): New target.
11259 (findvar.o): Add $(builtin_regs_h).
11260 * builtin-regs.c, builtin-regs.h: New files.
11261 * std-regs.c: New file.
11262 Partial fix for PR gdb/251.
11264 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11266 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11267 it's no longer required.
11269 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11271 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11273 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11275 From Jimi X <jimix@watson.ibm.com>:
11276 * rs6000-tdep.c (rs6000_software_single_step): Use
11277 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11278 and size. Use target_insert_breakpoint() and
11279 target_remove_breakpoint() to insert and remove breakpoints
11280 instead of explicit memory reads and writes.
11282 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11284 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11285 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11286 ELF_OBJECT_FORMAT ifdef.
11288 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11290 From Jimi X <jimix@watson.ibm.com>:
11291 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11293 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11295 From Jimi X <jimix@watson.ibm.com>:
11296 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11297 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11299 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11301 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11302 s/asprintf/xasprintf/.
11303 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11305 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11307 I believe Jeff Law denies responsability for this one:
11308 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11309 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11310 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11311 Work-around for PR gdb/366.
11313 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11315 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11316 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11317 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11319 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11321 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11322 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11325 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11327 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11330 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11332 * README (Reporting Bugs in GDB): Document the bug web page as the
11333 prefered way of submitting bugs.
11336 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11338 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11339 -1. Update comment.
11340 * gdbarch.h, gdbarch.c: Re-generate.
11342 2002-04-07 Andreas Schwab <schwab@suse.de>
11344 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11345 buffer to regcache_collect.
11347 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11349 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11350 * gdbarch.c, gdbarch.h: Re-generate.
11352 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11354 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11355 declaration. Fix -Werror.
11357 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11359 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11360 * gdbarch.c: Regenerate.
11362 2002-04-05 Michael Snyder <msnyder@redhat.com>
11364 * breakpoint.c (clear_command): Rewrite middle section to
11365 combine two loops with identical control conditions.
11366 Add a cleanup to eliminate a memory leak.
11367 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11369 2002-04-05 H.J. Lu (hjl@gnu.org)
11371 * solib-svr4.c (bkpt_names): Add "__start".
11373 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11375 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11376 as test for 64 bit target.
11378 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11380 * h8500-tdep.c (h8500_write_fp): Delete function.
11381 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11382 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11383 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11385 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11386 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11388 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11389 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11390 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11391 (d10v_write_fp): Delete function.
11392 * inferior.h (write_fp, generic_target_write_fp): Delete
11394 * regcache.c (generic_target_write_fp): Delete function.
11395 (write_fp): Delete function.
11396 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11397 * gdbarch.h, gdbarch.c: Regenerate.
11398 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11399 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11400 (sparc64_write_fp): Delete declaration.
11401 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11402 (h8500_write_fp): Delete declaration.
11404 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11406 * sparc-tdep.c (sparc64_write_fp): Delete.
11407 (sparc_push_dummy_frame): Replace write_fp call with code to store
11409 (sparc_gdbarch_init): Do not initialize write_fp.
11411 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11413 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11416 2002-03-29 Jim Blandy <jimb@redhat.com>
11418 * stack.c (get_selected_block): Add new argument `addr_in_block',
11419 used to return the exact code address we used to select the block,
11420 not just the block.
11421 * blockframe.c (get_frame_block, get_current_block): Same.
11422 * frame.h (get_frame_block, get_current_block,
11423 get_selected_block): Update declarations.
11424 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11425 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11427 2002-04-05 Michael Snyder <msnyder@redhat.com>
11429 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11432 2002-04-05 J. Brobecker <brobecker@gnat.com>
11434 * utils.c (xfullpath): New function.
11435 * defs.h (xfullpath): Add declaration.
11436 * source.c (openp): Use xfullpath in place of gdb_realpath to
11437 avoid resolving the basename part of filenames when the
11438 associated file is a symbolic link. This fixes a potential
11439 inconsistency between the filenames known to GDB and the
11440 filenames it prints in the annotations.
11441 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11442 to be able to match a filename with either the real filename, or
11443 the name of any symbolic link to this file.
11444 (lookup_partial_symtab): Ditto.
11446 2002-04-04 Michael Snyder <msnyder@redhat.com>
11448 * breakpoint.c: Add support for hardware breakpoints in overlays.
11449 (overlay_events_enabled): New state variable.
11450 (insert_breakpoints): Use overlay_events_enabled to decide
11451 whether to attempt to set a breakpoint at the overlay load addr.
11452 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11453 (remove_breakpoint): Use overlay_events_enabled to decide
11454 whether breakpoints need to be removed from overlay load addr.
11455 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11456 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11457 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11458 disable_overlay_breakpoints): Update overlay_events_enabled.
11460 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11462 * dwarf2read.c (struct function_range): New.
11463 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11464 (check_cu_functions): New.
11465 (read_file_scope): Initialize global function lists.
11466 Call dwarf_decode_line after processing children.
11467 (read_func_scope): Add to global function list.
11468 (dwarf_decode_lines): Call check_cu_functions everywhere
11469 record_line is called. Call record_line with a linenumber
11470 of 0 to mark sequence ends.
11472 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11474 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11475 change sync with glibc.
11477 2002-04-03 Jim Blandy <jimb@redhat.com>
11479 * configure.in: Call AC_C_INLINE.
11480 * configure: Regenerated.
11482 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11484 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11485 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11487 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11489 * NEWS: Mention gcore support on FreeBSD/i386.
11491 * fbsd-proc.c: New file.
11492 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11493 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11495 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11498 2002-03-29 Jim Blandy <jimb@redhat.com>
11500 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11501 unescaped newlines in string literals, but newer ones don't. So
11504 2002-03-26 Michael Snyder <msnyder@redhat.com>
11505 Andrew Cagney <cagney@redhat.com>
11507 * cli/cli-dump.c: New file. Dump memory to file,
11508 restore file to memory.
11509 * cli/cli-dump.h: New file.
11510 * Makefile.in: Add rules, dependencies for cli-dump.o.
11511 * NEWS: Mention new commands.
11513 2002-03-28 Michael Snyder <msnyder@redhat.com>
11515 * symfile.c (symbol_file_add): Move test for null symbols to later.
11517 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11519 From veksler at il.ibm.com:
11520 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11521 the xstrduped original path.
11524 2002-03-27 Michael Snyder <msnyder@redhat.com>
11526 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11527 * infcmd.c (_initialize_infcmd): Ditto.
11528 * language.c (_initialize_language): Ditto.
11529 * symfile.c (_initialize_symfile): Ditto.
11530 * top.c (_init_main): Ditto.
11531 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11533 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11535 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11536 vector registers handling.
11537 (skip_prologue): Handle new AltiVec instructions. Fill in new
11538 fields of frame data.
11539 (frame_get_saved_regs): Fill in information for AltiVec registers.
11541 2002-03-27 Jim Blandy <jimb@redhat.com>
11543 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11544 a function; leave this macro here to invoke that function.
11545 (symbol_init_mangled_name): Declaration for that function.
11546 * symtab.c (symbol_init_mangled_name): New function.
11548 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11550 * valarith.c: Replace strerror with safe_strerror.
11551 * tracepoint.c: Ditto.
11552 * lin-lwp.c: Ditto.
11553 * go32-nat.c: Ditto.
11555 * gnu-nat.c: Ditto.
11557 2002-03-27 Andreas Schwab <schwab@suse.de>
11559 * event-top.c (command_line_handler): Remove useless if.
11561 2002-03-27 Andreas Jaeger <aj@suse.de>
11563 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11566 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11568 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11569 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11570 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11571 (x86_64_linux_dr_get_status, supply_gregset),
11572 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11573 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11574 (x86_64_register_info_table): Add.
11575 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11576 (x86_64_register_raw_size, x86_64_register_virtual_type),
11577 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11578 general x86_64_register_info_table.
11579 (i386_gdbarch_init): gdbarch_register_bytes is now set
11580 dynamicaly during initialization.
11581 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11582 * gdbserver/linux-x86-64-low.c: Ditto.
11584 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11586 * gdbserver/server.c (main): Call target_signal_to_host_p
11587 and target_signal_to_host on signals received from the remote.
11588 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11589 target_signal_from_host on signals sent to the remote.
11590 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11591 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11593 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11595 * signals/signals.c: Include "server.h" in gdbserver build.
11596 (target_signal_from_name): Don't use STREQ.
11597 (_initialize_signals): Likewise. Don't include function in
11600 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11602 * signals.c: Moved to...
11603 * signals/signals.c: Here.
11604 * Makefile (signals.o): Update.
11606 2002-03-26 Jeff Law (law@redhat.com)
11608 * somread.c (som_symtab_read): Remove some commented out code and
11609 updated related comments. Do not set the minimal symbol table to
11610 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11611 in a dynamic executable.
11612 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11613 where we are unable to find the minimal symbol for the given
11616 2002-03-25 Jeff Law (law@redhat.com)
11618 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11620 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11622 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11624 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11626 * command.h: Update copyright.
11627 (struct cmd_list_element): Replace definition with opaque
11629 (enum cmd_types): Document that it will eventually be moved to
11631 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11632 (MALLOCED_REPLACEMENT): Delete macro.
11633 * Makefile.in (cli_decode_h): Add $(command_h).
11634 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11635 * top.c: Include "cli/cli-decode.h".
11636 * completer.c: Include "cli/cli-decode.h".
11637 * maint.c: Include "cli/cli-decode.h".
11638 * cli/cli-decode.h: Include "command.h".
11639 (enum command_class): Delete.
11640 (enum cmd_types): Comment out.
11641 (enum cmd_auto_boolean): Delete.
11642 (enum var_types): Delete.
11644 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11646 * cli/cli-decode.c: Include "gdb_assert.h".
11647 (add_set_or_show_cmd): New static function.
11648 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11649 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11650 all fields, such as func, from the set command.
11652 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11654 * MAINTAINERS (sh-elf): Change warning flag to -w.
11656 2002-03-23 Andrew Cagney <cagney@redhat.com>
11658 * defs.h (error): Add printf format attribute.
11659 * thread-db.c (thread_from_lwp): Fix error format string.
11660 * stack.c (parse_frame_specification): Ditto.
11661 * cli/cli-decode.c (undef_cmd_error): Ditto.
11662 * scm-lang.c (scm_lookup_name): Ditto.
11663 * tracepoint.c (trace_error): Ditto.
11664 * remote-utils.c (usage): Ditto.
11665 * remote.c (compare_sections_command): Ditto.
11668 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11670 * gdbtypes.c (append_composite_type_field): New function.
11671 (init_composite_type): New function.
11672 * gdbtypes.h (append_composite_type_field): Declare.
11673 (init_composite_type): Ditto.
11675 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11677 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11679 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11680 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11681 structure returning convention for SYSV ABI case, but not
11682 for GNU/Linux, FreeBSD, or NetBSD.
11684 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11686 * symtab.h (lookup_block_symbol): Add mangled_name argument
11689 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11690 with new mangled_name argument.
11691 * linespec.c (decode_line_1): Likewise.
11692 * valops (value_of_this): Likewise.
11693 * symtab.c (lookup_transparent_type): Likewise.
11694 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11695 (lookup_symbol): If we are given a mangled name, pass it down
11696 to lookup_symbol_aux.
11697 (lookup_block_symbol): If we are given a mangled name to check
11698 against, only return symbols which match it.
11700 2002-03-22 Christopher Faylor <cgf@redhat.com>
11702 * win32-nat.c (child_create_inferior): Check for proper shell to use
11703 here, in case the user changes it on the fly.
11704 (_initialize_inftarg): Remove shell path considerations.
11706 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11708 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11709 for gdbarch_max_register_raw_size and max_register_virtual_size.
11710 Adjust copyright year.
11712 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11714 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11715 in a function to cover the entire beginning of the function
11716 as well if it does not already.
11718 2002-03-21 Tom Rix <trix@redhat.com>
11720 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11721 (rs6000_ptrace64): Renamed from ptrace64.
11723 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11725 * gdbserver/remote-utils.c (remote_open): Don't call
11726 getprotobyname, we're all using TCP here so just use
11728 * gdbserver/gdbreplay.c (remote_open): Ditto.
11730 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11732 * regcache.c (_initialize_regcache): No need to call
11733 build_regcache() at this time; it gets called whenever
11734 the gdbarch changes.
11736 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11738 * sparc-nat.c: Include sys/param.h where possible.
11740 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11743 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11744 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11745 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11747 * stabsread.c (rs6000_builtin_type): Likewise.
11748 (read_sun_floating_type): Likewise.
11750 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11752 * stabsread.c (read_member_functions): Remove skip code for duplicate
11753 constructor/destructor methods. Use standard parsing for these
11754 methods and just do not chain them to the list of methods after
11757 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11759 * coffread.c: Remove redundant static declarations. Replace
11760 occurrences of `PTR' with `void *'.
11761 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11762 * top.h (quit_cover): Likewise.
11763 * defs.h (catch_errors): Likewise.
11765 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11767 * defs.h (XMALLOC): Define.
11768 * gdb-events.sh (XMALLOC): Delete macro.
11769 * gdb-events.c, gdb-events.h: Regenerate.
11770 * gdbarch.sh (XMALLOC): Delete macro.
11771 * gdbarch.c: Regenerate.
11772 * serial.c (XMALLOC): Delete macro.
11773 * ui-file.c (XMALLOC): Ditto.
11774 * ser-unix.h (XMALLOC): Ditto.
11775 * sh-tdep.c (XMALLOC): Ditto.
11776 * ui-out.c (XMALLOC): Ditto.
11777 * utils.c (XMALLOC): Ditto.
11778 * i386-tdep.c (XMALLOC): Ditto.
11779 * gdb-events.c (XMALLOC): Ditto.
11780 * d10v-tdep.c (XMALLOC): Ditto.
11781 * cli-out.c (XMALLOC): Ditto.
11783 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11784 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11785 * ui-file.c, ui-out.c: Ditto.
11787 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11789 * command.h (struct cmd_list_element): Add field context.
11790 (set_cmd_context, get_cmd_context): Declare.
11791 * cli/cli-decode.h: Ditto.
11792 * cli/cli-decode.c (get_cmd_context): New function.
11793 (set_cmd_context): New function.
11794 (add_cmd): Initialize context.
11795 Part of fixing PR gdb/145 and PR gdb/146.
11797 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11799 * cli/cli-decode.c (cmd_type): New function.
11800 * command.h (cmd_type): Declare.
11801 * infrun.c (set_schedlock_func): Call function cmd_type.
11802 * kod.c (kod_set_os): Call cmd_type.
11803 * cris-tdep.c (cris_version_update): Use function cmd_type.
11804 (cris_mode_update, cris_abi_update): Ditto.
11806 * command.h: (execute_cmd_post_hook): Declare.
11807 (execute_cmd_pre_hook): Declare.
11808 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11809 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11810 functions. Execute pre/post hook while ensuring that afterwords
11811 hook_in is cleared.
11812 * top.c (execute_command): Use execute_cmd_post_hook, and
11813 execute_cmd_pre_hook to execute pre/post commands.
11814 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11816 (hook_stop_stub): Call execute_cmd_pre_hook.
11818 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11820 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11821 set'' and this leads to a core dump. Move xstrdup of
11822 operating_system to after check that it is not NULL.
11824 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11826 * kod.c (kod_set_os): Remove unnecessary check that
11827 ``command->type'' is set_cmd.
11829 * valprint.c (set_input_radix): Use input_radix.
11830 (set_output_radix): Use output_radix.
11831 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11834 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11836 * value.h (struct value): Delete field ``substring_addr''. Change
11837 aligner fields to force_doublest_align, force_longest_align,
11838 force_core_addr_align and force_pointer_aligh.
11840 * value.h (struct value): Fix typo in above change.
11842 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11844 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11845 to fix internal_error from ``maintenance print architecture''.
11847 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11849 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11850 for gcc versions after gcc-2.8.1.
11852 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11854 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11855 for method resolution. Restore adjustment of ``this'' pointer after
11856 calling value_struct_elt, which was accidentally removed during the
11859 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11861 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11863 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11864 get_saved_register.
11865 * value.h (value_of_register): Update.
11867 2002-03-14 Richard Henderson <rth@redhat.com>
11869 * configure.in: Detect declaration for canonicalize_file_name.
11870 * utils.c (canonicalize_file_name): Declare, if needed.
11871 (gdb_realpath): Prefer realpath if available and usable.
11872 * config.in, configure: Rebuild.
11874 2002-03-14 Richard Henderson <rth@redhat.com>
11876 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11877 a constant array bound.
11879 * MAINTAINERS: Add myself to write-after-approval.
11881 2002-03-14 Michael Snyder <msnyder@redhat.com>
11883 * symfile.c (syms_from_objfile): Return immediately if no syms.
11884 (symbol_file_add): Return immediately if no syms.
11885 (find_sym_fns): Return immediately if no syms.
11887 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11889 * gdbserver/remote-util.c (remote_open): Print remote-side's
11890 IP address when remote debugging over the network.
11892 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11894 * config/sparc/fbsd.mh: Fix copyright.
11895 * config/sparc/fbsd.mt: Likewise.
11897 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11899 * MAINTAINERS: Fix typo in name of gdb warnings option.
11900 (x86-64): Fix formating so that this can be parsed by awk.
11902 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11904 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11905 * defs.h: Include "gdb/signals.h".
11906 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11908 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11910 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11911 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11914 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11915 Don Howard <dhoward@redhat.com>
11917 * mips-tdep.c (ST0_FR): Define.
11918 (mips2_fp_compat): New function, temporarily disabled.
11919 (mips_read_fp_register_single): New function.
11920 (mips_read_fp_register_double): New function.
11921 (mips_print_register): Use them.
11922 (do_fp_register_row): Likewise.
11924 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11926 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11929 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11931 * stabsread.c (read_member_functions): Fix is_stub test for
11932 static member functions, improve comment.
11934 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11936 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11937 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11938 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11939 commands that set boolean values.
11940 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11941 (arm_rdi_resume): Always initialize PC.
11942 (arm_rdi_open): Don't use rslt as a boolean.
11943 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11944 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11945 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11946 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11948 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11950 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11951 * configure: Rebuilt.
11953 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11955 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11956 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11958 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11960 * cli/cli-decode.c (set_cmd_completer): New function.
11961 * command.h (set_cmd_completer): Declare.
11962 * cli/cli-decode.h (set_cmd_completer): Ditto.
11964 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11965 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11966 * win32-nat.c (_initialize_inftarg): Ditto.
11967 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11968 * proc-api.c (_initialize_proc_api): Ditto.
11969 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11970 * source.c (_initialize_source): Ditto.
11971 * exec.c (_initialize_exec): Ditto.
11972 * solib.c (_initialize_solib): Ditto.
11973 * top.c (init_main): Ditto.
11974 * tracepoint.c (_initialize_tracepoint): Ditto.
11975 * symfile.c (_initialize_symfile): Ditto.
11976 * printcmd.c (_initialize_printcmd): Ditto.
11977 * infcmd.c (_initialize_infcmd): Ditto.
11978 * corefile.c (_initialize_core): Ditto.
11980 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11982 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11984 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11986 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11988 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11990 * NEWS: Update headings, 5.2 has branched.
11992 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11994 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11995 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11996 (register_addr, REGISTER_RAW_SIZE): Likewise.
11997 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11998 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12000 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12002 * MAINTAINERS (x86-64): Add myself.
12003 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12004 changed value_ptr -> struct value *
12006 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12008 * configure.host (sparc64-*-freebsd): Add.
12009 * configure.tgt: Likewise.
12010 * config/sparc/fbsd.mh: New file.
12011 * config/sparc/fbsd.mt: Likewise.
12012 * config/sparc/nm-fbsd.h: Likewise.
12013 * config/sparc/tm-fbsd.h: Likewise.
12015 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12017 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12018 regformats/reg-s390x.dat.
12020 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12022 * utils.c: Add FIXME explaining true/false problem.
12024 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12026 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12028 2002-02-28 Michael Chastain <mec@shout.net>
12030 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12032 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12034 * gdbserver/linux-s390-low.c: New file.
12035 * regformats/reg-s390.dat: New file.
12036 * regformats/reg-s390x.dat: New file.
12037 * gdbserver/configure.srv: Add S/390.
12038 * gdbserver/Makefile.in: Add S/390.
12039 * configure.tgt: Enable gdbserver for S/390.
12041 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12043 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12044 first line of the doc string for "info dos", except at the end of
12045 the sentence, since the short help stops at the first period.
12047 2002-02-28 Jason Merrill <jason@redhat.com>
12049 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12051 2002-02-27 Fred Fish <fnf@redhat.com>
12053 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12054 comment (dumy -> dummy).
12056 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12058 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12060 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12062 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12064 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12066 * gdbserver/acconfig.h: New file.
12067 * gdbserver/i387-fp.c: New file.
12068 * gdbserver/i387-fp.h: New file.
12069 * gdbserver/linux-x86-64.c: New file.
12070 * regformats/reg-x86-64.dat: New file.
12071 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12072 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12073 * gdbserver/configure.in: Add support for regsets.
12074 * gdbserver/config.in: Regenerate.
12075 * gdbserver/configure: Regenerate.
12076 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12077 * gdbserver/linux-low.h: New file.
12078 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12080 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12081 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12082 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12083 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12084 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12085 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12086 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12087 "i387-fp.h". Add PTRACE_GETREGS and friends.
12088 * gdbserver/regcache.c (supply_register): New function.
12089 (supply_register_by_name): New function.
12090 (collect_register): New function.
12091 (collect_register_by_name): New function.
12093 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12095 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12096 (config.status): Add configure.srv dependency.
12097 (server_h): Add config.h dependency.
12099 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12101 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12102 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12103 * gdbserver/configure.srv: Change i386-*-linux* to use
12106 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12108 * x86-64-tdep.c: Re-indent. Update copyright date.
12110 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12112 From Michal Ludvig <mludvig@suse.cz>:
12113 * x86-64-tdep.c (value.h): Delete.
12114 (gdb_assert.h): Include.
12115 (x86_64_register_convert_to_virtual,
12116 x86_64_register_convert_to_raw ): Add check which lets only
12117 floating-point values to be converted.
12118 (value_push): Delete.
12119 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12120 (i386_gdbarch_init): Number of register_bytes fixed.
12122 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12124 * MAINTAINERS: Add x86-64 target.
12126 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12128 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12129 * osfsolib.c (solib_map_sections): Ditto.
12130 * irix5-nat.c (solib_map_sections): Ditto.
12131 * corelow.c (gdb_check_format): Ditto.
12132 * symfile.c (symfile_bfd_open): Ditto.
12133 * solib.c (solib_map_sections): Ditto.
12136 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12138 * remote.c (_initialize_remote): By default, disable ``e'' and
12139 ``E'' step out-of-range packets.
12141 2002-02-26 Andreas Schwab <schwab@suse.de>
12143 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12144 m68k_linux_frame_saved_pc.
12145 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12147 (SIGCONTEXT_PC_OFFSET): Remove.
12148 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12149 m68k_linux_sigtramp_saved_pc): New functions.
12150 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12151 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12152 (UCONTEXT_PC_OFFSET): Define.
12153 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12154 non-RT and RT signal trampolines.
12156 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12158 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12159 (TARGET_NBPG, STACK_END_ADDR): Delete
12160 (VARIABLES_INSIDE_BLOCK): Delete.
12162 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12164 * utils.c (perror_with_name): Make string parameter constant.
12165 (print_sys_errmsg): Ditto.
12167 * defs.h (perror_with_name): Update.
12168 (print_sys_errmsg): Update.
12171 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12173 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12174 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12176 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12178 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12179 if it already matches the current architecture from the exec file.
12180 Include arch-utils.h for gdbarch_info_init prototype.
12181 * Makefile.in (rs6000-nat.o): Update dependencies.
12183 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12185 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12186 list of exported variables.
12188 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12190 * gdbserver/configure.srv: New file.
12191 * gdbserver/configure.in: Use configure.srv instead
12192 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12194 * gdbserver/configure: Regenerated.
12195 * gdbserver/terminal.h: New file.
12196 * gdbserver/Makefile.in: Update for configure changes. Remove
12197 more unneeded include paths.
12199 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12201 From wiz at danbala:
12202 * config/sparc/tm-sp64.h: Fix grammar and typos.
12205 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12207 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12208 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12209 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12210 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12211 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12212 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12213 * s390-tdep.c: Ditto.
12214 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12215 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12216 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12217 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12218 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12219 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12220 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12221 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12222 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12223 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12226 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12228 * lin-thread.c: Delete file.
12229 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12230 to gdb_proc_service.h.
12231 * configure: Re-generate.
12233 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12234 * serial.c (serial_open): Delete check for "ocd".
12237 * Makefile.in (linux-thread.o): Delete target.
12238 * linux-thread.c: Delete file.
12240 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12241 renamed SH files to be consistent.
12243 * symtab.c (sort_search_symbols): Use xfree.
12245 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12247 * arm-linux-tdep.c (arm_linux_init_abi): Register
12248 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12249 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12250 definition with undef, since we don't want the sysvr4 definition.
12251 (SKIP_TRAMPOLINE_CODE): Likewise.
12253 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12255 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12257 * configure.in: (AC_CHECK_FUNCS) Added test for
12258 canonicalize_file_name Regenerated.
12259 * config.in, configure: Regenerated.
12260 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12261 defined use canonicalize_file_name.
12263 2002-02-23 Michael Chastain <mec@shout.net>
12265 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12267 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12269 * README: Remove references to cygnus.com.
12270 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12271 dot com'' form. Remove references to cygnus.com and sourceware.
12273 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12275 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12276 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12277 1003.1-2001 no longer allows "head -1".
12278 * gdb/Makefile.in (version.c): Likewise.
12279 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12280 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12281 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12283 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12285 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12286 * command.h (cmd_cfunc_eq): Declare.
12287 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12289 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12290 ``struct cmd_list_element *''.
12291 * cli/cli-cmds.c (is_complete_command): Update. Use
12293 * top.c (execute_command): Pass the command to
12294 is_complete_command.
12295 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12297 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12299 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12300 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12301 architecture defines.
12302 * s390-tdep.c (s390_gdbarch_init): Likewise.
12304 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12306 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12307 (arm_linux_push_arguments): Likewise.
12308 (arm_linux_init_abi): Register them. Also register linux-specific
12310 (find_minsym_and_objfile): Use strcmp, not STREQ.
12311 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12312 (arm_linux_call_dummy_words): Delete declaration.
12313 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12314 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12316 (LOWEST_PC): Delete.
12318 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12320 * maint.c (print_section_info): Do not prepend `0x' to filepos
12321 output, it will be handled by local_hex_string_custom.
12323 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12325 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12326 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12327 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12329 2002-02-22 Jim Blandy <jimb@redhat.com>
12331 Indicate that the bcache functions don't change the strings
12333 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12334 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12336 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12338 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12340 2002-02-21 Christopher Faylor <cgf@redhat.com>
12342 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12343 find the complete path to a loaded DLL.
12345 2002-02-21 Fred Fish <fnf@redhat.com>
12347 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12348 that marks the end of the range of a function, enter a line number
12349 entry that has a line number of zero and a PC offset that matches
12350 the end of the function. This starts a range of PC's for which no
12351 line number information is known.
12352 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12353 PC's for which no line number info is found (line number is zero)
12354 then we didn't find any valid line information.
12355 * symtab.h: Document use of zero line number entry.
12357 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12359 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12360 (have_ptrace_getvrregs): Define for run time checks.
12361 (gdb_vrregset_t): New type for Altivec register handling.
12362 (fetch_register, store_register): Fetch/store altivec register
12364 (fetch_altivec_register, store_altivec_register): New functions.
12365 (supply_vrregset, fill_vrregset): New functions.
12366 (fetch_altivec_registers, store_altivec_registers): New functions.
12367 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12370 2002-02-21 Jiri Smid <smid@suse.cz>
12372 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12374 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12376 * Makefile.in (armnbsd-nat.o): Update dependencies.
12377 * armnbsd-nat.c (supply_gregset): New function. Common code to
12378 supply the integer register set.
12379 (supply_fparegset): New function. Similar for FPA registers.
12380 (fetch_regs, fetch_fp_regs): Use them.
12381 (fetch_core_registers): Likewise.
12382 (fetch_elfcore_registers): New function.
12383 (arm_netbsd_elfcore_fns): New core-file type specification.
12384 (_initialize_arm_netbsd_nat): Register it.
12386 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12388 * armnbsd-nat.c: Include gdbcore.h.
12389 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12390 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12391 'void' to declaration, to shut up ARI.
12392 (fetch_core_registers): Make static. Rewrite using supply_register.
12393 (arm_netbsd_core_fns): New core-file type specification.
12394 (_initialize_arm_netbsd_nat): New function.
12396 2002-02-21 Christopher Faylor <cgf@redhat.com>
12398 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12401 2002-02-20 Christopher Faylor <cgf@redhat.com>
12403 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12406 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12408 * jv-exp.y (parse_number): Change type of implicit longs
12409 to builtin_type_uint64.
12411 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12413 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12414 to be an integer instead of a `union wait'.
12416 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12418 * mips-linux-nat.c: Call the operating system GNU/Linux.
12419 * mips-linux-tdep.c: Likewise.
12420 * mips-tdep.c: Likewise.
12422 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12425 * jv-exp.y (parse_number): Handle 64-bit integers.
12427 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12429 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12430 AC_STDC_HEADERS to AC_HEADER_STDC.
12431 * gdbserver/configure: Regenerated.
12433 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12435 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12437 * sparc-tdep.c (get_longjmp_target): Likewise.
12439 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12441 * News: Add news about ARM and Multi-arch. Mention the new target
12444 2002-02-19 Jim Blandy <jimb@redhat.com>
12446 * stabsread.c (error_type_complaint): Improve error message.
12448 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12450 * gdbserver/README: Update documentation.
12451 * gdbserver/configure.in: Update configury to match documentation.
12452 * gdbserver/Makefile.in: Likewise.
12453 * gdbserver/configure: Regenerated.
12454 * gdbserver/aclocal.m4: New file, generated by aclocal.
12455 * gdbserver/config.in: New file, generated by autoheader.
12457 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12459 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12462 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12464 * arm-tdep.h (enum arm_float_model): New enum.
12465 (struct gdbarch_tdep): Add fp_model.
12466 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12467 up floating-point conversions until we know the floating-point model
12468 in use by the inferior. Don't complain about being unable to
12469 determine the ABI of the inferior when we don't have one.
12470 (arm_extract_return_value): Support different floating-point models.
12471 (arm_store_return_value): Likewise.
12472 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12474 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12476 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12478 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12479 of ``current_gdbarch''.
12481 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12483 * armnbsd-nat.c : ANSIfy all function declarations.
12484 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12485 (fetch_inferior_registers): Re-implement in terms of above.
12486 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12487 (store_inferior_registers): Re-implement in terms of above.
12489 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12491 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12493 * arm-linux-tdep.c: Likewise.
12494 * config/arm/tm-linux.h: Likewise.
12496 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12498 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12499 * config/arm/nbsd.mt (TM_FILE): Delete.
12500 * config/arm/tm-nbsd.h: Delete.
12502 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12504 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12505 Initialize CALL_DUMMY_LENGTH.
12507 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12509 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12511 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12512 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12513 defines one thing and that is incorrect for this port.
12514 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12516 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12518 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12520 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12522 * win32-nat.c (display_selector): New function. Displays information
12523 about the information returned by GetThreadSelectorEntry API function.
12524 (display_selectors): New function. Displays the infomation of
12525 the selector given as argument, or of CS, DS ans FS selectors
12526 if no argument is given.
12527 ( _initialize_inftarg): Add "w32" as info prefix command.
12528 Add "info w32 selector" as command calling display_selectors.
12530 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12532 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12533 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12536 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12538 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12540 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12542 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12543 (arm_fix_call_dummy): Call it.
12544 (arm_call_dummy_breakpoint_offset): Delete.
12545 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12546 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12548 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12550 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12551 Default to func_frame_chain_valid.
12552 * gdbarch.h, gdbarch.c: Re-generate.
12553 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12555 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12557 * ppc-linux-nat.c: Update copyright.
12558 (fetch_register, store_register): Add tid parameter, don't compute
12560 (fetch_ppc_registers, store_ppc_registers): Add tid
12561 parameter. Pass it along to callees.
12562 (fetch_inferior_registers, store_inferior_registers): Compute tid
12563 here, and pass it to calleed functions.
12564 (fill_gregset, supply_fpregset): Clean up formatting.
12566 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12568 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12569 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12571 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12573 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12574 * gdbarch.c gdbarch.h: Regenerate.
12575 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12577 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12578 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12579 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12581 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12582 * arm-tdep.c (arm_get_longjmp_target): New function.
12583 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12584 this to a positive value register arm_get_longjmp_target as the
12586 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12587 (arm_linux_init_abi): Set up longjmp description in tdep.
12588 * armnbsd-nat.c (get_longjmp_target): Delete.
12589 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12590 description in tdep.
12591 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12592 (get_longjmp_target): Delete declaration.
12593 (GET_LONGJMP_TARGET): Delete.
12594 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12595 (GET_LONGJMP_TARGET): Delete.
12597 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12599 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12600 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12601 of ``current_gdbarch''.
12603 2002-02-17 Tom Tromey <tromey@redhat.com>
12605 * cli/cli-cmds.c (compare_strings): New function.
12606 (complete_command): Only print each unique item once.
12607 * completer.h (complete_line): Declare.
12608 * completer.c (complete_line): New function.
12609 (line_completion_function): Use it.
12611 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12613 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12614 * gdbarch.h, gdbarch.c: Re-generate.
12616 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12618 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12620 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12622 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12623 * valops.c (value_arg_coerce): Don't take the address of a reference
12624 to convert an argument to a reference.
12626 2002-02-15 Christopher Faylor <cgf@redhat.com>
12628 * win32-nat.c (get_image_name): New function.
12629 (handle_load_dll): Use get_image_name function.
12630 (get_child_debug_event): Avoid registering debug events until possibly
12631 execed process is started.
12632 (child_create_inferior): Allow invocation via shell so that command
12633 line redirection, etc. works ok.
12634 (_initialize_inftarg): Add new command: "set shell" to control whether
12635 a shell is used to start a process.
12637 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12639 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12640 instead of find_register_by_number.
12641 (cannot_store_register): Likewise.
12643 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12645 * dwarf2read.c: Replace fprintf (stderr, ...) by
12646 fprintf_unfiltered (gdb_stderr, ...).
12648 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12650 * gdbserver/gdbserver.1: Document --attach.
12652 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12654 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12656 * arm-tdep.c (arm_default_arm_le_breakpoint)
12657 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12658 (arm_default_thumb_be_breakpoint): New. Initialize them from
12659 traditional breakpoint defines.
12660 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12661 (arm_gdbarch_init): Initialize new breakpoint variables.
12662 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12663 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12664 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12665 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12667 (arm_netbsd_init_abi_common): ... here; new function.
12668 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12669 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12670 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12671 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12673 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12675 * arm-tdep.h (enum arm_abi): New enum.
12676 (struct gdbarch_tdep): New structure.
12677 (LOWEST_PC): Provide a default.
12678 (arm_gdbarch_register_os_abi): Declare new function.
12679 * arm-tdep.c (arm_abi_names): New array.
12680 (process_note_abi_tag_sections): New function.
12681 (get_elfosabi): New function.
12682 (arm_gdbarch_register_os_abi): New function.
12683 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12684 support for that ABI has been built in, then call the appropriate
12685 configuration routine. Use gdbarch_num_regs() to get the number
12687 (arm_dump_tdep): New function.
12688 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12689 place-holder functions.
12690 (_initialize_arm_tdep): Register them.
12691 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12693 * armnbsd-tdep.c: New file.
12694 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12695 * config/arm/nbsd.mt (TDEPFILES): Add it.
12696 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12698 * armnbsd-nat.c: Include regcache.h.
12699 * Makefile.in (armnbsd-nat.o): Update dependency list.
12701 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12703 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12705 * gdbserver/Makefile.in: Fix typos in target rules.
12707 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12709 Fix part of PR gdb/267.
12710 * linespec.c (find_methods): Handle constructors specially for now.
12712 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12714 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12716 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12717 standard_coerce_float_to_double().
12719 2002-02-14 Christopher Faylor <cgf@redhat.com>
12721 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12724 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12726 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12727 find_variant_by_name, because it confuses the multiarch
12728 framework. Return NULL if there isn't an architecture with the
12729 user supplied name, instead of forcing a different one without
12730 recording the change with the multiarch machinery.
12731 (find_variant_by_name): Delete.
12733 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12735 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12736 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12738 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12740 * stack.c (print_frame_info_base): When calling
12741 print_frame_info_listing_hook, set current_source_symtab.
12743 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12745 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12746 and remove unused $(INCLUDE_DIR).
12747 Add regcache.c to OBS.
12748 Add generated register protocol files to clean target.
12749 Update dependencies for new objects, obsolete old target code.
12751 * gdbserver/linux-low.c: Remove all platform-specific code to
12752 new files. Remove various dead code. Update to use regcache
12754 * gdbserver/remote-utils.c (fromhex): Add return statement
12756 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12758 (input_interrupt): Add integer parameter to match prototype
12759 of a signal handler.
12760 (outreg): Use register_data ().
12761 (prepare_resume_reply): Use gdbserver_expedite_regs.
12762 * gdbserver/server.c (main): Dynamically allocate own_buf because
12763 PBUFSIZ is no longer constant. Use registers_to_string () and
12764 registers_from_string ().
12765 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12766 for error (), fatal (), and warning (). Update definition of
12767 PBUFSIZ to use regcache functionality. Add include guard.
12768 * gdbserver/utils.c (fatal): Add missing ``const''.
12769 (warning): New function.
12771 * regformats/regdat.sh: Include "regcache.h" in generated files.
12772 Provide init_registers () function.
12773 * regformats/regdef.h: Add prototype for set_register_cache ().
12776 * gdbserver/linux-arm-low.c: New file.
12777 * gdbserver/linux-i386-low.c: New file.
12778 * gdbserver/linux-ia64-low.c: New file.
12779 * gdbserver/linux-m68k-low.c: New file.
12780 * gdbserver/linux-mips-low.c: New file.
12781 * gdbserver/linux-ppc-low.c: New file.
12782 * gdbserver/linux-sh-low.c: New file.
12784 * gdbserver/regcache.c: New file.
12785 * gdbserver/regcache.h: New file.
12787 * gdbserver/low-linux.c: Removed obsolete file.
12789 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12791 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12792 * config/i386/linux.mt: Likewise.
12793 * config/ia64/linux.mt: Likewise.
12794 * config/m68k/linux.mh: Likewise.
12795 * config/powerpc/linux.mh: Likewise.
12796 * config/mips/linux.mt: Likewise.
12798 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12800 * config/i386/i386lynx.mh: Mark gdbserver variables
12801 as (currently) obsolete for this target.
12802 * config/i386/nbsd.mt: Likewise.
12803 * config/i386/nbsdelf.mt: Likewise.
12804 * config/m32r/m32r.mt: Likewise.
12805 * config/m68k/m68klynx.mh: Likewise.
12806 * config/m68k/nbsd.mt: Likewise.
12807 * config/m68k/sun3os4.mh: Likewise.
12808 * config/mips/vr5000.mt: Likewise.
12809 * config/ns32k/nbsd.mt: Likewise.
12810 * config/pa/hppabsd.mh: Likewise.
12811 * config/pa/hppaosf.mh: Likewise.
12812 * config/powerpc/nbsd.mt: Likewise.
12813 * config/rs6000/rs6000lynx.mh: Likewise.
12814 * config/s390/s390.mt: Likewise.
12815 * config/s390/s390x.mt: Likewise.
12816 * config/sparc/sparclynx.mh: Likewise.
12817 * config/sparc/sun4os4.mh: Likewise.
12818 * config/i386/x86-64linux.mt: Likewise.
12819 * config/sparc/linux.mh: Likewise.
12821 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12823 * configure.tgt: Configure gdbserver only for known working
12824 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12825 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12826 SUBDIRS if it is configured. Update comment for ${nativefile}.
12827 * configure: Regenerated.
12829 2002-02-13 Michael Snyder <msnyder@redhat.com>
12831 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12833 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12834 (default_gcore_mach): Just return 0, work around a problem in bfd.
12835 (default_gcore_target): OK to return NULL if exec_bfd is null.
12836 (make_mem_sec): Use a cast, avoid a warning.
12838 * procfs.c (find_memory_regions_callback): Use a cast instead of
12839 calling host_pointer_to_address (which complains if
12840 sizeof (host pointer) != sizeof (target pointer)).
12841 (procfs_make_note_section): Avoid overflow in psargs string.
12843 * procfs.c (procfs_make_note_section): Make the default
12844 implementation return an error.
12846 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12848 * procfs.c (procfs_make_note_section): Provide a default definition
12849 (for alpha-dec-osf4.0f). Fix typos.
12851 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12853 * linux-proc.c: Add include of regcache.h.
12854 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12856 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12858 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12859 * memattr.c (create_mem_region): Disallow useless empty region.
12860 Regions are half-open intervals, so allow [A..B) [B..C) as
12863 2002-02-13 Michael Chastain <mec@shout.net>
12865 * defs.h: Kill CONST_PTR.
12866 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12867 * c-lang.c (c_builtin_types): Likewise.
12868 * ch-lang.c (ch_builtin_types): Likewise.
12869 * f-lang.c (f_builtin_types): Likewise.
12870 * language.c (unknown_builtin_types): Likewise.
12871 * m2-lang.c (m2_builtin_types): Likewise.
12872 * p-lang.c (pascal_builtin_types): Likewise.
12873 * scm-lang.c (c_builtin_types): Likewise.
12875 2002-02-13 Keith Seitz <keiths@redhat.com>
12877 * arm-tdep.h (arm_get_next_pc): Add declaration.
12879 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12881 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12882 with other related struct-returning functions.
12883 (arm_extract_struct_value_address): New function.
12884 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12885 initialize float_format, double_format and long_double_format as
12886 appropriate to the endianness of the target.
12887 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12888 (arm_use_struct_convention): Delete declaration.
12889 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12891 2002-02-13 Keith Seitz <keiths@redhat.com>
12893 * defs.h (core_addr_to_string_nz): New function.
12895 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12897 Apply missing bits of 2002-01-15 patch.
12898 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12899 (fill_fpregset): Use i387_fill_fsave.
12901 2002-02-12 Keith Seitz <keiths@redhat.com>
12903 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12904 (core_addr_to_string_nz): New function.
12906 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12908 * arm-linux-nat.c: Really include arm-tdep.h.
12909 * config/arm/tm-linux.h (struct type, struct value): Declare.
12911 2002-02-11 Michael Snyder <msnyder@redhat.com>
12913 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12914 (gcore section): Ifdef for Solaris and Unixware only.
12915 (procfs_do_thread_registers): Unixware needs one lwpstatus
12916 per thread (not one prstatus or pstatus).
12917 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12918 not over all gdb threads. For unixware, call elfcore_write_pstatus
12919 once before iterating over threads.
12921 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12923 * arm-tdep.h: New file.
12924 * arm-tdep.c: Include arm-tdep.h.
12925 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12926 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12927 (arm_print_float_info, arm_register_type, convert_to_extended)
12928 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12929 (arm_extract_return_value, arm_register_name): Make static.
12930 (arm_software_single_step): Similarly. Fix types in declaration.
12931 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12932 (arm_store_return_value, arm_store_struct_return): New functions.
12933 (arm_gdbarch_init): Register the above functions. Also register
12934 call_dummy_start_offset, sizeof_call_dummy_words,
12935 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12936 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12937 max_register_virtual_size, register_size. Set up
12938 prologue_cache.saved_regs here, rather than ...
12939 (_initialize_arm_tdep): ... here.
12940 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12942 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12943 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12944 (arm_print_float_info, arm_register_type, convert_to_extended)
12945 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12946 (arm_extract_return_value, arm_register_name): Delete declarations.
12947 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12948 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12949 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12950 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12951 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12952 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12953 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12954 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12955 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12956 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12957 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12958 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12960 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12961 * remote-rdi.c remote-rdp.c: Likewise.
12962 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12963 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12964 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12967 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12968 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12969 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12970 from non-ARM_ prefixed definitions.
12971 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12973 * remote-rdi.c remote-rdp.c: Likewise.
12974 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12976 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12978 * arm-tdep.c (arm_frameless_function_invocation)
12979 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12980 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12981 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12982 (arm_pop_frame, arm_get_next_pc): Make static.
12983 (arm_gdbarch_init): Register above in gdbarch structure.
12984 (arm_read_fp): Renamed from arm_target_read_fp.
12985 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12986 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12987 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12988 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12989 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12990 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12991 (arm_pc_is_thumb_dummy): Delete declarations.
12992 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12993 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12994 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12995 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12997 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12999 * symtab.c (compare_search_syms): New function.
13000 (sort_search_symbols): New function.
13001 (search_symbols): Sort symbols after searching rather than
13004 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13006 * NEWS: Linux -> GNU/Linux.
13008 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13010 * gdbarch.sh: For for level one methods, disallow a definition
13011 when partially multi-arched. Add comments explaining rationale.
13012 * gdbarch.h: Re-generate.
13014 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13016 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13017 multi-arch partial.
13019 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13021 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13022 field. Use diff -u.
13023 * gdbarch.c: Re-generate.
13025 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13027 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13028 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13031 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13033 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13034 multi-arch partial.
13035 (PUSH_ARGUMENTS): Switch to using predefault.
13036 * gdbarch.c: Regenerate.
13038 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13040 * valops.c (PUSH_ARGUMENTS): Delete definition.
13041 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13042 partial. Default to default_push_arguments.
13043 * gdbarch.h, gdbarch.c: Regenerate.
13045 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13047 * defs.h (throw_exception): Rename return_to_top_level. Update
13049 * utils.c (error_stream, internal_verror, quit): Ditto.
13050 * top.c (throw_exception, catcher): Ditto.
13051 * sparclet-rom.c (sparclet_load): Ditto.
13052 * remote.c (interrupt_query, minitelnet): Ditto.
13053 * remote-sds.c (interrupt_query): Ditto.
13054 * remote-mips.c (mips_error, mips_kill): Ditto.
13055 * ocd.c (interrupt_query): Ditto.
13056 * monitor.c (monitor_interrupt_query): Ditto.
13057 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13058 * target.h: Update comment.
13060 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13062 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13064 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13065 default_double_format.
13066 * gdbarch.h, gdbarch.c: Re-generate.
13067 * findvar.c (floatformat_unknown): Delete variable definition.
13068 * doublest.h (floatformat_unknown): Delete variable declaration.
13070 2002-02-09 Jim Blandy <jimb@redhat.com>
13072 * stabsread.c (read_type): Add code to parse Sun's syntax for
13073 prototyped function types.
13075 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13077 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13078 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13080 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13082 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13083 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13084 now _initialize_xcoffsolib gets called again and overrides the
13085 commands from solib.c in a native configuration.
13087 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13089 * doublest.c (store_typed_floating): Don't try to return a value.
13092 2002-02-08 Jim Blandy <jimb@redhat.com>
13094 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13095 is prototyped and has no arguments, print its argument list as
13098 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13100 * MAINTAINERS (write-after-approval): Add myself.
13101 (paper-trail): I've escaped!
13103 2002-02-08 Christopher Faylor <cgf@redhat.com>
13105 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13107 (_initialize_check_for_gdb_ini): Ditto.
13109 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13111 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13112 xaprintf -> xasprintf.
13114 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13116 * win32-nat.c: Remove use of printf and sprintf functions.
13118 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13120 * arm-tdep.c (arm_frame_chain_valid): Make static.
13121 (arm_push_arguments): Likewise.
13122 (arm_gdbarch_init): New function.
13123 (_initialize_arm_tdep): Call it.
13124 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13125 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13126 (FRAME_CHAIN_VALID): Delete.
13127 (arm_frame_chain_valid): Delete declaration.
13128 (PUSH_ARGUMENTS): Delete.
13129 (arm_push_arguments): Delete declaration.
13130 (CALL_DUMMY_P): Delete.
13132 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13133 Corinna Vinschen <vinschen@redhat.com>
13135 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13136 on builtin float types.
13138 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13140 * utils.c: Include <curses.h> before "bfd.h".
13141 * tui/tui-hooks.c: Likewise.
13142 * tui/tui.c: Likewise.
13143 * tui/tuiCommand.c: Likewise.
13144 * tui/tuiData.c: Likewise.
13145 * tui/tuiDataWin.c: Likewise.
13146 * tui/tuiDisassem.c: Likewise.
13147 * tui/tuiGeneralWin.c: Likewise.
13148 * tui/tuiIO.c: Likewise.
13149 * tui/tuiLayout.c: Likewise.
13150 * tui/tuiRegs.c: Likewise.
13151 * tui/tuiSource.c: Likewise.
13152 * tui/tuiSourceWin.c: Likewise.
13153 * tui/tuiStack.c: Likewise.
13154 * tui/tuiWin.c: Likewise.
13156 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13158 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13159 to include space for pseudoregs as well. Update loops accordingly.
13160 (sh_fp_frame_init_saved_regs): Ditto.
13161 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13163 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13165 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13166 Add Richard Earnshaw to Arm maintainers.
13168 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13170 * defs.h (warning_begin): Delete declaration.
13172 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13175 2002-02-07 Michael Snyder <msnyder@redhat.com>
13177 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13178 Logic bug, remove misplaced else.
13180 2002-02-07 Klee Dienes <klee@apple.com>
13182 * fork-inferior.c (fork_inferior): Add '!' to the list of
13183 characters that need to be quoted when building a string for the
13184 shell. Quote '!' specifically with a backslash, since CSH chokes
13185 when trying to evaluate "str!str".
13187 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13189 * rdi-share/host.h: Only provide a typedef for bool if it is not
13192 2002-02-04 Michael Snyder <msnyder@redhat.com>
13194 * breakpoint.h (enum bptype): Add new overlay event bp type.
13195 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13197 * breakpoint.c (create_internal_breakpoint): New function.
13198 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13199 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13200 (create_thread_event_breakpoint): Ditto.
13201 (create_solib_event_breakpoint): Ditto.
13202 (create_overlay_event_breakpoint): New function.
13203 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13204 (update_breakpoints_after_exec): Delete and re-initialize
13205 overlay event breakpoints after an exec. Add FIXME comment
13206 about longjmp breakpoint.
13207 (print_it_typical): Ignore overlay event breakpoints.
13208 (print_one_breakpoint): Ditto.
13210 (bpstat_what): Do not stop for overlay event breakpoints.
13211 (delete_breakpoint): Don't delete overlay event breakpoints.
13212 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13213 (breakpoint_re_set): Re-create overlay event breakpoint.
13215 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13216 (overlay_manual_command): Disable overlay breakpoints.
13217 (overlay_off_command): Disable overlay breakpoints.
13219 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13221 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13222 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13223 to here from config/tm-arm.h.
13224 (coff_sym_is_thumb): Make static.
13225 (arm_elf_make_msymbol_special): New function.
13226 (arm_coff_make_msymbol_special): New function.
13227 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13228 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13229 (coff_sym_is_thumb): Delete declaration.
13230 (arm_elf_make_msymbol_special): Declare.
13231 (arm_coff_make_msymbol_special): Declare.
13232 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13233 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13235 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13237 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13239 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13241 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13242 * gdbarch.c gdbarch.h: Regenerate.
13243 * arch-utils.c (default_print_float_info): New function.
13244 * arch-utils.h (default_print_float_info): Prototype it.
13245 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13246 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13247 (PRINT_FLOAT_INFO): Document it.
13249 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13250 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13251 (PRINT_FLOAT_INFO): Define.
13253 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13255 * win32-nat.c (_initialize_check_for_gdb_ini):
13256 Add typecast to sprintf argument to suppress a warning.
13258 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13260 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13261 to allow easier handling of pass state.
13262 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13263 that gives exception name and address.
13264 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13265 and set last_sig value to ourstatus->value.sig. Some missing
13267 (child_continue): Correctly report continue_status.
13268 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13269 TARGET_SIGNAL_0 (new default value).
13270 (child_resume): consider sig argument passed to decide if
13271 the exception should be passed to debuggee or not.
13273 2002-02-05 Michael Snyder <msnyder@redhat.com>
13275 * regcache.c (fetch_register): Call target_fetch_register
13276 only if we don't call FETCH_PSEUDO_REGISTER.
13277 (store_register): Call target_store_register only if we
13278 don't call STORE_PSEUDO_REGISTER.
13280 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13282 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13283 ELF_MAKE_MSYMBOL_SPECIAL.
13284 * gdbarch.c, gdbarch.h: Regenerate.
13285 * arch-utils.c (default_make_msymbol_special): New function.
13286 * arch-utils.h (default_make_msymbol_special): Export.
13287 * elfread.c (elf_symtab_read): Compile use of
13288 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13290 * coffread.c (coff_symtab_read): Ditto, for
13291 COFF_MAKE_MSYMBOL_SPECIAL.
13293 2002-02-05 Jim Blandy <jimb@redhat.com>
13295 * solib-svr4.c (svr4_truncate_ptr): New function.
13296 (svr4_relocate_section_addresses): Do the address arithmetic with
13297 the appropriate truncation for target addresses, even when
13298 CORE_ADDR is larger than a target address.
13300 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13302 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13305 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13307 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13310 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13312 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13314 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13316 * gdbserver/linux-low.c: Remove unused include files.
13318 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13320 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13321 (read_inferior_memory): Use it.
13322 (write_inferior_memory): Likewise.
13324 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13326 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13327 grubbing through sys_errlist.
13329 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13331 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13333 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13334 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13336 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13338 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13339 (do_sfunc, set_cmd_sfunc): New functions.
13341 * command.h (struct cmd_list_element): Add field func.
13342 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13343 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13344 * cli/cli-decode.h: Ditto.
13346 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13347 (help_all, help_cmd_list): Ditto.
13348 (find_cmd, complete_on_cmdlist): Ditto.
13349 * top.c (execute_command): Ditto.
13351 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13354 * infcmd.c (notice_args_read): Fix function signature.
13356 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13357 * cli/cli-decode.c (add_set_cmd): Ditto.
13358 * utils.c (initialize_utils): Ditto.
13359 * maint.c (_initialize_maint_cmds): Ditto.
13360 * infrun.c (_initialize_infrun): Ditto.
13361 * demangle.c (_initialize_demangler): Ditto.
13362 * remote.c (add_packet_config_cmd): Ditto.
13363 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13364 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13365 * proc-api.c (_initialize_proc_api): Ditto.
13366 * kod.c (_initialize_kod): Ditto.
13367 * valprint.c (_initialize_valprint): Ditto.
13368 * top.c (init_main): Ditto.
13369 * infcmd.c (_initialize_infcmd): Ditto.
13370 * corefile.c (_initialize_core): Ditto.
13371 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13372 * arch-utils.c (initialize_current_architecture): Ditto.
13373 (_initialize_gdbarch_utils): Ditto.
13374 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13376 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13377 * wince.c (_initialize_inftarg): Ditto.
13378 * symfile.c (_initialize_symfile): Ditto.
13379 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13380 * language.c (_initialize_language): Ditto.
13381 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13383 2002-02-04 Michael Snyder <msnyder@redhat.com>
13385 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13387 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13389 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13390 Add rules for building the register data files.
13392 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13394 * regformats/regdat.sh: Add braces to the definition of
13395 expedite_regs_${arch}.
13397 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13399 * regformats/regdef.h (struct reg): Add comment describing the
13400 requirements for offset and size fields.
13402 2002-02-04 Andreas Schwab <schwab@suse.de>
13404 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13405 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13407 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13409 * gdbarch.sh (copyright): Update years in generated header.
13410 (SMASH_TEXT_ADDRESS): Add rule.
13411 * gdbarch.h, gdbarch.c: Re-generate.
13412 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13413 * dbxread.c: Likewise.
13414 * dwarfread.c: Likewise.
13415 * elfread.c: Likewise.
13416 * somread.c: Likewise.
13418 * arm-tdep.c (arm_smash_text_address): New function.
13419 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13421 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13423 Add support for hardware watchpoints on win32 native.
13424 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13425 CONTEXT_DEBUG_REGISTERS.
13426 (dr variable): New variable. Static array containing a local copy
13427 of debug registers.
13428 (debug_registers_changed): New variable. Reflects when debug registers
13429 are changed and need to be written to inferior.
13430 (debug_registers_used): New variable. Reflects when any debug register
13431 was set, used when new threads are created.
13432 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13434 (thread_rec): Set dr array if id is the thread of current_event .
13435 (child_continue, child_resume): Change the debug registers for all
13436 threads if debug_registers_changed.
13437 (child_add_thread): Change the debug registers if debug_registers_used.
13438 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13439 Link nm.h to new nm-cygwin.h file.
13440 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13441 of hardware registers.
13443 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13445 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13446 Restore behavour broken by 2002-01-20 Andrew Cagney
13447 <ac131313@redhat.com> IEEE_FLOAT removal.
13449 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13451 * c-valprint.c (c_val_print): Pass a proper valaddr to
13452 cp_print_class_method.
13453 * valops.c (search_struct_method): If there is only one method
13454 and args is NULL, return that method.
13456 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13458 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13459 accessing tag_name directly.
13461 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13463 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13464 of accessing tag_name directly.
13466 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13469 * gdbtypes.c (replace_type): New function.
13470 * gdbtypes.h (replace_type): Add prototype.
13471 * stabsread.c (read_type): Use replace_type.
13473 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13475 * Makefile.in (memattr.o): Add missing dependencies rule.
13477 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13479 * breakpoint.c (break_at_finish_command): Really export.
13480 (break_at_finish_at_depth_command): Ditto.
13481 (tbreak_at_finish_command): Ditto.
13482 * hppa-tdep.c: Include completer.h.
13483 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13484 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13486 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13488 * utils.c (do_write): New function.
13489 (error_stream): Rewrite combining the code from error_begin and
13491 (verror): Rewrite using error_stream.
13492 (error_begin): Delete function.
13494 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13496 * utils.c (error_begin): Make static.
13497 * defs.h (error_begin): Delete declaration.
13499 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13500 (decode_line_1): Use cplusplus_error instead of error_begin,
13501 cplusplus_hint and return_to_top_level.
13502 * coffread.c (coff_symfile_read): Use error instead of error_begin
13503 and return_to_top_level.
13504 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13506 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13508 * language.h (type_error, range_error): Make string parameter
13510 * language.c (warning_pre_print): Delete extern declaration.
13511 * dwarfread.c (warning_pre_print): Ditto.
13512 * language.c (type_error, range_error): Rewrite to use verror and
13513 vwarning instead of warning_begin.
13515 2002-02-01 Michael Snyder <msnyder@redhat.com>
13517 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13518 (set_ignore_count): Move misplaced comment back where it belongs.
13520 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13522 * command.h (NO_FUNCTION): Delete macro.
13523 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13524 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13525 * tracepoint.c (_initialize_tracepoint): Ditto.
13526 * cli/cli-decode.c (add_set_cmd): Ditto.
13527 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13529 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13531 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13532 Update ``this'' pointer when calling virtual functions.
13534 2002-02-01 Michael Snyder <msnyder@redhat.com>
13536 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13537 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13539 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13541 * regformats/reg-arm.dat: New file.
13542 * regformats/reg-i386.dat: New file.
13543 * regformats/reg-ia64.dat: New file.
13544 * regformats/reg-m68k.dat: New file.
13545 * regformats/reg-mips.dat: New file.
13546 * regformats/reg-ppc.dat: New file.
13547 * regformats/reg-sh.dat: New file.
13548 * regformats/regdef.h: New file.
13549 * regformats/regdat.sh: New file.
13551 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13553 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13554 (arm_frame_args_address, arm_frame_locals_address): New functions.
13555 (arm_frame_num_args): New function.
13556 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13557 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13558 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13560 2002-01-31 Michael Snyder <msnyder@redhat.com>
13562 * breakpoint.c (break_at_finish_command): Export.
13563 (break_at_finish_at_depth_command): Export.
13564 (tbreak_at_finish_command): Export.
13565 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13566 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13567 "txbreak" commands, which are HPPA specific.
13569 * printcmd.c (disassemble_command): Remove an ancient
13570 artifact of an old merge.
13572 * symfile.h (enum overlay_debugging_state):
13573 Define enum constant values for overlay mode.
13574 * symfile.c (overlay_debugging): Use enums instead of literals.
13575 (overlay_is_mapped, overlay_auto_command,
13576 overlay_manual_command): Ditto.
13578 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13579 breakpoint_here_p, breakpoint_inserted_here_p,
13580 breakpoint_thread_match, bpstat_stop_status,
13581 describe_other_breakpoints, check_duplicates, clear_command):
13582 Coding standard fixes.
13584 * target.c (target_xfer_memory): Add spaces, coding standard.
13585 (do_xfer_memory): Add missing line to trust-readonly
13586 code: check bfd SEC_READONLY flag for section.
13588 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13590 * PROBLEMS: Fix typo, 5.1->5.1.1.
13592 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13594 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13595 data symbols, since we search based on textlow and texthigh.
13596 (find_pc_sect_symtab): Likewise.
13598 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13600 * defs.h (vwarning): Declare.
13601 * utils.c (vwarning): New function.
13602 (warning): Call vwarning.
13603 (warning_begin): Delete function.
13605 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13606 the warning message.
13607 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13610 2002-01-30 Michael Snyder <msnyder@redhat.com>
13612 * NEWS: Mention "set trust-readonly-sections" command.
13613 Mention generate-core-file command.
13615 2002-01-15 Michael Snyder <msnyder@redhat.com>
13617 * target.c: New command, "set trust-readonly-sections on".
13618 (do_xfer_memory): Honor the suggestion to trust readonly sections
13619 by reading them from the object file instead of from the target.
13620 (initialize_targets): Register command "set trust-readonly-sections".
13622 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13624 * parse.c (target_map_name_to_register): Simplify, search regs and
13625 pseudo-regs using a single loop.
13627 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13629 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13631 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13633 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13634 * config/i386/i386v42mp.mh: Add i387-nat.o .
13635 * i386v4-nat.c: Include i387-nat.h.
13636 (supply_fpregset): Use i387_supply_fsave.
13637 (fill_fpregset): Use i387_fill_fsave.
13639 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13641 * arm-tdep.c (arm_call_dummy_words): Define.
13642 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13643 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13644 (CALL_DUMMY_WORDS): Define.
13645 (arm_call_dummy_words): Declare.
13646 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13647 (arm_linux_call_dummy_words): Declare.
13649 2002-01-30 Andreas Schwab <schwab@suse.de>
13651 * m68klinux-nat.c: Fix last change to use regcache_collect
13652 instead of referencing registers[] directly.
13654 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13656 * parse.c (target_map_name_to_register): Delete code wrapped in
13657 #ifdef REGISTER_NAME_ALIAS_HOOK.
13659 2002-01-28 Michael Snyder <msnyder@redhat.com>
13661 * regcache.c (legacy_read_register_gen): Need to be able to
13662 read pseudo-register as well as real register.
13663 (legacy_write_register_gen): Ditto.
13665 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13667 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13668 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13669 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13670 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13671 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13672 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13673 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13674 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13675 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13676 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13677 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13678 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13679 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13680 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13681 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13682 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13683 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13684 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13685 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13686 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13688 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13690 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13691 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13692 (initialize_current_architecture): Update target_byte_order using
13693 information from BFD.
13694 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13695 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13697 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13699 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13700 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13702 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13703 #ifdef INVALID_FLOAT.
13704 * infcmd.c (do_registers_info): Ditto.
13705 * values.c (unpack_double): Ditto. Add comment.
13707 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13708 already commented out.
13710 2002-01-26 Andreas Schwab <schwab@suse.de>
13712 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13713 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13714 registers and add support for PTRACE_GETREGS.
13716 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13718 GDB 5.1.1 released from 5.1 branch.
13719 * NEWS: Add 5.1.1 news.
13720 * README: Sync with 5.1 branch.
13722 2002-01-23 Fred Fish <fnf@redhat.com>
13724 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13725 stabstring on initial malloc. Reallocing will copy it for us,
13728 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13730 * Makefile.in (hpread_h): Delete.
13731 (HFILES_NO_SRCDIR): Remove hpread.h.
13732 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13733 (hpread.o): Update dependencies.
13734 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13736 * hp-psymtab-read.c: Remove file.
13737 * hp-symtab-read.c: Remove file.
13738 * hpread.h: Remove file.
13740 * hpread.c: Merge all contents of hp-psymtab-read.c,
13741 hp-symtab-read.c and hpread.h into this file, as it was prior to
13744 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13745 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13746 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13747 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13749 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13751 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13752 fill_gregset): Call gdbarch_tdep() just once, assign result to
13753 variable and use that, instead of calling the function several
13756 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13758 * configure.host: Accept sparcv9 as alias for sparc64.
13759 * configure.tgt: Likewise.
13761 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13763 * solib-aix5.c (build_so_list_from_mapfile)
13764 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13765 arguments is not reversed.
13766 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13767 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13769 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13771 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13772 modified version of obsolete sh_fetch_pseudo_register.
13773 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13774 (sh4_register_read): New function.
13775 (sh_pseudo_register_write): New function. Renamed and modified
13776 version of obsolete sh_store_pseudo_register.
13777 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13778 (sh4_register_write): New function.
13779 (sh_gdbarch_init): Remove setting of gdbarch function
13780 fetch_pseudo_register and store_pseudo_register. Remove setting of
13781 register_convert_to_raw, register_convert_to_virtual,
13782 register_convertible.
13783 (sh_sh4_register_convertible): Delete. No longer needed. All is
13784 taken care by architecture specific functions
13785 register_read/register_write.
13786 (sh_sh4_register_convert_to_virtual): Make static.
13787 (sh_sh4_register_convert_to_raw): Ditto.
13789 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13791 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13792 (floatformat_is_nan, floatformat_mantissa): Ditto.
13794 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13795 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13796 builtin_type_ieee_double_little,
13797 builtin_type_ieee_double_littlebyte_bigword,
13798 builtin_type_m68881_ext, builtin_type_i960_ext,
13799 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13800 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13801 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13802 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13804 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13806 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13807 parameter. Set frameless flag if it exists and depended of
13808 whether the scanned function is frameless or not.
13809 (xstormy16_skip_prologue): If function is frameless, return
13810 result of xstormy16_scan_prologue().
13811 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13814 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13816 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13817 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13818 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13819 sh_sh4_register_byte, sh_sh4_register_raw_size,
13820 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13821 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13822 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13823 sh_store_pseudo_register, sh_do_pseudo_register): Call
13824 gdbarch_tdep() just once, assign result to variable and use that,
13825 instead of calling the function several times.
13827 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13829 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13830 macros instead of LAST_FPU_CTRL_REGNUM.
13831 (store_register): Likewise.
13833 2002-01-21 Jim Blandy <jimb@redhat.com>
13835 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13836 is up-to-date before running the program, not just when a program
13839 2002-01-21 Fred Fish <fnf@redhat.com>
13841 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13842 when we have found all instructions we are looking for.
13844 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13846 * arm-tdep.c (arm_register_name): New function.
13847 (arm_registers_names): Make static.
13848 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13849 (arm_register_name): Declare.
13850 (REGISTER_NAME): Use it.
13852 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13853 Kevin Buettner <kevinb@redhat.com>
13855 Convert arm targets to new FRAME interface.
13856 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13857 (arm_frame_find_save_regs): Delete.
13858 (arm_frame_init_saved_regs): New.
13859 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13860 Allocate extra_info as required. Convert all uses of fsr.regs
13861 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13863 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13864 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13865 (check_prologue_cache, save_prologue_cache): Likewise.
13866 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13867 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13868 (FRAME_FIND_SAVED_REGS): Delete.
13869 (arm_frame_find_saved_regs): Delete prototype.
13870 (arm_frame_init_saved_regs): New prototype.
13871 (FRAME_INIT_SAVED_REGS): Define.
13873 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13875 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13877 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13879 From Jeff Law <law@redhat.com>:
13880 * infttrace.c: Include <sys/pstat.h>.
13881 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13882 exec file if the ttrace equivalent fails.
13884 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13886 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13887 (closeLogFile): Ditto.
13889 2002-01-20 Michael Chastain <mec@shout.net>
13891 * top.c (print_gdb_version): Bump copyright year to 2002.
13893 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13895 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13896 Zannoni and Eli Zaretskii.
13898 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13900 * buildsym.c: Update copyright years.
13901 * c-typeprint.c: Likewise.
13902 * dwarf2read.c: Likewise.
13903 * f-typeprint.c: Likewise.
13904 * gdbtypes.c: Likewise.
13905 * gdbtypes.h: Likewise.
13906 * hp-symtab-read.c: Likewise.
13907 * hpread.c: Likewise.
13908 * mdebugread.c: Likewise.
13909 * p-typeprint.c: Likewise.
13911 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13913 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13914 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13915 byte-order selectable.
13916 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13917 * arch-utils.c: Ditto.
13918 (set_endian): Ditto.
13919 (set_endian_from_file): Ditto.
13920 * gdbserver/low-sim.c (create_inferior): Ditto.
13921 * gdbarch.sh: Ditto.
13922 * gdbarch.h: Re-generate.
13923 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13924 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13925 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13926 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13927 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13928 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13929 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13930 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13932 * config/mips/tm-wince.h: Remove #undef of macro
13933 TARGET_BYTE_ORDER_SELECTABLE.
13934 * config/sh/tm-wince.h: Ditto.
13936 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13938 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13939 member function fields. Add accessor macro
13940 TYPE_FN_FIELD_ARTIFICIAL.
13941 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13942 * c-typeprint.c (c_type_print_base): Skip artificial member
13945 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13947 * f-typeprint.c: Delete unused function f_type_print_args.
13948 * p-typeprint.c: Delete unused function pascal_type_print_args.
13950 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13952 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13953 comment. Add ``artificial'' to ``union field_location''.
13955 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13957 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13958 * mdebugread.c (parse_symbol): Likewise.
13959 * stabsread.c (define_symbol): Likewise.
13960 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13961 initializing TYPE_FIELD_BITPOS to n (obsolete).
13962 (hpread_doc_function_type): Likewise.
13963 * hpread.c (hpread_function_type): Likewise.
13965 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13967 * configure.in (host_makefile_frag): Only require a host makefile
13968 fragment when a native build.
13969 * configure: Re-generate.
13971 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13973 * doublest.h (floatformat_from_type): Declare.
13974 * doublest.c (floatformat_from_type): New function.
13975 (convert_typed_floating): Use.
13977 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13978 call to function floatformat_from_type.
13980 * gdbarch.sh (IEEE_FLOAT): Delete.
13981 * gdbarch.h, gdbarch.c: Re-generate.
13982 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13983 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13984 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13985 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13986 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13987 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13988 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13989 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13990 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13991 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13992 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13993 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13995 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13996 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13997 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13998 * sh-tdep.c (sh_gdbarch_init): Ditto.
13999 * mips-tdep.c (mips_gdbarch_init): Ditto.
14000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14001 * cris-tdep.c (cris_gdbarch_init): Ditto.
14003 2002-01-20 Jiri Smid <smid@suse.cz>
14005 * configure.host, configure.tgt: Support x86-64.
14006 * NEWS: Note new target x86-64.
14008 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14009 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14010 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14011 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14012 x86-64-linux-nat.o): Fix dependencies.
14014 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14016 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14017 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14018 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14019 * config/sparc/xm-sun4os4.h: Delete file.
14020 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14022 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14024 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14025 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14026 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14027 * config/i386/i386lynx.mh (XM_FILE): Delete.
14028 * config/rs6000/xm-rs6000ly.h: Delete file.
14029 * config/sparc/xm-sparclynx.h: Delete file.
14030 * config/m68k/xm-m68klynx.h: Delete file.
14031 * config/i386/xm-i386lynx.h: Delete file.
14032 * config/xm-lynx.h: Delete file.
14033 * config/djgpp/fnchange.lst: Update.
14035 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14037 * alpha-tdep.c (alpha_register_byte): New function.
14038 (alpha_register_raw_size): Ditto.
14039 (alpha_register_virtual_size): Ditto.
14040 (alpha_skip_prologue_internal): Renamed from
14041 alpha_skip_prologue.
14042 (alpha_skip_prologue): New version that calls
14043 alpha_skip_prologue_internal.
14044 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14045 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14046 second argument from alpha_skip_prologue.
14047 (REGISTER_BYTE): Use alpha_register_byte.
14048 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14049 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14050 (FRAMELESS_FUNCTION_INVOCATION): Use
14051 generic_frameless_function_invocation_not.
14052 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14053 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14055 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14057 * config/mips/xm-news-mips.h: Delete file.
14058 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14060 * config/m88k/xm-m88k.h: Delete file.
14061 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14062 * config/m88k/xm-delta88v4.h: Ditto.
14063 * config/m88k/xm-delta88.h: Ditto.
14065 * config/alpha/xm-fbsd.h: Delete file.
14066 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14068 * config/sparc/xm-sparc.h: Delete file.
14069 * Makefile.in (xm-sun4os4.h): Delete dependency.
14070 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14071 * config/sparc/xm-sun4os4.h: Ditto.
14072 * config/sparc/xm-linux.h: Ditto.
14074 * config/i386/xm-windows.h: Delete file.
14076 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14078 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14079 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14081 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14083 * alpha-tdep.c (alpha_call_dummy_words): New.
14084 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14085 (CALL_DUMMY_P): Define.
14086 (CALL_DUMMY_WORDS): Define.
14087 (SIZEOF_CALL_DUMMY_WORDS): Define.
14089 2002-01-19 Per Bothner <per@bothner.com>
14091 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14092 isn't NULL, which can happen with some gcj-3.x-produced code.
14094 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14096 * alpha-tdep.c (alpha_register_virtual_type): New function.
14097 (alpha_init_frame_pc_first): Ditto.
14098 (alpha_fix_call_dummy): Ditto.
14099 (alpha_store_struct_return): Ditto.
14100 (alpha_extract_struct_value_address): Ditto.
14101 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14102 alpha_register_virtual_type.
14103 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14104 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14105 alpha_extract_struct_value_address.
14106 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14107 (INIT_FRAME_PC): Use init_frame_pc_noop.
14108 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14110 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14112 * i386gnu-nat.c: Include "i386-tdep.h".
14113 (fetch_fpregs): Simplify code dealing with uninitialized floating
14114 point states such that it doesn't require FP7_REGNUM.
14116 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14118 * alpha-tdep.c (frame_extra_info): New.
14119 (alpha_find_saved_regs): Make static. Use
14121 (alpha_frame_init_saved_regs): New function.
14122 (alpha_frame_saved_pc): Use frame->extra_info.
14123 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14124 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14125 (init_extra_frame_info): Rename to...
14126 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14127 (alpha_print_extra_frame_info): New function.
14128 (alpha_frame_locals_address): Ditto.
14129 (alpha_frame_args_address): Ditto.
14130 (alpha_pop_frame): Use frame->extra_info.
14131 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14132 alpha_frame_args_address.
14133 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14134 (alpha_find_saved_regs): Remove prototype.
14135 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14136 (EXTRA_FRAME_INFO): Remove.
14137 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14138 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14140 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14142 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14143 (alpha_cannot_fetch_register): Ditto.
14144 (alpha_cannot_store_register): Ditto.
14145 (alpha_register_convertible): Ditto.
14146 (alpha_use_struct_convention): Ditto.
14147 * config/alpha/tm-alpha.h: Update copyright years.
14148 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14149 (INNER_THAN): Use core_addr_lessthan.
14150 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14151 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14152 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14153 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14154 (FRAME_CHAIN): Remove unnecessary cast.
14156 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14158 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14161 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14163 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14164 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14165 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14166 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14167 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14168 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14169 * x86-64-linux-nat.c: Ditto.
14171 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14173 * alpha-tdep.c (alpha_register_name): New function.
14174 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14175 (REGISTER_NAME): Define.
14177 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14179 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14181 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14183 * alpha-tdep.c: Update copyright years.
14184 (alpha_next_pc): New function.
14185 (alpha_software_single_step): Ditto.
14186 * config/alpha/tm-alpha.h: Add prototype for
14187 alpha_software_single_step.
14189 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14191 * alphabsd-nat.c: Update copyright years.
14192 (fill_gregset): Use regcache_collect.
14193 (fill_fpregset): Likewise.
14194 (fetch_inferior_registers): Only fetch integer registers
14195 if requested to do so.
14196 (store_inferior_registers): Only store integer registers
14197 if requested to do so.
14199 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14201 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14202 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14203 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14204 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14205 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14206 * config/arm/linux.mh (XDEPFILES): Delete.
14207 * config/arm/nbsd.mh (XDEPFILES): Delete.
14208 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14209 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14210 * config/i386/i386m3.mh (XDEPFILES): Delete.
14211 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14212 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14213 * config/i386/fbsd.mh (XDEPFILES): Delete.
14214 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14215 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14216 * config/i386/i386v4.mh (XDEPFILES): Delete.
14217 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14218 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14219 * config/i386/i386aix.mh (XDEPFILES): Delete.
14220 * config/i386/go32.mh (XDEPFILES): Delete.
14221 * config/i386/cygwin.mh (XDEPFILES): Delete.
14222 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14223 * config/i386/i386mach.mh (XDEPFILES): Delete.
14224 * config/i386/i386v32.mh (XDEPFILES): Delete.
14225 * config/i386/linux.mh (XDEPFILES): Delete.
14226 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14227 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14228 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14229 * config/i386/i386sco.mh (XDEPFILES): Delete.
14230 * config/i386/i386v.mh (XDEPFILES): Delete.
14231 * config/i386/nbsd.mh (XDEPFILES): Delete.
14232 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14233 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14234 * config/i386/symmetry.mh (XDEPFILES): Delete.
14235 * config/i386/obsd.mh (XDEPFILES): Delete.
14236 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14237 * config/ia64/linux.mh (XDEPFILES): Delete.
14238 * config/ia64/aix.mh (XDEPFILES): Delete.
14239 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14240 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14241 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14242 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14243 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14244 * config/m68k/linux.mh (XDEPFILES): Delete.
14245 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14246 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14247 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14248 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14249 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14250 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14251 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14252 * config/m88k/delta88.mh (XDEPFILES): Delete.
14253 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14254 * config/m88k/m88k.mh (XDEPFILES): Delete.
14255 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14256 * config/mips/linux.mh (XDEPFILES): Delete.
14257 * config/mips/irix6.mh (XDEPFILES): Delete.
14258 * config/mips/irix5.mh (XDEPFILES): Delete.
14259 * config/mips/irix4.mh (XDEPFILES): Delete.
14260 * config/mips/irix3.mh (XDEPFILES): Delete.
14261 * config/mips/decstation.mh (XDEPFILES): Delete.
14262 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14263 (NATDEPFILES): Move core-aout.o to here.
14264 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14265 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14266 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14267 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14268 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14269 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14270 * config/pa/hpux11.mh (XDEPFILES): Delete.
14271 * config/powerpc/aix.mh (XDEPFILES): Delete.
14272 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14273 * config/powerpc/linux.mh (XDEPFILES): Delete.
14274 * config/romp/rtbsd.mh: Rename XDEPFILES.
14275 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14276 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14277 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14278 * config/s390/s390.mh (XDEPFILES): Delete.
14279 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14280 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14281 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14282 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14283 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14284 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14285 * config/sparc/linux.mh (XDEPFILES): Delete.
14286 * config/vax/vaxult.mh (XDEPFILES): Delete.
14287 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14288 * Makefile.in (DEPFILES): Remove XDEPFILES.
14290 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14292 * utils.c (internal_verror): Fix comments, default is yes not no.
14293 Update queries to match. Default to quit and dump core.
14295 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14297 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14299 * defs.h, event-top.c, gdbcmd.h: Ditto.
14300 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14301 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14302 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14303 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14304 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14305 * mi/mi-main.c:Ditto.
14307 * stack.c, symfile.c: Update copyright.
14309 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14311 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14312 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14313 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14314 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14316 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14318 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14319 * gdbserver/low-lynx.c (myattach): Likewise.
14320 * gdbserver/low-nbsd.c (myattach): Likewise.
14321 * gdbserver/low-sim.c (myattach): Likewise.
14322 * gdbserver/low-sparc.c (myattach): Likewise.
14323 * gdbserver/low-sun3.c (myattach): Likewise.
14325 * gdbserver/low-linux.c (myattach): New function.
14327 * gdbserver/server.c (attach_inferior): New function.
14328 (main): Handle "--attach".
14330 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14332 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14335 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14337 * c-typeprint.c (is_type_conversion_operator): Add additional
14338 check for non-conversion operators.
14340 2002-01-15 Michael Snyder <msnyder@redhat.com>
14342 * linux-proc.c: Add "info proc" command, a la procfs.c.
14343 (read_mapping): New function, abstract and re-use code.
14344 (linux_find_memory_regions): Use new func read_mapping.
14345 (linux_info_proc_cmd): New function, implement "info proc".
14346 (_initialize_linux_proc): Add new command "info proc".
14348 2002-01-15 Michael Snyder <msnyder@redhat.com>
14350 * symfile.c (generic_load): Use bfd_map_over_sections method
14351 instead of manipulating bfd structure members directly.
14352 (add_section_size_callback): New function, bfd sections callback
14353 used by generic_load.
14354 (load_sections_callback): New function, bfd sections callback
14355 used by generic_load.
14357 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14359 [Based on work by Jim Blandy]
14360 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14361 (builtin_type_vec128): Export.
14362 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14364 (builtin_type_vec128): New builtin type for 128 bit vector
14366 (build_gdbtypes): Initialize builtin_type_v16qi and
14367 builtin_type_v8hi. Create the vec128 register builtin type
14369 (build_builtin_type_vec128): New function.
14370 (_initialize_gdbtypes): Register builtin_type_v16qi and
14371 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14372 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14373 AltiVec register to new builtin type.
14375 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14377 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14380 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14382 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14383 CLEAN_UP_REGISTER_VALUE.
14384 * regcache.c (supply_register): Update only call.
14386 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14388 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14389 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14390 a29k-*-vxworks* targets as obsolete.
14392 2002-01-14 Michael Snyder <msnyder@redhat.com>
14394 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14395 until we can resolve portability issues.
14396 * gregset.h: Remove references to fpxregs.
14397 * gcore.c (gcore_command): Initialize note_sec to NULL.
14399 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14401 * signals.c (target_signal_to_name): Rewrite. Only use
14402 signals[].name when in bounds and non-NULL.
14404 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14406 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14407 * signals.c (target_signal_to_name): Verify that SIG is within the
14408 bounds of the signals array.
14410 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14412 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14414 2002-01-13 Keith Seitz <keiths@redhat.com>
14416 * stack.c (print_frame_info_base): Print the frame's pc
14417 only if when print_frame_info_listing_hook is not defined.
14419 2002-01-13 Keith Seitz <keiths@redhat.com>
14421 * varobj.c (varobj_set_value): Make sure that there were no
14422 errors evaluating the object before attempting to set its
14424 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14425 so this offset adjustment is no longer necessary.
14426 (create_child): Don't set the error flag if the child is
14427 a CPLUS_FAKE_CHILD.
14428 (value_of_child): If value_fetch_lazy fails, return NULL
14429 so that callers will be notified that an error occurred.
14430 (c_value_of_variable): Delay check of variable's validity
14431 until later. We actually want all structs and unions to have
14433 Do not return "???" for variables which could not be evaluated.
14434 This error condition must be returned to the caller so that it
14435 can get the error condition from gdb.
14436 (cplus_name_of_child): Adjust index for vptr before figuring
14437 out the name of the child.
14438 (cplus_value_of_child): If a child's (real) parent is not valid,
14439 don't even bother trying to give a value for it. Just return
14440 an error. Change all instances in this function.
14441 (cplus_type_of_child): If our parent is one of the "fake"
14442 parents, we need to get at the type of the real parent, and
14443 derive the child's true type using this information.
14445 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14447 From 2002-01-09 John Marshall <johnm@falch.net>:
14448 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14449 sources.redhat.com, and tweak some related URLs which had
14450 suffered from linkrot.
14452 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14455 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14456 structures passed in registers.
14458 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14460 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14461 white space which prevented compilation. Reported by DSK
14462 <dsk@student.unsw.edu.au>.
14464 2002-01-11 Michael Snyder <msnyder@redhat.com>
14466 * symfile.c (build_section_addr_info_from_section_tab):
14467 Use bfd access method instead of manipulating bfd directly.
14468 (syms_from_objfile): Ditto.
14469 (simple_overlay_update_1): Ditto.
14470 (simple_overlay_update): Ditto.
14471 (generic_load): Ditto.
14472 (overlay_unmapped_address): FIXME comment, bfd access methods.
14473 (sections_overlap): FIXME comment, bfd access methods.
14474 (pc_in_mapped_range): FIXME comment, bfd access methods.
14475 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14476 (section_is_mapped): FIXME comment, bfd access methods.
14477 (section_is_overlay): FIXME comment, bfd access methods.
14479 * symfile.c (generic_load): Whitespace and long line cleanups.
14480 Remove duplicate variable, change several local variables to
14481 more appropriate data types.
14482 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14484 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14486 From Peter Schauer:
14487 * language.c (longest_local_hex_string_custom): Use phex_nz to
14488 convert NUM to a hex string.
14490 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14492 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14494 Update Copyright year.
14496 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14498 * language.c (longest_raw_hex_string): Delete unused function.
14500 2002-01-11 Petr Sorfa <petrs@caldera.com>
14502 * MAINTAINERS (write-after-approval): Add myself.
14503 * dwarf2read.c (read_tag_string_type): Handling of
14505 (read_tag_string_type): FORTRAN fix to prevent propagation of
14507 (set_cu_language): Handling of DW_LANG_Fortran95
14509 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14511 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14512 GETPID(inferior_ptid).
14513 (store_inferior_registers): Likewise.
14515 2002-01-10 Jason Merrill <jason@redhat.com>
14517 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14520 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14522 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14523 and bfd/elf32-sh-nbsd.c.
14525 2002-01-10 Michael Snyder <msnyder@redhat.com>
14527 * NEWS: Mention --pid and corefile/proc-id behavior change.
14529 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14530 * gcore.c: Include cli/cli-decode.h instead of command.h.
14532 * main.c (captured_main): Add new command line option "--pid".
14533 If the second command line argument (following the symbol-file)
14534 begins with a digit, try to attach to it before trying to open
14536 (print_gdb_help): Document the "--pid" argument.
14538 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14540 * completer.c (command_completer): New function.
14542 * completer.h <command_completer>: Add prototype.
14544 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14545 completer for the "help" command.
14547 2002-01-09 Jason Merrill <jason@redhat.com>
14549 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14551 2002-01-09 Michael Snyder <msnyder@redhat.com>
14553 * i386-linux-nat.c (fill_fpxregset): Make global.
14554 (store_fpxregset): Ditto.
14556 * gregset.h (gdb_fpxregset_t): Define.
14557 (supply_fpxregset): Prototype.
14558 (fill_fpxregset): Prototype.
14560 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14562 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14564 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14565 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14566 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14568 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14570 * MAINTAINERS: Update target maintainer rules so that any
14571 Maintainer can approve a tested patch for a maintenance-only
14574 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14576 * MAINTAINERS (write-after-approval): Add myself.
14578 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14581 2002-01-08 Michael Snyder <msnyder@redhat.com>
14583 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14584 real name of the executable, rather than the /proc name.
14586 2002-01-03 Michael Snyder <msnyder@redhat.com>
14588 Implement a "generate-core-file" command in gdb, save target state.
14589 * gcore.c: New file. Implement new command 'generate-core-file'.
14590 Save a corefile image of the current state of the inferior.
14591 * linux-proc.c: Add linux-specific code for saving corefiles.
14592 * target.h (struct target_ops): Add new target vectors for saving
14593 corefiles; to_find_memory_regions and to_make_corefile_notes.
14594 (target_find_memory_regions): New macro.
14595 (target_make_corefile_notes): New macro.
14596 * target.c (update_current_target): Inherit new target methods.
14597 (dummy_find_memory_regions): New place-holder method.
14598 (dummy_make_corefile_notes): New place-holder method.
14599 (init_dummy_target): Initialize new dummy target vectors.
14600 * exec.c (exec_set_find_memory_regions): New function.
14601 Allow the exec_ops vector for memory regions to be taken over.
14602 (exec_make_note_section): New function, target vector method.
14603 * defs.h (exec_set_find_memory_regions): Export prototype.
14604 * procfs.c (proc_find_memory_regions): New function, corefile method.
14605 (procfs_make_note_section): New function, corefile method.
14606 (init_procfs_ops): Set new target vector pointers.
14607 (find_memory_regions_callback): New function.
14608 (procfs_do_thread_registers): New function.
14609 (procfs_corefile_thread_callback): New function.
14610 * sol-thread.c (sol_find_memory_regions): New function.
14611 (sol_make_note_section): New function.
14612 (init_sol_thread_ops): Initialize new target vectors.
14613 * inftarg.c (inftarg_set_find_memory_regions): New function.
14614 Allow to_find_memory_regions vector to be taken over.
14615 (inftarg_set_make_corefile_notes): New function.
14616 Allow to_make_corefile_notes vector to be taken over.
14617 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14618 interface layer if not target_has_execution (may be a corefile).
14619 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14620 * config/sparc/sun4sol2.mh: Ditto.
14621 * config/alpha/alpha-linux.mh: Ditto.
14622 * config/arm/linux.mh: Ditto.
14623 * config/i386/x86-64linux.mh: Ditto.
14624 * config/ia64/linux.mh: Ditto.
14625 * config/m68k/linux.mh: Ditto.
14626 * config/mips/linux.mh: Ditto.
14627 * config/powerpc/linux.mh: Ditto.
14628 * config/sparc/linux.mh: Ditto.
14630 2002-01-07 Michael Snyder <msnyder@redhat.com>
14632 * arm-linux-nat.c: Remove references to regcache.c internal data
14633 (registers[] and register_valid[]).
14635 2002-01-07 Michael Snyder <msnyder@redhat.com>
14637 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14638 so that attaching to a pid will automatically read the process's
14639 symbol file and shlibs.
14640 * Makefile.in: Add rule for linux-proc.o.
14641 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14642 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14643 * config/arm/linux.mh: Ditto.
14644 * config/i386/linux.mh: Ditto.
14645 * config/i386/x86-64linux.mh: Ditto.
14646 * config/ia64/linux.mh: Ditto.
14647 * config/m68k/linux.mh: Ditto.
14648 * config/mips/linux.mh: Ditto.
14649 * config/powerpc/linux.mh: Ditto.
14650 * config/sparc/linux.mh: Ditto.
14652 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14654 * win32-nat.c: Add i386-tdep.h dependency.
14656 2002-01-07 Michael Snyder <msnyder@redhat.com>
14658 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14659 instead of bfd_get_arch_size. Don't bail out just because
14660 there's no exec_bfd.
14662 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14663 * p-valprint.c (pascal_object_print_value): Ditto.
14664 * somread.c (som_symtab_read): Ditto.
14665 * symfile.c (simple_free_overlay_region_table): Ditto.
14666 * valops.c (value_assign): Ditto.
14668 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14669 use tilde_expand and strerror for opening save-tracepoints file.
14671 * thread-db.c (thread_db_new_objfile): Indendation fix.
14673 * infptrace.c (GDB_MAX_ALLOCA): New define.
14674 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14675 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14676 can be overridden with whatever value is appropriate to the host).
14677 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14678 alloca to allocate potentially large buffer.
14679 * rs6000-nat.c (child_xfer_memory): Ditto.
14680 * symm-nat.c (child_xfer_memory): Ditto.
14681 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14683 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14685 From Nick Clifton <nickc@redhat.com>
14686 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14688 2002-01-07 Michael Snyder <msnyder@redhat.com>
14690 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14691 Don't use exec_bfd if it's NULL.
14693 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14695 * valops.c (value_arg_coerce): Fix formatting.
14697 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14699 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14700 * gnu-nat.c: Ditto.
14702 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14704 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14705 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14706 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14707 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14708 z8k-coff have not been multi-arched. Update z8k-coff build
14711 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14713 * MAINTAINERS: Mark a29k target as obsolete.
14714 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14715 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14717 * NEWS: Note that a29k targets are obsolete.
14718 * a29k-tdep.c: Mark as obsolete.
14719 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14720 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14721 a29k-*-vxworks* targets as obsolete.
14722 * remote-adapt.c: Obsolete.
14723 * remote-eb.c: Obsolete.
14724 * remote-mm.c: Obsolete.
14725 * remote-udi.c: Obsolete.
14726 * config/a29k/a29k-udi.mt: Obsolete.
14727 * config/a29k/a29k.mt: Obsolete.
14728 * config/a29k/tm-a29k.h: Obsolete.
14729 * config/a29k/tm-vx29k.h: Obsolete.
14730 * config/a29k/vx29k.mt: Obsolete.
14732 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14734 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14735 with BFD_ENDIAN_BIG.
14737 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14739 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14740 * configure, config.in: Re-generate.
14741 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14742 * defs.h: Do not include <endian.h>.
14744 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14746 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14747 * config.in: Regenerate.
14748 * configure.in: Update copyright years.
14749 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14750 * configure: Regenerate.
14751 * i386bsd-nat.c: Update copyright years.
14752 (fill_gregset): Use regcache_collect.
14753 (fetch_inferior_registers): Only fetch integer registers
14754 if requested to do so. Add support for XMM registers
14755 using PT_GETXMMREGS.
14756 (store_inferior_registers): Only store integer registers
14757 if requested to do so. Add support for XMM registers
14758 using PT_SETXMMREGS.
14759 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14760 (store_inferior_registers): Remove.
14761 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14762 (fetch_elfcore_registers): New function.
14763 (i386nbsd_elfcore_fns): New.
14764 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14765 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14767 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14768 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14769 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14770 * config/i386/tm-nbsd.h: Update copyright years.
14771 (HAVE_SSE_REGS): Define.
14772 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14773 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14774 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14775 (SIGCONTEXT_PC_OFFSET): Remove.
14776 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14778 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14780 * configure.tgt: Remove powerpc-*-macos* target.
14781 * config/m68k/xm-mpw.h: Delete file.
14782 * config/xm-mpw.h: Delete file.
14783 * ser-mac.c: Delete file.
14784 * mpw-make.sed: Delete file.
14785 * mpw-config.in: Delete file.
14786 * mac-xdep.c: Delete file.
14787 * mac-gdb.r: Delete file.
14788 * mac-defs.h: Delete file.
14789 * mac-nat.c: Delete file.
14790 * config/powerpc/macos.mh: Delete file.
14791 * config/powerpc/macos.mt: Delete file.
14792 * config/powerpc/nm-macos.h: Delete file.
14793 * config/powerpc/tm-macos.h: Delete file.
14794 * source.c (openp, open_source_file): Remove obsolete code.
14795 * top.c (gdb_readline): Ditto.
14796 * utils.c (query): Ditto.
14797 * event-top.c (display_gdb_prompt): Ditto.
14798 * Makefile.in (ser-mac.o): Delete obsolete target.
14801 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14803 * defs.h (BIG_ENDIAN): Delete macro definition.
14804 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14805 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14806 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14807 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14808 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14809 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14810 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14811 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14812 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14813 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14814 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14815 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14816 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14817 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14818 * gdbarch.c: Re-generate.
14820 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14822 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14825 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14827 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14829 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14831 * value.h (value_ptr): Delete typedef.
14833 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14835 * i386nbsd-nat.c: Update copyright years.
14836 Include i386-tdep.h.
14838 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14840 * stabsread.c: Update copyright years.
14842 From Debashis Mahata <debashis.mahata@wipro.com>:
14843 (read_struct_fields): Deal with Sun C compiler erroneous stab
14844 output for structs and unions.
14847 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14849 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14852 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14854 * cp-abi.c: Fix whitespace.
14855 (baseclass_offset): New wrapper function.
14856 * cp-abi.h (baseclass_offset): Add prototype.
14857 (struct cp_abi_ops): Add baseclass_offset pointer.
14859 * valops.c (vb_match): Move to...
14860 * gnu-v2-abi.c (vb_match): here.
14861 * valops.c (baseclass_offset): Move to...
14862 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14864 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14866 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14867 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14868 * hpacc-abi.c (init_hpacc_ops): Likewise.
14870 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14872 * valops.c (find_overload_match): Accept obj as a
14873 reference parameter. Update it before returning.
14874 * value.h (find_overload_match): Update prototype.
14875 * eval.c (evaluate_subexp_standard): Pass object to
14876 find_overload_match by reference.
14878 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14880 * valarith.c: Replace value_ptr with struct value pointer. Remove
14881 register attribute from value declarations.
14884 * scm-lang.c (scm_lookup_name): Ditto.
14886 2002-01-03 Michael Snyder <msnyder@redhat.com>
14888 Abstract the functionality of iterating over mapped memory
14889 regions into a general purpose iterator function.
14890 * procfs.c (iterate_over_mappings): New function, general purpose
14891 iterator for memory sections.
14892 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14893 (solib_mappings_callback): New function, callback for above.
14894 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14895 (info_mappings_callback): New function, callback for above.
14897 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14899 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14901 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14902 * i386-tdep.c: Include "elf-bfd.h".
14903 (process_note_abi_tag_sections): New function.
14904 (i386_gdbarch_init): Add code to recognize various OS/ABI
14907 * maint.c (_initialize_maint_cmds): Add missing \ in
14910 For older changes see ChangeLog-2001
14916 version-control: never