1 2002-12-31 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
4 * config.in, configure: Regenerated.
6 2002-12-31 Mark Kettenis <kettenis@gnu.org>
8 * gdb_dirent.h: Cleanup and update code to match the example in
10 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
11 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
12 * configure: Regenerated.
14 2002-12-30 Adam Fedor <fedor@gnu.org>
16 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
17 (yylex): Initialize c to avoid uninitialized warning.
19 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
21 * doc/fdl.texi: Revert the last change.
23 2002-12-29 Mark Kettenis <kettenis@gnu.org>
25 * tracepoint.c (ISATTY): Removed.
27 2002-12-26 J. Brobecker <brobecker@gnat.com>
29 Continuing work to convert the hppa targets to multiarch partil.
31 * hppa-tdep.c: Add some missing forward declarations.
32 (frameless_function_invocation): Prefix the function name
33 by "hppa_" to avoid polluting the namespace. Update all calls
34 to use the new function name.
35 (saved_pc_after_call): Ditto.
36 (init_extra_frame_info): Ditto.
38 (push_dummy_frame): Ditto.
39 (target_read_pc): Ditto.
40 (target_write_pc): Ditto.
41 (in_solib_call_trampoline): Ditto.
42 (in_solib_return_trampoline): Ditto.
43 (skip_trampoline_code): Ditto.
44 (hppa_read_fp): New function, renamed from target_read_fp.
45 (hppa_target_read_fp): New function, using hppa_read_fp.
46 This function conforms to the function profile for the
47 READ_FP gdbarch method.
48 (hppa_extract_struct_value_address): New function, extracted
49 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
51 (hppa_frame_num_args): New function.
52 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
54 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
55 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
56 for the switch to multiarch partial.
57 Update some of the macros definitions to match some changes
58 described above in the name of the function they are calling.
59 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
60 not be straightforward to convert. Do now wrap it inside
61 "#if !... #endif" to remember that this macro has still not
63 (FIX_CALL_DUMMY): Likewise.
65 2002-12-26 J. Brobecker <brobecker@gnat.com>
67 Continuing work to convert the hppa targets to multiarch partial.
69 * hppa-tdep.c (hppa_register_raw_size): New function replacing
70 the body of macro REGISTER_RAW_SIZE.
71 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
72 config/pa/tm-hppah.h. These functions will be used to initialize
73 the gdbarch structure.
74 (hppa_hpux_pc_in_sigtramp): New function.
75 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
76 (hppa_hpux_frame_base_before_sigtramp): New function.
77 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
78 Add gdbcore.h #include.
79 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
80 of this gdbarch-eligible macro to a call to the new associated
82 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
83 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
84 into a call to the new associated function.
85 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
86 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
87 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
89 2002-12-24 David Carlton <carlton@math.stanford.edu>
91 * config/sparc/tm-sparc.h: Delete duplicate definition of
92 DEPRECATED_PC_IN_CALL_DUMMY.
94 2002-12-24 Kevin Buettner <kevinb@redhat.com>
96 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
98 * configure.tgt: Recognize mips64*-*-linux*.
99 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
100 (supply_32_bit_reg): New function.
101 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
102 (fill_gregset): Use regcache_collect() instead of
103 deprecated_registers[].
104 (register_addr): Change name to mips_linux_register_addr().
105 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
106 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
107 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
108 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
109 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
110 (MIPS64_LINUX_JB_PC): New defines.
111 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
112 (mips64_elf_fpregset_t): New typedefs.
113 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
114 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
115 (mips64_linux_register_addr, set_mips_linux_register_addr)
116 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
117 (init_register_addr_data)
119 (fetch_core_registers): Add support for core file formats with 64-bit
121 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
122 (register_addr_data): New static global variable.
123 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
124 gdbarch_register_osabi() for each MIPS machine.
125 * config/mips/linux64.mt: New file.
126 * config/mips/tm-linux64.h: New file.
128 2002-12-23 Adam Fedor <fedor@gnu.org>
130 * maint.c (maintenance_demangle): Add switch to demangle
131 ObjC language symbols as well.
133 2002-12-23 Adam Fedor <fedor@gnu.org>
135 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
136 last argument from complaint function call.
138 2002-12-23 Kevin Buettner <kevinb@redhat.com>
140 * exec.c (print_section_info): Add FIXME comments regarding format
143 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
145 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
146 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
148 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
150 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
152 2002-12-23 David Carlton <carlton@math.stanford.edu>
154 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
155 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
156 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
157 information associated to a minsym, not lookup_symbol.
159 2002-12-21 Mark Kettenis <kettenis@gnu.org>
161 * x86-64-tdep.h (x86_64_init_abi): New prototype.
162 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
163 (x86_64_init_abi): Make non-static. Set number of pseudo
165 (x86_64_gdbarch_init): Remove function.
166 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
167 Remove code dealing with dissambly.
168 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
169 (_initialize_x86_64_linux_tdep): New function.
170 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
173 2002-12-14 Mark Kettenis <kettenis@gnu.org>
175 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
176 (struct gdb_osabi_handler): Remove member `arch'. Add member
178 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
179 construct a `struct bfd_arch_info' and store it in the `struct
180 gdb_osabi_handler' that is created.
181 (gdbarch_init_osabi): Check for compatibility based on machine
182 type and architecture.
183 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
185 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
186 second argument in call to gdbarch_register_osabi.
187 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
188 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
189 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
190 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
191 * arm-tdep.c (_initialize_arm_tdep): Likewise.
192 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
193 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
194 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
195 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
196 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
197 * i386-tdep.c (_initialize_i386_tdep): Likewise.
198 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
199 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
200 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
201 _initialize_i386bsd_tdep and updated likewise.
202 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
203 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
204 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
205 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
206 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
207 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
208 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
209 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
210 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
211 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
213 2002-12-20 Kevin Buettner <kevinb@redhat.com>
215 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
216 DT_MIPS_RLD_MAP case for 64-bit targets.
218 2002-12-20 Kevin Buettner <kevinb@redhat.com>
220 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
221 ``temp_saved_regs'', not the pointer or other storage contiguous
224 2002-12-20 Kevin Buettner <kevinb@redhat.com>
226 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
227 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
228 (mips_linux_get_longjmp_target): Delete declarations.
229 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
230 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
231 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
232 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
233 (mips_linux_get_longjmp_target)
234 (mips_linux_svr4_fetch_link_map_offsets): Make static.
235 (mips_linux_init_abi): New function.
236 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
238 2002-12-19 Keith Seitz <keiths@redhat.com>
240 patch committed by Elena Zannoni <ezannoni@redhat.com>
241 * thread.c (do_captured_list_thread_ids): Call prune_threads and
242 target_find_new_threads. Fix for PR mi/669.
244 2002-12-19 David Carlton <carlton@math.stanford.edu>
246 * linespec.c (decode_line_1): Move code into decode_all_digits.
247 (decode_all_digits): New function.
249 2002-12-19 Kevin Buettner <kevinb@redhat.com>
251 * exec.c (print_section_info): Select a format string to use with
252 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
254 2002-12-18 Andrew Cagney <ac131313@redhat.com>
256 * frame.c (deprecated_update_current_frame_pc_hack): Replace
257 deprecated_update_current_frame_pc_hack.
258 (deprecated_update_frame_base_hack): New function.
259 * frame.h (deprecated_update_frame_pc_hack): Replace
260 (deprecated_update_frame_base_hack): Declare.
261 * infrun.c (normal_stop): Update.
263 2002-12-18 Andrew Cagney <ac131313@redhat.com>
265 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
266 frame_extra_info_zalloc.
267 (rs6000_frame_args_address): Use get_frame_extra_info.
268 (frame_get_saved_regs): Use get_frame_saved_regs.
269 (frame_initial_stack_address): Use get_frame_saved_regs and
270 get_frame_extra_info.
271 (frame_initial_stack_address): Use get_frame_extra_info.
273 2002-12-17 Kevin Buettner <kevinb@redhat.com>
275 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
277 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
278 checks for r3900_regnames[].
280 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
282 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
284 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
286 2002-12-17 David Carlton <carlton@math.stanford.edu>
288 * symtab.c (lookup_partial_symbol): Don't search past the end of
291 2002-12-17 Andrew Cagney <ac131313@redhat.com>
293 * stack.c (frame_info): Use get_frame_saved_regs.
294 * breakpoint.c (until_break_command): Use get_frame_pc.
296 2002-12-16 Kevin Buettner <kevinb@redhat.com>
298 * buildsym.c (block_end_complaint, anon_block_end_complaint)
299 (innerblock_complaint, innerblock_anon_complaint)
300 (blockvector_complaint): Delete deprecated complaint structs.
301 (finish_block, make_blockvector, end_symtab): Replace calls
302 to complain() with calls to complaint().
303 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
304 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
305 (unexpected_type_complaint, bad_sclass_complaint)
306 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
307 Delete deprecated complaint structs.
308 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
309 Replace calls to complain() with calls to complaint().
310 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
311 (unknown_symtype_complaint, unknown_symchar_complaint)
312 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
313 (lbrac_mismatch_complaint, repeated_header_complaint)
314 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
315 Delete deprecated complaint structs.
316 (unknown_symtype_complaint, lbrac_mismatch_complaint)
317 (repeated_header_complaint)
318 (function_outside_compiliation_unit_complaint): New functions.
319 (add_old_header_file, find_corresponding_bincl_psymtab)
320 (set_namestring, find_stab_function_addr, read_dbx_symtab)
321 (process_one_symbol): Replace calls to complain() with, possibly
322 indirect, calls to complaint().
323 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
324 (unknown_attribute_form, unknown_attribute_length)
325 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
326 (const_ignored, botched_modified_type, op_deref2, op_deref4)
327 (basereg_not_handled, dup_user_type_allocation)
328 (dup_user_type_definition, missing_tag, bad_array_element_type)
329 (subscript_data_items, unhandled_array_subscript_format)
330 (unknown_array_subscript_format, not_row_major)
331 (missing_at_name): Delete deprecated complaint structs.
332 (bad_die_ref_complaint, unknown_attribute_form_complaint)
333 (dup_user_type_definition_complaint)
334 (bad_array_element_type_complaint): New functions.
335 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
336 (decode_subscript_data_item, dwarf_read_array_type)
337 (read_tag_string_type, read_subroutine_type, read_func_scope)
338 (locval, scan_partial_symbols, decode_modified_type)
339 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
340 (attribute_size): Replace calls to complain() with, possibly
341 indirect, calls to complaint().
342 * elfread.c (section_info_complaint, section_info_dup_complaint)
343 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
344 Delete deprecated complaint structs.
345 (elf_symtab_read, elfstab_offset_sections): Replace calls to
346 complain() with calls to complaint().
347 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
349 (stub_noname_complaint): New function.
350 (check_typedef, add_mangled_type): Replace calls to complain()
351 with calls to complaint().
352 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
353 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
354 (hpread_unhandled_type_complaint, hpread_struct_complaint)
355 (hpread_array_complaint, hpread_type_lookup_complaint)
356 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
357 (hpread_unhandled_common_complaint)
358 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
359 struct definitions and declarations.
360 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
361 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
362 Replace calls to complain() with, possibly indirect, calls to
364 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
366 * mdebugread.c (bad_file_number_complaint, index_complaint)
367 (aux_index_complaint, block_index_complaint)
368 (unknown_ext_complaint, unknown_sym_complaint)
369 (unknown_st_complaint, block_overflow_complaint)
370 (basic_type_complaint, unknown_type_qual_complaint)
371 (array_index_type_complaint, bad_tag_guess_complaint)
372 (block_member_complaint, stEnd_complaint)
373 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
374 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
375 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
376 (bad_continued_complaint, bad_rfd_entry_complaint)
377 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
378 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
379 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
380 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
382 (index_complaint, unknown_ext_complaint, basic_type_complaint)
383 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
384 (unexpected_type_code_complaint)
385 (function_outside_compilation_unit_complaint): New functions.
386 (parse_symbol, parse_type, upgrade_type, parse_procedure)
387 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
388 Replace calls to complain() with, possibly indirect calls to
390 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
391 Delete deprecated complaint structs.
392 (lookup__objc_class, lookup_child_selector): Replace complain()
394 * remote-vx.c (cant_contact_target): Delete deprecated complaint
396 (vx_lookup_symbol): Replace complain() with complaint().
397 * stabsread.c (invalid_cpp_abbrev_complaint)
398 (invalid_cpp_type_complaint, member_fn_complaint)
399 (const_vol_complaint, error_type_complaint)
400 (invalid_member_complaint, range_type_base_complaint)
401 (reg_value_complaint, vtbl_notfound_complaint)
402 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
403 (unresolved_sym_chain_complaint, stabs_general_complaint)
404 (lrs_general_complaint, multiply_defined_struct): Delete
405 deprecated complaint structs.
406 (invalid_cpp_abbrev_complaint, ref_value_complaint)
407 (stabs_general_complaint, lrs_general_complaint)
408 (msg_unknown_complaint): New functions.
409 (dbx_lookup_type, read_cfront_baseclasses)
410 (read_cfront_member_functions, resolve_symbol_reference)
411 (define_symbol, resolve_live_range, add_live_range, read_type)
412 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
413 (read_one_struct_field, read_baseclasses, read_tilde_fields)
414 (read_cfront_static_fields, attach_fields_to_type)
415 (complain_about_struct_wipeout, read_range_type)
416 (common_block_start, common_block_end, cleanup_undefined_types)
417 (scan_file_globals): Replace complain() with complaint().
418 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
419 Delete deprecated complaint struct declarations.
420 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
421 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
422 (bf_not_found_complaint, ef_complaint, eb_complaint)
423 (function_outside_compilation_unit_complaint): New functions.
424 (record_include_begin, record_include_end, enter_line_range)
425 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
426 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
427 complain() with complaint().
429 2002-12-16 Andrew Cagney <ac131313@redhat.com>
431 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
432 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
433 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
434 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
435 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
436 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
437 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
438 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
439 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
440 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
441 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
442 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
443 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
444 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
445 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
446 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
447 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
448 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
449 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
450 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
451 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
452 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
453 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
454 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
455 * config/m88k/xm-dgux.h: Delete.
456 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
457 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
458 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
459 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
460 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
461 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
462 * ch-valprint.c: Delete.
464 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
466 * infrun.c (handle_inferior_event): Rearrange code to resume if
467 no catchpoint triggers for an event.
469 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
471 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
472 and TARGET_WAITKIND_VFORKED cases.
474 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
476 * infrun.c (handle_inferior_event): Assume that catchpoints
477 are not affected by DECR_PC_AFTER_BREAK.
479 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
481 * target.c (update_current_target): Don't inherit DONT_USE.
482 * target.h (struct target_ops): Remove DONT_USE.
483 (target_next): Remove macro.
485 2002-12-15 Mark Kettenis <kettenis@gnu.org>
487 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
489 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
491 * arm-tdep.c (convert_from_extended): New argument to hold the
492 type of floating point result we want to convert to. Make input
493 argument const. Fix all callers.
494 (convert_to_extended): Similarly.
495 (arm_extract_return_value): Now takes a regcache argument. Change
496 code to use regcache accessor functions. Correctly extract
497 smaller-than-word results on big-endian machines.
498 (arm_store_return_value): Now takes a regcache argument. Change
499 code to use regcache accessor functions. Correctly zero/sign extend
500 smaller than word results before storing into r0.
501 (arm_gdbarch_init): Register new-style extract_return_value and
502 store_return_value functions.
504 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
506 * thread-db.c (thread_from_lwp): Uniquify error msg.
507 (lwp_from_thread): Ditto.
508 (check_event): Ditto.
509 (find_new_threads_callback): Ditto.
510 (thread_db_pid_to_str): Ditto.
512 2002-12-13 Andrew Cagney <ac131313@redhat.com>
514 * frame.h (get_frame_saved_regs): Declare.
515 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
517 * frame.c (get_frame_saved_regs): New function.
518 (frame_saved_regs_zalloc): Return the allocated saved_regs.
520 2002-12-13 Andrew Cagney <ac131313@redhat.com>
522 * frame.c (deprecated_update_current_frame_pc_hack): New
524 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
525 * infrun.c (normal_stop): Use said function instead of directly
526 modifying the frame's PC.
528 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
530 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
532 2002-12-13 Kevin Buettner <kevinb@redhat.com>
534 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
535 config/mips/tm-irix6.h (NUM_REGS): Delete.
536 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
537 (temp_saved_regs): Declare as a pointer rather than an array.
538 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
539 that ``temp_saved_regs'' has storage allocated to it and that
540 it's the correct size.
542 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
544 * defs.h (init_last_source_visited): New prototype.
546 * source.c (add_path): New function that adds to a specified path.
547 (mod_path): Change to call add_path.
548 (init_last_source_visited): New function to allow interfaces to
549 initialize static variable: last_source_visited. Part of fix
551 * Makefile.in: Add support for mi/mi-cmd-env.c.
553 2002-12-13 Andrew Cagney <ac131313@redhat.com>
555 * frame.h (frame_id_unwind): Declare.
556 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
558 (frame_id_unwind_ftype): Declare.
559 * frame.c (frame_id_unwind): New function.
560 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
561 (create_new_frame, get_prev_frame): Pass id_unwind to
563 (frame_saved_regs_id_unwind): New function.
564 (frame_saved_regs_id_unwind): New function.
565 * dummy-frame.c (dummy_frame_id_unwind): New function.
566 (struct dummy_frame): Add field id.
567 (generic_push_dummy_frame): Initialize `id'.
568 * dummy-frame.h (dummy_frame_id_unwind): Declare.
570 2002-12-13 Andrew Cagney <ac131313@redhat.com>
572 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
573 pass that to set_momentary_breakpoint. Move comments to where they
575 * frame.h (set_current_frame): Delete declaration.
576 * frame.c (set_current_frame): Delete function.
578 2002-12-13 Andrew Cagney <ac131313@redhat.com>
580 * frame.c (frame_extra_info_zalloc): New function.
581 * frame.h (frame_extra_info_zalloc): Declare.
583 2002-12-13 Joel Brobecker <brobecker@gnat.com>
585 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
586 in the previous prototype change to set_momentary_breakpoint.
588 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
590 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
592 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
593 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
594 (stop_stepping): Remove outdated check for child vfork events.
596 2002-12-12 Andrew Cagney <ac131313@redhat.com>
598 * GDB 5.3 released from gdb_5_3-branch.
600 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
602 * corelow.c (init_core_ops): Delete references to to_require_attach
603 and to_require_detach.
604 * exec.c (init_exec_ops): Likewise.
605 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
606 hppa_require_detach directly.
607 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
608 * inftarg.c (child_detach): Remove.
609 (child_detach_from_process): Rename to child_detach, remove
611 (child_attach): Remove.
612 (child_attach_to_process): Rename to child_attach, remove after_fork
614 (init_child_ops): Delete references to to_require_attach
615 and to_require_detach.
616 * infttrace.c (hppa_require_attach): Update comment.
617 * target.c (cleanup_target, update_current_target)
618 (init_dummy_target, setup_target_debug): Delete references to
619 to_require_attach and to_require_detach.
620 (find_default_require_detach, find_default_require_attach)
621 (debug_to_require_attach, debug_to_require_detach): Remove
623 * target.h (struct target_ops): Remove to_require_attach
624 and to_require_detach.
625 (target_require_attach, target_require_detach): Delete macros.
626 (find_default_require_detach, find_default_require_attach): Delete
628 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
630 2002-12-11 Andrew Cagney <ac131313@redhat.com>
632 * frame.c (get_frame_extra_info): New function.
633 * frame.h (get_frame_extra_info): Declare.
635 2002-12-11 Andrew Cagney <ac131313@redhat.com>
637 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
638 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
639 with `struct frame_id'.
640 (set_longjmp_resume_breakpoint): Ditto.
641 * infrun.c (handle_inferior_event): Update.
642 * breakpoint.c (watch_command_1, until_break_command): Update.
643 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
644 (handle_inferior_event, step_over_function): Update.
645 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
646 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
647 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
648 * infcmd.c (finish_command, run_stack_dummy): Update.
650 2002-12-11 Kevin Buettner <kevinb@redhat.com>
652 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
653 (dwarf2_non_const_array_bound_ignored)
654 (dwarf2_missing_line_number_section)
655 (dwarf2_statement_list_fits_in_line_number_section)
656 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
657 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
658 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
659 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
660 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
661 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
662 (dwarf2_missing_member_fn_type_complaint)
663 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
664 (dwarf2_const_value_length_mismatch)
665 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
666 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
667 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
668 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
669 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
670 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
671 complaints using deprecated struct..
672 (dwarf2_non_const_array_bound_ignored_complaint)
673 (dwarf2_complex_location_expr_complaint)
674 (dwarf2_unsupported_at_frame_base_complaint)
675 (dwarf2_const_value_length_mismatch_complaint)
676 (dwarf2_macros_too_long_complaint)
677 (dwarf2_macro_malformed_definition_complaint)
678 (dwarf2_invalid_attrib_class_complaint): New functions.
679 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
680 (read_structure_scope, read_array_type, read_common_block)
681 (read_tag_pointer_type, read_base_type, read_partial_die)
682 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
683 (new_symbol, dwarf2_const_value, read_type_die)
684 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
685 (parse_macro_definition, dwarf_decode_macros): Replace calls to
686 complain() with, possibly indirect, calls to complaint().
688 2002-12-11 Andrew Cagney <cagney@redhat.com>
690 * frame.c (deprecated_get_frame_saved_regs): Rename
691 get_frame_saved_regs.
692 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
693 * sparc-tdep.c: Update.
694 * hppa-tdep.c: Update.
695 * h8500-tdep.c: Update.
697 2002-12-11 Kevin Buettner <kevinb@redhat.com>
699 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
700 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
701 ``char *'' for return and parameter types.
702 * gdbarch.h, gdbarch.c: Regenerate.
703 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
704 return type from ``char *'' to ``const char *''.
705 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
708 2002-12-11 Mark Kettenis <kettenis@gnu.org>
710 * i386-tdep.c: Include "dummy-frame.h".
711 (i386_frame_chain, i386_frame_saved_pc): Replace
712 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
713 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
715 2002-12-10 Andrew Cagney <cagney@redhat.com>
717 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
718 Change to a function with predicate.
719 * gdbarch.h, gdbarch.c: Re-generate.
720 * frame.c (get_prev_frame): Update. Test
721 DEPRECATED_INIT_FRAME_PC_P.
722 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
723 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
724 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
725 * alpha-tdep.c (alpha_gdbarch_init): Update.
726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
727 * mips-tdep.c (mips_gdbarch_init): Update.
728 * i386-interix-tdep.c (i386_interix_init_abi): Update.
729 * arm-tdep.c: Update comments.
730 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
731 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
732 * frv-tdep.c (frv_gdbarch_init): Ditto.
733 * x86-64-tdep.c (x86_64_init_abi): Ditto.
734 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
735 * s390-tdep.c (s390_gdbarch_init): Ditto.
736 * v850-tdep.c (v850_gdbarch_init): Ditto.
737 * vax-tdep.c (vax_gdbarch_init): Ditto.
738 * sh-tdep.c (sh_gdbarch_init): Ditto.
739 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
740 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
741 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
743 * i386-tdep.c (i386_gdbarch_init): Ditto.
744 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
745 * cris-tdep.c (cris_gdbarch_init): Ditto.
746 * avr-tdep.c (avr_gdbarch_init): Ditto.
747 * arm-tdep.c (arm_gdbarch_init): Ditto.
748 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
749 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
751 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
753 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
755 * hppah-nat.c (saved_vfork_pid): Add.
756 (child_post_follow_vfork): Remove.
757 (child_follow_fork): New function.
758 (child_wait): Call detach_breakpoints after receiving the child vfork.
759 Call child_resume directly instead of going through resume ().
760 Make sure we have the exec before reporting the vfork.
761 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
762 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
763 (follow_fork): New function. Call target_follow_fork.
764 (follow_inferior_reset_breakpoints): New function broken out from
765 old follow_inferior_fork.
766 (resume): Remove hack to follow exec after vfork.
767 * inftarg.c (child_post_follow_vfork): Remove.
768 (child_follow_fork): New function.
769 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
770 * target.c (cleanup_target): Replace to_post_follow_vfork with
772 (update_current_target): Likewise.
773 (setup_target_debug): Likewise.
774 (debug_to_post_follow_vfork): Remove.
775 (debug_to_follow_fork): New function.
776 * target.h (struct target_ops): Replace to_post_folow_vfork with
778 (child_post_follow_vfork): Remove prototype.
779 (child_follow_fork): Add prototype.
780 (target_post_follow_vfork): Remove macro.
781 (target_follow_fork): Add macro.
783 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
785 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
786 (child_post_follow_vfork): Cancel pending exec event if we follow
788 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
789 events have been processed. Return a fake TARGET_WAITKIND_EXECD
790 event at the following wait call if necessary.
791 * infrun.c (follow_vfork): Don't follow_exec here.
792 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
793 case about HP/UX 10.20. Remove code pushed down to
794 hppah-nat.c:child_wait.
795 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
796 vfork_in_flight is set.
798 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
800 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
801 for the parent's fork event.
802 * infrun.c (handle_inferior_event): Only expect one fork event.
803 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
804 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
806 2002-12-10 Andrew Cagney <ac131313@redhat.com>
808 * PROBLEMS: Delete reference to PR gdb/725.
810 * MAINTAINERS (gdb.c++): Add David Carlton.
812 2002-12-09 David Carlton <carlton@math.stanford.edu>
814 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
815 * cli/cli-cmds.c: Ditto.
817 2002-12-09 Andrew Cagney <cagney@redhat.com>
819 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
820 function address in <>.
821 * gdbarch.c: Re-generate.
823 2002-12-09 David Carlton <carlton@math.stanford.edu>
825 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
827 2002-12-09 David Carlton <carlton@math.stanford.edu>
829 * linespec.c (symtab_from_filename): New function.
830 (decode_line_1): Move code into symtab_from_filename.
832 2002-12-09 Kevin Buettner <kevinb@redhat.com>
834 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
836 2002-12-07 Andrew Cagney <ac131313@redhat.com>
838 * f-valprint.c (info_common_command): Use get_frame_pc.
839 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
840 * ax-gdb.c (agent_command): Ditto.
841 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
842 (rs6000_pop_frame): Ditto.
843 (rs6000_frameless_function_invocation): Ditto.
844 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
845 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
846 * macroscope.c (default_macro_scope): Ditto.
847 * stack.c (print_frame_info_base): Ditto.
848 (print_frame, frame_info, print_frame_label_vars): Ditto.
849 (return_command, func_command, get_frame_language): Ditto.
850 * infcmd.c (finish_command): Ditto.
851 * dummy-frame.c (cached_find_dummy_frame): Ditto.
852 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
853 (break_at_finish_at_depth_command_1): Ditto.
854 (break_at_finish_command_1): Ditto.
855 (until_break_command, get_catch_sals): Ditto.
856 * blockframe.c (func_frame_chain_valid): Ditto.
857 (frameless_look_for_prologue): Ditto.
858 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
860 2002-12-08 Andrew Cagney <ac131313@redhat.com>
862 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
863 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
865 2002-12-08 Andrew Cagney <ac131313@redhat.com>
867 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
869 * gdbarch.h, gdbarch.c: Re-generate.
870 * frame.c (get_prev_frame): Explictly assign prev's pc with value
871 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
873 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
874 declaration to a function returning a CORE_ADDR.
875 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
876 * arch-utils.c (init_frame_pc_noop): Return the PC value.
877 (init_frame_pc_default): Ditto.
878 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
879 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
880 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
881 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
882 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
883 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
885 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
886 to init_frame_pc_noop.
887 (i386_interix_init_frame_pc): Delete function.
888 * z8k-tdep.c (init_frame_pc): Delete function.
889 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
890 (INIT_FRAME_PC_FIRST): Ditto.
891 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
892 (INIT_FRAME_PC_FIRST): Ditto.
893 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
894 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
896 (INIT_FRAME_PC_FIRST): Convert to an expression.
897 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
899 2002-12-08 Andrew Cagney <ac131313@redhat.com>
901 * blockframe.c: Use get_frame_base instead of directly accessing
902 the `struct frame_info' member frame.
903 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
904 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
906 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
908 * Makefile.in (readline_h): Define.
909 (completer.o): Depend on readline_h.
911 (event-top.o): Ditto.
918 (tracepoint.o): Ditto.
921 (tui-hooks.o): Ditto.
924 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
926 More cleanup from import of readline 4.3.
927 * completer.h (complete_line, readline_line_completion_function):
929 (line_completion_function): Removed, not used outside of completer.c.
930 * completer.c (readline_line_completion_function,
931 complete_function, line_completion_function): Use const for first
933 (line_completion_function): Make static.
934 (filename_completer): filename_completion_function is now called
935 rl_filename_completion_function
936 * corelow.c: Include <readline/readline.h>.
942 * top.c (init_main): No need to coerce
943 readline_line_completion_function anymore.
944 * cli/cli-dump.c: Include <readline/readline.h>.
946 2002-12-08 Andrew Cagney <ac131313@redhat.com>
948 * stack.c (frame_info): Use get_prev_frame.
949 * blockframe.c (frame_address_in_block): Ditto.
950 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
951 (rs6000_frameless_function_invocation): Ditto.
952 (rs6000_frame_saved_pc): Ditto.
953 (rs6000_frame_chain): Ditto.
954 * arch-utils.c (init_frame_pc_default): Ditto.
956 2002-12-08 Andrew Cagney <ac131313@redhat.com>
958 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
959 Delete redundant definition.
961 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
963 Import of readline 4.3:
964 * cli/cli-cmds.c: Include readline/tilde.h.
965 * cli/cli-setshow.c: Ditto.
966 * defs.h: Don't declare tilde_expand anymore, since readline
969 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
971 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
972 -Werror on this file.
974 2002-12-07 Andrew Cagney <ac131313@redhat.com>
976 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
978 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
979 * gdbarch.c: Regenerate.
981 2002-12-06 Andrew Cagney <ac131313@redhat.com>
983 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
984 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
985 provide a default value.
986 * gdbarch.h, gdbarch.c: Regenerate.
987 * frame.c (get_prev_frame): Update. Check
988 DEPRECATED_INIT_FRAME_PC_FIRST_P.
989 * s390-tdep.c (s390_gdbarch_init): Update.
990 * mips-tdep.c (mips_gdbarch_init): Update.
991 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
992 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
993 * alpha-tdep.c (alpha_gdbarch_init): Update.
995 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
997 * ia64-linux-nat.c: Include gdb_string.h.
998 * alpha-nat.c: Ditto.
999 * ppc-linux-nat.c: Ditto.
1000 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1001 Update dependencies.
1003 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1005 * gdbthread.h: Include "frame.h".
1006 (struct thread_info): Replace step_frame_address with
1008 * inferior.h: Include "frame.h".
1009 (step_frame_id): Replace external variable step_frame_address.
1010 * gdbthread.h (save_infrun_state): Replace step_frame_address
1011 parameter with step_frame_id parameter.
1012 (load_infrun_state): Ditto.
1013 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1014 * infcmd.c (step_frame_id, step_1, step_once): Update.
1015 * thread.c (load_infrun_state, save_infrun_state): Update.
1016 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1017 (handle_inferior_event, step_over_function): Update.
1018 (normal_stop, context_switch, restore_inferior_status): Update.
1019 (struct inferior_status): Replace step_frame_address with
1022 2002-12-05 David Carlton <carlton@math.stanford.edu>
1024 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1025 DW_TAG_member as well as a declaration as being a C++ static data
1027 (read_structure_scope): Combine tests for DW_TAG_member and
1030 2002-12-05 David Carlton <carlton@math.stanford.edu>
1032 * linespec.c (decode_compound): New function.
1033 (decode_line_1): Move code into decode_compound.
1035 2002-12-05 David Carlton <carlton@math.stanford.edu>
1037 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1039 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1040 the static block. See PR gdb/804.
1042 2002-12-05 David Carlton <carlton@math.stanford.edu>
1044 * symtab.c (lookup_symbol_aux_block): New function.
1045 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1047 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1049 * gdbarch.sh: Dump the predicate function and macro values.
1050 (read): Print error on standard error.
1051 * gdbarch.c: Regenerate.
1053 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1055 * Makefile.in (mips_tdep_h): Define.
1056 (mips-tdep.o): Add mips_tdep_h to dependency list.
1057 * mips-tdep.h: New file.
1058 * mips-tdep.c (mips-tdep.h): Include.
1059 (enum mips_abi): Move to mips-tdep.h.
1060 (mips_abi): New function.
1062 2002-12-04 David Carlton <carlton@math.stanford.edu>
1064 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1066 2002-12-04 David Carlton <carlton@math.stanford.edu>
1068 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1070 (lookup_symbol_aux_minsyms): New function.
1072 2002-12-04 J. Brobecker <brobecker@gnat.com>
1074 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1076 2002-12-04 J. Brobecker <brobecker@gnat.com>
1078 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1079 which is an obsolete macro name.
1081 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1083 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1084 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1086 2002-12-03 H.J. Lu (hjl@gnu.org)
1088 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1089 (create_breakpoints): Make sure the addr_string field is not
1092 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1094 * sparc-nat.c (fetch_inferior_registers)
1095 (store_inferior_registers): Add comment on problem of LWP vs
1098 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1099 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1100 (lin_lwp_store_registers): Remove.
1101 (init_lin_lwp_ops): Use fetch_inferior_registers
1102 and store_inferior_registers directly.
1103 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1104 (store_inferior_registers): Likewise.
1107 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1109 * frame.h (get_frame_id): Convert to a function.
1110 (null_frame_id, frame_id_p): Declare.
1111 (frame_id_eq, frame_id_inner): Declare.
1112 (frame_id_build): New function.
1113 * frame.c (get_frame_id): Update. Use null_frame_id.
1114 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1116 (null_frame_id, frame_id_p): Define.
1117 (frame_id_eq, frame_id_inner): Define.
1118 (frame_id_build): New function.
1119 * varobj.c (varobj_create): Update.
1120 (varobj_update): Update.
1121 * valops.c (value_assign): Update.
1122 (new_root_variable): Update.
1123 * infrun.c (save_inferior_status): Update.
1124 * breakpoint.c (watch_command_1): Update.
1126 2002-12-03 J. Brobecker <brobecker@gnat.com>
1128 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1131 2002-12-03 Andrew Cagney <cagney@redhat.com>
1133 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1136 * PROBLEMS: Mention PR gdb/725.
1138 2002-12-03 Andreas Schwab <schwab@suse.de>
1140 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1142 2002-12-02 Adam Fedor <fedor@gnu.org>
1143 Klee Dienes <kdienes@apple.com>
1145 * objc-lang.c (objc_printstr): Add width arg to match
1147 (compare_selectors): Add 'const' to arg types.
1148 (compare_classes): Likewise.
1149 (find_imps): Cast msym pointer to avoid compiler warning.
1150 (print_object_command): Validate the address before
1151 passing it to the print routine.
1152 (find_objc_msgcall_submethod): Change function argument to
1154 * objc-lang.h: Add 'extern' to all function declarations.
1155 (value_nsstring): Add declaration.
1157 2002-12-02 J. Brobecker <brobecker@gnat.com>
1159 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1160 Fixes a build failure on HP/UX.
1162 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1164 (hpread_has_name): Advance declaration to avoid a compilation warning.
1165 (pst_syms_count): Add missing variable type. By change, the compiler
1166 was defaulting to int, which seems a good choice. Fixes a compilation
1168 (pst_syms_size): Likewise.
1170 2002-12-02 J. Brobecker <brobecker@gnat.com>
1172 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1173 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1174 later to set the proper gdbarch methods depending on the osabi.
1175 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1177 2002-12-02 J. Brobecker <brobecker@gnat.com>
1179 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1180 * osabi.c (gdb_osabi_name): Add strings images for the two new
1182 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1184 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1186 * MAINTAINERS (Java): Global maintainers are responible for Java.
1187 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1188 part Java maintainers.
1190 2002-12-02 J. Brobecker <brobecker@gnat.com>
1192 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1193 Fixes a compilation failure on AiX.
1195 2002-12-02 J. Brobecker <brobecker@gnat.com>
1197 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1198 why aix-thread.o is not listed.
1200 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1202 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1203 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1204 * gdbarch.h, gdbarch.c: Re-generate.
1205 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1206 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1207 * config/pa/tm-hppa.h, frame.h: Update.
1208 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1209 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1210 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1211 * cris-tdep.c, alpha-tdep.c: Update.
1212 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1213 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1214 (get_prev_frame): Ditto.
1216 2002-11-30 Andrew Cagney <cagney@redhat.com>
1218 * exec.c (xfer_memory): Replace boolean with int.
1219 * p-exp.y: Use 0 instead of false.
1220 * corelow.c (gdb_check_format): Change return type to int from
1222 * utils.c: Don't include <curses.h> or <term.h> first.
1224 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1226 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1227 (m68hc11_register_byte): Remove.
1228 (m68hc11_gdbarch_init): Don't set the above.
1230 2002-11-29 Andrew Cagney <cagney@redhat.com>
1232 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1233 by calling get_selected_frame.
1234 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1235 set_current_frame, create_new_frame, select_frame and
1237 * remote-e7000.c (e7000_start_remote): Ditto.
1238 * remote-mips.c (common_open): Ditto
1239 * remote-rdp.c (remote_rdp_open): Ditto.
1241 2002-11-29 Andreas Schwab <schwab@suse.de>
1243 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1244 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1245 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1246 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1247 read_memory_unsigned_integer instead of read_memory_integer when
1248 dealing with addresses and instruction opcodes.
1249 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1250 (m68k_linux_frame_saved_pc): Likewise.
1252 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1254 * stack.c (selected_frame, select_frame): Move from here ...
1255 * frame.c (selected_frame, select_frame): ... to here. Include
1257 * Makefile.in (frame.o): Update dependencies.
1258 * frame.c (get_selected_frame): New function.
1259 * frame.h (get_selected_frame): Declare.
1260 (deprecated_selected_frame): Rename selected_frame.
1261 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1262 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1263 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1264 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1265 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1266 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1267 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1268 * z8k-tdep.c, cli/cli-cmds.c: Update.
1270 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1272 * frame.h (get_selected_block): Add comments.
1274 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1276 * frame.c (pc_notcurrent): New function.
1277 (find_frame_sal): New function.
1278 * frame.h (find_frame_sal): Declare.
1279 (struct symtab_and_line): Add opaque declaration.
1280 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1282 (frame_info): Ditto.
1283 * ada-lang.c (find_printable_frame): Ditto.
1285 2002-11-28 J. Brobecker <brobecker@gnat.com>
1287 * configure.in: Check that the pthdebug library is recent enough
1288 before enabling thread support on native AiX.
1289 * configure: Regenerate.
1291 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1292 from the list of object files as it is now appended by configure
1293 if thread support is enabled.
1294 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1295 if thread support is enabled.
1297 2002-11-28 Andrew Cagney <cagney@redhat.com>
1299 * stack.c (get_selected_block): In-line get_current_block.
1300 * frame.h (get_current_block): Delete declaration.
1301 * blockframe.c (get_current_block): Delete function.
1303 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1305 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1306 USE_GENERIC_DUMMY_FRAMES.
1307 * gdbarch.h, gdbarch.c: Regenerate.
1308 * valops.c, frame.c: Update.
1309 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1310 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1311 * config/pa/tm-hppa.h, blockframe.c: Update.
1312 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1313 * m68k-tdep.c, alpha-tdep.c: Ditto.
1315 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1316 * mips-tdep.c: Ditto.
1318 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1320 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1321 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1322 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1323 * gdbarch.c, gdbarch.h: Re-generate.
1324 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1325 (CALL_DUMMY_LOCATION): Delete macro definition.
1326 (PC_IN_CALL_DUMMY): Delete macro definitions.
1328 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1329 default is already generic_pc_in_call_dummy.
1330 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1331 * v850-tdep.c (v850_gdbarch_init): Ditto.
1332 * sh-tdep.c (sh_gdbarch_init): Ditto.
1333 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1334 * mips-tdep.c (mips_gdbarch_init): Ditto.
1335 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1337 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1339 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1340 * avr-tdep.c (avr_gdbarch_init): Ditto.
1342 * arm-tdep.c (arm_gdbarch_init): Do not set
1343 use_generic_dummy_frames, default is already 1.
1344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1345 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1346 * v850-tdep.c (v850_gdbarch_init): Ditto.
1347 * sh-tdep.c (sh_gdbarch_init): Ditto.
1348 * s390-tdep.c (s390_gdbarch_init): Ditto.
1349 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1350 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1351 * mips-tdep.c (mips_gdbarch_init): Ditto.
1352 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1354 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1355 * i386-tdep.c (i386_gdbarch_init): Ditto.
1356 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1357 * frv-tdep.c (frv_gdbarch_init): Ditto.
1358 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1359 * cris-tdep.c (cris_gdbarch_init): Ditto.
1360 * avr-tdep.c (avr_gdbarch_init): Ditto.
1362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1363 call_dummy_location, default is already AT_ENTRY_POINT.
1364 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1365 * v850-tdep.c (v850_gdbarch_init): Ditto.
1366 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1367 * sh-tdep.c (sh_gdbarch_init): Ditto.
1368 * s390-tdep.c (s390_gdbarch_init): Ditto.
1369 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1370 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1371 * mips-tdep.c (mips_gdbarch_init): Ditto.
1372 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1375 * i386-tdep.c (i386_gdbarch_init): Ditto.
1376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1377 * frv-tdep.c (frv_gdbarch_init): Ditto.
1378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1379 * cris-tdep.c (cris_gdbarch_init): Ditto.
1380 * avr-tdep.c (avr_gdbarch_init): Ditto.
1381 * arm-tdep.c (arm_gdbarch_init): Ditto.
1382 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1384 2002-11-28 Andrew Cagney <cagney@redhat.com>
1386 * frame.h: Update comments on set_current_frame, create_new_frame,
1387 flush_cached_frames, reinit_frame_cache, select_frame and
1390 2002-11-27 Andrew Cagney <cagney@redhat.com>
1392 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1393 deprecated pc_in_call_dummy function.
1394 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1395 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1396 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1397 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1398 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1400 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1402 * Makefile.in: Remove Tix dependencies.
1403 * acinclude.m4: Ditto.
1404 * aclocal.m4: Ditto.
1405 * configure.in: Ditto.
1406 * configure: Regenerated.
1408 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1410 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1411 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1412 * gdbarch.c: Re-generate.
1414 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1416 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1417 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1418 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1419 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1420 pc_in_call_dummy_at_entry_point.
1421 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1422 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1423 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1424 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1425 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1426 pc_in_call_dummy_on_stack.
1427 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1428 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1429 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1430 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1431 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1433 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1435 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1436 pc_in_call_dummy_before_text_end
1437 (deprecated_pc_in_call_dummy_after_text_end): Rename
1438 pc_in_call_dummy_after_text_end.
1439 (deprecated_pc_in_call_dummy_on_stack): Rename
1440 pc_in_call_dummy_on_stack.
1441 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1442 pc_in_call_dummy_at_entry_point.
1443 * m68k-tdep.c (m68k_gdbarch_init): Update.
1444 * s390-tdep.c (s390_gdbarch_init): Update.
1445 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1446 * vax-tdep.c (vax_gdbarch_init): Update.
1447 * sparc-tdep.c (sparc_gdbarch_init): Update.
1448 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1449 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1450 * i386-tdep.c (i386_gdbarch_init): Update.
1451 * frv-tdep.c (frv_gdbarch_init): Update.
1452 * cris-tdep.c (cris_gdbarch_init): Update.
1453 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1454 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1455 (deprecated_pc_in_call_dummy_after_text_end)
1456 (deprecated_pc_in_call_dummy_on_stack)
1457 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1458 * alpha-tdep.c (alpha_gdbarch_init): Update.
1460 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1462 * acconfig.h (HAVE_PREAD64): Add.
1463 * configure.in: Check for pread64.
1464 * config.in: Regenerated.
1465 * configure: Regenerated.
1466 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1467 * linux-proc.c (linux_proc_xfer_memory): New function.
1468 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1470 2002-11-25 David Carlton <carlton@math.stanford.edu>
1472 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1475 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1477 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1478 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1480 2002-11-25 Jim Blandy <jimb@redhat.com>
1482 * symfile.c (init_objfile_sect_indices): New function.
1483 (default_symfile_offsets): Move the section-index-initializing
1484 stuff into init_objfile_sect_indices, and call that.
1486 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1487 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1489 * symfile.c (syms_from_objfile): Adjust indentation.
1491 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1492 || info_verbose isn't true.
1494 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1496 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1497 default to get_frame_base.
1498 * gdbarch.h, gdbarch.c: Regenerate.
1499 * arch-utils.c (default_frame_address): Delete function.
1500 * arch-utils.h (default_frame_address): Delete declaration
1502 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1504 * varobj.c (find_frame_addr_in_frame_chain):
1505 Use get_frame_base instead of FRAME_FP,
1508 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1510 * frame.h (FRAME_FP): Delete macro.
1511 (get_frame_base): New function declaration.
1512 * frame.c (get_frame_base): New function.
1513 (get_frame_id): Use ->frame.
1514 (frame_find_by_id): Rewrite to use get_frame_id.
1515 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1516 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1517 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1518 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1519 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1520 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1521 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1523 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1525 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1527 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1529 * frame.c (set_unwind_by_pc): Revert change below, use
1531 (get_prev_frame): Ditto.
1533 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1535 * dummy-frame.c (pc_in_dummy_frame): New function.
1536 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1537 (find_dummy_frame): Update comment.
1538 (generic_pop_current_frame): Use get_frame_type.
1539 * dummy-frame.h (pc_in_dummy_frame): Declare.
1540 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1541 (create_new_frame): Use pc_in_dummy_frame.
1542 (get_prev_frame): Use pc_in_dummy_frame.
1543 (frame_saved_regs_register_unwind): Use get_prev_frame.
1544 (deprecated_generic_get_saved_register): Use get_prev_frame.
1546 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1548 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1550 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1551 (varobj_create): Note that frame ID should be used.
1552 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1554 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1556 * breakpoint.c: Include "gdb_assert.h".
1557 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1559 * Makefile.in (breakpoint.o): Update dependencies.
1560 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1561 deprecated_frame_in_dummy.
1562 * stack.c (print_frame_info_base): Ditto.
1563 (frame_info): Ditto.
1564 (print_frame_info_base): Ditto. Delete dead code.
1566 2002-11-23 Andreas Schwab <schwab@suse.de>
1568 * Makefile.in (m68k_tdep_h): Define.
1569 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1570 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1571 * m68k-tdep.c: Move register number enum ...
1572 * m68k-tdep.h: ... to this new file and rename the constants from
1573 E_* to M68K_*. All uses changed.
1574 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1575 * abug-rom.c: Include "m68k-tdep.h". Use
1576 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1577 * cpu32bug-rom.c: Likewise.
1578 * dbug-rom.c: Likewise.
1579 * m68k-tdep.c: Likewise.
1580 * m68klinux-nat.c: Likewise.
1581 * remote-est.c: Likewise.
1582 * rom68k-rom.c: Likewise.
1583 * config/m68k/tm-linux.h: Likewise.
1585 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1587 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1588 dummy frame initialization code.
1589 * mips-tdep.c (mips_gdbarch_init): Ditto.
1591 2002-11-22 Christopher Faylor <cgf@redhat.com>
1593 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1596 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1598 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1599 to default_frame_address.
1600 * gdbarch.h, gdbarch.c: Re-generate.
1602 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1603 or frame_locals_address to default_frame_address.
1604 * m68k-tdep.c (m68k_gdbarch_init): Update.
1605 * i386-tdep.c (i386_gdbarch_init): Update.
1606 * frv-tdep.c (frv_gdbarch_init): Update.
1607 * sh-tdep.c (sh_gdbarch_init): Update.
1608 * v850-tdep.c (v850_gdbarch_init): Update.
1609 * sparc-tdep.c (sparc_gdbarch_init): Update.
1610 * mips-tdep.c (mips_gdbarch_init): Update.
1611 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1612 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1613 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1615 * cris-tdep.c (cris_frame_args_address): Delete function.
1616 (cris_frame_locals_address): Delete function.
1617 (cris_gdbarch_init): Do not set frame_args_address or
1618 frame_locals_address.
1620 2002-11-22 Michael Snyder <msnyder@redhat.com>
1622 * thread-db.c (thread_db_load): Tell the user what's going on
1623 if dlopen fails on libthread_db.
1625 2002-11-23 Andreas Schwab <schwab@suse.de>
1627 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1628 invariant return values.
1630 2002-11-22 Andreas Schwab <schwab@suse.de>
1632 * valops.c (value_slice): Move declaration of `offset' to avoid
1635 2002-11-22 Christopher Faylor <cgf@redhat.com>
1637 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1638 (struct so_stuff): Add end_addr field.
1639 (register_loaded_dll): Calculate and store end address of loaded dll.
1640 (solib_address): New function.
1641 (child_solib_loaded_library_pathname): Pass carefully constructed
1642 section info to safe_symbol_file_add rather than ignoring it.
1643 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1645 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1646 (child_create_inferior): Fix a compiler warning.
1647 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1648 (solib_address): Declare new function.
1650 2002-11-22 Andreas Schwab <schwab@suse.de>
1652 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1655 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1657 * maint.c (_initialize_maint_cmds): Fix typo. From
1658 Francesco Potorti` <pot@gnu.org>.
1660 2002-11-21 Andrew Cagney <cagney@redhat.com>
1662 * mips-tdep.c (mips_dump_tdep): Delete references to
1663 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1664 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1665 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1666 * printcmd.c (build_address_symbolic): Delete calls to
1667 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1668 (address_info): Ditto.
1671 2002-11-19 Klee Dienes <kdienes@apple.com>
1672 Adam Fedor <fedor@gnu.org>
1674 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1675 the ability to explicitly specify the quote characters and word
1676 break characters; if NULL is specified for either, use the old
1677 behavior of using the characters used by the completer.
1678 (skip_chars): New function. Convenience wrapper around
1679 skip_quoted_chars to provide the original skip_chars behavior.
1680 * completer.h (skip_quoted_chars): Add prototype.
1682 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1684 Problems reported by Paul Eggert.
1685 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1687 2002-11-19 Andreas Schwab <schwab@suse.de>
1689 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1690 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1691 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1692 (m68k_linux_frame_saved_pc): Move to ...
1693 * m68klinux-tdep.c: ... here. New file.
1694 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1695 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1697 2002-11-19 Adam Fedor <fedor@gnu.org>
1699 * objc-exp.y: Revert to old skip_quoted usage.
1701 2002-11-19 Adam Fedor <fedor@gnu.org>
1703 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1704 (objc_lang_h): Define.
1705 (YYFILES): Add objc-exp.tab.c.
1706 (local-maintainer-clean): Remove objc-exp.tab.c.
1707 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1709 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1711 * p-exp.y (typecast rule): Add automatic dereference of
1712 pascal classes if needed.
1713 (THIS): Set current_type.
1714 Automatically dereference pascal classes.
1715 (typebase rule): Add ^typebase recognition.
1717 2002-11-18 Adam Fedor <fedor@gnu.org>
1719 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1720 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1721 (op_name): Handle OP_OBJC_SELF.
1722 * Makefile.in (expprint.o): Add additional depends.
1724 2002-11-18 Adam Fedor <fedor@gnu.org>
1726 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1727 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1728 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1729 * objc-exp.y: Likewise.
1731 2002-11-18 Adam Fedor <fedor@gnu.org>
1733 * gdb/parser-defs.h: (struct objc_class_str): New structure
1734 for parsing ObjC classes.
1736 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1738 * stack.c (frame_relative_level): Copy function from here ...
1739 * frame.c (frame_relative_level): ...to here.
1741 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1743 * frame.h (enum frame_type): Define.
1744 (get_frame_type): Declare.
1745 (struct frame_info): Add field `type'. Delete field
1746 signal_handler_caller.
1747 (deprecated_set_frame_signal_handler_caller): Declare.
1748 * frame.c (get_frame_type): New function.
1749 (deprecated_set_frame_type): New function.
1750 (create_new_frame): Set the frame's type.
1751 (get_prev_frame): Similar.
1752 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1753 * s390-tdep.c: Ditto.
1754 * m68klinux-nat.c: Ditto.
1755 * ns32k-tdep.c: Ditto.
1756 * x86-64-linux-tdep.c: Ditto.
1757 * vax-tdep.c: Ditto.
1758 * rs6000-tdep.c: Ditto.
1759 * ppc-linux-tdep.c: Ditto.
1760 * i386-interix-tdep.c: Ditto.
1761 * mips-tdep.c: Ditto.
1762 * m68k-tdep.c: Ditto.
1763 * hppa-tdep.c: Ditto.
1764 * ia64-tdep.c: Ditto.
1765 * cris-tdep.c: Ditto.
1766 * arm-tdep.c: Ditto.
1767 * alpha-tdep.c: Ditto.
1768 * i386-tdep.c: Ditto.
1770 * ada-lang.c: Ditto.
1771 * blockframe.c: Update.
1772 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1773 deprecated_set_frame_type instead of signal_handler_caller.
1774 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1775 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1776 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1778 2002-11-18 Klee Dienes <kdienes@apple.com>
1780 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1782 2002-11-18 Klee Dienes <kdienes@apple.com>
1784 * buildsym.c (pop_context): Add comment.
1786 2002-11-18 Klee Dienes <kdienes@apple.com>
1788 * buildsym.h (pop_context): Convert to function, defined in
1790 * buildsym.c: Include gdb_assert.h.
1791 (pop_context): Implement as C function. Add check for stack
1793 * dbxread.c (process_one_symbol): Complain and stop processing
1794 that symbol if we are already at the top of the context stack for
1795 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1796 when processing N_RBRAC.
1798 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1800 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1802 (struct target_waitstatus): Add opaque definition.
1803 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1804 * exec.c (init_exec_ops): Likewise.
1805 * fork-child.c (clone_and_follow_inferior): Remove.
1806 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1807 * inferior.h (clone_and_follow_inferior): Remove prototype.
1808 * infrun.c (follow_fork_mode_both): Remove.
1809 (follow_fork_mode_kind_names): Remove commented out "both".
1810 (follow_inferior_fork): Remove follow_fork_mode_both support.
1811 * inftarg.c (child_clone_and_follow_inferior): Remove.
1812 (child_post_follow_inferior_by_clone): Remove.
1813 (init_child_ops): Don't set to_clone_and_follow_inferior
1814 or to_post_follow_inferior_by_clone.
1815 * target.c (default_clone_and_follow_inferior): Remove.
1816 (cleanup_target): Don't set to_clone_and_follow_inferior
1817 or to_post_follow_inferior_by_clone.
1818 (find_default_clone_and_follow_inferior): Remove.
1819 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1820 (debug_to_clone_and_follow_inferior): Remove.
1821 (debug_to_post_follow_inferior_by_clone): Remove.
1822 (setup_target_debug): Don't set to_clone_and_follow_inferior
1823 or to_post_follow_inferior_by_clone.
1824 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1825 and to_post_follow_inferior_by_clone.
1826 (child_clone_and_follow_inferior): Remove prototype.
1827 (child_post_follow_inferior_by_clone): Remove prototype.
1828 (target_clone_and_follow_inferior): Remove macro.
1829 (target_post_follow_inferior_by_clone): Remove macro.
1830 (find_default_clone_and_follow_inferior): Remove prototype.
1832 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1834 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1835 inferior_has_vforked, and inferior_has_execd instead of
1836 target_has_forked, target_has_vforked, and target_has_execd.
1837 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1838 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1839 (CHILD_WAIT): Define.
1840 (child_wait): Add prototype.
1841 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1843 (hpux_has_vforked): Likewise, from child_has_vforked.
1844 (hpux_has_execd): Likewise, from child_has_execd.
1845 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1846 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1847 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1848 and hpux_has_syscall_event instead of the target hooks.
1849 * infrun.c (inferior_has_forked, inferior_has_vforked)
1850 (inferior_has_execd): New functions.
1851 * inftarg.c (not_same_real_pid): Remove.
1852 (child_wait): Remove references to not_same_real_pid,
1853 target_has_forked, target_has_vforked, target_has_execd,
1854 and target_has_syscall_event.
1855 (child_has_forked, child_has_vforked, child_has_execd)
1856 (child_has_syscall_event): Remove.
1857 (init_child_ops): Remove references to child_has_forked,
1858 child_has_vforked, child_has_execd, and child_has_syscall_event.
1859 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1860 (hpux_has_vforked): Likewise, from child_has_vforked.
1861 (hpux_has_execd): Likewise, from child_has_execd.
1862 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1863 * target.c (cleanup_target): Remove references to
1864 to_has_forked, to_has_vforked, to_has_execd, and
1865 to_has_syscall_event.
1866 (update_current_target): Likewise.
1867 (setup_target_debug): Likewise.
1868 (debug_to_has_forked): Remove.
1869 (debug_to_has_vforked): Remove.
1870 (debug_to_has_execd): Remove.
1871 (debug_to_has_syscall_event): Remove.
1872 * target.h (struct target_ops): Remove to_has_forked.
1873 to_has_vforked, to_has_execd, and to_has_syscall_event.
1874 (child_has_forked, child_has_vforked, child_has_execd)
1875 (child_has_syscall_event): Remove prototypes.
1876 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1878 (target_has_forked, target_has_vforked, target_has_execd)
1879 (target_has_syscall_event): Remove macros.
1881 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1883 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1884 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1885 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1886 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1887 * target.c (cleanup_target): Remove reference to
1888 to_can_follow_vfork_prior_to_exec.
1889 (update_current_target): Likewise.
1890 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1891 (setup_target_debug): Remove reference to
1892 to_can_follow_vfork_prior_to_exec.
1893 * target.h (struct target_ops): Remove
1894 to_can_follow_vfork_prior_to_exec.
1895 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1896 (target_can_follow_vfork_prior_to_exec): Remove definition.
1897 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1899 * infrun.c (follow_vfork_when_exec): Remove.
1900 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1901 (follow_exec): Likewise.
1902 (handle_inferior_event): Likewise.
1903 (keep_going): Likewise.
1905 2002-11-15 Andrew Cagney <cagney@redhat.com>
1907 * frame.c (generic_unwind_get_saved_register): Make static.
1908 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1909 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1910 defaults to generic_unwind_get_saved_register.
1911 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1912 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1913 * frv-tdep.c (frv_gdbarch_init): Ditto.
1914 * i386-tdep.c (i386_gdbarch_init): Ditto.
1915 * s390-tdep.c (s390_gdbarch_init): Ditto.
1916 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1917 * v850-tdep.c (v850_gdbarch_init): Ditto.
1918 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1919 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1920 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1922 2002-11-15 Andrew Cagney <cagney@redhat.com>
1924 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1927 2002-11-15 Andrew Cagney <cagney@redhat.com>
1929 * frame.h (sigtramp_saved_pc): Delete declaration.
1930 * blockframe.c (sigtramp_saved_pc): Delete function.
1931 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1932 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1933 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1934 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1936 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1938 * frame.c (frame_pc_unwind): New function.
1939 (frame_saved_regs_pc_unwind): New function.
1940 (frame_register_unwind): Pass unwind_cache instead of
1941 register_unwind_cache.
1942 (set_unwind_by_pc): Add unwind_pc parameter, set.
1943 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1944 (get_prev_frame): Ditto.
1945 * frame.h (frame_pc_unwind_ftype): Declare.
1946 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1947 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1948 (frame_pc_unwind): Declare.
1949 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1950 (struct dummy_frame): Add comment mentioning that values are for
1952 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1953 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1954 (generic_file_frame_chain_valid): Ditto.
1955 * stack.c (frame_info): Ditto.
1957 2002-11-15 David Carlton <carlton@math.stanford.edu>
1959 * linespec.c (locate_first_half): New function.
1960 (decode_line_1): Move code into locate_first_half.
1962 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1964 * complaints.h: Add comment explaining how to eliminate a
1965 deprecated_complain call.
1966 * complaints.h: Fix spelling errors.
1968 2002-11-15 David Carlton <carlton@math.stanford.edu>
1970 * printcmd.c: Remove #include "disasm.h".
1972 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1974 * frame.h: Move the most relevant interface functions to the start
1977 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1979 * regcache.h (deprecated_registers): Rename registers.
1980 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1981 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1982 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1983 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1984 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1985 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1986 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1987 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1988 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1989 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1990 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1991 * v850ice.c: Update.
1993 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1995 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1998 2002-11-13 Andrew Cagney <cagney@redhat.com>
2000 * regcache.h (deprecated_read_register_bytes): Rename
2001 read_register_bytes.
2002 (deprecated_write_register_bytes): Rename write_register_bytes.
2003 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2004 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2005 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2006 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2007 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2008 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2009 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2010 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2011 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2012 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2013 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2014 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2015 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2016 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2018 2002-11-13 Jim Blandy <jimb@redhat.com>
2020 * findvar.c (read_var_value): Doc fix.
2022 2002-11-13 Andrew Cagney <cagney@redhat.com>
2024 * regcache.c (struct regcache): Replace passthough_p with
2026 (regcache_xmalloc): Initialize readonly_p.
2027 (build_regcache): Initialize readonly_p.
2028 (regcache_save): New function.
2029 (regcache_restore): New function.
2030 (regcache_cpy): Re-implement using regcache_save and
2032 (regcache_raw_read): Update.
2033 (regcache_cooked_read): When a read-only cache, checked for cached
2034 pseudo register values.
2035 (regcache_raw_write): Assert that the cache is not read-only.
2036 Remove code handling a non-passthrough cache.
2037 * regcache.h (regcache_save): Declare.
2038 (regcache_restore): Declare.
2040 2002-11-13 Andrew Cagney <cagney@redhat.com>
2042 * regcache.c (struct regcache_descr): Add fields
2043 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2044 (init_legacy_regcache_descr): Compute the size of a cooked
2045 register cache and then assign that to sizeof_raw_registers. Set
2046 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2047 (init_legacy_regcache_descr): Ditto.
2049 2002-11-13 Andrew Cagney <cagney@redhat.com>
2051 * regcache.c (register_buffer): Move to near start of file, update
2053 (regcache_raw_read): Use.
2054 (regcache_raw_write): Use.
2055 (struct regcache): Rename raw_registers to registers and
2056 raw_register_valid_p to register_valid_p.
2057 (regcache_xmalloc): Update.
2058 (regcache_xfree): Update.
2059 (register_buffer): Update.
2060 (regcache_cpy): Update.
2061 (regcache_cpy_no_passthrough): Update.
2062 (regcache_valid_p): Update.
2063 (deprecated_grub_regcache_for_registers): Update.
2064 (deprecated_grub_regcache_for_register_valid): Update.
2065 (set_register_cached): Update.
2066 (regcache_raw_write): Update.
2068 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2070 * p-exp.y (name_not_typename): Use copy_name to
2071 set current_type variable for fields of THIS.
2073 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2075 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2076 * monitor.c (init_base_monitor_ops): Likewise.
2077 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2078 * remote-array.c (init_array_ops): Likewise.
2079 * remote-e7000.c (init_e7000_ops): Likewise.
2080 * remote-es.c (init_es1800_ops): Likewise.
2081 (init_es1800_child_ops): Likewise.
2082 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2083 * remote-sim.c (init_gdbsim_ops): Likewise.
2084 * remote-st.c (init_st2000_ops): Likewise.
2085 * sol-thread.c (init_sol_core_ops): Likewise.
2086 (init_sol_thread_ops): Likewise.
2087 * v850ice.c (init_850ice_ops): Likewise.
2088 * win32-nat.c (init_child_ops): Likewise.
2089 * wince.c (init_child_ops): Likewise.
2091 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2093 * utils.c (gdb_realpath): Make rp a constant pointer.
2095 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2097 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2098 a constant buffer; cannonicalize_file_name(); realpath() with a
2099 pathconf() defined buffer, xstrdup().
2101 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2103 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2104 to hang2.C; hang3.c to hang3.C.
2106 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2108 * findvar.c (read_var_value): Reenable TLS code.
2110 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2111 Jim Blandy <jimb@redhat.com>
2113 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2114 * target.c (update_current_target): Add
2115 to_get_thread_local_address.
2116 * target.h (to_get_thread_local_address): Export.
2117 (target_get_thread_local_address): Define.
2118 (target_get_thread_local_address_p): Define.
2119 * thread-db.c: Include solib-svr4.h.
2120 (td_thr_tls_get_addr_p): Define.
2121 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2122 (thread_db_get_thread_local_address): New function.
2123 (init_thread_db_ops): Initialize to_get_thread_local_address.
2124 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2125 * configure: Regenerate.
2126 * config.in: Regenerate.
2128 2002-11-11 David Carlton <carlton@math.stanford.edu>
2130 * linespec.c (set_flags): New function.
2131 (decode_line_1): Move code into set_flags.
2133 2002-11-11 David Carlton <carlton@math.stanford.edu>
2135 * linespec.c (decode_line_1): Move chunks of code to separate
2137 (initialize_defaults): New function.
2138 (decode_indirect): New function.
2140 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2142 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2143 instead of void_code_ptr.
2144 (sigtramp_saved_pc): Ditto.
2146 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2149 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2151 * gdbtypes.h (struct main_type): Move artificial flag out of
2152 loc. New member of ``struct field'' named static_kind. Reduce
2153 overloaded meaning of bitsize.
2154 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2155 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2156 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2158 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2160 (template_to_fixed_record_type, template_to_static_fixed_type)
2161 (to_record_with_fixed_variant_part): Likewise.
2162 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2163 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2164 * dwarfread.c (struct_type, enum_type): Likewise.
2165 * hpread.c (hpread_read_enum_type)
2166 (hpread_read_function_type, hpread_read_doc_function_type)
2167 (hpread_read_struct_type): Likewise.
2168 * mdebugread.c (parse_symbol): Likewise.
2170 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2172 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2173 * stack.c (print_frame_info_base): Update.
2174 (print_frame_info_base, frame_info): Update.
2175 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2176 (sparc_frame_saved_pc): Update.
2177 * ada-lang.c (find_printable_frame): Update.
2178 * breakpoint.c (deprecated_frame_in_dummy): Update.
2180 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2182 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2184 (regmap): Extend to cover all registers.
2185 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2186 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2188 (fetch_register, sore_register): Simplify.
2189 (old_fetch_inferior_registers, old_store_inferior_registers):
2191 (cannot_fetch_register, cannot_store_register): Change
2192 implementation to use regmap array to decide which registers
2193 cannot be fetched/stored. This removes $orig_eax from the
2194 registers that cannot be fetched/stored.
2195 (fetch_inferior_registers): Call fetch_register directly instead
2196 of calling old_fetch_inferior_registers.
2197 (store_inferior_registers): Call store_register directly instead
2198 of calling old_store_inferior_registers.
2199 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2200 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2201 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2203 2002-11-09 Klee Dienes <kdienes@apple.com>
2205 * i387-tdep.c (i387_supply_register): When called with NULL as a
2206 buffer, mark the register as not provided (to mirror the behavior
2207 of supply_register).
2208 (i387_supply_fxsave): Ditto.
2209 (i387_supply_fsave): Ditto (inherits the behavior from
2210 i387_supply_register).
2212 2002-11-09 Klee Dienes <kdienes@apple.com>
2214 * blockframe.c (sigtramp_saved_pc): Use
2215 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2216 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2217 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2219 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2221 * frame.c (get_prev_frame): Test prev_p to identify a previously
2222 unwound frame. Initialize prev_p.
2223 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2226 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2228 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2229 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2230 more comments. Zap dead code.
2232 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2234 * infcmd.c (print_vector_info, print_float_info): Move code that
2235 checks whether the target has any registers and whether there is a
2236 selected frame up, such that it is also used if a target provides
2237 multi-arch definitions of these functions.
2239 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2241 * Makefile.in (DESTDIR): Define.
2242 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2245 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2246 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2248 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2250 * i386-linux-tdep.c: Include "reggroups.h".
2251 (i386_linux_register_reggroup_p): New function.
2252 (i386_linux_init_abi): Set register_reggroup_p to
2253 i386_linux_register_reggroup_p.
2254 * i386-tdep.h (i386_register_reggroup_p): Declare.
2255 * i386-tdep.c: Include "reggroups.h".
2256 (i386_init_reggroups): New function.
2257 (i386_add_reggroups): New function.
2258 (i386_register_reggroup_p): New function.
2259 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2260 (_initialize_i386_tdep): Call i386_init_reggroups.
2261 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2264 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2266 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2267 request that's available in *BSD.
2269 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2271 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2274 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2276 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2277 * dummy-frame.c (find_dummy_frame): Rename
2278 generic_find_dummy_frame, make static. Return the dummy frame
2279 instead of the regcache.
2280 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2281 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2282 (dummy_frame_register_unwind): Rename
2283 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2284 * dummy-frame.h (dummy_frame_register_unwind): Rename
2285 generic_call_dummy_register_unwind.
2287 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2289 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2290 except the inclusion of "i386/tm-i386.h", to...
2291 * config/i386/nm-i386v42mp.h: ...here.
2292 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2294 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2296 * Makefile.in (frame.o): Update dependencies.
2297 * blockframe.c (current_frame, frame_obstack_alloc)
2298 (frame_saved_regs_zalloc, get_current_frame)
2299 (set_current_frame, create_new_frame)
2300 (set_unwind_by_pc, get_next_frame)
2301 (flush_cached_frames, reinit_frame_cache)
2302 (frame_saved_regs_register_unwind)
2303 (deprecated_generic_get_saved_register)
2304 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2305 (_initialize_blockframe): Move frame code from here...
2306 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2307 "annotate.h" and "dummy-frame.h".
2308 (_initialize_frame): New function.
2310 2002-11-08 Jim Blandy <jimb@redhat.com>
2312 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2313 when we finish a function a context.
2314 * buildsym.h (outermost_context_p): New macro.
2315 (Bug analyzed by David Edelsohn.)
2317 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2319 * blockframe.c: Include "dummy-frame.h".
2320 (struct dummy_frame, dummy_frame_stack)
2321 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2322 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2323 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2324 (generic_save_call_dummy_addr, generic_pop_current_frame)
2325 (generic_pop_dummy_frame, generic_fix_call_dummy)
2326 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2327 dummy frame code from here...
2328 * dummy-frame.c: ...to here. New file.
2329 * dummy-frame.h: New file.
2330 (generic_call_dummy_register_unwind): Declare.
2331 (generic_find_dummy_frame): Declare.
2332 * Makefile.in (SFILES): Add dummy-frame.c.
2333 (dummy-frame.o): Specify dependencies.
2334 (dummy_frame_h): Define.
2335 (COMMON_OBS): Add dummy-frame.o.
2336 (blockframe.o): Update dependencies.
2338 2002-11-08 Jim Blandy <jimb@redhat.com>
2340 * dwarf2read.c (read_func_scope): Restore local_symbols and
2341 param_symbols after we finish the function context. (Based on a
2342 patch from David Edelsohn.)
2344 2002-11-08 David Carlton <carlton@math.stanford.edu>
2346 * linespec.c (symbol_found): New function.
2347 (minsym_found): New function.
2348 (decode_line_1): Separate out some code into separate functions.
2350 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2352 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2353 the benefit of the interix target.
2354 * i386-tdep.h (i386_frameless_signal_p): Declare.
2356 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2358 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2359 declaration that snuck in from change below.
2361 2002-11-06 Andrew Cagney <cagney@redhat.com>
2363 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2365 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2366 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2367 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2368 (i386_mxcsr_regnum_p): new function. Use instead of
2370 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2371 (i386_sse_regnum_p): Declare.
2372 (i386_mxcsr_regnum_p): Declare.
2373 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2374 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2375 (IS_FP_REGNUM): Update definition.
2376 (IS_FPU_CTRL_REGNUM): Update definition..
2377 (IS_SSE_REGNUM): Update definition..
2378 * i386v-nat.c (register_u_addr): Update.
2379 * go32-nat.c (fetch_register): Update.
2380 (store_register): Update.
2382 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2384 Preparation work to convert the hppa targets to multiarch partial.
2386 * hppa-tdep.c: Add new functions replacing macro bodies from
2387 config/pa/tm-hppa.h. These function will be used to initialize
2388 the gdbarch structure. Import some comments from tm-hppa.h,
2389 and place them where appropriate, to avoid loosing them when
2390 we cleanup this file.
2391 (hppa_reg_struct_has_addr): New function.
2392 (hppa_inner_than): New function.
2393 (hppa_stack_align): New function.
2394 (hppa_pc_requires_run_before_use): New function.
2395 (hppa_instruction_nullified): New function.
2396 (hppa_register_byte): New function.
2397 (hppa_register_virtual_type): New function.
2398 (hppa_store_struct_return): New function.
2399 (hppa_cannot_store_register): New function.
2400 (hppa_frame_args_address): New function.
2401 (hppa_frame_locals_address): New function.
2402 (hppa_smash_text_address): New function.
2403 (hppa_coerce_float_to_double): New function. Requires the inclusion
2406 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2408 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2409 gdbarch-eligible macro to a call to the new associated function
2410 created in hppa-tdep.c.
2411 (INNER_THAN): Likewise.
2412 (STACK_ALIGN): Likewise.
2413 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2414 (INSTRUCTION_NULLIFIED): Likewise.
2415 (REGISTER_BYTE): Likewise.
2416 (REGISTER_VIRTUAL_TYPE): Likewise.
2417 (STORE_STRUCT_RETURN): Likewise.
2418 (CANNOT_STORE_REGISTER): Likewise.
2419 (FRAME_ARGS_ADDRESS): Likewise.
2420 (FRAME_LOCALS_ADDRESS): Likewise.
2421 (SMASH_TEXT_ADDRESS): Likewise.
2422 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2423 (ABOUT_TO_RETURN): Delete, as no longer used.
2425 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2427 * printcmd.c (disassemble_command): Remove obsolete function.
2428 (_initialize_printcmd): Do not create disassemble command here.
2429 * cli/cli-cmds.c (disassemble_command): New function. Implements
2430 disassemble command.
2431 (init_cli_cmds): Create disassemble command here instead.
2433 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2435 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2437 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2439 * regcache.h (regcache_cooked_read_using_offset_hack)
2440 (regcache_cooked_write_using_offset_hack): Delete declarations.
2441 (register_changed): Delete declaration.
2442 * regcache.c (regcache_cooked_read_using_offset_hack)
2443 (regcache_cooked_write_using_offset_hack): Delete functions.
2444 (cooked_xfer_using_offset_hack): Delete function.
2445 (register_changed): Delete function.
2447 2002-11-07 Jim Blandy <jimb@redhat.com>
2449 * macroscope.c: #include "complaints.h".
2450 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2451 but not in the macro table.
2452 * Makefile.in (macroscope.o): Record dependency.
2454 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2456 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2458 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2460 * regcache.c (deprecated_registers_fetched): Update.
2461 * regcache.h (deprecated_registers_fetched): Rename
2463 * remote-vxsparc.c (vx_read_register): Update.
2464 * remote-vxmips.c (vx_read_register): Update.
2465 * remote-vx68.c (vx_read_register): Update.
2466 * irix5-nat.c (fetch_core_registers): Update.
2467 * mipsm3-nat.c (fetch_inferior_registers): Update.
2468 * sun3-nat.c (fetch_inferior_registers): Update.
2469 * symm-nat.c (fetch_inferior_registers): Update.
2470 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2471 (fetch_core_registers): Update.
2472 (fetch_kcore_registers): Update.
2473 * mips-nat.c (fetch_inferior_registers): Update.
2474 * corelow.c (get_core_registers): Update.
2475 * a68v-nat.c (fetch_inferior_registers): Update.
2477 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2479 Put in place the framework necessary for multiarching the hppa targets.
2480 * hppa-tdep.c (hppa_gdbarch_init): New function.
2481 (hppa_dump_tdep): New function.
2482 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2483 tdep structure dumper.
2484 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2485 until the multi-arching conversion has partially been completed.
2487 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2489 * valops.c (value_assign): Merge lval_register case into
2490 lval_reg_frame_relative. Use frame_register and
2491 regcache_cooked_write instead of get_saved_register and
2492 write_register_bytes. After flushing the register cache, try to
2493 re-select the selected frame.
2495 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2497 * regcache.h (deprecated_register_valid): Rename register_valid.
2498 * regcache.c: Update.
2499 * ia64-aix-nat.c: Update.
2500 * i386gnu-nat.c: Update.
2501 * alpha-nat.c: Update.
2502 * sparc-nat.c: Update.
2503 * lynx-nat.c: Update.
2504 * remote-mips.c: Update.
2506 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2508 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2509 to end of file, to be more consistent with the pratice followed
2512 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2514 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2515 (print_float_info): Print registers in float_reggroup.
2516 (print_vector_info): Print registers in vector_reggroup.
2517 (default_print_registers_info): When all, print registers in
2518 all_reggroup. Otherwize, print registers in general_reggroup.
2519 (registers_info): Rewrite. Add support for register groups.
2522 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2524 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2526 (symtab_symbol_info): Remove eons old ifdeffed out code.
2527 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2530 2002-11-06 Theodore A. Roth <troth@openavr.org>
2532 * c-exp.y: Add missing semi-colons.
2533 * f-exp.y: Add missing semi-colons.
2534 * m2-exp.y: Add missing semi-colons.
2535 * p-exp.y: Add missing semi-colons.
2536 Add empty action to start rule to avoid a type clash error when
2537 building with bison >= 1.50.
2539 2002-11-06 Jim Blandy <jimb@redhat.com>
2541 * macrotab.h (struct macro_source_file): Doc fix.
2543 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2545 * varobj.c (child_exists, cplus_number_of_children): Change
2546 STREQ macro references to strcmp.
2547 (cplus_name_of_child): Change code to handle the fact that
2548 fields are not necessarily contiguous with regards to their
2549 access control. This is a fix for PR gdb/792.
2551 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2553 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2554 * gdbarch.h, gdbarch.c: Regnerate.
2555 * frame.h (frame_register): Declare.
2556 * frame.c (frame_register): New function.
2557 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2558 GET_SAVED_REGISTER, otherwize call
2559 generic_unwind_get_saved_register.
2560 (frame_register_read): Use frame_register instead of
2563 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2565 From Jim Ingham <jingham@apple.com>:
2566 * event-top.c (gdb_disable_readline): New function.
2567 (_initialize_event_loop): Move comment.
2569 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2571 * event-loop.c (start_event_loop): Add comment.
2574 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2576 * infcmd.c (default_print_registers_info): Do not call
2577 PRINT_REGISTER_HOOK.
2579 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2581 * sparc-tdep.c (sparc_print_register_hook): Make static.
2582 (sparc_print_registers_info): New function.
2583 (sparc_do_registers_info): New function.
2584 (sparclet_print_registers_info): New function.
2585 (sparclet_do_registers_info): New function.
2586 (do_sparc_print_registers_info): New function.
2587 (sparc_print_registers): New static function, clone of infcmd.c's
2588 default_print_registers_info.
2589 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2590 (sparclet_do_registers_info): Declare.
2591 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2592 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2594 (sparc_do_registers_info): Declare.
2595 (PRINT_REGISTER_HOOK): Delete macro.
2596 (sparc_print_register_hook): Delete declaration.
2598 2002-11-05 David Carlton <carlton@math.stanford.edu>
2600 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2602 (lookup_symbol_aux_local): New function.
2603 (lookup_symbol_aux_symtabs): New function.
2604 (lookup_symbol_aux_psymtabs): New function.
2606 2002-11-05 David Carlton <carlton@math.stanford.edu>
2608 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2609 previous values of 'objfile' and 'block'.
2611 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2613 * values.c (value_change_enclosing_type): Set
2614 enclosing_type field correctly also for the case where
2615 more memory needs to be allocated.
2617 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2619 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2622 * i387-tdep.c (i387_print_float_info): Replace calls to
2623 register_read and deprecated_read_register_gen with calls to
2624 frame_register_read, and make the necessary adjustments to the
2627 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2629 * gdbarch.sh (register_reggroup_p): Allow default value.
2630 * gdbarch.h, gdbarch.c: Regenerate.
2632 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2634 * regcache.h: Add coment indicating replacements for deprecated
2637 2002-11-02 Andrew Cagney <cagney@redhat.com>
2639 * reggroups.h, reggroups.c: New files.
2640 * regcache.c: Include "reggroups.h".
2641 (enum regcache_dump_what): Add `regcache_dump_groups'.
2642 (regcache_dump): Contract size of the "Type" column. When
2643 specified, dump the register's groups.
2644 (maintenance_print_register_groups): New function.
2645 (_initialize_regcache): Add command `maint print register-groups'.
2646 * Makefile.in (COMMON_OBS): Add reggroups.o
2647 (SFILES): Add reggroups.c.
2648 (reggroups_h): Define.
2649 (regcache.o, gdbarch.o): Update dependencies.
2650 (reggroups.o): Specify dependencies.
2651 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2652 Add opaque declaration for `struct reggroup' in generated .h file.
2653 Include "reggroups.h" in generated .c file.
2654 gdbarch.h, gdbarch.c: Re-generate.
2656 2002-11-02 Andrew Cagney <cagney@redhat.com>
2658 * regcache.h (deprecated_read_register_gen): Rename
2660 (deprecated_write_register_gen): Rename write_register_gen.
2661 * i387-tdep.c: Update.
2662 * x86-64-linux-nat.c: Update
2664 * thread-db.c: Update.
2665 * win32-nat.c: Update.
2666 * mips-tdep.c: Update.
2667 * d10v-tdep.c: Update.
2668 * cris-tdep.c: Update.
2669 * remote-sim.c: Update.
2670 * remote-rdi.c: Update.
2671 * remote-rdp.c: Update.
2674 * blockframe.c: Update.
2675 * x86-64-tdep.c: Update.
2676 * xstormy16-tdep.c: Update.
2677 * sh-tdep.c: Update.
2678 * s390-tdep.c: Update.
2679 * rs6000-tdep.c: Update.
2680 * sparc-tdep.c: Update.
2681 * i386-tdep.c: Update.
2682 * dwarf2cfi.c: Update.
2683 * regcache.c: Update.
2685 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2687 New interix-specific files:
2688 * config/i386/nm-interix.h: New file.
2689 * config/i386/interix.mh: New file.
2690 * config/i386/interix.mt: New file.
2691 * i386-interix-nat.c: New file.
2692 * i386-interix-tdep.c: New file.
2694 2002-11-01 Andrew Cagney <cagney@redhat.com>
2696 * frame.h (deprecated_generic_get_saved_register): Rename
2697 generic_get_saved_register.
2698 * blockframe.c (deprecated_generic_get_saved_register): Update.
2699 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2700 (xstormy16_frame_saved_register): Update.
2701 * sh-tdep.c (sh_gdbarch_init): Update.
2702 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2703 * ia64-tdep.c (ia64_get_saved_register): Update.
2704 * cris-tdep.c (cris_gdbarch_init): Update.
2705 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2706 * arm-tdep.c (arm_gdbarch_init): Update.
2708 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2710 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2712 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2714 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2715 trampolines in sigaction.
2717 2002-10-31 Andrew Cagney <cagney@redhat.com>
2719 * h8300-tdep.c: Include "gdb_assert.h".
2720 (h8300_print_register): Add gdbarch, file and frame parameters.
2721 Use frame_read_unsigned_register to read the register's value.
2722 Use fprintf_filtered to display output.
2723 (h8300_print_registers_info): Replace h8300_do_registers_info.
2724 (h8300_gdbarch_init): Set print_registers_info.
2726 2002-10-31 Andrew Cagney <cagney@redhat.com>
2728 * frame.c (frame_read_unsigned_register): New function.
2729 (frame_read_signed_register): New function.
2730 * frame.h (frame_read_unsigned_register): Declare.
2731 (frame_read_signed_register): Declare.
2733 2002-10-31 Andrew Cagney <cagney@redhat.com>
2735 * h8500-tdep.c (h8500_print_registers_info): New static function,
2736 clone of infcmd.c's default_print_registers_info.
2737 (h8500_do_registers_info): New funtion.
2738 (h8500_print_register_hook): Rename print_register_hook, make
2741 * config/h8500/tm-h8500.h: Update copyright.
2742 (DEPRECATED_DO_REGISTERS_INFO): Define.
2743 (h8500_do_registers_info: Declare.
2744 (PRINT_REGISTER_HOOK): Delete macro.
2745 (print_register_hook): Delete function.
2747 2002-10-31 Andrew Cagney <cagney@redhat.com>
2749 * z8k-tdep.c (z8k_print_register_hook): Make static.
2750 (z8k_print_registers_info): New static function, clone of
2751 infcmd.c's default_print_registers_info.
2752 (z8k_do_registers_info): New function. Wrap
2753 z8k_print_registers_info.
2754 * config/z8k/tm-z8k.h: Update copyright.
2755 (PRINT_REGISTER_HOOK): Delete macro.
2756 (z8k_print_register_hook): Delete declaration.
2757 (DEPRECATED_DO_REGISTERS_INFO): Define.
2758 (z8k_do_registers_info): Declare.
2760 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2762 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2763 as this is already provided by value.h, and was actually causing
2764 a compilation error because of a conflict in parameter type
2765 declaration due to a missing const keyword.
2766 (low_text_segment_addres): Fix a compilation warning.
2768 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2770 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2771 registers without a name.
2772 (mips_linux_cannot_store_register): Don't store registers without
2775 2002-10-28 David Carlton <carlton@math.stanford.edu>
2777 * symtab.c (find_addr_symbol): Delete. (It was already commented
2779 * symtab.h: Delete prototype for find_addr_symbol.
2781 2002-10-26 Andrew Cagney <cagney@redhat.com>
2783 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2785 gdbarch.h, gdbarch.c: Re-generate.
2786 * infcmd.c (default_print_registers_info): Update reference.
2787 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2788 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2789 * sh-tdep.c (sh_gdbarch_init): Ditto.
2790 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2793 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2795 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2796 cfi_init_extra_frame_info.
2797 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2798 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2800 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2801 target where necessary. Add more comments and remove the ones
2802 that don't provide any useful information.
2804 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2805 deprecated_read_register_dummy with
2806 frame_unwind_unsigned_register.
2808 * i386-tdep.c (i386_extract_struct_value_address): Use
2809 regcache_raw_read_unsigned instead of
2810 regcache_cooked_read_unsigned since we know that the register
2811 we're reading isn't a pseudo register. Rename variable 'val' into
2812 the more descriptive 'addr'.
2814 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2815 (x86_64_push_return_address): Add comment.
2816 (x86_64_pop_frame): Make static.
2817 (examine_argument): Clarify comment.
2818 (x86_64_skip_prologue): Make prolog_expact variable static.
2820 * dwarf2cfi.c: Fix some formatting problems.
2821 (context_cpy, read_encoded_pointer): Clarify comments.
2823 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2824 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2825 i386 target back into x86_64_gdbarch_init. Add some comments and
2826 remove meaningless ones.
2828 2002-10-25 Andrew Cagney <cagney@redhat.com>
2830 * complaints.h (struct deprecated_complaint): Rename `struct
2832 * complaints.c (complain): Update.
2833 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2834 incorrect comment indicating that "symfile.h" was being included
2835 for the `struct complaint' definition.
2836 * remote-vx.c: Update.
2837 * objc-lang.c: Update.
2838 * xcoffread.c: Update.
2840 * mdebugread.c: Update.
2841 * stabsread.c: Update.
2842 * dwarf2read.c: Update.
2843 * dwarfread.c: Update.
2844 * elfread.c: Update.
2845 * coffread.c: Update.
2846 * stabsread.h: Update.
2847 * dbxread.c: Update.
2848 * buildsym.c: Update.
2849 * gdbtypes.c: Update.
2850 * macrotab.c: Update.
2852 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2854 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2855 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2856 (x86_64_init_abi): ...new function.
2858 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2859 * i386v-nat.c: Include "i386-tdep.h".
2861 2002-10-25 Andrew Cagney <cagney@redhat.com>
2863 * gdbtypes.c (address_space_name_to_int): Update.
2864 (address_space_int_to_name): Update.
2865 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2866 multi-arch predicate.
2867 (address_class_name_to_type_flags): Ditto.
2868 * gdbarch.h, gdbarch.c: Re-generate.
2870 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2872 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2874 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2876 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2878 * symtab.h (INIT_SAL): Delete macro.
2880 * symtab.c (init_sal): New function.
2882 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2883 to init_sal function call.
2884 (find_sal_from_funcs_and_line): Ditto.
2885 (all_sals_for_line): Ditto.
2886 * breakpoint.c (create_internal_breakpoint): Ditto.
2887 (create_fork_vfork_event_catchpoint): Ditto.
2888 (create_exec_event_catchpoint): Ditto.
2889 (parse_breakpoint_sals): Ditto.
2890 (watch_command_1): Ditto.
2891 (handle_gnu_4_16_catch_command): Ditto.
2892 (clear_command): Ditto.
2893 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2894 * infcmd.c (run_stack_dummy): Ditto.
2895 * infrun.c (process_event_stop_test): Ditto.
2896 (check_sigtramp2): Ditto.
2897 (step_over_function): Ditto.
2898 * linespec.c (decode_line_2): Ditto.
2899 (decode_line_1): Ditto.
2900 * source.c (line_info): Ditto.
2901 * symtab.c (find_pc_sect_line): Ditto.
2903 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2905 * dwarf2cfi.c (struct context)
2906 (struct context_reg): Moved to dwarf2cfi.h
2907 (context_alloc, frame_state_alloc, context_cpy):
2908 Made extern instead of static, removed prototypes.
2909 * dwarf2cfi.h (struct context)
2910 (struct context_reg): New, moved from dwarf2cfi.c
2911 (context_alloc, frame_state_alloc, context_cpy):
2913 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2914 Changed from static to extern.
2915 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2916 (LINUX_SIGCONTEXT_FP_OFFSET)
2917 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2918 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2919 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2920 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2921 set_gdbarch_*() calls now use x86-64 specific functions
2922 instead of DWARF2 CFI ones.
2923 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2924 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2925 (x86_64_init_extra_frame_info): New prototypes.
2927 2002-10-23 David Carlton <carlton@math.stanford.edu>
2929 * linespec.c: #include "parser-defs.h".
2930 Delete prototype for find_template_name_end.
2931 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2933 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2935 * NEWS: add recent mi fixes.
2936 * varobj.c (struct varobj): Add new "updated" flag.
2937 (new_variable): Default "updated" flag to 0.
2938 (varobj_set_value): Set "updated" flag to 1 if value
2940 (varobj_update): Check varobj "updated" flag before
2941 comparing old and refreshed values. Fix for
2944 2002-10-23 David Carlton <carlton@math.stanford.edu>
2946 * parse.c (parse_exp_1): Use BLOCK_START.
2947 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2949 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2951 2002-10-23 David Carlton <carlton@math.stanford.edu>
2953 * symtab.c: Delete cplusplus_hint.
2954 Delete prototype for find_template_name_end.
2956 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2958 * symtab.h: Update comment.
2960 2002-10-23 Michael Snyder <msnyder@redhat.com>
2962 * printcmd.c (address_info): Restore quotes in output.
2963 * valops.c (value_of_local): Restore quotes in error message.
2965 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2967 * symtab.c (symbol_demangled_name): New function.
2968 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2969 turning most of it into a function.
2970 (symbol_demangled_name): Export.
2972 2002-10-23 Michael Snyder <msnyder@redhat.com>
2974 * valops.c (value_of_local): Restore quotes in error message.
2976 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2978 * symtab.c (symbol_init_language_specific): New function.
2979 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2980 turning most of it into a function.
2981 (symbol_init_language_specific): Export.
2983 2002-10-23 David Carlton <carlton@math.stanford.edu>
2985 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2986 (dwarf_attr_name): Ditto.
2987 (dwarf_type_encoding_name): Ditto.
2988 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2989 (process_die): Handle DW_TAG_namespace,
2990 DW_TAG_imported_declaration, DW_TAG_imported_module.
2991 (read_namespace): New function.
2993 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2995 * configure.in: Define NEW_PROC_API on Interix too.
2996 * configure: Regenerate.
2998 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3000 * configure: Regenerate using the proper version of autoconf.
3002 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3004 * findvar.c (read_var_value): Temporarily disable TLS code, until
3005 complete TLS support is added.
3007 2002-10-21 Jim Blandy <jimb@redhat.com>
3008 Elena Zannoni <ezannoni@redhat.com>
3010 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3011 for thread local storage locations.
3012 (struct symbol): Add objfile field.
3013 (SYMBOL_OBJFILE): Define.
3014 * dwarf2read.c (is_thread_local): New static variable.
3015 (new_symbol): If variable is in thread local fill in address class
3016 and objfile appropriately.
3017 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3019 * printcmd.c (address_info): Print the information for thread
3020 local storage variable.
3021 * findvar.c (read_var_value): In case of thread local variable,
3022 defer to the target vector code to compute address.
3024 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3026 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3027 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3029 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3031 * symtab.h (address_class): Rename
3032 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3033 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3034 * printcmd.c (address_info): Ditto.
3035 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3037 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3039 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3040 DBREG_DRX macro to acces debug registers.
3042 * Makefile.in (i386obsd-tdep.o): New target.
3044 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3045 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3047 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3048 * config/i386/obsd.mt: New file.
3049 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3050 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3051 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3052 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3053 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3054 * i386obsd-tdep.c: New file.
3056 2002-10-19 Adam Fedor <fedor@gnu.org>
3058 * objc-exp.y (name_not_typename): Fix invalid comment.
3060 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3062 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3063 to allocate partial syms and macro byte caches.
3065 2002-10-18 David Carlton <carlton@math.stanford.edu>
3067 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3069 2002-10-18 Adam Fedor <fedor@gnu.org>
3071 * stabsread.c (find_name_end): New function.
3072 (define_symbol): Use it.
3074 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3076 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3077 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3078 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3079 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3081 2002-10-17 David Carlton <carlton@math.stanford.edu>
3083 * symfile.h: Add opaque declaration for struct obstack.
3084 Declare obsavestring to take a const char *.
3085 * symfile.c (obsavestring): Make first argument a const char *.
3087 2002-10-16 Adam Fedor <fedor@gnu.org>
3089 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3090 names when matching breakpoints in current file.
3092 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3094 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3095 (read_tag_pointer_type): Add address class support.
3096 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3097 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3099 * gdbarch.h, gdbarch.c: Regenerate.
3100 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3101 (make_type_with_address_space, recursive_type_dump): Add address
3103 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3104 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3105 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3107 2002-10-16 Klee Dienes <kdienes@apple.com>
3109 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3110 to get the last character of a char[] buffer, not
3111 name[sizeof(vptr_name)-1].
3113 2002-10-14 Adam Fedor <fedor@gnu.org>
3115 * symtab.h: New objc_specific struct.
3116 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3117 (SYMBOL_DEMANGLED_NAME): Likewise.
3119 2002-10-14 Adam Fedor <fedor@gnu.org>
3121 * symfile.c (init_filename_language_table): Add ObjC file extension.
3123 2002-10-14 Adam Fedor <fedor@gnu.org>
3125 * utils.c (puts_filtered_tabular): New function.
3126 (fprintf_symbol_filtered): Get ObjC demangled name.
3127 * defs.h (puts_filtered_tabular): Declared.
3129 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3131 * c-lang.h (c_type_print_varspec_prefix): Delete.
3132 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3133 ``need_post_space'' parameter. Adjust all callers.
3135 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3137 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3138 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3139 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3140 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3142 2002-10-13 Adam Fedor <fedor@gnu.org>
3144 * source.c (print_source_lines): Update comments.
3146 2002-10-13 Adam Fedor <fedor@gnu.org>
3148 * valops.c (value_of_local): New function.
3149 (value_of_this): Use it.
3150 * value.h (value_of_local): Declared.
3152 2002-10-13 Adam Fedor <fedor@gnu.org>
3154 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3155 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3157 2002-10-12 Adam Fedor <fedor@gnu.org>
3159 * language.c (binop_result_type): Add language_objc to case.
3160 (integral_type): Likewise.
3161 (character_type): Likewise.
3162 (string_type): Likewise.
3163 (boolean_type): Likewise.
3164 (structured_type): Likewise.
3165 (binop_type_check): Likewise.
3167 2002-10-11 Adam Fedor <fedor@gnu.org>
3169 * printcmd.c (address_info): Print 'self' for ObjC.
3171 2002-10-11 Adam Fedor <fedor@gnu.org>
3173 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3176 2002-10-11 Adam Fedor <fedor@gnu.org>
3178 * language.h (CAST_IS_CONVERSION): Add language_objc.
3180 2002-10-11 Adam Fedor <fedor@gnu.org>
3182 * defs.h (enum language): Add language_objc.
3184 2002-10-11 Klee Dienes <kdienes@apple.com>
3186 * corefile.c (read_memory_typed_address): New function.
3187 * gdbcore.h (read_memory_typed_address): Add prototype.
3188 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3189 to read a value destined for a CORE_ADDR, not read_memory_integer.
3190 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3191 (f77_get_dynamic_lowerbound): Ditto.
3193 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3195 * utils.c (string_to_core_addr): After turning string into
3196 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3197 which will do necessary sign-extension, etc.
3199 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3201 * c-exp.y (THIS): Delete token and grammar rule.
3202 (yylex): Don't return THIS.
3203 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3204 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3205 * demangle.c (cplus_markers): Update comment. Put '$'
3206 first. Remove CPLUS_MARKER.
3207 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3208 * jv-exp.y (THIS): Delete token and grammar rule.
3209 (yylex): Don't return THIS.
3210 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3211 * objc-exp.y (THIS): Delete token and grammar rule.
3212 (yylex): Don't return THIS.
3213 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3214 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3215 (read_member_functions): Likewise for opname.
3216 (read_tilde_fields): Use is_cplus_marker.
3218 * defs.h (CPLUS_MARKER): Don't define.
3219 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3220 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3221 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3222 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3223 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3225 * config/i386/tm-i386v4.h: Delete file.
3226 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3227 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3228 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3229 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3230 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3231 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3232 * config/i386/i386v4.mt (TM_FILE): Likewise.
3233 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3235 2002-10-10 Marko Mlinar <markom@opencores.org>
3237 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3238 accidentially not commited 2002-10-09
3239 * gdbarch.h, gdbarch.c: Re-generate.
3241 2002-10-09 Marko Mlinar <markom@opencores.org>
3243 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3244 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3245 * gdbarch.h, gdbarch.c: Re-generate.
3247 2002-10-08 Petr Sorfa <petrs@caldera.com>
3249 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3251 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3252 so we can work on more than one compilation unit at a time. This
3253 helps prepare GDB to handle inter-CU die references.
3254 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3255 the code to be defined before struct comp_unit_head.
3256 (comp_unit_head): Added new members - offset, cu_head,
3257 begin_die, next and dwarf2_abbrevs.
3258 (dwarf2_abbrevs): Removed single static var; now member of
3259 struct comp_unit_head.
3260 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3262 (psymtab_to_symtab_1): Changed to work with the new
3263 struct comp_unit_head.
3264 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3265 constructs the dwarf2_abbrevs[] inside the cu_header.
3266 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3267 dwarf2_abbrev table to clean up.
3268 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3269 handling of dwarf2_abbrevs inside the cu_header.
3270 (read_partial_die): Now supports the call to the new
3271 dwarf2_lookup_abbrev.
3272 (read_full_die): Now supports the call to the new
3273 dwarf2_lookup_abbrev.
3275 2002-10-06 Christopher Faylor <cgf@redhat.com>
3277 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3278 insure that shell variables, such as "transformed_name" are propagated
3279 to later shell statements in rule.
3281 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3283 * config/i386/nm-i386sco.h: Add protection against
3284 multiple-inclusion. Include "i386/nm-i386v.h".
3285 (REGISTER_U_ADDR): Remove define.
3286 (i386_register_u_addr): Remove prototype.
3288 2002-10-04 Michael Snyder <msnyder@redhat.com>
3290 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3291 before treating it as a single-step event.
3293 2002-10-03 Adam Fedor <fedor@gnu.org>
3295 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3296 (objc_demangle): Remove assignment in if statements, Replace
3298 (add_msglist): Likewise.
3299 (end_msglist): Likewise.
3300 (complare_selectors): Likewise.
3301 (selectors_info): Likewise.
3302 (compare_classes): Likewise.
3303 (classes_info): Likewise.
3304 (print_object_command): Likewise.
3305 (find_objc_msgcall_submethod): Replace PTR with void *.
3306 * objc-lang.h: Remove check for __STDC__.
3308 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3310 * ui-out.h (ui_out_field_fmt_int): New prototype.
3311 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3312 of field width and alignment.
3313 * stack.c (print_frame_info_base): When printing frame level, use
3314 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3317 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3319 * MAINTAINERS: Add self to Write After Approval list.
3321 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3323 * infcmd.c (interrupt_target_command_wrapper): Delete.
3324 (interrupt_target_command): Make non static.
3325 (nofp_registers_info): Make static.
3326 * stack.c (return_command_wrapper): Delete.
3327 (return_command): Make non static.
3329 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3331 * event-top.c (gdb_setup_readline): New function. Code moved from
3332 _initialize_event_loop().
3333 (_initialize_event_loop): Call gdb_setup_readline().
3335 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3337 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3338 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3339 * gdbarch.h, gdbarch.c: Re-generate.
3341 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3344 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3346 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3347 of fill_in_vptr_fieldno.
3349 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3351 * inferior.h (registers_info, stepi_command, nexti_command,
3352 continue_command, interrupt_target_command): Export from infcmd.c.
3353 * frame.h (args_info, selected_frame_level_changed_hook,
3354 return_command): Export from stack.c.
3355 * v850ice.c (stepi_command, nexti_command, continue_command): use
3356 prototypes from inferior.h.
3357 * tracepoint.c (registers_info, args_info, locals_info): Use
3358 prototypes from frame.h and inferior.h.
3359 * Makefile.in (mi-main.o): Add dependency on frame.h.
3361 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3363 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3364 value in register 3 adjusted by ppc_gp0_regnum.
3366 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3368 2002-10-02 Marko Mlinar <markom@opencores.org>
3370 * MAINTAINERS: Add myself to the Write After Approval list.
3372 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3374 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3375 of the section for the N64 ABI, fixed.
3377 * config/mips/tm-irix6.h: Include solib.h.
3379 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3381 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3384 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3386 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3387 and that "mi0" syntax has been removed.
3389 2002-09-30 David Carlton <carlton@math.stanford.edu>
3391 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3392 * ppc-sysv-tdep.c: #include "gdb_string.h".
3393 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3396 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3398 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3399 "vrsave"'s register number.
3401 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3403 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3404 use frame_unwind_signed_register to obtain the PC.
3405 (mips_frame_chain): Handle a generic dummy frame.
3406 (mips_init_extra_frame_info): When a generic dummy frame, don't
3407 re-compute the frame base.
3408 (mips_pop_frame): Handle generic dummy frames.
3409 (mips_gdbarch_init): When generic dummy frames, set
3410 use_generic_dummy_frames, push_dummy_frame to
3411 generic_push_dummy_frame, pc_in_call_dummy to
3412 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3413 generic_save_dummy_frame_tos.
3415 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3417 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3418 against TOP when TOP was explictly set.
3419 (generic_push_dummy_frame): Set TOP to zero.
3421 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3423 * event-loop.c (start_event_loop): Rename variable 'result' to
3424 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3426 2002-09-30 Keith Seitz <keiths@redhat.com>
3428 * gdb-events.sh (selected_thread_changed): New event.
3429 * gdb-events.c: Regenerated.
3430 * gdb-events.h: Regenerated.
3432 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3434 * MAINTAINERS: Add self to Write After Approval list.
3436 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3438 * disasm.c: New file.
3439 * disasm.h: New file.
3440 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3441 (compare_lines): Ditto.
3442 (dump_insns): Ditto.
3443 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3445 (do_assembly_only): Ditto.
3446 (do_disassembly): Renamed to gdb_disassembly and moved to
3447 disasm.c. Sdded uiout argument.
3448 * Makefile.in: Add new files. Reorder SFILES list. Update
3449 dependencies. Include libgdb.a later in the insight executable.
3451 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3453 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3454 bfd/elf64-alpha-fbsd.c.
3456 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3458 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3461 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3463 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3465 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3467 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3468 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3469 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3470 (S_msg_sig_post_reply): Ditto.
3472 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3474 * sh-tdep.c (sh_use_struct_convention): Use definition according
3476 (sh_push_arguments): Store in register with correct endianess.
3477 (sh_default_store_return_value): Ditto.
3478 (sh_gdbarch_init): Set sizeof long double to 8.
3480 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3482 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3483 Fix some whitespace problems.
3485 2002-09-27 David Carlton <carlton@math.stanford.edu>
3487 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3488 (mcore-tdep.o): Ditto.
3489 (ns32k-tdep.o): Ditto.
3490 (ns32knbsd-tdep.o): Ditto.
3492 (vax-tdep.o): Ditto.
3493 * cris-tdep.c: #include "gdb_string.h"
3494 * mcore-tdep.c: Ditto.
3495 * ns32k-tdep.c: Ditto.
3496 * ns32knbsd-tdep.c: Ditto.
3498 * vax-tdep.c: Ditto.
3500 2002-09-27 David Carlton <carlton@math.stanford.edu>
3502 * config/djgpp/fnchange.lst: Add entries for
3503 gdb/testsuite/gdb.c++/m-static files.
3505 2002-09-27 Jim Wilson <wilson@redhat.com>
3507 * MAINTAINERS: Add myself to the Write After Approval list.
3509 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3511 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3514 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3516 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3519 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3521 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3522 (rs6000_struct_return_address): Delete variable.
3523 (rs6000_store_struct_return): Update.
3524 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3525 deprecated_extract_struct_value_address.
3526 (rs6000_frame_align): New function.
3527 (rs6000_gdbarch_init): Set frame_align.
3529 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3531 From Grace Sainsbury <graces@redhat.com>:
3532 * Makefile.in (gdbtk-main.o): New target.
3533 (gdb.o): New target.
3535 (main.o): Update dependencies.
3536 (gdb$(EXEEXT)): Add gdb.o.
3537 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3538 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3539 (SUBDIR_GDBTK_CLEAN): Set.
3540 (install-gdbtk): Install the insight binary.
3541 (uninstall-gdbtk): New target.
3542 (all-gdbtk, clean-gdbtk): New rule.
3543 * top.c (use_windows): Default to zero.
3544 * main.c: Include "main.h".
3546 (struct captured_main_args): Delete.
3547 (gdb_main): New function.
3551 2002-09-25 Andrew Cagney <cagney@redhat.com>
3553 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3554 (frame_map_regnum_to_name): New function.
3555 (frame_map_name_to_regnum): New function.
3556 * frame.h (frame_map_name_to_regnum): Declare.
3557 (frame_map_regnum_to_name): Declare.
3558 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3559 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3560 * parse.c: Do not include "builtin-regs.h".
3561 (target_map_name_to_register): Delete function.
3562 (write_dollar_variable): Use frame_map_name_to_regnum.
3563 * parser-defs.h (target_map_name_to_register): Delete declaration.
3564 * expprint.c: Include "frame.h".
3565 (print_subexp): Use frame_map_regnum_to_name.
3566 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3567 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3569 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3571 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3572 wasn't saved, and the next innermost frame is a dummy, return the
3573 dummy frame's link register.
3575 2002-09-24 Jim Blandy <jimb@redhat.com>
3577 Fix from Paul Breed:
3578 * main.c (captured_main): Add a `break' after the case for 'b'.
3580 2002-09-24 Keith Seitz <keiths@redhat.com>
3582 * varobj.c (c_type_of_child): Use get_target_type instead
3583 of TYPE_TARGET_TYPE.
3585 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3587 * source.c (get_current_or_default_source_symtab_and_line): Remove
3589 (set_default_source_symtab_and_line): New function. Attempts to
3590 determine a source file to list lines from if one is not currently
3592 (get_current_source_symtab_and_line): Initialize sal.pc and
3594 (set_current_source_symtab_and_line): Mark argument as const.
3595 * source.h: Update declarations and comments.
3596 * linespec.c (decode_line_1): Replace call to removed routine above.
3597 * stack.c (print_frame_info_base): Ditto.
3598 * cli/cli-cmds.c (edit_command): Ditto.
3599 (list_command): Ditto.
3601 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3603 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3604 sal.pc and sal.end fields.
3605 (get_current_or_default_source_symtab_and_line): Ditto.
3606 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3607 so we do not cause a new source symtab to be searched for (reverting an
3608 unintentional change from the 2002-09-20 patch).
3609 * scm-lang.c (scm_unpac): Ditto.
3611 2002-09-21 Andrew Cagney <cagney@redhat.com>
3613 * complaints.c (symfile_explanations): Remove new-line from
3614 ``isolated_message''.
3615 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3616 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3618 2002-09-20 Nick Clifton <nickc@redhat.com>
3620 * NEWS: Announce that V850EA ISA is no longer supported.
3621 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3623 2002-09-20 David Carlton <carlton@math.stanford.edu>
3625 * Makefile.in (c-lang.o): Correct dependencies.
3626 (utils.o): Gather dependencies.
3628 * c-lang.c: #include "gdb_string.h"
3630 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3632 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3633 * cli/cli-cmds.c (list_command): New function. Implements the new
3635 (_init_cli_cmds): Add new command definition.
3636 * gdb.1: Document edit command.
3637 * doc/gdb.texinfo: Document edit command.
3639 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3641 * source.c: Make global variables current_source_symtab and
3642 current_source_line static.
3643 (list_command): Moved to cli/cli-cmds.c.
3644 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3645 (get_first_line_listed): New accessor function.
3646 (get_lines_to_list): New accessor function.
3647 (get_current_source_symtab_and_line): New function. Retrieves the
3648 position in the source code that we consider current.
3649 (get_current_or_default_source_symtab_and_line): New function.
3650 Like the above but attempts to determine a default position if one
3651 is not currently defined.
3652 (set_current_source_symtab_and_line): New function. Sets the source
3653 code position considered current and returns the previously set one.
3654 (clear_current_source_symtab_and_line): Reset stored information about
3655 a current source line.
3656 (_initialize_source): Remove registration for the "list" command and
3658 * source.h: Add declarations for the new functions above.
3659 * symtab.h: Remove declarations for the global variables mentioned
3661 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3662 obtain current source line.
3663 * linespec.c (decode_line_1): Ditto.
3664 * macroscope.c (default_macro_scope): Ditto.
3665 * scm-lang.c (scm_unpac): Ditto.
3666 * stack.c (print_frame_info_base): Ditto.
3667 * symfile.c (clear_symtab_users): Ditto.
3668 * symtab.c (decode_line_spec): Ditto.
3669 * cli/cli-cmds.c (list_command): Moved here from source.c.
3670 (ambiguous_line_spec): Moved here from source.c.
3671 (_init_cli_cmds): Add definition for "list" and its alias.
3672 * Makefile.in: Update dependencies.
3674 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3676 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3677 with what gcc thinks is correct.
3679 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3681 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3682 multiple register push instruction.
3684 2002-09-19 Jim Blandy <jimb@redhat.com>
3686 Add support for distinct host and target character sets.
3687 * charset.c, charset.h: New files.
3688 * c-exp.y: #include "charset.h".
3689 (yylex): Convert character and string literals to the target
3690 character set, before returning them as the semantic value of the
3692 * c-lang.c: #include "charset.h".
3693 (c_emit_char): Use charset-specific methods to recognize
3694 characters with backslash escape forms, to decide which characters
3695 to print literally and which to print using numeric escape
3696 sequences, and to convert target characters to host characters
3698 * utils.c: #include "charset.h".
3699 (no_control_char_error): New function.
3700 (parse_escape): Use charset-specific methods to recognize
3701 backslash escapes, parse `control character' notation, and convert
3702 characters from the host character set to the target character set.
3703 * configure.in: Set the default host character set.
3704 Check where to find iconv, and what its argument types might be.
3705 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3706 * Makefile.in (SFILES): List charset.c.
3707 (COMMON_OBS): List charset.o.
3708 (charset.o): New rule.
3709 (charset_h): New header dependency variable.
3710 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3711 (LIBICONV): New variable, set by configure.
3712 (CLIBS): Include $(LIBICONV) here.
3713 * aclocal.m4, config.in, configure: Regenerated.
3715 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3717 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3720 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3722 * gdb_mbuild.sh: New file.
3724 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3726 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3728 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3730 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3731 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3732 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3733 valops.c, value.h: Revert previous change.
3735 2002-09-18 Michael Snyder <msnyder@redhat.com>
3737 Preliminary support for Objective-C:
3738 * defs.h (language_objc): New enum value.
3739 (puts_filtered_tabular): Declaration only, exported from utils.c.
3740 (skip_quoted): Delete, declared in completer.h.
3741 * c-exp.y: Include completer.h.
3744 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3745 New operator enum values.
3746 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3747 * language.c (binop_result_type): Handle language_objc case.
3748 (integral_type, character_type, string_type, boolean_type,
3749 structured_type, binop_type_check): Ditto.
3750 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3751 (struct objc_specific): Add to general_symbol_info.
3752 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3753 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3754 * parser-defs.h (struct objc_class_str): New struct type.
3755 (start_msglist, end_msglist, add_msglist): Declaration only,
3756 exported from objc-lang.c.
3757 * value.h (value_of_local, value_nsstring,
3758 call_function_by_hand_expecting_type): Exported from valops.c.
3759 * valops.c (find_function_addr): Export.
3760 (call_function_by_hand_expecting_type): New function.
3761 (value_of_local): New function.
3762 * symfile.c (init_filename_language_table): Add ".m" extension
3764 * utils.c (puts_filtered_tabular): New function.
3765 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3766 (set/show demangle): Extend help-string to refer to ObjC.
3767 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3768 * stabsread.c (symbol_reference_defined): Objective-C symbols
3769 may contain colons: make allowances when scanning stabs strings
3771 (objc_find_colon): New function.
3772 * printcmd.c (address_info): If language == objc then print
3773 "self" instead of "this".
3774 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3775 OP_NSSTRING, and OP_SELF.
3776 (prefixify_subexp): Ditto.
3777 * source.c (print_source_lines): Mention objc in comment.
3778 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3781 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3783 * complaints.h: Update copyright.
3784 (struct complaints): Declare.
3785 (struct complaint): Make `message' constant.
3786 (internal_complaint): Declare.
3787 (complaint): Declare.
3788 (complaint_root): Delete declaration.
3789 (symfile_complaints): Delete declaration.
3790 (struct complaints): Add opaque declaration.
3791 (clear_complaints): Add a complaints parameter.
3792 * complaints.c: Update copyright.
3793 (enum complaint_series): Define.
3794 (complaint_root): Delete.
3795 (struct complaints): Define.
3796 (complaint_sentinel, symfile_complaint_book): New variables.
3797 (symfile_explanations, symfile_complaints): New variables.
3799 (get_complaints): New function.
3800 (vcomplaint): New function.
3801 (complaint): New function.
3802 (internal_complaint): New function.
3803 (complain): Call vcomplain with symfile_complaint.
3804 (clear_complaints): Rewrite.
3805 (_initialize_complaints): Use add_setshow_command.
3806 * Makefile.in (complaints.o): Update dependencies.
3807 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3808 to call to clear_complaints.
3809 (new_symfile_objfile, reread_symbols): Ditto.
3810 (oldsyms_complaint): Delete.
3811 (empty_symtab_complaint, unknown_option_complaint): Delete.
3812 (free_named_symtabs): Use complaint instead of complain.
3814 2002-09-18 Michael Snyder <msnyder@redhat.com>
3816 Contributed by Apple Computer, Inc. Merged with current sources
3817 by Adam Fedor <fedor@doc.com> [cagney].
3819 * objc-lang.c: First clean-up round: comments, indentation.
3820 * objc-lang.h: Ditto.
3821 * objc-lang.y: Ditto.
3823 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3825 * maint.c (maintenance_internal_error): Print the parameter as the
3827 (maintenance_internal_warning): New function.
3828 (_initialize_maint_cmds): Add command `maint internal-warning'.
3830 * defs.h (internal_warning, internal_vwarning): Declare.
3831 * utils.c (struct internal_problem): Define.
3832 (internal_vproblem): New function.
3833 (internal_warning): New function.
3834 (internal_vwarning): New function.
3835 (internal_warning_problem, internal_error_problem): New variables.
3836 (internal_verror): Just call internal_vproblem.
3838 2002-09-18 Michael Snyder <msnyder@redhat.com>
3840 * objc-lang.c: New file, support for Objective-C.
3841 Preliminary check-in, not yet integrated into gdb.
3842 * objc-lang.h: New file.
3843 * objc-exp.y: New file.
3845 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3847 * infrun.c (signal_stop_update): Convert definition to ISO C.
3848 (signal_print_update): Ditto.
3849 (signal_pass_update): Ditto.
3850 * inflow.c (terminal_save_ours): Ditto.
3852 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3855 * config/djgpp/fnchange.lst: Handle name clashes between
3856 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3859 * i386-linux-tdep.h: Fix tipo.
3861 2002-09-18 Adam Fedor <fedor@gnu.org>
3863 * MAINTAINERS: Add myself to the Write After Approval list.
3865 2002-09-18 Jim Blandy <jimb@redhat.com>
3867 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3868 texthigh and textlow to reader-specific structs caused
3869 objfile_relocate to miss them. This is fixable, but the work that
3870 the change was supposed to prepare GDB for never got done anyway.
3872 2002-09-18 David Carlton <carlton@math.stanford.edu>
3874 * MAINTAINERS: Alphabetize Write After Approval list.
3876 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3879 * values.c (value_static_field): Call read_var_value.
3881 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3883 * valops.c (hand_function_call): Align the initial stack pointer
3884 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3885 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3887 * mips-tdep.c (mips_frame_align): New function.
3888 (mips_gdbarch_init): Set frame_align.
3889 * gdbarch.sh (FRAME_ALIGN): New method.
3890 * gdbarch.h, gdbarch.c: Re-generate.
3892 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3894 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3897 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3899 * NEWS: Mention that MIPS $fp behavior changed.
3900 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3901 reference to FP_REGNUM.
3902 (mipsnbsd_cannot_store_register): Ditto.
3903 * mips-linux-nat.c: Update copyright.
3904 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3905 (mips_linux_cannot_store_register): Ditto.
3906 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3907 * config/mips/tm-mips.h: Update copyright.
3908 (FP_REGNUM): Delete macro.
3909 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3910 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3911 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3912 (mips_r3041_reg_names, mips_r3051_reg_names)
3913 (mips_r3081_reg_names): Replace "fp" with "".
3916 2002-09-17 Theodore A. Roth <troth@verinet.com>
3918 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3919 generic_read_register_dummy() (PR gdb/703).
3920 (avr_push_return_address): #if 0 out unused vars.
3921 (avr_gdbarch_init): Enable use of avr_push_return_address().
3923 2002-09-17 Michael Snyder <msnyder@redhat.com>
3925 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3926 RTE will take care of it.
3928 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3930 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3931 invalid, return SP_REGNUM.
3933 2002-09-17 Michael Snyder <msnyder@redhat.com>
3935 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3936 point registers without sign extension.
3938 2002-09-17 Andrew Cagney <cagney@redhat.com>
3940 * blockframe.c (deprecated_read_register_dummy): Rename
3941 generic_read_register_dummy.
3942 * frame.c (frame_unwind_signed_register): New function.
3943 (frame_unwind_unsigned_register): New function.
3944 * frame.h (frame_unwind_signed_register): Declare.
3945 (frame_unwind_unsigned_register): Declare.
3946 (deprecated_read_register_dummy): Rename
3947 generic_read_register_dummy.
3949 * h8300-tdep.c (h8300_frame_chain): Update.
3950 (h8300_frame_saved_pc): Update.
3951 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3952 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3953 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3954 (s390_frame_chain): Update.
3955 * v850-tdep.c (v850_find_callers_reg): Update.
3956 (v850_frame_saved_pc): Update.
3957 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3958 (m32r_find_callers_reg): Update.
3959 (m32r_frame_saved_pc): Update.
3960 * sh-tdep.c (sh_find_callers_reg): Update.
3961 (sh64_get_saved_pr): Update.
3962 (sh_init_extra_frame_info): Update.
3963 (sh_init_extra_frame_info): Update.
3964 (sh64_init_extra_frame_info): Update.
3965 (sh64_init_extra_frame_info): Update.
3966 * mcore-tdep.c (mcore_find_callers_reg): Update.
3967 (mcore_frame_saved_pc): Update.
3968 (mcore_init_extra_frame_info): Update.
3969 * i386-tdep.c (i386_frame_saved_pc): Update.
3970 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3971 (ia64_init_extra_frame_info): Update.
3972 (ia64_init_extra_frame_info): Update.
3973 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3974 * cris-tdep.c (cris_init_extra_frame_info): Update.
3975 * avr-tdep.c (avr_frame_chain): Update.
3976 (avr_init_extra_frame_info): Update.
3977 (avr_frame_saved_pc): Update.
3978 * arm-tdep.c (arm_find_callers_reg): Update.
3979 (arm_init_extra_frame_info): Update.
3980 (arm_frame_saved_pc): Update.
3982 2002-09-17 Tom Tromey <tromey@redhat.com>
3984 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3987 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3989 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3990 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3992 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3995 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3997 * osfsolib.c: Remove file, replaced by solib-osf.c.
3998 * Makefile.in: Remove compilation rules for osfsolib.c.
4000 2002-09-16 David Carlton <carlton@math.stanford.edu>
4002 * cp-valprint.c (cp_print_class_method): Correct args to
4003 check_stub_method_group.
4005 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4007 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4008 `set architecture'. Unify naming convention of functions.
4009 (h8300_skip_prologue): Improve prologue analysis.
4010 (h8300_push_arguments): Rewritten to more closely match GCC's
4011 bizarre argument-passing behavior, along with the comment describing
4013 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4014 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4015 sim, remote-e7000.c, remote-hms.c and remote.c
4017 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4019 * i386-tdep.c (gdb_print_insn_i386): Removed.
4020 (i386_print_insn): New function.
4021 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4022 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4025 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4027 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4030 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4032 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4033 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4034 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4036 2002-09-13 Christopher Faylor <cgf@redhat.com>
4038 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4040 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4042 * gdbtypes.c (check_stub_method): Make static.
4043 (check_stub_method_group): New function.
4044 * gdbtypes.h: Update prototypes.
4045 * cp-support.c: New file.
4046 * cp-support.h: New file.
4048 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4049 (update_method_name_from_physname): New function.
4050 (read_member_functions): Correct method names for operators
4051 and v3 constructors/destructors. Separate v2 constructors and
4053 * Makefile.in (stabsread.o): Update dependencies.
4054 (SFILES): Add cp-support.c.
4055 (COMMON_OBS): Add cp-support.o.
4056 (cp_support_h, cp-support.o): Add.
4058 * cp-valprint.c (cp_print_class_method): Call
4059 check_stub_method_group instead of check_stub_method. Remove
4061 * p-valprint.c (pascal_object_print_class_method): Likewise.
4062 * valops.c (search_struct_method): Likewise.
4063 (find_method_list, value_struct_elt_for_reference): Likewise.
4065 2002-09-13 Andrew Cagney <cagney@redhat.com>
4067 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4068 * gdbarch.h, gdbarch.c: Regenerate.
4070 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4072 * frame.c (find_saved_register): Delete function.
4073 * frame.h (find_saved_register): Delete declaration.
4076 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4078 * mips-tdep.c (read_next_frame_reg): Re-hack using
4079 frame_register_unwind.
4081 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4083 * mips-tdep.c (mips_get_saved_register): Re-hack using
4084 frame_register_unwind.
4086 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4088 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4089 vector. Will be useful for Interix.
4090 * gdbarch.h, gdbarch.c: Regenerate.
4092 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4093 name of the malloc function by NAME_OF_MALLOC.
4095 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4097 * value.h (find_function_in_inferior): Add const keyword to
4098 one of the parameters. Allows us to invoke this function with
4100 * valops.c (find_function_in_inferior): Likewise.
4102 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4104 * exec.c (xfer_memory): Fix compilation warning with old versions
4106 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4108 2002-09-12 David Carlton <carlton@math.stanford.edu>
4110 * symtab.h: Run through gdb_indent.h.
4111 Add 2002 to Copyright year list.
4113 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4115 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4117 * MAINTAINERS: Add myself to write after approval list.
4119 2002-09-11 J. Brobecker <brobecker@gnat.com>
4121 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4123 2002-09-11 J. Brobecker <brobecker@gnat.com>
4125 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4128 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4130 * procfs.c (do_detach): Clear current signal, not just fault.
4131 Corrects problem with breakpoint trap signal leaking to detached
4134 2002-09-10 Michael Snyder <msnyder@redhat.com>
4136 * buildsym.c (finish_block): Protect against null pointer.
4138 2002-09-10 Andrew Cagney <cagney@redhat.com>
4140 * infcmd.c (default_print_registers_info): Send all output to
4141 ``file'' instead of ``gdb_stdout''.
4143 2002-09-10 Michael Snyder <msnyder@redhat.com>
4145 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4146 LONGEST, and use signed register read (addresses are sign-
4149 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4151 * event-loop.c (gdb_do_one_event): Make public.
4152 * event-loop.h (gdb_do_one_event): Declare.
4154 2002-09-10 Jeff Law <law@redhat.com>
4156 * infttrace.c (child_resume): Simplify and rework to avoid
4159 2002-09-09 Fred Fish <fnf@intrinsity.com>
4161 * printcmd.c (print_scalar_formatted): "len" is the number of
4162 target bytes, NOT the number of target bits.
4164 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4166 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4167 * top.c (init_main): Set rl_terminal_name.
4169 2002-09-08 Aidan Skinner <aidan@velvet.net>
4171 * ada-lang.c (ada_array_bound, ada_type_match,
4172 _initialize_ada_language): Fix K&R definitions.
4173 * ada-tasks.c (get_current_task): Fix K&R definitions.
4174 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4176 2002-09-07 Christopher Faylor <cgf@redhat.com>
4178 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4181 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4183 * i386-tdep.c (i386_register_virtual_type,
4184 i386_register_convertible, i386_register_convert_to_virtual,
4185 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4186 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4187 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4188 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4189 Don't set push_arguments twice.
4191 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4192 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4193 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4194 sigtramp_end to NULL.
4195 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4197 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4199 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4202 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4203 * gdbarch.h, gdbarch.c: Re-generate.
4204 * blockframe.c (find_pc_sect_partial_function): Convert to use
4205 SIGTRAMP_START_P predicate.
4207 2002-09-05 Michael Snyder <msnyder@redhat.com>
4209 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4210 generic_dummy_frame method and old method. Also distinguish
4211 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4212 (arm_extract_return_value): Use new regcache method.
4214 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4215 adjustment that doesn't conform to the ABI.
4216 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4217 saved regcache, not from current regcache.
4219 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4221 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4224 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4226 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4227 if arm_apcs_32 is false.
4229 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4231 GDB 5.3 branch created.
4233 2002-09-03 Theodore A. Roth <troth@verinet.com>
4235 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4236 generic_unwind_get_saved_register.
4238 2002-09-03 David Carlton <carlton@math.stanford.edu>
4240 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4241 argument (PR gdb/653). Update call to smash_to_method_type.
4242 (read_structure_scope): Update call to dwarf2_add_member_fn.
4244 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4246 * x86-64-linux-tdep.c: Include gdb_string.h
4247 * x86-64-linux-nat.c: Ditto.
4249 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4251 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4252 when YYDEBUG is set to 1.
4253 * c-exp.y: Likewise.
4254 * f-exp.y: Likewise.
4255 * jv-exp.y: Likewise.
4256 * m2-exp.y: Likewise.
4257 * p-exp.y: Likewise.
4259 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4261 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4263 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4264 solib_svr4_fetch_link_map_offsets to
4265 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4266 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4267 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4268 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4269 solib-svr4.o, and solib-legacy.o.
4270 * config/i386/tm-nbsd.h: Include solib.h.
4272 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4274 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4275 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4276 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4277 comment noting that this needs its own target configuration.
4278 * config/i386/nbsd.mt: New file.
4279 * config/i386/nbsdaout.mt: Remove.
4280 * config/i386/nbsdelf.mt: Ditto.
4281 * config/i386/tm-nbsdaout.h: Ditto.
4283 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4285 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4286 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4287 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4289 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4290 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4291 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4293 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4295 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4296 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4297 * i386-tdep.h (i386bsd_init_abi): New prototype.
4298 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4299 function declaration.
4300 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4301 for NetBSD-a.out or NetBSD-ELF.
4302 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4303 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4304 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4305 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4307 (i386nbsd_pc_in_sigtramp): New function.
4308 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4309 i386nbsd_pc_in_sigtramp.
4310 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4311 and i386nbsdelf_init_abi OS ABI handlers.
4312 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4313 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4315 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4317 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4318 registers if the target really has them.
4320 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4322 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4325 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4327 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4329 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4330 (alphanbsd_skip_sigtramp_frame): New functions.
4331 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4332 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4333 to alphanbsd_sigcontext_addr.
4335 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4337 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4339 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4340 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4341 nbsd_pc_in_sigtramp.
4342 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4343 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4344 * nbsd-tdep.c: Include gdb_string.h.
4345 (nbsd_pc_in_sigtramp): New function.
4346 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4347 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4348 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4349 ppcnbsd_pc_in_sigtramp.
4350 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4351 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4352 shnbsd_pc_in_sigtramp.
4353 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4354 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4355 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4357 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4359 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4360 watchpoints to NULL.
4361 (insert_breakpoints): set val field of watchpoints if NULL.
4364 2002-08-29 Jim Blandy <jimb@redhat.com>
4366 * symtab.c (lookup_symbol_aux): In the cases where we find a
4367 minimal symbol of an appropriate name and use its address to
4368 select a symtab to read and search, use `name' (as passed to us)
4369 as the demangled name when searching the symtab's global and
4370 static blocks, not the minsym's name.
4372 2002-08-29 Keith Seitz <keiths@redhat.com>
4374 * stack.c (print_frame_info_base): Always set current_source_symtab
4375 and current_source_line.
4377 2002-08-29 Donn Terry <donnte@microsoft.com>
4379 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4381 2002-08-28 Keith Seitz <keiths@redhat.com>
4383 * stack.c (select_frame): Add FIXME concerning selected-frame
4385 (select_frame_command): Send selected-frame-level-changed
4386 event notification, but only if the level actually changed.
4387 (up_silently_base): Add selected-frame-level-changed event
4389 (down_silently_base): Likewise.
4391 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4393 * Makefile.in: Update dependencies for all gdb/*.c files.
4395 2002-08-27 Tom Tromey <tromey@redhat.com>
4397 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4398 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4399 Update dependencies.
4400 * i387-tdep.c: Include gdb_string.h.
4401 * osabi.c: Likewise.
4402 * i386-linux-nat.c: Likewise.
4403 * lin-lwp.c: Likewise.
4404 * ax-gdb.c: Likewise.
4405 * signals/signals.c: Likewise.
4406 * jv-valprint.c: Likewise.
4407 * p-lang.c: Likewise.
4408 * c-valprint.c: Likewise.
4409 * cp-abi.c: Likewise.
4411 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4413 * cli/cli-script.h (copy_command_lines): Export.
4414 * breakpoint.c: Include cli/cli-script.h.
4415 * Makefile.in (breakpoint.o): Update dependencies.
4417 2002-08-26 Michael Snyder <msnyder@redhat.com>
4419 * breakpoint.c (insert_breakpoints): Protect all references
4420 to 'process_warning'. Shorten long lines.
4422 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4424 * cli/cli-script.c (copy_command_lines): New function.
4425 * defs.h (copy_command_lines): Export.
4426 * testsuite/gdb.base/commands.exp: New tests for commands
4427 attached to a temporary breakpoint, and for commands that
4428 delete the breakpoint they are attached to.
4430 2002-08-26 Michael Snyder <msnyder@redhat.com>
4432 * breakpoint.c (bpstat_stop_status): Instead of copying the
4433 pointer to the breakpoint commands struct, make a new copy
4434 of the struct and point to that.
4435 (bpstat_clear): Free the commands struct.
4436 (bpstat_clear_actions): Free the commands struct.
4437 (bpstat_do_actions): Free the command actions. Also execute
4438 the local cleanups, instead of deleting them.
4439 (delete_breakpoint): Leave the commands field of the bpstat
4440 chain alone -- it will be freed later.
4442 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4444 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4445 deleted in 2002-08-20 commit. This function is still used by
4448 2002-08-26 Keith Seitz <keiths@redhat.com>
4450 * gdb-events.sh: Add selected-frame-level-changed event.
4451 * gdb-events.c: Regenerated.
4452 * gdb-events.h: Regenerated.
4454 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4457 * inflow.c (terminal_save_ours): New function to save terminal
4459 * inferior.h (terminal_save_ours): Declare.
4460 * target.c (debug_to_terminal_save_ours): New function.
4461 (cleanup_target): Defaults to_terminal_save_ours.
4462 (update_current_target): Inherit to_terminal_save_ours.
4463 (setup_target_debug): Set to_terminal_save_ours.
4464 * target.h (target_terminal_save_ours): New to save terminal settings.
4465 (target_ops): New member to_terminal_save_ours.
4466 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4467 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4468 * inftarg.c (init_child_ops): Likewise.
4469 * m3-nat.c (init_m3_ops): Likewise.
4470 * procfs.c (init_procfs_ops): Likewise.
4471 * wince.c (init_child_ops): Likewise.
4472 * win32-nat.c (init_child_ops): Likewise.
4473 * sol-thread.c (init_sol_thread_ops): Likewise.
4475 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4477 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4478 use regcache_* functions.
4479 (i386_gdbarch_init): Set store_return_value instead of
4480 deprecated_store_return_value.
4482 * regcache.c (regcache_raw_write_signed,
4483 regcache_raw_write_unsigned): New functions.
4484 * regcache.h (regcache_raw_write_signed,
4485 regcache_raw_write_unsigned): New prototypes.
4487 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4489 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4490 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4491 source file dependencies. Cleanup corresponding generator rules.
4493 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4495 * regcache.h (register_offset_hack): Declare.
4496 (regcache_cooked_read_using_offset_hack): Declare.
4497 (regcache_cooked_write_using_offset_hack): Declare.
4499 * regcache.c (register_offset_hack): New function.
4500 (regcache_cooked_read_using_offset_hack): New function.
4501 (regcache_cooked_write_using_offset_hack): New function.
4502 (regcache_dump): Check that the registers, according to their
4503 offset, are packed hard against each other.
4504 (cooked_xfer_using_offset_hack): New function.
4506 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4508 * regcache.c (struct regcache_descr): Add field register_type.
4509 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4511 (init_regcache_descr): Initialize register_type. Pass the descr
4512 to init_legacy_regcache_descr. Use register_type instead of
4513 REGISTER_VIRTUAL_TYPE.
4514 (register_type): New function.
4515 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4516 * regcache.h (register_type): Declare.
4518 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4520 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4521 instead of deprecated_store_return_value. Fix fallout from
4522 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4524 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4526 * regcache.c (max_register_size): New function.
4527 (init_legacy_regcache_descr): Ensure that max_register_size is
4528 large enough for REGISTER_VIRTUAL_SIZE.
4529 * regcache.h (max_register_size): Declare.
4531 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4533 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4535 (e500_extract_return_value): Change type of valbuf pointer to
4538 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4540 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4543 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4544 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4545 long long) to prevent compiler warning on 64-bit systems.
4547 2002-08-23 Andrew Cagney <cagney@redhat.com>
4549 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4550 (DEPRECATED_STORE_RETURN_VALUE): New method.
4551 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4552 * gdbarch.h, gdbarch.c: Re-generate.
4554 * values.c (set_return_value): Pass current_regcache to
4556 * arch-utils.h (legacy_store_return_value): Declare.
4557 * arch-utils.c (legacy_store_return_value): New function.
4558 (legacy_extract_return_value): Update parameters.
4560 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4562 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4563 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4564 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4565 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4566 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4567 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4568 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4569 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4570 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4571 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4573 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4574 * i386-tdep.c (i386_extract_return_value): Update.
4575 * arch-utils.c (legacy_extract_return_value): Update.
4576 * frv-tdep.c (frv_gdbarch_init): Update.
4577 * cris-tdep.c (cris_gdbarch_init): Update.
4578 * d10v-tdep.c (d10v_gdbarch_init): Update.
4579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4580 * m68k-tdep.c (m68k_gdbarch_init): Update.
4581 * mcore-tdep.c (mcore_gdbarch_init): Update.
4582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4583 * s390-tdep.c (s390_gdbarch_init): Update.
4584 * sparc-tdep.c (sparc_gdbarch_init): Update.
4585 * sh-tdep.c (sh_gdbarch_init): Update.
4586 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4587 * v850-tdep.c (v850_gdbarch_init): Update.
4588 * avr-tdep.c (avr_gdbarch_init): Update.
4589 * ia64-tdep.c (ia64_gdbarch_init): Update.
4590 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4591 * vax-tdep.c (vax_gdbarch_init): Update.
4592 * alpha-tdep.c (alpha_gdbarch_init): Update.
4593 * arm-tdep.c (arm_gdbarch_init): Update.
4594 * mips-tdep.c (mips_gdbarch_init): Update.
4595 * i386-tdep.c (i386_gdbarch_init): Update.
4597 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4599 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4600 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4602 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4604 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4607 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4609 * infrun.c (handle_inferior_event): Move a comment outside of a
4610 function call, in order to avoid indent reformatting this part
4611 of the code in an unreadable way.
4613 2002-08-23 Grace Sainsbury <graces@redhat.com>
4615 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4616 when breakpoints fail. Move general breakpoint error messages to
4618 * breakpoint.c (insert_breakpoints): Change warnings when
4619 breakpoints are nto inserted to specify the type. Remove call to
4620 memory_error when hardware breakpoints can't be inserted. Remove
4621 multiple calls to warning so all messages are sent to the user at
4623 (delete_breakpoints): Make insert error messsages more explicit.
4625 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4627 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4628 gdbserver/ChangeLog.
4630 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4632 * i386-tdep.c: Include "objfiles.h".
4633 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4634 skip_trampoline_code.
4635 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4636 (CPLUS_MARKER): Define to '.'.
4638 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4640 (linux_corefile_thread_callback): Increase args->num_notes.
4641 (linux_make_note_section): Initialize thread_args.num_notes, and
4642 use it to determine whether notes for any threads were created.
4644 2002-08-23 Donn Terry <donnte@microsoft.com>
4646 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4647 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4649 (write_with_trace): Conditionalize out the switch branch handling
4650 PCSHOLD if the corresponding macro is not defined. Likewise for
4651 PRSABORT and PRSTOP.
4652 This change will be needed by the Interix port.
4654 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4656 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4657 write_register wherever possible instead of manipulating the
4658 register bytes directly.
4659 Assign VALUE_CONTENTS to a variable and use that.
4660 The GPR numbers are now dependent on the architecture.
4662 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4664 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4666 (skip_prologue): Add support for BookE/e500 instructions.
4667 (e500_extract_return_value): New function.
4668 (frame_get_saved_regs): Add support for saving ev registers and
4670 (e500_store_return_value): New function.
4671 (rs6000_gdbarch_init): Move up default intializations of
4672 deprecated_extract_return_value and store_return_value. Overwrite
4673 init of store_return_value with e500 specific version.
4674 Set extract_return_value for e500.
4676 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4678 * blockframe.c (generic_call_dummy_register_unwind): Use
4679 regcache_cooked_read to catch cases in which the variable is
4680 stored in a pseudo register.
4682 2002-08-22 Andrew Cagney <cagney@redhat.com>
4684 * NEWS: Mention that the i960 has been made obsolete.
4685 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4687 (remote-nrom.o): Obsolete target.
4688 (remote-nindy.o, i960-tdep.o): Ditto.
4689 * remote-nrom.c: Make file obsolete.
4690 * remote-nindy.c, remote-vx960.c: Ditto.
4691 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4692 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4693 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4694 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4695 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4696 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4697 i960-*-vxworks* obsolete.
4698 * MAINTAINERS: Note that the i960 is obsolete.
4700 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4702 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4703 detach to allow reinitialization.
4705 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4707 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4710 2002-08-22 Jim Blandy <jimb@redhat.com>
4712 * coffread.c (coff_symfile_read): Don't try to read the line
4713 number table from disk if the image file doesn't have a symbol
4714 table; we'll never actually look at the info anyway, and Windows
4715 ships DLL's with bogus file offsets for the line number data.
4717 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4719 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4722 2002-08-21 Michael Snyder <msnyder@redhat.com>
4724 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4725 (MSYMBOL_SIZE): Replace macro with function.
4726 (DEFAULT_MIPS_TYPE): Delete unused macro.
4727 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4728 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4730 2002-08-21 Jim Blandy <jimb@redhat.com>
4732 * valops.c (value_cast): Simplify and correct logic for doing a
4733 static cast from a pointer to a base class to a pointer to a
4736 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4738 * infcmd.c (default_print_registers_info): Replace
4740 (registers_info): Use gdbarch_print_registers_info instead of
4742 * inferior.h (default_print_registers_info): Replace
4744 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4745 (DO_REGISTERS_INFO): Change to a predicate function.
4746 * gdbarch.h, gdbarch.c: Regenerate.
4748 2002-08-21 Keith Seitz <keiths@redhat.com>
4750 * gdb-events.sh: Add target-changed event.
4751 * gdb-events.c: Regenerated.
4752 * gdb-events.c: Regenerated.
4753 * valops.c (value_assign): Add target-changed event notification
4754 to inlval_register, lval_memory, and lval_reg_frame_relative.
4756 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4758 * NEWS: Add an entry regarding the improvement of the next/step
4759 operation on Alpha Tru64 multi-processor machines.
4761 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4763 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4765 * Makefile.in: Update all _h macro definitions.
4766 * Makefile.in (install-gdbtk): Move to install section.
4767 (rdi-share/libangsd.a): Move to end of file.
4769 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4771 * frame.c (frame_register_unwind): When a register, set addrp to
4772 the register's byte.
4774 2002-08-20 Michael Snyder <msnyder@redhat.com>
4776 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4777 used locally, so move them from the target machine header to here.
4778 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4779 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4781 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4783 2002-08-20 Andrew Cagney <cagney@redhat.com>
4785 * NEWS: Mention that the Apollo line was made obsolete.
4786 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4787 m68*-hp-hpux* obsolete.
4788 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4789 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4790 * buildsym.c (make_blockvector): Make static.
4791 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4792 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4793 (ALLDEPFILES): Remove dstread.c.
4794 (dstread.o): Obsolete make rule.
4795 * dstread.c: Makefile obsolete.
4797 * config/m68k/hp300hpux.mt: Ditto.
4798 * config/m68k/hp300hpux.mh: Ditto.
4799 * config/m68k/hp300bsd.mt: Ditto.
4800 * config/m68k/hp300bsd.mh: Ditto.
4801 * config/m68k/apollo68b.mt: Ditto.
4802 * config/m68k/apollo68v.mh: Ditto.
4803 * config/m68k/apollo68b.mh: Ditto.
4805 2002-08-20 Michael Snyder <msnyder@redhat.com>
4807 * mips-tdep.c (mips_in_return_stub): Make static.
4808 (mips_gdbarch_init): Set in_solib_return_trampoline.
4809 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4811 2002-08-20 Michael Snyder <msnyder@redhat.com>
4813 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4814 * gdbarch.c, gdbarch.h: Regenerate.
4815 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4817 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4819 2002-08-20 Michael Snyder <msnyder@redhat.com>
4821 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4822 (mips_gdbarch_init): Set skip_trampoline_code,
4823 in_solib_call_trampoline.
4824 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4825 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4827 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4829 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4831 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4832 vector type for ev registers.
4833 (e500_pseudo_register_read): New function.
4834 (e500_pseudo_register_write): New function.
4835 (e500_dwarf2_reg_to_regnum): New function.
4836 (PPC_UISA_NOFP_SPRS): New macro.
4837 (PPC_EV_REGS): New macro.
4838 (PPC_GPRS_PSEUDO_REGS): New macro.
4839 (registers_e500): New register set for e500.
4840 (variants): Add e500 variant.
4841 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4842 before setting architectural dependent variations. Initialize ev
4843 registers numbers. Add case for e500 architecture. Set the
4844 number of pseudo registers.
4846 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4848 * rs6000-tdep.c: Clean up comments.
4850 2002-08-20 Andrew Cagney <cagney@redhat.com>
4852 * h8300-tdep.c: Re-indent file.
4854 2002-08-20 Jim Blandy <jimb@redhat.com>
4856 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4859 2002-08-20 Keith Seitz <keiths@redhat.com>
4861 * breakpoints.c (watch_command_1): Use internal breakpoint
4862 when setting a watchpoint_scope breakpoint.
4864 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4866 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4867 (build_builtin_type_vec64i): Ditto.
4868 (build_builtin_type_vec128): Ditto.
4869 (build_builtin_type_vec128i): Ditto.
4871 2002-08-19 Michael Snyder <msnyder@redhat.com>
4873 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4874 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4875 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4876 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4877 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4878 CALL_DUMMY_ADDRESS): Delete.
4879 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4880 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4881 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4882 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4883 push_return_address.
4884 (mips_register_raw_size, mips_eabi_use_struct_convention,
4885 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4886 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4887 mips_init_extra_frame_info, mips_eabi_push_arguments,
4888 mips_n32n64_push_arguments, mips_push_return_address,
4889 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4890 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4892 2002-08-19 Michael Snyder <msnyder@redhat.com>
4894 * mips-tdep.c (mips_frame_num_args): New function.
4895 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4896 frame_saved_pc, frame_args_address, frame_locals_address,
4897 frame_num_args, and frame_args_skip.
4898 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4899 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4900 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4901 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4903 2002-08-20 Michael Snyder <msnyder@redhat.com>
4905 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4906 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4907 * mips-tdep.c (mips_store_struct_return): New function.
4908 (mips_extract_struct_value_address): New function.
4909 (mips_gdbarch_init): Set store_struct_return and
4910 extract_struct_value_address.
4912 2002-08-20 David Carlton <carlton@math.stanford.edu>
4914 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4915 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4916 (read_file_scope): Check that line_header is nonzero before
4917 decoding macro information.
4919 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4921 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4922 flag the general-purpose registers as floating-point on targets
4923 that don't support the floating-point registers.
4925 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4927 * rs6000-tdep.c (altivec_register_p): Delete.
4928 (rs6000_do_altivec_registers): Delete.
4929 (rs6000_altivec_registers_info): Delete.
4930 (rs6000_do_registers_info): Delete.
4931 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4932 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4934 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4936 * infcmd.c (do_registers_info): Print vector registers in hex
4938 (print_vector_info): Check that printing registers
4940 (print_float_info): Ditto.
4942 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4944 * mips-tdep.c (mips_gdbarch_init): Update.
4945 (mips_o32_extract_return_value): Rewrite.
4946 (mips_o32_store_return_value): Rewrite.
4947 (mips_o32_xfer_return_value): New function.
4948 (mips_xfer_register): Tweak debug print message. Allow for
4949 buf_offset when dumping the value transfered.
4951 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4953 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4954 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4955 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4956 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4957 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4959 2002-08-14 Michael Snyder <msnyder@redhat.com>
4961 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4963 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4965 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4967 (P): New macro to define a register as a pseudo register.
4968 (R, R4, R8, R16, FR32, R64, R0): Updated.
4969 (struct variant): Add new fields for number of pseudo registers
4970 and number of total registers.
4971 (tot_num_registers): New macro replacing....
4972 (num_registers): ...deleted macro.
4973 (num_registers): New function.
4974 (num_pseudo_registers): New function.
4975 (variants): Update all variants to intialize new fields correctly.
4976 Postpone initialization of number of pseudo regs and real regs.
4977 (init_variants): New function.
4978 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4981 2002-08-19 David Carlton <carlton@math.stanford.edu>
4983 * valops.c (search_struct_field): Change error message to treat
4984 return value of 0 from value_static_field as meaning that field is
4986 (value_struct_elt_for_reference): Ditto.
4987 * values.c (value_static_field): Treat an unresolved location the
4988 same as a nonexistent symbol. Fix PR gdb/635.
4989 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4990 enclosed. Fix PR gdb/574.
4991 * MAINTAINERS: Add self to Write After Approval list.
4993 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4995 * mips-tdep.c (mips_xfer_register): New function.
4996 (mips_n32n64_extract_return_value): Rewrite.
4997 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4998 instead of deprecated_extract_return_value.
5000 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5002 * rs6000-tdep.c (TDEP): Delete macro.
5003 (branch_dest): Replace use of TDEP macro with its body.
5004 (rs6000_pop_frame): Ditto.
5005 (rs6000_push_arguments): Ditto.
5006 (rs6000_skip_trampoline_code): Ditto.
5007 (rs6000_frame_saved_pc): Ditto.
5008 (rs6000_frame_chain): Ditto.
5009 (rs6000_register_name): Ditto.
5010 (rs6000_register_byte): Ditto.
5011 (rs6000_register_raw_size): Ditto.
5012 (rs6000_register_virtual_type): Ditto.
5013 (rs6000_register_convertible): Ditto.
5014 (rs6000_convert_from_func_ptr_addr): Ditto.
5016 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5018 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5020 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5021 MIPS_LINUX_JB_ELEMENT_SIZE.
5022 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5023 for MAX_REGISTER_RAW_SIZE arrays.
5024 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5025 MIPS_LINUX_JB_ELEMENT_SIZE.
5027 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5029 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5031 2002-08-19 Aidan Skinner <aidan@velvet.net>
5033 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5034 ada-valprint.c ada-tasks.c.
5035 (YYFILES): Add ada-exp.y.
5036 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5037 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5038 (ada-exp.tab.o): New target.
5040 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5042 * regcache.c (regcache_xfer_part): New function.
5043 (regcache_raw_read_part): New function.
5044 (regcache_raw_write_part): New function.
5045 (regcache_cooked_read_part): New function.
5046 (regcache_cooked_write_part): New function.
5047 * regcache.h (regcache_raw_read_part): Declare.
5048 (regcache_raw_write_part): Declare.
5049 (regcache_cooked_read_part): Declare.
5050 (regcache_cooked_write_part): Declare.
5052 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5054 * remote.c (remote_open_1): Add async_p.
5055 (remote_async_open_1): Delete.
5056 (open_remote_target): Delete.
5057 (remote_open, extended_remote_open): Update calls to remote_open_1.
5058 (remote_async_open, extended_remote_async_open): Call
5059 remote_open_1 instead of remote_async_open_1.
5061 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5063 * blockframe.c: Fix a few coding standard violations.
5065 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5067 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5069 * config/i386/tm-i386sco5.h: ... here. File removed.
5070 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5072 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5073 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5074 (TM_FILE): Set to tm-i386.h.
5075 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5076 * config/i386/tm-i386v.h: Remove file.
5077 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5078 instead of "i386/tm-i386v.h".
5079 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5080 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5082 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5083 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5086 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5088 * config/i386/nm-i386v.h: Add protection against
5090 (i386_register_u_addr): Remove prototype.
5091 (register_u_addr): New prototype.
5092 (REGISTER_U_ADDR): Redefine accordingly.
5093 * i386v-nat.c: Improve several comments.
5094 (i386_register_u_addr): Change signature and rename to
5095 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5098 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5100 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5101 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5102 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5103 deprecated_extract_return_value.
5104 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5105 rename mips_o32o64_push_arguments.
5106 (mips_gdbarch_init): Update.
5107 (mips_extract_return_value): Delete.
5108 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5109 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5110 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5111 (mips_n32n64_extract_return_value): Clone
5112 mips_extract_return_value.
5113 (mips_store_return_value): Delete.
5114 (mips_o32_store_return_value): Clone mips_store_return_value.
5115 (mips_o64_store_return_value): Clone mips_store_return_value.
5116 (mips_eabi_store_return_value): Clone mips_store_return_value.
5117 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5119 2002-08-18 Aidan Skinner <aidan@velvet.net>
5121 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5122 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5124 2002-08-18 Aidan Skinner <aidan@velvet.net>
5126 * ada-lang.c: Run through gdb_indent.sh.
5127 * ada-lang.h: Run through gdb_indent.sh.
5128 * ada-tasks.c: Run through gdb_indent.sh.
5129 * ada-typeprint.c: Run through gdb_indent.sh.
5130 * ada-valprint.c: Run through gdb_indent.sh.
5132 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5134 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5137 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5139 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5141 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5142 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5144 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5145 write_register_gen instead of write_register_bytes.
5147 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5148 i[3456]-*-osf1mk* configurations have been made obsolete.
5149 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5150 i[3456]86-*-osf1mk* hosts obsolete.
5151 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5153 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5154 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5155 config/i386/i386m3.mt, config/i386/nm-m3.h,
5156 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5157 config/i386/i386mk.mh, config/i386/i386mk.mt,
5158 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5160 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5161 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5162 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5164 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5166 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5167 (hppa_value_returned_from_stack): Declare.
5168 (hppa_extract_return_value): Declare.
5169 * config/pa/hppa.mt: New file.
5170 * configure.tgt: Recognize hppa*-*-*.
5171 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5173 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5175 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5178 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5180 * top.c (gdb_rl_operate_and_get_next): Make sure
5181 operate-and-get-next functions correctly even when the history
5182 list is completely filled.
5184 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5186 * MAINTAINERS (Target Instruction Set Architectures): Rename
5187 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5188 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5189 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5190 already listed under Host/Native.
5192 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5193 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5196 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5198 * config/ia64/ia64.mt: New file.
5199 * config/alpha/alpha.mt: New file.
5200 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5201 ia64-linux-gnu. Mention that ia64-elf is broken.
5202 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5204 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5206 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5207 generic_func_frame_valid instead of func_frame_valid.
5209 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5211 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5212 procfs appears to be broken when debugging on multi-processor
5213 machines. So enable software single stepping in order to avoid
5214 using the procfs interface to do next/step operations, using
5215 internal breakpoints instead.
5217 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5218 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5219 make this pc address equal to the value it would have if the
5220 system stepping capability was used. Also set a new flag used
5221 to ensure that we don't readjust the PC one more time later.
5223 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5224 address by DECR_PC_AFTER_BREAK when software single step is
5225 in use for this architecture, as this has already been taken
5226 care of in handle_inferior_event().
5228 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5230 * infrun.c (handle_inferior_event): Minor reformatting, to make
5231 a rather long condition expression easier to read.
5233 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5235 * Makefile.in (gdbtk.o): Move to end of file.
5236 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5237 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5238 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5239 (gdbtk-wrapper.o, gdbres.o): Ditto.
5241 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5243 * Makefile.in (copying.o): Separate out compile rule.
5244 (hpux-thread.o, procfs.o, signals.o): Ditto.
5245 (v850ice.o, z8k-tdep.o): Ditto.
5246 (tui-file.o): Move to TUI section.
5247 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5248 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5250 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5252 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5253 skip_trampoline_code, for better namespace-proofing.
5255 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5257 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5259 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5261 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5263 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5264 signal, check whether we hit a breakpoint before checking for a
5265 single step breakpoint. Otherwise, GDB fails to notice that a
5266 breakpoint has been hit when stepping onto a breakpoint.
5268 2002-08-16 Keith Seitz <keiths@redhat.com>
5270 * gdb-events.sh (clear_gdb_event_hooks): New function.
5271 * gdb-events.c: Regenerate.
5272 * gdb-events.h: Regenerate.
5274 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5276 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5277 not_a_sw_breakpoint.
5278 * breakpoint.h (bpstat_stop_status): Add parameter names.
5280 2002-08-16 Grace Sainsbury <graces@redhat.com>
5282 * remote.c (remote_insert_hw_breakpoint)
5283 (remote_remove_hw_breakpoint): Fix calculation of length field
5286 2002-08-15 Michael Snyder <msnyder@redhat.com>
5288 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5289 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5290 (supply_fpregset): Ditto.
5292 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5293 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5294 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5295 (TARGET_READ_SP): Delete.
5296 (DO_REGISTERS_INFO): Delete.
5297 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5299 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5300 from macros to functions.
5302 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5303 (mips_register_convertible, mips_register_convert_to_virtual,
5304 mips_register_convert_to_raw): Make static.
5305 (mips_read_sp): New function.
5306 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5307 (mips_do_registers_info): Make static.
5308 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5309 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5310 (mips_register_convert_from_type, mips_register_convert_to_type):
5312 (mips_gdbarch_init): Set up function_start_offset,
5313 register_virtual_size, pc_in_sigtramp.
5315 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5317 * infcmd.c (vector_info): New function.
5318 (_initialize_infcmd): Add command "info vector".
5319 (print_vector_info): New function.
5321 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5322 * gdbarch.h, gdbarch.c: Regenerate.
5324 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5326 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5327 ``print_all''. Only print vector registers when ``print_all''.
5329 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5331 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5332 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5334 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5335 Add `args' parameter.
5336 * gdbarch.h, gdbarch.c: Regenerate.
5338 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5340 * infcmd.c (float_info): Call print_float_info.
5341 (print_float_info): New function. By default, print the
5342 floating-point registers.
5344 * arch-utils.h (default_print_float_info): Delete declaration.
5345 * arch-utils.c (default_print_float_info): Delete function.
5347 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5349 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5352 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5355 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5356 * configure.host: Make i[3456]86-*-aix host obsolete.
5357 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5358 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5359 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5360 config/i386/xm-i386aix.h: Make files obsolete.
5361 * i386aix-nat.c: Make file obsolete.
5362 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5363 (i386aix-nat.o): Make target obsolete.
5365 * config/i386/nm-gnu.h: Removed.
5366 * config/i386/nm-i386gnu.h: New file.
5367 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5368 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5370 * config/i386/tm-i386gnu.h: ... here. Removed.
5371 * config/i386/xm-i386gnu.h: Removed.
5372 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5373 (NAT_FILE): Set to nm-i386gnu.h.
5374 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5375 * i386-tdep.c: New file.
5376 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5377 (i386gnu-tdep.o): Specify dependencies.
5379 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5381 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5382 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5383 Adjust a few comments to reflect reality a bit closer.
5384 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5385 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5386 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5387 target_insert_watchpoint, target_remove_watchpoint):
5389 * config/i386/nm-i386sco5.h: ... here.
5390 (kernel_u_size): Add prototype. Improve a few comments and add
5391 protection against multiple inclusion.
5393 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5396 * uw-thread.c (SP_ARG0): Define if not already defined.
5397 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5399 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5401 * config/i386/tm-i386.h: Don't include "regcache.h".
5403 * i387-tdep.h (i387_print_float_info): New prototype.
5404 * i387-tdep.c (print_i387_value, print_i387_ext,
5405 print_i387_status_word, print_i387_control_word): Add `struct
5406 ui_file *' argument and use it for output.
5407 (i387_print_float_info): Renamed from i387_float_info. Add
5408 `struct gdbarch *' and `struct ui_file *' arguments and use the
5410 * i386-tdep.c: Include "i387-tdep.h".
5411 (i386_gdbarch_init): Set print_float_info.
5412 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5413 (FLOAT_INFO): Remove define.
5415 2002-08-13 Michael Snyder <msnyder@redhat.com>
5417 * mips-tdep.c (mips_push_arguments): Rename to
5418 mips_eabi_push_arguments, and tune for EABI.
5419 (MIPS_REGS_HAVE_HOME_P): Delete.
5420 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5421 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5422 Delete references to mips_regs_have_home_p.
5424 2002-08-14 Keith Seitz <keiths@redhat.com>
5426 * Makefile.in (install-gdbtk): Create insight plugin directory.
5427 Install plugins.tcl file.
5429 2002-08-14 Keith Seitz <keiths@redhat.com>
5431 * configure.in: Move SUBDIRS to near top of the file so that
5432 --enable options may add things to it.
5433 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5434 * configure: Regenerate.
5436 2002-08-13 Michael Snyder <msnyder@redhat.com>
5438 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5439 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5440 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5442 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5444 * vax-tdep.c (vax_get_saved_register): Delete function.
5445 (vax_gdbarch_init): Update.
5446 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5447 (ns32k_gdbarch_init): Update.
5448 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5449 (alpha_gdbarch_init): Update.
5451 2002-08-13 Andrew Cagney <cagney@redhat.com>
5453 * regcache.c (init_regcache_descr): Overallocate the
5454 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5455 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5457 (set_register_cached): Add range checking assertions. Use
5460 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5462 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5463 numbers for MMX registers.
5465 2002-08-13 Andrew Cagney <cagney@redhat.com>
5467 * i386-tdep.c (i386_gdbarch_init): Use
5468 generic_unwind_get_saved_register.
5470 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5472 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5473 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5475 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5476 Delete. Add comment regarding this now-deleted target method.
5478 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5480 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5481 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5482 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5483 real PC and the page number (if it's within the memory bank window).
5484 (m68hc11_pseudo_register_write): Likewise when saving.
5485 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5486 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5487 (m68hc11_register_raw_size): And use 32-bit for it.
5488 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5489 16K memory bank is used by the prog; also use the virtual pc.
5491 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5493 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5494 (m68hc11_gdbarch_init): Install it in gdbarch.
5495 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5496 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5497 (MSYMBOL_SIZE): New for documentation.
5498 (insn_return_kind): Enum to specify how a function returns.
5499 (frame_extra_info): Cleanup and record the return mode.
5500 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5501 register in address computation.
5502 (m68hc11_get_return_insn): New to obtain the return instruction used
5504 (m68hc11_frame_init_saved_regs): Take into account the return
5505 instruction used by the function for far and interrupt functions.
5506 (m68hc11_init_extra_frame_info): Take into account page register.
5507 (m68hc11_frame_args_address): Adjust according to the return mode.
5508 (show_regs): Print page register only when it's used.
5510 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5512 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5513 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5514 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5516 (m68hc11_register_raw_size): Likewise.
5518 2002-08-13 Andrew Cagney <cagney@redhat.com>
5520 * i386-tdep.c (i386_register_name): Handle mmx registers.
5521 (mmx_regnum_p): New function.
5522 (i386_mmx_names): New array.
5523 (mmx_num_regs): New variable.
5524 (i386_pseudo_register_read): New function.
5525 (i386_pseudo_register_write): New function.
5526 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5528 * regcache.c (regcache_raw_read_unsigned): New function.
5529 (regcache_raw_read_signed): New function.
5530 * regcache.h (regcache_raw_read_unsigned): Declare.
5531 (regcache_raw_read_signed): Declare.
5533 2002-08-13 Andrew Cagney <cagney@redhat.com>
5535 * regcache.c (regcache_raw_read_as_address): Delete function.
5536 (regcache_cooked_read_signed): New function.
5537 (regcache_cooked_read_unsigned): New function.
5538 * regcache.h (regcache_cooked_read_signed): Declare.
5539 (regcache_cooked_read_unsigned): Declare.
5540 (regcache_raw_read_as_address): Delete declaration.
5542 * blockframe.c (generic_read_register_dummy): Use
5543 regcache_cooked_read_unsigned.
5544 * i386-tdep.c (i386_extract_struct_value_address): Use
5545 regcache_cooked_read_unsigned.
5547 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5550 double sizes according to ELF ABI flags.
5551 (gdbarch_tdep): Record elf_flags.
5553 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5555 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5556 (m6812_prolog): They can appear in 68HC12 function prologue.
5557 (m68hc11_frame_chain): Cleanup.
5559 2002-08-12 Andrew Cagney <cagney@redhat.com>
5561 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5563 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5564 (i386_linux_register_raw_size): Delete function.
5565 (i386_linux_init_abi): Update.
5566 * i386-tdep.c (i386_register_raw_size): Delete function.
5567 (i386_register_byte): Delete function.
5568 (i386_gdbarch_init): Update.
5569 (i386_register_size): Delete array.
5570 (i386_register_offset): Delete array.
5572 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5573 (REGISTER_RAW_SIZE): Delete macro.
5574 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5575 (REGISTER_BYTE): Delete macro.
5577 2002-08-11 Aidan Skinner <aidan@velvet.net>
5579 * ada-lang.c (ada_lookup_partial_symbol)
5580 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5581 prototype names so that grep ^func works properly.
5583 * ada-lang.c (ada_array_element_type)
5584 (ada_lookup_partial_symbol): Fix typos in parameter list.
5586 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5587 Fix prototype names so that grep ^func works properly.
5589 2002-08-10 Andrew Cagney <cagney@redhat.com>
5590 Elena Zannoni <ezannoni@redhat.com>
5591 Martin M. Hunt <hunt@redhat.com>
5593 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5594 (build_builtin_type_vec128i): Set the vector bit.
5595 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5596 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5597 (build_builtin_type_vec64): New function.
5598 (build_builtin_type_vec64i): New function.
5599 (build_gdbtypes): Initialize builtin_type_vec64 and
5600 builtin_type_vec64i.
5602 2002-08-09 Andrew Cagney <cagney@redhat.com>
5604 * regcache.c (regcache_dump): Compare the register offset
5606 * arch-utils.c (generic_register_byte): New function.
5607 * arch-utils.h (generic_register_byte): Declare.
5608 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5609 * gdbarch.h, gdbarch.c: Regenerate.
5611 2002-08-09 Andrew Cagney <cagney@redhat.com>
5613 * regcache.c: Include "gdbcmd.h"
5614 (_initialize_regcache): Add commands "maintenance print
5615 registers", "maintenance print raw-registers" and "maintenance
5616 print cooked-registers".
5617 (enum regcache_dump_what): Define.
5618 (dump_endian_bytes): New function.
5619 (regcache_dump): New function.
5620 (regcache_print): New function.
5621 (maintenance_print_registers): New function.
5622 (maintenance_print_raw_registers): New function.
5623 (maintenance_print_cooked_registers): New function.
5624 * Makefile.in (regcache.o): Update dependencies.
5626 2002-08-09 Michael Snyder <msnyder@redhat.com>
5628 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5629 (mips_push_arguments): Correct some comments. Use paddr_nz
5630 for printing addresses in debug output. Replace static
5631 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5632 (mips_n32n64_push_arguments): New function, cloned from
5633 mips_push_arguments and tuned for the n32/n64 ABI.
5634 (mips_push_register): Buffer needs dynamic allocation.
5635 (mips_print_register): Ditto.
5636 (do_gp_register_row): Ditto.
5637 (mips_store_return_value): Ditto.
5638 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5640 2002-08-09 Don Howard <dhoward@redhat.com>
5642 * memattr.c (mem_info_command): Print special case of upper bound
5643 as max CORE_ADDR + 1.
5645 2002-08-08 Michael Snyder <msnyder@redhat.com>
5647 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5648 returns structs by ref if they're too big to fit in two registers.
5650 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5652 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5654 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5655 mips_find_saved_regs().
5656 (mips_pop_frame): Likewise.
5658 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5660 * blockframe.c (frame_saved_regs_register_unwind): Revise
5661 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5664 2002-08-09 Grace Sainsbury <graces@redhat.com>
5666 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5667 T-packets; the 'a' is not taken as a register number.
5668 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5669 (remote_stopped_data_address): New functions; add to target
5671 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5672 prototypes to match other implementations of this
5673 function. replace integer argument with pointer -- the length
5674 field in the Z-packet is the length of what is pointed to or 1 if
5675 pointer is null. Add to target vector.
5676 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5680 * remote.c (remote_wait): Add support to extract optional
5681 watchpoint information from T-packet. Ignore unrecognized
5682 optional info in T-packet.
5683 (remote_async_wait): Ditto.
5685 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5687 * cli/cli-dump.c: Change fopen modes to use binary open modes
5688 as defined in include/fopen-bin.h throughout.
5690 2002-08-08 Michael Snyder <msnyder@redhat.com>
5692 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5694 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5696 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5697 assertion failure by returning early after a warning.
5699 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5701 * mips-tdep.c (mips_find_saved_regs): Make static.
5702 (mips_frame_init_saved_regs): New function.
5703 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5704 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5705 (mips_find_saved_regs): Delete declaration.
5707 2002-08-08 Grace Sainsbury <graces@redhat.com>
5709 * remote.c (remote_wait, remote_async_wait): Change
5710 thread_num from int to ULONGEST.
5711 (unpack_varlen_hex): Change result parameter from
5712 int * to ULONGEST *.
5714 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5716 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5717 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5719 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5721 2002-08-08 Andrew Cagney <cagney@redhat.com>
5723 * gcore.c (override_derive_stack_segment): Delete variable.
5724 (preempt_derive_stack_segment): Delete function.
5725 (derive_stack_segment): Delete function.
5726 (default_derive_stack_segment): Renamed to derive_stack_segment.
5727 (override_derive_heap_segment): Delete variable.
5728 (preempt_derive_heap_segment): Delete function.
5729 (derive_heap_segment): Delete function.
5730 (default_derive_heap_segment): Rename to derive_heap_segment.
5732 2002-08-06 Michael Snyder <msnyder@redhat.com>
5734 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5735 * mips-tdep.c (mips_EABI_use_struct_convention,
5736 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5737 New functions. (mips_use_struct_convention): Delete.
5738 (mips_gdbarch_init): set use_gdbarch_convention.
5740 2002-08-06 Michael Snyder <msnyder@redhat.com>
5742 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5743 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5744 mips_o32_reg_struct_has_addr): New functions.
5745 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5747 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5749 * regcache.c (pseudo_register): Delete function.
5750 (fetch_register): Delete function.
5751 (store_register): Delete function.
5752 (regcache_raw_read, legacy_read_register_gen): Use
5753 target_fetch_registers instead of fetch_register.
5754 (legacy_write_register_gen, regcache_raw_write): Use
5755 target_store_register instead of store_register.
5756 (write_register_bytes): Ditto.
5758 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5759 (STORE_PSEUDO_REGISTER): Delete.
5760 * gdbarch.h, gdbarch.c: Regenerate.
5762 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5764 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5765 write dump file binary.
5767 2002-08-05 Michael Snyder <msnyder@redhat.com>
5769 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5770 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5771 (mips_gdbarch_init): Set N32 target to be mips64.
5773 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5775 * frame.c (find_saved_register): Break out of loop once saved
5776 register address is found. Don't mention sparc in loop comment
5779 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5781 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5782 mips_default_saved_regsize to 8.
5784 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5786 * gcore.c: Do not include <sys/procfs.h>.
5787 * Makefile.in (gcore.o): Update dependencies.
5789 2002-08-06 Andrew Cagney <cagney@redhat.com>
5791 * configure.tgt: Make arc-*-* obsolete.
5792 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5793 * MAINTAINERS: Make arc-elf obsolete.
5794 * arc-tdep.c: Make file obsolete.
5795 * config/arc/arc.mt: Ditto.
5796 * config/arc/tm-arc.h: Ditto.
5798 2002-08-05 Theodore A. Roth <troth@verinet.com>
5800 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5802 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5804 * mcore-tdep.c (mcore_gdbarch_init): Use
5805 generic_unwind_get_saved_register instead of
5806 generic_get_saved_register.
5807 * v850-tdep.c (v850_gdbarch_init): Ditto.
5808 * frv-tdep.c (frv_gdbarch_init): Ditto.
5809 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5810 * s390-tdep.c (s390_gdbarch_init): Ditto.
5811 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5812 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5813 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5815 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5817 * objfiles.h: Add missing #include "symfile.h"
5819 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5821 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5823 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5824 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5827 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5829 * NEWS: Cleanup and nitpick.
5831 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5833 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5835 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5837 * Makefile.in (gdbtk-bp.o): Update dependencies.
5838 (gdbtk-register.o): Ditto.
5839 (gdbtk-varobj.o): Ditto.
5841 2002-08-03 Andrew Cagney <cagney@redhat.com>
5843 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5844 m68hc11_fetch_pseudo_register.
5845 (m68hc11_pseudo_register_write): Replace
5846 m68hc11_store_pseudo_register.
5847 (m68hc11_gdbarch_init): Update.
5849 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5851 * gdbarch.sh: Include "gdb_string.h".
5852 * gdbarch.c: Regenerate.
5854 * regcache.c: Include "gdb_string.h".
5855 * ax-general.c: Ditto.
5857 * std-regs.c: Ditto.
5858 * fbsd-proc.c: Ditto.
5861 * Makefile.in (regcache.o): Update dependencies.
5862 (thread.o, gdbarch.o): Ditto.
5863 (ax-general.o, gdbarch.o): Ditto.
5864 (varobj.o, std-regs.o): Ditto.
5865 (fbsd-proc.o): Specify dependencies.
5867 2002-08-02 Andrew Cagney <cagney@redhat.com>
5869 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5871 (regcache_cooked_write): Ditto.
5873 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5875 * regcache.c (regcache_cooked_read): New function.
5876 (regcache_cooked_write): New function.
5877 (read_register_gen): Rewrite using regcache_cooked_read.
5878 (write_register_gen): Rewrite using regcache_cooked_write.
5880 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5883 2002-08-02 Andrew Cagney <cagney@redhat.com>
5885 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5886 Replace the architecture methods register_read and register_write.
5887 * gdbarch.h, gdbarch.c: Regenerate.
5888 * regcache.c (init_regcache_descr): Update.
5889 (read_register_gen): Update.
5890 (write_register_gen): Update.
5891 (supply_register): Update comment.
5893 * sh-tdep.c (sh_gdbarch_init): Update.
5894 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5895 `regcache' and `gdbarch' parameters. Make `buffer' a void
5896 pointer. Update code.
5897 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5898 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5899 void pointer. Update code.
5900 (sh64_register_write): Delete.
5901 (sh4_register_read): Delete.
5902 (sh64_register_read): Delete.
5903 (sh4_register_write): Delete.
5904 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5905 void pointer, `to' parameter a void pointer.
5906 (sh_sh64_register_convert_to_raw): Ditto.
5908 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5910 * mips-tdep.c (mips_register_virtual_type): Use architecture
5911 invariant return values.
5913 2002-08-01 Andrew Cagney <cagney@redhat.com>
5915 * linux-proc.c: Include "gdb_string.h".
5916 * Makefile.in (linux-proc.o): Update dependency list.
5918 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5920 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5923 2002-08-01 Grace Sainsbury <graces@redhat.com>
5925 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5926 to_insert_watchpoint, to_remove_watchpoint,
5927 to_stopped_by_watchpoint, to_stopped_data_address,
5928 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5929 target vecctor. Define their corresponding macros so they call
5932 * target.c: Add default and debug versions of for
5933 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5934 to_insert_watchpoint, to_remove_watchpoint,
5935 to_stopped_by_watchpoint, to_stopped_data_address,
5936 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5938 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5940 * mips-tdep.c (mips_register_virtual_type): New function.
5941 (mips_gdbarch_init): Register mips_register_virtual_type()
5942 with gdbarch machinery.
5943 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5944 this file instead of tm-bigmips.h.
5945 (MIPS_REGSIZE): Delete this macro.
5946 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5947 multiarch version in mips-tdep.c will be found.
5949 2002-08-01 Andrew Cagney <cagney@redhat.com>
5951 * NEWS: Menion that CHILL has been made obsolete.
5953 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5954 * stabsread.c (read_range_type): Ditto.
5955 * gdbtypes.h: Ditto.
5956 * language.c (binop_type_check): Ditto.
5957 (binop_result_type): Ditto.
5958 (integral_type): Ditto.
5959 (character_type): Ditto.
5960 (string_type): Ditto.
5961 (boolean_type): Ditto.
5962 (structured_type): Ditto.
5963 (lang_bool_type): Ditto.
5964 (binop_type_check): Ditto.
5965 * language.h (_LANG_chill): Ditto.
5966 * dwarfread.c (set_cu_language): Ditto.
5967 * dwarfread.c (CHILL_PRODUCER): Ditto.
5968 * dwarfread.c (handle_producer): Ditto.
5969 * expression.h (enum exp_opcode): Ditto.
5970 * eval.c: Ditto for comments.
5971 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5972 * expprint.c (print_subexp): Ditto.
5973 (print_subexp): Ditto.
5974 * valops.c (value_cast): Ditto.
5975 (search_struct_field): Ditto.
5976 * value.h (COERCE_VARYING_ARRAY): Ditto.
5977 * symfile.c (init_filename_language_table): Ditto.
5978 (add_psymbol_with_dem_name_to_list): Ditto.
5979 * valarith.c (value_binop): Ditto.
5981 * valops.c (value_slice): Ditto.
5982 * symtab.h (union language_specific): Ditto.
5983 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5984 (SYMBOL_DEMANGLED_NAME): Ditto.
5985 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5986 * defs.h (enum language): Ditto.
5987 * symtab.c (got_symtab): Ditto.
5988 * utils.c (fprintf_symbol_filtered): Ditto.
5990 * ch-typeprint.c: Make file obsolete.
5991 * ch-valprint.c: Make file obsolete.
5992 * ch-lang.h: Make file obsolete.
5993 * ch-exp.c: Make file obsolete.
5994 * ch-lang.c: Make file obsolete.
5996 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5998 (TARGET_FLAGS_TO_PASS): Ditto.
5999 (CHILLFLAGS): Obsolete.
6001 (CHILL_FOR_TARGET): Obsolete.
6002 (CHILL_LIB): Obsolete.
6003 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6005 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6006 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6008 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6011 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6013 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6014 This does not change anything at the moment, but will be helpful
6015 later when full Ada support is integrated.
6017 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6019 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6022 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6024 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6025 and save it in a local variable. Use variable in later test.
6027 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6029 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6030 test. (Thanks to Daniel Jacobowitz.)
6032 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6034 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6035 (mips_abi_strings): Add "n64".
6036 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6038 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6040 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6041 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6043 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6045 * utils.c (host_pointer_to_address, address_to_host_pointer):
6046 Use gdb_assert() instead of explicit call to internal_error().
6048 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6050 * Makefile.in (rs6000-nat.o): Update dependencies.
6052 From Nicholas Duffek:
6053 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6054 (aix-thread.o): New rule.
6055 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6056 * config/powerpc/aix432.mh: New file.
6058 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6060 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6061 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6062 (fetch_core_registers, ppc_linux_supply_gregset)
6063 (ppc_linux_supply_fpregset): New functions.
6064 (ppc_linux_regset_core_fns): New.
6065 (_initialize_ppc_linux_tdep): Call add_core_fns.
6066 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6067 and ppc_linux_supply_gregset.
6068 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6069 (supply_fpregset): Call ppc_linux_supply_fpregset.
6070 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6072 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6074 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6076 * symtab.c (lookup_symbol): Demangle before lowercasing.
6078 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6080 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6082 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6083 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6084 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6085 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6087 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6088 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6089 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6090 (avr-tdep.o, mon960-rom.o): Ditto.
6091 (aout_stabs_gnu_h): Define.
6092 (symtab_h): Remove $(gdb_obstack_h).
6094 2002-07-30 Jim Blandy <jimb@redhat.com>
6096 Patch from David Carlton <carlton@math.stanford.edu>:
6097 * gdbinit.in: Move the `dir' commands that add GDB's own source
6098 directory to the search path to the end, so that the `gdb' source
6099 directory will be searched first.
6101 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6103 * gdb_obstack.h: New file.
6104 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6105 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6106 * objfiles.h: Include "gdb_obstack.h".
6107 * Makefile.in (gdb_obstack_h): Define.
6108 (symtab_h): Add $(gdb_obstack_h).
6109 (objfiles_h): Add $(gdb_obstack_h).
6111 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6112 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6113 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6114 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6115 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6116 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6117 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6118 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6120 * Makefile.in (bcache.o): Update dependencies.
6121 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6122 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6123 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6124 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6125 (stabsread.o, symfile.o, symmisc.o): Ditto.
6126 (symtab.o, typeprint.o, macroexp.o): Ditto.
6127 (macrotab.o, mdebugread.o): Ditto.
6128 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6129 (coff_ecoff_h, aout_aout64_h): Define.
6130 (aout_stabs_gnu_h, libaout_h): Define.
6132 2002-07-29 Andrew Cagney <cagney@redhat.com>
6134 * regcache.c (struct regcache_descr): Rename nr_registers to
6135 nr_cooked_registers. Revise comments describing the structure
6137 (init_regcache_descr): Update.
6138 (init_legacy_regcache_descr): Update.
6139 (read_register_gen, write_register_gen): When a cooked register in
6140 the raw register range, directly access the value from the raw
6143 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6145 * z8k-tdep.c: Do not include "obstack.h".
6146 * h8300-tdep.c, h8500-tdep.c: Ditto.
6147 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6148 * valprint.c, v850-tdep.c: Ditto.
6149 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6150 * mn10200-tdep.c: Ditto.
6152 * Makefile.in (z8k-tdep.o): Update dependencies.
6153 (m68hc11-tdep.o, valprint.o): Ditto.
6154 (v850-tdep.o, d10v-tdep.o): Ditto.
6155 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6156 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6157 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6158 (sh_opc_h, gdb_sim_sh_h): Define.
6159 (elf_sh_h, elf_bfd_h): Define.
6160 (opcode_m68hc11_h): Define.
6161 (OPCODES_SRC, OPCODES_DIR): define.
6162 (OPCODES): Use $(OPCODES_DIR).
6163 (gdb_sim_d10v_h): Rename sim_d10v_h.
6164 (gdb_sim_arm_h): Rename sim_arm_h.
6166 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6168 * utils.c (host_pointer_to_address, address_to_host_pointer):
6169 Change internal_error() message to indicate function responsible
6172 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6174 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6175 calls to local_hex_string_custom().
6177 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6179 * irix5-nat.c: Move IRIX shared library support from here...
6180 * solib-irix.c: ...to here. Revised substantially to work with
6181 generic solib framework.
6183 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6184 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6185 * mips-irix-tdep.c: New file.
6187 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6188 (mips-irix-tdep.o, solib-irix.o): New rules.
6189 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6191 * config/mips/irix6.mt (TDEPFILES): Likewise.
6192 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6194 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6196 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6197 disabled (via ``#if 0'') includes.
6199 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6201 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6202 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6203 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6204 Add support for the fpscr register.
6205 * rs6000-nat.c (regmap, fetch_inferior_registers)
6206 (store_inferior_registers, fetch_core_registers): Likewise.
6208 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6210 * rs6000-nat.c (language.h): Include.
6211 (special_regs): Delete this array.
6212 (regmap): New function.
6213 (fetch_register, store_register): Use regmap() to map gdb
6214 register numbers to ptrace register numbers. Also, use
6215 outputs from regmap() to make decisions regarding type of
6216 ptrace() call to make. In particular, don't compare against
6217 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6218 (fetch_inferior_registers, store_inferior_registers): Where
6219 possible, obtain register numbers from tdep struct. Don't
6220 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6221 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6222 (LAST_UISA_SP_REGNUM): Delete.
6224 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6226 * rs6000-nat.c (ppc-tdep.h): Include.
6227 (fetch_registers, store_register, fetch_core_registers): Don't
6228 access registers[] directly. Instead, use supply_register() or
6229 regcache_collect() as appropriate.
6230 (find_toc_address): Format hex address with local_hex_string().
6232 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6234 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6237 2002-07-24 Tom Tromey <tromey@redhat.com>
6239 * jv-exp.y: Marked all strings with _().
6240 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6242 (MethodInvocation, CastExpression, parse_number, yyerror,
6243 java_type_from_name, push_expression_name, yylex): Typo fixes.
6245 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6247 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6248 (tee_file_flush, tee_file_write, tee_file_fputs)
6249 (tee_file_isatty): New.
6250 * ui-file.h (tee_file_new): Add prototype.
6252 2002-07-24 Aidan Skinner <aidan@velvet.net>
6254 * ada-lang.c: Change k&r style function definitions to prototyped
6256 * ada-typeprint.c: Change k&r style function definitions to prototyped
6258 * ada-valprint.c: Change k&r style function definitions to prototyped
6261 2002-07-24 Andrew Cagney <cagney@redhat.com>
6263 * README: Remove reference to remote-bug.
6264 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6266 (m88k-nat.o): Delete rule.
6267 (m88k-tdep.o): Delete rule.
6268 (remote-bug.o): Delete rule.
6269 * MAINTAINERS: Mark as obsolete.
6270 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6271 * m88k-tdep.c: Make file obsolete.
6272 * config/m88k/m88k.mh: Ditto.
6273 * config/m88k/delta88v4.mh: Ditto.
6274 * config/m88k/delta88v4.mt: Ditto.
6275 * config/m88k/delta88.mt: Ditto.
6276 * config/m88k/delta88.mh: Ditto.
6277 * remote-bug.c: Ditto.
6278 * config/m88k/tm-delta88.h: Ditto.
6279 * config/m88k/nm-delta88v4.h: Ditto.
6280 * config/m88k/xm-delta88.h: Ditto.
6281 * config/m88k/xm-dgux.h: Ditto.
6282 * config/m88k/tm-m88k.h: Ditto.
6283 * config/m88k/nm-m88k.h: Ditto.
6284 * config/m88k/tm-delta88v4.h: Ditto.
6285 * m88k-nat.c: Ditto.
6286 * cxux-nat.c: Ditto.
6287 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6288 and m88*-*-* obsolete.
6289 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6292 2002-07-24 Andrew Cagney <cagney@redhat.com>
6294 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6295 constant. Same for local pointer variables.
6296 (extract_signed_integer): Ditto.
6297 * defs.h (extract_unsigned_integer): Update.
6298 (extract_signed_integer): Update.
6300 2002-07-24 Andrew Cagney <cagney@redhat.com>
6302 * regcache.c (regcache_raw_write): Change buf parameter to a
6303 constant void pointer.
6304 (regcache_raw_read): Change buf parameter to a void pointer.
6305 (legacy_write_register_gen): Change myaddr parameter a constant
6307 (supply_register): Change val parameter to a const void pointer.
6308 * regcache.h (regcache_raw_write): Update declaration.
6309 (regcache_raw_read): Update declaration.
6310 (supply_register): Update declaration.
6312 2002-07-24 Tom Tromey <tromey@redhat.com>
6314 * defs.h (gdb_readline_wrapper): Declare.
6315 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6316 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6317 * top.c (gdb_readline_wrapper): New function.
6318 (command_line_input): Use it.
6320 2002-07-24 Andrew Cagney <cagney@redhat.com>
6322 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6323 regcache_read and regcache_write.
6324 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6325 * regcache.c: Update.
6326 * sh-tdep.c (sh64_push_arguments): Update comment.
6327 (sh_pseudo_register_read): Update.
6328 (sh_pseudo_register_write): Update.
6329 (sh4_register_read): Update.
6330 (sh4_register_write): Update.
6331 (sh64_pseudo_register_read): Update.
6332 (sh64_pseudo_register_write): Update.
6333 (sh64_register_read): Update.
6334 (sh64_register_write): Update.
6335 * i386-tdep.c (i386_extract_return_value): Update.
6336 (i386_extract_struct_value_address): Update.
6337 (i386_extract_return_value): Update.
6338 * blockframe.c (generic_read_register_dummy): Update.
6339 (generic_call_dummy_register_unwind): Update
6340 * infrun.c (write_inferior_status_register): Update.
6342 2002-07-23 Jim Blandy <jimb@redhat.com>
6344 * parser-defs.h (expression_context_pc): Make this extern.
6345 (Thanks to Michael Snyder.)
6347 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6349 GDB 5.2.1 released from 5.2 branch.
6350 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6351 * README: Update to mention 5.2.1.
6353 2002-07-23 Mark Salter <msalter@redhat.com>
6355 * remote.c (remote_read_bytes): Fix check for error.
6357 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6359 * aix-thread.c (language.h): Include.
6360 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6361 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6362 Print newlines at end of debug messages.
6363 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6364 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6366 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6368 * aix-thread.c (ppc-tdep.h): Include.
6369 (special_register_p): New function.
6370 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6371 (store_regs_user_thread): Use register number information from
6372 gdbarch_tdep struct instead of hardcoded offsets relative to
6373 FIRST_UISA_SP_REGNUM.
6374 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6375 special_register_p() instead of using FPLAST_REGNUM and
6376 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6377 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6378 will be MQ's register number.
6380 2002-07-22 Michael Snyder <msnyder@redhat.com>
6382 * aix-thread.c (ops): Rename to aix_thread_ops.
6383 (base_ops): Rename to base_target.
6384 (ops_attach): Rename to aix_thread_attach.
6385 (ops_detach): Rename to aix_thread_detach.
6386 (ops_resume): Rename to aix_thread_detach.
6387 (ops_wait): Rename to aix_thread_wait.
6388 (ops_kill): Rename to aix_thread_kill.
6389 (init_ops): Rename to init_aix_thread_ops.
6390 (ops_fetch_register): Rename to aix_thread_fetch_register.
6391 (ops_store_register): Rename to aix_thread_store_register.
6392 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6393 (ops_thread_alive): Rename to aix_thread_thread_alive.
6394 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6395 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6396 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6397 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6398 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6399 (store_regs_lib): Rename to store_regs_user_thread.
6400 (store_regs_kern): Rename to store_regs_kernel_thread.
6402 2002-07-22 Michael Snyder <msnyder@redhat.com>
6404 * aix-thread.c (ops_prepare_to_store): Eliminate.
6405 (init_ops): Don't initialize ops.prepare_to_store.
6406 (store_regs_kern): Pre-fetch register buffers from child,
6407 because some registers may not be in the cache. Copy
6408 regs from register cache only if they are cached.
6409 (store_regs_lib): Copy regs from register cache only
6411 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6412 fill_gprs64): Ditto.
6414 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6416 * aix-thread.c (gdb_assert.h): Include.
6417 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6418 register sizes (from register cache) match size of buffer holding
6420 (fill_sprs32): Change parameter types to match those in the ptrace()
6422 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6423 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6425 2002-07-22 Michael Snyder <msnyder@redhat.com>
6427 * aix-thread.c (supply_sprs64): Cosmetic change.
6428 (supply_sprs32): Cosmetic change.
6429 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6430 (fill_sprs64): Use regcache_collect instead of read_register.
6431 (store_regs_lib): Use regcache_collect instead of
6432 read_register. Use fill_sprs32 instead of fill_sprs64,
6433 if debugging a 32-bit architecture.
6434 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6435 out of the register cache, instead of passing a pointer into
6436 the register cache directly to ptrace. Use regcache_collect
6437 insteaad of read_register.
6438 (ops_prepare_to_store): Use target_read_registers instead
6439 of read_register_bytes.
6441 2002-07-20 Aidan Skinner <aidan@velvet.net>
6443 * MAINTAINERS: Add self under write after approval.
6445 2002-07-20 Aidan Skinner <aidan@velvet.net>
6447 * ada-tasks.c: Change k&r style function definitions to prototyped
6450 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6452 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6453 * x86-64-tdep.c: Include "objfiles.h".
6454 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6455 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6457 2002-07-17 Michal Ludvig <michal@suse.cz>
6459 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6460 (update_context): Initialise cfa variable.
6462 2002-07-17 Michael Snyder <msnyder@redhat.com>
6464 * aix-thread.c: Shorten some long lines.
6465 Bring comments into line with code spec.
6467 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6469 * infrun.c: Re-indent using gdb_indent.sh.
6471 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6473 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6474 Leave the indentation temporarily untouched, to minimize the diffs.
6476 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6478 * stabsread.c: Make os9k sections of the code obsolete,
6480 * stabsread.h: Make os9k sections of the code obsolete.
6482 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6484 * linux-low.c (regsets_store_inferior_registers): Add free()
6485 at the end of a loop to prevent memory leak.
6486 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6487 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6488 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6490 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6492 2002-07-17 Jim Blandy <jimb@redhat.com>
6494 * macrocmd.c (info_macro_command): Remove newline from error
6497 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6499 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6500 (sh_gdbarch_init): Use it for sh-dsp.
6502 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6504 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6505 64-bit DWARF2 format.
6507 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6509 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6510 <sys/proc.h> when not available.
6512 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6514 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6515 * stabsread.c: Make os9k sections of the code obsolete.
6516 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6517 * config/i386/i386os9k.mt: Make file obsolete.
6518 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6519 (COMMON_OBS): Remove os9kread.o
6520 (SFILES): Remove os9kread.c.
6521 (os9kread.o, remote-os9k.o): Make target obsolete.
6522 * remote-os9k.c: Make file obsolete.
6523 * os9kread.c: Make file obsolete.
6526 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6528 * NEWS: Mention that the FR30 has been made obsolete.
6529 * fr30-tdep.c: Make file obsolete.
6530 * config/fr30/tm-fr30.h: Ditto.
6531 * config/fr30/fr30.mt: Ditto.
6532 * configure.tgt: Make fr30-*-elf obsolete.
6533 * MAINTAINERS: Make fr30-elf obsolete.
6535 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6537 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6538 found is not inside a section.
6540 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6542 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6544 (pdc_realloc): Use xrealloc() instead of realloc().
6546 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6548 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6549 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6550 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6553 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6555 * aix-thread.c (ptrace_check): Eliminate goto.
6556 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6559 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6561 * aix-thread.c (gdbcmd.h): Include.
6562 (DEBUG, DBG, DBG2, dbg): Eliminate.
6563 (debug_aix_thread): New static global.
6564 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6565 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6566 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6567 invocations to DBG and DBG2 macros to test against
6568 ``debug_aix_thread'' and call fprintf_unfiltered().
6569 (_initialize_aix_thread): Add new command "set debug aix-thread".
6571 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6573 From Gerhard Tonn <TON@de.ibm.com>:
6574 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6575 instead of supply_register.
6577 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6579 * dwarf2cfi.c: Include "gdb_assert.h".
6580 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6582 (update_context): Do not use __func__. Add missing ``break''.
6583 (update_context): Do not use __func__.
6585 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6587 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6588 and its setting. Set gdbarch instruction printing functions
6589 directly. For non-rs6000 case use new function
6590 gdb_print_insn_powerpc.
6591 (gdb_print_insn_powerpc): New function.
6593 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6595 * NEWS: Mention that the d30v has been marked obsolete.
6596 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6597 * configure.tgt: Mark d30v-*-* as obsolete.
6598 * d30v-tdep.c: Mark file as obsolete.
6599 * config/d30v/d30v.mt: Ditto.
6600 * config/d30v/tm-d30v.h: Ditto.
6602 2002-07-13 Aidan Skinner <aidan@velvet.net>
6604 * ada-tasks.c (add_task_entry): replace calls to
6605 malloc() with xmalloc
6606 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6608 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6609 ada_finish_decode_line_1, all_sals_for_line
6610 ada_breakpoint_rewrite): replace calls to free() with xfree()
6612 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6614 From Nicholas Duffek (with minor changes by Martin Hunt,
6615 Louis Hamilton, and Kevin Buettner):
6616 * aix-thread.c: New file.
6618 2002-07-12 Petr Sorfa <petrs@caldera.com>
6620 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6621 complaint for invalid attribute class or form.
6622 (read_func_scope): DW_AT_frame_base
6623 better handling of DW_AT_block*.
6624 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6625 better handling of DW_AT_block*.
6626 (read_common_block): DW_AT_location
6627 better handling of DW_AT_block*.
6628 (read_partial_die): DW_AT_location better handling
6630 (new_symbol): DW_AT_external better handling of
6631 DW_AT_block*. Proper initialization of variable
6633 (attr_form_is_block): New function that returns true
6634 if the attribute's form is of DW_FORM_block*.
6636 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6638 * valops.c (find_method_list): Remove comment about
6639 removed STATIC_MEMFUNCP argument.
6640 (value_find_oload_method_list): Likewise.
6642 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6644 From Nicholas Duffek:
6645 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6646 target_new_objfile_hook.
6648 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6650 From Nicholas Duffek:
6651 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6654 2002-07-12 Andrew Cagney <cagney@redhat.com>
6656 * MAINTAINERS: Mention --enable-sim-build-warnings.
6657 (m68hc11-elf): Disable sim build warnings.
6658 (m32r-elf): Mark as broken obsolete candidate.
6659 (x86_64-linux-gnu): Mark as buildable with -Werror.
6660 (arm-elf): Change -w to ``,'' which enables warnings but not
6663 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6665 * bcache.h: Update copyright.
6666 (struct bstring, struct bcache): Move definition to "bcache.c".
6667 Replaced by opaque declaration.
6668 (bcache_xfree): Replace free_bcache.
6669 (bcache_xmalloc, bcache_memory_used): Declare.
6671 * bcache.c: Update copyright.
6672 (struct bstring, struct bcache): Moved to here from "bcache.h".
6674 (bcache_xmalloc, bcache_memory_used): New functions.
6675 (bcache_xfree): Replace function free_bcache.
6677 * Makefile.in (objfiles.o): Add $(bcache_h).
6678 (objfiles_h): Remove $(bcache_h).
6679 (symfile.o): Add $(bcache_h).
6681 * symmisc.c: Update copyright.
6682 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6683 (print_objfile_statistics): Use bcache_memory_used.
6685 * symfile.c: Include "bcache.h".
6686 (reread_symbols): Use bcache_xfree.
6687 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6688 (add_psymbol_to_list): Pass psymbol_cache by value.
6689 (add_psymbol_with_dem_name_to_list): Ditto.
6691 * objfiles.h: Update copyright.
6692 (struct bcache): Declare opaque. Do not include "bcache.h".
6693 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6695 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6697 * objfiles.c: Include "bcache.h". Update copyright.
6698 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6700 (free_objfile): Use bcache_xfree.
6702 2002-07-11 Grace Sainsbury <graces@redhat.com>
6704 * monitor.c (monitor_fetch_register): Make name a constant.
6705 (monitor_store_register): Same.
6707 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6709 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6710 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6711 (finish_block) For non-function blocks, hash the symbol table. For
6712 function blocks, mark the symbol table as unhashed.
6713 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6714 (msymbol_hash_iw): Likewise.
6715 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6717 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6718 (lookup_minimal_symbol): Likewise for both.
6719 * symtab.h (struct block): Add `hashtable' flag. Comment the
6721 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6722 (ALL_BLOCK_SYMBOLS): Update.
6723 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6724 (struct symbol): Add `hash_next' pointer.
6725 * symtab.c (lookup_block_symbol): Search using the hash table when
6727 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6728 (search_symbols, find_addr_symbol): Likewise.
6730 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6731 (read_dst_symtab): Likewise.
6732 * jv-lang.c (get_java_class_symtab): Likewise.
6733 * mdebugread.c: Include "gdb_assert.h".
6734 (shrink_block): Assert that the block being modified is not hashed.
6735 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6736 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6738 (dump_symtab): Recognize hashed blocks.
6739 * printcmd.c (print_frame_args): Assert that function blocks do not
6740 have hashed symbol tables.
6741 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6742 (fill_in_ada_prototype, debug_print_block): Likewise.
6743 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6745 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6747 * stack.c (print_frame): Use result of frame_address_in_block()
6748 instead of fi->pc when evaluating symbols.
6749 (backtrace_command_1): Ditto.
6751 2002-07-11 Andrew Cagney <cagney@redhat.com>
6753 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6756 * arm-tdep.c (arm_register_name): Make return type constant.
6758 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6760 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6762 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6763 * s390-tdep.c (s390_fp_regnum): Ditto.
6764 (s390_read_fp): Ditto.
6765 (s390_pop_frame): Ditto.
6766 (_initialize_s390_tdep): Ditto.
6767 * remote.c (get_remote_state): Ditto.
6768 * procfs.c (mappingflags): Ditto.
6769 * memattr.c (_initialize_mem): Ditto.
6770 * mcore-tdep.c (mcore_pop_frame): Ditto.
6771 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6772 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6773 * language.c (set_case_str): Ditto.
6774 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6775 * frv-tdep.c (new_variant): Ditto.
6776 (frv_stopped_data_address): Ditto.
6777 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6778 (context_alloc): Ditto.
6779 (frame_state_alloc): Ditto.
6780 (unwind_tmp_obstack_init): Ditto.
6781 (unwind_tmp_obstack_free): Ditto.
6782 (cfi_read_fp): Ditto.
6783 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6784 (cris_pop_frame): Ditto.
6785 * c-lang.c (scanning_macro_expansion): Ditto.
6786 (finished_macro_expansion): Ditto.
6787 (c_preprocess_and_parse): Ditto.
6788 * gdbarch.sh: Ditto.
6789 * gdbarch.h, gdbarch.c: Regenerate.
6790 * config/mn10200/tm-mn10200.h: Adjust indentation.
6791 * target.c: Adjust indentation.
6792 * symtab.h: Adjust indentation.
6793 * stabsread.h: Adjust indentation.
6794 * remote-es.c: Adjust indentation.
6795 * os9kread.c: Adjust indentation.
6797 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6799 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6800 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6802 2002-07-10 Grace Sainsbury <graces@redhat.com>
6804 * NEWS: Mention m68k, mcore multi-arching.
6805 * MAINTAINERS: Change status of m68k, mcore to reflect
6808 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6810 * valops.c (find_overload_match): Free oload_syms.
6812 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6814 Define HAVE_SYS_PROC_H if sys/proc.h exists
6815 * configure.in: Add check for sys/proc.h
6816 * config.in: Regenerate.
6817 * configure: Regenerate.
6819 2002-07-09 Grace Sainsbury <graces@redhat.com>
6821 * config/m68k/tm-m68k.h: Remove macros wrapped in
6822 #if !GDB_MULTI_ARCH.
6824 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6826 * config.in, configure: Regenerate.
6828 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6830 * dwarf2cfi.c: Include "gcore.h".
6831 (execute_stack_op): Fix implementation of the
6832 DW_OP_deref and DW_OP_deref_size operators by letting do their
6833 lookup in the target.
6835 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6837 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6838 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6841 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6843 Fix PR gdb/595, gdb/602
6844 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6845 Don't call value_cast, just read the vtable pointer; update comments
6848 2002-07-05 Grace Sainsbury <graces@redhat.com>
6850 * config/mcore/tm-mcore.h: Remove file.
6851 * config/mcore/mcore.mt: Remove definition of TM_FILE
6852 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6854 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6856 * i386bsd-tdep.c: Include "gdb_string.h".
6858 2002-07-04 Grace Sainsbury <graces@redhat.com>
6860 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6861 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6863 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6864 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6865 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6866 (RETVAL_REGNUM): Move macros from tm-mcore.h
6867 (mcore_reg_struct_has_addr): New function.
6868 (mcore_gdbarch_init): Added initializations for the macros removed
6871 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6873 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6874 traditonal string branding within the ELF header.
6876 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6878 * symtab.c (remove_params): New function.
6879 (make_symbol_overload_list): Use it instead of cplus_demangle.
6880 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6882 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6884 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6886 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6888 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6889 and tdep->sigtramp_end.
6890 * i386obsd-nat.c: New file.
6891 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6893 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6894 Don't call get_current_frame().
6896 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6898 * i386-nat.c (child_post_startup_inferior): New function
6899 calling i386_cleanup_dregs if
6900 I386_USE_GENERIC_WATCHPOINTS is defined.
6901 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6902 conditional to acknowledge that i386-nat.c has its
6903 own child_post_startup_inferior function.
6905 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6907 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6908 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6909 instead of MAX_REGISTER_RAW_SIZE.
6910 (i386_extract_return_value, i386_extract_struct_value_address):
6911 Convert to use regcache.
6912 (i386_gdbarch_init): Set max_register_raw_size and
6913 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6914 Set extract_return_value and extract_struct_value_address instead
6915 of their deprecated variants.
6917 Convert i386 target to generic dummy frames.
6918 * i386-tdep.c: Include "symfile.h".
6919 (i386_frameless_signal_p): Consider a function to be frameless if
6920 the pc points at the first instruction of the function.
6921 (i386_frame_chain): Handle (generic) call dummies.
6922 (i386_frame_saved_pc): Likewise.
6923 (i386_frame_init_saved_regs): Remove code dealing with call
6924 dummies on the stack.
6925 (i386_push_dummy_frame): Removed.
6926 (i386_call_dummy_words): Removed.
6927 (i386_fix_call_dummy): Removed.
6928 (i386_push_return_address): New function.
6929 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6930 parameter, and don't call get_current_frame.
6931 (i386_pop_frame): New function.
6932 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6933 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6934 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6935 call_dummy_length to 0, set call_dummy_words to NULL, set
6936 sizeof_call_dummy_words to 0, set fix_call_dummy to
6937 generic_fix_call_dummy, set pc_in_call_dummy to
6938 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6939 generic_push_dummy_frame, set push_return_address to
6940 i386_push_return_address and set frame_chain_valid to
6941 generic_file_frame_chain_valid.
6943 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6945 * gdbarch.sh (struct regcache): Add opaque declaration.
6946 (EXTRACT_RETURN_VALUE): New architecture method.
6947 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6948 * gdbarch.h, gdbarch.c: Regenerate.
6949 * arch-utils.c (legacy_extract_return_value): New function.
6950 * arch-utils.h (legacy_extract_return_value): Declare.
6951 * values.c (value_being_returned): Re-enable code handling
6952 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6953 deprecated_grub_regcache_for_registers call to block handling
6954 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6955 (EXTRACT_RETURN_VALUE): Do not define.
6957 2002-07-03 Grace Sainsbury <graces@redhat.com>
6959 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6960 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6961 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6962 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6963 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6964 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6965 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6966 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6967 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6968 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6969 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6970 argument so the function fits the prototype in the architecture
6972 (mcore_pop_frame): Remove argument so the function fits the
6973 prototype. Use get_current_frame instead of the argument.
6974 (mcore_push_arguments): Change type of struct_return so the
6975 function can be used in the architecture vector.
6976 (mcore_store_struct_return): Add.
6977 (mcore_frame_init_saved_regs): Add.
6978 (mcore_gdbarch_init): Add function calls to replace the macros
6979 removed from tm-mcore.h
6981 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6983 * infcmd.c (print_return_value): Remove compatibility code calling
6984 deprecated_grub_regcache_for_registers.
6986 * values.c: Include "regcache.h".
6987 (value_being_returned): Update. Use
6988 deprecated_grub_regcache_for_registers to extract the register
6990 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6991 ``struct regcache''.
6992 * Makefile.in (values.o): Add dependency on $(regcache_h).
6994 * inferior.h (run_stack_dummy): Change type of second parameter to
6995 a ``struct regcache''.
6996 * valops.c (hand_function_call): Change type of retbuf to ``struct
6997 regcache''. Allocate using regcache_xmalloc, clean using
6998 make_cleanup_regcache_xfree.
6999 * infcmd.c (run_stack_dummy): Update. Use
7000 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7002 * regcache.c (do_regcache_xfree): New function.
7003 (make_cleanup_regcache_xfree): New function.
7004 * regcache.h (make_cleanup_regcache_xfree): Declare.
7006 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7008 * event-top.c (command_line_handler): Don't read past
7009 beginning of buffer.
7011 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7013 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7015 (varobj_create): Store frame_id for root.
7016 (varobj_gen_name): Use xasprintf.
7017 (varobj_update): Save and restore frame using get_frame_id() and
7019 (create_child): Use xasprintf.
7020 (new_root_variable): Initialize frame_id.
7021 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7022 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7023 to prevent memory leak.
7025 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7027 * valops.c (hand_function_call): Move declaration of retbuf to
7028 start of function, allocate using malloc, add a cleanup but before
7029 the inf_status cleanup, cleanup the buffer. Rename local variable
7030 old_chain to inf_status_cleanup.
7032 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7034 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7036 * cli/cli-decode.c (cmd_func_p): New function.
7037 (cmd_func): New function.
7039 * command.h: Add cmd_func() and cmd_func_p().
7041 2002-07-03 Grace Sainsbury <graces@redhat.com>
7043 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7044 (REGISTER_SIZE): Remove.
7045 (MAX_REGISTER_RAW_SIZE): Remove.
7046 (REGISTER_VIRTUAL_TYPE): Remove.
7047 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7048 (REGISTER_NAME): Remove.
7049 (USE_GENERIC_DUMMY_FRAMES): Remove.
7050 (CALL_DUMMY): Remove.
7051 (CALL_DUMMY_START_OFFSET): Remove.
7052 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7053 (CALL_DUMMY_LOCATION): Remove.
7054 (FIX_CALL_DUMMY): Remove.
7055 (CALL_DUMMY_ADDRESS): Remove.
7056 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7057 (SAVE_DUMMY_FRAME_TOS): Remove.
7058 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7059 (mcore_register_virtual_type): New function.
7060 (mcore_register_byte): New function.
7061 (mcore_register_size): New function.
7062 (mcore_register_name): New function.
7063 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7064 macros removed from tm-mcore.h.
7065 (mcore_dump_tdep): Add.
7066 (_initialize_mcore_tdep): Add gdbarch_register call.
7068 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7070 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7071 frameless_look_for_prologue, such that we actually call this
7074 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7076 * frame.h (frame_address_in_block): New function.
7078 * blockframe.c (frame_address_in_block): New function extracted
7079 from get_frame_block().
7080 (get_frame_block): Use frame_address_in_block().
7081 (block_innermost_frame): Use frame_address_in_block() to match
7082 the frame pc address against the block boundaries rather than
7083 the frame pc directly. This prevents a failure when a frame pc
7084 is actually a return-address pointing immediately after the end
7087 2002-07-02 Grace Sainsbury <graces@redhat.com>
7089 * MAINTAINERS: Add self under write after approval.
7091 2002-07-02 Grace Sainsbury <graces@redhat.com>
7093 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7094 used in architecture vector. The default is
7095 m68k_local_breakpoint_from_pc.
7096 (m68k_local_breakpoint_from_pc): Add.
7097 (enum): Add register numbers from tm-m68k.h.
7098 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7100 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7101 GDB_MULTI_ARCH_PARTIAL.
7102 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7103 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7105 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7106 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7107 to enum in m68k-tdep.c
7109 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7111 * solib-osf.c (open_map): Compute the list of shared libraries
7112 loaded by the inferior, rather than the list of libraries loaded
7113 by GDB itself. Otherwise, GDB ends up reading the symbols from
7114 the wrong shared libraries...
7116 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7118 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7119 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7121 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7123 (FRAMELESS_SIGNAL): Remove function.
7124 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7125 i386_linux_saved_pc_after_call): Removed.
7126 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7127 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7128 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7130 * i386-tdep.c (i386_frameless_signal_p): New function.
7131 (i386_frame_chain): Deal with frameless signals.
7132 (i386_sigtramp_saved_sp): New function.
7133 (i386_frame_saved_pc): Deal with frameless signals.
7134 (i386_saved_pc_after_call): Make sure the correct value is
7135 returned just after entry into a sigtramp.
7136 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7137 i386fbsd4_sc_sp_offset): New variables.
7138 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7139 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7140 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7141 similiar to what we already did for sc_pc_offset.
7142 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7145 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7147 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7149 * config/i386/tm-x86-64linux.h: New.
7150 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7152 * config/i386/nm-x86-64.h: Rename to ...
7153 * config/i386/nm-x86-64linux.h: ... this one.
7154 * config/i386/x86-64linux.mh: Reflect the above change.
7156 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7158 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7159 with sigcontext_addr. Add sc_sp_offset.
7160 (i386bsd_sigtramp_saved_pc): Remove prototype.
7161 (i386bsd_sicontext_addr): Add prototype.
7162 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7163 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7164 (i386_svr4_sigtramp_saved_pc): Removed.
7165 (i386_svr4_sigcontext_addr): New function.
7166 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7167 Initialize tdep->sigcontext_addr instead. Initialize
7168 tdep->sc_pc_offset and tdep->sc_sp_offset.
7169 (i386_gdbarch_init): Likewise.
7170 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7172 (i386bsd_sigtramp_saved_pc): Remove function.
7173 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7174 Initialize tdep->sigcontext_addr instead. Initialize
7176 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7177 of tdep->sigtramp_saved_pc.
7178 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7179 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7182 * i386-tdep.c (i386_frameless_function_invocation,
7183 i386_frame_num_args, i386_frame_init_saved_regs,
7184 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7185 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7186 i386_extract_return_value, i386_store_return_value,
7187 i386_extract_struct_value_address, i386_register_virtual_type,
7188 i386_register_convertible, i386_register_convert_to_virtual,
7189 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7190 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7193 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7195 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7197 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7198 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7199 this macro. Include "value.h".
7201 2002-06-30 Aidan Skinner <aidan@velvet.net>
7203 * ada-exp.tab.c: remove as it's a generated file
7204 * ada-lex.c: remove as it's a generated file
7206 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7208 * config/i386/tm-i386.h (struct frame_info, struct
7209 frame_saved_regs, struct value, struct type): Remove forward
7212 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7213 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7214 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7215 (FILL_FPXREGSET): Define.
7217 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7219 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7220 i[3456]86-*-netbsd* case.
7221 * config/i386/tm-obsd.h: Removed.
7222 * config/i386/obsd.mt: Removed.
7223 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7225 (MH_CFLAGS): Add -DYYDEBUG=0.
7227 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7228 i386nbsd_sc_pc_offset on OpenBSD too.
7230 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7231 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7232 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7234 * i386bsd-tdep.c: Include "arch-utils.h".
7235 (i386bsd_aout_in_solib_call_trampoline): New function.
7236 (i386bsd_init_abi): Set in_solib_call_trampoline to
7237 i386bsd_aout_in_solib_call_trampoline.
7238 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7239 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7241 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7243 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7244 (struct obstack, struct bcache): Add opaque declarations.
7245 * Makefile.in (macrotab_h): Update
7247 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7249 * blockframe.c (generic_find_dummy_frame): Change return type to
7250 ``struct regcache''.
7251 (struct dummy_frame): Replace field ``registers'' with regcache, a
7252 struct regcache object.
7253 (generic_find_dummy_frame): Update.
7254 (generic_push_dummy_frame): Update. Use regcache_xfree,
7255 regcache_xmalloc and regcache_cpy.
7256 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7258 (deprecated_generic_find_dummy_frame): Update.
7259 (generic_read_register_dummy): Update. Use
7260 regcache_read_as_address.
7261 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7262 (generic_get_saved_register): Update. Use regcache_read.
7264 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7266 * Makefile.in (objfiles_h): Add $(bcache_h).
7267 * objfiles.h: Include "bcache.h".
7269 * Makefile.in (symtab_h): Remove $(bcache_h).
7270 * symtab.h: Do not include "bcache.h".
7272 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7274 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7275 generic_func_frame_chain_valid.
7277 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7279 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7280 * config/i386/tm-fbsd.h: Likewise.
7282 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7284 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7285 generic_unwind_get_saved_register.
7287 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7289 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7290 * regcache.c (supply_register): Add missing argument to
7291 register_buffer call.
7293 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7295 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7296 Solaris /bin/grep does not not like it. From Peter Schauer.
7298 2002-06-26 Tom Tromey <tromey@redhat.com>
7300 * command.h (add_setshow_cmd): Declare.
7301 (add_setshow_cmd_full): Declare.
7302 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7303 returns void. Use add_setshow_cmd_full.
7304 (add_setshow_cmd_full): New function.
7305 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7306 (add_setshow_boolean_cmd): Likewise.
7308 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7310 * config/vax/tm-vax.h: Protect from multiple inclusion.
7311 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7312 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7313 * config/vax/tm-vaxbsd.h: ...here. New file.
7314 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7316 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7318 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7319 (BELIEVE_PCC_PROMOTION): Remove.
7320 (AP_REGNUM): Move to...
7321 * config/vax/nm-vax.h: ...here.
7322 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7323 (vax_breakpoint_from_pc): New function.
7324 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7325 and gdbarch_believe_pcc_promotion.
7327 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7329 * Makefile.in (vax_tdep_h): Define.
7330 (vax-tdep.o): Use $(vax_tdep_h).
7331 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7332 (vax_dump_tdep): New function.
7333 (_initialize_vax_tdep): Register vax_dump_tdep.
7334 * vax-tdep.h: Include osabi.h.
7335 (struct gdbarch_tdep): New.
7337 2002-06-26 Andrew Cagney <cagney@redhat.com>
7339 * frame.h (deprecated_generic_find_dummy_frame): Rename
7340 generic_find_dummy_frame.
7341 * blockframe.c (generic_find_dummy_frame): Make static.
7342 (deprecated_generic_find_dummy_frame): New function.
7343 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7344 generic_find_dummy_frame with deprecated_find_dummy_frame.
7345 (sh64_nofp_frame_init_saved_regs): Ditto.
7346 (sh_fp_frame_init_saved_regs): Ditto.
7347 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7348 (s390_frame_chain): Ditto.
7349 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7351 2002-06-26 Grace Sainsbury <graces@redhat.com>
7353 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7354 gdbarch vector are at the top.
7356 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7357 (FRAME_ARGS_ADDRESS): Remove.
7358 (FRAME_LOCALS_ADDRESS): Remove.
7359 (FRAME_NUM_ARGS): Remove.
7360 (FRAME_ARGS_SKIP): Remove.
7361 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7362 (m68k_gdbarch_init): Add gdbarch initializations for macros
7363 undefined in tm-m68k.h
7365 2002-06-26 Grace Sainsbury <graces@redhat.com>
7367 * monitor.h: Add the function regname to monitor_ops
7368 structure. This way NUM_REGS does not have to be a constant.
7369 * monitor.c (monitor_fetch_register): Added support for regname
7370 function. The function is called if the array regnames is NULL.
7371 (monitor_store_register): Same.
7372 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7374 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7375 cpu32bug_cmds.regname to point to new function.
7376 * abug-rom.c (abug_regname): Same as above.
7377 (init_abug_cmds): Same.
7378 * dbug-rom.c (dbug_regname): Same as above.
7379 (init_dbug_cmds): Same.
7380 * remote-est.c (est_regname): Same.
7381 (init_est_cmds): Same.
7382 * rom68k-rom.c (rom68k_regname): Same.
7383 (init_rom68k_cmds): Same.
7385 2002-06-25 Tom Tromey <tromey@redhat.com>
7387 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7389 2002-06-25 Andrew Cagney <cagney@redhat.com>
7391 * infrun.c (stop_registers): Change variable's type to ``struct
7393 (xmalloc_inferior_status): Delete function.
7394 (free_inferior_status): Delete function.
7395 (normal_stop): Use regcache_cpy.
7396 (struct inferior_status): Change type of fields ``stop_registers''
7397 and ``registers'' to ``struct regcache''.
7398 (write_inferior_status_register): Use regcache_write.
7399 (save_inferior_status): Instead of calling
7400 xmalloc_inferior_status, allocate the inf_status buffer directly.
7401 Use regcache_dup_no_passthrough and regcache_dup to save the
7403 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7404 Replace the stop_registers regcache instead of overriding it. Use
7405 regcache_xfree. Instead of calling free_inferior_status, xfree
7406 the buffer directly.
7407 (discard_inferior_status): Use regcache_xfree. Instead of calling
7408 free_inferior_status, xfree the buffer directly.
7409 (build_infrun): Use regcache_xmalloc.
7410 (_initialize_infrun): Delete redundant call to build_infrun.
7412 * Makefile.in (infcmd.o): Add $(regcache_h).
7414 * infcmd.c: Include "regcache.h".
7415 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7416 obtain the address of `stop_registers' register buffer.
7417 (print_return_value): Ditto.
7419 * inferior.h (struct regcache): Add opaque declaration.
7420 (stop_registers): Change variable's declared type to ``struct
7423 2002-06-24 Tom Tromey <tromey@redhat.com>
7425 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7426 * target.c (initialize_targets): Fixed typo in
7427 trust-readonly-sections `show' documentation.
7429 * main.c: Marked all strings with _().
7431 2002-06-24 Don Howard <dhoward@redhat.com>
7433 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7434 that means max CORE_ADDR+1.
7435 (lookup_mem_region): Ditto.
7436 (mem_info_command): Ditto.
7438 2002-06-24 Grace Sainsbury <graces@redhat.com>
7440 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7441 (REGISTER_BYTES_OK): Remove.
7442 (REGISTER_BYTES): Remove.
7443 (STORE_STRUCT_RETURN): Remove.
7444 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7445 (STORE_RETURN_VALUE): Remove.
7446 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7447 (FRAME_CHAIN): Remove.
7448 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7449 (FRAME_SAVED_PC): Remove.
7450 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7451 (m68k_store_struct_return): Add.
7452 (m68k_deprecated_extract_return_value): Add.
7453 (m68k_deprecated_extract_struct_value_address): Add.
7454 (m68k_store_return_value): Add.
7455 (m68k_frame_chain): Add.
7456 (m68k_frameless_function_invocation): Add.
7457 (m68k_frame_saved_pc): Add.
7458 (m68k_gdbarch_init): added set_gdbarch calls for new
7459 functions and deleted macros.
7461 2002-06-23 Tom Tromey <tromey@redhat.com>
7463 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7464 (ALLDEPFILES): Likewise.
7465 (udiheaders): Removed.
7466 (udip2soc.o): Likewise.
7467 (udi2go32.o): Likewise.
7469 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7471 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7473 * infrun.c (_initialize_infrun): Delete unnecessary call to
7476 * regcache.h: Update comments describing the regcache_cpy family
7478 (regcache_save, regcache_restore): Delete declaration.
7479 (regcache_save_no_passthrough): Delete declaration.
7480 (regcache_restore_no_passthrough): Delete declaration.
7481 * regcache.c (regcache_save): Delete function.
7482 (regcache_save_no_passthrough): Delete function.
7483 (regcache_restore): Delete function.
7484 (regcache_restore_no_passthrough): Delete function.
7486 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7488 * config/m68k/tm-m68k.h: Fix typo.
7489 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7490 (m68k_frame_init_saved_regs): Declare.
7492 2002-06-21 Jim Blandy <jimb@redhat.com>
7494 Remove some vestiges of Harris 88k support.
7495 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7496 register numbering quirk.
7497 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7498 odd symbols occurring in Harris 88k ELF targets.
7500 2002-06-21 Tom Tromey <tromey@redhat.com>
7502 * gdb_locale.h: New file.
7503 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7504 (defs_h): Added gdb_locale.h.
7505 * configure, config.in: Rebuilt.
7506 * configure.in (PACKAGE): Define.
7507 * defs.h: Include gdb_locale.h.
7508 * main.c (captured_main): Call setlocale, bindtextdomain,
7511 2002-06-21 Dave Brolley <brolley@redhat.com>
7513 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7514 * config/frv/frv.mt: New file.
7515 * config/frv/tm-frv.h: New file.
7516 * configure.tgt: Support frv-*-*.
7517 * Makefile.in (frv-tdep.o): New target.
7518 * frv-tdep.c: New file.
7519 * NEWS: Mention frv.
7521 2002-06-21 Dave Brolley <brolley@redhat.com>
7523 * MAINTAINERS: Add self to "Write After Approval" list.
7525 2002-06-21 Grace Sainsbury <graces@redhat.com>
7527 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7528 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7529 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7530 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7531 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7533 * m68k-tdep.c: Include arch-utils.h
7534 (m68k_register_raw_size): Add.
7535 (m68k_register_virtual_size): Add.
7536 (m68k_register_virtual_type): Add.
7537 (m68k_register_name): Add.
7538 (m68k_stack_align): Add.
7539 (m68k_register_byte): Add.
7540 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7543 2002-06-21 Grace Sainsbury <graces@redhat.com>
7545 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7546 m68k_find_saved_regs.
7547 (m68k_pop_frame): Removed saved_regs structure, and replaced
7548 references to it with frame->saved_regs.
7549 (m68k_gdbarch_init): Added function calls to initialize the
7551 (m68k_fix_call_dummy): Add.
7552 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7553 (CALL_DUMMY): Remove.
7554 (CALL_DUMMY_LENGTH): Remove.
7555 (CALL_DUMMY_START_OFFSET): Remove.
7556 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7557 (FIX_CALL_DUMMY): Remove.
7558 (PUSH_DUMMY_FRAME): Remove.
7559 (POP_FRAME): Remove.
7561 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7563 * parse.c (parse_fprintf): New function used to avoid calls to
7564 fprintf in bison parser generated debug code.
7565 * parser-defs.h: Declaration of new parse_fprintf function.
7566 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7567 Set YYDEBUG to 1 by default.
7568 Set YYFPRINTF as parse_fprintf.
7570 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7572 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7574 (pointer_encoding, enum ptr_encoding): New.
7575 (execute_cfa_program): Take care about pointer encoding.
7576 (dwarf2_build_frame_info): Only call parse_frame_info for
7577 .debug_frame and .eh_frame.
7578 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7579 fixed augmentation handling, added relative addressing,
7580 ignore duplicate FDEs. Added comments.
7581 * dwarf2cfi.c: Reindented.
7583 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7585 * event-top.c (command_handler): Don't use space_at_cmd_start
7586 unless there is sbrk() on the host. Assign time and space data
7587 to union fields of the appropriate length.
7589 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7591 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7592 x86_64_register_name. Return type changed to 'const char *'.
7593 (x86_64_register_name2nr): Rename to x86_64_register_number.
7594 (x86_64_gdbarch_init): Update to reflect the change.
7595 * x86-64-tdep.h: Ditto.
7596 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7597 (supply_fpregset): Ditto.
7599 2002-06-19 Andrew Cagney <cagney@redhat.com>
7601 * regcache.h: Update copyright.
7602 (struct regcache, struct gdbarch): Add opaque declarations.
7603 (current_regcache): Declare global variable.
7604 (regcache_read, regcache_write): Add gdbarch parameter.
7605 (regcache_save, regcache_save_no_passthrough)
7606 (regcache_restore, regcache_restore_no_passthrough)
7607 (regcache_dup, regcache_dup_no_passthrough)
7608 (regcache_cpy, regcache_cpy_no_passthrough)
7609 (deprecated_grub_regcache_for_registers)
7610 (deprecated_grub_regcache_for_register_valid)
7611 (regcache_valid_p): Add function declarations.
7613 * regcache.c: Update copyright.
7614 (regcache_descr_handle): New global variable.
7615 (struct regcache_descr): Define.
7616 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7617 (regcache_descr, xfree_regcache_descr): New functions.
7618 (struct regcache): Define.
7619 (regcache_xmalloc, regcache_xfree): New functions.
7620 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7621 (regcache_dup, regcache_dup_no_passthrough): New functions.
7622 (regcache_valid_p, regcache_read_as_address): New functions.
7623 (deprecated_grub_regcache_for_registers): New function.
7624 (deprecated_grub_regcache_for_register_valid): New function.
7625 (current_regcache): New global variable.
7626 (register_buffer): Add regcache parameter. Update calls.
7627 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7628 (read_register_gen, write_register_gen): Update register_buffer
7629 call. Test for legacy_p instead of gdbarch_register_read_p or
7630 gdbarch_register_write_p.
7631 (regcache_collect): Update register_buffer call.
7632 (build_regcache): Rewrite. Use deprecated grub functions.
7633 (regcache_save, regcache_save_no_passthrough): New functions.
7634 (regcache_restore, regcache_restore_no_passthrough): New
7636 (_initialize_regcache): Create the regcache_data_handle. Swap
7637 current_regcache global variable.
7639 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7640 parameter to regcache_read and regcache_write calls.
7641 (sh4_register_read): Ditto.
7642 (sh64_pseudo_register_read): Ditto.
7643 (sh64_register_read): Ditto.
7644 (sh_pseudo_register_write): Ditto.
7645 (sh4_register_write): Ditto.
7646 (sh64_pseudo_register_write): Ditto.
7647 (sh64_register_write): Ditto.
7649 * defs.h (XCALLOC): Define.
7651 2002-06-19 Grace Sainsbury <graces@redhat.com>
7653 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7654 * m68k-tdep.c (m68k_gdbarch_init): Added.
7655 (m68k_dump_tdep): Added.
7657 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7659 * ada-lang.c (fill_in_ada_prototype): Update comment.
7661 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7663 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7665 (mips_abi_string, mips_abi_strings): New.
7666 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7667 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7668 tdep->mips_abi_string. Honor mips_abi_string. Default to
7669 O32 if no ABI is found.
7670 (mips_dump_tdep): Use mips_abi_strings.
7671 (mips_abi_update): New function.
7672 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7673 ``set mips abi'' and ``show mips abi''. Check the size of
7676 2002-06-19 Andrew Cagney <cagney@redhat.com>
7678 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7681 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7683 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7684 current frame using only the first stack size adjustment. All
7685 subsequent size adjustments are not considered to be part of
7686 the "static" part of the current frame.
7687 Compute the address of the saved registers relative to the
7688 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7689 in use in this frame.
7691 2002-06-18 Don Howard <dhoward@redhat.com>
7693 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7694 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7695 suggesting this solution.
7697 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7699 * config/romp/xm-rtbsd.h: Delete file.
7700 * config/romp/rtbsd.mh: Delete file.
7702 2002-06-18 Keith Seitz <keiths@redhat.com>
7704 * breakpoint.c (condition_command): Post breakpoint_modify
7705 when a condition is added to an existing breakpoint.
7706 (commands_command): Likewise for commands.
7707 (set_ignore_count): Likewise for ignore counts.
7708 If no tty, do not simply return, still need to send event
7710 (ignore_command): Only print a newline if the command came
7712 Don't call breakpoints_changed, since this is now properly
7713 handled by set_ignore_count.
7715 2002-06-18 Andrew Cagney <cagney@redhat.com>
7717 * MAINTAINERS: Note that cris-elf target can be compiled with
7719 * cris-tdep.c (cris_register_name): Make return type constant.
7720 (cris_breakpoint_from_pc): Ditto.
7722 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7724 * frame.h (struct frame_info): Change type of context to
7727 2002-06-17 Andrew Cagney <cagney@redhat.com>
7729 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7731 * gdbarch.h, gdbarch.c: Regenerate.
7732 * config/mips/tm-mips.h (mips_register_name): Update.
7733 * i386-tdep.h (i386_register_name): Update.
7734 * mips-tdep.c (mips_register_name): Update
7735 * alpha-tdep.c (alpha_register_name): Update.
7736 * arch-utils.c (legacy_register_name): Update.
7737 * arch-utils.h (legacy_register_name): Update.
7738 * avr-tdep.c (avr_register_name): Update.
7739 * ia64-tdep.c (ia64_register_name): Update.
7740 * i386-tdep.c (i386_register_name): Update.
7741 * sparc-tdep.c (sparc32_register_name): Update.
7742 (sparc64_register_name): Update.
7743 (sparclite_register_name): Update.
7744 (sparclet_register_name): Update.
7745 * sh-tdep.c (sh_generic_register_name): Update.
7746 (sh_sh_register_name): Update.
7747 (sh_sh3_register_name): Update.
7748 (sh_sh3e_register_name): Update.
7749 (sh_sh_dsp_register_name): Update.
7750 (sh_sh3_dsp_register_name): Update.
7751 (sh_sh4_register_name): Update.
7752 (sh_sh64_register_name): Update.
7753 * s390-tdep.c (s390_register_name): Update.
7754 * rs6000-tdep.c (rs6000_register_name): Update.
7755 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7756 (ns32k_register_name_32382): Update.
7757 * d10v-tdep.c (d10v_ts2_register_name): Update.
7758 (d10v_ts3_register_name): Update.
7759 * xstormy16-tdep.c (xstormy16_register_name): Update.
7760 * vax-tdep.c (vax_register_name): Update.
7761 * v850-tdep.c (v850_register_name): Update.
7762 * m68hc11-tdep.c (m68hc11_register_name): Update.
7763 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7764 (am33_register_name): Update.
7766 2002-06-17 Grace Sainsbury <graces@redhat.com>
7768 * m68k-tdep.c: Reindented.
7770 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7772 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7773 list of predefined types.
7775 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7777 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7778 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7779 REGISTER_CONVERT_TO_RAW): Remove defines.
7780 (i386_register_virtual_type, i386_register_convertible,
7781 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7783 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7784 macros mentioned above.
7786 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7787 (i386lynx_saved_pc_after_call): Remove prototype.
7788 * i386ly-tdep.c: Include "i386-tdep.h".
7789 (i386lynx_saved_pc_after_call): Make static. Use
7790 read_memory_nobpt instead of read_memory. Use
7791 read_memory_unsigned_integer instead of read_memory_integer.
7792 (i386lynx_init_abi): New function.
7793 (i386lynx_coff_osabi_sniffer): New function.
7794 (_initialize_i386bsd_tdep): New function.
7796 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7797 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7798 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7799 (i386_fix_call_dummy): Remove prototype.
7800 * i386-tdep.c (i386_call_dummy_words): New variable.
7801 (i386_gdbarch_init): Adjust for removal of the
7802 macros mentioned above.
7804 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7806 * command.h (add_setshow_auto_boolean_cmd): Replace
7807 add_set_auto_boolean_cmd.
7808 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7809 add_set_auto_boolean_cmd.
7810 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7811 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7812 mask-address'' command.
7813 (show_mask_address): Add cmd parameter.
7814 * remote.c (add_packet_config_cmd): Update. Change type of
7815 set_func and show_func to cmd_sfunc_ftype.
7816 (_initialize_remote): Update `set remote Z-packet'
7817 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7818 (show_remote_protocol_e_packet_cmd): Ditto.
7819 (show_remote_protocol_E_packet_cmd): Ditto.
7820 (show_remote_protocol_P_packet_cmd): Ditto.
7821 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7822 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7823 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7824 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7825 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7826 (show_remote_protocol_Z_packet_cmd): Ditto.
7827 (show_remote_protocol_binary_download_cmd): Ditto.
7828 (show_remote_cmd): Pass NULL to all of above.
7830 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7832 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7833 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7834 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7835 POP_FRAME): Remove defines.
7836 (i386_push_arguments, i386_store_struct_return,
7837 i386_extract_return_value, i386_store_return_value,
7838 i386_extract_struct_value_address, i386_push_dummy_frame,
7839 i386_pop_frame): Renove prototypes.
7840 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7841 macros mentioned above.
7843 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7845 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7846 add_set_boolean_cmd.
7847 (add_setshow_cmd): New function.
7848 * command.h (add_setshow_boolean_cmd): Replace
7849 add_set_boolean_cmd.
7850 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7851 and ``set rdiromatzero''.
7852 * maint.c (_initialize_maint_cmds): Update commented out code.
7853 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7854 * target.c (initialize_targets): Update `set
7855 trust-readonly-sections'.
7856 * remote.c (_initialize_remote): Update `set remotebreak'.
7858 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7860 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7861 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7862 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7863 fit into multi-arch framework.
7864 (i386_breakpoint_from_pc): New function.
7865 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7868 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7869 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7870 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7871 (i386_frameless_function_invocation, i386_frame_num_args,
7872 i386_frame_init_saved_regs): Remove prototypes.
7873 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7874 macros mentioned above.
7876 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7878 * cli/cli-decode.c (set_cmd_cfunc): Update.
7879 (set_cmd_sfunc): Update.
7880 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7881 (set_cmd_sfunc, set_cmd_cfunc): Update.
7882 * cli/cli-decode.h: Update.
7884 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7886 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7887 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7889 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7891 * defs.h (auto_boolean): Declare enum.
7892 * command.h (cmd_auto_boolean): Delete enum.
7893 * mips-tdep.c (mask_address_var): Update.
7894 (mips_mask_address_p): Update.
7895 (show_mask_address): Update.
7896 * remote.c (struct packet_config): Update.
7897 (update_packet_config): Update.
7898 (show_packet_config_cmd): Update.
7899 (packet_ok): Update.
7900 (add_packet_config_cmd): Update.
7901 (_initialize_remote):
7902 * command.h: Update.
7903 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7904 (do_setshow_command): Update.
7905 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7906 * cli/cli-decode.h: Update.
7908 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7910 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7911 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7912 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7913 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7914 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7915 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7917 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7918 list of DJGPP COFF targets.
7920 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7921 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7922 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7923 (FP0_REGNUM): Remove define.
7924 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7925 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7926 (i386_register_virtual_size): Remove protoype.
7927 * i386-tdep.c (i386_register_virtual_size): Removed.
7928 (i386_extract_return_value, i386_store_return_value): Use
7929 FP0_REGNUM instead of NUM_FREGS to determine whether the
7930 floating-point registers are available.
7931 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7932 Adjust for removal of macros mentioned above.
7934 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7936 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7938 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7940 (supply_gregset, fill_gregset): Remove use of register keyword and
7941 remove declaration for regmap. Use I386_NUM_GREGS instead of
7942 NUM_REGS and NUM_FREGS.
7943 (FPREGSET_FSAVE_OFFSET): Remove.
7944 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7945 NUM_FREGS to determine whether the floating-point registers are
7948 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7949 gnu_store_registers): Replace usage of NUM_GREGS with
7952 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7953 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7954 usage of NUM_GREGS with I386_NUM_GREGS.
7956 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7958 * i386bsd-nat.c: Include "i386-tdep.h".
7959 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7962 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7963 and associated comment. They no longer make any sense, since we
7964 don't use this file anymore on Linux.
7966 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7967 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7968 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7969 elements in these arrays.
7970 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7973 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7975 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7976 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7978 2002-06-14 Andrew Cagney <cagney@redhat.com>
7980 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7981 EXTRACT_RETURN_VALUE.
7982 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7983 EXTRACT_STRUCT_VALUE_ADDRESS.
7984 * gdbarch.h, gdbarch.c: Regenerate.
7986 * values.c (value_being_returned): Handle
7987 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7988 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7990 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7991 * arm-tdep.c (arm_gdbarch_init): Update.
7992 * avr-tdep.c (avr_gdbarch_init): Update.
7993 * cris-tdep.c (cris_gdbarch_init): Update.
7994 * d10v-tdep.c (d10v_gdbarch_init): Update.
7995 * ia64-tdep.c (ia64_gdbarch_init): Update.
7996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7998 * s390-tdep.c (s390_gdbarch_init): Update.
7999 * sh-tdep.c (sh_gdbarch_init): Update.
8000 * s390-tdep.c (s390_gdbarch_init): Update.
8001 * sparc-tdep.c (sparc_gdbarch_init): Update.
8002 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8003 * v850-tdep.c (v850_gdbarch_init): Update.
8004 * vax-tdep.c (vax_gdbarch_init): Update.
8005 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8008 * config/arc/tm-arc.h: Update.
8009 * config/d30v/tm-d30v.h: Update.
8010 * config/fr30/tm-fr30.h: Update.
8011 * config/h8300/tm-h8300.h: Update.
8012 * config/h8500/tm-h8500.h: Update.
8013 * config/i386/tm-i386.h: Update.
8014 * config/i386/tm-ptx.h: Update.
8015 * config/i386/tm-symmetry.h: Update.
8016 * config/i960/tm-i960.h: Update.
8017 * config/m32r/tm-m32r.h: Update.
8018 * config/m68k/tm-delta68.h: Update.
8019 * config/m68k/tm-linux.h: Update.
8020 * config/m68k/tm-m68k.h: Update.
8021 * config/m88k/tm-m88k.h: Update.
8022 * config/mcore/tm-mcore.h: Update.
8023 * config/mips/tm-mips.h: Update.
8024 * config/mn10200/tm-mn10200.h: Update.
8025 * config/pa/tm-hppa.h: Update.
8026 * config/pa/tm-hppa64.h: Update.
8027 * config/sparc/tm-sp64.h: Update.
8028 * config/sparc/tm-sparc.h: Update.
8029 * config/sparc/tm-sparclet.h: Update.
8030 * config/z8k/tm-z8k.h: Update.
8032 2002-06-14 Andrew Cagney <cagney@redhat.com>
8034 * Makefile.in (i386_linux_tdep_h): Define.
8035 (i386_tdep_h, i387_tdep_h): Define.
8036 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8037 $(i386_tdep_h) and $(i387_tdep_h).
8038 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8040 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8042 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8043 Already covered by the default.
8045 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8046 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8047 (i386_gdbarch_init): Initialize long_double_format and long_double
8050 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8051 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8053 * config/i386/i386sol2.mh: ... here.
8054 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8055 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8056 (SIGCONTEXT_PC_OFFSET): Remove define.
8057 (IN_SIGTRAMP): Remove define.
8058 * i386-sol2-tdep.c: New file.
8060 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8061 * config/i386/tm-i386nw.h: Removed.
8063 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8064 USE_STRUCT_CONVENTION): Remove defines.
8065 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8066 (get_longjmp_target): Remove prototype.
8067 (IN_SIGTRAMP): Remove define.
8068 (i386bsd_in_sigtramp): Remove prototype.
8069 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8070 function. Update comment accordingly
8071 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8072 (FRAME_SAVED_PC): Remove define.
8073 (i386bsd_frame_saved_pc): Remove prototype.
8074 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8075 GET_LONGJMP_TARGET): Remove defines.
8076 (get_longjmp_target): Remove prototype.
8077 (IN_SIGTRAMP): Remove define.
8078 (i386bsd_in_sigtramp): Remove prototype.
8079 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8080 function. Update comment accordingly
8081 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8082 (FRAME_SAVED_PC): Remove define.
8083 (i386bsd_frame_saved_pc): Remove prototype.
8084 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8086 (USE_STRUCT_CONVENTION): Remove prototype.
8087 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8089 (_initialize_i386bsd_nat): Revise logic to determine some
8090 constants at compile time when compiling a native GDB. Warn if
8091 things don't match up with what we expect.
8092 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8094 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8095 to use date stored in `struct gdbarch_tdep'.
8096 (i386bsd_sigcontext_offset): Remove varaible.
8097 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8098 stored in `struct gdbarch_tdep'.
8099 (i386bsd_frame_saved_pc): Make static.
8100 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8101 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8102 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8103 i386fbsd4_sc_pc_offset): New variables.
8104 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8105 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8107 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8109 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8110 Modify the value of i386fbsd_sigtramp_start and
8111 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8112 i386fbsd_sigtramp_end.
8113 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8116 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8117 define to i386-linux-tdep.h.
8118 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8119 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8121 (i386_linux_register_name, i386_linux_register_byte,
8122 i386_linux_register_raw_size): Remove prototypes.
8123 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8124 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8125 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8126 TARGET_WRITE_PC): Remove defines.
8127 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8128 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8129 i386_linux_write_pc): Remove prototypes.
8130 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8131 (get_longjmp_target): Remove prototype.
8132 * i386-linux-tdep.h: New file.
8133 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8134 * i386-linux-tdep.c: Include "i386-tdep.h" and
8135 "i386-linux-tdep.h".
8136 (i386_linux_register_name, i386_linux_register_byte,
8137 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8138 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8140 (i386_linux_init_abi): New function.
8141 (_initialize_i386_linux_tdep): New function.
8143 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8144 (i386_saved_pc_after_call): Remove prototype.
8145 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8146 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8147 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8148 (i386_register_name, i386_stab_reg_to_regnum,
8149 i386_dwarf_reg_to_regnum): Remove prototypes.
8150 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8151 SIZEOF_SSE_REGS): Remove defines.
8152 (REGISTER_BYTES): Remove define.
8153 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8154 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8155 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8156 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8157 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8158 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8159 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8160 (get_longjmp_target): Remove prototype.
8161 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8162 (sigtramp_saved_pc): Remove define.
8163 (i386v4_sigtramp_saved_pc): Remove prototype.
8164 * config/i386/tm-go32.h (FRAME_CHAIN,
8165 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8166 (i386go32_frame_saved_pc): Remove prototype.
8167 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8168 (get_longjmp_target): Remove prototype.
8169 * i386-tdep.h: Include "osabi.h".
8170 (enum i386_abi): Removed.
8171 (enum struct_return): New enum.
8172 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8173 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8174 sc_pc_offset members.
8175 (i386_gdbarch_register_os_abi): Remove prototype.
8176 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8177 I386_SSE_NUM_REGS): New defines.
8178 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8179 I386_SSE_SIZEOF_REGS): New defines.
8180 (i386_register_name, i386_register_byte, i386_register_raw_size):
8182 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8183 (i386bsd_sigtramp_saved_pc): New prototype.
8184 * i386-tdep.c: Don't include "elf-bfd.h".
8185 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8186 i386_frame_chain, i386_saved_pc_after_call): Make static.
8187 (i386_frame_saved_pc): Rewrite to call architecture dependent
8188 function to deal with signal handlers. Make static.
8189 (i386go32_frame_saved_pc): Removed.
8190 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8192 (i386_get_longjmp_target): New function.
8193 (default_struct_convention, pcc_struct_convention,
8194 reg_struct_convention, valid_conventions, struct_convention): New
8196 (i386_use_struct_convention): New function.
8197 (i386v4_sigtramp_saved_pc): Renamed to
8198 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8199 (i386_pc_in_sigtramp): New function.
8200 (i386_abi_names): Removed.
8201 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8202 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8204 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8205 i386_gdbarch_register_os_abi): Removed.
8206 (struct i386_abi_handler): Removed.
8207 (i386_abi_handler_list): Removed.
8208 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8210 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8211 i386_nw_init_abi): New functions.
8212 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8213 Use set_gdbarch_xxx() calls instead of relying on macros for a
8215 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8216 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8217 Register the various architecture variants defined in this file.
8219 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8221 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8222 (struct main_type): Remove arg_types member. Update comments for
8224 (TYPE_ARG_TYPES): Remove.
8225 (TYPE_FN_FIELD_ARGS): Update.
8226 (smash_to_method_type): Update prototype.
8228 * c-typeprint.c (cp_type_print_method_args): Take method type
8229 instead of argument list. Use new argument layout. Simplify.
8230 (c_type_print_args): Use new argument layout. Simplify.
8231 (c_type_print_base): Update call to cp_type_print_method_args.
8232 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8233 argument; use die->type instead. Update call to
8234 smash_to_method_type.
8235 (read_structure_scope): Update call to dwarf2_add_member_fn.
8236 * gdbtypes.c (allocate_stub_method): Update comment.
8237 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8238 Use new argument layout.
8239 (check_stub_method): Use new argument layout. Don't count
8240 void as an argument.
8241 (print_arg_types): Update comments. Use new argument layout.
8242 (recursive_dump_type): Don't print arg_types member.
8243 * hpread.c (hpread_read_struct_type): Use new argument layout.
8244 (fixup_class_method_type): Likewise.
8245 (hpread_type_lookup): Likewise.
8246 * stabsread.c (read_type): Update calls to read_args and
8247 smash_to_method_type.
8248 (read_args): Use new argument layout. Simplify.
8249 * valops.c (typecmp): Use new argument layout. Update parameters
8250 and comments. Simplify.
8251 (hand_function_call): Use new argument layout.
8252 (search_struct_method): Update call to typecmp.
8253 (find_overload_match): Use new argument layout.
8255 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8257 * NEWS: Mention multithreaded debug support for gdbserver.
8259 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8261 * MAINTAINERS: Mention NEWS.
8263 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8265 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8266 (struct mips_objfile_private, compare_pdr_entries): New.
8267 (non_heuristic_proc_desc): Read the ".pdr" section if it
8270 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8272 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8273 (arm_debug): New static variable.
8274 (_initialize_arm_tdep): Add ``set debug arm'' command.
8276 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8278 * Makefile.in (sim_arm_h): Define.
8279 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8280 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8281 (arm_register_sim_regno): New function, map an internal REGNUM
8282 onto a simulator register number.
8283 (arm_gdbarch_init): Set register_sim_regno.
8285 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8287 * MAINTAINERS: Add self.
8289 2002-06-11 Jim Blandy <jimb@redhat.com>
8291 * source.c (source_info): Mention whether the symtab has
8292 information about preprocessor macros.
8294 Call the command `info macro', not `show macro'.
8295 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8297 (_initialize_macrocmd): Register `info_macro_command' in
8298 `infolist', not `showlist'.
8300 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8302 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8303 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8304 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8305 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8306 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8308 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8309 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8310 (_initialize_mips_tdep): Remove dead code.
8311 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8312 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8313 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8314 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8315 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8316 MIPS_LAST_FP_ARG_REGNUM): Remove.
8318 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8320 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8321 (unwind_tmp_obstack_free, parse_frame_info)
8322 (update_context, cfi_read_fp, cfi_write_fp)
8323 (cfi_frame_chain, cfi_init_extra_frame_info)
8324 (cfi_virtual_frame_pointer): Use the above function.
8325 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8327 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8329 * v850-tdep.c (v850_type_is_scalar): New function.
8330 (v850_use_struct_convention): Match current gcc implementation
8331 as close as possible.
8332 (v850_push_arguments): Fix stack_offset handling. Don't write
8333 struct_addr into register. This is done by v850_store_struct_return.
8334 (v850_extract_return_value): Care for structs.
8335 (v850_store_return_value): Ditto.
8336 (v850_store_struct_return): Actually write address.
8338 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8340 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8341 without debug information too.
8343 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8345 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8346 Make multi-arch pure.
8347 * gdbarch.h, gdbarch.c: Re-generate.
8348 * arm-tdep.c (arm_print_float_info): Update.
8349 * arch-utils.h (default_print_float_info): Update.
8350 * arch-utils.c (default_print_float_info): Update.
8351 * infcmd.c (float_info): Update call.
8353 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8355 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8356 the front of the initialize list.
8358 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8360 * infrun.c (struct inferior_status): Replace fields
8361 selected_frame_address and selected_level with field
8363 (save_inferior_status): Update. Use get_frame_id.
8364 (struct restore_selected_frame_args): Delete.
8365 (restore_selected_frame): Update. Use frame_find_by_id.
8366 (restore_inferior_status): Update.
8368 * breakpoint.h (struct breakpoint): Change type of
8369 watchpoint_frame to frame_id.
8370 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8371 call to get_current_frame.
8372 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8374 (watchpoint_check): Use frame_find_by_id.
8376 * frame.h (record_selected_frame): Delete declaration.
8377 * stack.c (record_selected_frame): Delete function.
8379 * frame.h (struct frame_id): Define.
8380 (get_frame_id): Declare.
8381 (frame_find_by_id): Declare.
8382 * frame.c (frame_find_by_id): New function.
8383 (get_frame_id): New function.
8385 2002-06-10 Andrey Volkov <avolkov@transas.com>
8387 * ser-e7kpc.c: Fix duplicated define and call of
8388 _initialize_ser_e7000pc
8390 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8392 * signals/signals.c (target_signal_from_host): Fix #ifdef
8394 (do_target_signal_to_host): Likewise.
8396 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8398 * mips-tdep.c (mips_find_abi_section): New function.
8399 (mips_gdbarch_init): Call it.
8401 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8403 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8404 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8405 after Andrew's 2002-06-08 gdbarch change.
8407 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8409 * i386-linux-nat.c (suppy_gregset): Don't supply
8410 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8412 (fill_gregset): Don't fetch it under the same circumstances.
8414 2002-06-09 Andrew Cagney <cagney@redhat.com>
8416 * Makefile.in (callback_h): Define.
8417 (remote_sim_h): Update path to remote-sim.h.
8418 (remote-rdp.o): Add $(callback_h).
8419 (remote-sim.o): Use $(callback_h).
8420 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8421 * remote-rdp.c: Include "gdb/callback.h".
8423 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8425 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8426 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8428 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8430 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8431 * rdi-share/serpardr.c: Ditto.
8432 * rdi-share/unixcomm.c: Ditto.
8433 * rdi-share/serdrv.c: Ditto.
8434 * rdi-share/hostchan.h: Ditto.
8435 * rdi-share/hostchan.c: Ditto.
8436 * rdi-share/host.h: Ditto.
8437 * rdi-share/devsw.c: Ditto.
8439 * objfiles.h: Change type of obj_private to void pointer.
8440 * pa64solib.c: Update copyright. Don't include "assert.h", use
8441 strcmp instead of STREQ, use LONGEST, do not use PTR
8442 * somsolib.c: Ditto.
8444 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8445 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8446 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8448 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8450 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8451 (default_get_saved_register): Delete function.
8452 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8453 generic_unwind_get_saved_register.
8454 * gdbarch.h, gdbarch.c: Re-generate.
8456 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8458 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8459 generic_func_frame_chain_valid.
8460 * gdbarch.h, gdbarch.c: Re-generate.
8461 * blockframe.c (generic_func_frame_chain_valid): Only check
8462 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8463 passing FP to PC_IN_CALL_DUMMY.
8466 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8468 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8469 (register_gdbarch_data): Initialize init_p.
8470 (gdbarch_data): Initialize data pointer using the init function.
8471 (init_gdbarch_data): Delete function.
8472 (gdbarch_update_p): Update.
8473 (initialize_non_multiarch): Update.
8474 (struct gdbarch): Add field initialized_p.
8475 * gdbarch.h, gdbarch.c: Re-generate.
8477 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8479 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8480 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8481 better do the things actually here.
8482 * x86-64-tdep.c (x86_64_register_name2nr): New.
8483 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8484 (x86_64_gdbarch_init): Respect the above change.
8485 * x86-64-tdep.h (x86_64_register_name2nr)
8486 (x86_64_register_nr2name): Add prototypes.
8487 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8489 2002-06-06 Michael Snyder <msnyder@redhat.com>
8491 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8492 Delete extra braces and re-indent.
8493 (d10v_store_return_value): Char return values
8494 must be shifted over by one byte in R0.
8495 (d10v_extract_return_value): Delete extra braces, re-indent.
8497 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8499 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8500 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8501 (d10v_integer_to_address): Rewrite.
8502 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8503 the d10v specific functions which take care of converting to the
8506 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8508 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8509 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8511 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8513 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8515 * config/tm-linux.h: Ditto.
8516 * config/alpha/tm-alphalinux.h: Ditto.
8517 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8518 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8519 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8520 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8521 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8522 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8523 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8524 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8525 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8526 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8527 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8528 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8529 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8530 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8531 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8532 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8533 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8534 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8535 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8536 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8537 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8538 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8539 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8540 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8541 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8542 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8543 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8544 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8545 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8546 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8547 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8548 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8549 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8550 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8551 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8552 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8553 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8555 2002-05-04 Aidan Skinner <aidan@velvet.net>
8557 * ada-exp.tab.c: New file
8558 * ada-exp.y: New file
8559 * ada-lang.c: New file
8560 * ada-lang.h: New file
8561 * ada-lex.c: New file
8562 * ada-lex.l: New file
8563 * ada-tasks.c: New file
8564 * ada-typeprint.c: New file
8565 * ada-valprint.c: New file
8567 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8569 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8570 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8572 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8574 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8575 insetead of ppc-linux-tdep.o.
8576 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8577 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8579 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8581 2002-05-07 Christian Groessler <chris@groessler.org>
8582 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8583 bit register contents for little endian hosts.
8585 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8587 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8590 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8592 * gdbarch.h: Regenerate.
8594 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8596 * MAINTAINERS: Add everyone to write-after-approval list.
8598 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8600 * stack.c (frame_info): Use frame_register_unwind instead of
8601 saved_regs. Mention when the SP is on the stack or in a register.
8603 * frame.h (frame_register_unwind_ftype): Define. Document.
8604 (struct frame_info): Add field register_unwind and
8605 register_unwind_cache.
8606 (frame_register_unwind): Declare.
8607 (generic_unwind_get_saved_register): Declare.
8609 * frame.c (frame_register_unwind): New function.
8610 (generic_unwind_get_saved_register): New function.
8612 * blockframe.c (generic_call_dummy_register_unwind): New function.
8613 (frame_saved_regs_register_unwind): New function.
8614 (set_unwind_by_pc): New function.
8615 (create_new_frame): New function.
8616 (get_prev_frame): New function.
8618 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8620 * a29k-share/: Delete directory.
8621 * remote-vx29k.c: Delete file.
8623 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8625 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8626 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8628 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8630 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8631 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8634 (sparcnbsd-tdep.o): New dependency lists.
8635 * NEWS: Note new UltraSPARC NetBSD native configuration.
8636 * configure.host (sparc64-*-netbsd*): New host.
8637 * configure.tgt (sparc-*-netbsdelf*)
8638 (sparc-*-netbsd*): Set gdb_target to nbsd.
8639 (sparc64-*-netbsd*): New target.
8640 * sparc64nbsd-nat.c: New file.
8641 * sparcnbsd-nat.c: New file.
8642 * sparcnbsd-tdep.c: New file.
8643 * sparcnbsd-tdep.h: New file.
8644 * config/sparc/nbsd.mt: New file.
8645 * config/sparc/nbsd64.mh: New file.
8646 * config/sparc/nbsd64.mt: New file.
8647 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8648 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8650 * config/sparc/nbsdaout.mt: Remove.
8651 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8652 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8654 * config/sparc/nbsdelf.mt: Remove.
8655 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8656 sparc-nat.c compatiblity defines.
8657 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8658 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8659 * config/sparc/tm-nbsd64.h: New file.
8660 * config/sparc/tm-nbsdaout.h: Remove.
8661 * config/sparc/xm-nbsd.h: Remove.
8663 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8665 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8666 * sparc-tdep.c: Include osabi.h.
8667 (gdbarch_tdep): Add osabi member.
8668 (_initialize_sparc_tdep): Use gdbarch_register.
8669 (sparc_gdbarch_init): Use generic OS ABI framework.
8670 (sparc_dump_tdep): New function.
8672 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8674 * corefile.c (do_captured_read_memory_integer): Return non-zero
8676 (safe_read_memory_integer): Copy result of memory read when
8677 status is non-zero. Also, add comments.
8679 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8681 * Makefile.in (ppc_tdep_h): Define.
8684 (rs6000-tdep.o): Use $(ppc_tdep_h).
8687 (ppcnbsd-tdep.o): New dependency lists.
8688 * ppc-tdep.h: Use generic OS ABI framework.
8689 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8690 (ppc_linux_init_abi): New functions.
8691 (ppc_sysv_abi_broken_use_struct_convention)
8692 (ppc_sysv_abi_use_struct_convention)
8693 (ppc_sysv_abi_push_arguments): Move to...
8694 * ppc-sysv-tdep.c: ...here.
8695 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8696 * rs6000-tdep.c (process_note_abi_tag_sections)
8697 (get_elfosabi): Remove.
8698 (rs6000_gdbarch_init): Use generic OS ABI framework.
8699 (rs6000_dump_tdep): New function.
8700 (_initialize_rs6000_tdep): Use gdbarch_register.
8701 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8702 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8703 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8704 of ppc-linux-tdep.o.
8705 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8706 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8707 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8708 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8709 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8710 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8712 2002-05-29 Jim Blandy <jimb@redhat.com>
8714 * macroscope.c (default_macro_scope): Put `void' in empty argument
8717 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8719 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8720 * arch-utils.c: Include "sim-regno.h".
8721 * gdbarch.sh: Don't include "sim-regno.h".
8722 * gdbarch.h, gdbarch.c: Regenerate.
8723 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8725 * arch-utils.h (legacy_register_sim_regno): To here.
8726 * remote-sim.c (legacy_register_sim_regno): Move function from
8728 * arch-utils.c (legacy_register_sim_regno): To here.
8730 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8732 * sim-regno.h: New file.
8733 * Makefile.in (sim_regno_h): Define.
8734 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8735 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8736 (legacy_register_sim_regno): New function.
8737 (one2one_register_sim_regno): New function.
8738 (gdbsim_fetch_register): Rewrite.
8739 (gdbsim_store_register): Only store a register when
8740 REGISTER_SIM_REGNO is valid.
8741 * d10v-tdep.c: Include "sim-regno.h".
8742 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8743 (d10v_ts3_register_sim_regno): Ditto.
8744 * gdbarch.sh: Include "sim-regno.h".
8745 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8746 * gdbarch.h, gdbarch.c: Regenerate.
8747 * arch-utils.h (default_register_sim_regno): Delete declaration.
8748 * arch-utils.c (default_register_sim_regno): Delete function.
8750 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8752 * ppcnbsd-nat.c: Rewrite.
8753 * ppcnbsd-tdep.c: New file.
8754 * ppcnbsd-tdep.h: New file.
8755 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8756 solib.o, and solib-svr4.o.
8757 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8758 nbsd-tdep.o, and corelow.o.
8760 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8762 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8763 `tr' and `sed'. Mention that `broken' targets are not expected to
8766 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8768 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8769 Let PC point right after the prologue before looking up symbols.
8771 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8773 * i386-tdep.c (i386_register_virtual_type): Return
8774 builtin_type_vec128i for SSE registers.
8776 * gdbtypes.h (builtin_type_vec128i): Declare.
8778 * gdbtypes.c (build_builtin_type_vec128i): New function.
8779 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8780 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8781 (build_gdbtypes): Initialize new builtin vector types.
8782 (_initialize_gdbtypes): Register new vector types with gdbarch.
8784 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8786 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8787 since it has been multi-arch'd.
8788 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8789 Move Alpha and VAX multi-arch news entries to same section
8790 as other multi-arch news.
8792 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8794 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8795 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8796 static. Rename some register numbers to put them in ns32k-tdep
8798 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8799 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8801 (_initialize_ns32k_tdep): Use gdbarch_register.
8802 * ns32k-tdep.h: New file.
8803 * ns32knbsd-tdep.c: New file.
8804 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8805 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8806 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8807 REGISTER_BYTES, REGISTER_BYTE): Remove.
8808 * config/ns32k/tm-ns32k.h: New file.
8809 * config/ns32k/tm-umax.h: Remove.
8811 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8813 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8814 ns32k_store_struct_return, ns32k_extract_return_value,
8815 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8817 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8818 ns32k_saved_pc_after_call.
8819 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8820 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8821 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8822 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8823 ns32k_extract_struct_value_address.
8825 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8827 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8828 ns32k_fix_call_dummy): New.
8829 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8830 ns32k_call_dummy_words.
8831 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8832 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8833 CALL_DUMMY_NARGS): Remove.
8834 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8836 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8838 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8839 ns32k_frame_saved_pc, ns32k_frame_args_address,
8840 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8841 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8842 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8843 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8844 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8845 (BREAKPOINT): Remove..
8846 (FRAME_CHAIN): Define as ns32k_frame_chain.
8847 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8848 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8849 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8850 (FRAME_FIND_SAVED_REGS): Remove.
8851 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8852 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8853 (POP_FRAME): Define as ns32k_pop_frame.
8855 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8857 * ns32k-tdep.c (ns32k_register_byte_32082,
8858 ns32k_register_byte_32382, ns32k_register_raw_size,
8859 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8861 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8862 ns32k_register_byte_32382.
8863 * config/ns32k/tm-umax.h: Update copyright years.
8864 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8865 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8866 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8867 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8868 (ns32k_get_enter_addr): Fix prototype.
8870 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8872 * ns32k-tdep.c: Update copyright years.
8873 (ns32k_register_name_32082): New function.
8874 (ns32k_register_name_32382): Ditto.
8875 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8876 (REGISTER_NAME): Define as ns32k_register_name_32382.
8877 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8878 (REGISTER_NAME): Define as ns32k_register_name_32082.
8880 2002-05-24 Jim Blandy <jimb@redhat.com>
8882 * dwarf2read.c (free_line_header): Use xfree, not free.
8884 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8886 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8887 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8889 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8891 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8893 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8895 From Ross Alexander at NEC Europe:
8896 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8898 2002-05-23 Michael Snyder <msnyder@redhat.com>
8900 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8901 for input, rather than parse_and_eval_address.
8903 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8905 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8906 * Makefile.in (sim_d10v_h): Update definition.
8908 2002-05-24 Andrew Cagney <cagney@redhat.com>
8910 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8911 change `2002-05-22 Michael Snyder' below.
8912 (d10v_push_arguments): Ditto.
8913 (d10v_extract_return_value): Ditto.
8915 2002-05-23 Jim Blandy <jimb@redhat.com>
8917 * macrotab.c (check_for_redefinition): Don't complain if the new
8918 definition is the same as the previous one. Take more arguments
8919 to allow the comparison.
8920 (macro_define_object, macro_define_function): Pass more arguments
8921 to check_for_redefinition.
8923 2002-05-22 Michael Snyder <msnyder@redhat.com>
8925 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8926 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8927 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8928 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8929 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8930 Add a temp variable to save a call (and a memory read).
8931 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8932 if possible (so that PC_IN_CALL_DUMMY will work).
8934 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8936 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8938 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8940 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8942 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8943 (dwarf2_build_frame_info): Add offset to fde->initial_location
8944 so that frames of shared libraries are mapped correctly.
8945 (execute_stack_op): Change type of 'result' from ULONGEST to
8948 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8950 * config/alpha/tm-nbsd.h: Include solib.h.
8952 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8954 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8955 assumptions about the host's byte order.
8957 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8959 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8961 * alphanbsd-tdep.c: Include solib-svr4.h.
8962 * shnbsd-tdep.c: Ditto.
8964 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8966 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8967 nbsd-tdep.h to dependency list.
8968 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8969 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8970 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8971 nbsdaout.mh and nbsdelf.mh consistently.
8972 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8973 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8974 nbsdaout.mt and nbsdelf.mh consistently.
8975 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8976 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8977 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8978 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8979 a.out shared library stuff from here...
8980 * config/nm-nbsdaout.h: ...to here.
8981 * config/tm-nbsd.h: Remove.
8982 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8983 * config/arm/nbsd.mh: Remove.
8984 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8986 * config/arm/nbsdaout.mh: New file.
8987 * config/arm/nbsdelf.mh: New file.
8988 * config/arm/nm-nbsdaout.h: New file.
8989 * config/i386/nbsd.mh: Remove.
8990 * config/i386/nbsd.mt: Remove.
8991 * config/i386/nbsdaout.mh: New file.
8992 * config/i386/nbsdaout.mt: New file.
8993 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8994 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8995 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8996 i386_register_u_addr): Remove.
8997 * config/i386/nm-nbsdaout.h: New file.
8998 * config/i386/nm-nbsdelf.h: Remove.
8999 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9000 (USE_STRUCT_CONVENTION): Remove.
9001 * config/i386/tm-nbsdaout.h: New file.
9002 * config/i386/tm-nbsdelf.h: Remove.
9003 * config/m68k/nbsd.mh: Remove.
9004 * config/m68k/nbsd.mt: Remove.
9005 * config/m68k/nbsdaout.mh: New file.
9006 * config/m68k/nbsdaout.mt: New file.
9007 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9008 * config/m68k/nm-nbsdaout.h: New file.
9009 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9010 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9011 * config/ns32k/nbsd.mh: Remove.
9012 * config/ns32k/nbsd.mt: Remove.
9013 * config/ns32k/nbsdaout.mh: New file.
9014 * config/ns32k/nbsdaout.mt: New file.
9015 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9016 * config/ns32k/nm-nbsdaout.h: New file.
9017 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9018 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9019 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9020 (SVR4_SHARED_LIBS): Remove.
9021 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9022 * config/sparc/nbsd.mh: Remove.
9023 * config/sparc/nbsd.mt: Remove.
9024 * config/sparc/nbsdaout.mh: New file.
9025 * config/sparc/nbsdaout.mt: New file.
9026 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9027 * config/sparc/nbsdelf.mt: New file.
9028 * config/sparc/nm-nbsdaout.h: New file.
9029 * config/sparc/nm-nbsdelf.h: Remove.
9030 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9031 * config/sparc/tm-nbsdaout.h: New file.
9033 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9035 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9037 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9039 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9041 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9043 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9045 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9047 * NEWS: Note new MIPS NetBSD native configuration.
9048 * configure.host (mips*-*-netbsd*): New host.
9049 * configure.tgt (mips*-*-netbsd*): New target.
9050 * mipsnbsd-nat.c: New file.
9051 * mipsnbsd-tdep.c: New file.
9052 * mipsnbsd-tdep.h: New file.
9053 * config/mips/nbsd.mh: New file.
9054 * config/mips/nbsd.mt: New file.
9055 * config/mips/nm-nbsd.h: New file.
9056 * config/mips/tm-nbsd.h: New file.
9058 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9060 * Makefile.in (SFILES): Add osabi.c.
9061 (COMMON_OBS): Add osabi.o.
9062 (osabi.o): New dependency list.
9063 * osabi.c: New file.
9064 * osabi.h: New file.
9065 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9067 * Makefile.in (alpha_tdep_h): Define and use instead of
9069 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9070 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9072 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9073 * alpha-tdep.h: Include osabi.h.
9074 (alpha_abi): Remove.
9075 (gdbarch_tdep): Use generic OS ABI framework.
9076 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9077 gdbarch_register_osabi.
9078 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9079 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9080 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9082 * Makefile.in (sh_tdep_h): Add osabi.h.
9083 * sh-tdep.h (sh_osabi): Remove.
9084 (gdbarch_tdep): Use generic OS ABI framework.
9085 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9086 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9087 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9088 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9090 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9091 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9092 gdbarch_register_osabi.
9093 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9094 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9095 (get_elfosabi): Rename to...
9096 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9097 ABI framework support routines.
9098 (arm_gdbarch_init): Use generic OS ABI framework.
9099 (arm_dump_tdep): Likewise.
9100 (_initialize_arm_tdep): Likewise.
9101 * arm-tdep.h: Include osabi.h.
9103 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9105 (arm_gdbarch_register_os_abi): Remove prototype.
9106 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9107 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9109 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9110 * mips-tdep.c: Include osabi.h.
9111 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9114 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9116 * h8300-tdep.c: Fix formatting.
9118 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9120 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9121 printing vector registers.
9123 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9125 From Fernando Nasser:
9126 * remote.c (remote_async_open_1): Re-throw the exception when the
9128 (remote_cisco_open): Ditto.
9129 (remote_open_1): Ditto.
9131 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9133 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9134 (remote_start_remote): Add uiout parameter. Pass through to
9135 remote_start_remote_dummy.
9136 (remote_open_1): Use catch_exception instead of catch_errors.
9137 (remote_async_open_1): Ditto.
9138 (remote_cisco_open): Ditto.
9140 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9142 * remote.c (remote_start_remote): Replace PTR with void pointer.
9143 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9146 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9148 * gdb_indent.sh: Allow the script to be run in the sim directory.
9150 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9152 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9153 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9155 * corelow.c (core_open): Only call set_gdbarch_from_file if
9158 2002-05-17 Andrey Volkov <avolkov@transas.com>
9160 * h8300-tdep.c: Add support of EXR register
9161 * config/h8300/tm-h8300.h: Ditto.
9163 2002-05-17 Andrey Volkov <avolkov@transas.com>
9165 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9167 2002-05-17 Andrey Volkov <avolkov@transas.com>
9169 * h8300-tdep.c: Change literal regnums to REGNO.
9171 2002-05-17 Jim Blandy <jimb@redhat.com>
9173 * NEWS: Note addition of macro support.
9175 Expand preprocessor macros in C expressions.
9176 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9177 (scan_macro_expansion, scanning_macro_expansion,
9178 finished_macro_expansion): New function declarations.
9179 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9180 variable declarations.
9181 * parser-defs.h (expression_context_pc): New declaration.
9182 * parse.c (expression_context_pc): New variable.
9183 (parse_exp_1): Set expression_context_pc, as well as
9184 expression_context_block.
9185 * c-exp.y (yylex): If we're not already reading the result of a
9186 macro expansion, try to macro-expand the next token. When we're
9187 done scanning a macro expansion, switch back to the mainline text.
9188 Commas and `if's in a macro's expansion don't terminate the input.
9189 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9190 (macro_original_text, macro_expanded_text,
9191 expression_macro_lookup_func, expression_macro_lookup_baton): New
9193 (scan_macro_expansion, scanning_macro_expansion,
9194 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9195 c_preprocess_and_parse): New functions.
9196 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9197 c_preprocess_and_parse, instead of c_parse.
9198 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9199 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9201 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9203 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9204 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9205 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9207 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9209 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9211 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9213 * Makefile.in (sh_tdep_h): Define and use.
9214 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9215 register enum): Move to...
9216 * * sh-tdep.h: ...here.
9217 * sh-tdep.c: Include sh-tdep.h.
9218 * sh3-rom.c: Likewise.
9219 * shnbsd-tdep.c: Likewise.
9221 2002-05-16 Michael Snyder <msnyder@redhat.com>
9223 * arm-tdep.c: Spelling fix in comment.
9225 2002-05-16 Jim Blandy <jimb@redhat.com>
9227 Add commands for manually expanding macros and showing their
9229 * macrocmd.c, macroscope.c, macroscope.h: New files.
9230 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9231 (macroscope_h): New variable.
9232 (HFILES_NO_SRCDIR): Add macroscope.h.
9233 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9234 (macroscope.o, macrocmd.o): New rules.
9236 Teach the Dwarf 2 reader to read macro information.
9237 * dwarf2read.c: #include "macrotab.h".
9238 (dwarf_macinfo_buffer): New variable.
9239 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9241 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9242 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9243 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9244 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9245 dwarf2_macro_spaces_in_definition): New complaints.
9246 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9247 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9248 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9249 the partial symbol table.
9250 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9251 from what's recorded in the partial symbol table.
9252 (read_file_scope): If the compilation unit has a
9253 `DW_AT_macro_info' attribute, read its macro information.
9254 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9256 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9259 * ser-tcp.c: Don't include <netinet/udp.h>.
9261 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9263 * MAINTAINERS: Update my email address.
9265 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9267 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9268 include file of the same name.
9270 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9272 * configure.tgt: Mark v850 as multi-arched.
9273 * config/v850/tm-v850.h: Remove file.
9274 * config/v850/v850.mt: Eliminate TM_FILE.
9276 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9278 * v850-tdep.c: Full multi-arch.
9279 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9280 Define GDB_MULTI_ARCH to 2.
9282 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9284 * p-exp.y (current_type): New static variable.
9285 Carries the type of the expression at the position that is parsed.
9286 (push_current_type, pop_current_type): Two new functions. Used
9287 to store/restore current_type in expression on specific tokens.
9288 (search_field): New static variable. Set to one after parsing a point
9289 as at that point only a FIELDNAME token should be searched.
9290 (FIELDNAME): New token. After a point only a token belonging to
9291 current_type type definition is allowed.
9292 (all over token rules): reset and change current_type according
9294 (exp '[' rule): insert implicit array index field if
9295 exp is a pascal string type.
9297 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9299 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9300 frame info. Use frame_info's saved_regs instead of matching member
9301 in extra_frame_info throughout.
9302 (v850_frame_init_saved_regs): New function.
9303 (v850_init_extra_frame_info): Move most functionality into
9304 v850_frame_init_saved_regs().
9305 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9306 (v850_frame_find_saved_regs): Remove declaration.
9307 (FRAME_FIND_SAVED_REGS): Remove definition.
9308 (v850_frame_init_saved_regs): Add declaration.
9309 (FRAME_INIT_SAVED_REGS): Add definition.
9311 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9313 * v850-tdep.c: Begin multi-arch'ing v850.
9314 (v850_target_architecture_hook): Remove function.
9315 (v850_gdbarch_init): New function. Add code previously in
9316 v850_target_architecture_hook().
9317 (_initialize_v850_tdep): Don't set target_architecture_hook.
9318 Call register_gdbarch_init() instead.
9320 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9322 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9323 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9324 (fixup_class_method_type): Likewise.
9326 2002-05-15 Jim Blandy <jimb@redhat.com>
9328 Add macro structures to GDB's symbol tables. Nobody puts anything
9330 * symtab.h (struct symtab): New member: `macro_table'.
9331 * buildsym.h (pending_macros): New global variable.
9332 * buildsym.c: #include "macrotab.h".
9333 (buildsym_init): Initialize `pending_macros'.
9334 (end_symtab): If we found macro information while reading a CU's
9335 debugging info, do build a symtab structure for it. Make the
9336 symtab point to the macro information, and clear the
9337 `pending_macros' pointer which held it while we were reading the
9339 (really_free_pendings): Free any pending macro table.
9340 * objfiles.h (struct objfile): New member: `macro_cache'.
9341 * objfiles.c (allocate_objfile): Set allocate and free functions
9342 for the macro cache's objstack.
9343 (free_objfile): Empty the macro cache's obstack.
9344 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9345 set new allocate and free functions for it.
9346 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9347 free functions for the macro cache's objstack. (Why is this
9348 function building its own objfile?)
9349 * symmisc.c (print_objfile_statistics): Print statistics on the
9351 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9353 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9355 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9356 (REGISTER_U_ADDR): Delete definition.
9357 (arm_register_u_addr): Delete declaration.
9359 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9361 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9362 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9364 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9366 * regcache.c (register_valid): Revise comments refering to "Not
9367 available" and "unavailable".
9368 * frame.c (frame_register_read): Ditto.
9369 * findvar.c (value_of_register): Ditto.
9371 2002-05-15 Andrew Cagney <cagney@redhat.com>
9373 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9374 (remote-sim.o): Update dependencies.
9375 (d10v-tdep.o): Specify dependencies.
9376 (sim_d10v_h): Define.
9378 2002-05-14 Jim Blandy <jimb@redhat.com>
9380 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9381 * macrotab.c (macro_lookup_inclusion, find_definition,
9382 new_macro_table): Same.
9384 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9385 not `! strcmp ()'. This is a dubious improvement.
9386 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9388 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9389 although it's not necessary, to avoid a warning.
9391 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9393 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9394 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9395 TYPE_INSTANCE_FLAGS.
9396 (struct main_type): New.
9397 (struct type): Move most members to struct main_type. Change
9398 cv_type and as_type to new type_chain member. Add instance_flags.
9399 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9400 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9401 (finish_cv_type): Remove prototype.
9402 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9404 (alloc_type_instance): New function.
9405 (smash_type): New function.
9406 (make_pointer_type, make_reference_type, make_function_type)
9407 (smash_to_member_type, smash_to_method_type): Call smash_type.
9408 (make_qualified_type): New function.
9409 (make_type_with_address_space): Call make_qualified_type.
9410 (make_cv_type): Likewise.
9411 (finish_cv_type): Remove unnecessary function.
9412 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9413 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9414 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9415 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9416 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9417 * hpread.c (hpread_read_struct_type): Likewise.
9418 * stabsread.c (read_struct_type): Likewise.
9420 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9422 * configure.tgt: Add a catch all sh* target, for cases like
9423 sh[2,3,4]-elf and sh-hms.
9425 2002-05-14 Keith Seitz <keiths@redhat.com>
9427 * event-loop.c (create_file_handler): Don't do anything but
9428 update data when we are given a fd which we are already
9431 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9433 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9434 (update_context): Use __func__ in warnings.
9436 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9438 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9439 and tcp_close to net_open and net_close.
9440 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9441 using UDP if requested. Don't try to disable Nagle on UDP
9443 * remote.c (remote_serial_open): New function. Warn about UDP.
9444 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9446 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9448 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9450 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9452 * configure.tgt: Remove sh-hms target.
9453 * MAINTAINERS: Don't list sh-hms as a separate target.
9455 2002-05-13 Jim Blandy <jimb@redhat.com>
9457 Add first preprocessor macro-expansion files.
9458 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9459 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9460 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9461 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9462 (COMMON_OBS): Add macrotab.o, macroexp.o.
9463 (macroexp.o, macrotab.o): New rules.
9465 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9467 * config/m88k/tm-m88k.h: Update copyright.
9468 (m88k_target_write_pc): Declare
9469 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9470 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9471 (SHIFT_INST_REGS): Update definition.
9472 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9473 using old definition of TARGET_WRITE_PC.
9474 * regcache.c (generic_target_write_pc): Delete code handling
9476 * gdbarch.sh (NNPC_REGNUM): Delete.
9477 * gdbarch.h, gdbarch.c: Regenerate.
9479 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9481 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9484 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9486 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9487 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9488 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9490 * c-typeprint.c (cp_type_print_method_args): Likewise.
9491 (c_type_print_args): Likewise.
9492 * d10v-tdep.c (d10v_push_arguments): Likewise.
9493 (d10v_extract_return_value): Likewise.
9494 * expprint.c (print_subexp): Likewise.
9495 * gdbtypes.c (lookup_primitive_typename): Likewise.
9496 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9497 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9498 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9499 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9500 (TYPE_VECTOR): Likewise.
9501 * hpread.c (hpread_read_struct_type)
9502 (fix_static_member_physnames, fixup_class_method_type)
9503 (hpread_type_lookup): Likewise.
9504 * mdebugread.c (parse_symbol, parse_type): Likewise.
9505 * p-lang.c (is_pascal_string_type): Likewise.
9506 * valops.c (hand_function_call): Likewise.
9507 * x86-64-tdep.c (classify_argument): Likewise.
9509 * hpread.c (hpread_read_function_type)
9510 (hpread_read_doc_function_type): Call replace_type.
9511 * dstread.c (create_new_type): Delete.
9512 (decode_dst_structure, process_dst_function): Call alloc_type.
9513 Use type access macros.
9515 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9517 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9518 the're not supported by the current architecture.
9519 (i387_fill_fxsave): Likewise.
9521 2002-05-12 Fred Fish <fnf@redhat.com>
9523 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9524 sect_index_xxx members to index the first slot in section_offsets
9525 if all of the section_offsets are zero.
9527 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9529 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9530 checked in with last change.
9532 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9534 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9535 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9538 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9540 * Makefile.in: Update dependencies.
9542 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9544 * language.c (local_hex_string_custom): Simplify. Do not depend
9545 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9547 * memattr.c (mem_info_command): Replace calls to
9548 longest_local_hex_string and longest_local_hex_string_custom.
9549 * buildsym.c (make_blockvector): Ditto.
9550 * solib.c (info_sharedlibrary_command): Ditto.
9551 * tracepoint.c (tracepoints_info): Ditto.
9552 * symtab.c (print_msymbol_info): Ditto.
9554 * language.c (local_hex_string): Delete.
9555 (local_hex_string_custom): Delete.
9556 (longest_local_hex_string): Rename to local_hex_string.
9557 (longest_local_hex_string_custom): Rename to
9558 local_hex_string_custom.
9559 * language.h (local_hex_string): Change parameter type to LONGEST.
9560 (local_hex_string_custom): Ditto.
9561 (longest_local_hex_string): Delete declaration.
9562 (longest_local_hex_string_custom): Ditto.
9564 * solib.c: Update copyright.
9565 * memattr.c: Update copyright.
9567 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9569 * arch-utils.h (legacy_register_to_value): Declare.
9570 (legacy_value_to_register): Declare.
9571 (legacy_convert_register_p): Declare.
9572 * arch-utils.c (legacy_register_to_value): New function.
9573 (legacy_value_to_register): New function.
9574 (legacy_convert_register_p): New function.
9576 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9577 (VALUE_TO_REGISTER): Define.
9578 (CONVERT_REGISTER_P): Define.
9579 * gdbarch.h, gdbarch.c: Regenerate.
9581 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9583 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9586 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9587 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9589 * Makefile.in: Update dependencies for valops.c.
9590 * valops.c: Include "gdb_assert.h".
9591 (typecmp): Skip THIS parameter to methods.
9592 (find_method_list): Remove static_memfuncp argument,
9593 update callers. Check for stub methods.
9594 (find_value_oload_method_list): Don't set *static_memfuncp.
9595 (find_overload_match): Don't check for stub methods. Assert
9596 that methods are not stubbed. Handle static methods.
9597 (value_find_oload_method_list): Remove static_memfuncp argument.
9598 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9599 to the argument list for static stub methods.
9600 * value.h (value_find_oload_method_list): Update prototype.
9602 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9604 * arch-utils.h (generic_register_size): Declare.
9605 (generic_register_raw_size, generic_register_virtual_size): Delete
9607 * arch-utils.c (generic_register_raw_size): Delete.
9608 (generic_register_size): New function.
9609 (generic_register_virtual_size): Delete.
9611 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9612 default generic_register_size.
9613 * gdbarch.h, gdbarch.c: Re-generate.
9615 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9616 register_virtual_size.
9617 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9618 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9620 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9622 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9623 * gdbarch.h, gdbarch.c: Regenerate.
9624 * gnu-v3-abi.c: Update copyright.
9625 (vtable_address_point_offset): Update.
9626 (gnuv3_rtti_type): Update.
9627 (gnuv3_baseclass_offset): Update.
9628 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9629 (init_fetch_link_map_offsets): Update.
9630 * remote.c (get_remote_state): Update.
9632 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9634 * TODO: Remove value_headof/value_from_vtable_info comment.
9635 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9636 * values.c (value_headof, value_from_vtable_info): Delete.
9637 * value.h (value_from_vtable_info): Delete prototype.
9639 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9641 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9642 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9644 (gdb_assert_h): Define.
9645 (gdb_wait_h): Define.
9646 (gdb_regex_h): Define.
9648 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9650 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9651 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9653 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9655 * nbsd-tdep.c: Fix comment.
9657 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9659 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9660 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9661 (nbsd-tdep.o): New dependency list.
9662 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9664 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9665 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9666 * nbsd-tdep.c: New file.
9667 * nbsd-tdep.h: New file.
9668 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9670 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9671 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9672 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9673 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9675 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9677 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9678 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9679 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9680 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9681 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9682 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9684 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9686 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9687 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9688 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9689 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9690 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9691 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9692 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9694 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9696 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9697 fetch_elfcore_registers to...
9698 * i386nbsd-tdep.c: ...here.
9699 (i386nbsd_use_struct_convention): Rename to...
9700 (i386nbsd_aout_use_struct_convention): ...this.
9701 (i386nbsd_supply_reg): New function.
9702 (i386nbsd_fill_reg): New function.
9703 (fetch_core_registers): Use i386nbsd_supply_reg.
9704 (fetch_elfcore_registers): Likewise.
9705 (_initialize_i386nbsd_tdep): New function.
9706 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9707 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9708 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9709 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9710 (i386nbsd_aout_use_struct_convention): ...this.
9712 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9714 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9715 (store_inferior_registers): Use shnbsd_fill_reg.
9716 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9717 sh_nbsd_supply_register): Collapse into...
9718 (shnbsd_supply_reg): ...this.
9719 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9720 (shnbsd_fill_reg): ...this.
9721 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9722 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9723 (fetch_core_registers): Use shnbsd_supply_reg.
9724 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9725 (sh_nbsd_core_fns): Rename to...
9726 (shnbsd_core_fns): ...this.
9727 (sh_nbsd_elfcore_fns): Rename to...
9728 (shnbsd_elfcore_fns): ...this.
9729 (sh_nbsd_init_abi): Rename to...
9730 (shnbsd_init_abi): ...this.
9731 (_initialize_sh_nbsd_tdep): Rename to...
9732 (_initialize_shnbsd_tdep): ...this.
9733 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9734 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9735 sh_nbsd_fill_register): Remove prototypes.
9736 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9738 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9740 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9741 (i387-nat.o): Delete dependency list.
9742 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9743 (x86-64-linux-nat.o): Likewise.
9744 * i387-nat.c: Delete file, moving contents to...
9745 * i387-tdep.c: ...here.
9746 * i387-nat.h: Rename...
9747 * i387-tdep.h: ...to this.
9748 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9749 * i386-linux-nat.c: Likewise.
9750 * i386bsd-nat.c: Likewise.
9751 * i386gnu-nat.c: Likewise.
9752 * i386nbsd-nat.c: Likewise.
9753 * i386v4-nat.c: Likewise.
9754 * x86-64-linux-nat.c: Likewise.
9755 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9756 * config/i386/go32.mh (NATDEPFILES): Likewise.
9757 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9758 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9759 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9760 * config/i386/linux.mh (NATDEPFILES): Likewise.
9761 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9762 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9763 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9764 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9766 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9768 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9769 (alphanbsd-nat.o): Remove dependency list.
9770 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9771 * alphanbsd-nat.c: Delete. Contents moved to...
9772 * alphanbsd-tdep.c: ...here.
9773 (_initialize_alphanbsd_tdep): Register core functions.
9774 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9776 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9778 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9779 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9780 (alphanbsd-nat.o): Likewise.
9781 (alphabsd-tdep.o): New dependency list.
9782 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9783 (fill_gregset): Use alphabsd_fill_reg.
9784 (supply_fpregset): Use alphabsd_supply_fpreg.
9785 (fill_fpregset): Use alphabsd_fill_fpreg.
9786 (fetch_inferior_registers): Use struct reg and struct fpreg
9787 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9788 and alphabsd_supply_fpreg.
9789 (store_inferior_registers): Use struct reg and struct fpreg
9790 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9791 and alphabsd_fill_fpreg.
9792 * alphabsd-tdep.c: New file.
9793 * alphabsd-tdep.h: New file.
9794 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9795 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9796 alphabsd_supply_fpreg.
9797 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9798 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9800 2002-05-11 Eric Christopher <echristo@redhat.com>
9802 * mips-tdep.c (mips_double_register_type): Fix thinko.
9803 (mips_single_register_type): Ditto.
9804 * MAINTAINERS: Add self.
9806 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9808 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9809 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9810 right thing on architectures with different endianness and/or
9813 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9815 From Christian Limpach <chris@Pin.LU>
9816 * configure.in: Change sed expression which comments out
9817 NATDEPFILES to also comment out continuation lines.
9818 * configure: Regenerate.
9820 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9822 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9825 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9827 * sh-tdep.c: Include correct file.
9829 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9831 New support for sh64-elf (sh5) target.
9833 * configure.tgt: For sh64-elf target, default to sh-elf.
9835 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9836 (struct gdbarch_tdep): Add new fields for new registers and ABI
9839 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9840 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9841 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9842 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9843 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9844 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9845 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9846 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9847 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9848 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9849 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9850 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9851 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9852 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9853 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9854 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9855 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9856 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9857 sign_extend, sh64_nofp_frame_init_saved_regs,
9858 sh64_init_extra_frame_info, sh64_get_saved_register,
9859 sh64_extract_struct_value_address, sh64_pop_frame,
9860 sh64_push_arguments, sh64_extract_return_value,
9861 sh64_store_return_value, sh64_show_media_regs,
9862 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9863 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9864 sh_sh64_register_virtual_type,
9865 sh_sh64_register_convert_to_virtual,
9866 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9867 sh64_register_read, sh64_pseudo_register_write,
9868 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9869 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9870 sh64_do_pseudo_register, sh_compact_do_registers_info,
9871 sh64_do_registers_info, sh_gdbarch_init): New functions.
9873 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9875 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9877 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9879 * linespec.c (decode_line_1): Check for a double quote after
9880 a filename correctly.
9882 2002-05-10 Jim Blandy <jimb@redhat.com>
9884 Properly track the size of the current objfile's .debug_line section.
9885 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9886 (DWARF_LINE_SIZE): New macro.
9887 (dwarf2_build_psymtabs_hard): Record the line section's size in
9888 the partial symbol table.
9889 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9892 2002-05-10 Petr Sorfa <petrs@caldera.com>
9894 * ia64-tdep.c: Handle breakpoints on L instruction type
9895 in MLX instruction bundle by moving the breakpoint to
9896 the third slot (X instruction type) as L holds only data.
9898 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9900 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9901 (process_one_symbol): Complain about discarding local symbols
9902 due to a misplaced N_LBRAC entry.
9904 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9906 From Daniel Berlin <dan@cgsoftware.com>
9907 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9908 decrease the depth we are at, in the case of templates.
9910 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9912 * mips-tdep.c (mips_float_register_type): New function.
9913 (mips_double_register_type): New function.
9914 (mips_print_register): Use them.
9915 (do_fp_register_row): Likewise.
9917 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9919 * signals/signals.c (signals): Remove conditional compilation around
9920 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9921 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9923 2002-05-09 Michael Snyder <msnyder@redhat.com>
9925 * remote-rdp.c (remote_rdp_can_run): Remove.
9927 2002-05-09 Tom Tromey <tromey@redhat.com>
9929 * jv-valprint.c (java_val_print): Handle `char' as a special case
9932 2002-05-09 Michael Snyder <msnyder@redhat.com>
9934 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9935 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9936 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9937 str r(0123),[sp,#nn].
9938 (arm_skip_prologue): Ditto. Also make disassembly
9939 order-independent by placing it in a loop.
9941 2002-05-06 Michael Snyder <msnyder@redhat.com>
9943 * stabsread.c (read_type): Add recognition for new attribute:
9944 "@V;" means that an array type is actually a vector.
9945 This is analogous to the vector flag that's been added to dwarf2.
9947 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9949 * i386-tdep.h (i386_abi): New enum.
9950 (struct gdbarch_tdep): Replace os_ident member with abi.
9951 (i386_gdbarch_register_os_abi): New prototype.
9952 * i386-tdep.c (i386_abi_names): New array.
9953 (process_note_abi_tag_sections): Removed.
9954 (process_note_sections): New function.
9955 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9956 (struct i386_abi_handler): New struct.
9957 (i386_abi_handler_list): New variable.
9958 (i386_gdbarch_register_os_abi): New function.
9959 (i386_gdbarch_init): Adapt for the changes given above.
9961 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9963 * gregset.h: Say "GNU/Linux".
9965 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9967 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9968 (build_gdbtypes): Build builtin_type_v2_float.
9969 (_initialize_gdbtypes): Register new builtin type.
9971 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9973 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9974 (clear_gdbarch_swap): New function.
9975 (initialize_non_multiarch): Call.
9976 (gdbarch_update_p): Before calling init(), swap out and clear the
9977 existing architecture.
9978 * gdbarch.c: Regenerate.
9980 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9982 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9985 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9987 * sh-nbsd-nat.c: Rename to...
9988 * shnbsd-nat.c: ...this.
9989 * sh-nbsd-tdep.c: Rename to...
9990 * shnbsd-tdep.c: ...this.
9991 * sh-nbsd-tdep.h: Rename to...
9992 * shnbsd-tdep.h: ...this.
9993 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9994 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9996 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9998 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9999 concatenation for command help messages.
10001 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10003 * NEWS: Note new sh*-*-netbsdelf* configuration.
10004 * configure.host: Set gdb_host_cpu to sh for all sh*.
10005 (sh*-*-netbsdelf*): New host.
10006 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10007 (sh*-*-netbsdelf*): New target.
10008 * sh-nbsd-nat.c: New file.
10009 * sh-nbsd-tdep.c: New file.
10010 * sh-nbsd-tdep.h: New file.
10011 * config/sh/nbsd.mh: New file.
10012 * config/sh/nbsd.mt: New file.
10013 * config/sh/nm-nbsd.h: New file.
10014 * config/sh/tm-nbsd.h: New file.
10016 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10018 * sh-tdep.c (sh_osabi_names): Declare.
10019 (process_note_abi_tag_sections): New function.
10020 (get_elfosabi): Ditto.
10021 (sh_gdbarch_register_os_abi): Ditto.
10022 (sh_dump_tdep): Ditto.
10023 _initialize_sh_tdep): Use gdbarch_register to register
10024 sh_gdbarch_init and sh_dump_tdep.
10025 * config/sh/tm-sh.h (sh_osabi): Declare.
10026 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10028 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10030 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10031 (thumb_scan_prologue): Ditto.
10032 (arm_find_callers_reg): Ditto.
10033 (arm_frame_chain): Ditto.
10034 (arm_init_extra_frame_info): Ditto.
10035 (arm_frame_saved_pc): Ditto.
10036 (arm_pop_frame): Ditto.
10037 (arm_push_return_address): New function.
10038 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10039 call_dummy_location, call_dummy_breakpoint_offset_p,
10040 call_dummy_breakpoint_offset, call_dummy_p,
10041 call_dummy_stack_adjust_p, call_dummy_words,
10042 sizeof_call_dummy_words, call_dummy_start_offset,
10043 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10044 call_dummy_address, push_return_address and push_dummy_frame for
10045 generic dummy frames.
10047 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10049 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10050 size computation for alloca.
10051 (sh_fp_frame_init_saved_regs): Likewise.
10053 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10055 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10056 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10057 * arm-tdep.c (arm_store_return_value): Use them.
10058 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10059 * remote-rdp.c (remote_rdp_fetch_register): Use
10060 ARM_MAX_REGISTER_RAW_SIZE.
10061 (remote_rdp_store_register): Likewise.
10063 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10065 * dwarf2cfi.c: Code cleanup, removed unused variables,
10066 added default labels to switch {} statements.
10067 * x86-64-tdep.c: Ditto.
10068 * x86-64-linux-nat.c: Ditto.
10070 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10072 * solib.h: Protect against multiple inclusion.
10074 2002-05-06 Jim Blandy <jimb@redhat.com>
10076 Add first preprocessor macro-expansion files.
10077 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10078 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10079 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10080 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10081 (COMMON_OBS): Add macrotab.o, macroexp.o.
10082 (macroexp.o, macrotab.o): New rules.
10084 Separate the job of reading the line number info statement program
10085 header (...expialidocious) out into its own function.
10086 * dwarf2read.c (struct line_head, struct filenames, struct
10087 directories): Replace with...
10088 (struct line_header): New structure, containing the full
10089 contents of the statement program header, including the
10090 include directory and file name tables.
10091 (read_file_scope): If we have line number info, instead of just
10092 calling dwarf_decode_lines to do all the work, call
10093 dwarf_decode_line_header first to get a `struct line_header'
10094 containing the data in the statement program header, and then
10095 pass that to dwarf_decode_lines, which will pick up where that
10096 left off. Be sure to clean up the `struct line_header' object.
10097 (dwarf_decode_line_header, free_line_header, add_include_dir,
10098 add_file_name): New functions.
10099 (dwarf_decode_lines): Move all the code to read the statement
10100 program header into dwarf_decode_line_header. Take the line
10101 header it built as the first argument, instead of the offset to
10102 the compilation unit's line number info. Use the new `struct
10103 line_header' type instead of the old structures. No need to do
10104 cleanups here now, since we don't allocate anything.
10105 (dwarf2_statement_list_fits_in_line_number_section,
10106 dwarf2_line_header_too_long): New complaints.
10108 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10110 * gdbtypes.c (init_vector_type): New function.
10111 (build_builtin_type_vec128): Simplify the representation of SIMD
10113 (build_gdbtypes): Initialize new builtin vector types.
10114 (_initialize_gdbtypes): Register new vector types with gdbarch.
10115 (builtin_type_v4_float, builtin_type_v4_int32,
10116 builtin_type_v8_int16, builtin_type_v16_int8,
10117 builtin_type_v2_int32, builtin_type_v4_int16,
10118 builtin_type_v8_int8): New (renamed) SIMD types.
10120 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10122 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10123 (i387_fill_fxsave): Likewise.
10125 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10127 * alpha-tdep.c (alpha_extract_return_value): Don't use
10128 non-constant array size in prototype.
10130 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10132 From Brian Taylor <briant at model dot com>:
10133 * ui-out.c (ui_out_field_core_addr): Use the function
10134 longest_local_hex_string_custom'to format addresses > 32 bits
10137 * ui-out.c (ui_out_field_core_addr): Update comment.
10139 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10141 * stack.c (select_and_print_frame): Make static. Delete the
10143 (func_command): Update call.
10144 (select_frame_command): Delete code computing the frame level.
10145 * frame.h (select_and_print_frame): Delete declaration.
10147 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10149 * sparc-tdep.c (sparc_get_saved_register): Comment why
10150 get_prev_frame call is safe.
10152 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10154 * frame.h (select_frame): Delete level parameter.
10155 * stack.c (select_frame): Update. Use frame_relative_level to
10156 obtain the frame's level.
10157 (select_and_print_frame): Update call.
10158 (select_frame_command): Ditto.
10159 (up_silently_base): Ditto.
10160 (down_silently_base): Ditto.
10161 * ocd.c (ocd_start_remote): Ditto.
10162 * remote-rdp.c (remote_rdp_open): Ditto.
10163 * remote-mips.c (mips_initialize): Ditto.
10164 (common_open): Ditto.
10165 * remote-e7000.c (e7000_start_remote): Ditto.
10166 * m3-nat.c (select_thread): Ditto.
10167 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10168 (child_get_current_exception_event): Ditto.
10169 * varobj.c (varobj_create): Ditto.
10170 (varobj_update): Ditto.
10171 (c_value_of_root): Ditto.
10172 * tracepoint.c (finish_tfind_command): Ditto.
10173 * corelow.c (core_open): Ditto.
10174 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10175 * thread.c (info_threads_command): Ditto.
10176 (switch_to_thread): Ditto.
10177 * infrun.c (normal_stop): Ditto.
10178 (restore_selected_frame): Ditto.
10179 (restore_inferior_status): Ditto.
10180 * breakpoint.c (insert_breakpoints): Ditto.
10181 (watchpoint_check): Ditto.
10182 (bpstat_stop_status): Ditto.
10183 (do_enable_breakpoint): Ditto.
10184 * blockframe.c (flush_cached_frames): Ditto.
10185 (reinit_frame_cache): Ditto.
10187 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10189 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10192 2002-05-04 Jim Blandy <jimb@redhat.com>
10194 * gdbtypes.c (replace_type): Doc fix.
10196 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10198 * valprint.c (strcat_longest): Delete commented out function.
10201 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10203 * MAINTAINERS: Mark a29k as deleted.
10204 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10205 Move new configurations to the top.
10206 * configure.tgt: Remove a29k.
10207 * config/a29k/tm-vx29k.h: Delete.
10208 * config/a29k/vx29k.mt: Delete.
10209 * config/a29k/tm-a29k.h: Delete.
10210 * config/a29k/a29k-udi.mt: Delete.
10211 * config/a29k/a29k.mt: Delete.
10212 * a29k-tdep.c: Delete.
10213 * remote-udi.c: Delete.
10214 * remote-mm.c: Delete.
10215 * remote-eb.c: Delete.
10216 * remote-adapt.c: Delete.
10217 * Makefile.in: Remove obsolete code.
10218 * config/s390/s390x.mt: Ditto.
10219 * config/s390/s390.mt: Ditto.
10220 * config/sparc/sparclynx.mh: Ditto.
10221 * config/sparc/linux.mh: Ditto.
10222 * config/pa/hppaosf.mh: Ditto.
10223 * config/pa/hppabsd.mh: Ditto.
10224 * config/ns32k/nbsd.mt: Ditto.
10225 * config/mips/vr5000.mt: Ditto.
10226 * config/m68k/sun3os4.mh: Ditto.
10227 * config/m68k/nbsd.mt: Ditto.
10228 * config/m68k/m68klynx.mh: Ditto.
10229 * config/m32r/m32r.mt: Ditto.
10230 * config/i386/x86-64linux.mt: Ditto.
10231 * config/i386/nbsdelf.mt: Ditto.
10232 * config/i386/nbsd.mt: Ditto.
10233 * config/i386/i386lynx.mh: Ditto.
10235 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10237 * target.c (debug_print_register): New function. Handle oversize
10239 (debug_to_fetch_registers): Call.
10240 (debug_to_store_registers): Call.
10242 2002-05-03 Jim Blandy <jimb@redhat.com>
10244 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10245 (read_type): Doc fix.
10246 * gdbtypes.c (replace_type): Doc fix.
10248 * stabsread.c (multiply_defined_struct): New complaint.
10249 (read_struct_type): If the type we were passed isn't empty, or
10250 incomplete, don't read the new struct type into it; complain,
10251 and return the original type unchanged. Take a new `type_code'
10252 argument, which is the type code for the new type.
10253 (read_type): Rather than storing the type's type code here, pass
10254 it as an argument to read_struct_type, and let that take care of
10255 storing it. That way, we don't overwrite the original type code,
10256 so read_struct_type can use it to decide whether we're overwriting
10257 something we shouldn't.
10258 (complain_about_struct_wipeout): New function.
10260 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10262 * gdbarch.sh: Assert that gdbarch is non-NULL.
10263 * gdbarch.c: Regenerate.
10265 2002-05-03 Jason Merrill <jason@redhat.com>
10267 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10270 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10272 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10273 (x86_64_dwarf2gdb_regno_map_length),
10274 (x86_64_dwarf2_reg_to_regnum): Added.
10275 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10276 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10277 (_initialize_x86_64_tdep): Synced with the change above.
10278 (x86_64_skip_prologue): Reformulated message.
10280 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10282 * f-exp.y: Also use new prev_lexptr variable
10283 to improve error reporting. Based on Michael Snyder
10284 2002-04-24 dated patch to c-exp.y.
10285 * jv-exp.y: Likewise.
10286 * m2-exp.y: Likewise.
10288 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10290 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10291 we are dealing with vectors.
10293 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10295 * config/m68k/tm-nbsd.h: Obvious fix,
10296 correct machine name.
10298 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10300 * p-typeprint.c (pascal_type_print_base): Add support
10301 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10303 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10305 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10306 for fondamental pascal 'char' type.
10308 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10310 * p-lang.h (is_pascal_string_type): Declaration changed,
10311 new sixth argument of type char ** added.
10312 * p-lang.c (is_pascal_string_type): Implementation
10313 changed. Args length_pos, length_size, string_pos, char_size
10314 can now be NULL. New argument arrayname set to the field
10315 name of the char array. Return value set to char array
10316 field index plus one.
10317 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10318 is_pascal_string_type function.
10320 2002-05-02 Andrew Cagney <cagney@redhat.com>
10322 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10323 <cagney@redhat.com> change.
10324 * gdbarch.c: Regenerate.
10326 2002-05-02 Andrew Cagney <cagney@redhat.com>
10328 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10329 before probing for a new one. Detect errorenous gdbarch_init
10331 * gdbarch.c: Regenerate.
10333 2002-05-01 Andrew Cagney <cagney@redhat.com>
10335 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10336 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10337 * config/v850/tm-v850.h: Ditto. Update copyright.
10339 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10341 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10344 2002-04-30 Michael Snyder <msnyder@redhat.com>
10346 * arm-tdep.c: Whitespace clean-ups.
10347 (arm_skip_prologue): Fix thinko; two lines
10348 should have been removed as part of 4/24 change.
10350 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10352 * rs6000-tdep.c: Added comment describing how fpscr register
10353 numbers were chosen.
10355 2002-04-30 Michael Snyder <msnyder@redhat.com>
10357 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10359 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10361 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10362 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10363 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10365 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10367 From Louis Hamilton <hamilton@redhat.com>:
10368 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10369 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10370 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10371 not bfd-private xcoff data, to determine wordsize.
10372 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10374 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10376 GDB 5.2 released from 5.2 branch.
10378 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10380 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10381 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10382 (x86_64_register_info_table): Added comments with register numbers.
10384 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10386 * rs6000-tdep.c (rs6000_extract_return_value,
10387 rs6000_store_return_value): Handle returning vectors.
10388 (rs6000_gdbarch_init): Use
10389 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10390 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10392 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10394 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10395 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10397 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10399 * hpread.c (hpread_psymtab_to_symtab_1,
10400 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10401 with fprintf_unfiltered (gdb_stderr,...).
10403 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10405 * remote-array.c (printf_monitor, write_monitor,
10406 array_insert_breakpoint, array_remove_breakpoint ):
10407 Replace fprintf (stderr,...
10408 with fprintf_unfiltered (gdb_stderr,....
10409 * remote-es.c: Likewise.
10410 * remote-os9k.c: Likewise.
10411 * remote-st.c: Likewise.
10413 2002-04-28 Andreas Schwab <schwab@suse.de>
10415 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10416 linux-proc.o and gcore.o.
10418 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10420 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10421 code without frame pointers.
10423 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10425 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10426 ON_STACK is needed.
10428 2002-04-26 Ben Elliston <bje@redhat.com>
10430 * target.c (do_xfer_memory): Correct reference to the new option
10431 "trust-readonly-sections".
10433 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10435 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10436 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10437 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10439 (read_array_type): Record the fact that this array type is really a
10440 vector (i.e. are passed in by value).
10442 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10444 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10445 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10446 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10447 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10448 * alpha-linux-tdep.c: Include frame.h.
10449 (alpha_linux_sigcontext_addr): New function.
10450 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10451 alpha_linux_sigcontext_addr.
10452 * alpha-osf1-tdep.c: Include gdbcore.h.
10453 (alpha_osf1_sigcontext_addr): New function.
10454 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10455 alpha_osf1_sigcontext_addr.
10456 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10457 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10459 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10461 * stack.c (selected_frame_level):
10462 (select_frame): Do not set selected_frame_level.
10463 * frame.h (selected_frame_level): Delete declaration.
10465 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10467 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10468 convert_from_func_ptr-addr when AIX / PowerOpen.
10470 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10472 * valops.c (hand_function_call): Call
10473 generic_save_call_dummy_addr.
10474 * frame.h (generic_save_call_dummy_addr): Declare.
10475 * blockframe.c (struct dummy_frame): Add fields call_lo and
10477 (generic_find_dummy_frame): Check for PC in range call_lo to
10478 call_hi instead of entry_point_address.
10479 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10480 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10481 (generic_save_call_dummy_addr): New function.
10483 2002-04-24 David S. Miller <davem@redhat.com>
10485 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10486 sparc_skip_prologue.
10487 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10488 information to find prologue when possible.
10489 (sparc_prologue_frameless_p): Call examine_prologue directly.
10490 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10491 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10493 (SKIP_PROLOGUE): Likewise.
10495 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10497 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10498 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10499 indicate that the condition it was testing is always true.
10500 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10501 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10502 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10504 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10506 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10507 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10508 tdep->jb_pc and tdep->jb_elt_size.
10509 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10510 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10511 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10512 * alpha-nat.c (get_longjmp_target): Remove.
10513 (JB_ELEMENT_SIZE): Ditto.
10515 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10516 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10517 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10518 to alpha_get_longjmp_target.
10519 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10520 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10521 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10523 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10525 * README: Update to GDB 5.2.
10527 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10529 * gdbarch.sh (LC_ALL): Set to `c'.
10531 2002-04-25 Theodore A. Roth <troth@verinet.com>
10533 * avr-tdep.c: Ran through gdb_indent.sh.
10535 2002-04-25 Theodore A. Roth <troth@verinet.com>
10537 * MAINTAINERS: Add myself as AVR maintainer.
10538 * NEWS: Note new target avr.
10540 2002-04-25 Theodore A. Roth <troth@verinet.com>
10542 * Makefile.in: Add support for AVR target.
10543 * configure.tgt: Add support for AVR target.
10544 * avr-tdep.c: New file
10545 * config/avr/avr.mt: New file.
10547 2002-04-25 Theodore A. Roth <troth@verinet.com>
10549 * MAINTAINERS: Add myself to write-after-approval.
10551 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10553 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10554 with fprintf_unfiltered (gdb_stderr,....
10556 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10559 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10561 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10563 * p-exp.y: Also use new prev_lexptr variable
10564 to improve error reporting. Based on Michael Snyder
10565 2002-04-24 dated patch to c-exp.y.
10567 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10569 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10570 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10571 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10573 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10575 (FUNCTION_START_OFFSET): Remove.
10576 (BREAKPOINT): Ditto.
10578 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10580 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10583 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10585 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10586 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10587 alpha_linux_pc_in_sigtramp.
10588 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10589 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10590 alpha_osf1_pc_in_sigtramp.
10591 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10592 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10593 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10594 alphafbsd_pc_in_sigtramp.
10595 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10596 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10597 alphanbsd_pc_in_sigtramp.
10598 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10599 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10601 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10603 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10605 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10607 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10609 (alphanbsd-nat.o): New dependency list.
10610 (alphanbsd-tdep.o): Ditto.
10611 * NEWS: Note new native NetBSD/alpha configuration.
10612 * alphanbsd-nat.c: New file.
10613 * alphanbsd-tdep.c: Ditto.
10614 * configure.host (alpha*-*-netbsd*): New host.
10615 * configure.tgt (alpha*-*-netbsd*): New target.
10616 * config/alpha/nbsd.mh: New file.
10617 * config/alpha/nbsd.mt: Ditto.
10618 * config/alpha/nm-nbsd.h: Ditto.
10619 * config/alpha/tm-nbsd.h: Ditto.
10621 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10623 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10624 (alpha-osf1-tdep.o): New dependency list.
10625 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10626 and skip_sigtramp_frame members.
10627 * alpha-linux-tdep.c: Include gdbcore.h.
10628 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10629 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10630 * alpha-osf1-tdep.c: New file.
10631 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10633 (alpha_frame_past_sigtramp_frame): New function.
10634 (alpha_dynamic_sigtramp_offset): Ditto.
10635 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10636 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10637 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10638 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10639 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10640 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10641 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10642 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10643 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10644 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10645 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10646 to find_solib_trampoline_target.
10647 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10648 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10649 (SKIP_TRAMPOLINE_CODE): Remove.
10650 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10651 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10652 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10653 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10654 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10655 (PROC_SIGTRAMP_MAGIC): Ditto.
10656 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10657 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10658 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10659 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10660 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10662 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10664 * NEWS: Note that Alpha targets are now multi-arch.
10666 2002-04-24 Michael Snyder <msnyder@redhat.com>
10668 * parser-defs.h (prev_lexptr): New external variable.
10669 * parse.c (parse_exp_1): Set prev_lexptr to null before
10670 calling the language-specific parser.
10671 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10672 (yyerror): Use prev_lexptr in error reporting.
10674 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10676 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10677 * gregset.h: If FILL_FPXREGSET is defined, provide
10678 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10679 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10680 is defined, call fill_fpxregset.
10682 2002-04-24 Roland McGrath <roland@frob.com>
10684 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10685 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10686 (supply_gregset, supply_fpregset): New functions.
10688 * gnu-nat.c (gnu_find_memory_regions): New function.
10689 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10690 (gnu_xfer_memory): Add a cast.
10692 2002-04-24 Michael Snyder <msnyder@redhat.com>
10694 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10695 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10696 of argument regs ("str r(0123), [r11, #-nn"]).
10697 (arm_skip_prologue): Better handling for frameless functions.
10698 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10699 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10701 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10703 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10704 NUM_PSEUDO_REGS can be used.
10706 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10708 * arch-utils.h: Update copyright.
10710 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10711 * gdbarch.h, gdbarch.c: Re-generate.
10713 * inferior.h (IN_SIGTRAMP): Delete definition.
10714 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10715 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10717 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10718 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10719 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10720 (find_proc_framesize): Ditto.
10721 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10722 (alpha_init_extra_frame_info): Ditto.
10723 * infrun.c (handle_inferior_event): Ditto.
10724 (handle_inferior_event): Ditto.
10725 (check_sigtramp2): Ditto.
10726 * blockframe.c (create_new_frame): Ditto.
10727 (get_prev_frame): Ditto.
10728 * ppc-linux-tdep.c: Update comments.
10729 * i386-linux-tdep.c: Update comments.
10730 * breakpoint.c (bpstat_what): Update comment.
10732 2002-04-24 David S. Miller <davem@redhat.com>
10734 * i960-tdep.c (register_in_window_p): New function.
10735 (i960_find_saved_register): Use it instead of
10736 REGISTER_IN_WINDOW_P.
10737 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10739 * symtab.h (find_stab_function_addr): Kill extern.
10740 * minsyms.c (find_stab_function_addr): Remove from here...
10741 * dbxread.c: ... to here, and mark it static.
10743 2002-04-20 David S. Miller <davem@redhat.com>
10745 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10746 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10748 2002-04-21 David S. Miller <davem@redhat.com>
10750 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10751 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10752 (vx_write_register): Likewise.
10754 2002-04-23 J. Brobecker <brobecker@gnat.com>
10756 * source.c (is_regular_file): New function.
10757 (openp): Check wether file to open is a regular file
10758 to avoid opening directories.
10760 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10762 * findvar.c (extract_signed_integer): Cast printf argument
10763 to suppress format warning.
10764 (extract_unsigned_integer): Likewise.
10765 * infcmd.c (registers_info): Likewise.
10766 * top.c (get_prompt_1): Likewise.
10767 * valops.c (value_assign): Likewise.
10768 * valprint.c (print_decimal): Likewise.
10770 2002-04-22 H.J. Lu (hjl@gnu.org)
10772 * c-exp.y (typebase): Support
10774 [long|long long|short] [signed|unsigned] [int|]
10778 signed [long|long long|short] int
10780 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10782 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10784 * vax-tdep.h: New file.
10785 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10786 Make several routines static.
10787 (vax_get_saved_register): New function.
10788 (vax_gdbarch_init): New function.
10789 (_initialize_vax_tdep): Register vax_gdbarch_init.
10790 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10791 Remove macros now under the control of gdbarch.
10793 2002-04-22 Michael Snyder <msnyder@redhat.com>
10795 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10796 Some whitespace and coding standards tweaks.
10798 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10800 * vax-tdep.c: Include regcache.h.
10801 (vax_call_dummy_words): New.
10802 (sizeof_vax_call_dummy_words): New.
10803 (vax_fix_call_dummy): New function.
10804 (vax_saved_pc_after_call): Ditto.
10805 * config/vax/tm-vax.h: Don't include regcache.h.
10806 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10807 (CALL_DUMMY): Remove.
10808 (CALL_DUMMY_WORDS): Define.
10809 (SIZEOF_CALL_DUMMY_WORDS): Define.
10810 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10812 2002-04-18 Michael Snyder <msnyder@redhat.com>
10814 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10816 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10818 * vax-tdep.c (vax_frame_chain): New function.
10819 (vax_push_dummy_frame): Ditto.
10820 (vax_pop_frame): Ditto.
10821 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10822 (FRAMELESS_FUNCTION_INVOCATION): Use
10823 generic_frameless_function_invocation_not.
10824 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10825 (POP_FRAME): Use vax_pop_frame.
10827 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10829 * vax-tdep.c (vax_store_struct_return): New function.
10830 (vax_extract_return_value): Ditto.
10831 (vax_store_return_value): Ditto.
10832 (vax_extract_struct_value_address): Ditto.
10833 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10834 vax_store_struct_return.
10835 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10836 (STORE_RETURN_VALUE): Use vax_store_return_value.
10837 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10839 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10841 * vax-tdep.c (vax_frame_saved_pc): New function.
10842 (vax_frame_args_address_correct): Ditto.
10843 (vax_frame_args_address): Ditto.
10844 (vax_frame_locals_address): Ditto.
10845 (vax_frame_num_args): Move code to be in proximity to
10846 other frame-related functions.
10847 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10848 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10849 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10850 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10851 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10853 2002-04-22 H.J. Lu (hjl@gnu.org)
10855 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10858 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10860 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10861 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10862 (FRAME_INIT_SAVED_REGS): New macro.
10864 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10866 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10868 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10870 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10872 (fetch_osf_core_registers): Likewise.
10873 (supply_gregset): Likewise.
10875 2002-04-22 J. Brobecker <brobecker@gnat.com>
10877 * symfile.h (get_section_index): Define.
10878 * symfile.c (get_section_index): New function.
10879 * mdebugread.c (SC_IS_SBSS): New macro.
10880 (SC_IS_BSS): Return true for the scBss storage class only, as
10881 the scSBss storage class refers to the .sbss section.
10882 (parse_partial_symbols): Discard the symbols which associated
10883 section does not exist.
10884 Make sure to use the .sbss section index for symbols which
10885 storage class is scBss, rather than using the .bss section index.
10887 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10889 * vax-tdep.c: Update copyright years.
10890 (vax_register_name): New function.
10891 (vax_register_byte): Ditto.
10892 (vax_register_raw_size): Ditto.
10893 (vax_register_virtual_size): Ditto.
10894 (vax_register_virtual_type): Ditto.
10895 * config/vax/tm-vax.h: Update copyright years.
10896 (REGISTER_NAMES): Remove.
10897 (REGISTER_NAME): Define.
10898 (REGISTER_BYTE): Use vax_register_byte.
10899 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10900 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10901 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10903 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10905 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10907 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10909 2002-04-21 David S. Miller <davem@redhat.com>
10911 * arch-utils.c (generic_prologue_frameless_p): Kill
10912 SKIP_PROLOGUE_FRAMELESS_P code.
10913 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10915 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10916 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10917 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10919 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10920 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10921 (sparc_gdbarch_init): Pass it to
10922 set_gdbarch_prologue_frameless_p.
10924 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10926 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10927 (alphabsd-nat.o): New dependency list.
10929 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10931 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10933 (alpha-linux-tdep.o): New dependency list.
10934 (alphafbsd-tdep.o): Likewise.
10936 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10938 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10940 * alpha-tdep.c: ...from here.
10941 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10943 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10945 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10946 prototype from here...
10947 * alpha-tdep.h: ...to here.
10949 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10951 * frame.h (selected_frame_level): Document as deprecated.
10952 (frame_relative_level): Declare.
10953 * stack.c (frame_relative_level): New function.
10954 (selected_frame_level): Document as deprecated.
10955 (select_frame): Do not set the selected_frame_level.
10957 * stack.c (frame_info, record_selected_frame): Update.
10958 (frame_command, current_frame_command): Update.
10959 (up_silently_base, up_command, down_silently_base): Update.
10960 (down_command): Update.
10961 * inflow.c (kill_command): Update.
10962 * tracepoint.c (finish_tfind_command): Update.
10963 * corelow.c (core_open): Update.
10964 * thread.c (info_threads_command): Update.
10965 (do_captured_thread_select): Update.
10966 * infcmd.c (finish_command): Update.
10967 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10969 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10971 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10973 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10975 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10978 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10980 * alphafbsd-tdep.c: Update copyright years. Include
10982 (alphafbsd_use_struct_convention): Make static.
10983 (alphafbsd_init_abi): New function.
10984 (_initialize_alphafbsd_tdep): New function.
10985 * config/alpha/tm-fbsd.h: Update copyright years.
10986 (USE_STRUCT_CONVENTION): Remove.
10988 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10990 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10991 an Alpha ABI variant.
10992 (alpha_abi_handler_list): Declare.
10993 (alpha_gdbarch_register_os_abi): New function.
10994 (alpha_gdbarch_init): Give registered ABI variant handlers a
10995 chance to tweak the gdbarch once we have set up defaults.
10996 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10998 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11000 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11001 to standard_coerce_float_to_double.
11002 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11004 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11006 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11007 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11008 from gdbarch_tdep rather than a constant.
11009 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11010 the default text address for all Alpha Unix ABIs.
11011 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11012 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11014 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11016 * alpha-tdep.h: New file. Includes several Alpha target constants
11018 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11019 let gdbarch deal with.
11020 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11021 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11022 to dependency list.
11023 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11024 Alpha target register names.
11025 * alphabsd-nat.c: Likewise.
11026 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11027 Alpha target register names. Make serveral routines static.
11028 (alpha_get_saved_register): New function.
11029 (alpha_abi_names): New.
11030 (process_note_abi_tag_sections): New function.
11031 (get_elfosabi): New function.
11032 (alpha_gdbarch_init): New function.
11033 (alpha_dump_tdep): New function.
11034 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11036 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11038 * frame.c (find_saved_register): Delete #ifdef
11039 HAVE_REGISTER_WINDOWS code.
11040 * config/sparc/tm-sparc.h: Update comments.
11041 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11043 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11045 * i960-tdep.c (i960_find_saved_register): New function.
11046 (i960_get_saved_register): New function.
11047 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11048 (i960_get_saved_register): Declare.
11049 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11051 2002-04-20 David S. Miller <davem@redhat.com>
11053 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11055 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11057 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11058 instead of NUM_PSEUDO_REGS.
11060 2002-04-20 David S. Miller <davem@redhat.com>
11062 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11063 GDB_MULTI_ARCH_PARTIAL
11064 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11065 define, let tm-sp64.h do it.
11067 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11069 * frame.c (find_saved_register): Avoid a NULL pointer
11070 dereference and actually walk the frame list.
11072 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11074 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11075 sorted in most most-recent-used order. Document.
11076 * gdbarch.h, gdbarch.c: Regenerate.
11078 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11080 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11082 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11083 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11084 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11087 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11090 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11091 (build_builtin_type_vec128): Ditto.
11092 (append_composite_type_field): Fix calculation of type length in
11095 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11097 * config/djgpp/README: Update.
11099 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11102 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11104 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11105 (alpha_setup_arbitrary_frame): ...to this.
11106 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11107 for alpha_setup_arbitrary_frame.
11109 2002-04-18 Andrew Cagney <cagney@redhat.com>
11111 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11112 * gdbarch.h, gdbarch.c: Regenerate.
11114 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11115 * target.h (memory_breakpoint_from_pc): Update declaration.
11116 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11118 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11119 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11120 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11121 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11122 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11123 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11124 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11125 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11126 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11127 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11128 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11129 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11131 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11133 * monitor.c (monitor_insert_breakpoint): Ditto.
11134 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11136 * config/mcore/tm-mcore.h: Update copyright.
11137 * mem-break.c: Ditto.
11138 * xstormy16-tdep.c: Ditto.
11140 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11142 * p-exp.y: Add precedence rule for '^' token.
11143 This removes the shift/reduce conflicts.
11144 Remove the comment concerning these shift/reduce conflicts.
11146 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11148 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11149 (registers_powerpc_nofp): New register set for processors
11150 without floating point unit.
11152 2002-04-18 David S. Miller <davem@redhat.com>
11154 * MAINTAINERS: Add myself to write-after-approval.
11156 2002-04-17 Michael Snyder <msnyder@redhat.com>
11158 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11160 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11162 * rs6000-tdep.c (frame_initial_stack_address): Use
11163 frame_register_read to read the alloca_reg.
11165 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11167 * frame.c (find_saved_register): Find saved registers in the next
11171 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11173 * gdbarch.sh (LANG): Set to ``c''.
11175 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11177 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11179 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11181 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11184 * hpread.c (hpread_get_lntt): Add declaration.
11185 Also fix PR gdb/391.
11187 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11189 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11190 * aclocal.m4, configure: Re-generate.
11193 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11195 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11196 instead of tm_print_insn.
11198 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11200 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11202 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11204 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11205 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11206 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11208 2002-04-12 Don Howard <dhoward@redhat.com>
11210 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11211 max_user_call_depth.
11212 (init_cmd_lists): Initialize the new value;
11213 * cli/cli-script.c (execute_user_command): Limit the call depth of
11214 user defined commands. This avoids a core-dump when user commands
11215 are infinitly recursive.
11217 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11219 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11220 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11221 from tdep struct instead of DEFAULT_LR_SAVE.
11222 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11223 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11224 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11226 2002-04-12 Michael Snyder <msnyder@redhat.com>
11228 * Remote.c: Spelling fix.
11229 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11230 If no symbol found for "sbrk", try "_sbrk".
11231 (make_output_phdrs): Use bfd_section_name.
11232 (gcore_copy_callback): Use bfd_section_name.
11233 * eval.c: Indentation fix-ups.
11234 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11235 in case it gets applied to an address that is already
11236 in the instruction space.
11237 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11238 * symfile.c: Fix indentation, long lines.
11239 * source.c: White space fix-up.
11241 2002-04-12 Andrew Cagney <cagney@redhat.com>
11243 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11244 * frame.c (frame_register_read): New function. Return non-zero on
11246 (read_relative_register_raw_bytes_for_frame): Delete.
11247 (read_relative_register_raw_bytes): Delete.
11248 * frame.h (frame_register_read): Declare.
11249 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11250 * sh-tdep.c: Ditto.
11251 * infcmd.c (do_registers_info): Ditto.
11252 * hppa-tdep.c: Ditto.
11253 * rs6000-tdep.c: Ditto.
11254 * h8500-tdep.c: Ditto.
11255 * mips-tdep.c: Ditto.
11256 * h8300-tdep.c: Ditto.
11257 * z8k-tdep.c: Ditto.
11259 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11261 From Jimi X <jimix@watson.ibm.com>:
11262 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11265 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11267 From Jimi X <jimix@watson.ibm.com>:
11268 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11271 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11273 From Jimi X <jimix@watson.ibm.com>:
11274 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11275 register sets for these processor variants.
11277 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11279 * regformats/reg-ppc.dat: Support FPSCR.
11281 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11283 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11284 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11285 Add fpscr as an invalid/unfetchable register.
11286 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11287 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11288 (fill_fpregset): Add support for register fpscr.
11289 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11290 (fill_gregset): Account for the fact that register ``mq'' might
11292 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11293 (registers_power): Add fpscr to register set at slot 71.
11294 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11295 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11297 2002-04-11 Michael Snyder <msnyder@redhat.com>
11299 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11300 * configure: Regenerate.
11301 * config.in: Regenerate.
11302 * acconfig.h: Add define for _SYSCALL32.
11303 * core-sol2.c: Remove #define _SYSCALL32.
11304 * solib-legacy.c: Remove #define _SYSCALL32.
11306 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11308 * stack.c (select_frame): Cleanup internal error message, do not
11311 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11313 * stack.c (select_frame): Check that selected_frame and the
11314 specified level are as expected.
11315 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11317 * frame.h (struct frame_info): Add field `level'. Update
11319 Work-in-progress PR gdb/464.
11321 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11323 * maint.c (maint_print_section_info): Rename print_section_info.
11324 (print_bfd_section_info, print_objfile_section_info): Update.
11325 * inferior.h (struct gdbarch): Add opaque declaration.
11326 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11327 * gdbarch.h: Regenerate.
11329 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11331 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11332 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11333 (kernel_u_size): Added.
11334 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11335 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11337 2002-04-04 Jim Ingham <jingham@apple.com>
11339 * valarith.c (find_size_for_pointer_math): New function, either returns
11340 the size for a pointer's target, returns 1 for void *, or errors for
11342 (value_add, value_sub): use find_size_for_pointer_math.
11344 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11346 * linux-low.c (linux_look_up_symbols): New hook.
11347 (linux_target_ops): Add linux_look_up_symbols.
11348 * remote-utils.c (decode_address): New function.
11349 (look_up_one_symbol): New function.
11350 * server.c (handle_query): Call target look_up_symbols hook.
11351 * server.h (look_up_one_symbol): Add prototype.
11352 * target.h (struct target_ops): Add look_up_symbols hook.
11354 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11356 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11357 override FP_REGNUM with frame->fp. Update copyright.
11358 * parse.c (num_std_regs, std_regs): Delete.
11359 (target_map_name_to_register): Do not search std_regs. Update
11360 function description.
11361 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11362 declarations. Update copyright.
11365 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11367 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11368 after the last symbol in a block.
11370 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11372 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11373 is non zero as a found symbol.
11375 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11377 * findvar.c: Include "builtin-regs.h".
11378 (value_of_register): Call value_of_builtin_reg when applicable.
11379 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11380 (target_map_name_to_register): Call
11381 builtin_reg_map_name_to_regnum.
11382 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11383 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11384 (builtin_regs_h): Define.
11385 (builtin-regs.o): New target.
11386 (findvar.o): Add $(builtin_regs_h).
11387 * builtin-regs.c, builtin-regs.h: New files.
11388 * std-regs.c: New file.
11389 Partial fix for PR gdb/251.
11391 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11393 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11394 it's no longer required.
11396 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11398 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11400 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11402 From Jimi X <jimix@watson.ibm.com>:
11403 * rs6000-tdep.c (rs6000_software_single_step): Use
11404 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11405 and size. Use target_insert_breakpoint() and
11406 target_remove_breakpoint() to insert and remove breakpoints
11407 instead of explicit memory reads and writes.
11409 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11411 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11412 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11413 ELF_OBJECT_FORMAT ifdef.
11415 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11417 From Jimi X <jimix@watson.ibm.com>:
11418 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11420 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11422 From Jimi X <jimix@watson.ibm.com>:
11423 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11424 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11426 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11428 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11429 s/asprintf/xasprintf/.
11430 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11432 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11434 I believe Jeff Law denies responsability for this one:
11435 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11436 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11437 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11438 Work-around for PR gdb/366.
11440 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11442 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11443 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11444 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11446 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11448 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11449 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11452 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11454 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11457 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11459 * README (Reporting Bugs in GDB): Document the bug web page as the
11460 prefered way of submitting bugs.
11463 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11465 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11466 -1. Update comment.
11467 * gdbarch.h, gdbarch.c: Re-generate.
11469 2002-04-07 Andreas Schwab <schwab@suse.de>
11471 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11472 buffer to regcache_collect.
11474 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11476 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11477 * gdbarch.c, gdbarch.h: Re-generate.
11479 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11481 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11482 declaration. Fix -Werror.
11484 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11486 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11487 * gdbarch.c: Regenerate.
11489 2002-04-05 Michael Snyder <msnyder@redhat.com>
11491 * breakpoint.c (clear_command): Rewrite middle section to
11492 combine two loops with identical control conditions.
11493 Add a cleanup to eliminate a memory leak.
11494 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11496 2002-04-05 H.J. Lu (hjl@gnu.org)
11498 * solib-svr4.c (bkpt_names): Add "__start".
11500 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11502 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11503 as test for 64 bit target.
11505 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11507 * h8500-tdep.c (h8500_write_fp): Delete function.
11508 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11509 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11510 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11512 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11513 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11515 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11516 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11517 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11518 (d10v_write_fp): Delete function.
11519 * inferior.h (write_fp, generic_target_write_fp): Delete
11521 * regcache.c (generic_target_write_fp): Delete function.
11522 (write_fp): Delete function.
11523 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11524 * gdbarch.h, gdbarch.c: Regenerate.
11525 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11526 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11527 (sparc64_write_fp): Delete declaration.
11528 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11529 (h8500_write_fp): Delete declaration.
11531 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11533 * sparc-tdep.c (sparc64_write_fp): Delete.
11534 (sparc_push_dummy_frame): Replace write_fp call with code to store
11536 (sparc_gdbarch_init): Do not initialize write_fp.
11538 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11540 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11543 2002-03-29 Jim Blandy <jimb@redhat.com>
11545 * stack.c (get_selected_block): Add new argument `addr_in_block',
11546 used to return the exact code address we used to select the block,
11547 not just the block.
11548 * blockframe.c (get_frame_block, get_current_block): Same.
11549 * frame.h (get_frame_block, get_current_block,
11550 get_selected_block): Update declarations.
11551 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11552 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11554 2002-04-05 Michael Snyder <msnyder@redhat.com>
11556 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11559 2002-04-05 J. Brobecker <brobecker@gnat.com>
11561 * utils.c (xfullpath): New function.
11562 * defs.h (xfullpath): Add declaration.
11563 * source.c (openp): Use xfullpath in place of gdb_realpath to
11564 avoid resolving the basename part of filenames when the
11565 associated file is a symbolic link. This fixes a potential
11566 inconsistency between the filenames known to GDB and the
11567 filenames it prints in the annotations.
11568 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11569 to be able to match a filename with either the real filename, or
11570 the name of any symbolic link to this file.
11571 (lookup_partial_symtab): Ditto.
11573 2002-04-04 Michael Snyder <msnyder@redhat.com>
11575 * breakpoint.c: Add support for hardware breakpoints in overlays.
11576 (overlay_events_enabled): New state variable.
11577 (insert_breakpoints): Use overlay_events_enabled to decide
11578 whether to attempt to set a breakpoint at the overlay load addr.
11579 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11580 (remove_breakpoint): Use overlay_events_enabled to decide
11581 whether breakpoints need to be removed from overlay load addr.
11582 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11583 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11584 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11585 disable_overlay_breakpoints): Update overlay_events_enabled.
11587 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11589 * dwarf2read.c (struct function_range): New.
11590 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11591 (check_cu_functions): New.
11592 (read_file_scope): Initialize global function lists.
11593 Call dwarf_decode_line after processing children.
11594 (read_func_scope): Add to global function list.
11595 (dwarf_decode_lines): Call check_cu_functions everywhere
11596 record_line is called. Call record_line with a linenumber
11597 of 0 to mark sequence ends.
11599 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11601 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11602 change sync with glibc.
11604 2002-04-03 Jim Blandy <jimb@redhat.com>
11606 * configure.in: Call AC_C_INLINE.
11607 * configure: Regenerated.
11609 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11611 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11612 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11614 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11616 * NEWS: Mention gcore support on FreeBSD/i386.
11618 * fbsd-proc.c: New file.
11619 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11620 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11622 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11625 2002-03-29 Jim Blandy <jimb@redhat.com>
11627 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11628 unescaped newlines in string literals, but newer ones don't. So
11631 2002-03-26 Michael Snyder <msnyder@redhat.com>
11632 Andrew Cagney <cagney@redhat.com>
11634 * cli/cli-dump.c: New file. Dump memory to file,
11635 restore file to memory.
11636 * cli/cli-dump.h: New file.
11637 * Makefile.in: Add rules, dependencies for cli-dump.o.
11638 * NEWS: Mention new commands.
11640 2002-03-28 Michael Snyder <msnyder@redhat.com>
11642 * symfile.c (symbol_file_add): Move test for null symbols to later.
11644 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11646 From veksler at il.ibm.com:
11647 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11648 the xstrduped original path.
11651 2002-03-27 Michael Snyder <msnyder@redhat.com>
11653 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11654 * infcmd.c (_initialize_infcmd): Ditto.
11655 * language.c (_initialize_language): Ditto.
11656 * symfile.c (_initialize_symfile): Ditto.
11657 * top.c (_init_main): Ditto.
11658 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11660 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11662 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11663 vector registers handling.
11664 (skip_prologue): Handle new AltiVec instructions. Fill in new
11665 fields of frame data.
11666 (frame_get_saved_regs): Fill in information for AltiVec registers.
11668 2002-03-27 Jim Blandy <jimb@redhat.com>
11670 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11671 a function; leave this macro here to invoke that function.
11672 (symbol_init_mangled_name): Declaration for that function.
11673 * symtab.c (symbol_init_mangled_name): New function.
11675 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11677 * valarith.c: Replace strerror with safe_strerror.
11678 * tracepoint.c: Ditto.
11679 * lin-lwp.c: Ditto.
11680 * go32-nat.c: Ditto.
11682 * gnu-nat.c: Ditto.
11684 2002-03-27 Andreas Schwab <schwab@suse.de>
11686 * event-top.c (command_line_handler): Remove useless if.
11688 2002-03-27 Andreas Jaeger <aj@suse.de>
11690 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11693 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11695 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11696 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11697 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11698 (x86_64_linux_dr_get_status, supply_gregset),
11699 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11700 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11701 (x86_64_register_info_table): Add.
11702 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11703 (x86_64_register_raw_size, x86_64_register_virtual_type),
11704 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11705 general x86_64_register_info_table.
11706 (i386_gdbarch_init): gdbarch_register_bytes is now set
11707 dynamicaly during initialization.
11708 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11709 * gdbserver/linux-x86-64-low.c: Ditto.
11711 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11713 * gdbserver/server.c (main): Call target_signal_to_host_p
11714 and target_signal_to_host on signals received from the remote.
11715 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11716 target_signal_from_host on signals sent to the remote.
11717 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11718 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11720 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11722 * signals/signals.c: Include "server.h" in gdbserver build.
11723 (target_signal_from_name): Don't use STREQ.
11724 (_initialize_signals): Likewise. Don't include function in
11727 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11729 * signals.c: Moved to...
11730 * signals/signals.c: Here.
11731 * Makefile (signals.o): Update.
11733 2002-03-26 Jeff Law (law@redhat.com)
11735 * somread.c (som_symtab_read): Remove some commented out code and
11736 updated related comments. Do not set the minimal symbol table to
11737 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11738 in a dynamic executable.
11739 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11740 where we are unable to find the minimal symbol for the given
11743 2002-03-25 Jeff Law (law@redhat.com)
11745 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11747 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11749 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11751 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11753 * command.h: Update copyright.
11754 (struct cmd_list_element): Replace definition with opaque
11756 (enum cmd_types): Document that it will eventually be moved to
11758 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11759 (MALLOCED_REPLACEMENT): Delete macro.
11760 * Makefile.in (cli_decode_h): Add $(command_h).
11761 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11762 * top.c: Include "cli/cli-decode.h".
11763 * completer.c: Include "cli/cli-decode.h".
11764 * maint.c: Include "cli/cli-decode.h".
11765 * cli/cli-decode.h: Include "command.h".
11766 (enum command_class): Delete.
11767 (enum cmd_types): Comment out.
11768 (enum cmd_auto_boolean): Delete.
11769 (enum var_types): Delete.
11771 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11773 * cli/cli-decode.c: Include "gdb_assert.h".
11774 (add_set_or_show_cmd): New static function.
11775 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11776 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11777 all fields, such as func, from the set command.
11779 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11781 * MAINTAINERS (sh-elf): Change warning flag to -w.
11783 2002-03-23 Andrew Cagney <cagney@redhat.com>
11785 * defs.h (error): Add printf format attribute.
11786 * thread-db.c (thread_from_lwp): Fix error format string.
11787 * stack.c (parse_frame_specification): Ditto.
11788 * cli/cli-decode.c (undef_cmd_error): Ditto.
11789 * scm-lang.c (scm_lookup_name): Ditto.
11790 * tracepoint.c (trace_error): Ditto.
11791 * remote-utils.c (usage): Ditto.
11792 * remote.c (compare_sections_command): Ditto.
11795 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11797 * gdbtypes.c (append_composite_type_field): New function.
11798 (init_composite_type): New function.
11799 * gdbtypes.h (append_composite_type_field): Declare.
11800 (init_composite_type): Ditto.
11802 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11804 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11806 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11807 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11808 structure returning convention for SYSV ABI case, but not
11809 for GNU/Linux, FreeBSD, or NetBSD.
11811 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11813 * symtab.h (lookup_block_symbol): Add mangled_name argument
11816 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11817 with new mangled_name argument.
11818 * linespec.c (decode_line_1): Likewise.
11819 * valops (value_of_this): Likewise.
11820 * symtab.c (lookup_transparent_type): Likewise.
11821 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11822 (lookup_symbol): If we are given a mangled name, pass it down
11823 to lookup_symbol_aux.
11824 (lookup_block_symbol): If we are given a mangled name to check
11825 against, only return symbols which match it.
11827 2002-03-22 Christopher Faylor <cgf@redhat.com>
11829 * win32-nat.c (child_create_inferior): Check for proper shell to use
11830 here, in case the user changes it on the fly.
11831 (_initialize_inftarg): Remove shell path considerations.
11833 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11835 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11836 for gdbarch_max_register_raw_size and max_register_virtual_size.
11837 Adjust copyright year.
11839 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11841 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11842 in a function to cover the entire beginning of the function
11843 as well if it does not already.
11845 2002-03-21 Tom Rix <trix@redhat.com>
11847 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11848 (rs6000_ptrace64): Renamed from ptrace64.
11850 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11852 * gdbserver/remote-utils.c (remote_open): Don't call
11853 getprotobyname, we're all using TCP here so just use
11855 * gdbserver/gdbreplay.c (remote_open): Ditto.
11857 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11859 * regcache.c (_initialize_regcache): No need to call
11860 build_regcache() at this time; it gets called whenever
11861 the gdbarch changes.
11863 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11865 * sparc-nat.c: Include sys/param.h where possible.
11867 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11870 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11871 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11872 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11874 * stabsread.c (rs6000_builtin_type): Likewise.
11875 (read_sun_floating_type): Likewise.
11877 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11879 * stabsread.c (read_member_functions): Remove skip code for duplicate
11880 constructor/destructor methods. Use standard parsing for these
11881 methods and just do not chain them to the list of methods after
11884 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11886 * coffread.c: Remove redundant static declarations. Replace
11887 occurrences of `PTR' with `void *'.
11888 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11889 * top.h (quit_cover): Likewise.
11890 * defs.h (catch_errors): Likewise.
11892 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11894 * defs.h (XMALLOC): Define.
11895 * gdb-events.sh (XMALLOC): Delete macro.
11896 * gdb-events.c, gdb-events.h: Regenerate.
11897 * gdbarch.sh (XMALLOC): Delete macro.
11898 * gdbarch.c: Regenerate.
11899 * serial.c (XMALLOC): Delete macro.
11900 * ui-file.c (XMALLOC): Ditto.
11901 * ser-unix.h (XMALLOC): Ditto.
11902 * sh-tdep.c (XMALLOC): Ditto.
11903 * ui-out.c (XMALLOC): Ditto.
11904 * utils.c (XMALLOC): Ditto.
11905 * i386-tdep.c (XMALLOC): Ditto.
11906 * gdb-events.c (XMALLOC): Ditto.
11907 * d10v-tdep.c (XMALLOC): Ditto.
11908 * cli-out.c (XMALLOC): Ditto.
11910 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11911 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11912 * ui-file.c, ui-out.c: Ditto.
11914 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11916 * command.h (struct cmd_list_element): Add field context.
11917 (set_cmd_context, get_cmd_context): Declare.
11918 * cli/cli-decode.h: Ditto.
11919 * cli/cli-decode.c (get_cmd_context): New function.
11920 (set_cmd_context): New function.
11921 (add_cmd): Initialize context.
11922 Part of fixing PR gdb/145 and PR gdb/146.
11924 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11926 * cli/cli-decode.c (cmd_type): New function.
11927 * command.h (cmd_type): Declare.
11928 * infrun.c (set_schedlock_func): Call function cmd_type.
11929 * kod.c (kod_set_os): Call cmd_type.
11930 * cris-tdep.c (cris_version_update): Use function cmd_type.
11931 (cris_mode_update, cris_abi_update): Ditto.
11933 * command.h: (execute_cmd_post_hook): Declare.
11934 (execute_cmd_pre_hook): Declare.
11935 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11936 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11937 functions. Execute pre/post hook while ensuring that afterwords
11938 hook_in is cleared.
11939 * top.c (execute_command): Use execute_cmd_post_hook, and
11940 execute_cmd_pre_hook to execute pre/post commands.
11941 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11943 (hook_stop_stub): Call execute_cmd_pre_hook.
11945 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11947 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11948 set'' and this leads to a core dump. Move xstrdup of
11949 operating_system to after check that it is not NULL.
11951 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11953 * kod.c (kod_set_os): Remove unnecessary check that
11954 ``command->type'' is set_cmd.
11956 * valprint.c (set_input_radix): Use input_radix.
11957 (set_output_radix): Use output_radix.
11958 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11961 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11963 * value.h (struct value): Delete field ``substring_addr''. Change
11964 aligner fields to force_doublest_align, force_longest_align,
11965 force_core_addr_align and force_pointer_aligh.
11967 * value.h (struct value): Fix typo in above change.
11969 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11971 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11972 to fix internal_error from ``maintenance print architecture''.
11974 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11976 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11977 for gcc versions after gcc-2.8.1.
11979 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11981 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11982 for method resolution. Restore adjustment of ``this'' pointer after
11983 calling value_struct_elt, which was accidentally removed during the
11986 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11988 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11990 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11991 get_saved_register.
11992 * value.h (value_of_register): Update.
11994 2002-03-14 Richard Henderson <rth@redhat.com>
11996 * configure.in: Detect declaration for canonicalize_file_name.
11997 * utils.c (canonicalize_file_name): Declare, if needed.
11998 (gdb_realpath): Prefer realpath if available and usable.
11999 * config.in, configure: Rebuild.
12001 2002-03-14 Richard Henderson <rth@redhat.com>
12003 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12004 a constant array bound.
12006 * MAINTAINERS: Add myself to write-after-approval.
12008 2002-03-14 Michael Snyder <msnyder@redhat.com>
12010 * symfile.c (syms_from_objfile): Return immediately if no syms.
12011 (symbol_file_add): Return immediately if no syms.
12012 (find_sym_fns): Return immediately if no syms.
12014 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12016 * gdbserver/remote-util.c (remote_open): Print remote-side's
12017 IP address when remote debugging over the network.
12019 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12021 * config/sparc/fbsd.mh: Fix copyright.
12022 * config/sparc/fbsd.mt: Likewise.
12024 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12026 * MAINTAINERS: Fix typo in name of gdb warnings option.
12027 (x86-64): Fix formating so that this can be parsed by awk.
12029 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12031 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12032 * defs.h: Include "gdb/signals.h".
12033 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12035 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12037 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12038 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12041 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12042 Don Howard <dhoward@redhat.com>
12044 * mips-tdep.c (ST0_FR): Define.
12045 (mips2_fp_compat): New function, temporarily disabled.
12046 (mips_read_fp_register_single): New function.
12047 (mips_read_fp_register_double): New function.
12048 (mips_print_register): Use them.
12049 (do_fp_register_row): Likewise.
12051 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12053 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12056 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12058 * stabsread.c (read_member_functions): Fix is_stub test for
12059 static member functions, improve comment.
12061 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12063 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12064 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12065 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12066 commands that set boolean values.
12067 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12068 (arm_rdi_resume): Always initialize PC.
12069 (arm_rdi_open): Don't use rslt as a boolean.
12070 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12071 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12072 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12073 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12075 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12077 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12078 * configure: Rebuilt.
12080 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12082 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12083 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12085 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12087 * cli/cli-decode.c (set_cmd_completer): New function.
12088 * command.h (set_cmd_completer): Declare.
12089 * cli/cli-decode.h (set_cmd_completer): Ditto.
12091 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12092 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12093 * win32-nat.c (_initialize_inftarg): Ditto.
12094 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12095 * proc-api.c (_initialize_proc_api): Ditto.
12096 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12097 * source.c (_initialize_source): Ditto.
12098 * exec.c (_initialize_exec): Ditto.
12099 * solib.c (_initialize_solib): Ditto.
12100 * top.c (init_main): Ditto.
12101 * tracepoint.c (_initialize_tracepoint): Ditto.
12102 * symfile.c (_initialize_symfile): Ditto.
12103 * printcmd.c (_initialize_printcmd): Ditto.
12104 * infcmd.c (_initialize_infcmd): Ditto.
12105 * corefile.c (_initialize_core): Ditto.
12107 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12109 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12111 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12113 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12115 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12117 * NEWS: Update headings, 5.2 has branched.
12119 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12121 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12122 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12123 (register_addr, REGISTER_RAW_SIZE): Likewise.
12124 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12125 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12127 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12129 * MAINTAINERS (x86-64): Add myself.
12130 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12131 changed value_ptr -> struct value *
12133 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12135 * configure.host (sparc64-*-freebsd): Add.
12136 * configure.tgt: Likewise.
12137 * config/sparc/fbsd.mh: New file.
12138 * config/sparc/fbsd.mt: Likewise.
12139 * config/sparc/nm-fbsd.h: Likewise.
12140 * config/sparc/tm-fbsd.h: Likewise.
12142 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12144 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12145 regformats/reg-s390x.dat.
12147 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12149 * utils.c: Add FIXME explaining true/false problem.
12151 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12153 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12155 2002-02-28 Michael Chastain <mec@shout.net>
12157 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12159 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12161 * gdbserver/linux-s390-low.c: New file.
12162 * regformats/reg-s390.dat: New file.
12163 * regformats/reg-s390x.dat: New file.
12164 * gdbserver/configure.srv: Add S/390.
12165 * gdbserver/Makefile.in: Add S/390.
12166 * configure.tgt: Enable gdbserver for S/390.
12168 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12170 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12171 first line of the doc string for "info dos", except at the end of
12172 the sentence, since the short help stops at the first period.
12174 2002-02-28 Jason Merrill <jason@redhat.com>
12176 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12178 2002-02-27 Fred Fish <fnf@redhat.com>
12180 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12181 comment (dumy -> dummy).
12183 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12185 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12187 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12189 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12191 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12193 * gdbserver/acconfig.h: New file.
12194 * gdbserver/i387-fp.c: New file.
12195 * gdbserver/i387-fp.h: New file.
12196 * gdbserver/linux-x86-64.c: New file.
12197 * regformats/reg-x86-64.dat: New file.
12198 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12199 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12200 * gdbserver/configure.in: Add support for regsets.
12201 * gdbserver/config.in: Regenerate.
12202 * gdbserver/configure: Regenerate.
12203 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12204 * gdbserver/linux-low.h: New file.
12205 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12207 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12208 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12209 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12210 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12211 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12212 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12213 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12214 "i387-fp.h". Add PTRACE_GETREGS and friends.
12215 * gdbserver/regcache.c (supply_register): New function.
12216 (supply_register_by_name): New function.
12217 (collect_register): New function.
12218 (collect_register_by_name): New function.
12220 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12222 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12223 (config.status): Add configure.srv dependency.
12224 (server_h): Add config.h dependency.
12226 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12228 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12229 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12230 * gdbserver/configure.srv: Change i386-*-linux* to use
12233 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12235 * x86-64-tdep.c: Re-indent. Update copyright date.
12237 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12239 From Michal Ludvig <mludvig@suse.cz>:
12240 * x86-64-tdep.c (value.h): Delete.
12241 (gdb_assert.h): Include.
12242 (x86_64_register_convert_to_virtual,
12243 x86_64_register_convert_to_raw ): Add check which lets only
12244 floating-point values to be converted.
12245 (value_push): Delete.
12246 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12247 (i386_gdbarch_init): Number of register_bytes fixed.
12249 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12251 * MAINTAINERS: Add x86-64 target.
12253 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12255 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12256 * osfsolib.c (solib_map_sections): Ditto.
12257 * irix5-nat.c (solib_map_sections): Ditto.
12258 * corelow.c (gdb_check_format): Ditto.
12259 * symfile.c (symfile_bfd_open): Ditto.
12260 * solib.c (solib_map_sections): Ditto.
12263 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12265 * remote.c (_initialize_remote): By default, disable ``e'' and
12266 ``E'' step out-of-range packets.
12268 2002-02-26 Andreas Schwab <schwab@suse.de>
12270 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12271 m68k_linux_frame_saved_pc.
12272 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12274 (SIGCONTEXT_PC_OFFSET): Remove.
12275 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12276 m68k_linux_sigtramp_saved_pc): New functions.
12277 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12278 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12279 (UCONTEXT_PC_OFFSET): Define.
12280 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12281 non-RT and RT signal trampolines.
12283 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12285 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12286 (TARGET_NBPG, STACK_END_ADDR): Delete
12287 (VARIABLES_INSIDE_BLOCK): Delete.
12289 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12291 * utils.c (perror_with_name): Make string parameter constant.
12292 (print_sys_errmsg): Ditto.
12294 * defs.h (perror_with_name): Update.
12295 (print_sys_errmsg): Update.
12298 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12300 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12301 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12303 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12305 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12306 if it already matches the current architecture from the exec file.
12307 Include arch-utils.h for gdbarch_info_init prototype.
12308 * Makefile.in (rs6000-nat.o): Update dependencies.
12310 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12312 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12313 list of exported variables.
12315 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12317 * gdbserver/configure.srv: New file.
12318 * gdbserver/configure.in: Use configure.srv instead
12319 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12321 * gdbserver/configure: Regenerated.
12322 * gdbserver/terminal.h: New file.
12323 * gdbserver/Makefile.in: Update for configure changes. Remove
12324 more unneeded include paths.
12326 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12328 From wiz at danbala:
12329 * config/sparc/tm-sp64.h: Fix grammar and typos.
12332 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12334 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12335 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12336 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12337 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12338 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12339 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12340 * s390-tdep.c: Ditto.
12341 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12342 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12343 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12344 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12345 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12346 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12347 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12348 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12349 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12350 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12353 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12355 * lin-thread.c: Delete file.
12356 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12357 to gdb_proc_service.h.
12358 * configure: Re-generate.
12360 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12361 * serial.c (serial_open): Delete check for "ocd".
12364 * Makefile.in (linux-thread.o): Delete target.
12365 * linux-thread.c: Delete file.
12367 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12368 renamed SH files to be consistent.
12370 * symtab.c (sort_search_symbols): Use xfree.
12372 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12374 * arm-linux-tdep.c (arm_linux_init_abi): Register
12375 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12376 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12377 definition with undef, since we don't want the sysvr4 definition.
12378 (SKIP_TRAMPOLINE_CODE): Likewise.
12380 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12382 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12384 * configure.in: (AC_CHECK_FUNCS) Added test for
12385 canonicalize_file_name Regenerated.
12386 * config.in, configure: Regenerated.
12387 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12388 defined use canonicalize_file_name.
12390 2002-02-23 Michael Chastain <mec@shout.net>
12392 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12394 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12396 * README: Remove references to cygnus.com.
12397 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12398 dot com'' form. Remove references to cygnus.com and sourceware.
12400 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12402 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12403 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12404 1003.1-2001 no longer allows "head -1".
12405 * gdb/Makefile.in (version.c): Likewise.
12406 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12407 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12408 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12410 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12412 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12413 * command.h (cmd_cfunc_eq): Declare.
12414 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12416 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12417 ``struct cmd_list_element *''.
12418 * cli/cli-cmds.c (is_complete_command): Update. Use
12420 * top.c (execute_command): Pass the command to
12421 is_complete_command.
12422 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12424 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12426 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12427 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12428 architecture defines.
12429 * s390-tdep.c (s390_gdbarch_init): Likewise.
12431 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12433 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12434 (arm_linux_push_arguments): Likewise.
12435 (arm_linux_init_abi): Register them. Also register linux-specific
12437 (find_minsym_and_objfile): Use strcmp, not STREQ.
12438 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12439 (arm_linux_call_dummy_words): Delete declaration.
12440 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12441 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12443 (LOWEST_PC): Delete.
12445 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12447 * maint.c (print_section_info): Do not prepend `0x' to filepos
12448 output, it will be handled by local_hex_string_custom.
12450 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12452 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12453 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12454 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12456 2002-02-22 Jim Blandy <jimb@redhat.com>
12458 Indicate that the bcache functions don't change the strings
12460 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12461 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12463 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12465 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12467 2002-02-21 Christopher Faylor <cgf@redhat.com>
12469 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12470 find the complete path to a loaded DLL.
12472 2002-02-21 Fred Fish <fnf@redhat.com>
12474 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12475 that marks the end of the range of a function, enter a line number
12476 entry that has a line number of zero and a PC offset that matches
12477 the end of the function. This starts a range of PC's for which no
12478 line number information is known.
12479 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12480 PC's for which no line number info is found (line number is zero)
12481 then we didn't find any valid line information.
12482 * symtab.h: Document use of zero line number entry.
12484 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12486 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12487 (have_ptrace_getvrregs): Define for run time checks.
12488 (gdb_vrregset_t): New type for Altivec register handling.
12489 (fetch_register, store_register): Fetch/store altivec register
12491 (fetch_altivec_register, store_altivec_register): New functions.
12492 (supply_vrregset, fill_vrregset): New functions.
12493 (fetch_altivec_registers, store_altivec_registers): New functions.
12494 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12497 2002-02-21 Jiri Smid <smid@suse.cz>
12499 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12501 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12503 * Makefile.in (armnbsd-nat.o): Update dependencies.
12504 * armnbsd-nat.c (supply_gregset): New function. Common code to
12505 supply the integer register set.
12506 (supply_fparegset): New function. Similar for FPA registers.
12507 (fetch_regs, fetch_fp_regs): Use them.
12508 (fetch_core_registers): Likewise.
12509 (fetch_elfcore_registers): New function.
12510 (arm_netbsd_elfcore_fns): New core-file type specification.
12511 (_initialize_arm_netbsd_nat): Register it.
12513 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12515 * armnbsd-nat.c: Include gdbcore.h.
12516 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12517 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12518 'void' to declaration, to shut up ARI.
12519 (fetch_core_registers): Make static. Rewrite using supply_register.
12520 (arm_netbsd_core_fns): New core-file type specification.
12521 (_initialize_arm_netbsd_nat): New function.
12523 2002-02-21 Christopher Faylor <cgf@redhat.com>
12525 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12528 2002-02-20 Christopher Faylor <cgf@redhat.com>
12530 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12533 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12535 * jv-exp.y (parse_number): Change type of implicit longs
12536 to builtin_type_uint64.
12538 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12540 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12541 to be an integer instead of a `union wait'.
12543 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12545 * mips-linux-nat.c: Call the operating system GNU/Linux.
12546 * mips-linux-tdep.c: Likewise.
12547 * mips-tdep.c: Likewise.
12549 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12552 * jv-exp.y (parse_number): Handle 64-bit integers.
12554 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12556 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12557 AC_STDC_HEADERS to AC_HEADER_STDC.
12558 * gdbserver/configure: Regenerated.
12560 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12562 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12564 * sparc-tdep.c (get_longjmp_target): Likewise.
12566 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12568 * News: Add news about ARM and Multi-arch. Mention the new target
12571 2002-02-19 Jim Blandy <jimb@redhat.com>
12573 * stabsread.c (error_type_complaint): Improve error message.
12575 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12577 * gdbserver/README: Update documentation.
12578 * gdbserver/configure.in: Update configury to match documentation.
12579 * gdbserver/Makefile.in: Likewise.
12580 * gdbserver/configure: Regenerated.
12581 * gdbserver/aclocal.m4: New file, generated by aclocal.
12582 * gdbserver/config.in: New file, generated by autoheader.
12584 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12586 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12589 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12591 * arm-tdep.h (enum arm_float_model): New enum.
12592 (struct gdbarch_tdep): Add fp_model.
12593 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12594 up floating-point conversions until we know the floating-point model
12595 in use by the inferior. Don't complain about being unable to
12596 determine the ABI of the inferior when we don't have one.
12597 (arm_extract_return_value): Support different floating-point models.
12598 (arm_store_return_value): Likewise.
12599 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12601 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12603 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12605 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12606 of ``current_gdbarch''.
12608 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12610 * armnbsd-nat.c : ANSIfy all function declarations.
12611 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12612 (fetch_inferior_registers): Re-implement in terms of above.
12613 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12614 (store_inferior_registers): Re-implement in terms of above.
12616 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12618 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12620 * arm-linux-tdep.c: Likewise.
12621 * config/arm/tm-linux.h: Likewise.
12623 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12625 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12626 * config/arm/nbsd.mt (TM_FILE): Delete.
12627 * config/arm/tm-nbsd.h: Delete.
12629 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12631 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12632 Initialize CALL_DUMMY_LENGTH.
12634 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12636 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12638 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12639 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12640 defines one thing and that is incorrect for this port.
12641 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12643 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12645 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12647 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12649 * win32-nat.c (display_selector): New function. Displays information
12650 about the information returned by GetThreadSelectorEntry API function.
12651 (display_selectors): New function. Displays the infomation of
12652 the selector given as argument, or of CS, DS ans FS selectors
12653 if no argument is given.
12654 ( _initialize_inftarg): Add "w32" as info prefix command.
12655 Add "info w32 selector" as command calling display_selectors.
12657 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12659 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12660 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12663 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12665 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12667 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12669 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12670 (arm_fix_call_dummy): Call it.
12671 (arm_call_dummy_breakpoint_offset): Delete.
12672 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12673 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12675 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12677 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12678 Default to func_frame_chain_valid.
12679 * gdbarch.h, gdbarch.c: Re-generate.
12680 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12682 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12684 * ppc-linux-nat.c: Update copyright.
12685 (fetch_register, store_register): Add tid parameter, don't compute
12687 (fetch_ppc_registers, store_ppc_registers): Add tid
12688 parameter. Pass it along to callees.
12689 (fetch_inferior_registers, store_inferior_registers): Compute tid
12690 here, and pass it to calleed functions.
12691 (fill_gregset, supply_fpregset): Clean up formatting.
12693 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12695 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12696 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12698 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12700 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12701 * gdbarch.c gdbarch.h: Regenerate.
12702 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12704 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12705 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12706 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12708 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12709 * arm-tdep.c (arm_get_longjmp_target): New function.
12710 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12711 this to a positive value register arm_get_longjmp_target as the
12713 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12714 (arm_linux_init_abi): Set up longjmp description in tdep.
12715 * armnbsd-nat.c (get_longjmp_target): Delete.
12716 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12717 description in tdep.
12718 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12719 (get_longjmp_target): Delete declaration.
12720 (GET_LONGJMP_TARGET): Delete.
12721 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12722 (GET_LONGJMP_TARGET): Delete.
12724 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12726 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12727 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12728 of ``current_gdbarch''.
12730 2002-02-17 Tom Tromey <tromey@redhat.com>
12732 * cli/cli-cmds.c (compare_strings): New function.
12733 (complete_command): Only print each unique item once.
12734 * completer.h (complete_line): Declare.
12735 * completer.c (complete_line): New function.
12736 (line_completion_function): Use it.
12738 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12740 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12741 * gdbarch.h, gdbarch.c: Re-generate.
12743 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12745 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12747 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12749 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12750 * valops.c (value_arg_coerce): Don't take the address of a reference
12751 to convert an argument to a reference.
12753 2002-02-15 Christopher Faylor <cgf@redhat.com>
12755 * win32-nat.c (get_image_name): New function.
12756 (handle_load_dll): Use get_image_name function.
12757 (get_child_debug_event): Avoid registering debug events until possibly
12758 execed process is started.
12759 (child_create_inferior): Allow invocation via shell so that command
12760 line redirection, etc. works ok.
12761 (_initialize_inftarg): Add new command: "set shell" to control whether
12762 a shell is used to start a process.
12764 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12766 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12767 instead of find_register_by_number.
12768 (cannot_store_register): Likewise.
12770 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12772 * dwarf2read.c: Replace fprintf (stderr, ...) by
12773 fprintf_unfiltered (gdb_stderr, ...).
12775 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12777 * gdbserver/gdbserver.1: Document --attach.
12779 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12781 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12783 * arm-tdep.c (arm_default_arm_le_breakpoint)
12784 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12785 (arm_default_thumb_be_breakpoint): New. Initialize them from
12786 traditional breakpoint defines.
12787 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12788 (arm_gdbarch_init): Initialize new breakpoint variables.
12789 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12790 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12791 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12792 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12794 (arm_netbsd_init_abi_common): ... here; new function.
12795 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12796 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12797 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12798 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12800 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12802 * arm-tdep.h (enum arm_abi): New enum.
12803 (struct gdbarch_tdep): New structure.
12804 (LOWEST_PC): Provide a default.
12805 (arm_gdbarch_register_os_abi): Declare new function.
12806 * arm-tdep.c (arm_abi_names): New array.
12807 (process_note_abi_tag_sections): New function.
12808 (get_elfosabi): New function.
12809 (arm_gdbarch_register_os_abi): New function.
12810 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12811 support for that ABI has been built in, then call the appropriate
12812 configuration routine. Use gdbarch_num_regs() to get the number
12814 (arm_dump_tdep): New function.
12815 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12816 place-holder functions.
12817 (_initialize_arm_tdep): Register them.
12818 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12820 * armnbsd-tdep.c: New file.
12821 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12822 * config/arm/nbsd.mt (TDEPFILES): Add it.
12823 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12825 * armnbsd-nat.c: Include regcache.h.
12826 * Makefile.in (armnbsd-nat.o): Update dependency list.
12828 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12830 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12832 * gdbserver/Makefile.in: Fix typos in target rules.
12834 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12836 Fix part of PR gdb/267.
12837 * linespec.c (find_methods): Handle constructors specially for now.
12839 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12841 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12843 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12844 standard_coerce_float_to_double().
12846 2002-02-14 Christopher Faylor <cgf@redhat.com>
12848 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12851 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12853 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12854 find_variant_by_name, because it confuses the multiarch
12855 framework. Return NULL if there isn't an architecture with the
12856 user supplied name, instead of forcing a different one without
12857 recording the change with the multiarch machinery.
12858 (find_variant_by_name): Delete.
12860 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12862 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12863 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12865 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12867 * stack.c (print_frame_info_base): When calling
12868 print_frame_info_listing_hook, set current_source_symtab.
12870 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12872 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12873 and remove unused $(INCLUDE_DIR).
12874 Add regcache.c to OBS.
12875 Add generated register protocol files to clean target.
12876 Update dependencies for new objects, obsolete old target code.
12878 * gdbserver/linux-low.c: Remove all platform-specific code to
12879 new files. Remove various dead code. Update to use regcache
12881 * gdbserver/remote-utils.c (fromhex): Add return statement
12883 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12885 (input_interrupt): Add integer parameter to match prototype
12886 of a signal handler.
12887 (outreg): Use register_data ().
12888 (prepare_resume_reply): Use gdbserver_expedite_regs.
12889 * gdbserver/server.c (main): Dynamically allocate own_buf because
12890 PBUFSIZ is no longer constant. Use registers_to_string () and
12891 registers_from_string ().
12892 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12893 for error (), fatal (), and warning (). Update definition of
12894 PBUFSIZ to use regcache functionality. Add include guard.
12895 * gdbserver/utils.c (fatal): Add missing ``const''.
12896 (warning): New function.
12898 * regformats/regdat.sh: Include "regcache.h" in generated files.
12899 Provide init_registers () function.
12900 * regformats/regdef.h: Add prototype for set_register_cache ().
12903 * gdbserver/linux-arm-low.c: New file.
12904 * gdbserver/linux-i386-low.c: New file.
12905 * gdbserver/linux-ia64-low.c: New file.
12906 * gdbserver/linux-m68k-low.c: New file.
12907 * gdbserver/linux-mips-low.c: New file.
12908 * gdbserver/linux-ppc-low.c: New file.
12909 * gdbserver/linux-sh-low.c: New file.
12911 * gdbserver/regcache.c: New file.
12912 * gdbserver/regcache.h: New file.
12914 * gdbserver/low-linux.c: Removed obsolete file.
12916 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12918 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12919 * config/i386/linux.mt: Likewise.
12920 * config/ia64/linux.mt: Likewise.
12921 * config/m68k/linux.mh: Likewise.
12922 * config/powerpc/linux.mh: Likewise.
12923 * config/mips/linux.mt: Likewise.
12925 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12927 * config/i386/i386lynx.mh: Mark gdbserver variables
12928 as (currently) obsolete for this target.
12929 * config/i386/nbsd.mt: Likewise.
12930 * config/i386/nbsdelf.mt: Likewise.
12931 * config/m32r/m32r.mt: Likewise.
12932 * config/m68k/m68klynx.mh: Likewise.
12933 * config/m68k/nbsd.mt: Likewise.
12934 * config/m68k/sun3os4.mh: Likewise.
12935 * config/mips/vr5000.mt: Likewise.
12936 * config/ns32k/nbsd.mt: Likewise.
12937 * config/pa/hppabsd.mh: Likewise.
12938 * config/pa/hppaosf.mh: Likewise.
12939 * config/powerpc/nbsd.mt: Likewise.
12940 * config/rs6000/rs6000lynx.mh: Likewise.
12941 * config/s390/s390.mt: Likewise.
12942 * config/s390/s390x.mt: Likewise.
12943 * config/sparc/sparclynx.mh: Likewise.
12944 * config/sparc/sun4os4.mh: Likewise.
12945 * config/i386/x86-64linux.mt: Likewise.
12946 * config/sparc/linux.mh: Likewise.
12948 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12950 * configure.tgt: Configure gdbserver only for known working
12951 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12952 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12953 SUBDIRS if it is configured. Update comment for ${nativefile}.
12954 * configure: Regenerated.
12956 2002-02-13 Michael Snyder <msnyder@redhat.com>
12958 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12960 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12961 (default_gcore_mach): Just return 0, work around a problem in bfd.
12962 (default_gcore_target): OK to return NULL if exec_bfd is null.
12963 (make_mem_sec): Use a cast, avoid a warning.
12965 * procfs.c (find_memory_regions_callback): Use a cast instead of
12966 calling host_pointer_to_address (which complains if
12967 sizeof (host pointer) != sizeof (target pointer)).
12968 (procfs_make_note_section): Avoid overflow in psargs string.
12970 * procfs.c (procfs_make_note_section): Make the default
12971 implementation return an error.
12973 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12975 * procfs.c (procfs_make_note_section): Provide a default definition
12976 (for alpha-dec-osf4.0f). Fix typos.
12978 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12980 * linux-proc.c: Add include of regcache.h.
12981 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12983 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12985 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12986 * memattr.c (create_mem_region): Disallow useless empty region.
12987 Regions are half-open intervals, so allow [A..B) [B..C) as
12990 2002-02-13 Michael Chastain <mec@shout.net>
12992 * defs.h: Kill CONST_PTR.
12993 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12994 * c-lang.c (c_builtin_types): Likewise.
12995 * ch-lang.c (ch_builtin_types): Likewise.
12996 * f-lang.c (f_builtin_types): Likewise.
12997 * language.c (unknown_builtin_types): Likewise.
12998 * m2-lang.c (m2_builtin_types): Likewise.
12999 * p-lang.c (pascal_builtin_types): Likewise.
13000 * scm-lang.c (c_builtin_types): Likewise.
13002 2002-02-13 Keith Seitz <keiths@redhat.com>
13004 * arm-tdep.h (arm_get_next_pc): Add declaration.
13006 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13008 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13009 with other related struct-returning functions.
13010 (arm_extract_struct_value_address): New function.
13011 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13012 initialize float_format, double_format and long_double_format as
13013 appropriate to the endianness of the target.
13014 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13015 (arm_use_struct_convention): Delete declaration.
13016 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13018 2002-02-13 Keith Seitz <keiths@redhat.com>
13020 * defs.h (core_addr_to_string_nz): New function.
13022 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13024 Apply missing bits of 2002-01-15 patch.
13025 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13026 (fill_fpregset): Use i387_fill_fsave.
13028 2002-02-12 Keith Seitz <keiths@redhat.com>
13030 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13031 (core_addr_to_string_nz): New function.
13033 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13035 * arm-linux-nat.c: Really include arm-tdep.h.
13036 * config/arm/tm-linux.h (struct type, struct value): Declare.
13038 2002-02-11 Michael Snyder <msnyder@redhat.com>
13040 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13041 (gcore section): Ifdef for Solaris and Unixware only.
13042 (procfs_do_thread_registers): Unixware needs one lwpstatus
13043 per thread (not one prstatus or pstatus).
13044 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13045 not over all gdb threads. For unixware, call elfcore_write_pstatus
13046 once before iterating over threads.
13048 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13050 * arm-tdep.h: New file.
13051 * arm-tdep.c: Include arm-tdep.h.
13052 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13053 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13054 (arm_print_float_info, arm_register_type, convert_to_extended)
13055 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13056 (arm_extract_return_value, arm_register_name): Make static.
13057 (arm_software_single_step): Similarly. Fix types in declaration.
13058 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13059 (arm_store_return_value, arm_store_struct_return): New functions.
13060 (arm_gdbarch_init): Register the above functions. Also register
13061 call_dummy_start_offset, sizeof_call_dummy_words,
13062 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13063 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13064 max_register_virtual_size, register_size. Set up
13065 prologue_cache.saved_regs here, rather than ...
13066 (_initialize_arm_tdep): ... here.
13067 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13069 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13070 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13071 (arm_print_float_info, arm_register_type, convert_to_extended)
13072 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13073 (arm_extract_return_value, arm_register_name): Delete declarations.
13074 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13075 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13076 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13077 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13078 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13079 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13080 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13081 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13082 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13083 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13084 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13085 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13087 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13088 * remote-rdi.c remote-rdp.c: Likewise.
13089 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13090 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13091 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13094 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13095 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13096 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13097 from non-ARM_ prefixed definitions.
13098 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13100 * remote-rdi.c remote-rdp.c: Likewise.
13101 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13103 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13105 * arm-tdep.c (arm_frameless_function_invocation)
13106 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13107 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13108 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13109 (arm_pop_frame, arm_get_next_pc): Make static.
13110 (arm_gdbarch_init): Register above in gdbarch structure.
13111 (arm_read_fp): Renamed from arm_target_read_fp.
13112 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13113 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13114 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13115 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13116 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13117 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13118 (arm_pc_is_thumb_dummy): Delete declarations.
13119 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13120 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13121 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13122 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13124 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13126 * symtab.c (compare_search_syms): New function.
13127 (sort_search_symbols): New function.
13128 (search_symbols): Sort symbols after searching rather than
13131 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13133 * NEWS: Linux -> GNU/Linux.
13135 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13137 * gdbarch.sh: For for level one methods, disallow a definition
13138 when partially multi-arched. Add comments explaining rationale.
13139 * gdbarch.h: Re-generate.
13141 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13143 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13144 multi-arch partial.
13146 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13148 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13149 field. Use diff -u.
13150 * gdbarch.c: Re-generate.
13152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13154 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13155 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13158 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13160 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13161 multi-arch partial.
13162 (PUSH_ARGUMENTS): Switch to using predefault.
13163 * gdbarch.c: Regenerate.
13165 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13167 * valops.c (PUSH_ARGUMENTS): Delete definition.
13168 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13169 partial. Default to default_push_arguments.
13170 * gdbarch.h, gdbarch.c: Regenerate.
13172 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13174 * defs.h (throw_exception): Rename return_to_top_level. Update
13176 * utils.c (error_stream, internal_verror, quit): Ditto.
13177 * top.c (throw_exception, catcher): Ditto.
13178 * sparclet-rom.c (sparclet_load): Ditto.
13179 * remote.c (interrupt_query, minitelnet): Ditto.
13180 * remote-sds.c (interrupt_query): Ditto.
13181 * remote-mips.c (mips_error, mips_kill): Ditto.
13182 * ocd.c (interrupt_query): Ditto.
13183 * monitor.c (monitor_interrupt_query): Ditto.
13184 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13185 * target.h: Update comment.
13187 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13189 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13191 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13192 default_double_format.
13193 * gdbarch.h, gdbarch.c: Re-generate.
13194 * findvar.c (floatformat_unknown): Delete variable definition.
13195 * doublest.h (floatformat_unknown): Delete variable declaration.
13197 2002-02-09 Jim Blandy <jimb@redhat.com>
13199 * stabsread.c (read_type): Add code to parse Sun's syntax for
13200 prototyped function types.
13202 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13204 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13205 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13207 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13209 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13210 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13211 now _initialize_xcoffsolib gets called again and overrides the
13212 commands from solib.c in a native configuration.
13214 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13216 * doublest.c (store_typed_floating): Don't try to return a value.
13219 2002-02-08 Jim Blandy <jimb@redhat.com>
13221 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13222 is prototyped and has no arguments, print its argument list as
13225 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13227 * MAINTAINERS (write-after-approval): Add myself.
13228 (paper-trail): I've escaped!
13230 2002-02-08 Christopher Faylor <cgf@redhat.com>
13232 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13234 (_initialize_check_for_gdb_ini): Ditto.
13236 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13238 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13239 xaprintf -> xasprintf.
13241 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13243 * win32-nat.c: Remove use of printf and sprintf functions.
13245 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13247 * arm-tdep.c (arm_frame_chain_valid): Make static.
13248 (arm_push_arguments): Likewise.
13249 (arm_gdbarch_init): New function.
13250 (_initialize_arm_tdep): Call it.
13251 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13252 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13253 (FRAME_CHAIN_VALID): Delete.
13254 (arm_frame_chain_valid): Delete declaration.
13255 (PUSH_ARGUMENTS): Delete.
13256 (arm_push_arguments): Delete declaration.
13257 (CALL_DUMMY_P): Delete.
13259 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13260 Corinna Vinschen <vinschen@redhat.com>
13262 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13263 on builtin float types.
13265 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13267 * utils.c: Include <curses.h> before "bfd.h".
13268 * tui/tui-hooks.c: Likewise.
13269 * tui/tui.c: Likewise.
13270 * tui/tuiCommand.c: Likewise.
13271 * tui/tuiData.c: Likewise.
13272 * tui/tuiDataWin.c: Likewise.
13273 * tui/tuiDisassem.c: Likewise.
13274 * tui/tuiGeneralWin.c: Likewise.
13275 * tui/tuiIO.c: Likewise.
13276 * tui/tuiLayout.c: Likewise.
13277 * tui/tuiRegs.c: Likewise.
13278 * tui/tuiSource.c: Likewise.
13279 * tui/tuiSourceWin.c: Likewise.
13280 * tui/tuiStack.c: Likewise.
13281 * tui/tuiWin.c: Likewise.
13283 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13285 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13286 to include space for pseudoregs as well. Update loops accordingly.
13287 (sh_fp_frame_init_saved_regs): Ditto.
13288 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13290 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13292 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13293 Add Richard Earnshaw to Arm maintainers.
13295 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13297 * defs.h (warning_begin): Delete declaration.
13299 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13302 2002-02-07 Michael Snyder <msnyder@redhat.com>
13304 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13305 Logic bug, remove misplaced else.
13307 2002-02-07 Klee Dienes <klee@apple.com>
13309 * fork-inferior.c (fork_inferior): Add '!' to the list of
13310 characters that need to be quoted when building a string for the
13311 shell. Quote '!' specifically with a backslash, since CSH chokes
13312 when trying to evaluate "str!str".
13314 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13316 * rdi-share/host.h: Only provide a typedef for bool if it is not
13319 2002-02-04 Michael Snyder <msnyder@redhat.com>
13321 * breakpoint.h (enum bptype): Add new overlay event bp type.
13322 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13324 * breakpoint.c (create_internal_breakpoint): New function.
13325 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13326 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13327 (create_thread_event_breakpoint): Ditto.
13328 (create_solib_event_breakpoint): Ditto.
13329 (create_overlay_event_breakpoint): New function.
13330 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13331 (update_breakpoints_after_exec): Delete and re-initialize
13332 overlay event breakpoints after an exec. Add FIXME comment
13333 about longjmp breakpoint.
13334 (print_it_typical): Ignore overlay event breakpoints.
13335 (print_one_breakpoint): Ditto.
13337 (bpstat_what): Do not stop for overlay event breakpoints.
13338 (delete_breakpoint): Don't delete overlay event breakpoints.
13339 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13340 (breakpoint_re_set): Re-create overlay event breakpoint.
13342 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13343 (overlay_manual_command): Disable overlay breakpoints.
13344 (overlay_off_command): Disable overlay breakpoints.
13346 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13348 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13349 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13350 to here from config/tm-arm.h.
13351 (coff_sym_is_thumb): Make static.
13352 (arm_elf_make_msymbol_special): New function.
13353 (arm_coff_make_msymbol_special): New function.
13354 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13355 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13356 (coff_sym_is_thumb): Delete declaration.
13357 (arm_elf_make_msymbol_special): Declare.
13358 (arm_coff_make_msymbol_special): Declare.
13359 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13360 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13362 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13364 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13366 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13368 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13369 * gdbarch.c gdbarch.h: Regenerate.
13370 * arch-utils.c (default_print_float_info): New function.
13371 * arch-utils.h (default_print_float_info): Prototype it.
13372 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13373 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13374 (PRINT_FLOAT_INFO): Document it.
13376 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13377 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13378 (PRINT_FLOAT_INFO): Define.
13380 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13382 * win32-nat.c (_initialize_check_for_gdb_ini):
13383 Add typecast to sprintf argument to suppress a warning.
13385 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13387 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13388 to allow easier handling of pass state.
13389 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13390 that gives exception name and address.
13391 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13392 and set last_sig value to ourstatus->value.sig. Some missing
13394 (child_continue): Correctly report continue_status.
13395 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13396 TARGET_SIGNAL_0 (new default value).
13397 (child_resume): consider sig argument passed to decide if
13398 the exception should be passed to debuggee or not.
13400 2002-02-05 Michael Snyder <msnyder@redhat.com>
13402 * regcache.c (fetch_register): Call target_fetch_register
13403 only if we don't call FETCH_PSEUDO_REGISTER.
13404 (store_register): Call target_store_register only if we
13405 don't call STORE_PSEUDO_REGISTER.
13407 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13409 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13410 ELF_MAKE_MSYMBOL_SPECIAL.
13411 * gdbarch.c, gdbarch.h: Regenerate.
13412 * arch-utils.c (default_make_msymbol_special): New function.
13413 * arch-utils.h (default_make_msymbol_special): Export.
13414 * elfread.c (elf_symtab_read): Compile use of
13415 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13417 * coffread.c (coff_symtab_read): Ditto, for
13418 COFF_MAKE_MSYMBOL_SPECIAL.
13420 2002-02-05 Jim Blandy <jimb@redhat.com>
13422 * solib-svr4.c (svr4_truncate_ptr): New function.
13423 (svr4_relocate_section_addresses): Do the address arithmetic with
13424 the appropriate truncation for target addresses, even when
13425 CORE_ADDR is larger than a target address.
13427 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13429 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13432 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13434 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13437 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13439 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13441 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13443 * gdbserver/linux-low.c: Remove unused include files.
13445 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13447 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13448 (read_inferior_memory): Use it.
13449 (write_inferior_memory): Likewise.
13451 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13453 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13454 grubbing through sys_errlist.
13456 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13458 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13460 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13461 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13463 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13465 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13466 (do_sfunc, set_cmd_sfunc): New functions.
13468 * command.h (struct cmd_list_element): Add field func.
13469 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13470 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13471 * cli/cli-decode.h: Ditto.
13473 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13474 (help_all, help_cmd_list): Ditto.
13475 (find_cmd, complete_on_cmdlist): Ditto.
13476 * top.c (execute_command): Ditto.
13478 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13481 * infcmd.c (notice_args_read): Fix function signature.
13483 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13484 * cli/cli-decode.c (add_set_cmd): Ditto.
13485 * utils.c (initialize_utils): Ditto.
13486 * maint.c (_initialize_maint_cmds): Ditto.
13487 * infrun.c (_initialize_infrun): Ditto.
13488 * demangle.c (_initialize_demangler): Ditto.
13489 * remote.c (add_packet_config_cmd): Ditto.
13490 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13491 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13492 * proc-api.c (_initialize_proc_api): Ditto.
13493 * kod.c (_initialize_kod): Ditto.
13494 * valprint.c (_initialize_valprint): Ditto.
13495 * top.c (init_main): Ditto.
13496 * infcmd.c (_initialize_infcmd): Ditto.
13497 * corefile.c (_initialize_core): Ditto.
13498 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13499 * arch-utils.c (initialize_current_architecture): Ditto.
13500 (_initialize_gdbarch_utils): Ditto.
13501 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13503 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13504 * wince.c (_initialize_inftarg): Ditto.
13505 * symfile.c (_initialize_symfile): Ditto.
13506 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13507 * language.c (_initialize_language): Ditto.
13508 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13510 2002-02-04 Michael Snyder <msnyder@redhat.com>
13512 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13514 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13516 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13517 Add rules for building the register data files.
13519 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13521 * regformats/regdat.sh: Add braces to the definition of
13522 expedite_regs_${arch}.
13524 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13526 * regformats/regdef.h (struct reg): Add comment describing the
13527 requirements for offset and size fields.
13529 2002-02-04 Andreas Schwab <schwab@suse.de>
13531 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13532 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13534 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13536 * gdbarch.sh (copyright): Update years in generated header.
13537 (SMASH_TEXT_ADDRESS): Add rule.
13538 * gdbarch.h, gdbarch.c: Re-generate.
13539 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13540 * dbxread.c: Likewise.
13541 * dwarfread.c: Likewise.
13542 * elfread.c: Likewise.
13543 * somread.c: Likewise.
13545 * arm-tdep.c (arm_smash_text_address): New function.
13546 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13548 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13550 Add support for hardware watchpoints on win32 native.
13551 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13552 CONTEXT_DEBUG_REGISTERS.
13553 (dr variable): New variable. Static array containing a local copy
13554 of debug registers.
13555 (debug_registers_changed): New variable. Reflects when debug registers
13556 are changed and need to be written to inferior.
13557 (debug_registers_used): New variable. Reflects when any debug register
13558 was set, used when new threads are created.
13559 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13561 (thread_rec): Set dr array if id is the thread of current_event .
13562 (child_continue, child_resume): Change the debug registers for all
13563 threads if debug_registers_changed.
13564 (child_add_thread): Change the debug registers if debug_registers_used.
13565 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13566 Link nm.h to new nm-cygwin.h file.
13567 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13568 of hardware registers.
13570 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13572 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13573 Restore behavour broken by 2002-01-20 Andrew Cagney
13574 <ac131313@redhat.com> IEEE_FLOAT removal.
13576 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13578 * c-valprint.c (c_val_print): Pass a proper valaddr to
13579 cp_print_class_method.
13580 * valops.c (search_struct_method): If there is only one method
13581 and args is NULL, return that method.
13583 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13585 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13586 accessing tag_name directly.
13588 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13590 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13591 of accessing tag_name directly.
13593 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13596 * gdbtypes.c (replace_type): New function.
13597 * gdbtypes.h (replace_type): Add prototype.
13598 * stabsread.c (read_type): Use replace_type.
13600 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13602 * Makefile.in (memattr.o): Add missing dependencies rule.
13604 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13606 * breakpoint.c (break_at_finish_command): Really export.
13607 (break_at_finish_at_depth_command): Ditto.
13608 (tbreak_at_finish_command): Ditto.
13609 * hppa-tdep.c: Include completer.h.
13610 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13611 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13613 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13615 * utils.c (do_write): New function.
13616 (error_stream): Rewrite combining the code from error_begin and
13618 (verror): Rewrite using error_stream.
13619 (error_begin): Delete function.
13621 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13623 * utils.c (error_begin): Make static.
13624 * defs.h (error_begin): Delete declaration.
13626 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13627 (decode_line_1): Use cplusplus_error instead of error_begin,
13628 cplusplus_hint and return_to_top_level.
13629 * coffread.c (coff_symfile_read): Use error instead of error_begin
13630 and return_to_top_level.
13631 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13633 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13635 * language.h (type_error, range_error): Make string parameter
13637 * language.c (warning_pre_print): Delete extern declaration.
13638 * dwarfread.c (warning_pre_print): Ditto.
13639 * language.c (type_error, range_error): Rewrite to use verror and
13640 vwarning instead of warning_begin.
13642 2002-02-01 Michael Snyder <msnyder@redhat.com>
13644 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13645 (set_ignore_count): Move misplaced comment back where it belongs.
13647 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13649 * command.h (NO_FUNCTION): Delete macro.
13650 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13651 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13652 * tracepoint.c (_initialize_tracepoint): Ditto.
13653 * cli/cli-decode.c (add_set_cmd): Ditto.
13654 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13656 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13658 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13659 Update ``this'' pointer when calling virtual functions.
13661 2002-02-01 Michael Snyder <msnyder@redhat.com>
13663 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13664 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13666 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13668 * regformats/reg-arm.dat: New file.
13669 * regformats/reg-i386.dat: New file.
13670 * regformats/reg-ia64.dat: New file.
13671 * regformats/reg-m68k.dat: New file.
13672 * regformats/reg-mips.dat: New file.
13673 * regformats/reg-ppc.dat: New file.
13674 * regformats/reg-sh.dat: New file.
13675 * regformats/regdef.h: New file.
13676 * regformats/regdat.sh: New file.
13678 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13680 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13681 (arm_frame_args_address, arm_frame_locals_address): New functions.
13682 (arm_frame_num_args): New function.
13683 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13684 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13685 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13687 2002-01-31 Michael Snyder <msnyder@redhat.com>
13689 * breakpoint.c (break_at_finish_command): Export.
13690 (break_at_finish_at_depth_command): Export.
13691 (tbreak_at_finish_command): Export.
13692 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13693 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13694 "txbreak" commands, which are HPPA specific.
13696 * printcmd.c (disassemble_command): Remove an ancient
13697 artifact of an old merge.
13699 * symfile.h (enum overlay_debugging_state):
13700 Define enum constant values for overlay mode.
13701 * symfile.c (overlay_debugging): Use enums instead of literals.
13702 (overlay_is_mapped, overlay_auto_command,
13703 overlay_manual_command): Ditto.
13705 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13706 breakpoint_here_p, breakpoint_inserted_here_p,
13707 breakpoint_thread_match, bpstat_stop_status,
13708 describe_other_breakpoints, check_duplicates, clear_command):
13709 Coding standard fixes.
13711 * target.c (target_xfer_memory): Add spaces, coding standard.
13712 (do_xfer_memory): Add missing line to trust-readonly
13713 code: check bfd SEC_READONLY flag for section.
13715 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13717 * PROBLEMS: Fix typo, 5.1->5.1.1.
13719 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13721 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13722 data symbols, since we search based on textlow and texthigh.
13723 (find_pc_sect_symtab): Likewise.
13725 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13727 * defs.h (vwarning): Declare.
13728 * utils.c (vwarning): New function.
13729 (warning): Call vwarning.
13730 (warning_begin): Delete function.
13732 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13733 the warning message.
13734 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13737 2002-01-30 Michael Snyder <msnyder@redhat.com>
13739 * NEWS: Mention "set trust-readonly-sections" command.
13740 Mention generate-core-file command.
13742 2002-01-15 Michael Snyder <msnyder@redhat.com>
13744 * target.c: New command, "set trust-readonly-sections on".
13745 (do_xfer_memory): Honor the suggestion to trust readonly sections
13746 by reading them from the object file instead of from the target.
13747 (initialize_targets): Register command "set trust-readonly-sections".
13749 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13751 * parse.c (target_map_name_to_register): Simplify, search regs and
13752 pseudo-regs using a single loop.
13754 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13756 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13758 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13760 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13761 * config/i386/i386v42mp.mh: Add i387-nat.o .
13762 * i386v4-nat.c: Include i387-nat.h.
13763 (supply_fpregset): Use i387_supply_fsave.
13764 (fill_fpregset): Use i387_fill_fsave.
13766 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13768 * arm-tdep.c (arm_call_dummy_words): Define.
13769 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13770 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13771 (CALL_DUMMY_WORDS): Define.
13772 (arm_call_dummy_words): Declare.
13773 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13774 (arm_linux_call_dummy_words): Declare.
13776 2002-01-30 Andreas Schwab <schwab@suse.de>
13778 * m68klinux-nat.c: Fix last change to use regcache_collect
13779 instead of referencing registers[] directly.
13781 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13783 * parse.c (target_map_name_to_register): Delete code wrapped in
13784 #ifdef REGISTER_NAME_ALIAS_HOOK.
13786 2002-01-28 Michael Snyder <msnyder@redhat.com>
13788 * regcache.c (legacy_read_register_gen): Need to be able to
13789 read pseudo-register as well as real register.
13790 (legacy_write_register_gen): Ditto.
13792 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13794 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13795 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13796 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13797 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13798 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13799 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13800 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13801 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13802 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13803 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13804 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13805 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13806 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13807 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13808 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13809 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13810 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13811 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13812 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13813 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13815 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13817 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13818 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13819 (initialize_current_architecture): Update target_byte_order using
13820 information from BFD.
13821 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13822 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13824 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13826 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13827 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13829 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13830 #ifdef INVALID_FLOAT.
13831 * infcmd.c (do_registers_info): Ditto.
13832 * values.c (unpack_double): Ditto. Add comment.
13834 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13835 already commented out.
13837 2002-01-26 Andreas Schwab <schwab@suse.de>
13839 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13840 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13841 registers and add support for PTRACE_GETREGS.
13843 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13845 GDB 5.1.1 released from 5.1 branch.
13846 * NEWS: Add 5.1.1 news.
13847 * README: Sync with 5.1 branch.
13849 2002-01-23 Fred Fish <fnf@redhat.com>
13851 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13852 stabstring on initial malloc. Reallocing will copy it for us,
13855 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13857 * Makefile.in (hpread_h): Delete.
13858 (HFILES_NO_SRCDIR): Remove hpread.h.
13859 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13860 (hpread.o): Update dependencies.
13861 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13863 * hp-psymtab-read.c: Remove file.
13864 * hp-symtab-read.c: Remove file.
13865 * hpread.h: Remove file.
13867 * hpread.c: Merge all contents of hp-psymtab-read.c,
13868 hp-symtab-read.c and hpread.h into this file, as it was prior to
13871 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13872 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13873 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13874 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13876 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13878 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13879 fill_gregset): Call gdbarch_tdep() just once, assign result to
13880 variable and use that, instead of calling the function several
13883 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13885 * configure.host: Accept sparcv9 as alias for sparc64.
13886 * configure.tgt: Likewise.
13888 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13890 * solib-aix5.c (build_so_list_from_mapfile)
13891 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13892 arguments is not reversed.
13893 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13894 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13896 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13898 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13899 modified version of obsolete sh_fetch_pseudo_register.
13900 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13901 (sh4_register_read): New function.
13902 (sh_pseudo_register_write): New function. Renamed and modified
13903 version of obsolete sh_store_pseudo_register.
13904 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13905 (sh4_register_write): New function.
13906 (sh_gdbarch_init): Remove setting of gdbarch function
13907 fetch_pseudo_register and store_pseudo_register. Remove setting of
13908 register_convert_to_raw, register_convert_to_virtual,
13909 register_convertible.
13910 (sh_sh4_register_convertible): Delete. No longer needed. All is
13911 taken care by architecture specific functions
13912 register_read/register_write.
13913 (sh_sh4_register_convert_to_virtual): Make static.
13914 (sh_sh4_register_convert_to_raw): Ditto.
13916 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13918 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13919 (floatformat_is_nan, floatformat_mantissa): Ditto.
13921 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13922 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13923 builtin_type_ieee_double_little,
13924 builtin_type_ieee_double_littlebyte_bigword,
13925 builtin_type_m68881_ext, builtin_type_i960_ext,
13926 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13927 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13928 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13929 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13931 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13933 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13934 parameter. Set frameless flag if it exists and depended of
13935 whether the scanned function is frameless or not.
13936 (xstormy16_skip_prologue): If function is frameless, return
13937 result of xstormy16_scan_prologue().
13938 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13941 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13943 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13944 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13945 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13946 sh_sh4_register_byte, sh_sh4_register_raw_size,
13947 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13948 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13949 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13950 sh_store_pseudo_register, sh_do_pseudo_register): Call
13951 gdbarch_tdep() just once, assign result to variable and use that,
13952 instead of calling the function several times.
13954 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13956 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13957 macros instead of LAST_FPU_CTRL_REGNUM.
13958 (store_register): Likewise.
13960 2002-01-21 Jim Blandy <jimb@redhat.com>
13962 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13963 is up-to-date before running the program, not just when a program
13966 2002-01-21 Fred Fish <fnf@redhat.com>
13968 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13969 when we have found all instructions we are looking for.
13971 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13973 * arm-tdep.c (arm_register_name): New function.
13974 (arm_registers_names): Make static.
13975 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13976 (arm_register_name): Declare.
13977 (REGISTER_NAME): Use it.
13979 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13980 Kevin Buettner <kevinb@redhat.com>
13982 Convert arm targets to new FRAME interface.
13983 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13984 (arm_frame_find_save_regs): Delete.
13985 (arm_frame_init_saved_regs): New.
13986 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13987 Allocate extra_info as required. Convert all uses of fsr.regs
13988 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13990 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13991 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13992 (check_prologue_cache, save_prologue_cache): Likewise.
13993 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13994 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13995 (FRAME_FIND_SAVED_REGS): Delete.
13996 (arm_frame_find_saved_regs): Delete prototype.
13997 (arm_frame_init_saved_regs): New prototype.
13998 (FRAME_INIT_SAVED_REGS): Define.
14000 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14002 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14004 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14006 From Jeff Law <law@redhat.com>:
14007 * infttrace.c: Include <sys/pstat.h>.
14008 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14009 exec file if the ttrace equivalent fails.
14011 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14013 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14014 (closeLogFile): Ditto.
14016 2002-01-20 Michael Chastain <mec@shout.net>
14018 * top.c (print_gdb_version): Bump copyright year to 2002.
14020 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14022 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14023 Zannoni and Eli Zaretskii.
14025 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14027 * buildsym.c: Update copyright years.
14028 * c-typeprint.c: Likewise.
14029 * dwarf2read.c: Likewise.
14030 * f-typeprint.c: Likewise.
14031 * gdbtypes.c: Likewise.
14032 * gdbtypes.h: Likewise.
14033 * hp-symtab-read.c: Likewise.
14034 * hpread.c: Likewise.
14035 * mdebugread.c: Likewise.
14036 * p-typeprint.c: Likewise.
14038 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14040 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14041 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14042 byte-order selectable.
14043 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14044 * arch-utils.c: Ditto.
14045 (set_endian): Ditto.
14046 (set_endian_from_file): Ditto.
14047 * gdbserver/low-sim.c (create_inferior): Ditto.
14048 * gdbarch.sh: Ditto.
14049 * gdbarch.h: Re-generate.
14050 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14051 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14052 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14053 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14054 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14055 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14056 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14057 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14059 * config/mips/tm-wince.h: Remove #undef of macro
14060 TARGET_BYTE_ORDER_SELECTABLE.
14061 * config/sh/tm-wince.h: Ditto.
14063 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14065 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14066 member function fields. Add accessor macro
14067 TYPE_FN_FIELD_ARTIFICIAL.
14068 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14069 * c-typeprint.c (c_type_print_base): Skip artificial member
14072 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14074 * f-typeprint.c: Delete unused function f_type_print_args.
14075 * p-typeprint.c: Delete unused function pascal_type_print_args.
14077 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14079 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14080 comment. Add ``artificial'' to ``union field_location''.
14082 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14084 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14085 * mdebugread.c (parse_symbol): Likewise.
14086 * stabsread.c (define_symbol): Likewise.
14087 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14088 initializing TYPE_FIELD_BITPOS to n (obsolete).
14089 (hpread_doc_function_type): Likewise.
14090 * hpread.c (hpread_function_type): Likewise.
14092 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14094 * configure.in (host_makefile_frag): Only require a host makefile
14095 fragment when a native build.
14096 * configure: Re-generate.
14098 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14100 * doublest.h (floatformat_from_type): Declare.
14101 * doublest.c (floatformat_from_type): New function.
14102 (convert_typed_floating): Use.
14104 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14105 call to function floatformat_from_type.
14107 * gdbarch.sh (IEEE_FLOAT): Delete.
14108 * gdbarch.h, gdbarch.c: Re-generate.
14109 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14110 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14111 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14112 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14113 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14114 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14115 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14116 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14117 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14118 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14119 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14120 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14122 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14123 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14124 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14125 * sh-tdep.c (sh_gdbarch_init): Ditto.
14126 * mips-tdep.c (mips_gdbarch_init): Ditto.
14127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14128 * cris-tdep.c (cris_gdbarch_init): Ditto.
14130 2002-01-20 Jiri Smid <smid@suse.cz>
14132 * configure.host, configure.tgt: Support x86-64.
14133 * NEWS: Note new target x86-64.
14135 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14136 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14137 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14138 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14139 x86-64-linux-nat.o): Fix dependencies.
14141 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14143 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14144 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14145 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14146 * config/sparc/xm-sun4os4.h: Delete file.
14147 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14149 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14151 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14152 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14153 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14154 * config/i386/i386lynx.mh (XM_FILE): Delete.
14155 * config/rs6000/xm-rs6000ly.h: Delete file.
14156 * config/sparc/xm-sparclynx.h: Delete file.
14157 * config/m68k/xm-m68klynx.h: Delete file.
14158 * config/i386/xm-i386lynx.h: Delete file.
14159 * config/xm-lynx.h: Delete file.
14160 * config/djgpp/fnchange.lst: Update.
14162 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14164 * alpha-tdep.c (alpha_register_byte): New function.
14165 (alpha_register_raw_size): Ditto.
14166 (alpha_register_virtual_size): Ditto.
14167 (alpha_skip_prologue_internal): Renamed from
14168 alpha_skip_prologue.
14169 (alpha_skip_prologue): New version that calls
14170 alpha_skip_prologue_internal.
14171 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14172 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14173 second argument from alpha_skip_prologue.
14174 (REGISTER_BYTE): Use alpha_register_byte.
14175 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14176 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14177 (FRAMELESS_FUNCTION_INVOCATION): Use
14178 generic_frameless_function_invocation_not.
14179 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14180 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14182 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14184 * config/mips/xm-news-mips.h: Delete file.
14185 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14187 * config/m88k/xm-m88k.h: Delete file.
14188 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14189 * config/m88k/xm-delta88v4.h: Ditto.
14190 * config/m88k/xm-delta88.h: Ditto.
14192 * config/alpha/xm-fbsd.h: Delete file.
14193 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14195 * config/sparc/xm-sparc.h: Delete file.
14196 * Makefile.in (xm-sun4os4.h): Delete dependency.
14197 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14198 * config/sparc/xm-sun4os4.h: Ditto.
14199 * config/sparc/xm-linux.h: Ditto.
14201 * config/i386/xm-windows.h: Delete file.
14203 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14205 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14206 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14208 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14210 * alpha-tdep.c (alpha_call_dummy_words): New.
14211 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14212 (CALL_DUMMY_P): Define.
14213 (CALL_DUMMY_WORDS): Define.
14214 (SIZEOF_CALL_DUMMY_WORDS): Define.
14216 2002-01-19 Per Bothner <per@bothner.com>
14218 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14219 isn't NULL, which can happen with some gcj-3.x-produced code.
14221 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14223 * alpha-tdep.c (alpha_register_virtual_type): New function.
14224 (alpha_init_frame_pc_first): Ditto.
14225 (alpha_fix_call_dummy): Ditto.
14226 (alpha_store_struct_return): Ditto.
14227 (alpha_extract_struct_value_address): Ditto.
14228 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14229 alpha_register_virtual_type.
14230 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14231 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14232 alpha_extract_struct_value_address.
14233 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14234 (INIT_FRAME_PC): Use init_frame_pc_noop.
14235 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14237 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14239 * i386gnu-nat.c: Include "i386-tdep.h".
14240 (fetch_fpregs): Simplify code dealing with uninitialized floating
14241 point states such that it doesn't require FP7_REGNUM.
14243 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14245 * alpha-tdep.c (frame_extra_info): New.
14246 (alpha_find_saved_regs): Make static. Use
14248 (alpha_frame_init_saved_regs): New function.
14249 (alpha_frame_saved_pc): Use frame->extra_info.
14250 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14251 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14252 (init_extra_frame_info): Rename to...
14253 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14254 (alpha_print_extra_frame_info): New function.
14255 (alpha_frame_locals_address): Ditto.
14256 (alpha_frame_args_address): Ditto.
14257 (alpha_pop_frame): Use frame->extra_info.
14258 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14259 alpha_frame_args_address.
14260 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14261 (alpha_find_saved_regs): Remove prototype.
14262 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14263 (EXTRA_FRAME_INFO): Remove.
14264 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14265 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14267 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14269 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14270 (alpha_cannot_fetch_register): Ditto.
14271 (alpha_cannot_store_register): Ditto.
14272 (alpha_register_convertible): Ditto.
14273 (alpha_use_struct_convention): Ditto.
14274 * config/alpha/tm-alpha.h: Update copyright years.
14275 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14276 (INNER_THAN): Use core_addr_lessthan.
14277 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14278 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14279 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14280 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14281 (FRAME_CHAIN): Remove unnecessary cast.
14283 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14285 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14288 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14290 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14291 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14292 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14293 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14294 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14295 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14296 * x86-64-linux-nat.c: Ditto.
14298 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14300 * alpha-tdep.c (alpha_register_name): New function.
14301 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14302 (REGISTER_NAME): Define.
14304 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14306 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14308 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14310 * alpha-tdep.c: Update copyright years.
14311 (alpha_next_pc): New function.
14312 (alpha_software_single_step): Ditto.
14313 * config/alpha/tm-alpha.h: Add prototype for
14314 alpha_software_single_step.
14316 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14318 * alphabsd-nat.c: Update copyright years.
14319 (fill_gregset): Use regcache_collect.
14320 (fill_fpregset): Likewise.
14321 (fetch_inferior_registers): Only fetch integer registers
14322 if requested to do so.
14323 (store_inferior_registers): Only store integer registers
14324 if requested to do so.
14326 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14328 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14329 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14330 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14331 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14332 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14333 * config/arm/linux.mh (XDEPFILES): Delete.
14334 * config/arm/nbsd.mh (XDEPFILES): Delete.
14335 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14336 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14337 * config/i386/i386m3.mh (XDEPFILES): Delete.
14338 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14339 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14340 * config/i386/fbsd.mh (XDEPFILES): Delete.
14341 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14342 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14343 * config/i386/i386v4.mh (XDEPFILES): Delete.
14344 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14345 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14346 * config/i386/i386aix.mh (XDEPFILES): Delete.
14347 * config/i386/go32.mh (XDEPFILES): Delete.
14348 * config/i386/cygwin.mh (XDEPFILES): Delete.
14349 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14350 * config/i386/i386mach.mh (XDEPFILES): Delete.
14351 * config/i386/i386v32.mh (XDEPFILES): Delete.
14352 * config/i386/linux.mh (XDEPFILES): Delete.
14353 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14354 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14355 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14356 * config/i386/i386sco.mh (XDEPFILES): Delete.
14357 * config/i386/i386v.mh (XDEPFILES): Delete.
14358 * config/i386/nbsd.mh (XDEPFILES): Delete.
14359 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14360 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14361 * config/i386/symmetry.mh (XDEPFILES): Delete.
14362 * config/i386/obsd.mh (XDEPFILES): Delete.
14363 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14364 * config/ia64/linux.mh (XDEPFILES): Delete.
14365 * config/ia64/aix.mh (XDEPFILES): Delete.
14366 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14367 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14368 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14369 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14370 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14371 * config/m68k/linux.mh (XDEPFILES): Delete.
14372 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14373 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14374 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14375 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14376 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14377 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14378 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14379 * config/m88k/delta88.mh (XDEPFILES): Delete.
14380 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14381 * config/m88k/m88k.mh (XDEPFILES): Delete.
14382 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14383 * config/mips/linux.mh (XDEPFILES): Delete.
14384 * config/mips/irix6.mh (XDEPFILES): Delete.
14385 * config/mips/irix5.mh (XDEPFILES): Delete.
14386 * config/mips/irix4.mh (XDEPFILES): Delete.
14387 * config/mips/irix3.mh (XDEPFILES): Delete.
14388 * config/mips/decstation.mh (XDEPFILES): Delete.
14389 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14390 (NATDEPFILES): Move core-aout.o to here.
14391 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14392 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14393 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14394 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14395 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14396 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14397 * config/pa/hpux11.mh (XDEPFILES): Delete.
14398 * config/powerpc/aix.mh (XDEPFILES): Delete.
14399 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14400 * config/powerpc/linux.mh (XDEPFILES): Delete.
14401 * config/romp/rtbsd.mh: Rename XDEPFILES.
14402 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14403 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14404 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14405 * config/s390/s390.mh (XDEPFILES): Delete.
14406 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14407 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14408 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14409 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14410 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14411 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14412 * config/sparc/linux.mh (XDEPFILES): Delete.
14413 * config/vax/vaxult.mh (XDEPFILES): Delete.
14414 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14415 * Makefile.in (DEPFILES): Remove XDEPFILES.
14417 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14419 * utils.c (internal_verror): Fix comments, default is yes not no.
14420 Update queries to match. Default to quit and dump core.
14422 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14424 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14426 * defs.h, event-top.c, gdbcmd.h: Ditto.
14427 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14428 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14429 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14430 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14431 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14432 * mi/mi-main.c:Ditto.
14434 * stack.c, symfile.c: Update copyright.
14436 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14438 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14439 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14440 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14441 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14443 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14445 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14446 * gdbserver/low-lynx.c (myattach): Likewise.
14447 * gdbserver/low-nbsd.c (myattach): Likewise.
14448 * gdbserver/low-sim.c (myattach): Likewise.
14449 * gdbserver/low-sparc.c (myattach): Likewise.
14450 * gdbserver/low-sun3.c (myattach): Likewise.
14452 * gdbserver/low-linux.c (myattach): New function.
14454 * gdbserver/server.c (attach_inferior): New function.
14455 (main): Handle "--attach".
14457 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14459 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14462 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14464 * c-typeprint.c (is_type_conversion_operator): Add additional
14465 check for non-conversion operators.
14467 2002-01-15 Michael Snyder <msnyder@redhat.com>
14469 * linux-proc.c: Add "info proc" command, a la procfs.c.
14470 (read_mapping): New function, abstract and re-use code.
14471 (linux_find_memory_regions): Use new func read_mapping.
14472 (linux_info_proc_cmd): New function, implement "info proc".
14473 (_initialize_linux_proc): Add new command "info proc".
14475 2002-01-15 Michael Snyder <msnyder@redhat.com>
14477 * symfile.c (generic_load): Use bfd_map_over_sections method
14478 instead of manipulating bfd structure members directly.
14479 (add_section_size_callback): New function, bfd sections callback
14480 used by generic_load.
14481 (load_sections_callback): New function, bfd sections callback
14482 used by generic_load.
14484 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14486 [Based on work by Jim Blandy]
14487 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14488 (builtin_type_vec128): Export.
14489 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14491 (builtin_type_vec128): New builtin type for 128 bit vector
14493 (build_gdbtypes): Initialize builtin_type_v16qi and
14494 builtin_type_v8hi. Create the vec128 register builtin type
14496 (build_builtin_type_vec128): New function.
14497 (_initialize_gdbtypes): Register builtin_type_v16qi and
14498 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14499 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14500 AltiVec register to new builtin type.
14502 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14504 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14507 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14509 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14510 CLEAN_UP_REGISTER_VALUE.
14511 * regcache.c (supply_register): Update only call.
14513 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14515 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14516 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14517 a29k-*-vxworks* targets as obsolete.
14519 2002-01-14 Michael Snyder <msnyder@redhat.com>
14521 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14522 until we can resolve portability issues.
14523 * gregset.h: Remove references to fpxregs.
14524 * gcore.c (gcore_command): Initialize note_sec to NULL.
14526 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14528 * signals.c (target_signal_to_name): Rewrite. Only use
14529 signals[].name when in bounds and non-NULL.
14531 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14533 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14534 * signals.c (target_signal_to_name): Verify that SIG is within the
14535 bounds of the signals array.
14537 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14539 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14541 2002-01-13 Keith Seitz <keiths@redhat.com>
14543 * stack.c (print_frame_info_base): Print the frame's pc
14544 only if when print_frame_info_listing_hook is not defined.
14546 2002-01-13 Keith Seitz <keiths@redhat.com>
14548 * varobj.c (varobj_set_value): Make sure that there were no
14549 errors evaluating the object before attempting to set its
14551 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14552 so this offset adjustment is no longer necessary.
14553 (create_child): Don't set the error flag if the child is
14554 a CPLUS_FAKE_CHILD.
14555 (value_of_child): If value_fetch_lazy fails, return NULL
14556 so that callers will be notified that an error occurred.
14557 (c_value_of_variable): Delay check of variable's validity
14558 until later. We actually want all structs and unions to have
14560 Do not return "???" for variables which could not be evaluated.
14561 This error condition must be returned to the caller so that it
14562 can get the error condition from gdb.
14563 (cplus_name_of_child): Adjust index for vptr before figuring
14564 out the name of the child.
14565 (cplus_value_of_child): If a child's (real) parent is not valid,
14566 don't even bother trying to give a value for it. Just return
14567 an error. Change all instances in this function.
14568 (cplus_type_of_child): If our parent is one of the "fake"
14569 parents, we need to get at the type of the real parent, and
14570 derive the child's true type using this information.
14572 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14574 From 2002-01-09 John Marshall <johnm@falch.net>:
14575 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14576 sources.redhat.com, and tweak some related URLs which had
14577 suffered from linkrot.
14579 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14582 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14583 structures passed in registers.
14585 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14587 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14588 white space which prevented compilation. Reported by DSK
14589 <dsk@student.unsw.edu.au>.
14591 2002-01-11 Michael Snyder <msnyder@redhat.com>
14593 * symfile.c (build_section_addr_info_from_section_tab):
14594 Use bfd access method instead of manipulating bfd directly.
14595 (syms_from_objfile): Ditto.
14596 (simple_overlay_update_1): Ditto.
14597 (simple_overlay_update): Ditto.
14598 (generic_load): Ditto.
14599 (overlay_unmapped_address): FIXME comment, bfd access methods.
14600 (sections_overlap): FIXME comment, bfd access methods.
14601 (pc_in_mapped_range): FIXME comment, bfd access methods.
14602 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14603 (section_is_mapped): FIXME comment, bfd access methods.
14604 (section_is_overlay): FIXME comment, bfd access methods.
14606 * symfile.c (generic_load): Whitespace and long line cleanups.
14607 Remove duplicate variable, change several local variables to
14608 more appropriate data types.
14609 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14611 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14613 From Peter Schauer:
14614 * language.c (longest_local_hex_string_custom): Use phex_nz to
14615 convert NUM to a hex string.
14617 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14619 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14621 Update Copyright year.
14623 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14625 * language.c (longest_raw_hex_string): Delete unused function.
14627 2002-01-11 Petr Sorfa <petrs@caldera.com>
14629 * MAINTAINERS (write-after-approval): Add myself.
14630 * dwarf2read.c (read_tag_string_type): Handling of
14632 (read_tag_string_type): FORTRAN fix to prevent propagation of
14634 (set_cu_language): Handling of DW_LANG_Fortran95
14636 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14638 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14639 GETPID(inferior_ptid).
14640 (store_inferior_registers): Likewise.
14642 2002-01-10 Jason Merrill <jason@redhat.com>
14644 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14647 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14649 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14650 and bfd/elf32-sh-nbsd.c.
14652 2002-01-10 Michael Snyder <msnyder@redhat.com>
14654 * NEWS: Mention --pid and corefile/proc-id behavior change.
14656 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14657 * gcore.c: Include cli/cli-decode.h instead of command.h.
14659 * main.c (captured_main): Add new command line option "--pid".
14660 If the second command line argument (following the symbol-file)
14661 begins with a digit, try to attach to it before trying to open
14663 (print_gdb_help): Document the "--pid" argument.
14665 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14667 * completer.c (command_completer): New function.
14669 * completer.h <command_completer>: Add prototype.
14671 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14672 completer for the "help" command.
14674 2002-01-09 Jason Merrill <jason@redhat.com>
14676 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14678 2002-01-09 Michael Snyder <msnyder@redhat.com>
14680 * i386-linux-nat.c (fill_fpxregset): Make global.
14681 (store_fpxregset): Ditto.
14683 * gregset.h (gdb_fpxregset_t): Define.
14684 (supply_fpxregset): Prototype.
14685 (fill_fpxregset): Prototype.
14687 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14689 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14691 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14692 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14693 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14695 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14697 * MAINTAINERS: Update target maintainer rules so that any
14698 Maintainer can approve a tested patch for a maintenance-only
14701 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14703 * MAINTAINERS (write-after-approval): Add myself.
14705 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14708 2002-01-08 Michael Snyder <msnyder@redhat.com>
14710 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14711 real name of the executable, rather than the /proc name.
14713 2002-01-03 Michael Snyder <msnyder@redhat.com>
14715 Implement a "generate-core-file" command in gdb, save target state.
14716 * gcore.c: New file. Implement new command 'generate-core-file'.
14717 Save a corefile image of the current state of the inferior.
14718 * linux-proc.c: Add linux-specific code for saving corefiles.
14719 * target.h (struct target_ops): Add new target vectors for saving
14720 corefiles; to_find_memory_regions and to_make_corefile_notes.
14721 (target_find_memory_regions): New macro.
14722 (target_make_corefile_notes): New macro.
14723 * target.c (update_current_target): Inherit new target methods.
14724 (dummy_find_memory_regions): New place-holder method.
14725 (dummy_make_corefile_notes): New place-holder method.
14726 (init_dummy_target): Initialize new dummy target vectors.
14727 * exec.c (exec_set_find_memory_regions): New function.
14728 Allow the exec_ops vector for memory regions to be taken over.
14729 (exec_make_note_section): New function, target vector method.
14730 * defs.h (exec_set_find_memory_regions): Export prototype.
14731 * procfs.c (proc_find_memory_regions): New function, corefile method.
14732 (procfs_make_note_section): New function, corefile method.
14733 (init_procfs_ops): Set new target vector pointers.
14734 (find_memory_regions_callback): New function.
14735 (procfs_do_thread_registers): New function.
14736 (procfs_corefile_thread_callback): New function.
14737 * sol-thread.c (sol_find_memory_regions): New function.
14738 (sol_make_note_section): New function.
14739 (init_sol_thread_ops): Initialize new target vectors.
14740 * inftarg.c (inftarg_set_find_memory_regions): New function.
14741 Allow to_find_memory_regions vector to be taken over.
14742 (inftarg_set_make_corefile_notes): New function.
14743 Allow to_make_corefile_notes vector to be taken over.
14744 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14745 interface layer if not target_has_execution (may be a corefile).
14746 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14747 * config/sparc/sun4sol2.mh: Ditto.
14748 * config/alpha/alpha-linux.mh: Ditto.
14749 * config/arm/linux.mh: Ditto.
14750 * config/i386/x86-64linux.mh: Ditto.
14751 * config/ia64/linux.mh: Ditto.
14752 * config/m68k/linux.mh: Ditto.
14753 * config/mips/linux.mh: Ditto.
14754 * config/powerpc/linux.mh: Ditto.
14755 * config/sparc/linux.mh: Ditto.
14757 2002-01-07 Michael Snyder <msnyder@redhat.com>
14759 * arm-linux-nat.c: Remove references to regcache.c internal data
14760 (registers[] and register_valid[]).
14762 2002-01-07 Michael Snyder <msnyder@redhat.com>
14764 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14765 so that attaching to a pid will automatically read the process's
14766 symbol file and shlibs.
14767 * Makefile.in: Add rule for linux-proc.o.
14768 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14769 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14770 * config/arm/linux.mh: Ditto.
14771 * config/i386/linux.mh: Ditto.
14772 * config/i386/x86-64linux.mh: Ditto.
14773 * config/ia64/linux.mh: Ditto.
14774 * config/m68k/linux.mh: Ditto.
14775 * config/mips/linux.mh: Ditto.
14776 * config/powerpc/linux.mh: Ditto.
14777 * config/sparc/linux.mh: Ditto.
14779 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14781 * win32-nat.c: Add i386-tdep.h dependency.
14783 2002-01-07 Michael Snyder <msnyder@redhat.com>
14785 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14786 instead of bfd_get_arch_size. Don't bail out just because
14787 there's no exec_bfd.
14789 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14790 * p-valprint.c (pascal_object_print_value): Ditto.
14791 * somread.c (som_symtab_read): Ditto.
14792 * symfile.c (simple_free_overlay_region_table): Ditto.
14793 * valops.c (value_assign): Ditto.
14795 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14796 use tilde_expand and strerror for opening save-tracepoints file.
14798 * thread-db.c (thread_db_new_objfile): Indendation fix.
14800 * infptrace.c (GDB_MAX_ALLOCA): New define.
14801 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14802 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14803 can be overridden with whatever value is appropriate to the host).
14804 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14805 alloca to allocate potentially large buffer.
14806 * rs6000-nat.c (child_xfer_memory): Ditto.
14807 * symm-nat.c (child_xfer_memory): Ditto.
14808 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14810 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14812 From Nick Clifton <nickc@redhat.com>
14813 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14815 2002-01-07 Michael Snyder <msnyder@redhat.com>
14817 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14818 Don't use exec_bfd if it's NULL.
14820 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14822 * valops.c (value_arg_coerce): Fix formatting.
14824 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14826 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14827 * gnu-nat.c: Ditto.
14829 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14831 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14832 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14833 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14834 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14835 z8k-coff have not been multi-arched. Update z8k-coff build
14838 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14840 * MAINTAINERS: Mark a29k target as obsolete.
14841 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14842 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14844 * NEWS: Note that a29k targets are obsolete.
14845 * a29k-tdep.c: Mark as obsolete.
14846 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14847 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14848 a29k-*-vxworks* targets as obsolete.
14849 * remote-adapt.c: Obsolete.
14850 * remote-eb.c: Obsolete.
14851 * remote-mm.c: Obsolete.
14852 * remote-udi.c: Obsolete.
14853 * config/a29k/a29k-udi.mt: Obsolete.
14854 * config/a29k/a29k.mt: Obsolete.
14855 * config/a29k/tm-a29k.h: Obsolete.
14856 * config/a29k/tm-vx29k.h: Obsolete.
14857 * config/a29k/vx29k.mt: Obsolete.
14859 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14861 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14862 with BFD_ENDIAN_BIG.
14864 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14866 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14867 * configure, config.in: Re-generate.
14868 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14869 * defs.h: Do not include <endian.h>.
14871 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14873 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14874 * config.in: Regenerate.
14875 * configure.in: Update copyright years.
14876 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14877 * configure: Regenerate.
14878 * i386bsd-nat.c: Update copyright years.
14879 (fill_gregset): Use regcache_collect.
14880 (fetch_inferior_registers): Only fetch integer registers
14881 if requested to do so. Add support for XMM registers
14882 using PT_GETXMMREGS.
14883 (store_inferior_registers): Only store integer registers
14884 if requested to do so. Add support for XMM registers
14885 using PT_SETXMMREGS.
14886 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14887 (store_inferior_registers): Remove.
14888 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14889 (fetch_elfcore_registers): New function.
14890 (i386nbsd_elfcore_fns): New.
14891 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14892 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14894 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14895 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14896 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14897 * config/i386/tm-nbsd.h: Update copyright years.
14898 (HAVE_SSE_REGS): Define.
14899 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14900 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14901 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14902 (SIGCONTEXT_PC_OFFSET): Remove.
14903 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14905 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14907 * configure.tgt: Remove powerpc-*-macos* target.
14908 * config/m68k/xm-mpw.h: Delete file.
14909 * config/xm-mpw.h: Delete file.
14910 * ser-mac.c: Delete file.
14911 * mpw-make.sed: Delete file.
14912 * mpw-config.in: Delete file.
14913 * mac-xdep.c: Delete file.
14914 * mac-gdb.r: Delete file.
14915 * mac-defs.h: Delete file.
14916 * mac-nat.c: Delete file.
14917 * config/powerpc/macos.mh: Delete file.
14918 * config/powerpc/macos.mt: Delete file.
14919 * config/powerpc/nm-macos.h: Delete file.
14920 * config/powerpc/tm-macos.h: Delete file.
14921 * source.c (openp, open_source_file): Remove obsolete code.
14922 * top.c (gdb_readline): Ditto.
14923 * utils.c (query): Ditto.
14924 * event-top.c (display_gdb_prompt): Ditto.
14925 * Makefile.in (ser-mac.o): Delete obsolete target.
14928 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14930 * defs.h (BIG_ENDIAN): Delete macro definition.
14931 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14932 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14933 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14934 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14935 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14936 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14937 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14938 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14939 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14940 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14941 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14942 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14943 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14944 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14945 * gdbarch.c: Re-generate.
14947 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14949 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14952 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14954 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14956 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14958 * value.h (value_ptr): Delete typedef.
14960 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14962 * i386nbsd-nat.c: Update copyright years.
14963 Include i386-tdep.h.
14965 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14967 * stabsread.c: Update copyright years.
14969 From Debashis Mahata <debashis.mahata@wipro.com>:
14970 (read_struct_fields): Deal with Sun C compiler erroneous stab
14971 output for structs and unions.
14974 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14976 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14979 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14981 * cp-abi.c: Fix whitespace.
14982 (baseclass_offset): New wrapper function.
14983 * cp-abi.h (baseclass_offset): Add prototype.
14984 (struct cp_abi_ops): Add baseclass_offset pointer.
14986 * valops.c (vb_match): Move to...
14987 * gnu-v2-abi.c (vb_match): here.
14988 * valops.c (baseclass_offset): Move to...
14989 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14991 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14993 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14994 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14995 * hpacc-abi.c (init_hpacc_ops): Likewise.
14997 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14999 * valops.c (find_overload_match): Accept obj as a
15000 reference parameter. Update it before returning.
15001 * value.h (find_overload_match): Update prototype.
15002 * eval.c (evaluate_subexp_standard): Pass object to
15003 find_overload_match by reference.
15005 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15007 * valarith.c: Replace value_ptr with struct value pointer. Remove
15008 register attribute from value declarations.
15011 * scm-lang.c (scm_lookup_name): Ditto.
15013 2002-01-03 Michael Snyder <msnyder@redhat.com>
15015 Abstract the functionality of iterating over mapped memory
15016 regions into a general purpose iterator function.
15017 * procfs.c (iterate_over_mappings): New function, general purpose
15018 iterator for memory sections.
15019 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15020 (solib_mappings_callback): New function, callback for above.
15021 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15022 (info_mappings_callback): New function, callback for above.
15024 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15026 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15028 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15029 * i386-tdep.c: Include "elf-bfd.h".
15030 (process_note_abi_tag_sections): New function.
15031 (i386_gdbarch_init): Add code to recognize various OS/ABI
15034 * maint.c (_initialize_maint_cmds): Add missing \ in
15037 For older changes see ChangeLog-2001
15043 version-control: never