1 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Create "Checks for programs" section, and move
4 appropriate tests there.
6 2003-01-01 Mark Kettenis <kettenis@gnu.org>
8 * configure.in: Create "Checks for libraries" section, and move
9 appropriate tests there. Cleanup check for wctype in libw. Use
10 AC_SEARCH_LIBS to see whether we need libsocket.
11 * configure: Regenerated.
13 2002-12-31 Mark Kettenis <kettenis@gnu.org>
15 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
16 * config.in, configure: Regenerated.
18 2002-12-31 Mark Kettenis <kettenis@gnu.org>
20 * gdb_dirent.h: Cleanup and update code to match the example in
22 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
23 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
24 * configure: Regenerated.
26 2002-12-30 Adam Fedor <fedor@gnu.org>
28 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
29 (yylex): Initialize c to avoid uninitialized warning.
31 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
33 * doc/fdl.texi: Revert the last change.
35 2002-12-29 Mark Kettenis <kettenis@gnu.org>
37 * tracepoint.c (ISATTY): Removed.
39 2002-12-26 J. Brobecker <brobecker@gnat.com>
41 Continuing work to convert the hppa targets to multiarch partil.
43 * hppa-tdep.c: Add some missing forward declarations.
44 (frameless_function_invocation): Prefix the function name
45 by "hppa_" to avoid polluting the namespace. Update all calls
46 to use the new function name.
47 (saved_pc_after_call): Ditto.
48 (init_extra_frame_info): Ditto.
50 (push_dummy_frame): Ditto.
51 (target_read_pc): Ditto.
52 (target_write_pc): Ditto.
53 (in_solib_call_trampoline): Ditto.
54 (in_solib_return_trampoline): Ditto.
55 (skip_trampoline_code): Ditto.
56 (hppa_read_fp): New function, renamed from target_read_fp.
57 (hppa_target_read_fp): New function, using hppa_read_fp.
58 This function conforms to the function profile for the
59 READ_FP gdbarch method.
60 (hppa_extract_struct_value_address): New function, extracted
61 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
63 (hppa_frame_num_args): New function.
64 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
66 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
67 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
68 for the switch to multiarch partial.
69 Update some of the macros definitions to match some changes
70 described above in the name of the function they are calling.
71 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
72 not be straightforward to convert. Do now wrap it inside
73 "#if !... #endif" to remember that this macro has still not
75 (FIX_CALL_DUMMY): Likewise.
77 2002-12-26 J. Brobecker <brobecker@gnat.com>
79 Continuing work to convert the hppa targets to multiarch partial.
81 * hppa-tdep.c (hppa_register_raw_size): New function replacing
82 the body of macro REGISTER_RAW_SIZE.
83 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
84 config/pa/tm-hppah.h. These functions will be used to initialize
85 the gdbarch structure.
86 (hppa_hpux_pc_in_sigtramp): New function.
87 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
88 (hppa_hpux_frame_base_before_sigtramp): New function.
89 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
90 Add gdbcore.h #include.
91 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
92 of this gdbarch-eligible macro to a call to the new associated
94 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
95 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
96 into a call to the new associated function.
97 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
98 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
99 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
101 2002-12-24 David Carlton <carlton@math.stanford.edu>
103 * config/sparc/tm-sparc.h: Delete duplicate definition of
104 DEPRECATED_PC_IN_CALL_DUMMY.
106 2002-12-24 Kevin Buettner <kevinb@redhat.com>
108 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
110 * configure.tgt: Recognize mips64*-*-linux*.
111 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
112 (supply_32_bit_reg): New function.
113 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
114 (fill_gregset): Use regcache_collect() instead of
115 deprecated_registers[].
116 (register_addr): Change name to mips_linux_register_addr().
117 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
118 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
119 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
120 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
121 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
122 (MIPS64_LINUX_JB_PC): New defines.
123 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
124 (mips64_elf_fpregset_t): New typedefs.
125 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
126 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
127 (mips64_linux_register_addr, set_mips_linux_register_addr)
128 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
129 (init_register_addr_data)
131 (fetch_core_registers): Add support for core file formats with 64-bit
133 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
134 (register_addr_data): New static global variable.
135 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
136 gdbarch_register_osabi() for each MIPS machine.
137 * config/mips/linux64.mt: New file.
138 * config/mips/tm-linux64.h: New file.
140 2002-12-23 Adam Fedor <fedor@gnu.org>
142 * maint.c (maintenance_demangle): Add switch to demangle
143 ObjC language symbols as well.
145 2002-12-23 Adam Fedor <fedor@gnu.org>
147 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
148 last argument from complaint function call.
150 2002-12-23 Kevin Buettner <kevinb@redhat.com>
152 * exec.c (print_section_info): Add FIXME comments regarding format
155 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
157 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
158 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
160 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
162 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
164 2002-12-23 David Carlton <carlton@math.stanford.edu>
166 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
167 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
168 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
169 information associated to a minsym, not lookup_symbol.
171 2002-12-21 Mark Kettenis <kettenis@gnu.org>
173 * x86-64-tdep.h (x86_64_init_abi): New prototype.
174 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
175 (x86_64_init_abi): Make non-static. Set number of pseudo
177 (x86_64_gdbarch_init): Remove function.
178 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
179 Remove code dealing with dissambly.
180 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
181 (_initialize_x86_64_linux_tdep): New function.
182 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
185 2002-12-14 Mark Kettenis <kettenis@gnu.org>
187 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
188 (struct gdb_osabi_handler): Remove member `arch'. Add member
190 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
191 construct a `struct bfd_arch_info' and store it in the `struct
192 gdb_osabi_handler' that is created.
193 (gdbarch_init_osabi): Check for compatibility based on machine
194 type and architecture.
195 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
197 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
198 second argument in call to gdbarch_register_osabi.
199 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
200 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
201 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
202 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
203 * arm-tdep.c (_initialize_arm_tdep): Likewise.
204 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
205 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
206 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
207 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
208 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
209 * i386-tdep.c (_initialize_i386_tdep): Likewise.
210 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
211 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
212 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
213 _initialize_i386bsd_tdep and updated likewise.
214 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
215 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
216 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
217 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
218 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
219 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
220 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
221 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
222 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
223 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
225 2002-12-20 Kevin Buettner <kevinb@redhat.com>
227 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
228 DT_MIPS_RLD_MAP case for 64-bit targets.
230 2002-12-20 Kevin Buettner <kevinb@redhat.com>
232 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
233 ``temp_saved_regs'', not the pointer or other storage contiguous
236 2002-12-20 Kevin Buettner <kevinb@redhat.com>
238 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
239 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
240 (mips_linux_get_longjmp_target): Delete declarations.
241 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
242 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
243 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
244 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
245 (mips_linux_get_longjmp_target)
246 (mips_linux_svr4_fetch_link_map_offsets): Make static.
247 (mips_linux_init_abi): New function.
248 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
250 2002-12-19 Keith Seitz <keiths@redhat.com>
252 patch committed by Elena Zannoni <ezannoni@redhat.com>
253 * thread.c (do_captured_list_thread_ids): Call prune_threads and
254 target_find_new_threads. Fix for PR mi/669.
256 2002-12-19 David Carlton <carlton@math.stanford.edu>
258 * linespec.c (decode_line_1): Move code into decode_all_digits.
259 (decode_all_digits): New function.
261 2002-12-19 Kevin Buettner <kevinb@redhat.com>
263 * exec.c (print_section_info): Select a format string to use with
264 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
266 2002-12-18 Andrew Cagney <ac131313@redhat.com>
268 * frame.c (deprecated_update_current_frame_pc_hack): Replace
269 deprecated_update_current_frame_pc_hack.
270 (deprecated_update_frame_base_hack): New function.
271 * frame.h (deprecated_update_frame_pc_hack): Replace
272 (deprecated_update_frame_base_hack): Declare.
273 * infrun.c (normal_stop): Update.
275 2002-12-18 Andrew Cagney <ac131313@redhat.com>
277 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
278 frame_extra_info_zalloc.
279 (rs6000_frame_args_address): Use get_frame_extra_info.
280 (frame_get_saved_regs): Use get_frame_saved_regs.
281 (frame_initial_stack_address): Use get_frame_saved_regs and
282 get_frame_extra_info.
283 (frame_initial_stack_address): Use get_frame_extra_info.
285 2002-12-17 Kevin Buettner <kevinb@redhat.com>
287 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
289 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
290 checks for r3900_regnames[].
292 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
294 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
296 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
298 2002-12-17 David Carlton <carlton@math.stanford.edu>
300 * symtab.c (lookup_partial_symbol): Don't search past the end of
303 2002-12-17 Andrew Cagney <ac131313@redhat.com>
305 * stack.c (frame_info): Use get_frame_saved_regs.
306 * breakpoint.c (until_break_command): Use get_frame_pc.
308 2002-12-16 Kevin Buettner <kevinb@redhat.com>
310 * buildsym.c (block_end_complaint, anon_block_end_complaint)
311 (innerblock_complaint, innerblock_anon_complaint)
312 (blockvector_complaint): Delete deprecated complaint structs.
313 (finish_block, make_blockvector, end_symtab): Replace calls
314 to complain() with calls to complaint().
315 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
316 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
317 (unexpected_type_complaint, bad_sclass_complaint)
318 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
319 Delete deprecated complaint structs.
320 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
321 Replace calls to complain() with calls to complaint().
322 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
323 (unknown_symtype_complaint, unknown_symchar_complaint)
324 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
325 (lbrac_mismatch_complaint, repeated_header_complaint)
326 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
327 Delete deprecated complaint structs.
328 (unknown_symtype_complaint, lbrac_mismatch_complaint)
329 (repeated_header_complaint)
330 (function_outside_compiliation_unit_complaint): New functions.
331 (add_old_header_file, find_corresponding_bincl_psymtab)
332 (set_namestring, find_stab_function_addr, read_dbx_symtab)
333 (process_one_symbol): Replace calls to complain() with, possibly
334 indirect, calls to complaint().
335 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
336 (unknown_attribute_form, unknown_attribute_length)
337 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
338 (const_ignored, botched_modified_type, op_deref2, op_deref4)
339 (basereg_not_handled, dup_user_type_allocation)
340 (dup_user_type_definition, missing_tag, bad_array_element_type)
341 (subscript_data_items, unhandled_array_subscript_format)
342 (unknown_array_subscript_format, not_row_major)
343 (missing_at_name): Delete deprecated complaint structs.
344 (bad_die_ref_complaint, unknown_attribute_form_complaint)
345 (dup_user_type_definition_complaint)
346 (bad_array_element_type_complaint): New functions.
347 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
348 (decode_subscript_data_item, dwarf_read_array_type)
349 (read_tag_string_type, read_subroutine_type, read_func_scope)
350 (locval, scan_partial_symbols, decode_modified_type)
351 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
352 (attribute_size): Replace calls to complain() with, possibly
353 indirect, calls to complaint().
354 * elfread.c (section_info_complaint, section_info_dup_complaint)
355 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
356 Delete deprecated complaint structs.
357 (elf_symtab_read, elfstab_offset_sections): Replace calls to
358 complain() with calls to complaint().
359 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
361 (stub_noname_complaint): New function.
362 (check_typedef, add_mangled_type): Replace calls to complain()
363 with calls to complaint().
364 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
365 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
366 (hpread_unhandled_type_complaint, hpread_struct_complaint)
367 (hpread_array_complaint, hpread_type_lookup_complaint)
368 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
369 (hpread_unhandled_common_complaint)
370 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
371 struct definitions and declarations.
372 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
373 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
374 Replace calls to complain() with, possibly indirect, calls to
376 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
378 * mdebugread.c (bad_file_number_complaint, index_complaint)
379 (aux_index_complaint, block_index_complaint)
380 (unknown_ext_complaint, unknown_sym_complaint)
381 (unknown_st_complaint, block_overflow_complaint)
382 (basic_type_complaint, unknown_type_qual_complaint)
383 (array_index_type_complaint, bad_tag_guess_complaint)
384 (block_member_complaint, stEnd_complaint)
385 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
386 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
387 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
388 (bad_continued_complaint, bad_rfd_entry_complaint)
389 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
390 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
391 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
392 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
394 (index_complaint, unknown_ext_complaint, basic_type_complaint)
395 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
396 (unexpected_type_code_complaint)
397 (function_outside_compilation_unit_complaint): New functions.
398 (parse_symbol, parse_type, upgrade_type, parse_procedure)
399 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
400 Replace calls to complain() with, possibly indirect calls to
402 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
403 Delete deprecated complaint structs.
404 (lookup__objc_class, lookup_child_selector): Replace complain()
406 * remote-vx.c (cant_contact_target): Delete deprecated complaint
408 (vx_lookup_symbol): Replace complain() with complaint().
409 * stabsread.c (invalid_cpp_abbrev_complaint)
410 (invalid_cpp_type_complaint, member_fn_complaint)
411 (const_vol_complaint, error_type_complaint)
412 (invalid_member_complaint, range_type_base_complaint)
413 (reg_value_complaint, vtbl_notfound_complaint)
414 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
415 (unresolved_sym_chain_complaint, stabs_general_complaint)
416 (lrs_general_complaint, multiply_defined_struct): Delete
417 deprecated complaint structs.
418 (invalid_cpp_abbrev_complaint, ref_value_complaint)
419 (stabs_general_complaint, lrs_general_complaint)
420 (msg_unknown_complaint): New functions.
421 (dbx_lookup_type, read_cfront_baseclasses)
422 (read_cfront_member_functions, resolve_symbol_reference)
423 (define_symbol, resolve_live_range, add_live_range, read_type)
424 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
425 (read_one_struct_field, read_baseclasses, read_tilde_fields)
426 (read_cfront_static_fields, attach_fields_to_type)
427 (complain_about_struct_wipeout, read_range_type)
428 (common_block_start, common_block_end, cleanup_undefined_types)
429 (scan_file_globals): Replace complain() with complaint().
430 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
431 Delete deprecated complaint struct declarations.
432 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
433 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
434 (bf_not_found_complaint, ef_complaint, eb_complaint)
435 (function_outside_compilation_unit_complaint): New functions.
436 (record_include_begin, record_include_end, enter_line_range)
437 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
438 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
439 complain() with complaint().
441 2002-12-16 Andrew Cagney <ac131313@redhat.com>
443 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
444 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
445 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
446 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
447 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
448 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
449 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
450 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
451 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
452 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
453 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
454 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
455 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
456 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
457 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
458 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
459 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
460 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
461 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
462 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
463 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
464 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
465 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
466 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
467 * config/m88k/xm-dgux.h: Delete.
468 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
469 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
470 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
471 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
472 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
473 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
474 * ch-valprint.c: Delete.
476 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
478 * infrun.c (handle_inferior_event): Rearrange code to resume if
479 no catchpoint triggers for an event.
481 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
483 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
484 and TARGET_WAITKIND_VFORKED cases.
486 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
488 * infrun.c (handle_inferior_event): Assume that catchpoints
489 are not affected by DECR_PC_AFTER_BREAK.
491 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
493 * target.c (update_current_target): Don't inherit DONT_USE.
494 * target.h (struct target_ops): Remove DONT_USE.
495 (target_next): Remove macro.
497 2002-12-15 Mark Kettenis <kettenis@gnu.org>
499 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
501 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
503 * arm-tdep.c (convert_from_extended): New argument to hold the
504 type of floating point result we want to convert to. Make input
505 argument const. Fix all callers.
506 (convert_to_extended): Similarly.
507 (arm_extract_return_value): Now takes a regcache argument. Change
508 code to use regcache accessor functions. Correctly extract
509 smaller-than-word results on big-endian machines.
510 (arm_store_return_value): Now takes a regcache argument. Change
511 code to use regcache accessor functions. Correctly zero/sign extend
512 smaller than word results before storing into r0.
513 (arm_gdbarch_init): Register new-style extract_return_value and
514 store_return_value functions.
516 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
518 * thread-db.c (thread_from_lwp): Uniquify error msg.
519 (lwp_from_thread): Ditto.
520 (check_event): Ditto.
521 (find_new_threads_callback): Ditto.
522 (thread_db_pid_to_str): Ditto.
524 2002-12-13 Andrew Cagney <ac131313@redhat.com>
526 * frame.h (get_frame_saved_regs): Declare.
527 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
529 * frame.c (get_frame_saved_regs): New function.
530 (frame_saved_regs_zalloc): Return the allocated saved_regs.
532 2002-12-13 Andrew Cagney <ac131313@redhat.com>
534 * frame.c (deprecated_update_current_frame_pc_hack): New
536 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
537 * infrun.c (normal_stop): Use said function instead of directly
538 modifying the frame's PC.
540 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
542 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
544 2002-12-13 Kevin Buettner <kevinb@redhat.com>
546 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
547 config/mips/tm-irix6.h (NUM_REGS): Delete.
548 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
549 (temp_saved_regs): Declare as a pointer rather than an array.
550 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
551 that ``temp_saved_regs'' has storage allocated to it and that
552 it's the correct size.
554 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
556 * defs.h (init_last_source_visited): New prototype.
558 * source.c (add_path): New function that adds to a specified path.
559 (mod_path): Change to call add_path.
560 (init_last_source_visited): New function to allow interfaces to
561 initialize static variable: last_source_visited. Part of fix
563 * Makefile.in: Add support for mi/mi-cmd-env.c.
565 2002-12-13 Andrew Cagney <ac131313@redhat.com>
567 * frame.h (frame_id_unwind): Declare.
568 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
570 (frame_id_unwind_ftype): Declare.
571 * frame.c (frame_id_unwind): New function.
572 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
573 (create_new_frame, get_prev_frame): Pass id_unwind to
575 (frame_saved_regs_id_unwind): New function.
576 (frame_saved_regs_id_unwind): New function.
577 * dummy-frame.c (dummy_frame_id_unwind): New function.
578 (struct dummy_frame): Add field id.
579 (generic_push_dummy_frame): Initialize `id'.
580 * dummy-frame.h (dummy_frame_id_unwind): Declare.
582 2002-12-13 Andrew Cagney <ac131313@redhat.com>
584 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
585 pass that to set_momentary_breakpoint. Move comments to where they
587 * frame.h (set_current_frame): Delete declaration.
588 * frame.c (set_current_frame): Delete function.
590 2002-12-13 Andrew Cagney <ac131313@redhat.com>
592 * frame.c (frame_extra_info_zalloc): New function.
593 * frame.h (frame_extra_info_zalloc): Declare.
595 2002-12-13 Joel Brobecker <brobecker@gnat.com>
597 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
598 in the previous prototype change to set_momentary_breakpoint.
600 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
602 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
604 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
605 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
606 (stop_stepping): Remove outdated check for child vfork events.
608 2002-12-12 Andrew Cagney <ac131313@redhat.com>
610 * GDB 5.3 released from gdb_5_3-branch.
612 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
614 * corelow.c (init_core_ops): Delete references to to_require_attach
615 and to_require_detach.
616 * exec.c (init_exec_ops): Likewise.
617 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
618 hppa_require_detach directly.
619 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
620 * inftarg.c (child_detach): Remove.
621 (child_detach_from_process): Rename to child_detach, remove
623 (child_attach): Remove.
624 (child_attach_to_process): Rename to child_attach, remove after_fork
626 (init_child_ops): Delete references to to_require_attach
627 and to_require_detach.
628 * infttrace.c (hppa_require_attach): Update comment.
629 * target.c (cleanup_target, update_current_target)
630 (init_dummy_target, setup_target_debug): Delete references to
631 to_require_attach and to_require_detach.
632 (find_default_require_detach, find_default_require_attach)
633 (debug_to_require_attach, debug_to_require_detach): Remove
635 * target.h (struct target_ops): Remove to_require_attach
636 and to_require_detach.
637 (target_require_attach, target_require_detach): Delete macros.
638 (find_default_require_detach, find_default_require_attach): Delete
640 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
642 2002-12-11 Andrew Cagney <ac131313@redhat.com>
644 * frame.c (get_frame_extra_info): New function.
645 * frame.h (get_frame_extra_info): Declare.
647 2002-12-11 Andrew Cagney <ac131313@redhat.com>
649 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
650 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
651 with `struct frame_id'.
652 (set_longjmp_resume_breakpoint): Ditto.
653 * infrun.c (handle_inferior_event): Update.
654 * breakpoint.c (watch_command_1, until_break_command): Update.
655 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
656 (handle_inferior_event, step_over_function): Update.
657 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
658 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
659 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
660 * infcmd.c (finish_command, run_stack_dummy): Update.
662 2002-12-11 Kevin Buettner <kevinb@redhat.com>
664 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
665 (dwarf2_non_const_array_bound_ignored)
666 (dwarf2_missing_line_number_section)
667 (dwarf2_statement_list_fits_in_line_number_section)
668 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
669 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
670 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
671 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
672 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
673 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
674 (dwarf2_missing_member_fn_type_complaint)
675 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
676 (dwarf2_const_value_length_mismatch)
677 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
678 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
679 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
680 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
681 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
682 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
683 complaints using deprecated struct..
684 (dwarf2_non_const_array_bound_ignored_complaint)
685 (dwarf2_complex_location_expr_complaint)
686 (dwarf2_unsupported_at_frame_base_complaint)
687 (dwarf2_const_value_length_mismatch_complaint)
688 (dwarf2_macros_too_long_complaint)
689 (dwarf2_macro_malformed_definition_complaint)
690 (dwarf2_invalid_attrib_class_complaint): New functions.
691 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
692 (read_structure_scope, read_array_type, read_common_block)
693 (read_tag_pointer_type, read_base_type, read_partial_die)
694 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
695 (new_symbol, dwarf2_const_value, read_type_die)
696 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
697 (parse_macro_definition, dwarf_decode_macros): Replace calls to
698 complain() with, possibly indirect, calls to complaint().
700 2002-12-11 Andrew Cagney <cagney@redhat.com>
702 * frame.c (deprecated_get_frame_saved_regs): Rename
703 get_frame_saved_regs.
704 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
705 * sparc-tdep.c: Update.
706 * hppa-tdep.c: Update.
707 * h8500-tdep.c: Update.
709 2002-12-11 Kevin Buettner <kevinb@redhat.com>
711 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
712 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
713 ``char *'' for return and parameter types.
714 * gdbarch.h, gdbarch.c: Regenerate.
715 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
716 return type from ``char *'' to ``const char *''.
717 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
720 2002-12-11 Mark Kettenis <kettenis@gnu.org>
722 * i386-tdep.c: Include "dummy-frame.h".
723 (i386_frame_chain, i386_frame_saved_pc): Replace
724 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
725 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
727 2002-12-10 Andrew Cagney <cagney@redhat.com>
729 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
730 Change to a function with predicate.
731 * gdbarch.h, gdbarch.c: Re-generate.
732 * frame.c (get_prev_frame): Update. Test
733 DEPRECATED_INIT_FRAME_PC_P.
734 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
735 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
736 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
737 * alpha-tdep.c (alpha_gdbarch_init): Update.
738 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
739 * mips-tdep.c (mips_gdbarch_init): Update.
740 * i386-interix-tdep.c (i386_interix_init_abi): Update.
741 * arm-tdep.c: Update comments.
742 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
743 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
744 * frv-tdep.c (frv_gdbarch_init): Ditto.
745 * x86-64-tdep.c (x86_64_init_abi): Ditto.
746 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
747 * s390-tdep.c (s390_gdbarch_init): Ditto.
748 * v850-tdep.c (v850_gdbarch_init): Ditto.
749 * vax-tdep.c (vax_gdbarch_init): Ditto.
750 * sh-tdep.c (sh_gdbarch_init): Ditto.
751 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
755 * i386-tdep.c (i386_gdbarch_init): Ditto.
756 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
757 * cris-tdep.c (cris_gdbarch_init): Ditto.
758 * avr-tdep.c (avr_gdbarch_init): Ditto.
759 * arm-tdep.c (arm_gdbarch_init): Ditto.
760 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
761 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
763 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
765 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
767 * hppah-nat.c (saved_vfork_pid): Add.
768 (child_post_follow_vfork): Remove.
769 (child_follow_fork): New function.
770 (child_wait): Call detach_breakpoints after receiving the child vfork.
771 Call child_resume directly instead of going through resume ().
772 Make sure we have the exec before reporting the vfork.
773 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
774 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
775 (follow_fork): New function. Call target_follow_fork.
776 (follow_inferior_reset_breakpoints): New function broken out from
777 old follow_inferior_fork.
778 (resume): Remove hack to follow exec after vfork.
779 * inftarg.c (child_post_follow_vfork): Remove.
780 (child_follow_fork): New function.
781 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
782 * target.c (cleanup_target): Replace to_post_follow_vfork with
784 (update_current_target): Likewise.
785 (setup_target_debug): Likewise.
786 (debug_to_post_follow_vfork): Remove.
787 (debug_to_follow_fork): New function.
788 * target.h (struct target_ops): Replace to_post_folow_vfork with
790 (child_post_follow_vfork): Remove prototype.
791 (child_follow_fork): Add prototype.
792 (target_post_follow_vfork): Remove macro.
793 (target_follow_fork): Add macro.
795 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
797 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
798 (child_post_follow_vfork): Cancel pending exec event if we follow
800 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
801 events have been processed. Return a fake TARGET_WAITKIND_EXECD
802 event at the following wait call if necessary.
803 * infrun.c (follow_vfork): Don't follow_exec here.
804 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
805 case about HP/UX 10.20. Remove code pushed down to
806 hppah-nat.c:child_wait.
807 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
808 vfork_in_flight is set.
810 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
812 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
813 for the parent's fork event.
814 * infrun.c (handle_inferior_event): Only expect one fork event.
815 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
816 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
818 2002-12-10 Andrew Cagney <ac131313@redhat.com>
820 * PROBLEMS: Delete reference to PR gdb/725.
822 * MAINTAINERS (gdb.c++): Add David Carlton.
824 2002-12-09 David Carlton <carlton@math.stanford.edu>
826 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
827 * cli/cli-cmds.c: Ditto.
829 2002-12-09 Andrew Cagney <cagney@redhat.com>
831 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
832 function address in <>.
833 * gdbarch.c: Re-generate.
835 2002-12-09 David Carlton <carlton@math.stanford.edu>
837 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
839 2002-12-09 David Carlton <carlton@math.stanford.edu>
841 * linespec.c (symtab_from_filename): New function.
842 (decode_line_1): Move code into symtab_from_filename.
844 2002-12-09 Kevin Buettner <kevinb@redhat.com>
846 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
848 2002-12-07 Andrew Cagney <ac131313@redhat.com>
850 * f-valprint.c (info_common_command): Use get_frame_pc.
851 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
852 * ax-gdb.c (agent_command): Ditto.
853 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
854 (rs6000_pop_frame): Ditto.
855 (rs6000_frameless_function_invocation): Ditto.
856 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
857 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
858 * macroscope.c (default_macro_scope): Ditto.
859 * stack.c (print_frame_info_base): Ditto.
860 (print_frame, frame_info, print_frame_label_vars): Ditto.
861 (return_command, func_command, get_frame_language): Ditto.
862 * infcmd.c (finish_command): Ditto.
863 * dummy-frame.c (cached_find_dummy_frame): Ditto.
864 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
865 (break_at_finish_at_depth_command_1): Ditto.
866 (break_at_finish_command_1): Ditto.
867 (until_break_command, get_catch_sals): Ditto.
868 * blockframe.c (func_frame_chain_valid): Ditto.
869 (frameless_look_for_prologue): Ditto.
870 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
872 2002-12-08 Andrew Cagney <ac131313@redhat.com>
874 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
875 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
877 2002-12-08 Andrew Cagney <ac131313@redhat.com>
879 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
881 * gdbarch.h, gdbarch.c: Re-generate.
882 * frame.c (get_prev_frame): Explictly assign prev's pc with value
883 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
885 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
886 declaration to a function returning a CORE_ADDR.
887 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
888 * arch-utils.c (init_frame_pc_noop): Return the PC value.
889 (init_frame_pc_default): Ditto.
890 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
891 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
892 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
893 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
894 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
895 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
897 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
898 to init_frame_pc_noop.
899 (i386_interix_init_frame_pc): Delete function.
900 * z8k-tdep.c (init_frame_pc): Delete function.
901 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
902 (INIT_FRAME_PC_FIRST): Ditto.
903 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
904 (INIT_FRAME_PC_FIRST): Ditto.
905 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
906 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
908 (INIT_FRAME_PC_FIRST): Convert to an expression.
909 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
911 2002-12-08 Andrew Cagney <ac131313@redhat.com>
913 * blockframe.c: Use get_frame_base instead of directly accessing
914 the `struct frame_info' member frame.
915 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
916 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
918 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
920 * Makefile.in (readline_h): Define.
921 (completer.o): Depend on readline_h.
923 (event-top.o): Ditto.
930 (tracepoint.o): Ditto.
933 (tui-hooks.o): Ditto.
936 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
938 More cleanup from import of readline 4.3.
939 * completer.h (complete_line, readline_line_completion_function):
941 (line_completion_function): Removed, not used outside of completer.c.
942 * completer.c (readline_line_completion_function,
943 complete_function, line_completion_function): Use const for first
945 (line_completion_function): Make static.
946 (filename_completer): filename_completion_function is now called
947 rl_filename_completion_function
948 * corelow.c: Include <readline/readline.h>.
954 * top.c (init_main): No need to coerce
955 readline_line_completion_function anymore.
956 * cli/cli-dump.c: Include <readline/readline.h>.
958 2002-12-08 Andrew Cagney <ac131313@redhat.com>
960 * stack.c (frame_info): Use get_prev_frame.
961 * blockframe.c (frame_address_in_block): Ditto.
962 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
963 (rs6000_frameless_function_invocation): Ditto.
964 (rs6000_frame_saved_pc): Ditto.
965 (rs6000_frame_chain): Ditto.
966 * arch-utils.c (init_frame_pc_default): Ditto.
968 2002-12-08 Andrew Cagney <ac131313@redhat.com>
970 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
971 Delete redundant definition.
973 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
975 Import of readline 4.3:
976 * cli/cli-cmds.c: Include readline/tilde.h.
977 * cli/cli-setshow.c: Ditto.
978 * defs.h: Don't declare tilde_expand anymore, since readline
981 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
983 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
984 -Werror on this file.
986 2002-12-07 Andrew Cagney <ac131313@redhat.com>
988 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
990 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
991 * gdbarch.c: Regenerate.
993 2002-12-06 Andrew Cagney <ac131313@redhat.com>
995 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
996 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
997 provide a default value.
998 * gdbarch.h, gdbarch.c: Regenerate.
999 * frame.c (get_prev_frame): Update. Check
1000 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1001 * s390-tdep.c (s390_gdbarch_init): Update.
1002 * mips-tdep.c (mips_gdbarch_init): Update.
1003 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1004 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1005 * alpha-tdep.c (alpha_gdbarch_init): Update.
1007 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1009 * ia64-linux-nat.c: Include gdb_string.h.
1010 * alpha-nat.c: Ditto.
1011 * ppc-linux-nat.c: Ditto.
1012 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1013 Update dependencies.
1015 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1017 * gdbthread.h: Include "frame.h".
1018 (struct thread_info): Replace step_frame_address with
1020 * inferior.h: Include "frame.h".
1021 (step_frame_id): Replace external variable step_frame_address.
1022 * gdbthread.h (save_infrun_state): Replace step_frame_address
1023 parameter with step_frame_id parameter.
1024 (load_infrun_state): Ditto.
1025 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1026 * infcmd.c (step_frame_id, step_1, step_once): Update.
1027 * thread.c (load_infrun_state, save_infrun_state): Update.
1028 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1029 (handle_inferior_event, step_over_function): Update.
1030 (normal_stop, context_switch, restore_inferior_status): Update.
1031 (struct inferior_status): Replace step_frame_address with
1034 2002-12-05 David Carlton <carlton@math.stanford.edu>
1036 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1037 DW_TAG_member as well as a declaration as being a C++ static data
1039 (read_structure_scope): Combine tests for DW_TAG_member and
1042 2002-12-05 David Carlton <carlton@math.stanford.edu>
1044 * linespec.c (decode_compound): New function.
1045 (decode_line_1): Move code into decode_compound.
1047 2002-12-05 David Carlton <carlton@math.stanford.edu>
1049 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1051 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1052 the static block. See PR gdb/804.
1054 2002-12-05 David Carlton <carlton@math.stanford.edu>
1056 * symtab.c (lookup_symbol_aux_block): New function.
1057 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1059 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1061 * gdbarch.sh: Dump the predicate function and macro values.
1062 (read): Print error on standard error.
1063 * gdbarch.c: Regenerate.
1065 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1067 * Makefile.in (mips_tdep_h): Define.
1068 (mips-tdep.o): Add mips_tdep_h to dependency list.
1069 * mips-tdep.h: New file.
1070 * mips-tdep.c (mips-tdep.h): Include.
1071 (enum mips_abi): Move to mips-tdep.h.
1072 (mips_abi): New function.
1074 2002-12-04 David Carlton <carlton@math.stanford.edu>
1076 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1078 2002-12-04 David Carlton <carlton@math.stanford.edu>
1080 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1082 (lookup_symbol_aux_minsyms): New function.
1084 2002-12-04 J. Brobecker <brobecker@gnat.com>
1086 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1088 2002-12-04 J. Brobecker <brobecker@gnat.com>
1090 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1091 which is an obsolete macro name.
1093 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1095 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1096 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1098 2002-12-03 H.J. Lu (hjl@gnu.org)
1100 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1101 (create_breakpoints): Make sure the addr_string field is not
1104 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1106 * sparc-nat.c (fetch_inferior_registers)
1107 (store_inferior_registers): Add comment on problem of LWP vs
1110 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1111 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1112 (lin_lwp_store_registers): Remove.
1113 (init_lin_lwp_ops): Use fetch_inferior_registers
1114 and store_inferior_registers directly.
1115 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1116 (store_inferior_registers): Likewise.
1119 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1121 * frame.h (get_frame_id): Convert to a function.
1122 (null_frame_id, frame_id_p): Declare.
1123 (frame_id_eq, frame_id_inner): Declare.
1124 (frame_id_build): New function.
1125 * frame.c (get_frame_id): Update. Use null_frame_id.
1126 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1128 (null_frame_id, frame_id_p): Define.
1129 (frame_id_eq, frame_id_inner): Define.
1130 (frame_id_build): New function.
1131 * varobj.c (varobj_create): Update.
1132 (varobj_update): Update.
1133 * valops.c (value_assign): Update.
1134 (new_root_variable): Update.
1135 * infrun.c (save_inferior_status): Update.
1136 * breakpoint.c (watch_command_1): Update.
1138 2002-12-03 J. Brobecker <brobecker@gnat.com>
1140 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1143 2002-12-03 Andrew Cagney <cagney@redhat.com>
1145 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1148 * PROBLEMS: Mention PR gdb/725.
1150 2002-12-03 Andreas Schwab <schwab@suse.de>
1152 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1154 2002-12-02 Adam Fedor <fedor@gnu.org>
1155 Klee Dienes <kdienes@apple.com>
1157 * objc-lang.c (objc_printstr): Add width arg to match
1159 (compare_selectors): Add 'const' to arg types.
1160 (compare_classes): Likewise.
1161 (find_imps): Cast msym pointer to avoid compiler warning.
1162 (print_object_command): Validate the address before
1163 passing it to the print routine.
1164 (find_objc_msgcall_submethod): Change function argument to
1166 * objc-lang.h: Add 'extern' to all function declarations.
1167 (value_nsstring): Add declaration.
1169 2002-12-02 J. Brobecker <brobecker@gnat.com>
1171 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1172 Fixes a build failure on HP/UX.
1174 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1176 (hpread_has_name): Advance declaration to avoid a compilation warning.
1177 (pst_syms_count): Add missing variable type. By change, the compiler
1178 was defaulting to int, which seems a good choice. Fixes a compilation
1180 (pst_syms_size): Likewise.
1182 2002-12-02 J. Brobecker <brobecker@gnat.com>
1184 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1185 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1186 later to set the proper gdbarch methods depending on the osabi.
1187 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1189 2002-12-02 J. Brobecker <brobecker@gnat.com>
1191 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1192 * osabi.c (gdb_osabi_name): Add strings images for the two new
1194 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1196 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1198 * MAINTAINERS (Java): Global maintainers are responible for Java.
1199 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1200 part Java maintainers.
1202 2002-12-02 J. Brobecker <brobecker@gnat.com>
1204 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1205 Fixes a compilation failure on AiX.
1207 2002-12-02 J. Brobecker <brobecker@gnat.com>
1209 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1210 why aix-thread.o is not listed.
1212 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1214 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1215 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1216 * gdbarch.h, gdbarch.c: Re-generate.
1217 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1218 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1219 * config/pa/tm-hppa.h, frame.h: Update.
1220 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1221 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1222 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1223 * cris-tdep.c, alpha-tdep.c: Update.
1224 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1225 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1226 (get_prev_frame): Ditto.
1228 2002-11-30 Andrew Cagney <cagney@redhat.com>
1230 * exec.c (xfer_memory): Replace boolean with int.
1231 * p-exp.y: Use 0 instead of false.
1232 * corelow.c (gdb_check_format): Change return type to int from
1234 * utils.c: Don't include <curses.h> or <term.h> first.
1236 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1238 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1239 (m68hc11_register_byte): Remove.
1240 (m68hc11_gdbarch_init): Don't set the above.
1242 2002-11-29 Andrew Cagney <cagney@redhat.com>
1244 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1245 by calling get_selected_frame.
1246 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1247 set_current_frame, create_new_frame, select_frame and
1249 * remote-e7000.c (e7000_start_remote): Ditto.
1250 * remote-mips.c (common_open): Ditto
1251 * remote-rdp.c (remote_rdp_open): Ditto.
1253 2002-11-29 Andreas Schwab <schwab@suse.de>
1255 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1256 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1257 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1258 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1259 read_memory_unsigned_integer instead of read_memory_integer when
1260 dealing with addresses and instruction opcodes.
1261 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1262 (m68k_linux_frame_saved_pc): Likewise.
1264 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1266 * stack.c (selected_frame, select_frame): Move from here ...
1267 * frame.c (selected_frame, select_frame): ... to here. Include
1269 * Makefile.in (frame.o): Update dependencies.
1270 * frame.c (get_selected_frame): New function.
1271 * frame.h (get_selected_frame): Declare.
1272 (deprecated_selected_frame): Rename selected_frame.
1273 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1274 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1275 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1276 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1277 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1278 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1279 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1280 * z8k-tdep.c, cli/cli-cmds.c: Update.
1282 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1284 * frame.h (get_selected_block): Add comments.
1286 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1288 * frame.c (pc_notcurrent): New function.
1289 (find_frame_sal): New function.
1290 * frame.h (find_frame_sal): Declare.
1291 (struct symtab_and_line): Add opaque declaration.
1292 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1294 (frame_info): Ditto.
1295 * ada-lang.c (find_printable_frame): Ditto.
1297 2002-11-28 J. Brobecker <brobecker@gnat.com>
1299 * configure.in: Check that the pthdebug library is recent enough
1300 before enabling thread support on native AiX.
1301 * configure: Regenerate.
1303 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1304 from the list of object files as it is now appended by configure
1305 if thread support is enabled.
1306 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1307 if thread support is enabled.
1309 2002-11-28 Andrew Cagney <cagney@redhat.com>
1311 * stack.c (get_selected_block): In-line get_current_block.
1312 * frame.h (get_current_block): Delete declaration.
1313 * blockframe.c (get_current_block): Delete function.
1315 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1317 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1318 USE_GENERIC_DUMMY_FRAMES.
1319 * gdbarch.h, gdbarch.c: Regenerate.
1320 * valops.c, frame.c: Update.
1321 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1322 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1323 * config/pa/tm-hppa.h, blockframe.c: Update.
1324 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1325 * m68k-tdep.c, alpha-tdep.c: Ditto.
1327 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1328 * mips-tdep.c: Ditto.
1330 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1332 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1333 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1334 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1335 * gdbarch.c, gdbarch.h: Re-generate.
1336 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1337 (CALL_DUMMY_LOCATION): Delete macro definition.
1338 (PC_IN_CALL_DUMMY): Delete macro definitions.
1340 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1341 default is already generic_pc_in_call_dummy.
1342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1343 * v850-tdep.c (v850_gdbarch_init): Ditto.
1344 * sh-tdep.c (sh_gdbarch_init): Ditto.
1345 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1346 * mips-tdep.c (mips_gdbarch_init): Ditto.
1347 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1349 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1351 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1352 * avr-tdep.c (avr_gdbarch_init): Ditto.
1354 * arm-tdep.c (arm_gdbarch_init): Do not set
1355 use_generic_dummy_frames, default is already 1.
1356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1357 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1358 * v850-tdep.c (v850_gdbarch_init): Ditto.
1359 * sh-tdep.c (sh_gdbarch_init): Ditto.
1360 * s390-tdep.c (s390_gdbarch_init): Ditto.
1361 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1363 * mips-tdep.c (mips_gdbarch_init): Ditto.
1364 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1366 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1367 * i386-tdep.c (i386_gdbarch_init): Ditto.
1368 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1369 * frv-tdep.c (frv_gdbarch_init): Ditto.
1370 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1371 * cris-tdep.c (cris_gdbarch_init): Ditto.
1372 * avr-tdep.c (avr_gdbarch_init): Ditto.
1374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1375 call_dummy_location, default is already AT_ENTRY_POINT.
1376 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1377 * v850-tdep.c (v850_gdbarch_init): Ditto.
1378 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1379 * sh-tdep.c (sh_gdbarch_init): Ditto.
1380 * s390-tdep.c (s390_gdbarch_init): Ditto.
1381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1382 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1383 * mips-tdep.c (mips_gdbarch_init): Ditto.
1384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1386 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1387 * i386-tdep.c (i386_gdbarch_init): Ditto.
1388 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1389 * frv-tdep.c (frv_gdbarch_init): Ditto.
1390 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1391 * cris-tdep.c (cris_gdbarch_init): Ditto.
1392 * avr-tdep.c (avr_gdbarch_init): Ditto.
1393 * arm-tdep.c (arm_gdbarch_init): Ditto.
1394 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1396 2002-11-28 Andrew Cagney <cagney@redhat.com>
1398 * frame.h: Update comments on set_current_frame, create_new_frame,
1399 flush_cached_frames, reinit_frame_cache, select_frame and
1402 2002-11-27 Andrew Cagney <cagney@redhat.com>
1404 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1405 deprecated pc_in_call_dummy function.
1406 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1407 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1408 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1409 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1410 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1412 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1414 * Makefile.in: Remove Tix dependencies.
1415 * acinclude.m4: Ditto.
1416 * aclocal.m4: Ditto.
1417 * configure.in: Ditto.
1418 * configure: Regenerated.
1420 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1422 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1423 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1424 * gdbarch.c: Re-generate.
1426 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1428 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1429 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1430 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1431 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1432 pc_in_call_dummy_at_entry_point.
1433 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1434 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1435 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1436 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1437 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1438 pc_in_call_dummy_on_stack.
1439 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1440 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1441 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1442 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1443 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1445 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1447 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1448 pc_in_call_dummy_before_text_end
1449 (deprecated_pc_in_call_dummy_after_text_end): Rename
1450 pc_in_call_dummy_after_text_end.
1451 (deprecated_pc_in_call_dummy_on_stack): Rename
1452 pc_in_call_dummy_on_stack.
1453 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1454 pc_in_call_dummy_at_entry_point.
1455 * m68k-tdep.c (m68k_gdbarch_init): Update.
1456 * s390-tdep.c (s390_gdbarch_init): Update.
1457 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1458 * vax-tdep.c (vax_gdbarch_init): Update.
1459 * sparc-tdep.c (sparc_gdbarch_init): Update.
1460 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1461 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1462 * i386-tdep.c (i386_gdbarch_init): Update.
1463 * frv-tdep.c (frv_gdbarch_init): Update.
1464 * cris-tdep.c (cris_gdbarch_init): Update.
1465 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1466 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1467 (deprecated_pc_in_call_dummy_after_text_end)
1468 (deprecated_pc_in_call_dummy_on_stack)
1469 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1470 * alpha-tdep.c (alpha_gdbarch_init): Update.
1472 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1474 * acconfig.h (HAVE_PREAD64): Add.
1475 * configure.in: Check for pread64.
1476 * config.in: Regenerated.
1477 * configure: Regenerated.
1478 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1479 * linux-proc.c (linux_proc_xfer_memory): New function.
1480 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1482 2002-11-25 David Carlton <carlton@math.stanford.edu>
1484 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1487 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1489 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1490 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1492 2002-11-25 Jim Blandy <jimb@redhat.com>
1494 * symfile.c (init_objfile_sect_indices): New function.
1495 (default_symfile_offsets): Move the section-index-initializing
1496 stuff into init_objfile_sect_indices, and call that.
1498 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1499 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1501 * symfile.c (syms_from_objfile): Adjust indentation.
1503 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1504 || info_verbose isn't true.
1506 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1508 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1509 default to get_frame_base.
1510 * gdbarch.h, gdbarch.c: Regenerate.
1511 * arch-utils.c (default_frame_address): Delete function.
1512 * arch-utils.h (default_frame_address): Delete declaration
1514 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1516 * varobj.c (find_frame_addr_in_frame_chain):
1517 Use get_frame_base instead of FRAME_FP,
1520 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1522 * frame.h (FRAME_FP): Delete macro.
1523 (get_frame_base): New function declaration.
1524 * frame.c (get_frame_base): New function.
1525 (get_frame_id): Use ->frame.
1526 (frame_find_by_id): Rewrite to use get_frame_id.
1527 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1528 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1529 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1530 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1531 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1532 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1533 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1535 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1537 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1539 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1541 * frame.c (set_unwind_by_pc): Revert change below, use
1543 (get_prev_frame): Ditto.
1545 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1547 * dummy-frame.c (pc_in_dummy_frame): New function.
1548 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1549 (find_dummy_frame): Update comment.
1550 (generic_pop_current_frame): Use get_frame_type.
1551 * dummy-frame.h (pc_in_dummy_frame): Declare.
1552 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1553 (create_new_frame): Use pc_in_dummy_frame.
1554 (get_prev_frame): Use pc_in_dummy_frame.
1555 (frame_saved_regs_register_unwind): Use get_prev_frame.
1556 (deprecated_generic_get_saved_register): Use get_prev_frame.
1558 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1560 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1562 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1563 (varobj_create): Note that frame ID should be used.
1564 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1566 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1568 * breakpoint.c: Include "gdb_assert.h".
1569 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1571 * Makefile.in (breakpoint.o): Update dependencies.
1572 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1573 deprecated_frame_in_dummy.
1574 * stack.c (print_frame_info_base): Ditto.
1575 (frame_info): Ditto.
1576 (print_frame_info_base): Ditto. Delete dead code.
1578 2002-11-23 Andreas Schwab <schwab@suse.de>
1580 * Makefile.in (m68k_tdep_h): Define.
1581 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1582 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1583 * m68k-tdep.c: Move register number enum ...
1584 * m68k-tdep.h: ... to this new file and rename the constants from
1585 E_* to M68K_*. All uses changed.
1586 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1587 * abug-rom.c: Include "m68k-tdep.h". Use
1588 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1589 * cpu32bug-rom.c: Likewise.
1590 * dbug-rom.c: Likewise.
1591 * m68k-tdep.c: Likewise.
1592 * m68klinux-nat.c: Likewise.
1593 * remote-est.c: Likewise.
1594 * rom68k-rom.c: Likewise.
1595 * config/m68k/tm-linux.h: Likewise.
1597 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1599 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1600 dummy frame initialization code.
1601 * mips-tdep.c (mips_gdbarch_init): Ditto.
1603 2002-11-22 Christopher Faylor <cgf@redhat.com>
1605 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1608 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1610 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1611 to default_frame_address.
1612 * gdbarch.h, gdbarch.c: Re-generate.
1614 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1615 or frame_locals_address to default_frame_address.
1616 * m68k-tdep.c (m68k_gdbarch_init): Update.
1617 * i386-tdep.c (i386_gdbarch_init): Update.
1618 * frv-tdep.c (frv_gdbarch_init): Update.
1619 * sh-tdep.c (sh_gdbarch_init): Update.
1620 * v850-tdep.c (v850_gdbarch_init): Update.
1621 * sparc-tdep.c (sparc_gdbarch_init): Update.
1622 * mips-tdep.c (mips_gdbarch_init): Update.
1623 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1624 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1627 * cris-tdep.c (cris_frame_args_address): Delete function.
1628 (cris_frame_locals_address): Delete function.
1629 (cris_gdbarch_init): Do not set frame_args_address or
1630 frame_locals_address.
1632 2002-11-22 Michael Snyder <msnyder@redhat.com>
1634 * thread-db.c (thread_db_load): Tell the user what's going on
1635 if dlopen fails on libthread_db.
1637 2002-11-23 Andreas Schwab <schwab@suse.de>
1639 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1640 invariant return values.
1642 2002-11-22 Andreas Schwab <schwab@suse.de>
1644 * valops.c (value_slice): Move declaration of `offset' to avoid
1647 2002-11-22 Christopher Faylor <cgf@redhat.com>
1649 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1650 (struct so_stuff): Add end_addr field.
1651 (register_loaded_dll): Calculate and store end address of loaded dll.
1652 (solib_address): New function.
1653 (child_solib_loaded_library_pathname): Pass carefully constructed
1654 section info to safe_symbol_file_add rather than ignoring it.
1655 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1657 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1658 (child_create_inferior): Fix a compiler warning.
1659 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1660 (solib_address): Declare new function.
1662 2002-11-22 Andreas Schwab <schwab@suse.de>
1664 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1667 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1669 * maint.c (_initialize_maint_cmds): Fix typo. From
1670 Francesco Potorti` <pot@gnu.org>.
1672 2002-11-21 Andrew Cagney <cagney@redhat.com>
1674 * mips-tdep.c (mips_dump_tdep): Delete references to
1675 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1676 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1677 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1678 * printcmd.c (build_address_symbolic): Delete calls to
1679 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1680 (address_info): Ditto.
1683 2002-11-19 Klee Dienes <kdienes@apple.com>
1684 Adam Fedor <fedor@gnu.org>
1686 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1687 the ability to explicitly specify the quote characters and word
1688 break characters; if NULL is specified for either, use the old
1689 behavior of using the characters used by the completer.
1690 (skip_chars): New function. Convenience wrapper around
1691 skip_quoted_chars to provide the original skip_chars behavior.
1692 * completer.h (skip_quoted_chars): Add prototype.
1694 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1696 Problems reported by Paul Eggert.
1697 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1699 2002-11-19 Andreas Schwab <schwab@suse.de>
1701 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1702 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1703 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1704 (m68k_linux_frame_saved_pc): Move to ...
1705 * m68klinux-tdep.c: ... here. New file.
1706 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1707 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1709 2002-11-19 Adam Fedor <fedor@gnu.org>
1711 * objc-exp.y: Revert to old skip_quoted usage.
1713 2002-11-19 Adam Fedor <fedor@gnu.org>
1715 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1716 (objc_lang_h): Define.
1717 (YYFILES): Add objc-exp.tab.c.
1718 (local-maintainer-clean): Remove objc-exp.tab.c.
1719 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1721 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1723 * p-exp.y (typecast rule): Add automatic dereference of
1724 pascal classes if needed.
1725 (THIS): Set current_type.
1726 Automatically dereference pascal classes.
1727 (typebase rule): Add ^typebase recognition.
1729 2002-11-18 Adam Fedor <fedor@gnu.org>
1731 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1732 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1733 (op_name): Handle OP_OBJC_SELF.
1734 * Makefile.in (expprint.o): Add additional depends.
1736 2002-11-18 Adam Fedor <fedor@gnu.org>
1738 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1739 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1740 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1741 * objc-exp.y: Likewise.
1743 2002-11-18 Adam Fedor <fedor@gnu.org>
1745 * gdb/parser-defs.h: (struct objc_class_str): New structure
1746 for parsing ObjC classes.
1748 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1750 * stack.c (frame_relative_level): Copy function from here ...
1751 * frame.c (frame_relative_level): ...to here.
1753 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1755 * frame.h (enum frame_type): Define.
1756 (get_frame_type): Declare.
1757 (struct frame_info): Add field `type'. Delete field
1758 signal_handler_caller.
1759 (deprecated_set_frame_signal_handler_caller): Declare.
1760 * frame.c (get_frame_type): New function.
1761 (deprecated_set_frame_type): New function.
1762 (create_new_frame): Set the frame's type.
1763 (get_prev_frame): Similar.
1764 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1765 * s390-tdep.c: Ditto.
1766 * m68klinux-nat.c: Ditto.
1767 * ns32k-tdep.c: Ditto.
1768 * x86-64-linux-tdep.c: Ditto.
1769 * vax-tdep.c: Ditto.
1770 * rs6000-tdep.c: Ditto.
1771 * ppc-linux-tdep.c: Ditto.
1772 * i386-interix-tdep.c: Ditto.
1773 * mips-tdep.c: Ditto.
1774 * m68k-tdep.c: Ditto.
1775 * hppa-tdep.c: Ditto.
1776 * ia64-tdep.c: Ditto.
1777 * cris-tdep.c: Ditto.
1778 * arm-tdep.c: Ditto.
1779 * alpha-tdep.c: Ditto.
1780 * i386-tdep.c: Ditto.
1782 * ada-lang.c: Ditto.
1783 * blockframe.c: Update.
1784 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1785 deprecated_set_frame_type instead of signal_handler_caller.
1786 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1787 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1788 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1790 2002-11-18 Klee Dienes <kdienes@apple.com>
1792 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1794 2002-11-18 Klee Dienes <kdienes@apple.com>
1796 * buildsym.c (pop_context): Add comment.
1798 2002-11-18 Klee Dienes <kdienes@apple.com>
1800 * buildsym.h (pop_context): Convert to function, defined in
1802 * buildsym.c: Include gdb_assert.h.
1803 (pop_context): Implement as C function. Add check for stack
1805 * dbxread.c (process_one_symbol): Complain and stop processing
1806 that symbol if we are already at the top of the context stack for
1807 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1808 when processing N_RBRAC.
1810 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1812 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1814 (struct target_waitstatus): Add opaque definition.
1815 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1816 * exec.c (init_exec_ops): Likewise.
1817 * fork-child.c (clone_and_follow_inferior): Remove.
1818 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1819 * inferior.h (clone_and_follow_inferior): Remove prototype.
1820 * infrun.c (follow_fork_mode_both): Remove.
1821 (follow_fork_mode_kind_names): Remove commented out "both".
1822 (follow_inferior_fork): Remove follow_fork_mode_both support.
1823 * inftarg.c (child_clone_and_follow_inferior): Remove.
1824 (child_post_follow_inferior_by_clone): Remove.
1825 (init_child_ops): Don't set to_clone_and_follow_inferior
1826 or to_post_follow_inferior_by_clone.
1827 * target.c (default_clone_and_follow_inferior): Remove.
1828 (cleanup_target): Don't set to_clone_and_follow_inferior
1829 or to_post_follow_inferior_by_clone.
1830 (find_default_clone_and_follow_inferior): Remove.
1831 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1832 (debug_to_clone_and_follow_inferior): Remove.
1833 (debug_to_post_follow_inferior_by_clone): Remove.
1834 (setup_target_debug): Don't set to_clone_and_follow_inferior
1835 or to_post_follow_inferior_by_clone.
1836 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1837 and to_post_follow_inferior_by_clone.
1838 (child_clone_and_follow_inferior): Remove prototype.
1839 (child_post_follow_inferior_by_clone): Remove prototype.
1840 (target_clone_and_follow_inferior): Remove macro.
1841 (target_post_follow_inferior_by_clone): Remove macro.
1842 (find_default_clone_and_follow_inferior): Remove prototype.
1844 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1846 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1847 inferior_has_vforked, and inferior_has_execd instead of
1848 target_has_forked, target_has_vforked, and target_has_execd.
1849 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1850 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1851 (CHILD_WAIT): Define.
1852 (child_wait): Add prototype.
1853 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1855 (hpux_has_vforked): Likewise, from child_has_vforked.
1856 (hpux_has_execd): Likewise, from child_has_execd.
1857 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1858 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1859 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1860 and hpux_has_syscall_event instead of the target hooks.
1861 * infrun.c (inferior_has_forked, inferior_has_vforked)
1862 (inferior_has_execd): New functions.
1863 * inftarg.c (not_same_real_pid): Remove.
1864 (child_wait): Remove references to not_same_real_pid,
1865 target_has_forked, target_has_vforked, target_has_execd,
1866 and target_has_syscall_event.
1867 (child_has_forked, child_has_vforked, child_has_execd)
1868 (child_has_syscall_event): Remove.
1869 (init_child_ops): Remove references to child_has_forked,
1870 child_has_vforked, child_has_execd, and child_has_syscall_event.
1871 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1872 (hpux_has_vforked): Likewise, from child_has_vforked.
1873 (hpux_has_execd): Likewise, from child_has_execd.
1874 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1875 * target.c (cleanup_target): Remove references to
1876 to_has_forked, to_has_vforked, to_has_execd, and
1877 to_has_syscall_event.
1878 (update_current_target): Likewise.
1879 (setup_target_debug): Likewise.
1880 (debug_to_has_forked): Remove.
1881 (debug_to_has_vforked): Remove.
1882 (debug_to_has_execd): Remove.
1883 (debug_to_has_syscall_event): Remove.
1884 * target.h (struct target_ops): Remove to_has_forked.
1885 to_has_vforked, to_has_execd, and to_has_syscall_event.
1886 (child_has_forked, child_has_vforked, child_has_execd)
1887 (child_has_syscall_event): Remove prototypes.
1888 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1890 (target_has_forked, target_has_vforked, target_has_execd)
1891 (target_has_syscall_event): Remove macros.
1893 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1895 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1896 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1897 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1898 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1899 * target.c (cleanup_target): Remove reference to
1900 to_can_follow_vfork_prior_to_exec.
1901 (update_current_target): Likewise.
1902 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1903 (setup_target_debug): Remove reference to
1904 to_can_follow_vfork_prior_to_exec.
1905 * target.h (struct target_ops): Remove
1906 to_can_follow_vfork_prior_to_exec.
1907 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1908 (target_can_follow_vfork_prior_to_exec): Remove definition.
1909 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1911 * infrun.c (follow_vfork_when_exec): Remove.
1912 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1913 (follow_exec): Likewise.
1914 (handle_inferior_event): Likewise.
1915 (keep_going): Likewise.
1917 2002-11-15 Andrew Cagney <cagney@redhat.com>
1919 * frame.c (generic_unwind_get_saved_register): Make static.
1920 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1921 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1922 defaults to generic_unwind_get_saved_register.
1923 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1925 * frv-tdep.c (frv_gdbarch_init): Ditto.
1926 * i386-tdep.c (i386_gdbarch_init): Ditto.
1927 * s390-tdep.c (s390_gdbarch_init): Ditto.
1928 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1929 * v850-tdep.c (v850_gdbarch_init): Ditto.
1930 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1931 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1932 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1934 2002-11-15 Andrew Cagney <cagney@redhat.com>
1936 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1939 2002-11-15 Andrew Cagney <cagney@redhat.com>
1941 * frame.h (sigtramp_saved_pc): Delete declaration.
1942 * blockframe.c (sigtramp_saved_pc): Delete function.
1943 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1944 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1945 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1946 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1948 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1950 * frame.c (frame_pc_unwind): New function.
1951 (frame_saved_regs_pc_unwind): New function.
1952 (frame_register_unwind): Pass unwind_cache instead of
1953 register_unwind_cache.
1954 (set_unwind_by_pc): Add unwind_pc parameter, set.
1955 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1956 (get_prev_frame): Ditto.
1957 * frame.h (frame_pc_unwind_ftype): Declare.
1958 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1959 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1960 (frame_pc_unwind): Declare.
1961 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1962 (struct dummy_frame): Add comment mentioning that values are for
1964 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1965 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1966 (generic_file_frame_chain_valid): Ditto.
1967 * stack.c (frame_info): Ditto.
1969 2002-11-15 David Carlton <carlton@math.stanford.edu>
1971 * linespec.c (locate_first_half): New function.
1972 (decode_line_1): Move code into locate_first_half.
1974 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1976 * complaints.h: Add comment explaining how to eliminate a
1977 deprecated_complain call.
1978 * complaints.h: Fix spelling errors.
1980 2002-11-15 David Carlton <carlton@math.stanford.edu>
1982 * printcmd.c: Remove #include "disasm.h".
1984 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1986 * frame.h: Move the most relevant interface functions to the start
1989 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1991 * regcache.h (deprecated_registers): Rename registers.
1992 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1993 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1994 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1995 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1996 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1997 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1998 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1999 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2000 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2001 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2002 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2003 * v850ice.c: Update.
2005 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2007 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2010 2002-11-13 Andrew Cagney <cagney@redhat.com>
2012 * regcache.h (deprecated_read_register_bytes): Rename
2013 read_register_bytes.
2014 (deprecated_write_register_bytes): Rename write_register_bytes.
2015 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2016 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2017 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2018 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2019 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2020 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2021 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2022 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2023 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2024 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2025 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2026 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2027 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2028 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2030 2002-11-13 Jim Blandy <jimb@redhat.com>
2032 * findvar.c (read_var_value): Doc fix.
2034 2002-11-13 Andrew Cagney <cagney@redhat.com>
2036 * regcache.c (struct regcache): Replace passthough_p with
2038 (regcache_xmalloc): Initialize readonly_p.
2039 (build_regcache): Initialize readonly_p.
2040 (regcache_save): New function.
2041 (regcache_restore): New function.
2042 (regcache_cpy): Re-implement using regcache_save and
2044 (regcache_raw_read): Update.
2045 (regcache_cooked_read): When a read-only cache, checked for cached
2046 pseudo register values.
2047 (regcache_raw_write): Assert that the cache is not read-only.
2048 Remove code handling a non-passthrough cache.
2049 * regcache.h (regcache_save): Declare.
2050 (regcache_restore): Declare.
2052 2002-11-13 Andrew Cagney <cagney@redhat.com>
2054 * regcache.c (struct regcache_descr): Add fields
2055 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2056 (init_legacy_regcache_descr): Compute the size of a cooked
2057 register cache and then assign that to sizeof_raw_registers. Set
2058 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2059 (init_legacy_regcache_descr): Ditto.
2061 2002-11-13 Andrew Cagney <cagney@redhat.com>
2063 * regcache.c (register_buffer): Move to near start of file, update
2065 (regcache_raw_read): Use.
2066 (regcache_raw_write): Use.
2067 (struct regcache): Rename raw_registers to registers and
2068 raw_register_valid_p to register_valid_p.
2069 (regcache_xmalloc): Update.
2070 (regcache_xfree): Update.
2071 (register_buffer): Update.
2072 (regcache_cpy): Update.
2073 (regcache_cpy_no_passthrough): Update.
2074 (regcache_valid_p): Update.
2075 (deprecated_grub_regcache_for_registers): Update.
2076 (deprecated_grub_regcache_for_register_valid): Update.
2077 (set_register_cached): Update.
2078 (regcache_raw_write): Update.
2080 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2082 * p-exp.y (name_not_typename): Use copy_name to
2083 set current_type variable for fields of THIS.
2085 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2087 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2088 * monitor.c (init_base_monitor_ops): Likewise.
2089 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2090 * remote-array.c (init_array_ops): Likewise.
2091 * remote-e7000.c (init_e7000_ops): Likewise.
2092 * remote-es.c (init_es1800_ops): Likewise.
2093 (init_es1800_child_ops): Likewise.
2094 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2095 * remote-sim.c (init_gdbsim_ops): Likewise.
2096 * remote-st.c (init_st2000_ops): Likewise.
2097 * sol-thread.c (init_sol_core_ops): Likewise.
2098 (init_sol_thread_ops): Likewise.
2099 * v850ice.c (init_850ice_ops): Likewise.
2100 * win32-nat.c (init_child_ops): Likewise.
2101 * wince.c (init_child_ops): Likewise.
2103 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2105 * utils.c (gdb_realpath): Make rp a constant pointer.
2107 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2109 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2110 a constant buffer; cannonicalize_file_name(); realpath() with a
2111 pathconf() defined buffer, xstrdup().
2113 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2115 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2116 to hang2.C; hang3.c to hang3.C.
2118 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2120 * findvar.c (read_var_value): Reenable TLS code.
2122 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2123 Jim Blandy <jimb@redhat.com>
2125 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2126 * target.c (update_current_target): Add
2127 to_get_thread_local_address.
2128 * target.h (to_get_thread_local_address): Export.
2129 (target_get_thread_local_address): Define.
2130 (target_get_thread_local_address_p): Define.
2131 * thread-db.c: Include solib-svr4.h.
2132 (td_thr_tls_get_addr_p): Define.
2133 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2134 (thread_db_get_thread_local_address): New function.
2135 (init_thread_db_ops): Initialize to_get_thread_local_address.
2136 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2137 * configure: Regenerate.
2138 * config.in: Regenerate.
2140 2002-11-11 David Carlton <carlton@math.stanford.edu>
2142 * linespec.c (set_flags): New function.
2143 (decode_line_1): Move code into set_flags.
2145 2002-11-11 David Carlton <carlton@math.stanford.edu>
2147 * linespec.c (decode_line_1): Move chunks of code to separate
2149 (initialize_defaults): New function.
2150 (decode_indirect): New function.
2152 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2154 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2155 instead of void_code_ptr.
2156 (sigtramp_saved_pc): Ditto.
2158 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2161 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2163 * gdbtypes.h (struct main_type): Move artificial flag out of
2164 loc. New member of ``struct field'' named static_kind. Reduce
2165 overloaded meaning of bitsize.
2166 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2167 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2168 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2170 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2172 (template_to_fixed_record_type, template_to_static_fixed_type)
2173 (to_record_with_fixed_variant_part): Likewise.
2174 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2175 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2176 * dwarfread.c (struct_type, enum_type): Likewise.
2177 * hpread.c (hpread_read_enum_type)
2178 (hpread_read_function_type, hpread_read_doc_function_type)
2179 (hpread_read_struct_type): Likewise.
2180 * mdebugread.c (parse_symbol): Likewise.
2182 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2184 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2185 * stack.c (print_frame_info_base): Update.
2186 (print_frame_info_base, frame_info): Update.
2187 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2188 (sparc_frame_saved_pc): Update.
2189 * ada-lang.c (find_printable_frame): Update.
2190 * breakpoint.c (deprecated_frame_in_dummy): Update.
2192 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2194 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2196 (regmap): Extend to cover all registers.
2197 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2198 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2200 (fetch_register, sore_register): Simplify.
2201 (old_fetch_inferior_registers, old_store_inferior_registers):
2203 (cannot_fetch_register, cannot_store_register): Change
2204 implementation to use regmap array to decide which registers
2205 cannot be fetched/stored. This removes $orig_eax from the
2206 registers that cannot be fetched/stored.
2207 (fetch_inferior_registers): Call fetch_register directly instead
2208 of calling old_fetch_inferior_registers.
2209 (store_inferior_registers): Call store_register directly instead
2210 of calling old_store_inferior_registers.
2211 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2212 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2213 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2215 2002-11-09 Klee Dienes <kdienes@apple.com>
2217 * i387-tdep.c (i387_supply_register): When called with NULL as a
2218 buffer, mark the register as not provided (to mirror the behavior
2219 of supply_register).
2220 (i387_supply_fxsave): Ditto.
2221 (i387_supply_fsave): Ditto (inherits the behavior from
2222 i387_supply_register).
2224 2002-11-09 Klee Dienes <kdienes@apple.com>
2226 * blockframe.c (sigtramp_saved_pc): Use
2227 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2228 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2229 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2231 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2233 * frame.c (get_prev_frame): Test prev_p to identify a previously
2234 unwound frame. Initialize prev_p.
2235 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2238 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2240 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2241 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2242 more comments. Zap dead code.
2244 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2246 * infcmd.c (print_vector_info, print_float_info): Move code that
2247 checks whether the target has any registers and whether there is a
2248 selected frame up, such that it is also used if a target provides
2249 multi-arch definitions of these functions.
2251 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2253 * Makefile.in (DESTDIR): Define.
2254 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2257 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2258 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2260 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2262 * i386-linux-tdep.c: Include "reggroups.h".
2263 (i386_linux_register_reggroup_p): New function.
2264 (i386_linux_init_abi): Set register_reggroup_p to
2265 i386_linux_register_reggroup_p.
2266 * i386-tdep.h (i386_register_reggroup_p): Declare.
2267 * i386-tdep.c: Include "reggroups.h".
2268 (i386_init_reggroups): New function.
2269 (i386_add_reggroups): New function.
2270 (i386_register_reggroup_p): New function.
2271 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2272 (_initialize_i386_tdep): Call i386_init_reggroups.
2273 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2276 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2278 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2279 request that's available in *BSD.
2281 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2283 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2286 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2288 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2289 * dummy-frame.c (find_dummy_frame): Rename
2290 generic_find_dummy_frame, make static. Return the dummy frame
2291 instead of the regcache.
2292 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2293 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2294 (dummy_frame_register_unwind): Rename
2295 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2296 * dummy-frame.h (dummy_frame_register_unwind): Rename
2297 generic_call_dummy_register_unwind.
2299 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2301 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2302 except the inclusion of "i386/tm-i386.h", to...
2303 * config/i386/nm-i386v42mp.h: ...here.
2304 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2306 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2308 * Makefile.in (frame.o): Update dependencies.
2309 * blockframe.c (current_frame, frame_obstack_alloc)
2310 (frame_saved_regs_zalloc, get_current_frame)
2311 (set_current_frame, create_new_frame)
2312 (set_unwind_by_pc, get_next_frame)
2313 (flush_cached_frames, reinit_frame_cache)
2314 (frame_saved_regs_register_unwind)
2315 (deprecated_generic_get_saved_register)
2316 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2317 (_initialize_blockframe): Move frame code from here...
2318 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2319 "annotate.h" and "dummy-frame.h".
2320 (_initialize_frame): New function.
2322 2002-11-08 Jim Blandy <jimb@redhat.com>
2324 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2325 when we finish a function a context.
2326 * buildsym.h (outermost_context_p): New macro.
2327 (Bug analyzed by David Edelsohn.)
2329 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2331 * blockframe.c: Include "dummy-frame.h".
2332 (struct dummy_frame, dummy_frame_stack)
2333 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2334 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2335 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2336 (generic_save_call_dummy_addr, generic_pop_current_frame)
2337 (generic_pop_dummy_frame, generic_fix_call_dummy)
2338 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2339 dummy frame code from here...
2340 * dummy-frame.c: ...to here. New file.
2341 * dummy-frame.h: New file.
2342 (generic_call_dummy_register_unwind): Declare.
2343 (generic_find_dummy_frame): Declare.
2344 * Makefile.in (SFILES): Add dummy-frame.c.
2345 (dummy-frame.o): Specify dependencies.
2346 (dummy_frame_h): Define.
2347 (COMMON_OBS): Add dummy-frame.o.
2348 (blockframe.o): Update dependencies.
2350 2002-11-08 Jim Blandy <jimb@redhat.com>
2352 * dwarf2read.c (read_func_scope): Restore local_symbols and
2353 param_symbols after we finish the function context. (Based on a
2354 patch from David Edelsohn.)
2356 2002-11-08 David Carlton <carlton@math.stanford.edu>
2358 * linespec.c (symbol_found): New function.
2359 (minsym_found): New function.
2360 (decode_line_1): Separate out some code into separate functions.
2362 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2364 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2365 the benefit of the interix target.
2366 * i386-tdep.h (i386_frameless_signal_p): Declare.
2368 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2370 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2371 declaration that snuck in from change below.
2373 2002-11-06 Andrew Cagney <cagney@redhat.com>
2375 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2377 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2378 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2379 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2380 (i386_mxcsr_regnum_p): new function. Use instead of
2382 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2383 (i386_sse_regnum_p): Declare.
2384 (i386_mxcsr_regnum_p): Declare.
2385 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2386 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2387 (IS_FP_REGNUM): Update definition.
2388 (IS_FPU_CTRL_REGNUM): Update definition..
2389 (IS_SSE_REGNUM): Update definition..
2390 * i386v-nat.c (register_u_addr): Update.
2391 * go32-nat.c (fetch_register): Update.
2392 (store_register): Update.
2394 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2396 Preparation work to convert the hppa targets to multiarch partial.
2398 * hppa-tdep.c: Add new functions replacing macro bodies from
2399 config/pa/tm-hppa.h. These function will be used to initialize
2400 the gdbarch structure. Import some comments from tm-hppa.h,
2401 and place them where appropriate, to avoid loosing them when
2402 we cleanup this file.
2403 (hppa_reg_struct_has_addr): New function.
2404 (hppa_inner_than): New function.
2405 (hppa_stack_align): New function.
2406 (hppa_pc_requires_run_before_use): New function.
2407 (hppa_instruction_nullified): New function.
2408 (hppa_register_byte): New function.
2409 (hppa_register_virtual_type): New function.
2410 (hppa_store_struct_return): New function.
2411 (hppa_cannot_store_register): New function.
2412 (hppa_frame_args_address): New function.
2413 (hppa_frame_locals_address): New function.
2414 (hppa_smash_text_address): New function.
2415 (hppa_coerce_float_to_double): New function. Requires the inclusion
2418 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2420 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2421 gdbarch-eligible macro to a call to the new associated function
2422 created in hppa-tdep.c.
2423 (INNER_THAN): Likewise.
2424 (STACK_ALIGN): Likewise.
2425 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2426 (INSTRUCTION_NULLIFIED): Likewise.
2427 (REGISTER_BYTE): Likewise.
2428 (REGISTER_VIRTUAL_TYPE): Likewise.
2429 (STORE_STRUCT_RETURN): Likewise.
2430 (CANNOT_STORE_REGISTER): Likewise.
2431 (FRAME_ARGS_ADDRESS): Likewise.
2432 (FRAME_LOCALS_ADDRESS): Likewise.
2433 (SMASH_TEXT_ADDRESS): Likewise.
2434 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2435 (ABOUT_TO_RETURN): Delete, as no longer used.
2437 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2439 * printcmd.c (disassemble_command): Remove obsolete function.
2440 (_initialize_printcmd): Do not create disassemble command here.
2441 * cli/cli-cmds.c (disassemble_command): New function. Implements
2442 disassemble command.
2443 (init_cli_cmds): Create disassemble command here instead.
2445 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2447 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2449 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2451 * regcache.h (regcache_cooked_read_using_offset_hack)
2452 (regcache_cooked_write_using_offset_hack): Delete declarations.
2453 (register_changed): Delete declaration.
2454 * regcache.c (regcache_cooked_read_using_offset_hack)
2455 (regcache_cooked_write_using_offset_hack): Delete functions.
2456 (cooked_xfer_using_offset_hack): Delete function.
2457 (register_changed): Delete function.
2459 2002-11-07 Jim Blandy <jimb@redhat.com>
2461 * macroscope.c: #include "complaints.h".
2462 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2463 but not in the macro table.
2464 * Makefile.in (macroscope.o): Record dependency.
2466 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2468 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2470 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2472 * regcache.c (deprecated_registers_fetched): Update.
2473 * regcache.h (deprecated_registers_fetched): Rename
2475 * remote-vxsparc.c (vx_read_register): Update.
2476 * remote-vxmips.c (vx_read_register): Update.
2477 * remote-vx68.c (vx_read_register): Update.
2478 * irix5-nat.c (fetch_core_registers): Update.
2479 * mipsm3-nat.c (fetch_inferior_registers): Update.
2480 * sun3-nat.c (fetch_inferior_registers): Update.
2481 * symm-nat.c (fetch_inferior_registers): Update.
2482 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2483 (fetch_core_registers): Update.
2484 (fetch_kcore_registers): Update.
2485 * mips-nat.c (fetch_inferior_registers): Update.
2486 * corelow.c (get_core_registers): Update.
2487 * a68v-nat.c (fetch_inferior_registers): Update.
2489 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2491 Put in place the framework necessary for multiarching the hppa targets.
2492 * hppa-tdep.c (hppa_gdbarch_init): New function.
2493 (hppa_dump_tdep): New function.
2494 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2495 tdep structure dumper.
2496 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2497 until the multi-arching conversion has partially been completed.
2499 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2501 * valops.c (value_assign): Merge lval_register case into
2502 lval_reg_frame_relative. Use frame_register and
2503 regcache_cooked_write instead of get_saved_register and
2504 write_register_bytes. After flushing the register cache, try to
2505 re-select the selected frame.
2507 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2509 * regcache.h (deprecated_register_valid): Rename register_valid.
2510 * regcache.c: Update.
2511 * ia64-aix-nat.c: Update.
2512 * i386gnu-nat.c: Update.
2513 * alpha-nat.c: Update.
2514 * sparc-nat.c: Update.
2515 * lynx-nat.c: Update.
2516 * remote-mips.c: Update.
2518 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2520 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2521 to end of file, to be more consistent with the pratice followed
2524 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2526 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2527 (print_float_info): Print registers in float_reggroup.
2528 (print_vector_info): Print registers in vector_reggroup.
2529 (default_print_registers_info): When all, print registers in
2530 all_reggroup. Otherwize, print registers in general_reggroup.
2531 (registers_info): Rewrite. Add support for register groups.
2534 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2536 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2538 (symtab_symbol_info): Remove eons old ifdeffed out code.
2539 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2542 2002-11-06 Theodore A. Roth <troth@openavr.org>
2544 * c-exp.y: Add missing semi-colons.
2545 * f-exp.y: Add missing semi-colons.
2546 * m2-exp.y: Add missing semi-colons.
2547 * p-exp.y: Add missing semi-colons.
2548 Add empty action to start rule to avoid a type clash error when
2549 building with bison >= 1.50.
2551 2002-11-06 Jim Blandy <jimb@redhat.com>
2553 * macrotab.h (struct macro_source_file): Doc fix.
2555 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2557 * varobj.c (child_exists, cplus_number_of_children): Change
2558 STREQ macro references to strcmp.
2559 (cplus_name_of_child): Change code to handle the fact that
2560 fields are not necessarily contiguous with regards to their
2561 access control. This is a fix for PR gdb/792.
2563 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2565 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2566 * gdbarch.h, gdbarch.c: Regnerate.
2567 * frame.h (frame_register): Declare.
2568 * frame.c (frame_register): New function.
2569 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2570 GET_SAVED_REGISTER, otherwize call
2571 generic_unwind_get_saved_register.
2572 (frame_register_read): Use frame_register instead of
2575 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2577 From Jim Ingham <jingham@apple.com>:
2578 * event-top.c (gdb_disable_readline): New function.
2579 (_initialize_event_loop): Move comment.
2581 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2583 * event-loop.c (start_event_loop): Add comment.
2586 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2588 * infcmd.c (default_print_registers_info): Do not call
2589 PRINT_REGISTER_HOOK.
2591 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2593 * sparc-tdep.c (sparc_print_register_hook): Make static.
2594 (sparc_print_registers_info): New function.
2595 (sparc_do_registers_info): New function.
2596 (sparclet_print_registers_info): New function.
2597 (sparclet_do_registers_info): New function.
2598 (do_sparc_print_registers_info): New function.
2599 (sparc_print_registers): New static function, clone of infcmd.c's
2600 default_print_registers_info.
2601 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2602 (sparclet_do_registers_info): Declare.
2603 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2604 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2606 (sparc_do_registers_info): Declare.
2607 (PRINT_REGISTER_HOOK): Delete macro.
2608 (sparc_print_register_hook): Delete declaration.
2610 2002-11-05 David Carlton <carlton@math.stanford.edu>
2612 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2614 (lookup_symbol_aux_local): New function.
2615 (lookup_symbol_aux_symtabs): New function.
2616 (lookup_symbol_aux_psymtabs): New function.
2618 2002-11-05 David Carlton <carlton@math.stanford.edu>
2620 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2621 previous values of 'objfile' and 'block'.
2623 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2625 * values.c (value_change_enclosing_type): Set
2626 enclosing_type field correctly also for the case where
2627 more memory needs to be allocated.
2629 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2631 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2634 * i387-tdep.c (i387_print_float_info): Replace calls to
2635 register_read and deprecated_read_register_gen with calls to
2636 frame_register_read, and make the necessary adjustments to the
2639 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2641 * gdbarch.sh (register_reggroup_p): Allow default value.
2642 * gdbarch.h, gdbarch.c: Regenerate.
2644 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2646 * regcache.h: Add coment indicating replacements for deprecated
2649 2002-11-02 Andrew Cagney <cagney@redhat.com>
2651 * reggroups.h, reggroups.c: New files.
2652 * regcache.c: Include "reggroups.h".
2653 (enum regcache_dump_what): Add `regcache_dump_groups'.
2654 (regcache_dump): Contract size of the "Type" column. When
2655 specified, dump the register's groups.
2656 (maintenance_print_register_groups): New function.
2657 (_initialize_regcache): Add command `maint print register-groups'.
2658 * Makefile.in (COMMON_OBS): Add reggroups.o
2659 (SFILES): Add reggroups.c.
2660 (reggroups_h): Define.
2661 (regcache.o, gdbarch.o): Update dependencies.
2662 (reggroups.o): Specify dependencies.
2663 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2664 Add opaque declaration for `struct reggroup' in generated .h file.
2665 Include "reggroups.h" in generated .c file.
2666 gdbarch.h, gdbarch.c: Re-generate.
2668 2002-11-02 Andrew Cagney <cagney@redhat.com>
2670 * regcache.h (deprecated_read_register_gen): Rename
2672 (deprecated_write_register_gen): Rename write_register_gen.
2673 * i387-tdep.c: Update.
2674 * x86-64-linux-nat.c: Update
2676 * thread-db.c: Update.
2677 * win32-nat.c: Update.
2678 * mips-tdep.c: Update.
2679 * d10v-tdep.c: Update.
2680 * cris-tdep.c: Update.
2681 * remote-sim.c: Update.
2682 * remote-rdi.c: Update.
2683 * remote-rdp.c: Update.
2686 * blockframe.c: Update.
2687 * x86-64-tdep.c: Update.
2688 * xstormy16-tdep.c: Update.
2689 * sh-tdep.c: Update.
2690 * s390-tdep.c: Update.
2691 * rs6000-tdep.c: Update.
2692 * sparc-tdep.c: Update.
2693 * i386-tdep.c: Update.
2694 * dwarf2cfi.c: Update.
2695 * regcache.c: Update.
2697 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2699 New interix-specific files:
2700 * config/i386/nm-interix.h: New file.
2701 * config/i386/interix.mh: New file.
2702 * config/i386/interix.mt: New file.
2703 * i386-interix-nat.c: New file.
2704 * i386-interix-tdep.c: New file.
2706 2002-11-01 Andrew Cagney <cagney@redhat.com>
2708 * frame.h (deprecated_generic_get_saved_register): Rename
2709 generic_get_saved_register.
2710 * blockframe.c (deprecated_generic_get_saved_register): Update.
2711 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2712 (xstormy16_frame_saved_register): Update.
2713 * sh-tdep.c (sh_gdbarch_init): Update.
2714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2715 * ia64-tdep.c (ia64_get_saved_register): Update.
2716 * cris-tdep.c (cris_gdbarch_init): Update.
2717 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2718 * arm-tdep.c (arm_gdbarch_init): Update.
2720 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2722 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2724 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2726 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2727 trampolines in sigaction.
2729 2002-10-31 Andrew Cagney <cagney@redhat.com>
2731 * h8300-tdep.c: Include "gdb_assert.h".
2732 (h8300_print_register): Add gdbarch, file and frame parameters.
2733 Use frame_read_unsigned_register to read the register's value.
2734 Use fprintf_filtered to display output.
2735 (h8300_print_registers_info): Replace h8300_do_registers_info.
2736 (h8300_gdbarch_init): Set print_registers_info.
2738 2002-10-31 Andrew Cagney <cagney@redhat.com>
2740 * frame.c (frame_read_unsigned_register): New function.
2741 (frame_read_signed_register): New function.
2742 * frame.h (frame_read_unsigned_register): Declare.
2743 (frame_read_signed_register): Declare.
2745 2002-10-31 Andrew Cagney <cagney@redhat.com>
2747 * h8500-tdep.c (h8500_print_registers_info): New static function,
2748 clone of infcmd.c's default_print_registers_info.
2749 (h8500_do_registers_info): New funtion.
2750 (h8500_print_register_hook): Rename print_register_hook, make
2753 * config/h8500/tm-h8500.h: Update copyright.
2754 (DEPRECATED_DO_REGISTERS_INFO): Define.
2755 (h8500_do_registers_info: Declare.
2756 (PRINT_REGISTER_HOOK): Delete macro.
2757 (print_register_hook): Delete function.
2759 2002-10-31 Andrew Cagney <cagney@redhat.com>
2761 * z8k-tdep.c (z8k_print_register_hook): Make static.
2762 (z8k_print_registers_info): New static function, clone of
2763 infcmd.c's default_print_registers_info.
2764 (z8k_do_registers_info): New function. Wrap
2765 z8k_print_registers_info.
2766 * config/z8k/tm-z8k.h: Update copyright.
2767 (PRINT_REGISTER_HOOK): Delete macro.
2768 (z8k_print_register_hook): Delete declaration.
2769 (DEPRECATED_DO_REGISTERS_INFO): Define.
2770 (z8k_do_registers_info): Declare.
2772 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2774 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2775 as this is already provided by value.h, and was actually causing
2776 a compilation error because of a conflict in parameter type
2777 declaration due to a missing const keyword.
2778 (low_text_segment_addres): Fix a compilation warning.
2780 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2782 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2783 registers without a name.
2784 (mips_linux_cannot_store_register): Don't store registers without
2787 2002-10-28 David Carlton <carlton@math.stanford.edu>
2789 * symtab.c (find_addr_symbol): Delete. (It was already commented
2791 * symtab.h: Delete prototype for find_addr_symbol.
2793 2002-10-26 Andrew Cagney <cagney@redhat.com>
2795 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2797 gdbarch.h, gdbarch.c: Re-generate.
2798 * infcmd.c (default_print_registers_info): Update reference.
2799 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2800 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2801 * sh-tdep.c (sh_gdbarch_init): Ditto.
2802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2803 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2805 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2807 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2808 cfi_init_extra_frame_info.
2809 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2810 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2812 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2813 target where necessary. Add more comments and remove the ones
2814 that don't provide any useful information.
2816 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2817 deprecated_read_register_dummy with
2818 frame_unwind_unsigned_register.
2820 * i386-tdep.c (i386_extract_struct_value_address): Use
2821 regcache_raw_read_unsigned instead of
2822 regcache_cooked_read_unsigned since we know that the register
2823 we're reading isn't a pseudo register. Rename variable 'val' into
2824 the more descriptive 'addr'.
2826 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2827 (x86_64_push_return_address): Add comment.
2828 (x86_64_pop_frame): Make static.
2829 (examine_argument): Clarify comment.
2830 (x86_64_skip_prologue): Make prolog_expact variable static.
2832 * dwarf2cfi.c: Fix some formatting problems.
2833 (context_cpy, read_encoded_pointer): Clarify comments.
2835 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2836 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2837 i386 target back into x86_64_gdbarch_init. Add some comments and
2838 remove meaningless ones.
2840 2002-10-25 Andrew Cagney <cagney@redhat.com>
2842 * complaints.h (struct deprecated_complaint): Rename `struct
2844 * complaints.c (complain): Update.
2845 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2846 incorrect comment indicating that "symfile.h" was being included
2847 for the `struct complaint' definition.
2848 * remote-vx.c: Update.
2849 * objc-lang.c: Update.
2850 * xcoffread.c: Update.
2852 * mdebugread.c: Update.
2853 * stabsread.c: Update.
2854 * dwarf2read.c: Update.
2855 * dwarfread.c: Update.
2856 * elfread.c: Update.
2857 * coffread.c: Update.
2858 * stabsread.h: Update.
2859 * dbxread.c: Update.
2860 * buildsym.c: Update.
2861 * gdbtypes.c: Update.
2862 * macrotab.c: Update.
2864 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2866 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2867 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2868 (x86_64_init_abi): ...new function.
2870 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2871 * i386v-nat.c: Include "i386-tdep.h".
2873 2002-10-25 Andrew Cagney <cagney@redhat.com>
2875 * gdbtypes.c (address_space_name_to_int): Update.
2876 (address_space_int_to_name): Update.
2877 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2878 multi-arch predicate.
2879 (address_class_name_to_type_flags): Ditto.
2880 * gdbarch.h, gdbarch.c: Re-generate.
2882 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2884 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2886 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2888 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2890 * symtab.h (INIT_SAL): Delete macro.
2892 * symtab.c (init_sal): New function.
2894 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2895 to init_sal function call.
2896 (find_sal_from_funcs_and_line): Ditto.
2897 (all_sals_for_line): Ditto.
2898 * breakpoint.c (create_internal_breakpoint): Ditto.
2899 (create_fork_vfork_event_catchpoint): Ditto.
2900 (create_exec_event_catchpoint): Ditto.
2901 (parse_breakpoint_sals): Ditto.
2902 (watch_command_1): Ditto.
2903 (handle_gnu_4_16_catch_command): Ditto.
2904 (clear_command): Ditto.
2905 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2906 * infcmd.c (run_stack_dummy): Ditto.
2907 * infrun.c (process_event_stop_test): Ditto.
2908 (check_sigtramp2): Ditto.
2909 (step_over_function): Ditto.
2910 * linespec.c (decode_line_2): Ditto.
2911 (decode_line_1): Ditto.
2912 * source.c (line_info): Ditto.
2913 * symtab.c (find_pc_sect_line): Ditto.
2915 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2917 * dwarf2cfi.c (struct context)
2918 (struct context_reg): Moved to dwarf2cfi.h
2919 (context_alloc, frame_state_alloc, context_cpy):
2920 Made extern instead of static, removed prototypes.
2921 * dwarf2cfi.h (struct context)
2922 (struct context_reg): New, moved from dwarf2cfi.c
2923 (context_alloc, frame_state_alloc, context_cpy):
2925 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2926 Changed from static to extern.
2927 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2928 (LINUX_SIGCONTEXT_FP_OFFSET)
2929 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2930 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2931 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2932 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2933 set_gdbarch_*() calls now use x86-64 specific functions
2934 instead of DWARF2 CFI ones.
2935 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2936 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2937 (x86_64_init_extra_frame_info): New prototypes.
2939 2002-10-23 David Carlton <carlton@math.stanford.edu>
2941 * linespec.c: #include "parser-defs.h".
2942 Delete prototype for find_template_name_end.
2943 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2945 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2947 * NEWS: add recent mi fixes.
2948 * varobj.c (struct varobj): Add new "updated" flag.
2949 (new_variable): Default "updated" flag to 0.
2950 (varobj_set_value): Set "updated" flag to 1 if value
2952 (varobj_update): Check varobj "updated" flag before
2953 comparing old and refreshed values. Fix for
2956 2002-10-23 David Carlton <carlton@math.stanford.edu>
2958 * parse.c (parse_exp_1): Use BLOCK_START.
2959 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2961 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2963 2002-10-23 David Carlton <carlton@math.stanford.edu>
2965 * symtab.c: Delete cplusplus_hint.
2966 Delete prototype for find_template_name_end.
2968 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2970 * symtab.h: Update comment.
2972 2002-10-23 Michael Snyder <msnyder@redhat.com>
2974 * printcmd.c (address_info): Restore quotes in output.
2975 * valops.c (value_of_local): Restore quotes in error message.
2977 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2979 * symtab.c (symbol_demangled_name): New function.
2980 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2981 turning most of it into a function.
2982 (symbol_demangled_name): Export.
2984 2002-10-23 Michael Snyder <msnyder@redhat.com>
2986 * valops.c (value_of_local): Restore quotes in error message.
2988 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2990 * symtab.c (symbol_init_language_specific): New function.
2991 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2992 turning most of it into a function.
2993 (symbol_init_language_specific): Export.
2995 2002-10-23 David Carlton <carlton@math.stanford.edu>
2997 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2998 (dwarf_attr_name): Ditto.
2999 (dwarf_type_encoding_name): Ditto.
3000 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3001 (process_die): Handle DW_TAG_namespace,
3002 DW_TAG_imported_declaration, DW_TAG_imported_module.
3003 (read_namespace): New function.
3005 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3007 * configure.in: Define NEW_PROC_API on Interix too.
3008 * configure: Regenerate.
3010 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3012 * configure: Regenerate using the proper version of autoconf.
3014 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3016 * findvar.c (read_var_value): Temporarily disable TLS code, until
3017 complete TLS support is added.
3019 2002-10-21 Jim Blandy <jimb@redhat.com>
3020 Elena Zannoni <ezannoni@redhat.com>
3022 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3023 for thread local storage locations.
3024 (struct symbol): Add objfile field.
3025 (SYMBOL_OBJFILE): Define.
3026 * dwarf2read.c (is_thread_local): New static variable.
3027 (new_symbol): If variable is in thread local fill in address class
3028 and objfile appropriately.
3029 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3031 * printcmd.c (address_info): Print the information for thread
3032 local storage variable.
3033 * findvar.c (read_var_value): In case of thread local variable,
3034 defer to the target vector code to compute address.
3036 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3038 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3039 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3041 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3043 * symtab.h (address_class): Rename
3044 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3045 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3046 * printcmd.c (address_info): Ditto.
3047 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3049 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3051 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3052 DBREG_DRX macro to acces debug registers.
3054 * Makefile.in (i386obsd-tdep.o): New target.
3056 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3057 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3059 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3060 * config/i386/obsd.mt: New file.
3061 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3062 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3063 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3064 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3065 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3066 * i386obsd-tdep.c: New file.
3068 2002-10-19 Adam Fedor <fedor@gnu.org>
3070 * objc-exp.y (name_not_typename): Fix invalid comment.
3072 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3074 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3075 to allocate partial syms and macro byte caches.
3077 2002-10-18 David Carlton <carlton@math.stanford.edu>
3079 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3081 2002-10-18 Adam Fedor <fedor@gnu.org>
3083 * stabsread.c (find_name_end): New function.
3084 (define_symbol): Use it.
3086 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3088 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3089 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3090 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3091 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3093 2002-10-17 David Carlton <carlton@math.stanford.edu>
3095 * symfile.h: Add opaque declaration for struct obstack.
3096 Declare obsavestring to take a const char *.
3097 * symfile.c (obsavestring): Make first argument a const char *.
3099 2002-10-16 Adam Fedor <fedor@gnu.org>
3101 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3102 names when matching breakpoints in current file.
3104 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3106 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3107 (read_tag_pointer_type): Add address class support.
3108 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3109 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3111 * gdbarch.h, gdbarch.c: Regenerate.
3112 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3113 (make_type_with_address_space, recursive_type_dump): Add address
3115 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3116 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3117 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3119 2002-10-16 Klee Dienes <kdienes@apple.com>
3121 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3122 to get the last character of a char[] buffer, not
3123 name[sizeof(vptr_name)-1].
3125 2002-10-14 Adam Fedor <fedor@gnu.org>
3127 * symtab.h: New objc_specific struct.
3128 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3129 (SYMBOL_DEMANGLED_NAME): Likewise.
3131 2002-10-14 Adam Fedor <fedor@gnu.org>
3133 * symfile.c (init_filename_language_table): Add ObjC file extension.
3135 2002-10-14 Adam Fedor <fedor@gnu.org>
3137 * utils.c (puts_filtered_tabular): New function.
3138 (fprintf_symbol_filtered): Get ObjC demangled name.
3139 * defs.h (puts_filtered_tabular): Declared.
3141 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3143 * c-lang.h (c_type_print_varspec_prefix): Delete.
3144 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3145 ``need_post_space'' parameter. Adjust all callers.
3147 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3149 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3150 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3151 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3152 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3154 2002-10-13 Adam Fedor <fedor@gnu.org>
3156 * source.c (print_source_lines): Update comments.
3158 2002-10-13 Adam Fedor <fedor@gnu.org>
3160 * valops.c (value_of_local): New function.
3161 (value_of_this): Use it.
3162 * value.h (value_of_local): Declared.
3164 2002-10-13 Adam Fedor <fedor@gnu.org>
3166 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3167 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3169 2002-10-12 Adam Fedor <fedor@gnu.org>
3171 * language.c (binop_result_type): Add language_objc to case.
3172 (integral_type): Likewise.
3173 (character_type): Likewise.
3174 (string_type): Likewise.
3175 (boolean_type): Likewise.
3176 (structured_type): Likewise.
3177 (binop_type_check): Likewise.
3179 2002-10-11 Adam Fedor <fedor@gnu.org>
3181 * printcmd.c (address_info): Print 'self' for ObjC.
3183 2002-10-11 Adam Fedor <fedor@gnu.org>
3185 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3188 2002-10-11 Adam Fedor <fedor@gnu.org>
3190 * language.h (CAST_IS_CONVERSION): Add language_objc.
3192 2002-10-11 Adam Fedor <fedor@gnu.org>
3194 * defs.h (enum language): Add language_objc.
3196 2002-10-11 Klee Dienes <kdienes@apple.com>
3198 * corefile.c (read_memory_typed_address): New function.
3199 * gdbcore.h (read_memory_typed_address): Add prototype.
3200 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3201 to read a value destined for a CORE_ADDR, not read_memory_integer.
3202 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3203 (f77_get_dynamic_lowerbound): Ditto.
3205 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3207 * utils.c (string_to_core_addr): After turning string into
3208 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3209 which will do necessary sign-extension, etc.
3211 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3213 * c-exp.y (THIS): Delete token and grammar rule.
3214 (yylex): Don't return THIS.
3215 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3216 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3217 * demangle.c (cplus_markers): Update comment. Put '$'
3218 first. Remove CPLUS_MARKER.
3219 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3220 * jv-exp.y (THIS): Delete token and grammar rule.
3221 (yylex): Don't return THIS.
3222 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3223 * objc-exp.y (THIS): Delete token and grammar rule.
3224 (yylex): Don't return THIS.
3225 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3226 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3227 (read_member_functions): Likewise for opname.
3228 (read_tilde_fields): Use is_cplus_marker.
3230 * defs.h (CPLUS_MARKER): Don't define.
3231 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3232 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3233 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3234 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3235 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3237 * config/i386/tm-i386v4.h: Delete file.
3238 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3239 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3240 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3241 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3242 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3243 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3244 * config/i386/i386v4.mt (TM_FILE): Likewise.
3245 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3247 2002-10-10 Marko Mlinar <markom@opencores.org>
3249 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3250 accidentially not commited 2002-10-09
3251 * gdbarch.h, gdbarch.c: Re-generate.
3253 2002-10-09 Marko Mlinar <markom@opencores.org>
3255 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3256 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3257 * gdbarch.h, gdbarch.c: Re-generate.
3259 2002-10-08 Petr Sorfa <petrs@caldera.com>
3261 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3263 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3264 so we can work on more than one compilation unit at a time. This
3265 helps prepare GDB to handle inter-CU die references.
3266 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3267 the code to be defined before struct comp_unit_head.
3268 (comp_unit_head): Added new members - offset, cu_head,
3269 begin_die, next and dwarf2_abbrevs.
3270 (dwarf2_abbrevs): Removed single static var; now member of
3271 struct comp_unit_head.
3272 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3274 (psymtab_to_symtab_1): Changed to work with the new
3275 struct comp_unit_head.
3276 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3277 constructs the dwarf2_abbrevs[] inside the cu_header.
3278 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3279 dwarf2_abbrev table to clean up.
3280 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3281 handling of dwarf2_abbrevs inside the cu_header.
3282 (read_partial_die): Now supports the call to the new
3283 dwarf2_lookup_abbrev.
3284 (read_full_die): Now supports the call to the new
3285 dwarf2_lookup_abbrev.
3287 2002-10-06 Christopher Faylor <cgf@redhat.com>
3289 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3290 insure that shell variables, such as "transformed_name" are propagated
3291 to later shell statements in rule.
3293 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3295 * config/i386/nm-i386sco.h: Add protection against
3296 multiple-inclusion. Include "i386/nm-i386v.h".
3297 (REGISTER_U_ADDR): Remove define.
3298 (i386_register_u_addr): Remove prototype.
3300 2002-10-04 Michael Snyder <msnyder@redhat.com>
3302 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3303 before treating it as a single-step event.
3305 2002-10-03 Adam Fedor <fedor@gnu.org>
3307 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3308 (objc_demangle): Remove assignment in if statements, Replace
3310 (add_msglist): Likewise.
3311 (end_msglist): Likewise.
3312 (complare_selectors): Likewise.
3313 (selectors_info): Likewise.
3314 (compare_classes): Likewise.
3315 (classes_info): Likewise.
3316 (print_object_command): Likewise.
3317 (find_objc_msgcall_submethod): Replace PTR with void *.
3318 * objc-lang.h: Remove check for __STDC__.
3320 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3322 * ui-out.h (ui_out_field_fmt_int): New prototype.
3323 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3324 of field width and alignment.
3325 * stack.c (print_frame_info_base): When printing frame level, use
3326 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3329 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3331 * MAINTAINERS: Add self to Write After Approval list.
3333 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3335 * infcmd.c (interrupt_target_command_wrapper): Delete.
3336 (interrupt_target_command): Make non static.
3337 (nofp_registers_info): Make static.
3338 * stack.c (return_command_wrapper): Delete.
3339 (return_command): Make non static.
3341 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3343 * event-top.c (gdb_setup_readline): New function. Code moved from
3344 _initialize_event_loop().
3345 (_initialize_event_loop): Call gdb_setup_readline().
3347 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3349 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3350 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3351 * gdbarch.h, gdbarch.c: Re-generate.
3353 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3356 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3358 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3359 of fill_in_vptr_fieldno.
3361 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3363 * inferior.h (registers_info, stepi_command, nexti_command,
3364 continue_command, interrupt_target_command): Export from infcmd.c.
3365 * frame.h (args_info, selected_frame_level_changed_hook,
3366 return_command): Export from stack.c.
3367 * v850ice.c (stepi_command, nexti_command, continue_command): use
3368 prototypes from inferior.h.
3369 * tracepoint.c (registers_info, args_info, locals_info): Use
3370 prototypes from frame.h and inferior.h.
3371 * Makefile.in (mi-main.o): Add dependency on frame.h.
3373 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3375 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3376 value in register 3 adjusted by ppc_gp0_regnum.
3378 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3380 2002-10-02 Marko Mlinar <markom@opencores.org>
3382 * MAINTAINERS: Add myself to the Write After Approval list.
3384 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3386 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3387 of the section for the N64 ABI, fixed.
3389 * config/mips/tm-irix6.h: Include solib.h.
3391 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3393 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3396 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3398 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3399 and that "mi0" syntax has been removed.
3401 2002-09-30 David Carlton <carlton@math.stanford.edu>
3403 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3404 * ppc-sysv-tdep.c: #include "gdb_string.h".
3405 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3408 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3410 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3411 "vrsave"'s register number.
3413 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3415 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3416 use frame_unwind_signed_register to obtain the PC.
3417 (mips_frame_chain): Handle a generic dummy frame.
3418 (mips_init_extra_frame_info): When a generic dummy frame, don't
3419 re-compute the frame base.
3420 (mips_pop_frame): Handle generic dummy frames.
3421 (mips_gdbarch_init): When generic dummy frames, set
3422 use_generic_dummy_frames, push_dummy_frame to
3423 generic_push_dummy_frame, pc_in_call_dummy to
3424 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3425 generic_save_dummy_frame_tos.
3427 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3429 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3430 against TOP when TOP was explictly set.
3431 (generic_push_dummy_frame): Set TOP to zero.
3433 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3435 * event-loop.c (start_event_loop): Rename variable 'result' to
3436 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3438 2002-09-30 Keith Seitz <keiths@redhat.com>
3440 * gdb-events.sh (selected_thread_changed): New event.
3441 * gdb-events.c: Regenerated.
3442 * gdb-events.h: Regenerated.
3444 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3446 * MAINTAINERS: Add self to Write After Approval list.
3448 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3450 * disasm.c: New file.
3451 * disasm.h: New file.
3452 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3453 (compare_lines): Ditto.
3454 (dump_insns): Ditto.
3455 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3457 (do_assembly_only): Ditto.
3458 (do_disassembly): Renamed to gdb_disassembly and moved to
3459 disasm.c. Sdded uiout argument.
3460 * Makefile.in: Add new files. Reorder SFILES list. Update
3461 dependencies. Include libgdb.a later in the insight executable.
3463 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3465 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3466 bfd/elf64-alpha-fbsd.c.
3468 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3470 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3473 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3475 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3477 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3479 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3480 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3481 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3482 (S_msg_sig_post_reply): Ditto.
3484 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3486 * sh-tdep.c (sh_use_struct_convention): Use definition according
3488 (sh_push_arguments): Store in register with correct endianess.
3489 (sh_default_store_return_value): Ditto.
3490 (sh_gdbarch_init): Set sizeof long double to 8.
3492 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3494 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3495 Fix some whitespace problems.
3497 2002-09-27 David Carlton <carlton@math.stanford.edu>
3499 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3500 (mcore-tdep.o): Ditto.
3501 (ns32k-tdep.o): Ditto.
3502 (ns32knbsd-tdep.o): Ditto.
3504 (vax-tdep.o): Ditto.
3505 * cris-tdep.c: #include "gdb_string.h"
3506 * mcore-tdep.c: Ditto.
3507 * ns32k-tdep.c: Ditto.
3508 * ns32knbsd-tdep.c: Ditto.
3510 * vax-tdep.c: Ditto.
3512 2002-09-27 David Carlton <carlton@math.stanford.edu>
3514 * config/djgpp/fnchange.lst: Add entries for
3515 gdb/testsuite/gdb.c++/m-static files.
3517 2002-09-27 Jim Wilson <wilson@redhat.com>
3519 * MAINTAINERS: Add myself to the Write After Approval list.
3521 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3523 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3526 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3528 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3531 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3533 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3534 (rs6000_struct_return_address): Delete variable.
3535 (rs6000_store_struct_return): Update.
3536 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3537 deprecated_extract_struct_value_address.
3538 (rs6000_frame_align): New function.
3539 (rs6000_gdbarch_init): Set frame_align.
3541 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3543 From Grace Sainsbury <graces@redhat.com>:
3544 * Makefile.in (gdbtk-main.o): New target.
3545 (gdb.o): New target.
3547 (main.o): Update dependencies.
3548 (gdb$(EXEEXT)): Add gdb.o.
3549 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3550 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3551 (SUBDIR_GDBTK_CLEAN): Set.
3552 (install-gdbtk): Install the insight binary.
3553 (uninstall-gdbtk): New target.
3554 (all-gdbtk, clean-gdbtk): New rule.
3555 * top.c (use_windows): Default to zero.
3556 * main.c: Include "main.h".
3558 (struct captured_main_args): Delete.
3559 (gdb_main): New function.
3563 2002-09-25 Andrew Cagney <cagney@redhat.com>
3565 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3566 (frame_map_regnum_to_name): New function.
3567 (frame_map_name_to_regnum): New function.
3568 * frame.h (frame_map_name_to_regnum): Declare.
3569 (frame_map_regnum_to_name): Declare.
3570 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3571 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3572 * parse.c: Do not include "builtin-regs.h".
3573 (target_map_name_to_register): Delete function.
3574 (write_dollar_variable): Use frame_map_name_to_regnum.
3575 * parser-defs.h (target_map_name_to_register): Delete declaration.
3576 * expprint.c: Include "frame.h".
3577 (print_subexp): Use frame_map_regnum_to_name.
3578 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3579 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3581 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3583 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3584 wasn't saved, and the next innermost frame is a dummy, return the
3585 dummy frame's link register.
3587 2002-09-24 Jim Blandy <jimb@redhat.com>
3589 Fix from Paul Breed:
3590 * main.c (captured_main): Add a `break' after the case for 'b'.
3592 2002-09-24 Keith Seitz <keiths@redhat.com>
3594 * varobj.c (c_type_of_child): Use get_target_type instead
3595 of TYPE_TARGET_TYPE.
3597 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3599 * source.c (get_current_or_default_source_symtab_and_line): Remove
3601 (set_default_source_symtab_and_line): New function. Attempts to
3602 determine a source file to list lines from if one is not currently
3604 (get_current_source_symtab_and_line): Initialize sal.pc and
3606 (set_current_source_symtab_and_line): Mark argument as const.
3607 * source.h: Update declarations and comments.
3608 * linespec.c (decode_line_1): Replace call to removed routine above.
3609 * stack.c (print_frame_info_base): Ditto.
3610 * cli/cli-cmds.c (edit_command): Ditto.
3611 (list_command): Ditto.
3613 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3615 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3616 sal.pc and sal.end fields.
3617 (get_current_or_default_source_symtab_and_line): Ditto.
3618 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3619 so we do not cause a new source symtab to be searched for (reverting an
3620 unintentional change from the 2002-09-20 patch).
3621 * scm-lang.c (scm_unpac): Ditto.
3623 2002-09-21 Andrew Cagney <cagney@redhat.com>
3625 * complaints.c (symfile_explanations): Remove new-line from
3626 ``isolated_message''.
3627 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3628 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3630 2002-09-20 Nick Clifton <nickc@redhat.com>
3632 * NEWS: Announce that V850EA ISA is no longer supported.
3633 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3635 2002-09-20 David Carlton <carlton@math.stanford.edu>
3637 * Makefile.in (c-lang.o): Correct dependencies.
3638 (utils.o): Gather dependencies.
3640 * c-lang.c: #include "gdb_string.h"
3642 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3644 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3645 * cli/cli-cmds.c (list_command): New function. Implements the new
3647 (_init_cli_cmds): Add new command definition.
3648 * gdb.1: Document edit command.
3649 * doc/gdb.texinfo: Document edit command.
3651 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3653 * source.c: Make global variables current_source_symtab and
3654 current_source_line static.
3655 (list_command): Moved to cli/cli-cmds.c.
3656 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3657 (get_first_line_listed): New accessor function.
3658 (get_lines_to_list): New accessor function.
3659 (get_current_source_symtab_and_line): New function. Retrieves the
3660 position in the source code that we consider current.
3661 (get_current_or_default_source_symtab_and_line): New function.
3662 Like the above but attempts to determine a default position if one
3663 is not currently defined.
3664 (set_current_source_symtab_and_line): New function. Sets the source
3665 code position considered current and returns the previously set one.
3666 (clear_current_source_symtab_and_line): Reset stored information about
3667 a current source line.
3668 (_initialize_source): Remove registration for the "list" command and
3670 * source.h: Add declarations for the new functions above.
3671 * symtab.h: Remove declarations for the global variables mentioned
3673 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3674 obtain current source line.
3675 * linespec.c (decode_line_1): Ditto.
3676 * macroscope.c (default_macro_scope): Ditto.
3677 * scm-lang.c (scm_unpac): Ditto.
3678 * stack.c (print_frame_info_base): Ditto.
3679 * symfile.c (clear_symtab_users): Ditto.
3680 * symtab.c (decode_line_spec): Ditto.
3681 * cli/cli-cmds.c (list_command): Moved here from source.c.
3682 (ambiguous_line_spec): Moved here from source.c.
3683 (_init_cli_cmds): Add definition for "list" and its alias.
3684 * Makefile.in: Update dependencies.
3686 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3688 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3689 with what gcc thinks is correct.
3691 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3693 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3694 multiple register push instruction.
3696 2002-09-19 Jim Blandy <jimb@redhat.com>
3698 Add support for distinct host and target character sets.
3699 * charset.c, charset.h: New files.
3700 * c-exp.y: #include "charset.h".
3701 (yylex): Convert character and string literals to the target
3702 character set, before returning them as the semantic value of the
3704 * c-lang.c: #include "charset.h".
3705 (c_emit_char): Use charset-specific methods to recognize
3706 characters with backslash escape forms, to decide which characters
3707 to print literally and which to print using numeric escape
3708 sequences, and to convert target characters to host characters
3710 * utils.c: #include "charset.h".
3711 (no_control_char_error): New function.
3712 (parse_escape): Use charset-specific methods to recognize
3713 backslash escapes, parse `control character' notation, and convert
3714 characters from the host character set to the target character set.
3715 * configure.in: Set the default host character set.
3716 Check where to find iconv, and what its argument types might be.
3717 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3718 * Makefile.in (SFILES): List charset.c.
3719 (COMMON_OBS): List charset.o.
3720 (charset.o): New rule.
3721 (charset_h): New header dependency variable.
3722 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3723 (LIBICONV): New variable, set by configure.
3724 (CLIBS): Include $(LIBICONV) here.
3725 * aclocal.m4, config.in, configure: Regenerated.
3727 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3729 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3732 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3734 * gdb_mbuild.sh: New file.
3736 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3738 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3740 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3742 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3743 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3744 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3745 valops.c, value.h: Revert previous change.
3747 2002-09-18 Michael Snyder <msnyder@redhat.com>
3749 Preliminary support for Objective-C:
3750 * defs.h (language_objc): New enum value.
3751 (puts_filtered_tabular): Declaration only, exported from utils.c.
3752 (skip_quoted): Delete, declared in completer.h.
3753 * c-exp.y: Include completer.h.
3756 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3757 New operator enum values.
3758 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3759 * language.c (binop_result_type): Handle language_objc case.
3760 (integral_type, character_type, string_type, boolean_type,
3761 structured_type, binop_type_check): Ditto.
3762 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3763 (struct objc_specific): Add to general_symbol_info.
3764 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3765 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3766 * parser-defs.h (struct objc_class_str): New struct type.
3767 (start_msglist, end_msglist, add_msglist): Declaration only,
3768 exported from objc-lang.c.
3769 * value.h (value_of_local, value_nsstring,
3770 call_function_by_hand_expecting_type): Exported from valops.c.
3771 * valops.c (find_function_addr): Export.
3772 (call_function_by_hand_expecting_type): New function.
3773 (value_of_local): New function.
3774 * symfile.c (init_filename_language_table): Add ".m" extension
3776 * utils.c (puts_filtered_tabular): New function.
3777 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3778 (set/show demangle): Extend help-string to refer to ObjC.
3779 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3780 * stabsread.c (symbol_reference_defined): Objective-C symbols
3781 may contain colons: make allowances when scanning stabs strings
3783 (objc_find_colon): New function.
3784 * printcmd.c (address_info): If language == objc then print
3785 "self" instead of "this".
3786 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3787 OP_NSSTRING, and OP_SELF.
3788 (prefixify_subexp): Ditto.
3789 * source.c (print_source_lines): Mention objc in comment.
3790 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3793 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3795 * complaints.h: Update copyright.
3796 (struct complaints): Declare.
3797 (struct complaint): Make `message' constant.
3798 (internal_complaint): Declare.
3799 (complaint): Declare.
3800 (complaint_root): Delete declaration.
3801 (symfile_complaints): Delete declaration.
3802 (struct complaints): Add opaque declaration.
3803 (clear_complaints): Add a complaints parameter.
3804 * complaints.c: Update copyright.
3805 (enum complaint_series): Define.
3806 (complaint_root): Delete.
3807 (struct complaints): Define.
3808 (complaint_sentinel, symfile_complaint_book): New variables.
3809 (symfile_explanations, symfile_complaints): New variables.
3811 (get_complaints): New function.
3812 (vcomplaint): New function.
3813 (complaint): New function.
3814 (internal_complaint): New function.
3815 (complain): Call vcomplain with symfile_complaint.
3816 (clear_complaints): Rewrite.
3817 (_initialize_complaints): Use add_setshow_command.
3818 * Makefile.in (complaints.o): Update dependencies.
3819 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3820 to call to clear_complaints.
3821 (new_symfile_objfile, reread_symbols): Ditto.
3822 (oldsyms_complaint): Delete.
3823 (empty_symtab_complaint, unknown_option_complaint): Delete.
3824 (free_named_symtabs): Use complaint instead of complain.
3826 2002-09-18 Michael Snyder <msnyder@redhat.com>
3828 Contributed by Apple Computer, Inc. Merged with current sources
3829 by Adam Fedor <fedor@doc.com> [cagney].
3831 * objc-lang.c: First clean-up round: comments, indentation.
3832 * objc-lang.h: Ditto.
3833 * objc-lang.y: Ditto.
3835 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3837 * maint.c (maintenance_internal_error): Print the parameter as the
3839 (maintenance_internal_warning): New function.
3840 (_initialize_maint_cmds): Add command `maint internal-warning'.
3842 * defs.h (internal_warning, internal_vwarning): Declare.
3843 * utils.c (struct internal_problem): Define.
3844 (internal_vproblem): New function.
3845 (internal_warning): New function.
3846 (internal_vwarning): New function.
3847 (internal_warning_problem, internal_error_problem): New variables.
3848 (internal_verror): Just call internal_vproblem.
3850 2002-09-18 Michael Snyder <msnyder@redhat.com>
3852 * objc-lang.c: New file, support for Objective-C.
3853 Preliminary check-in, not yet integrated into gdb.
3854 * objc-lang.h: New file.
3855 * objc-exp.y: New file.
3857 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3859 * infrun.c (signal_stop_update): Convert definition to ISO C.
3860 (signal_print_update): Ditto.
3861 (signal_pass_update): Ditto.
3862 * inflow.c (terminal_save_ours): Ditto.
3864 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3867 * config/djgpp/fnchange.lst: Handle name clashes between
3868 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3871 * i386-linux-tdep.h: Fix tipo.
3873 2002-09-18 Adam Fedor <fedor@gnu.org>
3875 * MAINTAINERS: Add myself to the Write After Approval list.
3877 2002-09-18 Jim Blandy <jimb@redhat.com>
3879 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3880 texthigh and textlow to reader-specific structs caused
3881 objfile_relocate to miss them. This is fixable, but the work that
3882 the change was supposed to prepare GDB for never got done anyway.
3884 2002-09-18 David Carlton <carlton@math.stanford.edu>
3886 * MAINTAINERS: Alphabetize Write After Approval list.
3888 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3891 * values.c (value_static_field): Call read_var_value.
3893 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3895 * valops.c (hand_function_call): Align the initial stack pointer
3896 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3897 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3899 * mips-tdep.c (mips_frame_align): New function.
3900 (mips_gdbarch_init): Set frame_align.
3901 * gdbarch.sh (FRAME_ALIGN): New method.
3902 * gdbarch.h, gdbarch.c: Re-generate.
3904 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3906 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3909 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3911 * NEWS: Mention that MIPS $fp behavior changed.
3912 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3913 reference to FP_REGNUM.
3914 (mipsnbsd_cannot_store_register): Ditto.
3915 * mips-linux-nat.c: Update copyright.
3916 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3917 (mips_linux_cannot_store_register): Ditto.
3918 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3919 * config/mips/tm-mips.h: Update copyright.
3920 (FP_REGNUM): Delete macro.
3921 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3922 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3923 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3924 (mips_r3041_reg_names, mips_r3051_reg_names)
3925 (mips_r3081_reg_names): Replace "fp" with "".
3928 2002-09-17 Theodore A. Roth <troth@verinet.com>
3930 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3931 generic_read_register_dummy() (PR gdb/703).
3932 (avr_push_return_address): #if 0 out unused vars.
3933 (avr_gdbarch_init): Enable use of avr_push_return_address().
3935 2002-09-17 Michael Snyder <msnyder@redhat.com>
3937 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3938 RTE will take care of it.
3940 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3942 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3943 invalid, return SP_REGNUM.
3945 2002-09-17 Michael Snyder <msnyder@redhat.com>
3947 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3948 point registers without sign extension.
3950 2002-09-17 Andrew Cagney <cagney@redhat.com>
3952 * blockframe.c (deprecated_read_register_dummy): Rename
3953 generic_read_register_dummy.
3954 * frame.c (frame_unwind_signed_register): New function.
3955 (frame_unwind_unsigned_register): New function.
3956 * frame.h (frame_unwind_signed_register): Declare.
3957 (frame_unwind_unsigned_register): Declare.
3958 (deprecated_read_register_dummy): Rename
3959 generic_read_register_dummy.
3961 * h8300-tdep.c (h8300_frame_chain): Update.
3962 (h8300_frame_saved_pc): Update.
3963 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3964 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3965 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3966 (s390_frame_chain): Update.
3967 * v850-tdep.c (v850_find_callers_reg): Update.
3968 (v850_frame_saved_pc): Update.
3969 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3970 (m32r_find_callers_reg): Update.
3971 (m32r_frame_saved_pc): Update.
3972 * sh-tdep.c (sh_find_callers_reg): Update.
3973 (sh64_get_saved_pr): Update.
3974 (sh_init_extra_frame_info): Update.
3975 (sh_init_extra_frame_info): Update.
3976 (sh64_init_extra_frame_info): Update.
3977 (sh64_init_extra_frame_info): Update.
3978 * mcore-tdep.c (mcore_find_callers_reg): Update.
3979 (mcore_frame_saved_pc): Update.
3980 (mcore_init_extra_frame_info): Update.
3981 * i386-tdep.c (i386_frame_saved_pc): Update.
3982 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3983 (ia64_init_extra_frame_info): Update.
3984 (ia64_init_extra_frame_info): Update.
3985 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3986 * cris-tdep.c (cris_init_extra_frame_info): Update.
3987 * avr-tdep.c (avr_frame_chain): Update.
3988 (avr_init_extra_frame_info): Update.
3989 (avr_frame_saved_pc): Update.
3990 * arm-tdep.c (arm_find_callers_reg): Update.
3991 (arm_init_extra_frame_info): Update.
3992 (arm_frame_saved_pc): Update.
3994 2002-09-17 Tom Tromey <tromey@redhat.com>
3996 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3999 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4001 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4002 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4004 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4007 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4009 * osfsolib.c: Remove file, replaced by solib-osf.c.
4010 * Makefile.in: Remove compilation rules for osfsolib.c.
4012 2002-09-16 David Carlton <carlton@math.stanford.edu>
4014 * cp-valprint.c (cp_print_class_method): Correct args to
4015 check_stub_method_group.
4017 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4019 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4020 `set architecture'. Unify naming convention of functions.
4021 (h8300_skip_prologue): Improve prologue analysis.
4022 (h8300_push_arguments): Rewritten to more closely match GCC's
4023 bizarre argument-passing behavior, along with the comment describing
4025 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4026 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4027 sim, remote-e7000.c, remote-hms.c and remote.c
4029 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4031 * i386-tdep.c (gdb_print_insn_i386): Removed.
4032 (i386_print_insn): New function.
4033 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4034 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4037 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4039 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4042 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4044 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4045 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4046 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4048 2002-09-13 Christopher Faylor <cgf@redhat.com>
4050 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4052 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4054 * gdbtypes.c (check_stub_method): Make static.
4055 (check_stub_method_group): New function.
4056 * gdbtypes.h: Update prototypes.
4057 * cp-support.c: New file.
4058 * cp-support.h: New file.
4060 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4061 (update_method_name_from_physname): New function.
4062 (read_member_functions): Correct method names for operators
4063 and v3 constructors/destructors. Separate v2 constructors and
4065 * Makefile.in (stabsread.o): Update dependencies.
4066 (SFILES): Add cp-support.c.
4067 (COMMON_OBS): Add cp-support.o.
4068 (cp_support_h, cp-support.o): Add.
4070 * cp-valprint.c (cp_print_class_method): Call
4071 check_stub_method_group instead of check_stub_method. Remove
4073 * p-valprint.c (pascal_object_print_class_method): Likewise.
4074 * valops.c (search_struct_method): Likewise.
4075 (find_method_list, value_struct_elt_for_reference): Likewise.
4077 2002-09-13 Andrew Cagney <cagney@redhat.com>
4079 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4080 * gdbarch.h, gdbarch.c: Regenerate.
4082 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4084 * frame.c (find_saved_register): Delete function.
4085 * frame.h (find_saved_register): Delete declaration.
4088 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4090 * mips-tdep.c (read_next_frame_reg): Re-hack using
4091 frame_register_unwind.
4093 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4095 * mips-tdep.c (mips_get_saved_register): Re-hack using
4096 frame_register_unwind.
4098 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4100 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4101 vector. Will be useful for Interix.
4102 * gdbarch.h, gdbarch.c: Regenerate.
4104 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4105 name of the malloc function by NAME_OF_MALLOC.
4107 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4109 * value.h (find_function_in_inferior): Add const keyword to
4110 one of the parameters. Allows us to invoke this function with
4112 * valops.c (find_function_in_inferior): Likewise.
4114 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4116 * exec.c (xfer_memory): Fix compilation warning with old versions
4118 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4120 2002-09-12 David Carlton <carlton@math.stanford.edu>
4122 * symtab.h: Run through gdb_indent.h.
4123 Add 2002 to Copyright year list.
4125 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4127 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4129 * MAINTAINERS: Add myself to write after approval list.
4131 2002-09-11 J. Brobecker <brobecker@gnat.com>
4133 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4135 2002-09-11 J. Brobecker <brobecker@gnat.com>
4137 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4140 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4142 * procfs.c (do_detach): Clear current signal, not just fault.
4143 Corrects problem with breakpoint trap signal leaking to detached
4146 2002-09-10 Michael Snyder <msnyder@redhat.com>
4148 * buildsym.c (finish_block): Protect against null pointer.
4150 2002-09-10 Andrew Cagney <cagney@redhat.com>
4152 * infcmd.c (default_print_registers_info): Send all output to
4153 ``file'' instead of ``gdb_stdout''.
4155 2002-09-10 Michael Snyder <msnyder@redhat.com>
4157 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4158 LONGEST, and use signed register read (addresses are sign-
4161 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4163 * event-loop.c (gdb_do_one_event): Make public.
4164 * event-loop.h (gdb_do_one_event): Declare.
4166 2002-09-10 Jeff Law <law@redhat.com>
4168 * infttrace.c (child_resume): Simplify and rework to avoid
4171 2002-09-09 Fred Fish <fnf@intrinsity.com>
4173 * printcmd.c (print_scalar_formatted): "len" is the number of
4174 target bytes, NOT the number of target bits.
4176 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4178 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4179 * top.c (init_main): Set rl_terminal_name.
4181 2002-09-08 Aidan Skinner <aidan@velvet.net>
4183 * ada-lang.c (ada_array_bound, ada_type_match,
4184 _initialize_ada_language): Fix K&R definitions.
4185 * ada-tasks.c (get_current_task): Fix K&R definitions.
4186 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4188 2002-09-07 Christopher Faylor <cgf@redhat.com>
4190 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4193 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4195 * i386-tdep.c (i386_register_virtual_type,
4196 i386_register_convertible, i386_register_convert_to_virtual,
4197 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4198 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4199 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4200 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4201 Don't set push_arguments twice.
4203 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4204 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4205 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4206 sigtramp_end to NULL.
4207 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4209 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4211 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4214 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4215 * gdbarch.h, gdbarch.c: Re-generate.
4216 * blockframe.c (find_pc_sect_partial_function): Convert to use
4217 SIGTRAMP_START_P predicate.
4219 2002-09-05 Michael Snyder <msnyder@redhat.com>
4221 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4222 generic_dummy_frame method and old method. Also distinguish
4223 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4224 (arm_extract_return_value): Use new regcache method.
4226 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4227 adjustment that doesn't conform to the ABI.
4228 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4229 saved regcache, not from current regcache.
4231 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4233 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4236 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4238 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4239 if arm_apcs_32 is false.
4241 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4243 GDB 5.3 branch created.
4245 2002-09-03 Theodore A. Roth <troth@verinet.com>
4247 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4248 generic_unwind_get_saved_register.
4250 2002-09-03 David Carlton <carlton@math.stanford.edu>
4252 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4253 argument (PR gdb/653). Update call to smash_to_method_type.
4254 (read_structure_scope): Update call to dwarf2_add_member_fn.
4256 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4258 * x86-64-linux-tdep.c: Include gdb_string.h
4259 * x86-64-linux-nat.c: Ditto.
4261 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4263 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4264 when YYDEBUG is set to 1.
4265 * c-exp.y: Likewise.
4266 * f-exp.y: Likewise.
4267 * jv-exp.y: Likewise.
4268 * m2-exp.y: Likewise.
4269 * p-exp.y: Likewise.
4271 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4273 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4275 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4276 solib_svr4_fetch_link_map_offsets to
4277 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4278 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4279 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4280 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4281 solib-svr4.o, and solib-legacy.o.
4282 * config/i386/tm-nbsd.h: Include solib.h.
4284 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4286 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4287 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4288 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4289 comment noting that this needs its own target configuration.
4290 * config/i386/nbsd.mt: New file.
4291 * config/i386/nbsdaout.mt: Remove.
4292 * config/i386/nbsdelf.mt: Ditto.
4293 * config/i386/tm-nbsdaout.h: Ditto.
4295 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4297 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4298 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4299 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4301 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4302 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4303 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4305 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4307 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4308 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4309 * i386-tdep.h (i386bsd_init_abi): New prototype.
4310 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4311 function declaration.
4312 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4313 for NetBSD-a.out or NetBSD-ELF.
4314 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4315 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4316 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4317 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4319 (i386nbsd_pc_in_sigtramp): New function.
4320 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4321 i386nbsd_pc_in_sigtramp.
4322 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4323 and i386nbsdelf_init_abi OS ABI handlers.
4324 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4325 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4327 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4329 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4330 registers if the target really has them.
4332 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4334 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4337 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4339 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4341 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4342 (alphanbsd_skip_sigtramp_frame): New functions.
4343 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4344 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4345 to alphanbsd_sigcontext_addr.
4347 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4349 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4351 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4352 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4353 nbsd_pc_in_sigtramp.
4354 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4355 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4356 * nbsd-tdep.c: Include gdb_string.h.
4357 (nbsd_pc_in_sigtramp): New function.
4358 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4359 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4360 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4361 ppcnbsd_pc_in_sigtramp.
4362 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4363 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4364 shnbsd_pc_in_sigtramp.
4365 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4366 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4367 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4369 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4371 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4372 watchpoints to NULL.
4373 (insert_breakpoints): set val field of watchpoints if NULL.
4376 2002-08-29 Jim Blandy <jimb@redhat.com>
4378 * symtab.c (lookup_symbol_aux): In the cases where we find a
4379 minimal symbol of an appropriate name and use its address to
4380 select a symtab to read and search, use `name' (as passed to us)
4381 as the demangled name when searching the symtab's global and
4382 static blocks, not the minsym's name.
4384 2002-08-29 Keith Seitz <keiths@redhat.com>
4386 * stack.c (print_frame_info_base): Always set current_source_symtab
4387 and current_source_line.
4389 2002-08-29 Donn Terry <donnte@microsoft.com>
4391 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4393 2002-08-28 Keith Seitz <keiths@redhat.com>
4395 * stack.c (select_frame): Add FIXME concerning selected-frame
4397 (select_frame_command): Send selected-frame-level-changed
4398 event notification, but only if the level actually changed.
4399 (up_silently_base): Add selected-frame-level-changed event
4401 (down_silently_base): Likewise.
4403 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4405 * Makefile.in: Update dependencies for all gdb/*.c files.
4407 2002-08-27 Tom Tromey <tromey@redhat.com>
4409 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4410 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4411 Update dependencies.
4412 * i387-tdep.c: Include gdb_string.h.
4413 * osabi.c: Likewise.
4414 * i386-linux-nat.c: Likewise.
4415 * lin-lwp.c: Likewise.
4416 * ax-gdb.c: Likewise.
4417 * signals/signals.c: Likewise.
4418 * jv-valprint.c: Likewise.
4419 * p-lang.c: Likewise.
4420 * c-valprint.c: Likewise.
4421 * cp-abi.c: Likewise.
4423 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4425 * cli/cli-script.h (copy_command_lines): Export.
4426 * breakpoint.c: Include cli/cli-script.h.
4427 * Makefile.in (breakpoint.o): Update dependencies.
4429 2002-08-26 Michael Snyder <msnyder@redhat.com>
4431 * breakpoint.c (insert_breakpoints): Protect all references
4432 to 'process_warning'. Shorten long lines.
4434 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4436 * cli/cli-script.c (copy_command_lines): New function.
4437 * defs.h (copy_command_lines): Export.
4438 * testsuite/gdb.base/commands.exp: New tests for commands
4439 attached to a temporary breakpoint, and for commands that
4440 delete the breakpoint they are attached to.
4442 2002-08-26 Michael Snyder <msnyder@redhat.com>
4444 * breakpoint.c (bpstat_stop_status): Instead of copying the
4445 pointer to the breakpoint commands struct, make a new copy
4446 of the struct and point to that.
4447 (bpstat_clear): Free the commands struct.
4448 (bpstat_clear_actions): Free the commands struct.
4449 (bpstat_do_actions): Free the command actions. Also execute
4450 the local cleanups, instead of deleting them.
4451 (delete_breakpoint): Leave the commands field of the bpstat
4452 chain alone -- it will be freed later.
4454 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4456 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4457 deleted in 2002-08-20 commit. This function is still used by
4460 2002-08-26 Keith Seitz <keiths@redhat.com>
4462 * gdb-events.sh: Add selected-frame-level-changed event.
4463 * gdb-events.c: Regenerated.
4464 * gdb-events.h: Regenerated.
4466 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4469 * inflow.c (terminal_save_ours): New function to save terminal
4471 * inferior.h (terminal_save_ours): Declare.
4472 * target.c (debug_to_terminal_save_ours): New function.
4473 (cleanup_target): Defaults to_terminal_save_ours.
4474 (update_current_target): Inherit to_terminal_save_ours.
4475 (setup_target_debug): Set to_terminal_save_ours.
4476 * target.h (target_terminal_save_ours): New to save terminal settings.
4477 (target_ops): New member to_terminal_save_ours.
4478 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4479 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4480 * inftarg.c (init_child_ops): Likewise.
4481 * m3-nat.c (init_m3_ops): Likewise.
4482 * procfs.c (init_procfs_ops): Likewise.
4483 * wince.c (init_child_ops): Likewise.
4484 * win32-nat.c (init_child_ops): Likewise.
4485 * sol-thread.c (init_sol_thread_ops): Likewise.
4487 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4489 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4490 use regcache_* functions.
4491 (i386_gdbarch_init): Set store_return_value instead of
4492 deprecated_store_return_value.
4494 * regcache.c (regcache_raw_write_signed,
4495 regcache_raw_write_unsigned): New functions.
4496 * regcache.h (regcache_raw_write_signed,
4497 regcache_raw_write_unsigned): New prototypes.
4499 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4501 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4502 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4503 source file dependencies. Cleanup corresponding generator rules.
4505 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4507 * regcache.h (register_offset_hack): Declare.
4508 (regcache_cooked_read_using_offset_hack): Declare.
4509 (regcache_cooked_write_using_offset_hack): Declare.
4511 * regcache.c (register_offset_hack): New function.
4512 (regcache_cooked_read_using_offset_hack): New function.
4513 (regcache_cooked_write_using_offset_hack): New function.
4514 (regcache_dump): Check that the registers, according to their
4515 offset, are packed hard against each other.
4516 (cooked_xfer_using_offset_hack): New function.
4518 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4520 * regcache.c (struct regcache_descr): Add field register_type.
4521 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4523 (init_regcache_descr): Initialize register_type. Pass the descr
4524 to init_legacy_regcache_descr. Use register_type instead of
4525 REGISTER_VIRTUAL_TYPE.
4526 (register_type): New function.
4527 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4528 * regcache.h (register_type): Declare.
4530 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4532 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4533 instead of deprecated_store_return_value. Fix fallout from
4534 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4536 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4538 * regcache.c (max_register_size): New function.
4539 (init_legacy_regcache_descr): Ensure that max_register_size is
4540 large enough for REGISTER_VIRTUAL_SIZE.
4541 * regcache.h (max_register_size): Declare.
4543 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4545 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4547 (e500_extract_return_value): Change type of valbuf pointer to
4550 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4552 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4555 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4556 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4557 long long) to prevent compiler warning on 64-bit systems.
4559 2002-08-23 Andrew Cagney <cagney@redhat.com>
4561 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4562 (DEPRECATED_STORE_RETURN_VALUE): New method.
4563 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4564 * gdbarch.h, gdbarch.c: Re-generate.
4566 * values.c (set_return_value): Pass current_regcache to
4568 * arch-utils.h (legacy_store_return_value): Declare.
4569 * arch-utils.c (legacy_store_return_value): New function.
4570 (legacy_extract_return_value): Update parameters.
4572 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4574 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4575 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4576 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4577 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4578 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4579 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4580 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4581 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4582 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4583 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4585 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4586 * i386-tdep.c (i386_extract_return_value): Update.
4587 * arch-utils.c (legacy_extract_return_value): Update.
4588 * frv-tdep.c (frv_gdbarch_init): Update.
4589 * cris-tdep.c (cris_gdbarch_init): Update.
4590 * d10v-tdep.c (d10v_gdbarch_init): Update.
4591 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4592 * m68k-tdep.c (m68k_gdbarch_init): Update.
4593 * mcore-tdep.c (mcore_gdbarch_init): Update.
4594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4595 * s390-tdep.c (s390_gdbarch_init): Update.
4596 * sparc-tdep.c (sparc_gdbarch_init): Update.
4597 * sh-tdep.c (sh_gdbarch_init): Update.
4598 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4599 * v850-tdep.c (v850_gdbarch_init): Update.
4600 * avr-tdep.c (avr_gdbarch_init): Update.
4601 * ia64-tdep.c (ia64_gdbarch_init): Update.
4602 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4603 * vax-tdep.c (vax_gdbarch_init): Update.
4604 * alpha-tdep.c (alpha_gdbarch_init): Update.
4605 * arm-tdep.c (arm_gdbarch_init): Update.
4606 * mips-tdep.c (mips_gdbarch_init): Update.
4607 * i386-tdep.c (i386_gdbarch_init): Update.
4609 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4611 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4612 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4614 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4616 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4619 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4621 * infrun.c (handle_inferior_event): Move a comment outside of a
4622 function call, in order to avoid indent reformatting this part
4623 of the code in an unreadable way.
4625 2002-08-23 Grace Sainsbury <graces@redhat.com>
4627 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4628 when breakpoints fail. Move general breakpoint error messages to
4630 * breakpoint.c (insert_breakpoints): Change warnings when
4631 breakpoints are nto inserted to specify the type. Remove call to
4632 memory_error when hardware breakpoints can't be inserted. Remove
4633 multiple calls to warning so all messages are sent to the user at
4635 (delete_breakpoints): Make insert error messsages more explicit.
4637 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4639 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4640 gdbserver/ChangeLog.
4642 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4644 * i386-tdep.c: Include "objfiles.h".
4645 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4646 skip_trampoline_code.
4647 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4648 (CPLUS_MARKER): Define to '.'.
4650 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4652 (linux_corefile_thread_callback): Increase args->num_notes.
4653 (linux_make_note_section): Initialize thread_args.num_notes, and
4654 use it to determine whether notes for any threads were created.
4656 2002-08-23 Donn Terry <donnte@microsoft.com>
4658 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4659 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4661 (write_with_trace): Conditionalize out the switch branch handling
4662 PCSHOLD if the corresponding macro is not defined. Likewise for
4663 PRSABORT and PRSTOP.
4664 This change will be needed by the Interix port.
4666 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4668 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4669 write_register wherever possible instead of manipulating the
4670 register bytes directly.
4671 Assign VALUE_CONTENTS to a variable and use that.
4672 The GPR numbers are now dependent on the architecture.
4674 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4676 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4678 (skip_prologue): Add support for BookE/e500 instructions.
4679 (e500_extract_return_value): New function.
4680 (frame_get_saved_regs): Add support for saving ev registers and
4682 (e500_store_return_value): New function.
4683 (rs6000_gdbarch_init): Move up default intializations of
4684 deprecated_extract_return_value and store_return_value. Overwrite
4685 init of store_return_value with e500 specific version.
4686 Set extract_return_value for e500.
4688 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4690 * blockframe.c (generic_call_dummy_register_unwind): Use
4691 regcache_cooked_read to catch cases in which the variable is
4692 stored in a pseudo register.
4694 2002-08-22 Andrew Cagney <cagney@redhat.com>
4696 * NEWS: Mention that the i960 has been made obsolete.
4697 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4699 (remote-nrom.o): Obsolete target.
4700 (remote-nindy.o, i960-tdep.o): Ditto.
4701 * remote-nrom.c: Make file obsolete.
4702 * remote-nindy.c, remote-vx960.c: Ditto.
4703 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4704 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4705 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4706 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4707 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4708 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4709 i960-*-vxworks* obsolete.
4710 * MAINTAINERS: Note that the i960 is obsolete.
4712 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4714 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4715 detach to allow reinitialization.
4717 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4719 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4722 2002-08-22 Jim Blandy <jimb@redhat.com>
4724 * coffread.c (coff_symfile_read): Don't try to read the line
4725 number table from disk if the image file doesn't have a symbol
4726 table; we'll never actually look at the info anyway, and Windows
4727 ships DLL's with bogus file offsets for the line number data.
4729 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4731 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4734 2002-08-21 Michael Snyder <msnyder@redhat.com>
4736 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4737 (MSYMBOL_SIZE): Replace macro with function.
4738 (DEFAULT_MIPS_TYPE): Delete unused macro.
4739 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4740 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4742 2002-08-21 Jim Blandy <jimb@redhat.com>
4744 * valops.c (value_cast): Simplify and correct logic for doing a
4745 static cast from a pointer to a base class to a pointer to a
4748 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4750 * infcmd.c (default_print_registers_info): Replace
4752 (registers_info): Use gdbarch_print_registers_info instead of
4754 * inferior.h (default_print_registers_info): Replace
4756 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4757 (DO_REGISTERS_INFO): Change to a predicate function.
4758 * gdbarch.h, gdbarch.c: Regenerate.
4760 2002-08-21 Keith Seitz <keiths@redhat.com>
4762 * gdb-events.sh: Add target-changed event.
4763 * gdb-events.c: Regenerated.
4764 * gdb-events.c: Regenerated.
4765 * valops.c (value_assign): Add target-changed event notification
4766 to inlval_register, lval_memory, and lval_reg_frame_relative.
4768 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4770 * NEWS: Add an entry regarding the improvement of the next/step
4771 operation on Alpha Tru64 multi-processor machines.
4773 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4775 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4777 * Makefile.in: Update all _h macro definitions.
4778 * Makefile.in (install-gdbtk): Move to install section.
4779 (rdi-share/libangsd.a): Move to end of file.
4781 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4783 * frame.c (frame_register_unwind): When a register, set addrp to
4784 the register's byte.
4786 2002-08-20 Michael Snyder <msnyder@redhat.com>
4788 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4789 used locally, so move them from the target machine header to here.
4790 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4791 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4793 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4795 2002-08-20 Andrew Cagney <cagney@redhat.com>
4797 * NEWS: Mention that the Apollo line was made obsolete.
4798 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4799 m68*-hp-hpux* obsolete.
4800 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4801 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4802 * buildsym.c (make_blockvector): Make static.
4803 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4804 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4805 (ALLDEPFILES): Remove dstread.c.
4806 (dstread.o): Obsolete make rule.
4807 * dstread.c: Makefile obsolete.
4809 * config/m68k/hp300hpux.mt: Ditto.
4810 * config/m68k/hp300hpux.mh: Ditto.
4811 * config/m68k/hp300bsd.mt: Ditto.
4812 * config/m68k/hp300bsd.mh: Ditto.
4813 * config/m68k/apollo68b.mt: Ditto.
4814 * config/m68k/apollo68v.mh: Ditto.
4815 * config/m68k/apollo68b.mh: Ditto.
4817 2002-08-20 Michael Snyder <msnyder@redhat.com>
4819 * mips-tdep.c (mips_in_return_stub): Make static.
4820 (mips_gdbarch_init): Set in_solib_return_trampoline.
4821 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4823 2002-08-20 Michael Snyder <msnyder@redhat.com>
4825 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4826 * gdbarch.c, gdbarch.h: Regenerate.
4827 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4829 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4831 2002-08-20 Michael Snyder <msnyder@redhat.com>
4833 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4834 (mips_gdbarch_init): Set skip_trampoline_code,
4835 in_solib_call_trampoline.
4836 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4837 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4839 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4841 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4843 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4844 vector type for ev registers.
4845 (e500_pseudo_register_read): New function.
4846 (e500_pseudo_register_write): New function.
4847 (e500_dwarf2_reg_to_regnum): New function.
4848 (PPC_UISA_NOFP_SPRS): New macro.
4849 (PPC_EV_REGS): New macro.
4850 (PPC_GPRS_PSEUDO_REGS): New macro.
4851 (registers_e500): New register set for e500.
4852 (variants): Add e500 variant.
4853 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4854 before setting architectural dependent variations. Initialize ev
4855 registers numbers. Add case for e500 architecture. Set the
4856 number of pseudo registers.
4858 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4860 * rs6000-tdep.c: Clean up comments.
4862 2002-08-20 Andrew Cagney <cagney@redhat.com>
4864 * h8300-tdep.c: Re-indent file.
4866 2002-08-20 Jim Blandy <jimb@redhat.com>
4868 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4871 2002-08-20 Keith Seitz <keiths@redhat.com>
4873 * breakpoints.c (watch_command_1): Use internal breakpoint
4874 when setting a watchpoint_scope breakpoint.
4876 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4878 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4879 (build_builtin_type_vec64i): Ditto.
4880 (build_builtin_type_vec128): Ditto.
4881 (build_builtin_type_vec128i): Ditto.
4883 2002-08-19 Michael Snyder <msnyder@redhat.com>
4885 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4886 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4887 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4888 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4889 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4890 CALL_DUMMY_ADDRESS): Delete.
4891 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4892 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4893 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4894 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4895 push_return_address.
4896 (mips_register_raw_size, mips_eabi_use_struct_convention,
4897 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4898 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4899 mips_init_extra_frame_info, mips_eabi_push_arguments,
4900 mips_n32n64_push_arguments, mips_push_return_address,
4901 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4902 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4904 2002-08-19 Michael Snyder <msnyder@redhat.com>
4906 * mips-tdep.c (mips_frame_num_args): New function.
4907 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4908 frame_saved_pc, frame_args_address, frame_locals_address,
4909 frame_num_args, and frame_args_skip.
4910 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4911 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4912 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4913 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4915 2002-08-20 Michael Snyder <msnyder@redhat.com>
4917 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4918 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4919 * mips-tdep.c (mips_store_struct_return): New function.
4920 (mips_extract_struct_value_address): New function.
4921 (mips_gdbarch_init): Set store_struct_return and
4922 extract_struct_value_address.
4924 2002-08-20 David Carlton <carlton@math.stanford.edu>
4926 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4927 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4928 (read_file_scope): Check that line_header is nonzero before
4929 decoding macro information.
4931 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4933 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4934 flag the general-purpose registers as floating-point on targets
4935 that don't support the floating-point registers.
4937 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4939 * rs6000-tdep.c (altivec_register_p): Delete.
4940 (rs6000_do_altivec_registers): Delete.
4941 (rs6000_altivec_registers_info): Delete.
4942 (rs6000_do_registers_info): Delete.
4943 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4944 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4946 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4948 * infcmd.c (do_registers_info): Print vector registers in hex
4950 (print_vector_info): Check that printing registers
4952 (print_float_info): Ditto.
4954 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4956 * mips-tdep.c (mips_gdbarch_init): Update.
4957 (mips_o32_extract_return_value): Rewrite.
4958 (mips_o32_store_return_value): Rewrite.
4959 (mips_o32_xfer_return_value): New function.
4960 (mips_xfer_register): Tweak debug print message. Allow for
4961 buf_offset when dumping the value transfered.
4963 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4965 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4966 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4967 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4968 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4969 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4971 2002-08-14 Michael Snyder <msnyder@redhat.com>
4973 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4975 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4977 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4979 (P): New macro to define a register as a pseudo register.
4980 (R, R4, R8, R16, FR32, R64, R0): Updated.
4981 (struct variant): Add new fields for number of pseudo registers
4982 and number of total registers.
4983 (tot_num_registers): New macro replacing....
4984 (num_registers): ...deleted macro.
4985 (num_registers): New function.
4986 (num_pseudo_registers): New function.
4987 (variants): Update all variants to intialize new fields correctly.
4988 Postpone initialization of number of pseudo regs and real regs.
4989 (init_variants): New function.
4990 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4993 2002-08-19 David Carlton <carlton@math.stanford.edu>
4995 * valops.c (search_struct_field): Change error message to treat
4996 return value of 0 from value_static_field as meaning that field is
4998 (value_struct_elt_for_reference): Ditto.
4999 * values.c (value_static_field): Treat an unresolved location the
5000 same as a nonexistent symbol. Fix PR gdb/635.
5001 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5002 enclosed. Fix PR gdb/574.
5003 * MAINTAINERS: Add self to Write After Approval list.
5005 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5007 * mips-tdep.c (mips_xfer_register): New function.
5008 (mips_n32n64_extract_return_value): Rewrite.
5009 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5010 instead of deprecated_extract_return_value.
5012 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5014 * rs6000-tdep.c (TDEP): Delete macro.
5015 (branch_dest): Replace use of TDEP macro with its body.
5016 (rs6000_pop_frame): Ditto.
5017 (rs6000_push_arguments): Ditto.
5018 (rs6000_skip_trampoline_code): Ditto.
5019 (rs6000_frame_saved_pc): Ditto.
5020 (rs6000_frame_chain): Ditto.
5021 (rs6000_register_name): Ditto.
5022 (rs6000_register_byte): Ditto.
5023 (rs6000_register_raw_size): Ditto.
5024 (rs6000_register_virtual_type): Ditto.
5025 (rs6000_register_convertible): Ditto.
5026 (rs6000_convert_from_func_ptr_addr): Ditto.
5028 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5030 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5032 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5033 MIPS_LINUX_JB_ELEMENT_SIZE.
5034 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5035 for MAX_REGISTER_RAW_SIZE arrays.
5036 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5037 MIPS_LINUX_JB_ELEMENT_SIZE.
5039 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5041 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5043 2002-08-19 Aidan Skinner <aidan@velvet.net>
5045 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5046 ada-valprint.c ada-tasks.c.
5047 (YYFILES): Add ada-exp.y.
5048 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5049 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5050 (ada-exp.tab.o): New target.
5052 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5054 * regcache.c (regcache_xfer_part): New function.
5055 (regcache_raw_read_part): New function.
5056 (regcache_raw_write_part): New function.
5057 (regcache_cooked_read_part): New function.
5058 (regcache_cooked_write_part): New function.
5059 * regcache.h (regcache_raw_read_part): Declare.
5060 (regcache_raw_write_part): Declare.
5061 (regcache_cooked_read_part): Declare.
5062 (regcache_cooked_write_part): Declare.
5064 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5066 * remote.c (remote_open_1): Add async_p.
5067 (remote_async_open_1): Delete.
5068 (open_remote_target): Delete.
5069 (remote_open, extended_remote_open): Update calls to remote_open_1.
5070 (remote_async_open, extended_remote_async_open): Call
5071 remote_open_1 instead of remote_async_open_1.
5073 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5075 * blockframe.c: Fix a few coding standard violations.
5077 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5079 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5081 * config/i386/tm-i386sco5.h: ... here. File removed.
5082 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5084 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5085 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5086 (TM_FILE): Set to tm-i386.h.
5087 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5088 * config/i386/tm-i386v.h: Remove file.
5089 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5090 instead of "i386/tm-i386v.h".
5091 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5092 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5094 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5095 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5098 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5100 * config/i386/nm-i386v.h: Add protection against
5102 (i386_register_u_addr): Remove prototype.
5103 (register_u_addr): New prototype.
5104 (REGISTER_U_ADDR): Redefine accordingly.
5105 * i386v-nat.c: Improve several comments.
5106 (i386_register_u_addr): Change signature and rename to
5107 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5110 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5112 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5113 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5114 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5115 deprecated_extract_return_value.
5116 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5117 rename mips_o32o64_push_arguments.
5118 (mips_gdbarch_init): Update.
5119 (mips_extract_return_value): Delete.
5120 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5121 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5122 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5123 (mips_n32n64_extract_return_value): Clone
5124 mips_extract_return_value.
5125 (mips_store_return_value): Delete.
5126 (mips_o32_store_return_value): Clone mips_store_return_value.
5127 (mips_o64_store_return_value): Clone mips_store_return_value.
5128 (mips_eabi_store_return_value): Clone mips_store_return_value.
5129 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5131 2002-08-18 Aidan Skinner <aidan@velvet.net>
5133 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5134 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5136 2002-08-18 Aidan Skinner <aidan@velvet.net>
5138 * ada-lang.c: Run through gdb_indent.sh.
5139 * ada-lang.h: Run through gdb_indent.sh.
5140 * ada-tasks.c: Run through gdb_indent.sh.
5141 * ada-typeprint.c: Run through gdb_indent.sh.
5142 * ada-valprint.c: Run through gdb_indent.sh.
5144 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5146 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5149 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5151 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5153 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5154 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5156 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5157 write_register_gen instead of write_register_bytes.
5159 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5160 i[3456]-*-osf1mk* configurations have been made obsolete.
5161 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5162 i[3456]86-*-osf1mk* hosts obsolete.
5163 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5165 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5166 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5167 config/i386/i386m3.mt, config/i386/nm-m3.h,
5168 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5169 config/i386/i386mk.mh, config/i386/i386mk.mt,
5170 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5172 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5173 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5174 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5176 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5178 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5179 (hppa_value_returned_from_stack): Declare.
5180 (hppa_extract_return_value): Declare.
5181 * config/pa/hppa.mt: New file.
5182 * configure.tgt: Recognize hppa*-*-*.
5183 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5185 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5187 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5190 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5192 * top.c (gdb_rl_operate_and_get_next): Make sure
5193 operate-and-get-next functions correctly even when the history
5194 list is completely filled.
5196 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5198 * MAINTAINERS (Target Instruction Set Architectures): Rename
5199 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5200 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5201 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5202 already listed under Host/Native.
5204 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5205 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5208 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5210 * config/ia64/ia64.mt: New file.
5211 * config/alpha/alpha.mt: New file.
5212 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5213 ia64-linux-gnu. Mention that ia64-elf is broken.
5214 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5216 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5218 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5219 generic_func_frame_valid instead of func_frame_valid.
5221 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5223 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5224 procfs appears to be broken when debugging on multi-processor
5225 machines. So enable software single stepping in order to avoid
5226 using the procfs interface to do next/step operations, using
5227 internal breakpoints instead.
5229 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5230 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5231 make this pc address equal to the value it would have if the
5232 system stepping capability was used. Also set a new flag used
5233 to ensure that we don't readjust the PC one more time later.
5235 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5236 address by DECR_PC_AFTER_BREAK when software single step is
5237 in use for this architecture, as this has already been taken
5238 care of in handle_inferior_event().
5240 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5242 * infrun.c (handle_inferior_event): Minor reformatting, to make
5243 a rather long condition expression easier to read.
5245 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5247 * Makefile.in (gdbtk.o): Move to end of file.
5248 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5249 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5250 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5251 (gdbtk-wrapper.o, gdbres.o): Ditto.
5253 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5255 * Makefile.in (copying.o): Separate out compile rule.
5256 (hpux-thread.o, procfs.o, signals.o): Ditto.
5257 (v850ice.o, z8k-tdep.o): Ditto.
5258 (tui-file.o): Move to TUI section.
5259 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5260 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5262 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5264 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5265 skip_trampoline_code, for better namespace-proofing.
5267 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5269 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5271 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5273 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5275 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5276 signal, check whether we hit a breakpoint before checking for a
5277 single step breakpoint. Otherwise, GDB fails to notice that a
5278 breakpoint has been hit when stepping onto a breakpoint.
5280 2002-08-16 Keith Seitz <keiths@redhat.com>
5282 * gdb-events.sh (clear_gdb_event_hooks): New function.
5283 * gdb-events.c: Regenerate.
5284 * gdb-events.h: Regenerate.
5286 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5288 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5289 not_a_sw_breakpoint.
5290 * breakpoint.h (bpstat_stop_status): Add parameter names.
5292 2002-08-16 Grace Sainsbury <graces@redhat.com>
5294 * remote.c (remote_insert_hw_breakpoint)
5295 (remote_remove_hw_breakpoint): Fix calculation of length field
5298 2002-08-15 Michael Snyder <msnyder@redhat.com>
5300 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5301 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5302 (supply_fpregset): Ditto.
5304 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5305 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5306 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5307 (TARGET_READ_SP): Delete.
5308 (DO_REGISTERS_INFO): Delete.
5309 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5311 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5312 from macros to functions.
5314 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5315 (mips_register_convertible, mips_register_convert_to_virtual,
5316 mips_register_convert_to_raw): Make static.
5317 (mips_read_sp): New function.
5318 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5319 (mips_do_registers_info): Make static.
5320 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5321 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5322 (mips_register_convert_from_type, mips_register_convert_to_type):
5324 (mips_gdbarch_init): Set up function_start_offset,
5325 register_virtual_size, pc_in_sigtramp.
5327 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5329 * infcmd.c (vector_info): New function.
5330 (_initialize_infcmd): Add command "info vector".
5331 (print_vector_info): New function.
5333 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5334 * gdbarch.h, gdbarch.c: Regenerate.
5336 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5338 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5339 ``print_all''. Only print vector registers when ``print_all''.
5341 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5343 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5344 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5346 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5347 Add `args' parameter.
5348 * gdbarch.h, gdbarch.c: Regenerate.
5350 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5352 * infcmd.c (float_info): Call print_float_info.
5353 (print_float_info): New function. By default, print the
5354 floating-point registers.
5356 * arch-utils.h (default_print_float_info): Delete declaration.
5357 * arch-utils.c (default_print_float_info): Delete function.
5359 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5361 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5364 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5367 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5368 * configure.host: Make i[3456]86-*-aix host obsolete.
5369 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5370 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5371 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5372 config/i386/xm-i386aix.h: Make files obsolete.
5373 * i386aix-nat.c: Make file obsolete.
5374 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5375 (i386aix-nat.o): Make target obsolete.
5377 * config/i386/nm-gnu.h: Removed.
5378 * config/i386/nm-i386gnu.h: New file.
5379 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5380 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5382 * config/i386/tm-i386gnu.h: ... here. Removed.
5383 * config/i386/xm-i386gnu.h: Removed.
5384 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5385 (NAT_FILE): Set to nm-i386gnu.h.
5386 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5387 * i386-tdep.c: New file.
5388 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5389 (i386gnu-tdep.o): Specify dependencies.
5391 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5393 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5394 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5395 Adjust a few comments to reflect reality a bit closer.
5396 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5397 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5398 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5399 target_insert_watchpoint, target_remove_watchpoint):
5401 * config/i386/nm-i386sco5.h: ... here.
5402 (kernel_u_size): Add prototype. Improve a few comments and add
5403 protection against multiple inclusion.
5405 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5408 * uw-thread.c (SP_ARG0): Define if not already defined.
5409 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5411 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5413 * config/i386/tm-i386.h: Don't include "regcache.h".
5415 * i387-tdep.h (i387_print_float_info): New prototype.
5416 * i387-tdep.c (print_i387_value, print_i387_ext,
5417 print_i387_status_word, print_i387_control_word): Add `struct
5418 ui_file *' argument and use it for output.
5419 (i387_print_float_info): Renamed from i387_float_info. Add
5420 `struct gdbarch *' and `struct ui_file *' arguments and use the
5422 * i386-tdep.c: Include "i387-tdep.h".
5423 (i386_gdbarch_init): Set print_float_info.
5424 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5425 (FLOAT_INFO): Remove define.
5427 2002-08-13 Michael Snyder <msnyder@redhat.com>
5429 * mips-tdep.c (mips_push_arguments): Rename to
5430 mips_eabi_push_arguments, and tune for EABI.
5431 (MIPS_REGS_HAVE_HOME_P): Delete.
5432 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5433 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5434 Delete references to mips_regs_have_home_p.
5436 2002-08-14 Keith Seitz <keiths@redhat.com>
5438 * Makefile.in (install-gdbtk): Create insight plugin directory.
5439 Install plugins.tcl file.
5441 2002-08-14 Keith Seitz <keiths@redhat.com>
5443 * configure.in: Move SUBDIRS to near top of the file so that
5444 --enable options may add things to it.
5445 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5446 * configure: Regenerate.
5448 2002-08-13 Michael Snyder <msnyder@redhat.com>
5450 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5451 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5452 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5454 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5456 * vax-tdep.c (vax_get_saved_register): Delete function.
5457 (vax_gdbarch_init): Update.
5458 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5459 (ns32k_gdbarch_init): Update.
5460 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5461 (alpha_gdbarch_init): Update.
5463 2002-08-13 Andrew Cagney <cagney@redhat.com>
5465 * regcache.c (init_regcache_descr): Overallocate the
5466 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5467 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5469 (set_register_cached): Add range checking assertions. Use
5472 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5474 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5475 numbers for MMX registers.
5477 2002-08-13 Andrew Cagney <cagney@redhat.com>
5479 * i386-tdep.c (i386_gdbarch_init): Use
5480 generic_unwind_get_saved_register.
5482 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5484 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5485 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5487 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5488 Delete. Add comment regarding this now-deleted target method.
5490 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5492 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5493 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5494 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5495 real PC and the page number (if it's within the memory bank window).
5496 (m68hc11_pseudo_register_write): Likewise when saving.
5497 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5498 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5499 (m68hc11_register_raw_size): And use 32-bit for it.
5500 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5501 16K memory bank is used by the prog; also use the virtual pc.
5503 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5505 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5506 (m68hc11_gdbarch_init): Install it in gdbarch.
5507 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5508 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5509 (MSYMBOL_SIZE): New for documentation.
5510 (insn_return_kind): Enum to specify how a function returns.
5511 (frame_extra_info): Cleanup and record the return mode.
5512 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5513 register in address computation.
5514 (m68hc11_get_return_insn): New to obtain the return instruction used
5516 (m68hc11_frame_init_saved_regs): Take into account the return
5517 instruction used by the function for far and interrupt functions.
5518 (m68hc11_init_extra_frame_info): Take into account page register.
5519 (m68hc11_frame_args_address): Adjust according to the return mode.
5520 (show_regs): Print page register only when it's used.
5522 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5524 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5525 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5526 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5528 (m68hc11_register_raw_size): Likewise.
5530 2002-08-13 Andrew Cagney <cagney@redhat.com>
5532 * i386-tdep.c (i386_register_name): Handle mmx registers.
5533 (mmx_regnum_p): New function.
5534 (i386_mmx_names): New array.
5535 (mmx_num_regs): New variable.
5536 (i386_pseudo_register_read): New function.
5537 (i386_pseudo_register_write): New function.
5538 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5540 * regcache.c (regcache_raw_read_unsigned): New function.
5541 (regcache_raw_read_signed): New function.
5542 * regcache.h (regcache_raw_read_unsigned): Declare.
5543 (regcache_raw_read_signed): Declare.
5545 2002-08-13 Andrew Cagney <cagney@redhat.com>
5547 * regcache.c (regcache_raw_read_as_address): Delete function.
5548 (regcache_cooked_read_signed): New function.
5549 (regcache_cooked_read_unsigned): New function.
5550 * regcache.h (regcache_cooked_read_signed): Declare.
5551 (regcache_cooked_read_unsigned): Declare.
5552 (regcache_raw_read_as_address): Delete declaration.
5554 * blockframe.c (generic_read_register_dummy): Use
5555 regcache_cooked_read_unsigned.
5556 * i386-tdep.c (i386_extract_struct_value_address): Use
5557 regcache_cooked_read_unsigned.
5559 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5562 double sizes according to ELF ABI flags.
5563 (gdbarch_tdep): Record elf_flags.
5565 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5567 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5568 (m6812_prolog): They can appear in 68HC12 function prologue.
5569 (m68hc11_frame_chain): Cleanup.
5571 2002-08-12 Andrew Cagney <cagney@redhat.com>
5573 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5575 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5576 (i386_linux_register_raw_size): Delete function.
5577 (i386_linux_init_abi): Update.
5578 * i386-tdep.c (i386_register_raw_size): Delete function.
5579 (i386_register_byte): Delete function.
5580 (i386_gdbarch_init): Update.
5581 (i386_register_size): Delete array.
5582 (i386_register_offset): Delete array.
5584 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5585 (REGISTER_RAW_SIZE): Delete macro.
5586 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5587 (REGISTER_BYTE): Delete macro.
5589 2002-08-11 Aidan Skinner <aidan@velvet.net>
5591 * ada-lang.c (ada_lookup_partial_symbol)
5592 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5593 prototype names so that grep ^func works properly.
5595 * ada-lang.c (ada_array_element_type)
5596 (ada_lookup_partial_symbol): Fix typos in parameter list.
5598 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5599 Fix prototype names so that grep ^func works properly.
5601 2002-08-10 Andrew Cagney <cagney@redhat.com>
5602 Elena Zannoni <ezannoni@redhat.com>
5603 Martin M. Hunt <hunt@redhat.com>
5605 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5606 (build_builtin_type_vec128i): Set the vector bit.
5607 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5608 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5609 (build_builtin_type_vec64): New function.
5610 (build_builtin_type_vec64i): New function.
5611 (build_gdbtypes): Initialize builtin_type_vec64 and
5612 builtin_type_vec64i.
5614 2002-08-09 Andrew Cagney <cagney@redhat.com>
5616 * regcache.c (regcache_dump): Compare the register offset
5618 * arch-utils.c (generic_register_byte): New function.
5619 * arch-utils.h (generic_register_byte): Declare.
5620 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5621 * gdbarch.h, gdbarch.c: Regenerate.
5623 2002-08-09 Andrew Cagney <cagney@redhat.com>
5625 * regcache.c: Include "gdbcmd.h"
5626 (_initialize_regcache): Add commands "maintenance print
5627 registers", "maintenance print raw-registers" and "maintenance
5628 print cooked-registers".
5629 (enum regcache_dump_what): Define.
5630 (dump_endian_bytes): New function.
5631 (regcache_dump): New function.
5632 (regcache_print): New function.
5633 (maintenance_print_registers): New function.
5634 (maintenance_print_raw_registers): New function.
5635 (maintenance_print_cooked_registers): New function.
5636 * Makefile.in (regcache.o): Update dependencies.
5638 2002-08-09 Michael Snyder <msnyder@redhat.com>
5640 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5641 (mips_push_arguments): Correct some comments. Use paddr_nz
5642 for printing addresses in debug output. Replace static
5643 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5644 (mips_n32n64_push_arguments): New function, cloned from
5645 mips_push_arguments and tuned for the n32/n64 ABI.
5646 (mips_push_register): Buffer needs dynamic allocation.
5647 (mips_print_register): Ditto.
5648 (do_gp_register_row): Ditto.
5649 (mips_store_return_value): Ditto.
5650 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5652 2002-08-09 Don Howard <dhoward@redhat.com>
5654 * memattr.c (mem_info_command): Print special case of upper bound
5655 as max CORE_ADDR + 1.
5657 2002-08-08 Michael Snyder <msnyder@redhat.com>
5659 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5660 returns structs by ref if they're too big to fit in two registers.
5662 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5664 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5666 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5667 mips_find_saved_regs().
5668 (mips_pop_frame): Likewise.
5670 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5672 * blockframe.c (frame_saved_regs_register_unwind): Revise
5673 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5676 2002-08-09 Grace Sainsbury <graces@redhat.com>
5678 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5679 T-packets; the 'a' is not taken as a register number.
5680 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5681 (remote_stopped_data_address): New functions; add to target
5683 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5684 prototypes to match other implementations of this
5685 function. replace integer argument with pointer -- the length
5686 field in the Z-packet is the length of what is pointed to or 1 if
5687 pointer is null. Add to target vector.
5688 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5692 * remote.c (remote_wait): Add support to extract optional
5693 watchpoint information from T-packet. Ignore unrecognized
5694 optional info in T-packet.
5695 (remote_async_wait): Ditto.
5697 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5699 * cli/cli-dump.c: Change fopen modes to use binary open modes
5700 as defined in include/fopen-bin.h throughout.
5702 2002-08-08 Michael Snyder <msnyder@redhat.com>
5704 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5706 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5708 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5709 assertion failure by returning early after a warning.
5711 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5713 * mips-tdep.c (mips_find_saved_regs): Make static.
5714 (mips_frame_init_saved_regs): New function.
5715 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5716 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5717 (mips_find_saved_regs): Delete declaration.
5719 2002-08-08 Grace Sainsbury <graces@redhat.com>
5721 * remote.c (remote_wait, remote_async_wait): Change
5722 thread_num from int to ULONGEST.
5723 (unpack_varlen_hex): Change result parameter from
5724 int * to ULONGEST *.
5726 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5728 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5729 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5731 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5733 2002-08-08 Andrew Cagney <cagney@redhat.com>
5735 * gcore.c (override_derive_stack_segment): Delete variable.
5736 (preempt_derive_stack_segment): Delete function.
5737 (derive_stack_segment): Delete function.
5738 (default_derive_stack_segment): Renamed to derive_stack_segment.
5739 (override_derive_heap_segment): Delete variable.
5740 (preempt_derive_heap_segment): Delete function.
5741 (derive_heap_segment): Delete function.
5742 (default_derive_heap_segment): Rename to derive_heap_segment.
5744 2002-08-06 Michael Snyder <msnyder@redhat.com>
5746 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5747 * mips-tdep.c (mips_EABI_use_struct_convention,
5748 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5749 New functions. (mips_use_struct_convention): Delete.
5750 (mips_gdbarch_init): set use_gdbarch_convention.
5752 2002-08-06 Michael Snyder <msnyder@redhat.com>
5754 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5755 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5756 mips_o32_reg_struct_has_addr): New functions.
5757 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5759 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5761 * regcache.c (pseudo_register): Delete function.
5762 (fetch_register): Delete function.
5763 (store_register): Delete function.
5764 (regcache_raw_read, legacy_read_register_gen): Use
5765 target_fetch_registers instead of fetch_register.
5766 (legacy_write_register_gen, regcache_raw_write): Use
5767 target_store_register instead of store_register.
5768 (write_register_bytes): Ditto.
5770 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5771 (STORE_PSEUDO_REGISTER): Delete.
5772 * gdbarch.h, gdbarch.c: Regenerate.
5774 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5776 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5777 write dump file binary.
5779 2002-08-05 Michael Snyder <msnyder@redhat.com>
5781 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5782 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5783 (mips_gdbarch_init): Set N32 target to be mips64.
5785 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5787 * frame.c (find_saved_register): Break out of loop once saved
5788 register address is found. Don't mention sparc in loop comment
5791 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5793 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5794 mips_default_saved_regsize to 8.
5796 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5798 * gcore.c: Do not include <sys/procfs.h>.
5799 * Makefile.in (gcore.o): Update dependencies.
5801 2002-08-06 Andrew Cagney <cagney@redhat.com>
5803 * configure.tgt: Make arc-*-* obsolete.
5804 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5805 * MAINTAINERS: Make arc-elf obsolete.
5806 * arc-tdep.c: Make file obsolete.
5807 * config/arc/arc.mt: Ditto.
5808 * config/arc/tm-arc.h: Ditto.
5810 2002-08-05 Theodore A. Roth <troth@verinet.com>
5812 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5814 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5816 * mcore-tdep.c (mcore_gdbarch_init): Use
5817 generic_unwind_get_saved_register instead of
5818 generic_get_saved_register.
5819 * v850-tdep.c (v850_gdbarch_init): Ditto.
5820 * frv-tdep.c (frv_gdbarch_init): Ditto.
5821 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5822 * s390-tdep.c (s390_gdbarch_init): Ditto.
5823 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5824 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5825 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5827 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5829 * objfiles.h: Add missing #include "symfile.h"
5831 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5833 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5835 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5836 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5839 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5841 * NEWS: Cleanup and nitpick.
5843 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5845 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5847 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5849 * Makefile.in (gdbtk-bp.o): Update dependencies.
5850 (gdbtk-register.o): Ditto.
5851 (gdbtk-varobj.o): Ditto.
5853 2002-08-03 Andrew Cagney <cagney@redhat.com>
5855 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5856 m68hc11_fetch_pseudo_register.
5857 (m68hc11_pseudo_register_write): Replace
5858 m68hc11_store_pseudo_register.
5859 (m68hc11_gdbarch_init): Update.
5861 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5863 * gdbarch.sh: Include "gdb_string.h".
5864 * gdbarch.c: Regenerate.
5866 * regcache.c: Include "gdb_string.h".
5867 * ax-general.c: Ditto.
5869 * std-regs.c: Ditto.
5870 * fbsd-proc.c: Ditto.
5873 * Makefile.in (regcache.o): Update dependencies.
5874 (thread.o, gdbarch.o): Ditto.
5875 (ax-general.o, gdbarch.o): Ditto.
5876 (varobj.o, std-regs.o): Ditto.
5877 (fbsd-proc.o): Specify dependencies.
5879 2002-08-02 Andrew Cagney <cagney@redhat.com>
5881 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5883 (regcache_cooked_write): Ditto.
5885 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5887 * regcache.c (regcache_cooked_read): New function.
5888 (regcache_cooked_write): New function.
5889 (read_register_gen): Rewrite using regcache_cooked_read.
5890 (write_register_gen): Rewrite using regcache_cooked_write.
5892 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5895 2002-08-02 Andrew Cagney <cagney@redhat.com>
5897 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5898 Replace the architecture methods register_read and register_write.
5899 * gdbarch.h, gdbarch.c: Regenerate.
5900 * regcache.c (init_regcache_descr): Update.
5901 (read_register_gen): Update.
5902 (write_register_gen): Update.
5903 (supply_register): Update comment.
5905 * sh-tdep.c (sh_gdbarch_init): Update.
5906 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5907 `regcache' and `gdbarch' parameters. Make `buffer' a void
5908 pointer. Update code.
5909 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5910 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5911 void pointer. Update code.
5912 (sh64_register_write): Delete.
5913 (sh4_register_read): Delete.
5914 (sh64_register_read): Delete.
5915 (sh4_register_write): Delete.
5916 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5917 void pointer, `to' parameter a void pointer.
5918 (sh_sh64_register_convert_to_raw): Ditto.
5920 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5922 * mips-tdep.c (mips_register_virtual_type): Use architecture
5923 invariant return values.
5925 2002-08-01 Andrew Cagney <cagney@redhat.com>
5927 * linux-proc.c: Include "gdb_string.h".
5928 * Makefile.in (linux-proc.o): Update dependency list.
5930 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5932 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5935 2002-08-01 Grace Sainsbury <graces@redhat.com>
5937 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5938 to_insert_watchpoint, to_remove_watchpoint,
5939 to_stopped_by_watchpoint, to_stopped_data_address,
5940 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5941 target vecctor. Define their corresponding macros so they call
5944 * target.c: Add default and debug versions of for
5945 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5946 to_insert_watchpoint, to_remove_watchpoint,
5947 to_stopped_by_watchpoint, to_stopped_data_address,
5948 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5950 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5952 * mips-tdep.c (mips_register_virtual_type): New function.
5953 (mips_gdbarch_init): Register mips_register_virtual_type()
5954 with gdbarch machinery.
5955 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5956 this file instead of tm-bigmips.h.
5957 (MIPS_REGSIZE): Delete this macro.
5958 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5959 multiarch version in mips-tdep.c will be found.
5961 2002-08-01 Andrew Cagney <cagney@redhat.com>
5963 * NEWS: Menion that CHILL has been made obsolete.
5965 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5966 * stabsread.c (read_range_type): Ditto.
5967 * gdbtypes.h: Ditto.
5968 * language.c (binop_type_check): Ditto.
5969 (binop_result_type): Ditto.
5970 (integral_type): Ditto.
5971 (character_type): Ditto.
5972 (string_type): Ditto.
5973 (boolean_type): Ditto.
5974 (structured_type): Ditto.
5975 (lang_bool_type): Ditto.
5976 (binop_type_check): Ditto.
5977 * language.h (_LANG_chill): Ditto.
5978 * dwarfread.c (set_cu_language): Ditto.
5979 * dwarfread.c (CHILL_PRODUCER): Ditto.
5980 * dwarfread.c (handle_producer): Ditto.
5981 * expression.h (enum exp_opcode): Ditto.
5982 * eval.c: Ditto for comments.
5983 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5984 * expprint.c (print_subexp): Ditto.
5985 (print_subexp): Ditto.
5986 * valops.c (value_cast): Ditto.
5987 (search_struct_field): Ditto.
5988 * value.h (COERCE_VARYING_ARRAY): Ditto.
5989 * symfile.c (init_filename_language_table): Ditto.
5990 (add_psymbol_with_dem_name_to_list): Ditto.
5991 * valarith.c (value_binop): Ditto.
5993 * valops.c (value_slice): Ditto.
5994 * symtab.h (union language_specific): Ditto.
5995 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5996 (SYMBOL_DEMANGLED_NAME): Ditto.
5997 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5998 * defs.h (enum language): Ditto.
5999 * symtab.c (got_symtab): Ditto.
6000 * utils.c (fprintf_symbol_filtered): Ditto.
6002 * ch-typeprint.c: Make file obsolete.
6003 * ch-valprint.c: Make file obsolete.
6004 * ch-lang.h: Make file obsolete.
6005 * ch-exp.c: Make file obsolete.
6006 * ch-lang.c: Make file obsolete.
6008 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6010 (TARGET_FLAGS_TO_PASS): Ditto.
6011 (CHILLFLAGS): Obsolete.
6013 (CHILL_FOR_TARGET): Obsolete.
6014 (CHILL_LIB): Obsolete.
6015 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6017 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6018 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6020 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6023 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6025 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6026 This does not change anything at the moment, but will be helpful
6027 later when full Ada support is integrated.
6029 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6031 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6034 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6036 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6037 and save it in a local variable. Use variable in later test.
6039 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6041 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6042 test. (Thanks to Daniel Jacobowitz.)
6044 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6046 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6047 (mips_abi_strings): Add "n64".
6048 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6050 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6052 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6053 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6055 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6057 * utils.c (host_pointer_to_address, address_to_host_pointer):
6058 Use gdb_assert() instead of explicit call to internal_error().
6060 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6062 * Makefile.in (rs6000-nat.o): Update dependencies.
6064 From Nicholas Duffek:
6065 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6066 (aix-thread.o): New rule.
6067 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6068 * config/powerpc/aix432.mh: New file.
6070 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6072 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6073 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6074 (fetch_core_registers, ppc_linux_supply_gregset)
6075 (ppc_linux_supply_fpregset): New functions.
6076 (ppc_linux_regset_core_fns): New.
6077 (_initialize_ppc_linux_tdep): Call add_core_fns.
6078 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6079 and ppc_linux_supply_gregset.
6080 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6081 (supply_fpregset): Call ppc_linux_supply_fpregset.
6082 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6084 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6086 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6088 * symtab.c (lookup_symbol): Demangle before lowercasing.
6090 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6092 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6094 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6095 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6096 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6097 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6099 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6100 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6101 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6102 (avr-tdep.o, mon960-rom.o): Ditto.
6103 (aout_stabs_gnu_h): Define.
6104 (symtab_h): Remove $(gdb_obstack_h).
6106 2002-07-30 Jim Blandy <jimb@redhat.com>
6108 Patch from David Carlton <carlton@math.stanford.edu>:
6109 * gdbinit.in: Move the `dir' commands that add GDB's own source
6110 directory to the search path to the end, so that the `gdb' source
6111 directory will be searched first.
6113 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6115 * gdb_obstack.h: New file.
6116 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6117 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6118 * objfiles.h: Include "gdb_obstack.h".
6119 * Makefile.in (gdb_obstack_h): Define.
6120 (symtab_h): Add $(gdb_obstack_h).
6121 (objfiles_h): Add $(gdb_obstack_h).
6123 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6124 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6125 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6126 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6127 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6128 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6129 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6130 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6132 * Makefile.in (bcache.o): Update dependencies.
6133 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6134 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6135 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6136 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6137 (stabsread.o, symfile.o, symmisc.o): Ditto.
6138 (symtab.o, typeprint.o, macroexp.o): Ditto.
6139 (macrotab.o, mdebugread.o): Ditto.
6140 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6141 (coff_ecoff_h, aout_aout64_h): Define.
6142 (aout_stabs_gnu_h, libaout_h): Define.
6144 2002-07-29 Andrew Cagney <cagney@redhat.com>
6146 * regcache.c (struct regcache_descr): Rename nr_registers to
6147 nr_cooked_registers. Revise comments describing the structure
6149 (init_regcache_descr): Update.
6150 (init_legacy_regcache_descr): Update.
6151 (read_register_gen, write_register_gen): When a cooked register in
6152 the raw register range, directly access the value from the raw
6155 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6157 * z8k-tdep.c: Do not include "obstack.h".
6158 * h8300-tdep.c, h8500-tdep.c: Ditto.
6159 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6160 * valprint.c, v850-tdep.c: Ditto.
6161 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6162 * mn10200-tdep.c: Ditto.
6164 * Makefile.in (z8k-tdep.o): Update dependencies.
6165 (m68hc11-tdep.o, valprint.o): Ditto.
6166 (v850-tdep.o, d10v-tdep.o): Ditto.
6167 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6168 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6169 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6170 (sh_opc_h, gdb_sim_sh_h): Define.
6171 (elf_sh_h, elf_bfd_h): Define.
6172 (opcode_m68hc11_h): Define.
6173 (OPCODES_SRC, OPCODES_DIR): define.
6174 (OPCODES): Use $(OPCODES_DIR).
6175 (gdb_sim_d10v_h): Rename sim_d10v_h.
6176 (gdb_sim_arm_h): Rename sim_arm_h.
6178 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6180 * utils.c (host_pointer_to_address, address_to_host_pointer):
6181 Change internal_error() message to indicate function responsible
6184 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6186 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6187 calls to local_hex_string_custom().
6189 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6191 * irix5-nat.c: Move IRIX shared library support from here...
6192 * solib-irix.c: ...to here. Revised substantially to work with
6193 generic solib framework.
6195 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6196 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6197 * mips-irix-tdep.c: New file.
6199 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6200 (mips-irix-tdep.o, solib-irix.o): New rules.
6201 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6203 * config/mips/irix6.mt (TDEPFILES): Likewise.
6204 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6206 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6208 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6209 disabled (via ``#if 0'') includes.
6211 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6213 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6214 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6215 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6216 Add support for the fpscr register.
6217 * rs6000-nat.c (regmap, fetch_inferior_registers)
6218 (store_inferior_registers, fetch_core_registers): Likewise.
6220 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6222 * rs6000-nat.c (language.h): Include.
6223 (special_regs): Delete this array.
6224 (regmap): New function.
6225 (fetch_register, store_register): Use regmap() to map gdb
6226 register numbers to ptrace register numbers. Also, use
6227 outputs from regmap() to make decisions regarding type of
6228 ptrace() call to make. In particular, don't compare against
6229 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6230 (fetch_inferior_registers, store_inferior_registers): Where
6231 possible, obtain register numbers from tdep struct. Don't
6232 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6233 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6234 (LAST_UISA_SP_REGNUM): Delete.
6236 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6238 * rs6000-nat.c (ppc-tdep.h): Include.
6239 (fetch_registers, store_register, fetch_core_registers): Don't
6240 access registers[] directly. Instead, use supply_register() or
6241 regcache_collect() as appropriate.
6242 (find_toc_address): Format hex address with local_hex_string().
6244 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6246 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6249 2002-07-24 Tom Tromey <tromey@redhat.com>
6251 * jv-exp.y: Marked all strings with _().
6252 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6254 (MethodInvocation, CastExpression, parse_number, yyerror,
6255 java_type_from_name, push_expression_name, yylex): Typo fixes.
6257 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6259 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6260 (tee_file_flush, tee_file_write, tee_file_fputs)
6261 (tee_file_isatty): New.
6262 * ui-file.h (tee_file_new): Add prototype.
6264 2002-07-24 Aidan Skinner <aidan@velvet.net>
6266 * ada-lang.c: Change k&r style function definitions to prototyped
6268 * ada-typeprint.c: Change k&r style function definitions to prototyped
6270 * ada-valprint.c: Change k&r style function definitions to prototyped
6273 2002-07-24 Andrew Cagney <cagney@redhat.com>
6275 * README: Remove reference to remote-bug.
6276 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6278 (m88k-nat.o): Delete rule.
6279 (m88k-tdep.o): Delete rule.
6280 (remote-bug.o): Delete rule.
6281 * MAINTAINERS: Mark as obsolete.
6282 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6283 * m88k-tdep.c: Make file obsolete.
6284 * config/m88k/m88k.mh: Ditto.
6285 * config/m88k/delta88v4.mh: Ditto.
6286 * config/m88k/delta88v4.mt: Ditto.
6287 * config/m88k/delta88.mt: Ditto.
6288 * config/m88k/delta88.mh: Ditto.
6289 * remote-bug.c: Ditto.
6290 * config/m88k/tm-delta88.h: Ditto.
6291 * config/m88k/nm-delta88v4.h: Ditto.
6292 * config/m88k/xm-delta88.h: Ditto.
6293 * config/m88k/xm-dgux.h: Ditto.
6294 * config/m88k/tm-m88k.h: Ditto.
6295 * config/m88k/nm-m88k.h: Ditto.
6296 * config/m88k/tm-delta88v4.h: Ditto.
6297 * m88k-nat.c: Ditto.
6298 * cxux-nat.c: Ditto.
6299 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6300 and m88*-*-* obsolete.
6301 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6304 2002-07-24 Andrew Cagney <cagney@redhat.com>
6306 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6307 constant. Same for local pointer variables.
6308 (extract_signed_integer): Ditto.
6309 * defs.h (extract_unsigned_integer): Update.
6310 (extract_signed_integer): Update.
6312 2002-07-24 Andrew Cagney <cagney@redhat.com>
6314 * regcache.c (regcache_raw_write): Change buf parameter to a
6315 constant void pointer.
6316 (regcache_raw_read): Change buf parameter to a void pointer.
6317 (legacy_write_register_gen): Change myaddr parameter a constant
6319 (supply_register): Change val parameter to a const void pointer.
6320 * regcache.h (regcache_raw_write): Update declaration.
6321 (regcache_raw_read): Update declaration.
6322 (supply_register): Update declaration.
6324 2002-07-24 Tom Tromey <tromey@redhat.com>
6326 * defs.h (gdb_readline_wrapper): Declare.
6327 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6328 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6329 * top.c (gdb_readline_wrapper): New function.
6330 (command_line_input): Use it.
6332 2002-07-24 Andrew Cagney <cagney@redhat.com>
6334 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6335 regcache_read and regcache_write.
6336 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6337 * regcache.c: Update.
6338 * sh-tdep.c (sh64_push_arguments): Update comment.
6339 (sh_pseudo_register_read): Update.
6340 (sh_pseudo_register_write): Update.
6341 (sh4_register_read): Update.
6342 (sh4_register_write): Update.
6343 (sh64_pseudo_register_read): Update.
6344 (sh64_pseudo_register_write): Update.
6345 (sh64_register_read): Update.
6346 (sh64_register_write): Update.
6347 * i386-tdep.c (i386_extract_return_value): Update.
6348 (i386_extract_struct_value_address): Update.
6349 (i386_extract_return_value): Update.
6350 * blockframe.c (generic_read_register_dummy): Update.
6351 (generic_call_dummy_register_unwind): Update
6352 * infrun.c (write_inferior_status_register): Update.
6354 2002-07-23 Jim Blandy <jimb@redhat.com>
6356 * parser-defs.h (expression_context_pc): Make this extern.
6357 (Thanks to Michael Snyder.)
6359 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6361 GDB 5.2.1 released from 5.2 branch.
6362 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6363 * README: Update to mention 5.2.1.
6365 2002-07-23 Mark Salter <msalter@redhat.com>
6367 * remote.c (remote_read_bytes): Fix check for error.
6369 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6371 * aix-thread.c (language.h): Include.
6372 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6373 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6374 Print newlines at end of debug messages.
6375 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6376 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6378 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6380 * aix-thread.c (ppc-tdep.h): Include.
6381 (special_register_p): New function.
6382 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6383 (store_regs_user_thread): Use register number information from
6384 gdbarch_tdep struct instead of hardcoded offsets relative to
6385 FIRST_UISA_SP_REGNUM.
6386 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6387 special_register_p() instead of using FPLAST_REGNUM and
6388 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6389 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6390 will be MQ's register number.
6392 2002-07-22 Michael Snyder <msnyder@redhat.com>
6394 * aix-thread.c (ops): Rename to aix_thread_ops.
6395 (base_ops): Rename to base_target.
6396 (ops_attach): Rename to aix_thread_attach.
6397 (ops_detach): Rename to aix_thread_detach.
6398 (ops_resume): Rename to aix_thread_detach.
6399 (ops_wait): Rename to aix_thread_wait.
6400 (ops_kill): Rename to aix_thread_kill.
6401 (init_ops): Rename to init_aix_thread_ops.
6402 (ops_fetch_register): Rename to aix_thread_fetch_register.
6403 (ops_store_register): Rename to aix_thread_store_register.
6404 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6405 (ops_thread_alive): Rename to aix_thread_thread_alive.
6406 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6407 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6408 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6409 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6410 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6411 (store_regs_lib): Rename to store_regs_user_thread.
6412 (store_regs_kern): Rename to store_regs_kernel_thread.
6414 2002-07-22 Michael Snyder <msnyder@redhat.com>
6416 * aix-thread.c (ops_prepare_to_store): Eliminate.
6417 (init_ops): Don't initialize ops.prepare_to_store.
6418 (store_regs_kern): Pre-fetch register buffers from child,
6419 because some registers may not be in the cache. Copy
6420 regs from register cache only if they are cached.
6421 (store_regs_lib): Copy regs from register cache only
6423 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6424 fill_gprs64): Ditto.
6426 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6428 * aix-thread.c (gdb_assert.h): Include.
6429 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6430 register sizes (from register cache) match size of buffer holding
6432 (fill_sprs32): Change parameter types to match those in the ptrace()
6434 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6435 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6437 2002-07-22 Michael Snyder <msnyder@redhat.com>
6439 * aix-thread.c (supply_sprs64): Cosmetic change.
6440 (supply_sprs32): Cosmetic change.
6441 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6442 (fill_sprs64): Use regcache_collect instead of read_register.
6443 (store_regs_lib): Use regcache_collect instead of
6444 read_register. Use fill_sprs32 instead of fill_sprs64,
6445 if debugging a 32-bit architecture.
6446 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6447 out of the register cache, instead of passing a pointer into
6448 the register cache directly to ptrace. Use regcache_collect
6449 insteaad of read_register.
6450 (ops_prepare_to_store): Use target_read_registers instead
6451 of read_register_bytes.
6453 2002-07-20 Aidan Skinner <aidan@velvet.net>
6455 * MAINTAINERS: Add self under write after approval.
6457 2002-07-20 Aidan Skinner <aidan@velvet.net>
6459 * ada-tasks.c: Change k&r style function definitions to prototyped
6462 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6464 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6465 * x86-64-tdep.c: Include "objfiles.h".
6466 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6467 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6469 2002-07-17 Michal Ludvig <michal@suse.cz>
6471 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6472 (update_context): Initialise cfa variable.
6474 2002-07-17 Michael Snyder <msnyder@redhat.com>
6476 * aix-thread.c: Shorten some long lines.
6477 Bring comments into line with code spec.
6479 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6481 * infrun.c: Re-indent using gdb_indent.sh.
6483 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6485 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6486 Leave the indentation temporarily untouched, to minimize the diffs.
6488 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6490 * stabsread.c: Make os9k sections of the code obsolete,
6492 * stabsread.h: Make os9k sections of the code obsolete.
6494 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6496 * linux-low.c (regsets_store_inferior_registers): Add free()
6497 at the end of a loop to prevent memory leak.
6498 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6499 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6500 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6502 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6504 2002-07-17 Jim Blandy <jimb@redhat.com>
6506 * macrocmd.c (info_macro_command): Remove newline from error
6509 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6511 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6512 (sh_gdbarch_init): Use it for sh-dsp.
6514 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6516 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6517 64-bit DWARF2 format.
6519 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6521 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6522 <sys/proc.h> when not available.
6524 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6526 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6527 * stabsread.c: Make os9k sections of the code obsolete.
6528 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6529 * config/i386/i386os9k.mt: Make file obsolete.
6530 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6531 (COMMON_OBS): Remove os9kread.o
6532 (SFILES): Remove os9kread.c.
6533 (os9kread.o, remote-os9k.o): Make target obsolete.
6534 * remote-os9k.c: Make file obsolete.
6535 * os9kread.c: Make file obsolete.
6538 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6540 * NEWS: Mention that the FR30 has been made obsolete.
6541 * fr30-tdep.c: Make file obsolete.
6542 * config/fr30/tm-fr30.h: Ditto.
6543 * config/fr30/fr30.mt: Ditto.
6544 * configure.tgt: Make fr30-*-elf obsolete.
6545 * MAINTAINERS: Make fr30-elf obsolete.
6547 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6549 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6550 found is not inside a section.
6552 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6554 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6556 (pdc_realloc): Use xrealloc() instead of realloc().
6558 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6560 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6561 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6562 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6565 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6567 * aix-thread.c (ptrace_check): Eliminate goto.
6568 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6571 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6573 * aix-thread.c (gdbcmd.h): Include.
6574 (DEBUG, DBG, DBG2, dbg): Eliminate.
6575 (debug_aix_thread): New static global.
6576 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6577 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6578 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6579 invocations to DBG and DBG2 macros to test against
6580 ``debug_aix_thread'' and call fprintf_unfiltered().
6581 (_initialize_aix_thread): Add new command "set debug aix-thread".
6583 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6585 From Gerhard Tonn <TON@de.ibm.com>:
6586 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6587 instead of supply_register.
6589 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6591 * dwarf2cfi.c: Include "gdb_assert.h".
6592 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6594 (update_context): Do not use __func__. Add missing ``break''.
6595 (update_context): Do not use __func__.
6597 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6599 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6600 and its setting. Set gdbarch instruction printing functions
6601 directly. For non-rs6000 case use new function
6602 gdb_print_insn_powerpc.
6603 (gdb_print_insn_powerpc): New function.
6605 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6607 * NEWS: Mention that the d30v has been marked obsolete.
6608 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6609 * configure.tgt: Mark d30v-*-* as obsolete.
6610 * d30v-tdep.c: Mark file as obsolete.
6611 * config/d30v/d30v.mt: Ditto.
6612 * config/d30v/tm-d30v.h: Ditto.
6614 2002-07-13 Aidan Skinner <aidan@velvet.net>
6616 * ada-tasks.c (add_task_entry): replace calls to
6617 malloc() with xmalloc
6618 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6620 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6621 ada_finish_decode_line_1, all_sals_for_line
6622 ada_breakpoint_rewrite): replace calls to free() with xfree()
6624 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6626 From Nicholas Duffek (with minor changes by Martin Hunt,
6627 Louis Hamilton, and Kevin Buettner):
6628 * aix-thread.c: New file.
6630 2002-07-12 Petr Sorfa <petrs@caldera.com>
6632 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6633 complaint for invalid attribute class or form.
6634 (read_func_scope): DW_AT_frame_base
6635 better handling of DW_AT_block*.
6636 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6637 better handling of DW_AT_block*.
6638 (read_common_block): DW_AT_location
6639 better handling of DW_AT_block*.
6640 (read_partial_die): DW_AT_location better handling
6642 (new_symbol): DW_AT_external better handling of
6643 DW_AT_block*. Proper initialization of variable
6645 (attr_form_is_block): New function that returns true
6646 if the attribute's form is of DW_FORM_block*.
6648 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6650 * valops.c (find_method_list): Remove comment about
6651 removed STATIC_MEMFUNCP argument.
6652 (value_find_oload_method_list): Likewise.
6654 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6656 From Nicholas Duffek:
6657 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6658 target_new_objfile_hook.
6660 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6662 From Nicholas Duffek:
6663 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6666 2002-07-12 Andrew Cagney <cagney@redhat.com>
6668 * MAINTAINERS: Mention --enable-sim-build-warnings.
6669 (m68hc11-elf): Disable sim build warnings.
6670 (m32r-elf): Mark as broken obsolete candidate.
6671 (x86_64-linux-gnu): Mark as buildable with -Werror.
6672 (arm-elf): Change -w to ``,'' which enables warnings but not
6675 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6677 * bcache.h: Update copyright.
6678 (struct bstring, struct bcache): Move definition to "bcache.c".
6679 Replaced by opaque declaration.
6680 (bcache_xfree): Replace free_bcache.
6681 (bcache_xmalloc, bcache_memory_used): Declare.
6683 * bcache.c: Update copyright.
6684 (struct bstring, struct bcache): Moved to here from "bcache.h".
6686 (bcache_xmalloc, bcache_memory_used): New functions.
6687 (bcache_xfree): Replace function free_bcache.
6689 * Makefile.in (objfiles.o): Add $(bcache_h).
6690 (objfiles_h): Remove $(bcache_h).
6691 (symfile.o): Add $(bcache_h).
6693 * symmisc.c: Update copyright.
6694 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6695 (print_objfile_statistics): Use bcache_memory_used.
6697 * symfile.c: Include "bcache.h".
6698 (reread_symbols): Use bcache_xfree.
6699 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6700 (add_psymbol_to_list): Pass psymbol_cache by value.
6701 (add_psymbol_with_dem_name_to_list): Ditto.
6703 * objfiles.h: Update copyright.
6704 (struct bcache): Declare opaque. Do not include "bcache.h".
6705 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6707 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6709 * objfiles.c: Include "bcache.h". Update copyright.
6710 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6712 (free_objfile): Use bcache_xfree.
6714 2002-07-11 Grace Sainsbury <graces@redhat.com>
6716 * monitor.c (monitor_fetch_register): Make name a constant.
6717 (monitor_store_register): Same.
6719 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6721 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6722 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6723 (finish_block) For non-function blocks, hash the symbol table. For
6724 function blocks, mark the symbol table as unhashed.
6725 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6726 (msymbol_hash_iw): Likewise.
6727 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6729 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6730 (lookup_minimal_symbol): Likewise for both.
6731 * symtab.h (struct block): Add `hashtable' flag. Comment the
6733 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6734 (ALL_BLOCK_SYMBOLS): Update.
6735 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6736 (struct symbol): Add `hash_next' pointer.
6737 * symtab.c (lookup_block_symbol): Search using the hash table when
6739 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6740 (search_symbols, find_addr_symbol): Likewise.
6742 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6743 (read_dst_symtab): Likewise.
6744 * jv-lang.c (get_java_class_symtab): Likewise.
6745 * mdebugread.c: Include "gdb_assert.h".
6746 (shrink_block): Assert that the block being modified is not hashed.
6747 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6748 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6750 (dump_symtab): Recognize hashed blocks.
6751 * printcmd.c (print_frame_args): Assert that function blocks do not
6752 have hashed symbol tables.
6753 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6754 (fill_in_ada_prototype, debug_print_block): Likewise.
6755 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6757 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6759 * stack.c (print_frame): Use result of frame_address_in_block()
6760 instead of fi->pc when evaluating symbols.
6761 (backtrace_command_1): Ditto.
6763 2002-07-11 Andrew Cagney <cagney@redhat.com>
6765 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6768 * arm-tdep.c (arm_register_name): Make return type constant.
6770 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6772 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6774 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6775 * s390-tdep.c (s390_fp_regnum): Ditto.
6776 (s390_read_fp): Ditto.
6777 (s390_pop_frame): Ditto.
6778 (_initialize_s390_tdep): Ditto.
6779 * remote.c (get_remote_state): Ditto.
6780 * procfs.c (mappingflags): Ditto.
6781 * memattr.c (_initialize_mem): Ditto.
6782 * mcore-tdep.c (mcore_pop_frame): Ditto.
6783 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6784 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6785 * language.c (set_case_str): Ditto.
6786 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6787 * frv-tdep.c (new_variant): Ditto.
6788 (frv_stopped_data_address): Ditto.
6789 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6790 (context_alloc): Ditto.
6791 (frame_state_alloc): Ditto.
6792 (unwind_tmp_obstack_init): Ditto.
6793 (unwind_tmp_obstack_free): Ditto.
6794 (cfi_read_fp): Ditto.
6795 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6796 (cris_pop_frame): Ditto.
6797 * c-lang.c (scanning_macro_expansion): Ditto.
6798 (finished_macro_expansion): Ditto.
6799 (c_preprocess_and_parse): Ditto.
6800 * gdbarch.sh: Ditto.
6801 * gdbarch.h, gdbarch.c: Regenerate.
6802 * config/mn10200/tm-mn10200.h: Adjust indentation.
6803 * target.c: Adjust indentation.
6804 * symtab.h: Adjust indentation.
6805 * stabsread.h: Adjust indentation.
6806 * remote-es.c: Adjust indentation.
6807 * os9kread.c: Adjust indentation.
6809 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6811 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6812 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6814 2002-07-10 Grace Sainsbury <graces@redhat.com>
6816 * NEWS: Mention m68k, mcore multi-arching.
6817 * MAINTAINERS: Change status of m68k, mcore to reflect
6820 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6822 * valops.c (find_overload_match): Free oload_syms.
6824 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6826 Define HAVE_SYS_PROC_H if sys/proc.h exists
6827 * configure.in: Add check for sys/proc.h
6828 * config.in: Regenerate.
6829 * configure: Regenerate.
6831 2002-07-09 Grace Sainsbury <graces@redhat.com>
6833 * config/m68k/tm-m68k.h: Remove macros wrapped in
6834 #if !GDB_MULTI_ARCH.
6836 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6838 * config.in, configure: Regenerate.
6840 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6842 * dwarf2cfi.c: Include "gcore.h".
6843 (execute_stack_op): Fix implementation of the
6844 DW_OP_deref and DW_OP_deref_size operators by letting do their
6845 lookup in the target.
6847 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6849 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6850 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6853 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6855 Fix PR gdb/595, gdb/602
6856 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6857 Don't call value_cast, just read the vtable pointer; update comments
6860 2002-07-05 Grace Sainsbury <graces@redhat.com>
6862 * config/mcore/tm-mcore.h: Remove file.
6863 * config/mcore/mcore.mt: Remove definition of TM_FILE
6864 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6866 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6868 * i386bsd-tdep.c: Include "gdb_string.h".
6870 2002-07-04 Grace Sainsbury <graces@redhat.com>
6872 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6873 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6875 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6876 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6877 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6878 (RETVAL_REGNUM): Move macros from tm-mcore.h
6879 (mcore_reg_struct_has_addr): New function.
6880 (mcore_gdbarch_init): Added initializations for the macros removed
6883 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6885 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6886 traditonal string branding within the ELF header.
6888 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6890 * symtab.c (remove_params): New function.
6891 (make_symbol_overload_list): Use it instead of cplus_demangle.
6892 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6894 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6896 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6898 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6900 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6901 and tdep->sigtramp_end.
6902 * i386obsd-nat.c: New file.
6903 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6905 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6906 Don't call get_current_frame().
6908 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6910 * i386-nat.c (child_post_startup_inferior): New function
6911 calling i386_cleanup_dregs if
6912 I386_USE_GENERIC_WATCHPOINTS is defined.
6913 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6914 conditional to acknowledge that i386-nat.c has its
6915 own child_post_startup_inferior function.
6917 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6919 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6920 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6921 instead of MAX_REGISTER_RAW_SIZE.
6922 (i386_extract_return_value, i386_extract_struct_value_address):
6923 Convert to use regcache.
6924 (i386_gdbarch_init): Set max_register_raw_size and
6925 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6926 Set extract_return_value and extract_struct_value_address instead
6927 of their deprecated variants.
6929 Convert i386 target to generic dummy frames.
6930 * i386-tdep.c: Include "symfile.h".
6931 (i386_frameless_signal_p): Consider a function to be frameless if
6932 the pc points at the first instruction of the function.
6933 (i386_frame_chain): Handle (generic) call dummies.
6934 (i386_frame_saved_pc): Likewise.
6935 (i386_frame_init_saved_regs): Remove code dealing with call
6936 dummies on the stack.
6937 (i386_push_dummy_frame): Removed.
6938 (i386_call_dummy_words): Removed.
6939 (i386_fix_call_dummy): Removed.
6940 (i386_push_return_address): New function.
6941 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6942 parameter, and don't call get_current_frame.
6943 (i386_pop_frame): New function.
6944 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6945 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6946 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6947 call_dummy_length to 0, set call_dummy_words to NULL, set
6948 sizeof_call_dummy_words to 0, set fix_call_dummy to
6949 generic_fix_call_dummy, set pc_in_call_dummy to
6950 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6951 generic_push_dummy_frame, set push_return_address to
6952 i386_push_return_address and set frame_chain_valid to
6953 generic_file_frame_chain_valid.
6955 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6957 * gdbarch.sh (struct regcache): Add opaque declaration.
6958 (EXTRACT_RETURN_VALUE): New architecture method.
6959 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6960 * gdbarch.h, gdbarch.c: Regenerate.
6961 * arch-utils.c (legacy_extract_return_value): New function.
6962 * arch-utils.h (legacy_extract_return_value): Declare.
6963 * values.c (value_being_returned): Re-enable code handling
6964 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6965 deprecated_grub_regcache_for_registers call to block handling
6966 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6967 (EXTRACT_RETURN_VALUE): Do not define.
6969 2002-07-03 Grace Sainsbury <graces@redhat.com>
6971 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6972 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6973 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6974 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6975 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6976 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6977 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6978 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6979 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6980 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6981 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6982 argument so the function fits the prototype in the architecture
6984 (mcore_pop_frame): Remove argument so the function fits the
6985 prototype. Use get_current_frame instead of the argument.
6986 (mcore_push_arguments): Change type of struct_return so the
6987 function can be used in the architecture vector.
6988 (mcore_store_struct_return): Add.
6989 (mcore_frame_init_saved_regs): Add.
6990 (mcore_gdbarch_init): Add function calls to replace the macros
6991 removed from tm-mcore.h
6993 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6995 * infcmd.c (print_return_value): Remove compatibility code calling
6996 deprecated_grub_regcache_for_registers.
6998 * values.c: Include "regcache.h".
6999 (value_being_returned): Update. Use
7000 deprecated_grub_regcache_for_registers to extract the register
7002 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7003 ``struct regcache''.
7004 * Makefile.in (values.o): Add dependency on $(regcache_h).
7006 * inferior.h (run_stack_dummy): Change type of second parameter to
7007 a ``struct regcache''.
7008 * valops.c (hand_function_call): Change type of retbuf to ``struct
7009 regcache''. Allocate using regcache_xmalloc, clean using
7010 make_cleanup_regcache_xfree.
7011 * infcmd.c (run_stack_dummy): Update. Use
7012 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7014 * regcache.c (do_regcache_xfree): New function.
7015 (make_cleanup_regcache_xfree): New function.
7016 * regcache.h (make_cleanup_regcache_xfree): Declare.
7018 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7020 * event-top.c (command_line_handler): Don't read past
7021 beginning of buffer.
7023 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7025 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7027 (varobj_create): Store frame_id for root.
7028 (varobj_gen_name): Use xasprintf.
7029 (varobj_update): Save and restore frame using get_frame_id() and
7031 (create_child): Use xasprintf.
7032 (new_root_variable): Initialize frame_id.
7033 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7034 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7035 to prevent memory leak.
7037 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7039 * valops.c (hand_function_call): Move declaration of retbuf to
7040 start of function, allocate using malloc, add a cleanup but before
7041 the inf_status cleanup, cleanup the buffer. Rename local variable
7042 old_chain to inf_status_cleanup.
7044 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7046 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7048 * cli/cli-decode.c (cmd_func_p): New function.
7049 (cmd_func): New function.
7051 * command.h: Add cmd_func() and cmd_func_p().
7053 2002-07-03 Grace Sainsbury <graces@redhat.com>
7055 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7056 (REGISTER_SIZE): Remove.
7057 (MAX_REGISTER_RAW_SIZE): Remove.
7058 (REGISTER_VIRTUAL_TYPE): Remove.
7059 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7060 (REGISTER_NAME): Remove.
7061 (USE_GENERIC_DUMMY_FRAMES): Remove.
7062 (CALL_DUMMY): Remove.
7063 (CALL_DUMMY_START_OFFSET): Remove.
7064 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7065 (CALL_DUMMY_LOCATION): Remove.
7066 (FIX_CALL_DUMMY): Remove.
7067 (CALL_DUMMY_ADDRESS): Remove.
7068 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7069 (SAVE_DUMMY_FRAME_TOS): Remove.
7070 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7071 (mcore_register_virtual_type): New function.
7072 (mcore_register_byte): New function.
7073 (mcore_register_size): New function.
7074 (mcore_register_name): New function.
7075 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7076 macros removed from tm-mcore.h.
7077 (mcore_dump_tdep): Add.
7078 (_initialize_mcore_tdep): Add gdbarch_register call.
7080 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7082 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7083 frameless_look_for_prologue, such that we actually call this
7086 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7088 * frame.h (frame_address_in_block): New function.
7090 * blockframe.c (frame_address_in_block): New function extracted
7091 from get_frame_block().
7092 (get_frame_block): Use frame_address_in_block().
7093 (block_innermost_frame): Use frame_address_in_block() to match
7094 the frame pc address against the block boundaries rather than
7095 the frame pc directly. This prevents a failure when a frame pc
7096 is actually a return-address pointing immediately after the end
7099 2002-07-02 Grace Sainsbury <graces@redhat.com>
7101 * MAINTAINERS: Add self under write after approval.
7103 2002-07-02 Grace Sainsbury <graces@redhat.com>
7105 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7106 used in architecture vector. The default is
7107 m68k_local_breakpoint_from_pc.
7108 (m68k_local_breakpoint_from_pc): Add.
7109 (enum): Add register numbers from tm-m68k.h.
7110 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7112 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7113 GDB_MULTI_ARCH_PARTIAL.
7114 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7115 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7117 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7118 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7119 to enum in m68k-tdep.c
7121 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7123 * solib-osf.c (open_map): Compute the list of shared libraries
7124 loaded by the inferior, rather than the list of libraries loaded
7125 by GDB itself. Otherwise, GDB ends up reading the symbols from
7126 the wrong shared libraries...
7128 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7130 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7131 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7133 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7135 (FRAMELESS_SIGNAL): Remove function.
7136 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7137 i386_linux_saved_pc_after_call): Removed.
7138 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7139 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7140 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7142 * i386-tdep.c (i386_frameless_signal_p): New function.
7143 (i386_frame_chain): Deal with frameless signals.
7144 (i386_sigtramp_saved_sp): New function.
7145 (i386_frame_saved_pc): Deal with frameless signals.
7146 (i386_saved_pc_after_call): Make sure the correct value is
7147 returned just after entry into a sigtramp.
7148 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7149 i386fbsd4_sc_sp_offset): New variables.
7150 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7151 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7152 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7153 similiar to what we already did for sc_pc_offset.
7154 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7157 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7159 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7161 * config/i386/tm-x86-64linux.h: New.
7162 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7164 * config/i386/nm-x86-64.h: Rename to ...
7165 * config/i386/nm-x86-64linux.h: ... this one.
7166 * config/i386/x86-64linux.mh: Reflect the above change.
7168 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7170 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7171 with sigcontext_addr. Add sc_sp_offset.
7172 (i386bsd_sigtramp_saved_pc): Remove prototype.
7173 (i386bsd_sicontext_addr): Add prototype.
7174 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7175 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7176 (i386_svr4_sigtramp_saved_pc): Removed.
7177 (i386_svr4_sigcontext_addr): New function.
7178 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7179 Initialize tdep->sigcontext_addr instead. Initialize
7180 tdep->sc_pc_offset and tdep->sc_sp_offset.
7181 (i386_gdbarch_init): Likewise.
7182 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7184 (i386bsd_sigtramp_saved_pc): Remove function.
7185 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7186 Initialize tdep->sigcontext_addr instead. Initialize
7188 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7189 of tdep->sigtramp_saved_pc.
7190 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7191 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7194 * i386-tdep.c (i386_frameless_function_invocation,
7195 i386_frame_num_args, i386_frame_init_saved_regs,
7196 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7197 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7198 i386_extract_return_value, i386_store_return_value,
7199 i386_extract_struct_value_address, i386_register_virtual_type,
7200 i386_register_convertible, i386_register_convert_to_virtual,
7201 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7202 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7205 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7207 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7209 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7210 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7211 this macro. Include "value.h".
7213 2002-06-30 Aidan Skinner <aidan@velvet.net>
7215 * ada-exp.tab.c: remove as it's a generated file
7216 * ada-lex.c: remove as it's a generated file
7218 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7220 * config/i386/tm-i386.h (struct frame_info, struct
7221 frame_saved_regs, struct value, struct type): Remove forward
7224 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7225 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7226 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7227 (FILL_FPXREGSET): Define.
7229 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7231 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7232 i[3456]86-*-netbsd* case.
7233 * config/i386/tm-obsd.h: Removed.
7234 * config/i386/obsd.mt: Removed.
7235 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7237 (MH_CFLAGS): Add -DYYDEBUG=0.
7239 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7240 i386nbsd_sc_pc_offset on OpenBSD too.
7242 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7243 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7244 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7246 * i386bsd-tdep.c: Include "arch-utils.h".
7247 (i386bsd_aout_in_solib_call_trampoline): New function.
7248 (i386bsd_init_abi): Set in_solib_call_trampoline to
7249 i386bsd_aout_in_solib_call_trampoline.
7250 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7251 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7253 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7255 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7256 (struct obstack, struct bcache): Add opaque declarations.
7257 * Makefile.in (macrotab_h): Update
7259 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7261 * blockframe.c (generic_find_dummy_frame): Change return type to
7262 ``struct regcache''.
7263 (struct dummy_frame): Replace field ``registers'' with regcache, a
7264 struct regcache object.
7265 (generic_find_dummy_frame): Update.
7266 (generic_push_dummy_frame): Update. Use regcache_xfree,
7267 regcache_xmalloc and regcache_cpy.
7268 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7270 (deprecated_generic_find_dummy_frame): Update.
7271 (generic_read_register_dummy): Update. Use
7272 regcache_read_as_address.
7273 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7274 (generic_get_saved_register): Update. Use regcache_read.
7276 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7278 * Makefile.in (objfiles_h): Add $(bcache_h).
7279 * objfiles.h: Include "bcache.h".
7281 * Makefile.in (symtab_h): Remove $(bcache_h).
7282 * symtab.h: Do not include "bcache.h".
7284 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7286 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7287 generic_func_frame_chain_valid.
7289 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7291 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7292 * config/i386/tm-fbsd.h: Likewise.
7294 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7296 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7297 generic_unwind_get_saved_register.
7299 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7301 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7302 * regcache.c (supply_register): Add missing argument to
7303 register_buffer call.
7305 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7307 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7308 Solaris /bin/grep does not not like it. From Peter Schauer.
7310 2002-06-26 Tom Tromey <tromey@redhat.com>
7312 * command.h (add_setshow_cmd): Declare.
7313 (add_setshow_cmd_full): Declare.
7314 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7315 returns void. Use add_setshow_cmd_full.
7316 (add_setshow_cmd_full): New function.
7317 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7318 (add_setshow_boolean_cmd): Likewise.
7320 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7322 * config/vax/tm-vax.h: Protect from multiple inclusion.
7323 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7324 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7325 * config/vax/tm-vaxbsd.h: ...here. New file.
7326 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7328 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7330 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7331 (BELIEVE_PCC_PROMOTION): Remove.
7332 (AP_REGNUM): Move to...
7333 * config/vax/nm-vax.h: ...here.
7334 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7335 (vax_breakpoint_from_pc): New function.
7336 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7337 and gdbarch_believe_pcc_promotion.
7339 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7341 * Makefile.in (vax_tdep_h): Define.
7342 (vax-tdep.o): Use $(vax_tdep_h).
7343 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7344 (vax_dump_tdep): New function.
7345 (_initialize_vax_tdep): Register vax_dump_tdep.
7346 * vax-tdep.h: Include osabi.h.
7347 (struct gdbarch_tdep): New.
7349 2002-06-26 Andrew Cagney <cagney@redhat.com>
7351 * frame.h (deprecated_generic_find_dummy_frame): Rename
7352 generic_find_dummy_frame.
7353 * blockframe.c (generic_find_dummy_frame): Make static.
7354 (deprecated_generic_find_dummy_frame): New function.
7355 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7356 generic_find_dummy_frame with deprecated_find_dummy_frame.
7357 (sh64_nofp_frame_init_saved_regs): Ditto.
7358 (sh_fp_frame_init_saved_regs): Ditto.
7359 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7360 (s390_frame_chain): Ditto.
7361 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7363 2002-06-26 Grace Sainsbury <graces@redhat.com>
7365 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7366 gdbarch vector are at the top.
7368 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7369 (FRAME_ARGS_ADDRESS): Remove.
7370 (FRAME_LOCALS_ADDRESS): Remove.
7371 (FRAME_NUM_ARGS): Remove.
7372 (FRAME_ARGS_SKIP): Remove.
7373 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7374 (m68k_gdbarch_init): Add gdbarch initializations for macros
7375 undefined in tm-m68k.h
7377 2002-06-26 Grace Sainsbury <graces@redhat.com>
7379 * monitor.h: Add the function regname to monitor_ops
7380 structure. This way NUM_REGS does not have to be a constant.
7381 * monitor.c (monitor_fetch_register): Added support for regname
7382 function. The function is called if the array regnames is NULL.
7383 (monitor_store_register): Same.
7384 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7386 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7387 cpu32bug_cmds.regname to point to new function.
7388 * abug-rom.c (abug_regname): Same as above.
7389 (init_abug_cmds): Same.
7390 * dbug-rom.c (dbug_regname): Same as above.
7391 (init_dbug_cmds): Same.
7392 * remote-est.c (est_regname): Same.
7393 (init_est_cmds): Same.
7394 * rom68k-rom.c (rom68k_regname): Same.
7395 (init_rom68k_cmds): Same.
7397 2002-06-25 Tom Tromey <tromey@redhat.com>
7399 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7401 2002-06-25 Andrew Cagney <cagney@redhat.com>
7403 * infrun.c (stop_registers): Change variable's type to ``struct
7405 (xmalloc_inferior_status): Delete function.
7406 (free_inferior_status): Delete function.
7407 (normal_stop): Use regcache_cpy.
7408 (struct inferior_status): Change type of fields ``stop_registers''
7409 and ``registers'' to ``struct regcache''.
7410 (write_inferior_status_register): Use regcache_write.
7411 (save_inferior_status): Instead of calling
7412 xmalloc_inferior_status, allocate the inf_status buffer directly.
7413 Use regcache_dup_no_passthrough and regcache_dup to save the
7415 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7416 Replace the stop_registers regcache instead of overriding it. Use
7417 regcache_xfree. Instead of calling free_inferior_status, xfree
7418 the buffer directly.
7419 (discard_inferior_status): Use regcache_xfree. Instead of calling
7420 free_inferior_status, xfree the buffer directly.
7421 (build_infrun): Use regcache_xmalloc.
7422 (_initialize_infrun): Delete redundant call to build_infrun.
7424 * Makefile.in (infcmd.o): Add $(regcache_h).
7426 * infcmd.c: Include "regcache.h".
7427 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7428 obtain the address of `stop_registers' register buffer.
7429 (print_return_value): Ditto.
7431 * inferior.h (struct regcache): Add opaque declaration.
7432 (stop_registers): Change variable's declared type to ``struct
7435 2002-06-24 Tom Tromey <tromey@redhat.com>
7437 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7438 * target.c (initialize_targets): Fixed typo in
7439 trust-readonly-sections `show' documentation.
7441 * main.c: Marked all strings with _().
7443 2002-06-24 Don Howard <dhoward@redhat.com>
7445 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7446 that means max CORE_ADDR+1.
7447 (lookup_mem_region): Ditto.
7448 (mem_info_command): Ditto.
7450 2002-06-24 Grace Sainsbury <graces@redhat.com>
7452 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7453 (REGISTER_BYTES_OK): Remove.
7454 (REGISTER_BYTES): Remove.
7455 (STORE_STRUCT_RETURN): Remove.
7456 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7457 (STORE_RETURN_VALUE): Remove.
7458 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7459 (FRAME_CHAIN): Remove.
7460 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7461 (FRAME_SAVED_PC): Remove.
7462 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7463 (m68k_store_struct_return): Add.
7464 (m68k_deprecated_extract_return_value): Add.
7465 (m68k_deprecated_extract_struct_value_address): Add.
7466 (m68k_store_return_value): Add.
7467 (m68k_frame_chain): Add.
7468 (m68k_frameless_function_invocation): Add.
7469 (m68k_frame_saved_pc): Add.
7470 (m68k_gdbarch_init): added set_gdbarch calls for new
7471 functions and deleted macros.
7473 2002-06-23 Tom Tromey <tromey@redhat.com>
7475 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7476 (ALLDEPFILES): Likewise.
7477 (udiheaders): Removed.
7478 (udip2soc.o): Likewise.
7479 (udi2go32.o): Likewise.
7481 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7483 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7485 * infrun.c (_initialize_infrun): Delete unnecessary call to
7488 * regcache.h: Update comments describing the regcache_cpy family
7490 (regcache_save, regcache_restore): Delete declaration.
7491 (regcache_save_no_passthrough): Delete declaration.
7492 (regcache_restore_no_passthrough): Delete declaration.
7493 * regcache.c (regcache_save): Delete function.
7494 (regcache_save_no_passthrough): Delete function.
7495 (regcache_restore): Delete function.
7496 (regcache_restore_no_passthrough): Delete function.
7498 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7500 * config/m68k/tm-m68k.h: Fix typo.
7501 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7502 (m68k_frame_init_saved_regs): Declare.
7504 2002-06-21 Jim Blandy <jimb@redhat.com>
7506 Remove some vestiges of Harris 88k support.
7507 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7508 register numbering quirk.
7509 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7510 odd symbols occurring in Harris 88k ELF targets.
7512 2002-06-21 Tom Tromey <tromey@redhat.com>
7514 * gdb_locale.h: New file.
7515 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7516 (defs_h): Added gdb_locale.h.
7517 * configure, config.in: Rebuilt.
7518 * configure.in (PACKAGE): Define.
7519 * defs.h: Include gdb_locale.h.
7520 * main.c (captured_main): Call setlocale, bindtextdomain,
7523 2002-06-21 Dave Brolley <brolley@redhat.com>
7525 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7526 * config/frv/frv.mt: New file.
7527 * config/frv/tm-frv.h: New file.
7528 * configure.tgt: Support frv-*-*.
7529 * Makefile.in (frv-tdep.o): New target.
7530 * frv-tdep.c: New file.
7531 * NEWS: Mention frv.
7533 2002-06-21 Dave Brolley <brolley@redhat.com>
7535 * MAINTAINERS: Add self to "Write After Approval" list.
7537 2002-06-21 Grace Sainsbury <graces@redhat.com>
7539 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7540 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7541 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7542 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7543 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7545 * m68k-tdep.c: Include arch-utils.h
7546 (m68k_register_raw_size): Add.
7547 (m68k_register_virtual_size): Add.
7548 (m68k_register_virtual_type): Add.
7549 (m68k_register_name): Add.
7550 (m68k_stack_align): Add.
7551 (m68k_register_byte): Add.
7552 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7555 2002-06-21 Grace Sainsbury <graces@redhat.com>
7557 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7558 m68k_find_saved_regs.
7559 (m68k_pop_frame): Removed saved_regs structure, and replaced
7560 references to it with frame->saved_regs.
7561 (m68k_gdbarch_init): Added function calls to initialize the
7563 (m68k_fix_call_dummy): Add.
7564 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7565 (CALL_DUMMY): Remove.
7566 (CALL_DUMMY_LENGTH): Remove.
7567 (CALL_DUMMY_START_OFFSET): Remove.
7568 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7569 (FIX_CALL_DUMMY): Remove.
7570 (PUSH_DUMMY_FRAME): Remove.
7571 (POP_FRAME): Remove.
7573 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7575 * parse.c (parse_fprintf): New function used to avoid calls to
7576 fprintf in bison parser generated debug code.
7577 * parser-defs.h: Declaration of new parse_fprintf function.
7578 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7579 Set YYDEBUG to 1 by default.
7580 Set YYFPRINTF as parse_fprintf.
7582 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7584 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7586 (pointer_encoding, enum ptr_encoding): New.
7587 (execute_cfa_program): Take care about pointer encoding.
7588 (dwarf2_build_frame_info): Only call parse_frame_info for
7589 .debug_frame and .eh_frame.
7590 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7591 fixed augmentation handling, added relative addressing,
7592 ignore duplicate FDEs. Added comments.
7593 * dwarf2cfi.c: Reindented.
7595 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7597 * event-top.c (command_handler): Don't use space_at_cmd_start
7598 unless there is sbrk() on the host. Assign time and space data
7599 to union fields of the appropriate length.
7601 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7603 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7604 x86_64_register_name. Return type changed to 'const char *'.
7605 (x86_64_register_name2nr): Rename to x86_64_register_number.
7606 (x86_64_gdbarch_init): Update to reflect the change.
7607 * x86-64-tdep.h: Ditto.
7608 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7609 (supply_fpregset): Ditto.
7611 2002-06-19 Andrew Cagney <cagney@redhat.com>
7613 * regcache.h: Update copyright.
7614 (struct regcache, struct gdbarch): Add opaque declarations.
7615 (current_regcache): Declare global variable.
7616 (regcache_read, regcache_write): Add gdbarch parameter.
7617 (regcache_save, regcache_save_no_passthrough)
7618 (regcache_restore, regcache_restore_no_passthrough)
7619 (regcache_dup, regcache_dup_no_passthrough)
7620 (regcache_cpy, regcache_cpy_no_passthrough)
7621 (deprecated_grub_regcache_for_registers)
7622 (deprecated_grub_regcache_for_register_valid)
7623 (regcache_valid_p): Add function declarations.
7625 * regcache.c: Update copyright.
7626 (regcache_descr_handle): New global variable.
7627 (struct regcache_descr): Define.
7628 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7629 (regcache_descr, xfree_regcache_descr): New functions.
7630 (struct regcache): Define.
7631 (regcache_xmalloc, regcache_xfree): New functions.
7632 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7633 (regcache_dup, regcache_dup_no_passthrough): New functions.
7634 (regcache_valid_p, regcache_read_as_address): New functions.
7635 (deprecated_grub_regcache_for_registers): New function.
7636 (deprecated_grub_regcache_for_register_valid): New function.
7637 (current_regcache): New global variable.
7638 (register_buffer): Add regcache parameter. Update calls.
7639 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7640 (read_register_gen, write_register_gen): Update register_buffer
7641 call. Test for legacy_p instead of gdbarch_register_read_p or
7642 gdbarch_register_write_p.
7643 (regcache_collect): Update register_buffer call.
7644 (build_regcache): Rewrite. Use deprecated grub functions.
7645 (regcache_save, regcache_save_no_passthrough): New functions.
7646 (regcache_restore, regcache_restore_no_passthrough): New
7648 (_initialize_regcache): Create the regcache_data_handle. Swap
7649 current_regcache global variable.
7651 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7652 parameter to regcache_read and regcache_write calls.
7653 (sh4_register_read): Ditto.
7654 (sh64_pseudo_register_read): Ditto.
7655 (sh64_register_read): Ditto.
7656 (sh_pseudo_register_write): Ditto.
7657 (sh4_register_write): Ditto.
7658 (sh64_pseudo_register_write): Ditto.
7659 (sh64_register_write): Ditto.
7661 * defs.h (XCALLOC): Define.
7663 2002-06-19 Grace Sainsbury <graces@redhat.com>
7665 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7666 * m68k-tdep.c (m68k_gdbarch_init): Added.
7667 (m68k_dump_tdep): Added.
7669 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7671 * ada-lang.c (fill_in_ada_prototype): Update comment.
7673 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7675 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7677 (mips_abi_string, mips_abi_strings): New.
7678 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7679 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7680 tdep->mips_abi_string. Honor mips_abi_string. Default to
7681 O32 if no ABI is found.
7682 (mips_dump_tdep): Use mips_abi_strings.
7683 (mips_abi_update): New function.
7684 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7685 ``set mips abi'' and ``show mips abi''. Check the size of
7688 2002-06-19 Andrew Cagney <cagney@redhat.com>
7690 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7693 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7695 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7696 current frame using only the first stack size adjustment. All
7697 subsequent size adjustments are not considered to be part of
7698 the "static" part of the current frame.
7699 Compute the address of the saved registers relative to the
7700 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7701 in use in this frame.
7703 2002-06-18 Don Howard <dhoward@redhat.com>
7705 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7706 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7707 suggesting this solution.
7709 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7711 * config/romp/xm-rtbsd.h: Delete file.
7712 * config/romp/rtbsd.mh: Delete file.
7714 2002-06-18 Keith Seitz <keiths@redhat.com>
7716 * breakpoint.c (condition_command): Post breakpoint_modify
7717 when a condition is added to an existing breakpoint.
7718 (commands_command): Likewise for commands.
7719 (set_ignore_count): Likewise for ignore counts.
7720 If no tty, do not simply return, still need to send event
7722 (ignore_command): Only print a newline if the command came
7724 Don't call breakpoints_changed, since this is now properly
7725 handled by set_ignore_count.
7727 2002-06-18 Andrew Cagney <cagney@redhat.com>
7729 * MAINTAINERS: Note that cris-elf target can be compiled with
7731 * cris-tdep.c (cris_register_name): Make return type constant.
7732 (cris_breakpoint_from_pc): Ditto.
7734 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7736 * frame.h (struct frame_info): Change type of context to
7739 2002-06-17 Andrew Cagney <cagney@redhat.com>
7741 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7743 * gdbarch.h, gdbarch.c: Regenerate.
7744 * config/mips/tm-mips.h (mips_register_name): Update.
7745 * i386-tdep.h (i386_register_name): Update.
7746 * mips-tdep.c (mips_register_name): Update
7747 * alpha-tdep.c (alpha_register_name): Update.
7748 * arch-utils.c (legacy_register_name): Update.
7749 * arch-utils.h (legacy_register_name): Update.
7750 * avr-tdep.c (avr_register_name): Update.
7751 * ia64-tdep.c (ia64_register_name): Update.
7752 * i386-tdep.c (i386_register_name): Update.
7753 * sparc-tdep.c (sparc32_register_name): Update.
7754 (sparc64_register_name): Update.
7755 (sparclite_register_name): Update.
7756 (sparclet_register_name): Update.
7757 * sh-tdep.c (sh_generic_register_name): Update.
7758 (sh_sh_register_name): Update.
7759 (sh_sh3_register_name): Update.
7760 (sh_sh3e_register_name): Update.
7761 (sh_sh_dsp_register_name): Update.
7762 (sh_sh3_dsp_register_name): Update.
7763 (sh_sh4_register_name): Update.
7764 (sh_sh64_register_name): Update.
7765 * s390-tdep.c (s390_register_name): Update.
7766 * rs6000-tdep.c (rs6000_register_name): Update.
7767 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7768 (ns32k_register_name_32382): Update.
7769 * d10v-tdep.c (d10v_ts2_register_name): Update.
7770 (d10v_ts3_register_name): Update.
7771 * xstormy16-tdep.c (xstormy16_register_name): Update.
7772 * vax-tdep.c (vax_register_name): Update.
7773 * v850-tdep.c (v850_register_name): Update.
7774 * m68hc11-tdep.c (m68hc11_register_name): Update.
7775 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7776 (am33_register_name): Update.
7778 2002-06-17 Grace Sainsbury <graces@redhat.com>
7780 * m68k-tdep.c: Reindented.
7782 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7784 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7785 list of predefined types.
7787 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7789 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7790 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7791 REGISTER_CONVERT_TO_RAW): Remove defines.
7792 (i386_register_virtual_type, i386_register_convertible,
7793 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7795 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7796 macros mentioned above.
7798 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7799 (i386lynx_saved_pc_after_call): Remove prototype.
7800 * i386ly-tdep.c: Include "i386-tdep.h".
7801 (i386lynx_saved_pc_after_call): Make static. Use
7802 read_memory_nobpt instead of read_memory. Use
7803 read_memory_unsigned_integer instead of read_memory_integer.
7804 (i386lynx_init_abi): New function.
7805 (i386lynx_coff_osabi_sniffer): New function.
7806 (_initialize_i386bsd_tdep): New function.
7808 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7809 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7810 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7811 (i386_fix_call_dummy): Remove prototype.
7812 * i386-tdep.c (i386_call_dummy_words): New variable.
7813 (i386_gdbarch_init): Adjust for removal of the
7814 macros mentioned above.
7816 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7818 * command.h (add_setshow_auto_boolean_cmd): Replace
7819 add_set_auto_boolean_cmd.
7820 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7821 add_set_auto_boolean_cmd.
7822 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7823 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7824 mask-address'' command.
7825 (show_mask_address): Add cmd parameter.
7826 * remote.c (add_packet_config_cmd): Update. Change type of
7827 set_func and show_func to cmd_sfunc_ftype.
7828 (_initialize_remote): Update `set remote Z-packet'
7829 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7830 (show_remote_protocol_e_packet_cmd): Ditto.
7831 (show_remote_protocol_E_packet_cmd): Ditto.
7832 (show_remote_protocol_P_packet_cmd): Ditto.
7833 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7834 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7835 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7836 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7837 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7838 (show_remote_protocol_Z_packet_cmd): Ditto.
7839 (show_remote_protocol_binary_download_cmd): Ditto.
7840 (show_remote_cmd): Pass NULL to all of above.
7842 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7844 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7845 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7846 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7847 POP_FRAME): Remove defines.
7848 (i386_push_arguments, i386_store_struct_return,
7849 i386_extract_return_value, i386_store_return_value,
7850 i386_extract_struct_value_address, i386_push_dummy_frame,
7851 i386_pop_frame): Renove prototypes.
7852 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7853 macros mentioned above.
7855 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7857 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7858 add_set_boolean_cmd.
7859 (add_setshow_cmd): New function.
7860 * command.h (add_setshow_boolean_cmd): Replace
7861 add_set_boolean_cmd.
7862 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7863 and ``set rdiromatzero''.
7864 * maint.c (_initialize_maint_cmds): Update commented out code.
7865 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7866 * target.c (initialize_targets): Update `set
7867 trust-readonly-sections'.
7868 * remote.c (_initialize_remote): Update `set remotebreak'.
7870 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7872 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7873 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7874 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7875 fit into multi-arch framework.
7876 (i386_breakpoint_from_pc): New function.
7877 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7880 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7881 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7882 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7883 (i386_frameless_function_invocation, i386_frame_num_args,
7884 i386_frame_init_saved_regs): Remove prototypes.
7885 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7886 macros mentioned above.
7888 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7890 * cli/cli-decode.c (set_cmd_cfunc): Update.
7891 (set_cmd_sfunc): Update.
7892 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7893 (set_cmd_sfunc, set_cmd_cfunc): Update.
7894 * cli/cli-decode.h: Update.
7896 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7898 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7899 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7901 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7903 * defs.h (auto_boolean): Declare enum.
7904 * command.h (cmd_auto_boolean): Delete enum.
7905 * mips-tdep.c (mask_address_var): Update.
7906 (mips_mask_address_p): Update.
7907 (show_mask_address): Update.
7908 * remote.c (struct packet_config): Update.
7909 (update_packet_config): Update.
7910 (show_packet_config_cmd): Update.
7911 (packet_ok): Update.
7912 (add_packet_config_cmd): Update.
7913 (_initialize_remote):
7914 * command.h: Update.
7915 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7916 (do_setshow_command): Update.
7917 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7918 * cli/cli-decode.h: Update.
7920 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7922 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7923 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7924 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7925 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7926 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7927 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7929 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7930 list of DJGPP COFF targets.
7932 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7933 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7934 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7935 (FP0_REGNUM): Remove define.
7936 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7937 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7938 (i386_register_virtual_size): Remove protoype.
7939 * i386-tdep.c (i386_register_virtual_size): Removed.
7940 (i386_extract_return_value, i386_store_return_value): Use
7941 FP0_REGNUM instead of NUM_FREGS to determine whether the
7942 floating-point registers are available.
7943 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7944 Adjust for removal of macros mentioned above.
7946 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7948 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7950 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7952 (supply_gregset, fill_gregset): Remove use of register keyword and
7953 remove declaration for regmap. Use I386_NUM_GREGS instead of
7954 NUM_REGS and NUM_FREGS.
7955 (FPREGSET_FSAVE_OFFSET): Remove.
7956 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7957 NUM_FREGS to determine whether the floating-point registers are
7960 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7961 gnu_store_registers): Replace usage of NUM_GREGS with
7964 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7965 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7966 usage of NUM_GREGS with I386_NUM_GREGS.
7968 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7970 * i386bsd-nat.c: Include "i386-tdep.h".
7971 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7974 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7975 and associated comment. They no longer make any sense, since we
7976 don't use this file anymore on Linux.
7978 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7979 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7980 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7981 elements in these arrays.
7982 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7985 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7987 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7988 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7990 2002-06-14 Andrew Cagney <cagney@redhat.com>
7992 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7993 EXTRACT_RETURN_VALUE.
7994 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7995 EXTRACT_STRUCT_VALUE_ADDRESS.
7996 * gdbarch.h, gdbarch.c: Regenerate.
7998 * values.c (value_being_returned): Handle
7999 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8000 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8002 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8003 * arm-tdep.c (arm_gdbarch_init): Update.
8004 * avr-tdep.c (avr_gdbarch_init): Update.
8005 * cris-tdep.c (cris_gdbarch_init): Update.
8006 * d10v-tdep.c (d10v_gdbarch_init): Update.
8007 * ia64-tdep.c (ia64_gdbarch_init): Update.
8008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8010 * s390-tdep.c (s390_gdbarch_init): Update.
8011 * sh-tdep.c (sh_gdbarch_init): Update.
8012 * s390-tdep.c (s390_gdbarch_init): Update.
8013 * sparc-tdep.c (sparc_gdbarch_init): Update.
8014 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8015 * v850-tdep.c (v850_gdbarch_init): Update.
8016 * vax-tdep.c (vax_gdbarch_init): Update.
8017 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8020 * config/arc/tm-arc.h: Update.
8021 * config/d30v/tm-d30v.h: Update.
8022 * config/fr30/tm-fr30.h: Update.
8023 * config/h8300/tm-h8300.h: Update.
8024 * config/h8500/tm-h8500.h: Update.
8025 * config/i386/tm-i386.h: Update.
8026 * config/i386/tm-ptx.h: Update.
8027 * config/i386/tm-symmetry.h: Update.
8028 * config/i960/tm-i960.h: Update.
8029 * config/m32r/tm-m32r.h: Update.
8030 * config/m68k/tm-delta68.h: Update.
8031 * config/m68k/tm-linux.h: Update.
8032 * config/m68k/tm-m68k.h: Update.
8033 * config/m88k/tm-m88k.h: Update.
8034 * config/mcore/tm-mcore.h: Update.
8035 * config/mips/tm-mips.h: Update.
8036 * config/mn10200/tm-mn10200.h: Update.
8037 * config/pa/tm-hppa.h: Update.
8038 * config/pa/tm-hppa64.h: Update.
8039 * config/sparc/tm-sp64.h: Update.
8040 * config/sparc/tm-sparc.h: Update.
8041 * config/sparc/tm-sparclet.h: Update.
8042 * config/z8k/tm-z8k.h: Update.
8044 2002-06-14 Andrew Cagney <cagney@redhat.com>
8046 * Makefile.in (i386_linux_tdep_h): Define.
8047 (i386_tdep_h, i387_tdep_h): Define.
8048 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8049 $(i386_tdep_h) and $(i387_tdep_h).
8050 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8052 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8054 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8055 Already covered by the default.
8057 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8058 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8059 (i386_gdbarch_init): Initialize long_double_format and long_double
8062 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8063 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8065 * config/i386/i386sol2.mh: ... here.
8066 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8067 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8068 (SIGCONTEXT_PC_OFFSET): Remove define.
8069 (IN_SIGTRAMP): Remove define.
8070 * i386-sol2-tdep.c: New file.
8072 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8073 * config/i386/tm-i386nw.h: Removed.
8075 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8076 USE_STRUCT_CONVENTION): Remove defines.
8077 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8078 (get_longjmp_target): Remove prototype.
8079 (IN_SIGTRAMP): Remove define.
8080 (i386bsd_in_sigtramp): Remove prototype.
8081 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8082 function. Update comment accordingly
8083 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8084 (FRAME_SAVED_PC): Remove define.
8085 (i386bsd_frame_saved_pc): Remove prototype.
8086 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8087 GET_LONGJMP_TARGET): Remove defines.
8088 (get_longjmp_target): Remove prototype.
8089 (IN_SIGTRAMP): Remove define.
8090 (i386bsd_in_sigtramp): Remove prototype.
8091 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8092 function. Update comment accordingly
8093 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8094 (FRAME_SAVED_PC): Remove define.
8095 (i386bsd_frame_saved_pc): Remove prototype.
8096 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8098 (USE_STRUCT_CONVENTION): Remove prototype.
8099 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8101 (_initialize_i386bsd_nat): Revise logic to determine some
8102 constants at compile time when compiling a native GDB. Warn if
8103 things don't match up with what we expect.
8104 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8106 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8107 to use date stored in `struct gdbarch_tdep'.
8108 (i386bsd_sigcontext_offset): Remove varaible.
8109 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8110 stored in `struct gdbarch_tdep'.
8111 (i386bsd_frame_saved_pc): Make static.
8112 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8113 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8114 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8115 i386fbsd4_sc_pc_offset): New variables.
8116 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8117 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8119 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8121 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8122 Modify the value of i386fbsd_sigtramp_start and
8123 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8124 i386fbsd_sigtramp_end.
8125 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8128 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8129 define to i386-linux-tdep.h.
8130 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8131 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8133 (i386_linux_register_name, i386_linux_register_byte,
8134 i386_linux_register_raw_size): Remove prototypes.
8135 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8136 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8137 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8138 TARGET_WRITE_PC): Remove defines.
8139 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8140 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8141 i386_linux_write_pc): Remove prototypes.
8142 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8143 (get_longjmp_target): Remove prototype.
8144 * i386-linux-tdep.h: New file.
8145 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8146 * i386-linux-tdep.c: Include "i386-tdep.h" and
8147 "i386-linux-tdep.h".
8148 (i386_linux_register_name, i386_linux_register_byte,
8149 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8150 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8152 (i386_linux_init_abi): New function.
8153 (_initialize_i386_linux_tdep): New function.
8155 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8156 (i386_saved_pc_after_call): Remove prototype.
8157 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8158 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8159 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8160 (i386_register_name, i386_stab_reg_to_regnum,
8161 i386_dwarf_reg_to_regnum): Remove prototypes.
8162 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8163 SIZEOF_SSE_REGS): Remove defines.
8164 (REGISTER_BYTES): Remove define.
8165 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8166 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8167 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8168 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8169 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8170 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8171 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8172 (get_longjmp_target): Remove prototype.
8173 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8174 (sigtramp_saved_pc): Remove define.
8175 (i386v4_sigtramp_saved_pc): Remove prototype.
8176 * config/i386/tm-go32.h (FRAME_CHAIN,
8177 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8178 (i386go32_frame_saved_pc): Remove prototype.
8179 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8180 (get_longjmp_target): Remove prototype.
8181 * i386-tdep.h: Include "osabi.h".
8182 (enum i386_abi): Removed.
8183 (enum struct_return): New enum.
8184 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8185 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8186 sc_pc_offset members.
8187 (i386_gdbarch_register_os_abi): Remove prototype.
8188 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8189 I386_SSE_NUM_REGS): New defines.
8190 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8191 I386_SSE_SIZEOF_REGS): New defines.
8192 (i386_register_name, i386_register_byte, i386_register_raw_size):
8194 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8195 (i386bsd_sigtramp_saved_pc): New prototype.
8196 * i386-tdep.c: Don't include "elf-bfd.h".
8197 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8198 i386_frame_chain, i386_saved_pc_after_call): Make static.
8199 (i386_frame_saved_pc): Rewrite to call architecture dependent
8200 function to deal with signal handlers. Make static.
8201 (i386go32_frame_saved_pc): Removed.
8202 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8204 (i386_get_longjmp_target): New function.
8205 (default_struct_convention, pcc_struct_convention,
8206 reg_struct_convention, valid_conventions, struct_convention): New
8208 (i386_use_struct_convention): New function.
8209 (i386v4_sigtramp_saved_pc): Renamed to
8210 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8211 (i386_pc_in_sigtramp): New function.
8212 (i386_abi_names): Removed.
8213 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8214 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8216 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8217 i386_gdbarch_register_os_abi): Removed.
8218 (struct i386_abi_handler): Removed.
8219 (i386_abi_handler_list): Removed.
8220 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8222 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8223 i386_nw_init_abi): New functions.
8224 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8225 Use set_gdbarch_xxx() calls instead of relying on macros for a
8227 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8228 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8229 Register the various architecture variants defined in this file.
8231 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8233 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8234 (struct main_type): Remove arg_types member. Update comments for
8236 (TYPE_ARG_TYPES): Remove.
8237 (TYPE_FN_FIELD_ARGS): Update.
8238 (smash_to_method_type): Update prototype.
8240 * c-typeprint.c (cp_type_print_method_args): Take method type
8241 instead of argument list. Use new argument layout. Simplify.
8242 (c_type_print_args): Use new argument layout. Simplify.
8243 (c_type_print_base): Update call to cp_type_print_method_args.
8244 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8245 argument; use die->type instead. Update call to
8246 smash_to_method_type.
8247 (read_structure_scope): Update call to dwarf2_add_member_fn.
8248 * gdbtypes.c (allocate_stub_method): Update comment.
8249 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8250 Use new argument layout.
8251 (check_stub_method): Use new argument layout. Don't count
8252 void as an argument.
8253 (print_arg_types): Update comments. Use new argument layout.
8254 (recursive_dump_type): Don't print arg_types member.
8255 * hpread.c (hpread_read_struct_type): Use new argument layout.
8256 (fixup_class_method_type): Likewise.
8257 (hpread_type_lookup): Likewise.
8258 * stabsread.c (read_type): Update calls to read_args and
8259 smash_to_method_type.
8260 (read_args): Use new argument layout. Simplify.
8261 * valops.c (typecmp): Use new argument layout. Update parameters
8262 and comments. Simplify.
8263 (hand_function_call): Use new argument layout.
8264 (search_struct_method): Update call to typecmp.
8265 (find_overload_match): Use new argument layout.
8267 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8269 * NEWS: Mention multithreaded debug support for gdbserver.
8271 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8273 * MAINTAINERS: Mention NEWS.
8275 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8277 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8278 (struct mips_objfile_private, compare_pdr_entries): New.
8279 (non_heuristic_proc_desc): Read the ".pdr" section if it
8282 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8284 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8285 (arm_debug): New static variable.
8286 (_initialize_arm_tdep): Add ``set debug arm'' command.
8288 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8290 * Makefile.in (sim_arm_h): Define.
8291 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8292 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8293 (arm_register_sim_regno): New function, map an internal REGNUM
8294 onto a simulator register number.
8295 (arm_gdbarch_init): Set register_sim_regno.
8297 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8299 * MAINTAINERS: Add self.
8301 2002-06-11 Jim Blandy <jimb@redhat.com>
8303 * source.c (source_info): Mention whether the symtab has
8304 information about preprocessor macros.
8306 Call the command `info macro', not `show macro'.
8307 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8309 (_initialize_macrocmd): Register `info_macro_command' in
8310 `infolist', not `showlist'.
8312 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8314 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8315 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8316 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8317 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8318 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8320 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8321 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8322 (_initialize_mips_tdep): Remove dead code.
8323 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8324 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8325 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8326 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8327 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8328 MIPS_LAST_FP_ARG_REGNUM): Remove.
8330 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8332 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8333 (unwind_tmp_obstack_free, parse_frame_info)
8334 (update_context, cfi_read_fp, cfi_write_fp)
8335 (cfi_frame_chain, cfi_init_extra_frame_info)
8336 (cfi_virtual_frame_pointer): Use the above function.
8337 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8339 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8341 * v850-tdep.c (v850_type_is_scalar): New function.
8342 (v850_use_struct_convention): Match current gcc implementation
8343 as close as possible.
8344 (v850_push_arguments): Fix stack_offset handling. Don't write
8345 struct_addr into register. This is done by v850_store_struct_return.
8346 (v850_extract_return_value): Care for structs.
8347 (v850_store_return_value): Ditto.
8348 (v850_store_struct_return): Actually write address.
8350 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8352 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8353 without debug information too.
8355 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8357 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8358 Make multi-arch pure.
8359 * gdbarch.h, gdbarch.c: Re-generate.
8360 * arm-tdep.c (arm_print_float_info): Update.
8361 * arch-utils.h (default_print_float_info): Update.
8362 * arch-utils.c (default_print_float_info): Update.
8363 * infcmd.c (float_info): Update call.
8365 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8367 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8368 the front of the initialize list.
8370 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8372 * infrun.c (struct inferior_status): Replace fields
8373 selected_frame_address and selected_level with field
8375 (save_inferior_status): Update. Use get_frame_id.
8376 (struct restore_selected_frame_args): Delete.
8377 (restore_selected_frame): Update. Use frame_find_by_id.
8378 (restore_inferior_status): Update.
8380 * breakpoint.h (struct breakpoint): Change type of
8381 watchpoint_frame to frame_id.
8382 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8383 call to get_current_frame.
8384 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8386 (watchpoint_check): Use frame_find_by_id.
8388 * frame.h (record_selected_frame): Delete declaration.
8389 * stack.c (record_selected_frame): Delete function.
8391 * frame.h (struct frame_id): Define.
8392 (get_frame_id): Declare.
8393 (frame_find_by_id): Declare.
8394 * frame.c (frame_find_by_id): New function.
8395 (get_frame_id): New function.
8397 2002-06-10 Andrey Volkov <avolkov@transas.com>
8399 * ser-e7kpc.c: Fix duplicated define and call of
8400 _initialize_ser_e7000pc
8402 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8404 * signals/signals.c (target_signal_from_host): Fix #ifdef
8406 (do_target_signal_to_host): Likewise.
8408 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8410 * mips-tdep.c (mips_find_abi_section): New function.
8411 (mips_gdbarch_init): Call it.
8413 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8415 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8416 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8417 after Andrew's 2002-06-08 gdbarch change.
8419 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8421 * i386-linux-nat.c (suppy_gregset): Don't supply
8422 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8424 (fill_gregset): Don't fetch it under the same circumstances.
8426 2002-06-09 Andrew Cagney <cagney@redhat.com>
8428 * Makefile.in (callback_h): Define.
8429 (remote_sim_h): Update path to remote-sim.h.
8430 (remote-rdp.o): Add $(callback_h).
8431 (remote-sim.o): Use $(callback_h).
8432 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8433 * remote-rdp.c: Include "gdb/callback.h".
8435 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8437 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8438 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8440 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8442 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8443 * rdi-share/serpardr.c: Ditto.
8444 * rdi-share/unixcomm.c: Ditto.
8445 * rdi-share/serdrv.c: Ditto.
8446 * rdi-share/hostchan.h: Ditto.
8447 * rdi-share/hostchan.c: Ditto.
8448 * rdi-share/host.h: Ditto.
8449 * rdi-share/devsw.c: Ditto.
8451 * objfiles.h: Change type of obj_private to void pointer.
8452 * pa64solib.c: Update copyright. Don't include "assert.h", use
8453 strcmp instead of STREQ, use LONGEST, do not use PTR
8454 * somsolib.c: Ditto.
8456 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8457 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8458 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8460 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8462 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8463 (default_get_saved_register): Delete function.
8464 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8465 generic_unwind_get_saved_register.
8466 * gdbarch.h, gdbarch.c: Re-generate.
8468 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8470 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8471 generic_func_frame_chain_valid.
8472 * gdbarch.h, gdbarch.c: Re-generate.
8473 * blockframe.c (generic_func_frame_chain_valid): Only check
8474 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8475 passing FP to PC_IN_CALL_DUMMY.
8478 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8480 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8481 (register_gdbarch_data): Initialize init_p.
8482 (gdbarch_data): Initialize data pointer using the init function.
8483 (init_gdbarch_data): Delete function.
8484 (gdbarch_update_p): Update.
8485 (initialize_non_multiarch): Update.
8486 (struct gdbarch): Add field initialized_p.
8487 * gdbarch.h, gdbarch.c: Re-generate.
8489 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8491 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8492 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8493 better do the things actually here.
8494 * x86-64-tdep.c (x86_64_register_name2nr): New.
8495 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8496 (x86_64_gdbarch_init): Respect the above change.
8497 * x86-64-tdep.h (x86_64_register_name2nr)
8498 (x86_64_register_nr2name): Add prototypes.
8499 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8501 2002-06-06 Michael Snyder <msnyder@redhat.com>
8503 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8504 Delete extra braces and re-indent.
8505 (d10v_store_return_value): Char return values
8506 must be shifted over by one byte in R0.
8507 (d10v_extract_return_value): Delete extra braces, re-indent.
8509 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8511 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8512 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8513 (d10v_integer_to_address): Rewrite.
8514 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8515 the d10v specific functions which take care of converting to the
8518 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8520 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8521 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8523 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8525 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8527 * config/tm-linux.h: Ditto.
8528 * config/alpha/tm-alphalinux.h: Ditto.
8529 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8530 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8531 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8532 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8533 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8534 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8535 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8536 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8537 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8538 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8539 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8540 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8541 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8542 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8543 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8544 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8545 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8546 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8547 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8548 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8549 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8550 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8551 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8552 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8553 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8554 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8555 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8556 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8557 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8558 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8559 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8560 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8561 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8562 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8563 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8564 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8565 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8567 2002-05-04 Aidan Skinner <aidan@velvet.net>
8569 * ada-exp.tab.c: New file
8570 * ada-exp.y: New file
8571 * ada-lang.c: New file
8572 * ada-lang.h: New file
8573 * ada-lex.c: New file
8574 * ada-lex.l: New file
8575 * ada-tasks.c: New file
8576 * ada-typeprint.c: New file
8577 * ada-valprint.c: New file
8579 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8581 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8582 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8584 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8586 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8587 insetead of ppc-linux-tdep.o.
8588 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8589 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8591 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8593 2002-05-07 Christian Groessler <chris@groessler.org>
8594 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8595 bit register contents for little endian hosts.
8597 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8599 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8602 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8604 * gdbarch.h: Regenerate.
8606 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8608 * MAINTAINERS: Add everyone to write-after-approval list.
8610 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8612 * stack.c (frame_info): Use frame_register_unwind instead of
8613 saved_regs. Mention when the SP is on the stack or in a register.
8615 * frame.h (frame_register_unwind_ftype): Define. Document.
8616 (struct frame_info): Add field register_unwind and
8617 register_unwind_cache.
8618 (frame_register_unwind): Declare.
8619 (generic_unwind_get_saved_register): Declare.
8621 * frame.c (frame_register_unwind): New function.
8622 (generic_unwind_get_saved_register): New function.
8624 * blockframe.c (generic_call_dummy_register_unwind): New function.
8625 (frame_saved_regs_register_unwind): New function.
8626 (set_unwind_by_pc): New function.
8627 (create_new_frame): New function.
8628 (get_prev_frame): New function.
8630 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8632 * a29k-share/: Delete directory.
8633 * remote-vx29k.c: Delete file.
8635 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8637 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8638 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8640 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8642 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8643 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8646 (sparcnbsd-tdep.o): New dependency lists.
8647 * NEWS: Note new UltraSPARC NetBSD native configuration.
8648 * configure.host (sparc64-*-netbsd*): New host.
8649 * configure.tgt (sparc-*-netbsdelf*)
8650 (sparc-*-netbsd*): Set gdb_target to nbsd.
8651 (sparc64-*-netbsd*): New target.
8652 * sparc64nbsd-nat.c: New file.
8653 * sparcnbsd-nat.c: New file.
8654 * sparcnbsd-tdep.c: New file.
8655 * sparcnbsd-tdep.h: New file.
8656 * config/sparc/nbsd.mt: New file.
8657 * config/sparc/nbsd64.mh: New file.
8658 * config/sparc/nbsd64.mt: New file.
8659 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8660 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8662 * config/sparc/nbsdaout.mt: Remove.
8663 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8664 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8666 * config/sparc/nbsdelf.mt: Remove.
8667 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8668 sparc-nat.c compatiblity defines.
8669 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8670 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8671 * config/sparc/tm-nbsd64.h: New file.
8672 * config/sparc/tm-nbsdaout.h: Remove.
8673 * config/sparc/xm-nbsd.h: Remove.
8675 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8677 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8678 * sparc-tdep.c: Include osabi.h.
8679 (gdbarch_tdep): Add osabi member.
8680 (_initialize_sparc_tdep): Use gdbarch_register.
8681 (sparc_gdbarch_init): Use generic OS ABI framework.
8682 (sparc_dump_tdep): New function.
8684 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8686 * corefile.c (do_captured_read_memory_integer): Return non-zero
8688 (safe_read_memory_integer): Copy result of memory read when
8689 status is non-zero. Also, add comments.
8691 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8693 * Makefile.in (ppc_tdep_h): Define.
8696 (rs6000-tdep.o): Use $(ppc_tdep_h).
8699 (ppcnbsd-tdep.o): New dependency lists.
8700 * ppc-tdep.h: Use generic OS ABI framework.
8701 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8702 (ppc_linux_init_abi): New functions.
8703 (ppc_sysv_abi_broken_use_struct_convention)
8704 (ppc_sysv_abi_use_struct_convention)
8705 (ppc_sysv_abi_push_arguments): Move to...
8706 * ppc-sysv-tdep.c: ...here.
8707 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8708 * rs6000-tdep.c (process_note_abi_tag_sections)
8709 (get_elfosabi): Remove.
8710 (rs6000_gdbarch_init): Use generic OS ABI framework.
8711 (rs6000_dump_tdep): New function.
8712 (_initialize_rs6000_tdep): Use gdbarch_register.
8713 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8714 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8715 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8716 of ppc-linux-tdep.o.
8717 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8718 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8719 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8720 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8721 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8722 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8724 2002-05-29 Jim Blandy <jimb@redhat.com>
8726 * macroscope.c (default_macro_scope): Put `void' in empty argument
8729 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8731 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8732 * arch-utils.c: Include "sim-regno.h".
8733 * gdbarch.sh: Don't include "sim-regno.h".
8734 * gdbarch.h, gdbarch.c: Regenerate.
8735 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8737 * arch-utils.h (legacy_register_sim_regno): To here.
8738 * remote-sim.c (legacy_register_sim_regno): Move function from
8740 * arch-utils.c (legacy_register_sim_regno): To here.
8742 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8744 * sim-regno.h: New file.
8745 * Makefile.in (sim_regno_h): Define.
8746 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8747 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8748 (legacy_register_sim_regno): New function.
8749 (one2one_register_sim_regno): New function.
8750 (gdbsim_fetch_register): Rewrite.
8751 (gdbsim_store_register): Only store a register when
8752 REGISTER_SIM_REGNO is valid.
8753 * d10v-tdep.c: Include "sim-regno.h".
8754 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8755 (d10v_ts3_register_sim_regno): Ditto.
8756 * gdbarch.sh: Include "sim-regno.h".
8757 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8758 * gdbarch.h, gdbarch.c: Regenerate.
8759 * arch-utils.h (default_register_sim_regno): Delete declaration.
8760 * arch-utils.c (default_register_sim_regno): Delete function.
8762 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8764 * ppcnbsd-nat.c: Rewrite.
8765 * ppcnbsd-tdep.c: New file.
8766 * ppcnbsd-tdep.h: New file.
8767 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8768 solib.o, and solib-svr4.o.
8769 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8770 nbsd-tdep.o, and corelow.o.
8772 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8774 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8775 `tr' and `sed'. Mention that `broken' targets are not expected to
8778 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8780 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8781 Let PC point right after the prologue before looking up symbols.
8783 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8785 * i386-tdep.c (i386_register_virtual_type): Return
8786 builtin_type_vec128i for SSE registers.
8788 * gdbtypes.h (builtin_type_vec128i): Declare.
8790 * gdbtypes.c (build_builtin_type_vec128i): New function.
8791 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8792 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8793 (build_gdbtypes): Initialize new builtin vector types.
8794 (_initialize_gdbtypes): Register new vector types with gdbarch.
8796 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8798 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8799 since it has been multi-arch'd.
8800 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8801 Move Alpha and VAX multi-arch news entries to same section
8802 as other multi-arch news.
8804 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8806 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8807 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8808 static. Rename some register numbers to put them in ns32k-tdep
8810 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8811 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8813 (_initialize_ns32k_tdep): Use gdbarch_register.
8814 * ns32k-tdep.h: New file.
8815 * ns32knbsd-tdep.c: New file.
8816 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8817 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8818 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8819 REGISTER_BYTES, REGISTER_BYTE): Remove.
8820 * config/ns32k/tm-ns32k.h: New file.
8821 * config/ns32k/tm-umax.h: Remove.
8823 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8825 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8826 ns32k_store_struct_return, ns32k_extract_return_value,
8827 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8829 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8830 ns32k_saved_pc_after_call.
8831 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8832 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8833 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8834 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8835 ns32k_extract_struct_value_address.
8837 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8839 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8840 ns32k_fix_call_dummy): New.
8841 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8842 ns32k_call_dummy_words.
8843 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8844 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8845 CALL_DUMMY_NARGS): Remove.
8846 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8848 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8850 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8851 ns32k_frame_saved_pc, ns32k_frame_args_address,
8852 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8853 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8854 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8855 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8856 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8857 (BREAKPOINT): Remove..
8858 (FRAME_CHAIN): Define as ns32k_frame_chain.
8859 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8860 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8861 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8862 (FRAME_FIND_SAVED_REGS): Remove.
8863 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8864 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8865 (POP_FRAME): Define as ns32k_pop_frame.
8867 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8869 * ns32k-tdep.c (ns32k_register_byte_32082,
8870 ns32k_register_byte_32382, ns32k_register_raw_size,
8871 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8873 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8874 ns32k_register_byte_32382.
8875 * config/ns32k/tm-umax.h: Update copyright years.
8876 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8877 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8878 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8879 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8880 (ns32k_get_enter_addr): Fix prototype.
8882 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8884 * ns32k-tdep.c: Update copyright years.
8885 (ns32k_register_name_32082): New function.
8886 (ns32k_register_name_32382): Ditto.
8887 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8888 (REGISTER_NAME): Define as ns32k_register_name_32382.
8889 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8890 (REGISTER_NAME): Define as ns32k_register_name_32082.
8892 2002-05-24 Jim Blandy <jimb@redhat.com>
8894 * dwarf2read.c (free_line_header): Use xfree, not free.
8896 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8898 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8899 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8901 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8903 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8905 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8907 From Ross Alexander at NEC Europe:
8908 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8910 2002-05-23 Michael Snyder <msnyder@redhat.com>
8912 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8913 for input, rather than parse_and_eval_address.
8915 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8917 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8918 * Makefile.in (sim_d10v_h): Update definition.
8920 2002-05-24 Andrew Cagney <cagney@redhat.com>
8922 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8923 change `2002-05-22 Michael Snyder' below.
8924 (d10v_push_arguments): Ditto.
8925 (d10v_extract_return_value): Ditto.
8927 2002-05-23 Jim Blandy <jimb@redhat.com>
8929 * macrotab.c (check_for_redefinition): Don't complain if the new
8930 definition is the same as the previous one. Take more arguments
8931 to allow the comparison.
8932 (macro_define_object, macro_define_function): Pass more arguments
8933 to check_for_redefinition.
8935 2002-05-22 Michael Snyder <msnyder@redhat.com>
8937 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8938 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8939 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8940 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8941 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8942 Add a temp variable to save a call (and a memory read).
8943 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8944 if possible (so that PC_IN_CALL_DUMMY will work).
8946 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8948 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8950 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8952 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8954 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8955 (dwarf2_build_frame_info): Add offset to fde->initial_location
8956 so that frames of shared libraries are mapped correctly.
8957 (execute_stack_op): Change type of 'result' from ULONGEST to
8960 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8962 * config/alpha/tm-nbsd.h: Include solib.h.
8964 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8966 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8967 assumptions about the host's byte order.
8969 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8971 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8973 * alphanbsd-tdep.c: Include solib-svr4.h.
8974 * shnbsd-tdep.c: Ditto.
8976 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8978 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8979 nbsd-tdep.h to dependency list.
8980 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8981 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8982 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8983 nbsdaout.mh and nbsdelf.mh consistently.
8984 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8985 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8986 nbsdaout.mt and nbsdelf.mh consistently.
8987 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8988 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8989 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8990 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8991 a.out shared library stuff from here...
8992 * config/nm-nbsdaout.h: ...to here.
8993 * config/tm-nbsd.h: Remove.
8994 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8995 * config/arm/nbsd.mh: Remove.
8996 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8998 * config/arm/nbsdaout.mh: New file.
8999 * config/arm/nbsdelf.mh: New file.
9000 * config/arm/nm-nbsdaout.h: New file.
9001 * config/i386/nbsd.mh: Remove.
9002 * config/i386/nbsd.mt: Remove.
9003 * config/i386/nbsdaout.mh: New file.
9004 * config/i386/nbsdaout.mt: New file.
9005 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9006 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9007 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9008 i386_register_u_addr): Remove.
9009 * config/i386/nm-nbsdaout.h: New file.
9010 * config/i386/nm-nbsdelf.h: Remove.
9011 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9012 (USE_STRUCT_CONVENTION): Remove.
9013 * config/i386/tm-nbsdaout.h: New file.
9014 * config/i386/tm-nbsdelf.h: Remove.
9015 * config/m68k/nbsd.mh: Remove.
9016 * config/m68k/nbsd.mt: Remove.
9017 * config/m68k/nbsdaout.mh: New file.
9018 * config/m68k/nbsdaout.mt: New file.
9019 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9020 * config/m68k/nm-nbsdaout.h: New file.
9021 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9022 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9023 * config/ns32k/nbsd.mh: Remove.
9024 * config/ns32k/nbsd.mt: Remove.
9025 * config/ns32k/nbsdaout.mh: New file.
9026 * config/ns32k/nbsdaout.mt: New file.
9027 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9028 * config/ns32k/nm-nbsdaout.h: New file.
9029 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9030 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9031 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9032 (SVR4_SHARED_LIBS): Remove.
9033 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9034 * config/sparc/nbsd.mh: Remove.
9035 * config/sparc/nbsd.mt: Remove.
9036 * config/sparc/nbsdaout.mh: New file.
9037 * config/sparc/nbsdaout.mt: New file.
9038 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9039 * config/sparc/nbsdelf.mt: New file.
9040 * config/sparc/nm-nbsdaout.h: New file.
9041 * config/sparc/nm-nbsdelf.h: Remove.
9042 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9043 * config/sparc/tm-nbsdaout.h: New file.
9045 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9047 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9049 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9051 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9053 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9055 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9057 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9059 * NEWS: Note new MIPS NetBSD native configuration.
9060 * configure.host (mips*-*-netbsd*): New host.
9061 * configure.tgt (mips*-*-netbsd*): New target.
9062 * mipsnbsd-nat.c: New file.
9063 * mipsnbsd-tdep.c: New file.
9064 * mipsnbsd-tdep.h: New file.
9065 * config/mips/nbsd.mh: New file.
9066 * config/mips/nbsd.mt: New file.
9067 * config/mips/nm-nbsd.h: New file.
9068 * config/mips/tm-nbsd.h: New file.
9070 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9072 * Makefile.in (SFILES): Add osabi.c.
9073 (COMMON_OBS): Add osabi.o.
9074 (osabi.o): New dependency list.
9075 * osabi.c: New file.
9076 * osabi.h: New file.
9077 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9079 * Makefile.in (alpha_tdep_h): Define and use instead of
9081 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9082 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9084 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9085 * alpha-tdep.h: Include osabi.h.
9086 (alpha_abi): Remove.
9087 (gdbarch_tdep): Use generic OS ABI framework.
9088 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9089 gdbarch_register_osabi.
9090 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9091 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9092 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9094 * Makefile.in (sh_tdep_h): Add osabi.h.
9095 * sh-tdep.h (sh_osabi): Remove.
9096 (gdbarch_tdep): Use generic OS ABI framework.
9097 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9098 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9099 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9100 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9102 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9103 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9104 gdbarch_register_osabi.
9105 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9106 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9107 (get_elfosabi): Rename to...
9108 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9109 ABI framework support routines.
9110 (arm_gdbarch_init): Use generic OS ABI framework.
9111 (arm_dump_tdep): Likewise.
9112 (_initialize_arm_tdep): Likewise.
9113 * arm-tdep.h: Include osabi.h.
9115 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9117 (arm_gdbarch_register_os_abi): Remove prototype.
9118 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9119 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9121 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9122 * mips-tdep.c: Include osabi.h.
9123 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9126 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9128 * h8300-tdep.c: Fix formatting.
9130 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9132 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9133 printing vector registers.
9135 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9137 From Fernando Nasser:
9138 * remote.c (remote_async_open_1): Re-throw the exception when the
9140 (remote_cisco_open): Ditto.
9141 (remote_open_1): Ditto.
9143 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9145 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9146 (remote_start_remote): Add uiout parameter. Pass through to
9147 remote_start_remote_dummy.
9148 (remote_open_1): Use catch_exception instead of catch_errors.
9149 (remote_async_open_1): Ditto.
9150 (remote_cisco_open): Ditto.
9152 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9154 * remote.c (remote_start_remote): Replace PTR with void pointer.
9155 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9158 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9160 * gdb_indent.sh: Allow the script to be run in the sim directory.
9162 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9164 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9165 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9167 * corelow.c (core_open): Only call set_gdbarch_from_file if
9170 2002-05-17 Andrey Volkov <avolkov@transas.com>
9172 * h8300-tdep.c: Add support of EXR register
9173 * config/h8300/tm-h8300.h: Ditto.
9175 2002-05-17 Andrey Volkov <avolkov@transas.com>
9177 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9179 2002-05-17 Andrey Volkov <avolkov@transas.com>
9181 * h8300-tdep.c: Change literal regnums to REGNO.
9183 2002-05-17 Jim Blandy <jimb@redhat.com>
9185 * NEWS: Note addition of macro support.
9187 Expand preprocessor macros in C expressions.
9188 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9189 (scan_macro_expansion, scanning_macro_expansion,
9190 finished_macro_expansion): New function declarations.
9191 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9192 variable declarations.
9193 * parser-defs.h (expression_context_pc): New declaration.
9194 * parse.c (expression_context_pc): New variable.
9195 (parse_exp_1): Set expression_context_pc, as well as
9196 expression_context_block.
9197 * c-exp.y (yylex): If we're not already reading the result of a
9198 macro expansion, try to macro-expand the next token. When we're
9199 done scanning a macro expansion, switch back to the mainline text.
9200 Commas and `if's in a macro's expansion don't terminate the input.
9201 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9202 (macro_original_text, macro_expanded_text,
9203 expression_macro_lookup_func, expression_macro_lookup_baton): New
9205 (scan_macro_expansion, scanning_macro_expansion,
9206 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9207 c_preprocess_and_parse): New functions.
9208 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9209 c_preprocess_and_parse, instead of c_parse.
9210 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9211 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9213 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9215 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9216 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9217 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9219 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9221 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9223 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9225 * Makefile.in (sh_tdep_h): Define and use.
9226 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9227 register enum): Move to...
9228 * * sh-tdep.h: ...here.
9229 * sh-tdep.c: Include sh-tdep.h.
9230 * sh3-rom.c: Likewise.
9231 * shnbsd-tdep.c: Likewise.
9233 2002-05-16 Michael Snyder <msnyder@redhat.com>
9235 * arm-tdep.c: Spelling fix in comment.
9237 2002-05-16 Jim Blandy <jimb@redhat.com>
9239 Add commands for manually expanding macros and showing their
9241 * macrocmd.c, macroscope.c, macroscope.h: New files.
9242 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9243 (macroscope_h): New variable.
9244 (HFILES_NO_SRCDIR): Add macroscope.h.
9245 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9246 (macroscope.o, macrocmd.o): New rules.
9248 Teach the Dwarf 2 reader to read macro information.
9249 * dwarf2read.c: #include "macrotab.h".
9250 (dwarf_macinfo_buffer): New variable.
9251 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9253 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9254 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9255 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9256 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9257 dwarf2_macro_spaces_in_definition): New complaints.
9258 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9259 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9260 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9261 the partial symbol table.
9262 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9263 from what's recorded in the partial symbol table.
9264 (read_file_scope): If the compilation unit has a
9265 `DW_AT_macro_info' attribute, read its macro information.
9266 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9268 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9271 * ser-tcp.c: Don't include <netinet/udp.h>.
9273 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9275 * MAINTAINERS: Update my email address.
9277 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9279 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9280 include file of the same name.
9282 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9284 * configure.tgt: Mark v850 as multi-arched.
9285 * config/v850/tm-v850.h: Remove file.
9286 * config/v850/v850.mt: Eliminate TM_FILE.
9288 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9290 * v850-tdep.c: Full multi-arch.
9291 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9292 Define GDB_MULTI_ARCH to 2.
9294 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9296 * p-exp.y (current_type): New static variable.
9297 Carries the type of the expression at the position that is parsed.
9298 (push_current_type, pop_current_type): Two new functions. Used
9299 to store/restore current_type in expression on specific tokens.
9300 (search_field): New static variable. Set to one after parsing a point
9301 as at that point only a FIELDNAME token should be searched.
9302 (FIELDNAME): New token. After a point only a token belonging to
9303 current_type type definition is allowed.
9304 (all over token rules): reset and change current_type according
9306 (exp '[' rule): insert implicit array index field if
9307 exp is a pascal string type.
9309 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9311 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9312 frame info. Use frame_info's saved_regs instead of matching member
9313 in extra_frame_info throughout.
9314 (v850_frame_init_saved_regs): New function.
9315 (v850_init_extra_frame_info): Move most functionality into
9316 v850_frame_init_saved_regs().
9317 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9318 (v850_frame_find_saved_regs): Remove declaration.
9319 (FRAME_FIND_SAVED_REGS): Remove definition.
9320 (v850_frame_init_saved_regs): Add declaration.
9321 (FRAME_INIT_SAVED_REGS): Add definition.
9323 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9325 * v850-tdep.c: Begin multi-arch'ing v850.
9326 (v850_target_architecture_hook): Remove function.
9327 (v850_gdbarch_init): New function. Add code previously in
9328 v850_target_architecture_hook().
9329 (_initialize_v850_tdep): Don't set target_architecture_hook.
9330 Call register_gdbarch_init() instead.
9332 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9334 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9335 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9336 (fixup_class_method_type): Likewise.
9338 2002-05-15 Jim Blandy <jimb@redhat.com>
9340 Add macro structures to GDB's symbol tables. Nobody puts anything
9342 * symtab.h (struct symtab): New member: `macro_table'.
9343 * buildsym.h (pending_macros): New global variable.
9344 * buildsym.c: #include "macrotab.h".
9345 (buildsym_init): Initialize `pending_macros'.
9346 (end_symtab): If we found macro information while reading a CU's
9347 debugging info, do build a symtab structure for it. Make the
9348 symtab point to the macro information, and clear the
9349 `pending_macros' pointer which held it while we were reading the
9351 (really_free_pendings): Free any pending macro table.
9352 * objfiles.h (struct objfile): New member: `macro_cache'.
9353 * objfiles.c (allocate_objfile): Set allocate and free functions
9354 for the macro cache's objstack.
9355 (free_objfile): Empty the macro cache's obstack.
9356 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9357 set new allocate and free functions for it.
9358 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9359 free functions for the macro cache's objstack. (Why is this
9360 function building its own objfile?)
9361 * symmisc.c (print_objfile_statistics): Print statistics on the
9363 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9365 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9367 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9368 (REGISTER_U_ADDR): Delete definition.
9369 (arm_register_u_addr): Delete declaration.
9371 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9373 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9374 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9376 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9378 * regcache.c (register_valid): Revise comments refering to "Not
9379 available" and "unavailable".
9380 * frame.c (frame_register_read): Ditto.
9381 * findvar.c (value_of_register): Ditto.
9383 2002-05-15 Andrew Cagney <cagney@redhat.com>
9385 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9386 (remote-sim.o): Update dependencies.
9387 (d10v-tdep.o): Specify dependencies.
9388 (sim_d10v_h): Define.
9390 2002-05-14 Jim Blandy <jimb@redhat.com>
9392 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9393 * macrotab.c (macro_lookup_inclusion, find_definition,
9394 new_macro_table): Same.
9396 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9397 not `! strcmp ()'. This is a dubious improvement.
9398 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9400 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9401 although it's not necessary, to avoid a warning.
9403 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9405 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9406 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9407 TYPE_INSTANCE_FLAGS.
9408 (struct main_type): New.
9409 (struct type): Move most members to struct main_type. Change
9410 cv_type and as_type to new type_chain member. Add instance_flags.
9411 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9412 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9413 (finish_cv_type): Remove prototype.
9414 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9416 (alloc_type_instance): New function.
9417 (smash_type): New function.
9418 (make_pointer_type, make_reference_type, make_function_type)
9419 (smash_to_member_type, smash_to_method_type): Call smash_type.
9420 (make_qualified_type): New function.
9421 (make_type_with_address_space): Call make_qualified_type.
9422 (make_cv_type): Likewise.
9423 (finish_cv_type): Remove unnecessary function.
9424 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9425 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9426 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9427 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9428 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9429 * hpread.c (hpread_read_struct_type): Likewise.
9430 * stabsread.c (read_struct_type): Likewise.
9432 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9434 * configure.tgt: Add a catch all sh* target, for cases like
9435 sh[2,3,4]-elf and sh-hms.
9437 2002-05-14 Keith Seitz <keiths@redhat.com>
9439 * event-loop.c (create_file_handler): Don't do anything but
9440 update data when we are given a fd which we are already
9443 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9445 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9446 (update_context): Use __func__ in warnings.
9448 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9450 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9451 and tcp_close to net_open and net_close.
9452 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9453 using UDP if requested. Don't try to disable Nagle on UDP
9455 * remote.c (remote_serial_open): New function. Warn about UDP.
9456 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9458 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9460 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9462 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9464 * configure.tgt: Remove sh-hms target.
9465 * MAINTAINERS: Don't list sh-hms as a separate target.
9467 2002-05-13 Jim Blandy <jimb@redhat.com>
9469 Add first preprocessor macro-expansion files.
9470 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9471 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9472 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9473 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9474 (COMMON_OBS): Add macrotab.o, macroexp.o.
9475 (macroexp.o, macrotab.o): New rules.
9477 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9479 * config/m88k/tm-m88k.h: Update copyright.
9480 (m88k_target_write_pc): Declare
9481 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9482 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9483 (SHIFT_INST_REGS): Update definition.
9484 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9485 using old definition of TARGET_WRITE_PC.
9486 * regcache.c (generic_target_write_pc): Delete code handling
9488 * gdbarch.sh (NNPC_REGNUM): Delete.
9489 * gdbarch.h, gdbarch.c: Regenerate.
9491 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9493 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9496 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9498 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9499 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9500 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9502 * c-typeprint.c (cp_type_print_method_args): Likewise.
9503 (c_type_print_args): Likewise.
9504 * d10v-tdep.c (d10v_push_arguments): Likewise.
9505 (d10v_extract_return_value): Likewise.
9506 * expprint.c (print_subexp): Likewise.
9507 * gdbtypes.c (lookup_primitive_typename): Likewise.
9508 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9509 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9510 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9511 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9512 (TYPE_VECTOR): Likewise.
9513 * hpread.c (hpread_read_struct_type)
9514 (fix_static_member_physnames, fixup_class_method_type)
9515 (hpread_type_lookup): Likewise.
9516 * mdebugread.c (parse_symbol, parse_type): Likewise.
9517 * p-lang.c (is_pascal_string_type): Likewise.
9518 * valops.c (hand_function_call): Likewise.
9519 * x86-64-tdep.c (classify_argument): Likewise.
9521 * hpread.c (hpread_read_function_type)
9522 (hpread_read_doc_function_type): Call replace_type.
9523 * dstread.c (create_new_type): Delete.
9524 (decode_dst_structure, process_dst_function): Call alloc_type.
9525 Use type access macros.
9527 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9529 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9530 the're not supported by the current architecture.
9531 (i387_fill_fxsave): Likewise.
9533 2002-05-12 Fred Fish <fnf@redhat.com>
9535 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9536 sect_index_xxx members to index the first slot in section_offsets
9537 if all of the section_offsets are zero.
9539 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9541 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9542 checked in with last change.
9544 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9546 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9547 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9550 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9552 * Makefile.in: Update dependencies.
9554 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9556 * language.c (local_hex_string_custom): Simplify. Do not depend
9557 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9559 * memattr.c (mem_info_command): Replace calls to
9560 longest_local_hex_string and longest_local_hex_string_custom.
9561 * buildsym.c (make_blockvector): Ditto.
9562 * solib.c (info_sharedlibrary_command): Ditto.
9563 * tracepoint.c (tracepoints_info): Ditto.
9564 * symtab.c (print_msymbol_info): Ditto.
9566 * language.c (local_hex_string): Delete.
9567 (local_hex_string_custom): Delete.
9568 (longest_local_hex_string): Rename to local_hex_string.
9569 (longest_local_hex_string_custom): Rename to
9570 local_hex_string_custom.
9571 * language.h (local_hex_string): Change parameter type to LONGEST.
9572 (local_hex_string_custom): Ditto.
9573 (longest_local_hex_string): Delete declaration.
9574 (longest_local_hex_string_custom): Ditto.
9576 * solib.c: Update copyright.
9577 * memattr.c: Update copyright.
9579 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9581 * arch-utils.h (legacy_register_to_value): Declare.
9582 (legacy_value_to_register): Declare.
9583 (legacy_convert_register_p): Declare.
9584 * arch-utils.c (legacy_register_to_value): New function.
9585 (legacy_value_to_register): New function.
9586 (legacy_convert_register_p): New function.
9588 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9589 (VALUE_TO_REGISTER): Define.
9590 (CONVERT_REGISTER_P): Define.
9591 * gdbarch.h, gdbarch.c: Regenerate.
9593 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9595 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9598 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9599 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9601 * Makefile.in: Update dependencies for valops.c.
9602 * valops.c: Include "gdb_assert.h".
9603 (typecmp): Skip THIS parameter to methods.
9604 (find_method_list): Remove static_memfuncp argument,
9605 update callers. Check for stub methods.
9606 (find_value_oload_method_list): Don't set *static_memfuncp.
9607 (find_overload_match): Don't check for stub methods. Assert
9608 that methods are not stubbed. Handle static methods.
9609 (value_find_oload_method_list): Remove static_memfuncp argument.
9610 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9611 to the argument list for static stub methods.
9612 * value.h (value_find_oload_method_list): Update prototype.
9614 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9616 * arch-utils.h (generic_register_size): Declare.
9617 (generic_register_raw_size, generic_register_virtual_size): Delete
9619 * arch-utils.c (generic_register_raw_size): Delete.
9620 (generic_register_size): New function.
9621 (generic_register_virtual_size): Delete.
9623 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9624 default generic_register_size.
9625 * gdbarch.h, gdbarch.c: Re-generate.
9627 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9628 register_virtual_size.
9629 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9632 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9634 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9635 * gdbarch.h, gdbarch.c: Regenerate.
9636 * gnu-v3-abi.c: Update copyright.
9637 (vtable_address_point_offset): Update.
9638 (gnuv3_rtti_type): Update.
9639 (gnuv3_baseclass_offset): Update.
9640 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9641 (init_fetch_link_map_offsets): Update.
9642 * remote.c (get_remote_state): Update.
9644 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9646 * TODO: Remove value_headof/value_from_vtable_info comment.
9647 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9648 * values.c (value_headof, value_from_vtable_info): Delete.
9649 * value.h (value_from_vtable_info): Delete prototype.
9651 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9653 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9654 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9656 (gdb_assert_h): Define.
9657 (gdb_wait_h): Define.
9658 (gdb_regex_h): Define.
9660 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9662 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9663 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9665 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9667 * nbsd-tdep.c: Fix comment.
9669 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9671 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9672 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9673 (nbsd-tdep.o): New dependency list.
9674 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9676 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9677 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9678 * nbsd-tdep.c: New file.
9679 * nbsd-tdep.h: New file.
9680 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9682 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9683 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9684 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9685 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9687 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9689 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9690 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9691 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9692 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9693 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9694 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9696 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9698 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9699 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9700 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9701 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9702 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9703 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9704 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9706 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9708 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9709 fetch_elfcore_registers to...
9710 * i386nbsd-tdep.c: ...here.
9711 (i386nbsd_use_struct_convention): Rename to...
9712 (i386nbsd_aout_use_struct_convention): ...this.
9713 (i386nbsd_supply_reg): New function.
9714 (i386nbsd_fill_reg): New function.
9715 (fetch_core_registers): Use i386nbsd_supply_reg.
9716 (fetch_elfcore_registers): Likewise.
9717 (_initialize_i386nbsd_tdep): New function.
9718 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9719 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9720 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9721 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9722 (i386nbsd_aout_use_struct_convention): ...this.
9724 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9726 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9727 (store_inferior_registers): Use shnbsd_fill_reg.
9728 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9729 sh_nbsd_supply_register): Collapse into...
9730 (shnbsd_supply_reg): ...this.
9731 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9732 (shnbsd_fill_reg): ...this.
9733 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9734 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9735 (fetch_core_registers): Use shnbsd_supply_reg.
9736 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9737 (sh_nbsd_core_fns): Rename to...
9738 (shnbsd_core_fns): ...this.
9739 (sh_nbsd_elfcore_fns): Rename to...
9740 (shnbsd_elfcore_fns): ...this.
9741 (sh_nbsd_init_abi): Rename to...
9742 (shnbsd_init_abi): ...this.
9743 (_initialize_sh_nbsd_tdep): Rename to...
9744 (_initialize_shnbsd_tdep): ...this.
9745 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9746 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9747 sh_nbsd_fill_register): Remove prototypes.
9748 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9750 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9752 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9753 (i387-nat.o): Delete dependency list.
9754 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9755 (x86-64-linux-nat.o): Likewise.
9756 * i387-nat.c: Delete file, moving contents to...
9757 * i387-tdep.c: ...here.
9758 * i387-nat.h: Rename...
9759 * i387-tdep.h: ...to this.
9760 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9761 * i386-linux-nat.c: Likewise.
9762 * i386bsd-nat.c: Likewise.
9763 * i386gnu-nat.c: Likewise.
9764 * i386nbsd-nat.c: Likewise.
9765 * i386v4-nat.c: Likewise.
9766 * x86-64-linux-nat.c: Likewise.
9767 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9768 * config/i386/go32.mh (NATDEPFILES): Likewise.
9769 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9770 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9771 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9772 * config/i386/linux.mh (NATDEPFILES): Likewise.
9773 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9774 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9775 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9776 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9778 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9780 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9781 (alphanbsd-nat.o): Remove dependency list.
9782 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9783 * alphanbsd-nat.c: Delete. Contents moved to...
9784 * alphanbsd-tdep.c: ...here.
9785 (_initialize_alphanbsd_tdep): Register core functions.
9786 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9788 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9790 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9791 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9792 (alphanbsd-nat.o): Likewise.
9793 (alphabsd-tdep.o): New dependency list.
9794 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9795 (fill_gregset): Use alphabsd_fill_reg.
9796 (supply_fpregset): Use alphabsd_supply_fpreg.
9797 (fill_fpregset): Use alphabsd_fill_fpreg.
9798 (fetch_inferior_registers): Use struct reg and struct fpreg
9799 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9800 and alphabsd_supply_fpreg.
9801 (store_inferior_registers): Use struct reg and struct fpreg
9802 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9803 and alphabsd_fill_fpreg.
9804 * alphabsd-tdep.c: New file.
9805 * alphabsd-tdep.h: New file.
9806 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9807 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9808 alphabsd_supply_fpreg.
9809 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9810 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9812 2002-05-11 Eric Christopher <echristo@redhat.com>
9814 * mips-tdep.c (mips_double_register_type): Fix thinko.
9815 (mips_single_register_type): Ditto.
9816 * MAINTAINERS: Add self.
9818 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9820 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9821 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9822 right thing on architectures with different endianness and/or
9825 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9827 From Christian Limpach <chris@Pin.LU>
9828 * configure.in: Change sed expression which comments out
9829 NATDEPFILES to also comment out continuation lines.
9830 * configure: Regenerate.
9832 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9834 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9837 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9839 * sh-tdep.c: Include correct file.
9841 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9843 New support for sh64-elf (sh5) target.
9845 * configure.tgt: For sh64-elf target, default to sh-elf.
9847 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9848 (struct gdbarch_tdep): Add new fields for new registers and ABI
9851 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9852 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9853 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9854 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9855 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9856 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9857 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9858 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9859 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9860 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9861 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9862 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9863 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9864 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9865 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9866 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9867 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9868 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9869 sign_extend, sh64_nofp_frame_init_saved_regs,
9870 sh64_init_extra_frame_info, sh64_get_saved_register,
9871 sh64_extract_struct_value_address, sh64_pop_frame,
9872 sh64_push_arguments, sh64_extract_return_value,
9873 sh64_store_return_value, sh64_show_media_regs,
9874 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9875 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9876 sh_sh64_register_virtual_type,
9877 sh_sh64_register_convert_to_virtual,
9878 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9879 sh64_register_read, sh64_pseudo_register_write,
9880 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9881 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9882 sh64_do_pseudo_register, sh_compact_do_registers_info,
9883 sh64_do_registers_info, sh_gdbarch_init): New functions.
9885 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9887 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9889 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9891 * linespec.c (decode_line_1): Check for a double quote after
9892 a filename correctly.
9894 2002-05-10 Jim Blandy <jimb@redhat.com>
9896 Properly track the size of the current objfile's .debug_line section.
9897 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9898 (DWARF_LINE_SIZE): New macro.
9899 (dwarf2_build_psymtabs_hard): Record the line section's size in
9900 the partial symbol table.
9901 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9904 2002-05-10 Petr Sorfa <petrs@caldera.com>
9906 * ia64-tdep.c: Handle breakpoints on L instruction type
9907 in MLX instruction bundle by moving the breakpoint to
9908 the third slot (X instruction type) as L holds only data.
9910 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9912 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9913 (process_one_symbol): Complain about discarding local symbols
9914 due to a misplaced N_LBRAC entry.
9916 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9918 From Daniel Berlin <dan@cgsoftware.com>
9919 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9920 decrease the depth we are at, in the case of templates.
9922 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9924 * mips-tdep.c (mips_float_register_type): New function.
9925 (mips_double_register_type): New function.
9926 (mips_print_register): Use them.
9927 (do_fp_register_row): Likewise.
9929 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9931 * signals/signals.c (signals): Remove conditional compilation around
9932 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9933 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9935 2002-05-09 Michael Snyder <msnyder@redhat.com>
9937 * remote-rdp.c (remote_rdp_can_run): Remove.
9939 2002-05-09 Tom Tromey <tromey@redhat.com>
9941 * jv-valprint.c (java_val_print): Handle `char' as a special case
9944 2002-05-09 Michael Snyder <msnyder@redhat.com>
9946 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9947 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9948 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9949 str r(0123),[sp,#nn].
9950 (arm_skip_prologue): Ditto. Also make disassembly
9951 order-independent by placing it in a loop.
9953 2002-05-06 Michael Snyder <msnyder@redhat.com>
9955 * stabsread.c (read_type): Add recognition for new attribute:
9956 "@V;" means that an array type is actually a vector.
9957 This is analogous to the vector flag that's been added to dwarf2.
9959 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9961 * i386-tdep.h (i386_abi): New enum.
9962 (struct gdbarch_tdep): Replace os_ident member with abi.
9963 (i386_gdbarch_register_os_abi): New prototype.
9964 * i386-tdep.c (i386_abi_names): New array.
9965 (process_note_abi_tag_sections): Removed.
9966 (process_note_sections): New function.
9967 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9968 (struct i386_abi_handler): New struct.
9969 (i386_abi_handler_list): New variable.
9970 (i386_gdbarch_register_os_abi): New function.
9971 (i386_gdbarch_init): Adapt for the changes given above.
9973 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9975 * gregset.h: Say "GNU/Linux".
9977 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9979 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9980 (build_gdbtypes): Build builtin_type_v2_float.
9981 (_initialize_gdbtypes): Register new builtin type.
9983 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9985 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9986 (clear_gdbarch_swap): New function.
9987 (initialize_non_multiarch): Call.
9988 (gdbarch_update_p): Before calling init(), swap out and clear the
9989 existing architecture.
9990 * gdbarch.c: Regenerate.
9992 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9994 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9997 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9999 * sh-nbsd-nat.c: Rename to...
10000 * shnbsd-nat.c: ...this.
10001 * sh-nbsd-tdep.c: Rename to...
10002 * shnbsd-tdep.c: ...this.
10003 * sh-nbsd-tdep.h: Rename to...
10004 * shnbsd-tdep.h: ...this.
10005 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10006 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10008 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10010 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10011 concatenation for command help messages.
10013 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10015 * NEWS: Note new sh*-*-netbsdelf* configuration.
10016 * configure.host: Set gdb_host_cpu to sh for all sh*.
10017 (sh*-*-netbsdelf*): New host.
10018 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10019 (sh*-*-netbsdelf*): New target.
10020 * sh-nbsd-nat.c: New file.
10021 * sh-nbsd-tdep.c: New file.
10022 * sh-nbsd-tdep.h: New file.
10023 * config/sh/nbsd.mh: New file.
10024 * config/sh/nbsd.mt: New file.
10025 * config/sh/nm-nbsd.h: New file.
10026 * config/sh/tm-nbsd.h: New file.
10028 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10030 * sh-tdep.c (sh_osabi_names): Declare.
10031 (process_note_abi_tag_sections): New function.
10032 (get_elfosabi): Ditto.
10033 (sh_gdbarch_register_os_abi): Ditto.
10034 (sh_dump_tdep): Ditto.
10035 _initialize_sh_tdep): Use gdbarch_register to register
10036 sh_gdbarch_init and sh_dump_tdep.
10037 * config/sh/tm-sh.h (sh_osabi): Declare.
10038 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10040 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10042 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10043 (thumb_scan_prologue): Ditto.
10044 (arm_find_callers_reg): Ditto.
10045 (arm_frame_chain): Ditto.
10046 (arm_init_extra_frame_info): Ditto.
10047 (arm_frame_saved_pc): Ditto.
10048 (arm_pop_frame): Ditto.
10049 (arm_push_return_address): New function.
10050 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10051 call_dummy_location, call_dummy_breakpoint_offset_p,
10052 call_dummy_breakpoint_offset, call_dummy_p,
10053 call_dummy_stack_adjust_p, call_dummy_words,
10054 sizeof_call_dummy_words, call_dummy_start_offset,
10055 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10056 call_dummy_address, push_return_address and push_dummy_frame for
10057 generic dummy frames.
10059 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10061 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10062 size computation for alloca.
10063 (sh_fp_frame_init_saved_regs): Likewise.
10065 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10067 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10068 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10069 * arm-tdep.c (arm_store_return_value): Use them.
10070 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10071 * remote-rdp.c (remote_rdp_fetch_register): Use
10072 ARM_MAX_REGISTER_RAW_SIZE.
10073 (remote_rdp_store_register): Likewise.
10075 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10077 * dwarf2cfi.c: Code cleanup, removed unused variables,
10078 added default labels to switch {} statements.
10079 * x86-64-tdep.c: Ditto.
10080 * x86-64-linux-nat.c: Ditto.
10082 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10084 * solib.h: Protect against multiple inclusion.
10086 2002-05-06 Jim Blandy <jimb@redhat.com>
10088 Add first preprocessor macro-expansion files.
10089 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10090 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10091 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10092 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10093 (COMMON_OBS): Add macrotab.o, macroexp.o.
10094 (macroexp.o, macrotab.o): New rules.
10096 Separate the job of reading the line number info statement program
10097 header (...expialidocious) out into its own function.
10098 * dwarf2read.c (struct line_head, struct filenames, struct
10099 directories): Replace with...
10100 (struct line_header): New structure, containing the full
10101 contents of the statement program header, including the
10102 include directory and file name tables.
10103 (read_file_scope): If we have line number info, instead of just
10104 calling dwarf_decode_lines to do all the work, call
10105 dwarf_decode_line_header first to get a `struct line_header'
10106 containing the data in the statement program header, and then
10107 pass that to dwarf_decode_lines, which will pick up where that
10108 left off. Be sure to clean up the `struct line_header' object.
10109 (dwarf_decode_line_header, free_line_header, add_include_dir,
10110 add_file_name): New functions.
10111 (dwarf_decode_lines): Move all the code to read the statement
10112 program header into dwarf_decode_line_header. Take the line
10113 header it built as the first argument, instead of the offset to
10114 the compilation unit's line number info. Use the new `struct
10115 line_header' type instead of the old structures. No need to do
10116 cleanups here now, since we don't allocate anything.
10117 (dwarf2_statement_list_fits_in_line_number_section,
10118 dwarf2_line_header_too_long): New complaints.
10120 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10122 * gdbtypes.c (init_vector_type): New function.
10123 (build_builtin_type_vec128): Simplify the representation of SIMD
10125 (build_gdbtypes): Initialize new builtin vector types.
10126 (_initialize_gdbtypes): Register new vector types with gdbarch.
10127 (builtin_type_v4_float, builtin_type_v4_int32,
10128 builtin_type_v8_int16, builtin_type_v16_int8,
10129 builtin_type_v2_int32, builtin_type_v4_int16,
10130 builtin_type_v8_int8): New (renamed) SIMD types.
10132 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10134 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10135 (i387_fill_fxsave): Likewise.
10137 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10139 * alpha-tdep.c (alpha_extract_return_value): Don't use
10140 non-constant array size in prototype.
10142 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10144 From Brian Taylor <briant at model dot com>:
10145 * ui-out.c (ui_out_field_core_addr): Use the function
10146 longest_local_hex_string_custom'to format addresses > 32 bits
10149 * ui-out.c (ui_out_field_core_addr): Update comment.
10151 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10153 * stack.c (select_and_print_frame): Make static. Delete the
10155 (func_command): Update call.
10156 (select_frame_command): Delete code computing the frame level.
10157 * frame.h (select_and_print_frame): Delete declaration.
10159 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10161 * sparc-tdep.c (sparc_get_saved_register): Comment why
10162 get_prev_frame call is safe.
10164 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10166 * frame.h (select_frame): Delete level parameter.
10167 * stack.c (select_frame): Update. Use frame_relative_level to
10168 obtain the frame's level.
10169 (select_and_print_frame): Update call.
10170 (select_frame_command): Ditto.
10171 (up_silently_base): Ditto.
10172 (down_silently_base): Ditto.
10173 * ocd.c (ocd_start_remote): Ditto.
10174 * remote-rdp.c (remote_rdp_open): Ditto.
10175 * remote-mips.c (mips_initialize): Ditto.
10176 (common_open): Ditto.
10177 * remote-e7000.c (e7000_start_remote): Ditto.
10178 * m3-nat.c (select_thread): Ditto.
10179 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10180 (child_get_current_exception_event): Ditto.
10181 * varobj.c (varobj_create): Ditto.
10182 (varobj_update): Ditto.
10183 (c_value_of_root): Ditto.
10184 * tracepoint.c (finish_tfind_command): Ditto.
10185 * corelow.c (core_open): Ditto.
10186 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10187 * thread.c (info_threads_command): Ditto.
10188 (switch_to_thread): Ditto.
10189 * infrun.c (normal_stop): Ditto.
10190 (restore_selected_frame): Ditto.
10191 (restore_inferior_status): Ditto.
10192 * breakpoint.c (insert_breakpoints): Ditto.
10193 (watchpoint_check): Ditto.
10194 (bpstat_stop_status): Ditto.
10195 (do_enable_breakpoint): Ditto.
10196 * blockframe.c (flush_cached_frames): Ditto.
10197 (reinit_frame_cache): Ditto.
10199 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10201 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10204 2002-05-04 Jim Blandy <jimb@redhat.com>
10206 * gdbtypes.c (replace_type): Doc fix.
10208 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10210 * valprint.c (strcat_longest): Delete commented out function.
10213 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10215 * MAINTAINERS: Mark a29k as deleted.
10216 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10217 Move new configurations to the top.
10218 * configure.tgt: Remove a29k.
10219 * config/a29k/tm-vx29k.h: Delete.
10220 * config/a29k/vx29k.mt: Delete.
10221 * config/a29k/tm-a29k.h: Delete.
10222 * config/a29k/a29k-udi.mt: Delete.
10223 * config/a29k/a29k.mt: Delete.
10224 * a29k-tdep.c: Delete.
10225 * remote-udi.c: Delete.
10226 * remote-mm.c: Delete.
10227 * remote-eb.c: Delete.
10228 * remote-adapt.c: Delete.
10229 * Makefile.in: Remove obsolete code.
10230 * config/s390/s390x.mt: Ditto.
10231 * config/s390/s390.mt: Ditto.
10232 * config/sparc/sparclynx.mh: Ditto.
10233 * config/sparc/linux.mh: Ditto.
10234 * config/pa/hppaosf.mh: Ditto.
10235 * config/pa/hppabsd.mh: Ditto.
10236 * config/ns32k/nbsd.mt: Ditto.
10237 * config/mips/vr5000.mt: Ditto.
10238 * config/m68k/sun3os4.mh: Ditto.
10239 * config/m68k/nbsd.mt: Ditto.
10240 * config/m68k/m68klynx.mh: Ditto.
10241 * config/m32r/m32r.mt: Ditto.
10242 * config/i386/x86-64linux.mt: Ditto.
10243 * config/i386/nbsdelf.mt: Ditto.
10244 * config/i386/nbsd.mt: Ditto.
10245 * config/i386/i386lynx.mh: Ditto.
10247 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10249 * target.c (debug_print_register): New function. Handle oversize
10251 (debug_to_fetch_registers): Call.
10252 (debug_to_store_registers): Call.
10254 2002-05-03 Jim Blandy <jimb@redhat.com>
10256 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10257 (read_type): Doc fix.
10258 * gdbtypes.c (replace_type): Doc fix.
10260 * stabsread.c (multiply_defined_struct): New complaint.
10261 (read_struct_type): If the type we were passed isn't empty, or
10262 incomplete, don't read the new struct type into it; complain,
10263 and return the original type unchanged. Take a new `type_code'
10264 argument, which is the type code for the new type.
10265 (read_type): Rather than storing the type's type code here, pass
10266 it as an argument to read_struct_type, and let that take care of
10267 storing it. That way, we don't overwrite the original type code,
10268 so read_struct_type can use it to decide whether we're overwriting
10269 something we shouldn't.
10270 (complain_about_struct_wipeout): New function.
10272 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10274 * gdbarch.sh: Assert that gdbarch is non-NULL.
10275 * gdbarch.c: Regenerate.
10277 2002-05-03 Jason Merrill <jason@redhat.com>
10279 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10282 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10284 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10285 (x86_64_dwarf2gdb_regno_map_length),
10286 (x86_64_dwarf2_reg_to_regnum): Added.
10287 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10288 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10289 (_initialize_x86_64_tdep): Synced with the change above.
10290 (x86_64_skip_prologue): Reformulated message.
10292 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10294 * f-exp.y: Also use new prev_lexptr variable
10295 to improve error reporting. Based on Michael Snyder
10296 2002-04-24 dated patch to c-exp.y.
10297 * jv-exp.y: Likewise.
10298 * m2-exp.y: Likewise.
10300 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10302 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10303 we are dealing with vectors.
10305 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10307 * config/m68k/tm-nbsd.h: Obvious fix,
10308 correct machine name.
10310 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10312 * p-typeprint.c (pascal_type_print_base): Add support
10313 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10315 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10317 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10318 for fondamental pascal 'char' type.
10320 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10322 * p-lang.h (is_pascal_string_type): Declaration changed,
10323 new sixth argument of type char ** added.
10324 * p-lang.c (is_pascal_string_type): Implementation
10325 changed. Args length_pos, length_size, string_pos, char_size
10326 can now be NULL. New argument arrayname set to the field
10327 name of the char array. Return value set to char array
10328 field index plus one.
10329 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10330 is_pascal_string_type function.
10332 2002-05-02 Andrew Cagney <cagney@redhat.com>
10334 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10335 <cagney@redhat.com> change.
10336 * gdbarch.c: Regenerate.
10338 2002-05-02 Andrew Cagney <cagney@redhat.com>
10340 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10341 before probing for a new one. Detect errorenous gdbarch_init
10343 * gdbarch.c: Regenerate.
10345 2002-05-01 Andrew Cagney <cagney@redhat.com>
10347 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10348 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10349 * config/v850/tm-v850.h: Ditto. Update copyright.
10351 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10353 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10356 2002-04-30 Michael Snyder <msnyder@redhat.com>
10358 * arm-tdep.c: Whitespace clean-ups.
10359 (arm_skip_prologue): Fix thinko; two lines
10360 should have been removed as part of 4/24 change.
10362 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10364 * rs6000-tdep.c: Added comment describing how fpscr register
10365 numbers were chosen.
10367 2002-04-30 Michael Snyder <msnyder@redhat.com>
10369 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10371 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10373 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10374 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10375 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10377 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10379 From Louis Hamilton <hamilton@redhat.com>:
10380 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10381 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10382 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10383 not bfd-private xcoff data, to determine wordsize.
10384 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10386 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10388 GDB 5.2 released from 5.2 branch.
10390 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10392 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10393 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10394 (x86_64_register_info_table): Added comments with register numbers.
10396 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10398 * rs6000-tdep.c (rs6000_extract_return_value,
10399 rs6000_store_return_value): Handle returning vectors.
10400 (rs6000_gdbarch_init): Use
10401 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10402 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10404 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10406 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10407 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10409 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10411 * hpread.c (hpread_psymtab_to_symtab_1,
10412 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10413 with fprintf_unfiltered (gdb_stderr,...).
10415 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10417 * remote-array.c (printf_monitor, write_monitor,
10418 array_insert_breakpoint, array_remove_breakpoint ):
10419 Replace fprintf (stderr,...
10420 with fprintf_unfiltered (gdb_stderr,....
10421 * remote-es.c: Likewise.
10422 * remote-os9k.c: Likewise.
10423 * remote-st.c: Likewise.
10425 2002-04-28 Andreas Schwab <schwab@suse.de>
10427 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10428 linux-proc.o and gcore.o.
10430 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10432 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10433 code without frame pointers.
10435 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10437 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10438 ON_STACK is needed.
10440 2002-04-26 Ben Elliston <bje@redhat.com>
10442 * target.c (do_xfer_memory): Correct reference to the new option
10443 "trust-readonly-sections".
10445 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10447 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10448 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10449 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10451 (read_array_type): Record the fact that this array type is really a
10452 vector (i.e. are passed in by value).
10454 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10456 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10457 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10458 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10459 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10460 * alpha-linux-tdep.c: Include frame.h.
10461 (alpha_linux_sigcontext_addr): New function.
10462 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10463 alpha_linux_sigcontext_addr.
10464 * alpha-osf1-tdep.c: Include gdbcore.h.
10465 (alpha_osf1_sigcontext_addr): New function.
10466 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10467 alpha_osf1_sigcontext_addr.
10468 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10469 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10471 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10473 * stack.c (selected_frame_level):
10474 (select_frame): Do not set selected_frame_level.
10475 * frame.h (selected_frame_level): Delete declaration.
10477 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10479 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10480 convert_from_func_ptr-addr when AIX / PowerOpen.
10482 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10484 * valops.c (hand_function_call): Call
10485 generic_save_call_dummy_addr.
10486 * frame.h (generic_save_call_dummy_addr): Declare.
10487 * blockframe.c (struct dummy_frame): Add fields call_lo and
10489 (generic_find_dummy_frame): Check for PC in range call_lo to
10490 call_hi instead of entry_point_address.
10491 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10492 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10493 (generic_save_call_dummy_addr): New function.
10495 2002-04-24 David S. Miller <davem@redhat.com>
10497 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10498 sparc_skip_prologue.
10499 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10500 information to find prologue when possible.
10501 (sparc_prologue_frameless_p): Call examine_prologue directly.
10502 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10503 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10505 (SKIP_PROLOGUE): Likewise.
10507 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10509 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10510 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10511 indicate that the condition it was testing is always true.
10512 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10513 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10514 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10516 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10518 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10519 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10520 tdep->jb_pc and tdep->jb_elt_size.
10521 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10522 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10523 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10524 * alpha-nat.c (get_longjmp_target): Remove.
10525 (JB_ELEMENT_SIZE): Ditto.
10527 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10528 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10529 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10530 to alpha_get_longjmp_target.
10531 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10532 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10533 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10535 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10537 * README: Update to GDB 5.2.
10539 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10541 * gdbarch.sh (LC_ALL): Set to `c'.
10543 2002-04-25 Theodore A. Roth <troth@verinet.com>
10545 * avr-tdep.c: Ran through gdb_indent.sh.
10547 2002-04-25 Theodore A. Roth <troth@verinet.com>
10549 * MAINTAINERS: Add myself as AVR maintainer.
10550 * NEWS: Note new target avr.
10552 2002-04-25 Theodore A. Roth <troth@verinet.com>
10554 * Makefile.in: Add support for AVR target.
10555 * configure.tgt: Add support for AVR target.
10556 * avr-tdep.c: New file
10557 * config/avr/avr.mt: New file.
10559 2002-04-25 Theodore A. Roth <troth@verinet.com>
10561 * MAINTAINERS: Add myself to write-after-approval.
10563 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10565 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10566 with fprintf_unfiltered (gdb_stderr,....
10568 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10571 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10573 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10575 * p-exp.y: Also use new prev_lexptr variable
10576 to improve error reporting. Based on Michael Snyder
10577 2002-04-24 dated patch to c-exp.y.
10579 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10581 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10582 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10583 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10585 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10587 (FUNCTION_START_OFFSET): Remove.
10588 (BREAKPOINT): Ditto.
10590 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10592 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10595 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10597 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10598 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10599 alpha_linux_pc_in_sigtramp.
10600 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10601 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10602 alpha_osf1_pc_in_sigtramp.
10603 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10604 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10605 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10606 alphafbsd_pc_in_sigtramp.
10607 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10608 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10609 alphanbsd_pc_in_sigtramp.
10610 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10611 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10613 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10615 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10617 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10619 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10621 (alphanbsd-nat.o): New dependency list.
10622 (alphanbsd-tdep.o): Ditto.
10623 * NEWS: Note new native NetBSD/alpha configuration.
10624 * alphanbsd-nat.c: New file.
10625 * alphanbsd-tdep.c: Ditto.
10626 * configure.host (alpha*-*-netbsd*): New host.
10627 * configure.tgt (alpha*-*-netbsd*): New target.
10628 * config/alpha/nbsd.mh: New file.
10629 * config/alpha/nbsd.mt: Ditto.
10630 * config/alpha/nm-nbsd.h: Ditto.
10631 * config/alpha/tm-nbsd.h: Ditto.
10633 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10635 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10636 (alpha-osf1-tdep.o): New dependency list.
10637 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10638 and skip_sigtramp_frame members.
10639 * alpha-linux-tdep.c: Include gdbcore.h.
10640 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10641 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10642 * alpha-osf1-tdep.c: New file.
10643 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10645 (alpha_frame_past_sigtramp_frame): New function.
10646 (alpha_dynamic_sigtramp_offset): Ditto.
10647 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10648 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10649 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10650 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10651 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10652 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10653 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10654 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10655 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10656 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10657 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10658 to find_solib_trampoline_target.
10659 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10660 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10661 (SKIP_TRAMPOLINE_CODE): Remove.
10662 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10663 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10664 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10665 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10666 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10667 (PROC_SIGTRAMP_MAGIC): Ditto.
10668 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10669 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10670 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10671 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10672 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10674 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10676 * NEWS: Note that Alpha targets are now multi-arch.
10678 2002-04-24 Michael Snyder <msnyder@redhat.com>
10680 * parser-defs.h (prev_lexptr): New external variable.
10681 * parse.c (parse_exp_1): Set prev_lexptr to null before
10682 calling the language-specific parser.
10683 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10684 (yyerror): Use prev_lexptr in error reporting.
10686 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10688 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10689 * gregset.h: If FILL_FPXREGSET is defined, provide
10690 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10691 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10692 is defined, call fill_fpxregset.
10694 2002-04-24 Roland McGrath <roland@frob.com>
10696 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10697 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10698 (supply_gregset, supply_fpregset): New functions.
10700 * gnu-nat.c (gnu_find_memory_regions): New function.
10701 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10702 (gnu_xfer_memory): Add a cast.
10704 2002-04-24 Michael Snyder <msnyder@redhat.com>
10706 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10707 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10708 of argument regs ("str r(0123), [r11, #-nn"]).
10709 (arm_skip_prologue): Better handling for frameless functions.
10710 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10711 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10713 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10715 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10716 NUM_PSEUDO_REGS can be used.
10718 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10720 * arch-utils.h: Update copyright.
10722 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10723 * gdbarch.h, gdbarch.c: Re-generate.
10725 * inferior.h (IN_SIGTRAMP): Delete definition.
10726 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10727 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10729 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10730 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10731 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10732 (find_proc_framesize): Ditto.
10733 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10734 (alpha_init_extra_frame_info): Ditto.
10735 * infrun.c (handle_inferior_event): Ditto.
10736 (handle_inferior_event): Ditto.
10737 (check_sigtramp2): Ditto.
10738 * blockframe.c (create_new_frame): Ditto.
10739 (get_prev_frame): Ditto.
10740 * ppc-linux-tdep.c: Update comments.
10741 * i386-linux-tdep.c: Update comments.
10742 * breakpoint.c (bpstat_what): Update comment.
10744 2002-04-24 David S. Miller <davem@redhat.com>
10746 * i960-tdep.c (register_in_window_p): New function.
10747 (i960_find_saved_register): Use it instead of
10748 REGISTER_IN_WINDOW_P.
10749 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10751 * symtab.h (find_stab_function_addr): Kill extern.
10752 * minsyms.c (find_stab_function_addr): Remove from here...
10753 * dbxread.c: ... to here, and mark it static.
10755 2002-04-20 David S. Miller <davem@redhat.com>
10757 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10758 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10760 2002-04-21 David S. Miller <davem@redhat.com>
10762 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10763 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10764 (vx_write_register): Likewise.
10766 2002-04-23 J. Brobecker <brobecker@gnat.com>
10768 * source.c (is_regular_file): New function.
10769 (openp): Check wether file to open is a regular file
10770 to avoid opening directories.
10772 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10774 * findvar.c (extract_signed_integer): Cast printf argument
10775 to suppress format warning.
10776 (extract_unsigned_integer): Likewise.
10777 * infcmd.c (registers_info): Likewise.
10778 * top.c (get_prompt_1): Likewise.
10779 * valops.c (value_assign): Likewise.
10780 * valprint.c (print_decimal): Likewise.
10782 2002-04-22 H.J. Lu (hjl@gnu.org)
10784 * c-exp.y (typebase): Support
10786 [long|long long|short] [signed|unsigned] [int|]
10790 signed [long|long long|short] int
10792 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10794 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10796 * vax-tdep.h: New file.
10797 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10798 Make several routines static.
10799 (vax_get_saved_register): New function.
10800 (vax_gdbarch_init): New function.
10801 (_initialize_vax_tdep): Register vax_gdbarch_init.
10802 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10803 Remove macros now under the control of gdbarch.
10805 2002-04-22 Michael Snyder <msnyder@redhat.com>
10807 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10808 Some whitespace and coding standards tweaks.
10810 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10812 * vax-tdep.c: Include regcache.h.
10813 (vax_call_dummy_words): New.
10814 (sizeof_vax_call_dummy_words): New.
10815 (vax_fix_call_dummy): New function.
10816 (vax_saved_pc_after_call): Ditto.
10817 * config/vax/tm-vax.h: Don't include regcache.h.
10818 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10819 (CALL_DUMMY): Remove.
10820 (CALL_DUMMY_WORDS): Define.
10821 (SIZEOF_CALL_DUMMY_WORDS): Define.
10822 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10824 2002-04-18 Michael Snyder <msnyder@redhat.com>
10826 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10828 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10830 * vax-tdep.c (vax_frame_chain): New function.
10831 (vax_push_dummy_frame): Ditto.
10832 (vax_pop_frame): Ditto.
10833 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10834 (FRAMELESS_FUNCTION_INVOCATION): Use
10835 generic_frameless_function_invocation_not.
10836 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10837 (POP_FRAME): Use vax_pop_frame.
10839 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10841 * vax-tdep.c (vax_store_struct_return): New function.
10842 (vax_extract_return_value): Ditto.
10843 (vax_store_return_value): Ditto.
10844 (vax_extract_struct_value_address): Ditto.
10845 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10846 vax_store_struct_return.
10847 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10848 (STORE_RETURN_VALUE): Use vax_store_return_value.
10849 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10853 * vax-tdep.c (vax_frame_saved_pc): New function.
10854 (vax_frame_args_address_correct): Ditto.
10855 (vax_frame_args_address): Ditto.
10856 (vax_frame_locals_address): Ditto.
10857 (vax_frame_num_args): Move code to be in proximity to
10858 other frame-related functions.
10859 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10860 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10861 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10862 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10863 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10865 2002-04-22 H.J. Lu (hjl@gnu.org)
10867 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10870 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10872 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10873 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10874 (FRAME_INIT_SAVED_REGS): New macro.
10876 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10878 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10880 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10882 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10884 (fetch_osf_core_registers): Likewise.
10885 (supply_gregset): Likewise.
10887 2002-04-22 J. Brobecker <brobecker@gnat.com>
10889 * symfile.h (get_section_index): Define.
10890 * symfile.c (get_section_index): New function.
10891 * mdebugread.c (SC_IS_SBSS): New macro.
10892 (SC_IS_BSS): Return true for the scBss storage class only, as
10893 the scSBss storage class refers to the .sbss section.
10894 (parse_partial_symbols): Discard the symbols which associated
10895 section does not exist.
10896 Make sure to use the .sbss section index for symbols which
10897 storage class is scBss, rather than using the .bss section index.
10899 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10901 * vax-tdep.c: Update copyright years.
10902 (vax_register_name): New function.
10903 (vax_register_byte): Ditto.
10904 (vax_register_raw_size): Ditto.
10905 (vax_register_virtual_size): Ditto.
10906 (vax_register_virtual_type): Ditto.
10907 * config/vax/tm-vax.h: Update copyright years.
10908 (REGISTER_NAMES): Remove.
10909 (REGISTER_NAME): Define.
10910 (REGISTER_BYTE): Use vax_register_byte.
10911 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10912 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10913 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10915 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10917 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10919 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10921 2002-04-21 David S. Miller <davem@redhat.com>
10923 * arch-utils.c (generic_prologue_frameless_p): Kill
10924 SKIP_PROLOGUE_FRAMELESS_P code.
10925 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10927 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10928 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10929 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10931 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10932 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10933 (sparc_gdbarch_init): Pass it to
10934 set_gdbarch_prologue_frameless_p.
10936 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10938 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10939 (alphabsd-nat.o): New dependency list.
10941 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10943 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10945 (alpha-linux-tdep.o): New dependency list.
10946 (alphafbsd-tdep.o): Likewise.
10948 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10950 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10952 * alpha-tdep.c: ...from here.
10953 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10955 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10957 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10958 prototype from here...
10959 * alpha-tdep.h: ...to here.
10961 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10963 * frame.h (selected_frame_level): Document as deprecated.
10964 (frame_relative_level): Declare.
10965 * stack.c (frame_relative_level): New function.
10966 (selected_frame_level): Document as deprecated.
10967 (select_frame): Do not set the selected_frame_level.
10969 * stack.c (frame_info, record_selected_frame): Update.
10970 (frame_command, current_frame_command): Update.
10971 (up_silently_base, up_command, down_silently_base): Update.
10972 (down_command): Update.
10973 * inflow.c (kill_command): Update.
10974 * tracepoint.c (finish_tfind_command): Update.
10975 * corelow.c (core_open): Update.
10976 * thread.c (info_threads_command): Update.
10977 (do_captured_thread_select): Update.
10978 * infcmd.c (finish_command): Update.
10979 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10981 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10983 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10985 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10987 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10990 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10992 * alphafbsd-tdep.c: Update copyright years. Include
10994 (alphafbsd_use_struct_convention): Make static.
10995 (alphafbsd_init_abi): New function.
10996 (_initialize_alphafbsd_tdep): New function.
10997 * config/alpha/tm-fbsd.h: Update copyright years.
10998 (USE_STRUCT_CONVENTION): Remove.
11000 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11002 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11003 an Alpha ABI variant.
11004 (alpha_abi_handler_list): Declare.
11005 (alpha_gdbarch_register_os_abi): New function.
11006 (alpha_gdbarch_init): Give registered ABI variant handlers a
11007 chance to tweak the gdbarch once we have set up defaults.
11008 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11010 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11012 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11013 to standard_coerce_float_to_double.
11014 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11016 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11018 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11019 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11020 from gdbarch_tdep rather than a constant.
11021 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11022 the default text address for all Alpha Unix ABIs.
11023 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11024 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11026 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11028 * alpha-tdep.h: New file. Includes several Alpha target constants
11030 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11031 let gdbarch deal with.
11032 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11033 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11034 to dependency list.
11035 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11036 Alpha target register names.
11037 * alphabsd-nat.c: Likewise.
11038 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11039 Alpha target register names. Make serveral routines static.
11040 (alpha_get_saved_register): New function.
11041 (alpha_abi_names): New.
11042 (process_note_abi_tag_sections): New function.
11043 (get_elfosabi): New function.
11044 (alpha_gdbarch_init): New function.
11045 (alpha_dump_tdep): New function.
11046 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11048 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11050 * frame.c (find_saved_register): Delete #ifdef
11051 HAVE_REGISTER_WINDOWS code.
11052 * config/sparc/tm-sparc.h: Update comments.
11053 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11055 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11057 * i960-tdep.c (i960_find_saved_register): New function.
11058 (i960_get_saved_register): New function.
11059 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11060 (i960_get_saved_register): Declare.
11061 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11063 2002-04-20 David S. Miller <davem@redhat.com>
11065 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11067 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11069 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11070 instead of NUM_PSEUDO_REGS.
11072 2002-04-20 David S. Miller <davem@redhat.com>
11074 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11075 GDB_MULTI_ARCH_PARTIAL
11076 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11077 define, let tm-sp64.h do it.
11079 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11081 * frame.c (find_saved_register): Avoid a NULL pointer
11082 dereference and actually walk the frame list.
11084 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11086 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11087 sorted in most most-recent-used order. Document.
11088 * gdbarch.h, gdbarch.c: Regenerate.
11090 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11092 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11094 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11095 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11096 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11099 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11102 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11103 (build_builtin_type_vec128): Ditto.
11104 (append_composite_type_field): Fix calculation of type length in
11107 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11109 * config/djgpp/README: Update.
11111 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11114 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11116 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11117 (alpha_setup_arbitrary_frame): ...to this.
11118 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11119 for alpha_setup_arbitrary_frame.
11121 2002-04-18 Andrew Cagney <cagney@redhat.com>
11123 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11124 * gdbarch.h, gdbarch.c: Regenerate.
11126 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11127 * target.h (memory_breakpoint_from_pc): Update declaration.
11128 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11130 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11131 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11132 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11133 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11134 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11135 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11136 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11137 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11138 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11139 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11140 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11141 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11143 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11145 * monitor.c (monitor_insert_breakpoint): Ditto.
11146 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11148 * config/mcore/tm-mcore.h: Update copyright.
11149 * mem-break.c: Ditto.
11150 * xstormy16-tdep.c: Ditto.
11152 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11154 * p-exp.y: Add precedence rule for '^' token.
11155 This removes the shift/reduce conflicts.
11156 Remove the comment concerning these shift/reduce conflicts.
11158 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11160 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11161 (registers_powerpc_nofp): New register set for processors
11162 without floating point unit.
11164 2002-04-18 David S. Miller <davem@redhat.com>
11166 * MAINTAINERS: Add myself to write-after-approval.
11168 2002-04-17 Michael Snyder <msnyder@redhat.com>
11170 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11172 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11174 * rs6000-tdep.c (frame_initial_stack_address): Use
11175 frame_register_read to read the alloca_reg.
11177 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11179 * frame.c (find_saved_register): Find saved registers in the next
11183 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11185 * gdbarch.sh (LANG): Set to ``c''.
11187 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11189 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11191 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11193 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11196 * hpread.c (hpread_get_lntt): Add declaration.
11197 Also fix PR gdb/391.
11199 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11201 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11202 * aclocal.m4, configure: Re-generate.
11205 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11207 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11208 instead of tm_print_insn.
11210 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11212 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11214 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11216 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11217 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11218 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11220 2002-04-12 Don Howard <dhoward@redhat.com>
11222 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11223 max_user_call_depth.
11224 (init_cmd_lists): Initialize the new value;
11225 * cli/cli-script.c (execute_user_command): Limit the call depth of
11226 user defined commands. This avoids a core-dump when user commands
11227 are infinitly recursive.
11229 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11231 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11232 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11233 from tdep struct instead of DEFAULT_LR_SAVE.
11234 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11235 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11236 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11238 2002-04-12 Michael Snyder <msnyder@redhat.com>
11240 * Remote.c: Spelling fix.
11241 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11242 If no symbol found for "sbrk", try "_sbrk".
11243 (make_output_phdrs): Use bfd_section_name.
11244 (gcore_copy_callback): Use bfd_section_name.
11245 * eval.c: Indentation fix-ups.
11246 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11247 in case it gets applied to an address that is already
11248 in the instruction space.
11249 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11250 * symfile.c: Fix indentation, long lines.
11251 * source.c: White space fix-up.
11253 2002-04-12 Andrew Cagney <cagney@redhat.com>
11255 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11256 * frame.c (frame_register_read): New function. Return non-zero on
11258 (read_relative_register_raw_bytes_for_frame): Delete.
11259 (read_relative_register_raw_bytes): Delete.
11260 * frame.h (frame_register_read): Declare.
11261 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11262 * sh-tdep.c: Ditto.
11263 * infcmd.c (do_registers_info): Ditto.
11264 * hppa-tdep.c: Ditto.
11265 * rs6000-tdep.c: Ditto.
11266 * h8500-tdep.c: Ditto.
11267 * mips-tdep.c: Ditto.
11268 * h8300-tdep.c: Ditto.
11269 * z8k-tdep.c: Ditto.
11271 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11273 From Jimi X <jimix@watson.ibm.com>:
11274 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11277 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11279 From Jimi X <jimix@watson.ibm.com>:
11280 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11283 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11285 From Jimi X <jimix@watson.ibm.com>:
11286 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11287 register sets for these processor variants.
11289 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11291 * regformats/reg-ppc.dat: Support FPSCR.
11293 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11295 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11296 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11297 Add fpscr as an invalid/unfetchable register.
11298 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11299 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11300 (fill_fpregset): Add support for register fpscr.
11301 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11302 (fill_gregset): Account for the fact that register ``mq'' might
11304 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11305 (registers_power): Add fpscr to register set at slot 71.
11306 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11307 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11309 2002-04-11 Michael Snyder <msnyder@redhat.com>
11311 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11312 * configure: Regenerate.
11313 * config.in: Regenerate.
11314 * acconfig.h: Add define for _SYSCALL32.
11315 * core-sol2.c: Remove #define _SYSCALL32.
11316 * solib-legacy.c: Remove #define _SYSCALL32.
11318 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11320 * stack.c (select_frame): Cleanup internal error message, do not
11323 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11325 * stack.c (select_frame): Check that selected_frame and the
11326 specified level are as expected.
11327 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11329 * frame.h (struct frame_info): Add field `level'. Update
11331 Work-in-progress PR gdb/464.
11333 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11335 * maint.c (maint_print_section_info): Rename print_section_info.
11336 (print_bfd_section_info, print_objfile_section_info): Update.
11337 * inferior.h (struct gdbarch): Add opaque declaration.
11338 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11339 * gdbarch.h: Regenerate.
11341 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11343 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11344 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11345 (kernel_u_size): Added.
11346 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11347 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11349 2002-04-04 Jim Ingham <jingham@apple.com>
11351 * valarith.c (find_size_for_pointer_math): New function, either returns
11352 the size for a pointer's target, returns 1 for void *, or errors for
11354 (value_add, value_sub): use find_size_for_pointer_math.
11356 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11358 * linux-low.c (linux_look_up_symbols): New hook.
11359 (linux_target_ops): Add linux_look_up_symbols.
11360 * remote-utils.c (decode_address): New function.
11361 (look_up_one_symbol): New function.
11362 * server.c (handle_query): Call target look_up_symbols hook.
11363 * server.h (look_up_one_symbol): Add prototype.
11364 * target.h (struct target_ops): Add look_up_symbols hook.
11366 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11368 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11369 override FP_REGNUM with frame->fp. Update copyright.
11370 * parse.c (num_std_regs, std_regs): Delete.
11371 (target_map_name_to_register): Do not search std_regs. Update
11372 function description.
11373 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11374 declarations. Update copyright.
11377 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11379 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11380 after the last symbol in a block.
11382 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11384 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11385 is non zero as a found symbol.
11387 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11389 * findvar.c: Include "builtin-regs.h".
11390 (value_of_register): Call value_of_builtin_reg when applicable.
11391 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11392 (target_map_name_to_register): Call
11393 builtin_reg_map_name_to_regnum.
11394 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11395 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11396 (builtin_regs_h): Define.
11397 (builtin-regs.o): New target.
11398 (findvar.o): Add $(builtin_regs_h).
11399 * builtin-regs.c, builtin-regs.h: New files.
11400 * std-regs.c: New file.
11401 Partial fix for PR gdb/251.
11403 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11406 it's no longer required.
11408 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11410 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11412 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11414 From Jimi X <jimix@watson.ibm.com>:
11415 * rs6000-tdep.c (rs6000_software_single_step): Use
11416 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11417 and size. Use target_insert_breakpoint() and
11418 target_remove_breakpoint() to insert and remove breakpoints
11419 instead of explicit memory reads and writes.
11421 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11423 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11424 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11425 ELF_OBJECT_FORMAT ifdef.
11427 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11429 From Jimi X <jimix@watson.ibm.com>:
11430 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11432 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11434 From Jimi X <jimix@watson.ibm.com>:
11435 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11436 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11438 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11440 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11441 s/asprintf/xasprintf/.
11442 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11444 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11446 I believe Jeff Law denies responsability for this one:
11447 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11448 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11449 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11450 Work-around for PR gdb/366.
11452 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11454 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11455 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11456 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11458 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11460 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11461 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11464 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11466 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11469 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11471 * README (Reporting Bugs in GDB): Document the bug web page as the
11472 prefered way of submitting bugs.
11475 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11477 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11478 -1. Update comment.
11479 * gdbarch.h, gdbarch.c: Re-generate.
11481 2002-04-07 Andreas Schwab <schwab@suse.de>
11483 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11484 buffer to regcache_collect.
11486 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11488 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11489 * gdbarch.c, gdbarch.h: Re-generate.
11491 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11493 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11494 declaration. Fix -Werror.
11496 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11498 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11499 * gdbarch.c: Regenerate.
11501 2002-04-05 Michael Snyder <msnyder@redhat.com>
11503 * breakpoint.c (clear_command): Rewrite middle section to
11504 combine two loops with identical control conditions.
11505 Add a cleanup to eliminate a memory leak.
11506 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11508 2002-04-05 H.J. Lu (hjl@gnu.org)
11510 * solib-svr4.c (bkpt_names): Add "__start".
11512 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11514 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11515 as test for 64 bit target.
11517 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11519 * h8500-tdep.c (h8500_write_fp): Delete function.
11520 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11521 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11522 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11524 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11525 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11527 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11528 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11529 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11530 (d10v_write_fp): Delete function.
11531 * inferior.h (write_fp, generic_target_write_fp): Delete
11533 * regcache.c (generic_target_write_fp): Delete function.
11534 (write_fp): Delete function.
11535 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11537 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11538 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11539 (sparc64_write_fp): Delete declaration.
11540 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11541 (h8500_write_fp): Delete declaration.
11543 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11545 * sparc-tdep.c (sparc64_write_fp): Delete.
11546 (sparc_push_dummy_frame): Replace write_fp call with code to store
11548 (sparc_gdbarch_init): Do not initialize write_fp.
11550 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11552 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11555 2002-03-29 Jim Blandy <jimb@redhat.com>
11557 * stack.c (get_selected_block): Add new argument `addr_in_block',
11558 used to return the exact code address we used to select the block,
11559 not just the block.
11560 * blockframe.c (get_frame_block, get_current_block): Same.
11561 * frame.h (get_frame_block, get_current_block,
11562 get_selected_block): Update declarations.
11563 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11564 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11566 2002-04-05 Michael Snyder <msnyder@redhat.com>
11568 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11571 2002-04-05 J. Brobecker <brobecker@gnat.com>
11573 * utils.c (xfullpath): New function.
11574 * defs.h (xfullpath): Add declaration.
11575 * source.c (openp): Use xfullpath in place of gdb_realpath to
11576 avoid resolving the basename part of filenames when the
11577 associated file is a symbolic link. This fixes a potential
11578 inconsistency between the filenames known to GDB and the
11579 filenames it prints in the annotations.
11580 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11581 to be able to match a filename with either the real filename, or
11582 the name of any symbolic link to this file.
11583 (lookup_partial_symtab): Ditto.
11585 2002-04-04 Michael Snyder <msnyder@redhat.com>
11587 * breakpoint.c: Add support for hardware breakpoints in overlays.
11588 (overlay_events_enabled): New state variable.
11589 (insert_breakpoints): Use overlay_events_enabled to decide
11590 whether to attempt to set a breakpoint at the overlay load addr.
11591 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11592 (remove_breakpoint): Use overlay_events_enabled to decide
11593 whether breakpoints need to be removed from overlay load addr.
11594 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11595 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11596 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11597 disable_overlay_breakpoints): Update overlay_events_enabled.
11599 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11601 * dwarf2read.c (struct function_range): New.
11602 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11603 (check_cu_functions): New.
11604 (read_file_scope): Initialize global function lists.
11605 Call dwarf_decode_line after processing children.
11606 (read_func_scope): Add to global function list.
11607 (dwarf_decode_lines): Call check_cu_functions everywhere
11608 record_line is called. Call record_line with a linenumber
11609 of 0 to mark sequence ends.
11611 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11613 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11614 change sync with glibc.
11616 2002-04-03 Jim Blandy <jimb@redhat.com>
11618 * configure.in: Call AC_C_INLINE.
11619 * configure: Regenerated.
11621 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11623 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11624 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11626 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11628 * NEWS: Mention gcore support on FreeBSD/i386.
11630 * fbsd-proc.c: New file.
11631 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11632 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11634 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11637 2002-03-29 Jim Blandy <jimb@redhat.com>
11639 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11640 unescaped newlines in string literals, but newer ones don't. So
11643 2002-03-26 Michael Snyder <msnyder@redhat.com>
11644 Andrew Cagney <cagney@redhat.com>
11646 * cli/cli-dump.c: New file. Dump memory to file,
11647 restore file to memory.
11648 * cli/cli-dump.h: New file.
11649 * Makefile.in: Add rules, dependencies for cli-dump.o.
11650 * NEWS: Mention new commands.
11652 2002-03-28 Michael Snyder <msnyder@redhat.com>
11654 * symfile.c (symbol_file_add): Move test for null symbols to later.
11656 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11658 From veksler at il.ibm.com:
11659 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11660 the xstrduped original path.
11663 2002-03-27 Michael Snyder <msnyder@redhat.com>
11665 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11666 * infcmd.c (_initialize_infcmd): Ditto.
11667 * language.c (_initialize_language): Ditto.
11668 * symfile.c (_initialize_symfile): Ditto.
11669 * top.c (_init_main): Ditto.
11670 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11672 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11674 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11675 vector registers handling.
11676 (skip_prologue): Handle new AltiVec instructions. Fill in new
11677 fields of frame data.
11678 (frame_get_saved_regs): Fill in information for AltiVec registers.
11680 2002-03-27 Jim Blandy <jimb@redhat.com>
11682 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11683 a function; leave this macro here to invoke that function.
11684 (symbol_init_mangled_name): Declaration for that function.
11685 * symtab.c (symbol_init_mangled_name): New function.
11687 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11689 * valarith.c: Replace strerror with safe_strerror.
11690 * tracepoint.c: Ditto.
11691 * lin-lwp.c: Ditto.
11692 * go32-nat.c: Ditto.
11694 * gnu-nat.c: Ditto.
11696 2002-03-27 Andreas Schwab <schwab@suse.de>
11698 * event-top.c (command_line_handler): Remove useless if.
11700 2002-03-27 Andreas Jaeger <aj@suse.de>
11702 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11705 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11707 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11708 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11709 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11710 (x86_64_linux_dr_get_status, supply_gregset),
11711 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11712 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11713 (x86_64_register_info_table): Add.
11714 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11715 (x86_64_register_raw_size, x86_64_register_virtual_type),
11716 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11717 general x86_64_register_info_table.
11718 (i386_gdbarch_init): gdbarch_register_bytes is now set
11719 dynamicaly during initialization.
11720 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11721 * gdbserver/linux-x86-64-low.c: Ditto.
11723 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11725 * gdbserver/server.c (main): Call target_signal_to_host_p
11726 and target_signal_to_host on signals received from the remote.
11727 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11728 target_signal_from_host on signals sent to the remote.
11729 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11730 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11732 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11734 * signals/signals.c: Include "server.h" in gdbserver build.
11735 (target_signal_from_name): Don't use STREQ.
11736 (_initialize_signals): Likewise. Don't include function in
11739 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11741 * signals.c: Moved to...
11742 * signals/signals.c: Here.
11743 * Makefile (signals.o): Update.
11745 2002-03-26 Jeff Law (law@redhat.com)
11747 * somread.c (som_symtab_read): Remove some commented out code and
11748 updated related comments. Do not set the minimal symbol table to
11749 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11750 in a dynamic executable.
11751 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11752 where we are unable to find the minimal symbol for the given
11755 2002-03-25 Jeff Law (law@redhat.com)
11757 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11759 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11761 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11763 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11765 * command.h: Update copyright.
11766 (struct cmd_list_element): Replace definition with opaque
11768 (enum cmd_types): Document that it will eventually be moved to
11770 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11771 (MALLOCED_REPLACEMENT): Delete macro.
11772 * Makefile.in (cli_decode_h): Add $(command_h).
11773 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11774 * top.c: Include "cli/cli-decode.h".
11775 * completer.c: Include "cli/cli-decode.h".
11776 * maint.c: Include "cli/cli-decode.h".
11777 * cli/cli-decode.h: Include "command.h".
11778 (enum command_class): Delete.
11779 (enum cmd_types): Comment out.
11780 (enum cmd_auto_boolean): Delete.
11781 (enum var_types): Delete.
11783 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11785 * cli/cli-decode.c: Include "gdb_assert.h".
11786 (add_set_or_show_cmd): New static function.
11787 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11788 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11789 all fields, such as func, from the set command.
11791 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11793 * MAINTAINERS (sh-elf): Change warning flag to -w.
11795 2002-03-23 Andrew Cagney <cagney@redhat.com>
11797 * defs.h (error): Add printf format attribute.
11798 * thread-db.c (thread_from_lwp): Fix error format string.
11799 * stack.c (parse_frame_specification): Ditto.
11800 * cli/cli-decode.c (undef_cmd_error): Ditto.
11801 * scm-lang.c (scm_lookup_name): Ditto.
11802 * tracepoint.c (trace_error): Ditto.
11803 * remote-utils.c (usage): Ditto.
11804 * remote.c (compare_sections_command): Ditto.
11807 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11809 * gdbtypes.c (append_composite_type_field): New function.
11810 (init_composite_type): New function.
11811 * gdbtypes.h (append_composite_type_field): Declare.
11812 (init_composite_type): Ditto.
11814 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11816 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11818 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11819 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11820 structure returning convention for SYSV ABI case, but not
11821 for GNU/Linux, FreeBSD, or NetBSD.
11823 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11825 * symtab.h (lookup_block_symbol): Add mangled_name argument
11828 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11829 with new mangled_name argument.
11830 * linespec.c (decode_line_1): Likewise.
11831 * valops (value_of_this): Likewise.
11832 * symtab.c (lookup_transparent_type): Likewise.
11833 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11834 (lookup_symbol): If we are given a mangled name, pass it down
11835 to lookup_symbol_aux.
11836 (lookup_block_symbol): If we are given a mangled name to check
11837 against, only return symbols which match it.
11839 2002-03-22 Christopher Faylor <cgf@redhat.com>
11841 * win32-nat.c (child_create_inferior): Check for proper shell to use
11842 here, in case the user changes it on the fly.
11843 (_initialize_inftarg): Remove shell path considerations.
11845 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11847 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11848 for gdbarch_max_register_raw_size and max_register_virtual_size.
11849 Adjust copyright year.
11851 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11853 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11854 in a function to cover the entire beginning of the function
11855 as well if it does not already.
11857 2002-03-21 Tom Rix <trix@redhat.com>
11859 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11860 (rs6000_ptrace64): Renamed from ptrace64.
11862 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11864 * gdbserver/remote-utils.c (remote_open): Don't call
11865 getprotobyname, we're all using TCP here so just use
11867 * gdbserver/gdbreplay.c (remote_open): Ditto.
11869 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11871 * regcache.c (_initialize_regcache): No need to call
11872 build_regcache() at this time; it gets called whenever
11873 the gdbarch changes.
11875 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11877 * sparc-nat.c: Include sys/param.h where possible.
11879 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11882 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11883 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11884 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11886 * stabsread.c (rs6000_builtin_type): Likewise.
11887 (read_sun_floating_type): Likewise.
11889 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11891 * stabsread.c (read_member_functions): Remove skip code for duplicate
11892 constructor/destructor methods. Use standard parsing for these
11893 methods and just do not chain them to the list of methods after
11896 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11898 * coffread.c: Remove redundant static declarations. Replace
11899 occurrences of `PTR' with `void *'.
11900 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11901 * top.h (quit_cover): Likewise.
11902 * defs.h (catch_errors): Likewise.
11904 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11906 * defs.h (XMALLOC): Define.
11907 * gdb-events.sh (XMALLOC): Delete macro.
11908 * gdb-events.c, gdb-events.h: Regenerate.
11909 * gdbarch.sh (XMALLOC): Delete macro.
11910 * gdbarch.c: Regenerate.
11911 * serial.c (XMALLOC): Delete macro.
11912 * ui-file.c (XMALLOC): Ditto.
11913 * ser-unix.h (XMALLOC): Ditto.
11914 * sh-tdep.c (XMALLOC): Ditto.
11915 * ui-out.c (XMALLOC): Ditto.
11916 * utils.c (XMALLOC): Ditto.
11917 * i386-tdep.c (XMALLOC): Ditto.
11918 * gdb-events.c (XMALLOC): Ditto.
11919 * d10v-tdep.c (XMALLOC): Ditto.
11920 * cli-out.c (XMALLOC): Ditto.
11922 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11923 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11924 * ui-file.c, ui-out.c: Ditto.
11926 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11928 * command.h (struct cmd_list_element): Add field context.
11929 (set_cmd_context, get_cmd_context): Declare.
11930 * cli/cli-decode.h: Ditto.
11931 * cli/cli-decode.c (get_cmd_context): New function.
11932 (set_cmd_context): New function.
11933 (add_cmd): Initialize context.
11934 Part of fixing PR gdb/145 and PR gdb/146.
11936 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11938 * cli/cli-decode.c (cmd_type): New function.
11939 * command.h (cmd_type): Declare.
11940 * infrun.c (set_schedlock_func): Call function cmd_type.
11941 * kod.c (kod_set_os): Call cmd_type.
11942 * cris-tdep.c (cris_version_update): Use function cmd_type.
11943 (cris_mode_update, cris_abi_update): Ditto.
11945 * command.h: (execute_cmd_post_hook): Declare.
11946 (execute_cmd_pre_hook): Declare.
11947 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11948 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11949 functions. Execute pre/post hook while ensuring that afterwords
11950 hook_in is cleared.
11951 * top.c (execute_command): Use execute_cmd_post_hook, and
11952 execute_cmd_pre_hook to execute pre/post commands.
11953 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11955 (hook_stop_stub): Call execute_cmd_pre_hook.
11957 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11959 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11960 set'' and this leads to a core dump. Move xstrdup of
11961 operating_system to after check that it is not NULL.
11963 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11965 * kod.c (kod_set_os): Remove unnecessary check that
11966 ``command->type'' is set_cmd.
11968 * valprint.c (set_input_radix): Use input_radix.
11969 (set_output_radix): Use output_radix.
11970 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11973 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11975 * value.h (struct value): Delete field ``substring_addr''. Change
11976 aligner fields to force_doublest_align, force_longest_align,
11977 force_core_addr_align and force_pointer_aligh.
11979 * value.h (struct value): Fix typo in above change.
11981 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11983 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11984 to fix internal_error from ``maintenance print architecture''.
11986 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11988 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11989 for gcc versions after gcc-2.8.1.
11991 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11993 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11994 for method resolution. Restore adjustment of ``this'' pointer after
11995 calling value_struct_elt, which was accidentally removed during the
11998 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12000 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12002 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12003 get_saved_register.
12004 * value.h (value_of_register): Update.
12006 2002-03-14 Richard Henderson <rth@redhat.com>
12008 * configure.in: Detect declaration for canonicalize_file_name.
12009 * utils.c (canonicalize_file_name): Declare, if needed.
12010 (gdb_realpath): Prefer realpath if available and usable.
12011 * config.in, configure: Rebuild.
12013 2002-03-14 Richard Henderson <rth@redhat.com>
12015 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12016 a constant array bound.
12018 * MAINTAINERS: Add myself to write-after-approval.
12020 2002-03-14 Michael Snyder <msnyder@redhat.com>
12022 * symfile.c (syms_from_objfile): Return immediately if no syms.
12023 (symbol_file_add): Return immediately if no syms.
12024 (find_sym_fns): Return immediately if no syms.
12026 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12028 * gdbserver/remote-util.c (remote_open): Print remote-side's
12029 IP address when remote debugging over the network.
12031 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12033 * config/sparc/fbsd.mh: Fix copyright.
12034 * config/sparc/fbsd.mt: Likewise.
12036 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12038 * MAINTAINERS: Fix typo in name of gdb warnings option.
12039 (x86-64): Fix formating so that this can be parsed by awk.
12041 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12043 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12044 * defs.h: Include "gdb/signals.h".
12045 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12047 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12049 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12050 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12053 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12054 Don Howard <dhoward@redhat.com>
12056 * mips-tdep.c (ST0_FR): Define.
12057 (mips2_fp_compat): New function, temporarily disabled.
12058 (mips_read_fp_register_single): New function.
12059 (mips_read_fp_register_double): New function.
12060 (mips_print_register): Use them.
12061 (do_fp_register_row): Likewise.
12063 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12065 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12068 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12070 * stabsread.c (read_member_functions): Fix is_stub test for
12071 static member functions, improve comment.
12073 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12075 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12076 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12077 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12078 commands that set boolean values.
12079 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12080 (arm_rdi_resume): Always initialize PC.
12081 (arm_rdi_open): Don't use rslt as a boolean.
12082 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12083 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12084 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12085 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12087 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12089 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12090 * configure: Rebuilt.
12092 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12094 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12095 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12097 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12099 * cli/cli-decode.c (set_cmd_completer): New function.
12100 * command.h (set_cmd_completer): Declare.
12101 * cli/cli-decode.h (set_cmd_completer): Ditto.
12103 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12104 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12105 * win32-nat.c (_initialize_inftarg): Ditto.
12106 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12107 * proc-api.c (_initialize_proc_api): Ditto.
12108 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12109 * source.c (_initialize_source): Ditto.
12110 * exec.c (_initialize_exec): Ditto.
12111 * solib.c (_initialize_solib): Ditto.
12112 * top.c (init_main): Ditto.
12113 * tracepoint.c (_initialize_tracepoint): Ditto.
12114 * symfile.c (_initialize_symfile): Ditto.
12115 * printcmd.c (_initialize_printcmd): Ditto.
12116 * infcmd.c (_initialize_infcmd): Ditto.
12117 * corefile.c (_initialize_core): Ditto.
12119 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12121 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12123 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12125 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12127 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12129 * NEWS: Update headings, 5.2 has branched.
12131 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12133 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12134 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12135 (register_addr, REGISTER_RAW_SIZE): Likewise.
12136 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12137 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12139 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12141 * MAINTAINERS (x86-64): Add myself.
12142 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12143 changed value_ptr -> struct value *
12145 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12147 * configure.host (sparc64-*-freebsd): Add.
12148 * configure.tgt: Likewise.
12149 * config/sparc/fbsd.mh: New file.
12150 * config/sparc/fbsd.mt: Likewise.
12151 * config/sparc/nm-fbsd.h: Likewise.
12152 * config/sparc/tm-fbsd.h: Likewise.
12154 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12156 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12157 regformats/reg-s390x.dat.
12159 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12161 * utils.c: Add FIXME explaining true/false problem.
12163 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12165 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12167 2002-02-28 Michael Chastain <mec@shout.net>
12169 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12171 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12173 * gdbserver/linux-s390-low.c: New file.
12174 * regformats/reg-s390.dat: New file.
12175 * regformats/reg-s390x.dat: New file.
12176 * gdbserver/configure.srv: Add S/390.
12177 * gdbserver/Makefile.in: Add S/390.
12178 * configure.tgt: Enable gdbserver for S/390.
12180 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12182 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12183 first line of the doc string for "info dos", except at the end of
12184 the sentence, since the short help stops at the first period.
12186 2002-02-28 Jason Merrill <jason@redhat.com>
12188 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12190 2002-02-27 Fred Fish <fnf@redhat.com>
12192 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12193 comment (dumy -> dummy).
12195 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12197 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12199 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12201 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12203 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12205 * gdbserver/acconfig.h: New file.
12206 * gdbserver/i387-fp.c: New file.
12207 * gdbserver/i387-fp.h: New file.
12208 * gdbserver/linux-x86-64.c: New file.
12209 * regformats/reg-x86-64.dat: New file.
12210 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12211 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12212 * gdbserver/configure.in: Add support for regsets.
12213 * gdbserver/config.in: Regenerate.
12214 * gdbserver/configure: Regenerate.
12215 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12216 * gdbserver/linux-low.h: New file.
12217 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12219 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12220 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12221 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12222 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12223 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12224 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12225 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12226 "i387-fp.h". Add PTRACE_GETREGS and friends.
12227 * gdbserver/regcache.c (supply_register): New function.
12228 (supply_register_by_name): New function.
12229 (collect_register): New function.
12230 (collect_register_by_name): New function.
12232 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12234 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12235 (config.status): Add configure.srv dependency.
12236 (server_h): Add config.h dependency.
12238 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12240 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12241 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12242 * gdbserver/configure.srv: Change i386-*-linux* to use
12245 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12247 * x86-64-tdep.c: Re-indent. Update copyright date.
12249 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12251 From Michal Ludvig <mludvig@suse.cz>:
12252 * x86-64-tdep.c (value.h): Delete.
12253 (gdb_assert.h): Include.
12254 (x86_64_register_convert_to_virtual,
12255 x86_64_register_convert_to_raw ): Add check which lets only
12256 floating-point values to be converted.
12257 (value_push): Delete.
12258 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12259 (i386_gdbarch_init): Number of register_bytes fixed.
12261 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12263 * MAINTAINERS: Add x86-64 target.
12265 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12267 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12268 * osfsolib.c (solib_map_sections): Ditto.
12269 * irix5-nat.c (solib_map_sections): Ditto.
12270 * corelow.c (gdb_check_format): Ditto.
12271 * symfile.c (symfile_bfd_open): Ditto.
12272 * solib.c (solib_map_sections): Ditto.
12275 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12277 * remote.c (_initialize_remote): By default, disable ``e'' and
12278 ``E'' step out-of-range packets.
12280 2002-02-26 Andreas Schwab <schwab@suse.de>
12282 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12283 m68k_linux_frame_saved_pc.
12284 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12286 (SIGCONTEXT_PC_OFFSET): Remove.
12287 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12288 m68k_linux_sigtramp_saved_pc): New functions.
12289 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12290 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12291 (UCONTEXT_PC_OFFSET): Define.
12292 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12293 non-RT and RT signal trampolines.
12295 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12297 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12298 (TARGET_NBPG, STACK_END_ADDR): Delete
12299 (VARIABLES_INSIDE_BLOCK): Delete.
12301 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12303 * utils.c (perror_with_name): Make string parameter constant.
12304 (print_sys_errmsg): Ditto.
12306 * defs.h (perror_with_name): Update.
12307 (print_sys_errmsg): Update.
12310 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12312 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12313 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12315 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12317 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12318 if it already matches the current architecture from the exec file.
12319 Include arch-utils.h for gdbarch_info_init prototype.
12320 * Makefile.in (rs6000-nat.o): Update dependencies.
12322 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12324 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12325 list of exported variables.
12327 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12329 * gdbserver/configure.srv: New file.
12330 * gdbserver/configure.in: Use configure.srv instead
12331 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12333 * gdbserver/configure: Regenerated.
12334 * gdbserver/terminal.h: New file.
12335 * gdbserver/Makefile.in: Update for configure changes. Remove
12336 more unneeded include paths.
12338 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12340 From wiz at danbala:
12341 * config/sparc/tm-sp64.h: Fix grammar and typos.
12344 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12346 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12347 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12348 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12349 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12350 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12351 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12352 * s390-tdep.c: Ditto.
12353 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12354 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12355 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12356 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12357 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12358 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12359 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12360 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12361 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12362 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12365 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12367 * lin-thread.c: Delete file.
12368 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12369 to gdb_proc_service.h.
12370 * configure: Re-generate.
12372 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12373 * serial.c (serial_open): Delete check for "ocd".
12376 * Makefile.in (linux-thread.o): Delete target.
12377 * linux-thread.c: Delete file.
12379 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12380 renamed SH files to be consistent.
12382 * symtab.c (sort_search_symbols): Use xfree.
12384 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12386 * arm-linux-tdep.c (arm_linux_init_abi): Register
12387 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12388 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12389 definition with undef, since we don't want the sysvr4 definition.
12390 (SKIP_TRAMPOLINE_CODE): Likewise.
12392 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12394 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12396 * configure.in: (AC_CHECK_FUNCS) Added test for
12397 canonicalize_file_name Regenerated.
12398 * config.in, configure: Regenerated.
12399 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12400 defined use canonicalize_file_name.
12402 2002-02-23 Michael Chastain <mec@shout.net>
12404 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12406 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12408 * README: Remove references to cygnus.com.
12409 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12410 dot com'' form. Remove references to cygnus.com and sourceware.
12412 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12414 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12415 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12416 1003.1-2001 no longer allows "head -1".
12417 * gdb/Makefile.in (version.c): Likewise.
12418 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12419 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12420 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12422 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12424 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12425 * command.h (cmd_cfunc_eq): Declare.
12426 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12428 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12429 ``struct cmd_list_element *''.
12430 * cli/cli-cmds.c (is_complete_command): Update. Use
12432 * top.c (execute_command): Pass the command to
12433 is_complete_command.
12434 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12436 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12438 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12439 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12440 architecture defines.
12441 * s390-tdep.c (s390_gdbarch_init): Likewise.
12443 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12445 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12446 (arm_linux_push_arguments): Likewise.
12447 (arm_linux_init_abi): Register them. Also register linux-specific
12449 (find_minsym_and_objfile): Use strcmp, not STREQ.
12450 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12451 (arm_linux_call_dummy_words): Delete declaration.
12452 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12453 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12455 (LOWEST_PC): Delete.
12457 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12459 * maint.c (print_section_info): Do not prepend `0x' to filepos
12460 output, it will be handled by local_hex_string_custom.
12462 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12464 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12465 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12466 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12468 2002-02-22 Jim Blandy <jimb@redhat.com>
12470 Indicate that the bcache functions don't change the strings
12472 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12473 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12475 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12477 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12479 2002-02-21 Christopher Faylor <cgf@redhat.com>
12481 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12482 find the complete path to a loaded DLL.
12484 2002-02-21 Fred Fish <fnf@redhat.com>
12486 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12487 that marks the end of the range of a function, enter a line number
12488 entry that has a line number of zero and a PC offset that matches
12489 the end of the function. This starts a range of PC's for which no
12490 line number information is known.
12491 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12492 PC's for which no line number info is found (line number is zero)
12493 then we didn't find any valid line information.
12494 * symtab.h: Document use of zero line number entry.
12496 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12498 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12499 (have_ptrace_getvrregs): Define for run time checks.
12500 (gdb_vrregset_t): New type for Altivec register handling.
12501 (fetch_register, store_register): Fetch/store altivec register
12503 (fetch_altivec_register, store_altivec_register): New functions.
12504 (supply_vrregset, fill_vrregset): New functions.
12505 (fetch_altivec_registers, store_altivec_registers): New functions.
12506 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12509 2002-02-21 Jiri Smid <smid@suse.cz>
12511 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12513 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12515 * Makefile.in (armnbsd-nat.o): Update dependencies.
12516 * armnbsd-nat.c (supply_gregset): New function. Common code to
12517 supply the integer register set.
12518 (supply_fparegset): New function. Similar for FPA registers.
12519 (fetch_regs, fetch_fp_regs): Use them.
12520 (fetch_core_registers): Likewise.
12521 (fetch_elfcore_registers): New function.
12522 (arm_netbsd_elfcore_fns): New core-file type specification.
12523 (_initialize_arm_netbsd_nat): Register it.
12525 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12527 * armnbsd-nat.c: Include gdbcore.h.
12528 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12529 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12530 'void' to declaration, to shut up ARI.
12531 (fetch_core_registers): Make static. Rewrite using supply_register.
12532 (arm_netbsd_core_fns): New core-file type specification.
12533 (_initialize_arm_netbsd_nat): New function.
12535 2002-02-21 Christopher Faylor <cgf@redhat.com>
12537 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12540 2002-02-20 Christopher Faylor <cgf@redhat.com>
12542 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12545 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12547 * jv-exp.y (parse_number): Change type of implicit longs
12548 to builtin_type_uint64.
12550 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12552 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12553 to be an integer instead of a `union wait'.
12555 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12557 * mips-linux-nat.c: Call the operating system GNU/Linux.
12558 * mips-linux-tdep.c: Likewise.
12559 * mips-tdep.c: Likewise.
12561 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12564 * jv-exp.y (parse_number): Handle 64-bit integers.
12566 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12568 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12569 AC_STDC_HEADERS to AC_HEADER_STDC.
12570 * gdbserver/configure: Regenerated.
12572 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12574 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12576 * sparc-tdep.c (get_longjmp_target): Likewise.
12578 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12580 * News: Add news about ARM and Multi-arch. Mention the new target
12583 2002-02-19 Jim Blandy <jimb@redhat.com>
12585 * stabsread.c (error_type_complaint): Improve error message.
12587 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12589 * gdbserver/README: Update documentation.
12590 * gdbserver/configure.in: Update configury to match documentation.
12591 * gdbserver/Makefile.in: Likewise.
12592 * gdbserver/configure: Regenerated.
12593 * gdbserver/aclocal.m4: New file, generated by aclocal.
12594 * gdbserver/config.in: New file, generated by autoheader.
12596 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12598 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12601 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12603 * arm-tdep.h (enum arm_float_model): New enum.
12604 (struct gdbarch_tdep): Add fp_model.
12605 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12606 up floating-point conversions until we know the floating-point model
12607 in use by the inferior. Don't complain about being unable to
12608 determine the ABI of the inferior when we don't have one.
12609 (arm_extract_return_value): Support different floating-point models.
12610 (arm_store_return_value): Likewise.
12611 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12613 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12615 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12617 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12618 of ``current_gdbarch''.
12620 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12622 * armnbsd-nat.c : ANSIfy all function declarations.
12623 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12624 (fetch_inferior_registers): Re-implement in terms of above.
12625 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12626 (store_inferior_registers): Re-implement in terms of above.
12628 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12630 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12632 * arm-linux-tdep.c: Likewise.
12633 * config/arm/tm-linux.h: Likewise.
12635 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12637 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12638 * config/arm/nbsd.mt (TM_FILE): Delete.
12639 * config/arm/tm-nbsd.h: Delete.
12641 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12643 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12644 Initialize CALL_DUMMY_LENGTH.
12646 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12648 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12650 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12651 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12652 defines one thing and that is incorrect for this port.
12653 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12655 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12657 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12659 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12661 * win32-nat.c (display_selector): New function. Displays information
12662 about the information returned by GetThreadSelectorEntry API function.
12663 (display_selectors): New function. Displays the infomation of
12664 the selector given as argument, or of CS, DS ans FS selectors
12665 if no argument is given.
12666 ( _initialize_inftarg): Add "w32" as info prefix command.
12667 Add "info w32 selector" as command calling display_selectors.
12669 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12671 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12672 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12675 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12677 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12679 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12681 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12682 (arm_fix_call_dummy): Call it.
12683 (arm_call_dummy_breakpoint_offset): Delete.
12684 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12685 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12687 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12689 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12690 Default to func_frame_chain_valid.
12691 * gdbarch.h, gdbarch.c: Re-generate.
12692 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12694 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12696 * ppc-linux-nat.c: Update copyright.
12697 (fetch_register, store_register): Add tid parameter, don't compute
12699 (fetch_ppc_registers, store_ppc_registers): Add tid
12700 parameter. Pass it along to callees.
12701 (fetch_inferior_registers, store_inferior_registers): Compute tid
12702 here, and pass it to calleed functions.
12703 (fill_gregset, supply_fpregset): Clean up formatting.
12705 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12707 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12708 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12710 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12712 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12713 * gdbarch.c gdbarch.h: Regenerate.
12714 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12716 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12717 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12718 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12720 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12721 * arm-tdep.c (arm_get_longjmp_target): New function.
12722 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12723 this to a positive value register arm_get_longjmp_target as the
12725 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12726 (arm_linux_init_abi): Set up longjmp description in tdep.
12727 * armnbsd-nat.c (get_longjmp_target): Delete.
12728 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12729 description in tdep.
12730 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12731 (get_longjmp_target): Delete declaration.
12732 (GET_LONGJMP_TARGET): Delete.
12733 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12734 (GET_LONGJMP_TARGET): Delete.
12736 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12738 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12739 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12740 of ``current_gdbarch''.
12742 2002-02-17 Tom Tromey <tromey@redhat.com>
12744 * cli/cli-cmds.c (compare_strings): New function.
12745 (complete_command): Only print each unique item once.
12746 * completer.h (complete_line): Declare.
12747 * completer.c (complete_line): New function.
12748 (line_completion_function): Use it.
12750 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12752 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12753 * gdbarch.h, gdbarch.c: Re-generate.
12755 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12757 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12759 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12761 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12762 * valops.c (value_arg_coerce): Don't take the address of a reference
12763 to convert an argument to a reference.
12765 2002-02-15 Christopher Faylor <cgf@redhat.com>
12767 * win32-nat.c (get_image_name): New function.
12768 (handle_load_dll): Use get_image_name function.
12769 (get_child_debug_event): Avoid registering debug events until possibly
12770 execed process is started.
12771 (child_create_inferior): Allow invocation via shell so that command
12772 line redirection, etc. works ok.
12773 (_initialize_inftarg): Add new command: "set shell" to control whether
12774 a shell is used to start a process.
12776 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12778 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12779 instead of find_register_by_number.
12780 (cannot_store_register): Likewise.
12782 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12784 * dwarf2read.c: Replace fprintf (stderr, ...) by
12785 fprintf_unfiltered (gdb_stderr, ...).
12787 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12789 * gdbserver/gdbserver.1: Document --attach.
12791 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12793 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12795 * arm-tdep.c (arm_default_arm_le_breakpoint)
12796 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12797 (arm_default_thumb_be_breakpoint): New. Initialize them from
12798 traditional breakpoint defines.
12799 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12800 (arm_gdbarch_init): Initialize new breakpoint variables.
12801 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12802 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12803 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12804 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12806 (arm_netbsd_init_abi_common): ... here; new function.
12807 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12808 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12809 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12810 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12812 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12814 * arm-tdep.h (enum arm_abi): New enum.
12815 (struct gdbarch_tdep): New structure.
12816 (LOWEST_PC): Provide a default.
12817 (arm_gdbarch_register_os_abi): Declare new function.
12818 * arm-tdep.c (arm_abi_names): New array.
12819 (process_note_abi_tag_sections): New function.
12820 (get_elfosabi): New function.
12821 (arm_gdbarch_register_os_abi): New function.
12822 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12823 support for that ABI has been built in, then call the appropriate
12824 configuration routine. Use gdbarch_num_regs() to get the number
12826 (arm_dump_tdep): New function.
12827 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12828 place-holder functions.
12829 (_initialize_arm_tdep): Register them.
12830 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12832 * armnbsd-tdep.c: New file.
12833 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12834 * config/arm/nbsd.mt (TDEPFILES): Add it.
12835 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12837 * armnbsd-nat.c: Include regcache.h.
12838 * Makefile.in (armnbsd-nat.o): Update dependency list.
12840 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12842 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12844 * gdbserver/Makefile.in: Fix typos in target rules.
12846 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12848 Fix part of PR gdb/267.
12849 * linespec.c (find_methods): Handle constructors specially for now.
12851 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12853 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12855 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12856 standard_coerce_float_to_double().
12858 2002-02-14 Christopher Faylor <cgf@redhat.com>
12860 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12863 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12865 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12866 find_variant_by_name, because it confuses the multiarch
12867 framework. Return NULL if there isn't an architecture with the
12868 user supplied name, instead of forcing a different one without
12869 recording the change with the multiarch machinery.
12870 (find_variant_by_name): Delete.
12872 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12874 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12875 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12877 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12879 * stack.c (print_frame_info_base): When calling
12880 print_frame_info_listing_hook, set current_source_symtab.
12882 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12884 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12885 and remove unused $(INCLUDE_DIR).
12886 Add regcache.c to OBS.
12887 Add generated register protocol files to clean target.
12888 Update dependencies for new objects, obsolete old target code.
12890 * gdbserver/linux-low.c: Remove all platform-specific code to
12891 new files. Remove various dead code. Update to use regcache
12893 * gdbserver/remote-utils.c (fromhex): Add return statement
12895 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12897 (input_interrupt): Add integer parameter to match prototype
12898 of a signal handler.
12899 (outreg): Use register_data ().
12900 (prepare_resume_reply): Use gdbserver_expedite_regs.
12901 * gdbserver/server.c (main): Dynamically allocate own_buf because
12902 PBUFSIZ is no longer constant. Use registers_to_string () and
12903 registers_from_string ().
12904 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12905 for error (), fatal (), and warning (). Update definition of
12906 PBUFSIZ to use regcache functionality. Add include guard.
12907 * gdbserver/utils.c (fatal): Add missing ``const''.
12908 (warning): New function.
12910 * regformats/regdat.sh: Include "regcache.h" in generated files.
12911 Provide init_registers () function.
12912 * regformats/regdef.h: Add prototype for set_register_cache ().
12915 * gdbserver/linux-arm-low.c: New file.
12916 * gdbserver/linux-i386-low.c: New file.
12917 * gdbserver/linux-ia64-low.c: New file.
12918 * gdbserver/linux-m68k-low.c: New file.
12919 * gdbserver/linux-mips-low.c: New file.
12920 * gdbserver/linux-ppc-low.c: New file.
12921 * gdbserver/linux-sh-low.c: New file.
12923 * gdbserver/regcache.c: New file.
12924 * gdbserver/regcache.h: New file.
12926 * gdbserver/low-linux.c: Removed obsolete file.
12928 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12930 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12931 * config/i386/linux.mt: Likewise.
12932 * config/ia64/linux.mt: Likewise.
12933 * config/m68k/linux.mh: Likewise.
12934 * config/powerpc/linux.mh: Likewise.
12935 * config/mips/linux.mt: Likewise.
12937 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12939 * config/i386/i386lynx.mh: Mark gdbserver variables
12940 as (currently) obsolete for this target.
12941 * config/i386/nbsd.mt: Likewise.
12942 * config/i386/nbsdelf.mt: Likewise.
12943 * config/m32r/m32r.mt: Likewise.
12944 * config/m68k/m68klynx.mh: Likewise.
12945 * config/m68k/nbsd.mt: Likewise.
12946 * config/m68k/sun3os4.mh: Likewise.
12947 * config/mips/vr5000.mt: Likewise.
12948 * config/ns32k/nbsd.mt: Likewise.
12949 * config/pa/hppabsd.mh: Likewise.
12950 * config/pa/hppaosf.mh: Likewise.
12951 * config/powerpc/nbsd.mt: Likewise.
12952 * config/rs6000/rs6000lynx.mh: Likewise.
12953 * config/s390/s390.mt: Likewise.
12954 * config/s390/s390x.mt: Likewise.
12955 * config/sparc/sparclynx.mh: Likewise.
12956 * config/sparc/sun4os4.mh: Likewise.
12957 * config/i386/x86-64linux.mt: Likewise.
12958 * config/sparc/linux.mh: Likewise.
12960 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12962 * configure.tgt: Configure gdbserver only for known working
12963 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12964 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12965 SUBDIRS if it is configured. Update comment for ${nativefile}.
12966 * configure: Regenerated.
12968 2002-02-13 Michael Snyder <msnyder@redhat.com>
12970 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12972 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12973 (default_gcore_mach): Just return 0, work around a problem in bfd.
12974 (default_gcore_target): OK to return NULL if exec_bfd is null.
12975 (make_mem_sec): Use a cast, avoid a warning.
12977 * procfs.c (find_memory_regions_callback): Use a cast instead of
12978 calling host_pointer_to_address (which complains if
12979 sizeof (host pointer) != sizeof (target pointer)).
12980 (procfs_make_note_section): Avoid overflow in psargs string.
12982 * procfs.c (procfs_make_note_section): Make the default
12983 implementation return an error.
12985 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12987 * procfs.c (procfs_make_note_section): Provide a default definition
12988 (for alpha-dec-osf4.0f). Fix typos.
12990 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12992 * linux-proc.c: Add include of regcache.h.
12993 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12995 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12997 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12998 * memattr.c (create_mem_region): Disallow useless empty region.
12999 Regions are half-open intervals, so allow [A..B) [B..C) as
13002 2002-02-13 Michael Chastain <mec@shout.net>
13004 * defs.h: Kill CONST_PTR.
13005 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13006 * c-lang.c (c_builtin_types): Likewise.
13007 * ch-lang.c (ch_builtin_types): Likewise.
13008 * f-lang.c (f_builtin_types): Likewise.
13009 * language.c (unknown_builtin_types): Likewise.
13010 * m2-lang.c (m2_builtin_types): Likewise.
13011 * p-lang.c (pascal_builtin_types): Likewise.
13012 * scm-lang.c (c_builtin_types): Likewise.
13014 2002-02-13 Keith Seitz <keiths@redhat.com>
13016 * arm-tdep.h (arm_get_next_pc): Add declaration.
13018 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13020 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13021 with other related struct-returning functions.
13022 (arm_extract_struct_value_address): New function.
13023 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13024 initialize float_format, double_format and long_double_format as
13025 appropriate to the endianness of the target.
13026 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13027 (arm_use_struct_convention): Delete declaration.
13028 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13030 2002-02-13 Keith Seitz <keiths@redhat.com>
13032 * defs.h (core_addr_to_string_nz): New function.
13034 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13036 Apply missing bits of 2002-01-15 patch.
13037 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13038 (fill_fpregset): Use i387_fill_fsave.
13040 2002-02-12 Keith Seitz <keiths@redhat.com>
13042 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13043 (core_addr_to_string_nz): New function.
13045 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13047 * arm-linux-nat.c: Really include arm-tdep.h.
13048 * config/arm/tm-linux.h (struct type, struct value): Declare.
13050 2002-02-11 Michael Snyder <msnyder@redhat.com>
13052 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13053 (gcore section): Ifdef for Solaris and Unixware only.
13054 (procfs_do_thread_registers): Unixware needs one lwpstatus
13055 per thread (not one prstatus or pstatus).
13056 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13057 not over all gdb threads. For unixware, call elfcore_write_pstatus
13058 once before iterating over threads.
13060 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13062 * arm-tdep.h: New file.
13063 * arm-tdep.c: Include arm-tdep.h.
13064 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13065 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13066 (arm_print_float_info, arm_register_type, convert_to_extended)
13067 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13068 (arm_extract_return_value, arm_register_name): Make static.
13069 (arm_software_single_step): Similarly. Fix types in declaration.
13070 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13071 (arm_store_return_value, arm_store_struct_return): New functions.
13072 (arm_gdbarch_init): Register the above functions. Also register
13073 call_dummy_start_offset, sizeof_call_dummy_words,
13074 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13075 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13076 max_register_virtual_size, register_size. Set up
13077 prologue_cache.saved_regs here, rather than ...
13078 (_initialize_arm_tdep): ... here.
13079 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13081 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13082 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13083 (arm_print_float_info, arm_register_type, convert_to_extended)
13084 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13085 (arm_extract_return_value, arm_register_name): Delete declarations.
13086 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13087 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13088 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13089 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13090 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13091 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13092 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13093 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13094 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13095 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13096 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13097 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13099 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13100 * remote-rdi.c remote-rdp.c: Likewise.
13101 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13102 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13103 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13106 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13107 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13108 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13109 from non-ARM_ prefixed definitions.
13110 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13112 * remote-rdi.c remote-rdp.c: Likewise.
13113 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13115 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13117 * arm-tdep.c (arm_frameless_function_invocation)
13118 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13119 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13120 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13121 (arm_pop_frame, arm_get_next_pc): Make static.
13122 (arm_gdbarch_init): Register above in gdbarch structure.
13123 (arm_read_fp): Renamed from arm_target_read_fp.
13124 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13125 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13126 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13127 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13128 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13129 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13130 (arm_pc_is_thumb_dummy): Delete declarations.
13131 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13132 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13133 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13134 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13136 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13138 * symtab.c (compare_search_syms): New function.
13139 (sort_search_symbols): New function.
13140 (search_symbols): Sort symbols after searching rather than
13143 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13145 * NEWS: Linux -> GNU/Linux.
13147 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13149 * gdbarch.sh: For for level one methods, disallow a definition
13150 when partially multi-arched. Add comments explaining rationale.
13151 * gdbarch.h: Re-generate.
13153 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13155 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13156 multi-arch partial.
13158 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13160 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13161 field. Use diff -u.
13162 * gdbarch.c: Re-generate.
13164 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13166 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13167 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13170 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13172 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13173 multi-arch partial.
13174 (PUSH_ARGUMENTS): Switch to using predefault.
13175 * gdbarch.c: Regenerate.
13177 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13179 * valops.c (PUSH_ARGUMENTS): Delete definition.
13180 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13181 partial. Default to default_push_arguments.
13182 * gdbarch.h, gdbarch.c: Regenerate.
13184 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13186 * defs.h (throw_exception): Rename return_to_top_level. Update
13188 * utils.c (error_stream, internal_verror, quit): Ditto.
13189 * top.c (throw_exception, catcher): Ditto.
13190 * sparclet-rom.c (sparclet_load): Ditto.
13191 * remote.c (interrupt_query, minitelnet): Ditto.
13192 * remote-sds.c (interrupt_query): Ditto.
13193 * remote-mips.c (mips_error, mips_kill): Ditto.
13194 * ocd.c (interrupt_query): Ditto.
13195 * monitor.c (monitor_interrupt_query): Ditto.
13196 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13197 * target.h: Update comment.
13199 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13201 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13203 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13204 default_double_format.
13205 * gdbarch.h, gdbarch.c: Re-generate.
13206 * findvar.c (floatformat_unknown): Delete variable definition.
13207 * doublest.h (floatformat_unknown): Delete variable declaration.
13209 2002-02-09 Jim Blandy <jimb@redhat.com>
13211 * stabsread.c (read_type): Add code to parse Sun's syntax for
13212 prototyped function types.
13214 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13216 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13217 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13219 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13221 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13222 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13223 now _initialize_xcoffsolib gets called again and overrides the
13224 commands from solib.c in a native configuration.
13226 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13228 * doublest.c (store_typed_floating): Don't try to return a value.
13231 2002-02-08 Jim Blandy <jimb@redhat.com>
13233 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13234 is prototyped and has no arguments, print its argument list as
13237 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13239 * MAINTAINERS (write-after-approval): Add myself.
13240 (paper-trail): I've escaped!
13242 2002-02-08 Christopher Faylor <cgf@redhat.com>
13244 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13246 (_initialize_check_for_gdb_ini): Ditto.
13248 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13250 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13251 xaprintf -> xasprintf.
13253 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13255 * win32-nat.c: Remove use of printf and sprintf functions.
13257 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13259 * arm-tdep.c (arm_frame_chain_valid): Make static.
13260 (arm_push_arguments): Likewise.
13261 (arm_gdbarch_init): New function.
13262 (_initialize_arm_tdep): Call it.
13263 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13264 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13265 (FRAME_CHAIN_VALID): Delete.
13266 (arm_frame_chain_valid): Delete declaration.
13267 (PUSH_ARGUMENTS): Delete.
13268 (arm_push_arguments): Delete declaration.
13269 (CALL_DUMMY_P): Delete.
13271 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13272 Corinna Vinschen <vinschen@redhat.com>
13274 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13275 on builtin float types.
13277 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13279 * utils.c: Include <curses.h> before "bfd.h".
13280 * tui/tui-hooks.c: Likewise.
13281 * tui/tui.c: Likewise.
13282 * tui/tuiCommand.c: Likewise.
13283 * tui/tuiData.c: Likewise.
13284 * tui/tuiDataWin.c: Likewise.
13285 * tui/tuiDisassem.c: Likewise.
13286 * tui/tuiGeneralWin.c: Likewise.
13287 * tui/tuiIO.c: Likewise.
13288 * tui/tuiLayout.c: Likewise.
13289 * tui/tuiRegs.c: Likewise.
13290 * tui/tuiSource.c: Likewise.
13291 * tui/tuiSourceWin.c: Likewise.
13292 * tui/tuiStack.c: Likewise.
13293 * tui/tuiWin.c: Likewise.
13295 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13297 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13298 to include space for pseudoregs as well. Update loops accordingly.
13299 (sh_fp_frame_init_saved_regs): Ditto.
13300 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13302 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13304 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13305 Add Richard Earnshaw to Arm maintainers.
13307 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13309 * defs.h (warning_begin): Delete declaration.
13311 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13314 2002-02-07 Michael Snyder <msnyder@redhat.com>
13316 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13317 Logic bug, remove misplaced else.
13319 2002-02-07 Klee Dienes <klee@apple.com>
13321 * fork-inferior.c (fork_inferior): Add '!' to the list of
13322 characters that need to be quoted when building a string for the
13323 shell. Quote '!' specifically with a backslash, since CSH chokes
13324 when trying to evaluate "str!str".
13326 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13328 * rdi-share/host.h: Only provide a typedef for bool if it is not
13331 2002-02-04 Michael Snyder <msnyder@redhat.com>
13333 * breakpoint.h (enum bptype): Add new overlay event bp type.
13334 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13336 * breakpoint.c (create_internal_breakpoint): New function.
13337 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13338 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13339 (create_thread_event_breakpoint): Ditto.
13340 (create_solib_event_breakpoint): Ditto.
13341 (create_overlay_event_breakpoint): New function.
13342 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13343 (update_breakpoints_after_exec): Delete and re-initialize
13344 overlay event breakpoints after an exec. Add FIXME comment
13345 about longjmp breakpoint.
13346 (print_it_typical): Ignore overlay event breakpoints.
13347 (print_one_breakpoint): Ditto.
13349 (bpstat_what): Do not stop for overlay event breakpoints.
13350 (delete_breakpoint): Don't delete overlay event breakpoints.
13351 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13352 (breakpoint_re_set): Re-create overlay event breakpoint.
13354 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13355 (overlay_manual_command): Disable overlay breakpoints.
13356 (overlay_off_command): Disable overlay breakpoints.
13358 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13360 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13361 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13362 to here from config/tm-arm.h.
13363 (coff_sym_is_thumb): Make static.
13364 (arm_elf_make_msymbol_special): New function.
13365 (arm_coff_make_msymbol_special): New function.
13366 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13367 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13368 (coff_sym_is_thumb): Delete declaration.
13369 (arm_elf_make_msymbol_special): Declare.
13370 (arm_coff_make_msymbol_special): Declare.
13371 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13372 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13374 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13376 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13378 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13380 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13381 * gdbarch.c gdbarch.h: Regenerate.
13382 * arch-utils.c (default_print_float_info): New function.
13383 * arch-utils.h (default_print_float_info): Prototype it.
13384 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13385 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13386 (PRINT_FLOAT_INFO): Document it.
13388 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13389 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13390 (PRINT_FLOAT_INFO): Define.
13392 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13394 * win32-nat.c (_initialize_check_for_gdb_ini):
13395 Add typecast to sprintf argument to suppress a warning.
13397 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13399 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13400 to allow easier handling of pass state.
13401 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13402 that gives exception name and address.
13403 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13404 and set last_sig value to ourstatus->value.sig. Some missing
13406 (child_continue): Correctly report continue_status.
13407 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13408 TARGET_SIGNAL_0 (new default value).
13409 (child_resume): consider sig argument passed to decide if
13410 the exception should be passed to debuggee or not.
13412 2002-02-05 Michael Snyder <msnyder@redhat.com>
13414 * regcache.c (fetch_register): Call target_fetch_register
13415 only if we don't call FETCH_PSEUDO_REGISTER.
13416 (store_register): Call target_store_register only if we
13417 don't call STORE_PSEUDO_REGISTER.
13419 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13421 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13422 ELF_MAKE_MSYMBOL_SPECIAL.
13423 * gdbarch.c, gdbarch.h: Regenerate.
13424 * arch-utils.c (default_make_msymbol_special): New function.
13425 * arch-utils.h (default_make_msymbol_special): Export.
13426 * elfread.c (elf_symtab_read): Compile use of
13427 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13429 * coffread.c (coff_symtab_read): Ditto, for
13430 COFF_MAKE_MSYMBOL_SPECIAL.
13432 2002-02-05 Jim Blandy <jimb@redhat.com>
13434 * solib-svr4.c (svr4_truncate_ptr): New function.
13435 (svr4_relocate_section_addresses): Do the address arithmetic with
13436 the appropriate truncation for target addresses, even when
13437 CORE_ADDR is larger than a target address.
13439 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13441 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13444 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13446 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13449 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13451 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13453 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13455 * gdbserver/linux-low.c: Remove unused include files.
13457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13459 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13460 (read_inferior_memory): Use it.
13461 (write_inferior_memory): Likewise.
13463 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13465 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13466 grubbing through sys_errlist.
13468 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13470 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13472 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13473 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13475 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13477 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13478 (do_sfunc, set_cmd_sfunc): New functions.
13480 * command.h (struct cmd_list_element): Add field func.
13481 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13482 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13483 * cli/cli-decode.h: Ditto.
13485 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13486 (help_all, help_cmd_list): Ditto.
13487 (find_cmd, complete_on_cmdlist): Ditto.
13488 * top.c (execute_command): Ditto.
13490 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13493 * infcmd.c (notice_args_read): Fix function signature.
13495 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13496 * cli/cli-decode.c (add_set_cmd): Ditto.
13497 * utils.c (initialize_utils): Ditto.
13498 * maint.c (_initialize_maint_cmds): Ditto.
13499 * infrun.c (_initialize_infrun): Ditto.
13500 * demangle.c (_initialize_demangler): Ditto.
13501 * remote.c (add_packet_config_cmd): Ditto.
13502 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13503 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13504 * proc-api.c (_initialize_proc_api): Ditto.
13505 * kod.c (_initialize_kod): Ditto.
13506 * valprint.c (_initialize_valprint): Ditto.
13507 * top.c (init_main): Ditto.
13508 * infcmd.c (_initialize_infcmd): Ditto.
13509 * corefile.c (_initialize_core): Ditto.
13510 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13511 * arch-utils.c (initialize_current_architecture): Ditto.
13512 (_initialize_gdbarch_utils): Ditto.
13513 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13515 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13516 * wince.c (_initialize_inftarg): Ditto.
13517 * symfile.c (_initialize_symfile): Ditto.
13518 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13519 * language.c (_initialize_language): Ditto.
13520 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13522 2002-02-04 Michael Snyder <msnyder@redhat.com>
13524 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13526 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13528 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13529 Add rules for building the register data files.
13531 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13533 * regformats/regdat.sh: Add braces to the definition of
13534 expedite_regs_${arch}.
13536 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13538 * regformats/regdef.h (struct reg): Add comment describing the
13539 requirements for offset and size fields.
13541 2002-02-04 Andreas Schwab <schwab@suse.de>
13543 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13544 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13546 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13548 * gdbarch.sh (copyright): Update years in generated header.
13549 (SMASH_TEXT_ADDRESS): Add rule.
13550 * gdbarch.h, gdbarch.c: Re-generate.
13551 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13552 * dbxread.c: Likewise.
13553 * dwarfread.c: Likewise.
13554 * elfread.c: Likewise.
13555 * somread.c: Likewise.
13557 * arm-tdep.c (arm_smash_text_address): New function.
13558 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13560 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13562 Add support for hardware watchpoints on win32 native.
13563 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13564 CONTEXT_DEBUG_REGISTERS.
13565 (dr variable): New variable. Static array containing a local copy
13566 of debug registers.
13567 (debug_registers_changed): New variable. Reflects when debug registers
13568 are changed and need to be written to inferior.
13569 (debug_registers_used): New variable. Reflects when any debug register
13570 was set, used when new threads are created.
13571 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13573 (thread_rec): Set dr array if id is the thread of current_event .
13574 (child_continue, child_resume): Change the debug registers for all
13575 threads if debug_registers_changed.
13576 (child_add_thread): Change the debug registers if debug_registers_used.
13577 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13578 Link nm.h to new nm-cygwin.h file.
13579 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13580 of hardware registers.
13582 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13584 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13585 Restore behavour broken by 2002-01-20 Andrew Cagney
13586 <ac131313@redhat.com> IEEE_FLOAT removal.
13588 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13590 * c-valprint.c (c_val_print): Pass a proper valaddr to
13591 cp_print_class_method.
13592 * valops.c (search_struct_method): If there is only one method
13593 and args is NULL, return that method.
13595 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13597 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13598 accessing tag_name directly.
13600 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13602 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13603 of accessing tag_name directly.
13605 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13608 * gdbtypes.c (replace_type): New function.
13609 * gdbtypes.h (replace_type): Add prototype.
13610 * stabsread.c (read_type): Use replace_type.
13612 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13614 * Makefile.in (memattr.o): Add missing dependencies rule.
13616 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13618 * breakpoint.c (break_at_finish_command): Really export.
13619 (break_at_finish_at_depth_command): Ditto.
13620 (tbreak_at_finish_command): Ditto.
13621 * hppa-tdep.c: Include completer.h.
13622 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13623 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13625 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13627 * utils.c (do_write): New function.
13628 (error_stream): Rewrite combining the code from error_begin and
13630 (verror): Rewrite using error_stream.
13631 (error_begin): Delete function.
13633 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13635 * utils.c (error_begin): Make static.
13636 * defs.h (error_begin): Delete declaration.
13638 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13639 (decode_line_1): Use cplusplus_error instead of error_begin,
13640 cplusplus_hint and return_to_top_level.
13641 * coffread.c (coff_symfile_read): Use error instead of error_begin
13642 and return_to_top_level.
13643 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13645 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13647 * language.h (type_error, range_error): Make string parameter
13649 * language.c (warning_pre_print): Delete extern declaration.
13650 * dwarfread.c (warning_pre_print): Ditto.
13651 * language.c (type_error, range_error): Rewrite to use verror and
13652 vwarning instead of warning_begin.
13654 2002-02-01 Michael Snyder <msnyder@redhat.com>
13656 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13657 (set_ignore_count): Move misplaced comment back where it belongs.
13659 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13661 * command.h (NO_FUNCTION): Delete macro.
13662 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13663 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13664 * tracepoint.c (_initialize_tracepoint): Ditto.
13665 * cli/cli-decode.c (add_set_cmd): Ditto.
13666 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13668 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13670 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13671 Update ``this'' pointer when calling virtual functions.
13673 2002-02-01 Michael Snyder <msnyder@redhat.com>
13675 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13676 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13678 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13680 * regformats/reg-arm.dat: New file.
13681 * regformats/reg-i386.dat: New file.
13682 * regformats/reg-ia64.dat: New file.
13683 * regformats/reg-m68k.dat: New file.
13684 * regformats/reg-mips.dat: New file.
13685 * regformats/reg-ppc.dat: New file.
13686 * regformats/reg-sh.dat: New file.
13687 * regformats/regdef.h: New file.
13688 * regformats/regdat.sh: New file.
13690 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13692 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13693 (arm_frame_args_address, arm_frame_locals_address): New functions.
13694 (arm_frame_num_args): New function.
13695 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13696 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13697 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13699 2002-01-31 Michael Snyder <msnyder@redhat.com>
13701 * breakpoint.c (break_at_finish_command): Export.
13702 (break_at_finish_at_depth_command): Export.
13703 (tbreak_at_finish_command): Export.
13704 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13705 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13706 "txbreak" commands, which are HPPA specific.
13708 * printcmd.c (disassemble_command): Remove an ancient
13709 artifact of an old merge.
13711 * symfile.h (enum overlay_debugging_state):
13712 Define enum constant values for overlay mode.
13713 * symfile.c (overlay_debugging): Use enums instead of literals.
13714 (overlay_is_mapped, overlay_auto_command,
13715 overlay_manual_command): Ditto.
13717 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13718 breakpoint_here_p, breakpoint_inserted_here_p,
13719 breakpoint_thread_match, bpstat_stop_status,
13720 describe_other_breakpoints, check_duplicates, clear_command):
13721 Coding standard fixes.
13723 * target.c (target_xfer_memory): Add spaces, coding standard.
13724 (do_xfer_memory): Add missing line to trust-readonly
13725 code: check bfd SEC_READONLY flag for section.
13727 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13729 * PROBLEMS: Fix typo, 5.1->5.1.1.
13731 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13733 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13734 data symbols, since we search based on textlow and texthigh.
13735 (find_pc_sect_symtab): Likewise.
13737 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13739 * defs.h (vwarning): Declare.
13740 * utils.c (vwarning): New function.
13741 (warning): Call vwarning.
13742 (warning_begin): Delete function.
13744 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13745 the warning message.
13746 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13749 2002-01-30 Michael Snyder <msnyder@redhat.com>
13751 * NEWS: Mention "set trust-readonly-sections" command.
13752 Mention generate-core-file command.
13754 2002-01-15 Michael Snyder <msnyder@redhat.com>
13756 * target.c: New command, "set trust-readonly-sections on".
13757 (do_xfer_memory): Honor the suggestion to trust readonly sections
13758 by reading them from the object file instead of from the target.
13759 (initialize_targets): Register command "set trust-readonly-sections".
13761 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13763 * parse.c (target_map_name_to_register): Simplify, search regs and
13764 pseudo-regs using a single loop.
13766 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13768 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13770 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13772 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13773 * config/i386/i386v42mp.mh: Add i387-nat.o .
13774 * i386v4-nat.c: Include i387-nat.h.
13775 (supply_fpregset): Use i387_supply_fsave.
13776 (fill_fpregset): Use i387_fill_fsave.
13778 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13780 * arm-tdep.c (arm_call_dummy_words): Define.
13781 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13782 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13783 (CALL_DUMMY_WORDS): Define.
13784 (arm_call_dummy_words): Declare.
13785 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13786 (arm_linux_call_dummy_words): Declare.
13788 2002-01-30 Andreas Schwab <schwab@suse.de>
13790 * m68klinux-nat.c: Fix last change to use regcache_collect
13791 instead of referencing registers[] directly.
13793 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13795 * parse.c (target_map_name_to_register): Delete code wrapped in
13796 #ifdef REGISTER_NAME_ALIAS_HOOK.
13798 2002-01-28 Michael Snyder <msnyder@redhat.com>
13800 * regcache.c (legacy_read_register_gen): Need to be able to
13801 read pseudo-register as well as real register.
13802 (legacy_write_register_gen): Ditto.
13804 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13806 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13807 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13808 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13809 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13810 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13811 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13812 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13813 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13814 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13815 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13816 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13817 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13818 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13819 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13820 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13821 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13822 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13823 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13824 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13825 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13827 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13829 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13830 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13831 (initialize_current_architecture): Update target_byte_order using
13832 information from BFD.
13833 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13834 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13836 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13838 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13839 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13841 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13842 #ifdef INVALID_FLOAT.
13843 * infcmd.c (do_registers_info): Ditto.
13844 * values.c (unpack_double): Ditto. Add comment.
13846 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13847 already commented out.
13849 2002-01-26 Andreas Schwab <schwab@suse.de>
13851 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13852 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13853 registers and add support for PTRACE_GETREGS.
13855 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13857 GDB 5.1.1 released from 5.1 branch.
13858 * NEWS: Add 5.1.1 news.
13859 * README: Sync with 5.1 branch.
13861 2002-01-23 Fred Fish <fnf@redhat.com>
13863 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13864 stabstring on initial malloc. Reallocing will copy it for us,
13867 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13869 * Makefile.in (hpread_h): Delete.
13870 (HFILES_NO_SRCDIR): Remove hpread.h.
13871 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13872 (hpread.o): Update dependencies.
13873 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13875 * hp-psymtab-read.c: Remove file.
13876 * hp-symtab-read.c: Remove file.
13877 * hpread.h: Remove file.
13879 * hpread.c: Merge all contents of hp-psymtab-read.c,
13880 hp-symtab-read.c and hpread.h into this file, as it was prior to
13883 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13884 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13885 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13886 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13888 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13890 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13891 fill_gregset): Call gdbarch_tdep() just once, assign result to
13892 variable and use that, instead of calling the function several
13895 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13897 * configure.host: Accept sparcv9 as alias for sparc64.
13898 * configure.tgt: Likewise.
13900 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13902 * solib-aix5.c (build_so_list_from_mapfile)
13903 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13904 arguments is not reversed.
13905 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13906 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13908 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13910 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13911 modified version of obsolete sh_fetch_pseudo_register.
13912 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13913 (sh4_register_read): New function.
13914 (sh_pseudo_register_write): New function. Renamed and modified
13915 version of obsolete sh_store_pseudo_register.
13916 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13917 (sh4_register_write): New function.
13918 (sh_gdbarch_init): Remove setting of gdbarch function
13919 fetch_pseudo_register and store_pseudo_register. Remove setting of
13920 register_convert_to_raw, register_convert_to_virtual,
13921 register_convertible.
13922 (sh_sh4_register_convertible): Delete. No longer needed. All is
13923 taken care by architecture specific functions
13924 register_read/register_write.
13925 (sh_sh4_register_convert_to_virtual): Make static.
13926 (sh_sh4_register_convert_to_raw): Ditto.
13928 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13930 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13931 (floatformat_is_nan, floatformat_mantissa): Ditto.
13933 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13934 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13935 builtin_type_ieee_double_little,
13936 builtin_type_ieee_double_littlebyte_bigword,
13937 builtin_type_m68881_ext, builtin_type_i960_ext,
13938 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13939 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13940 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13941 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13943 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13945 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13946 parameter. Set frameless flag if it exists and depended of
13947 whether the scanned function is frameless or not.
13948 (xstormy16_skip_prologue): If function is frameless, return
13949 result of xstormy16_scan_prologue().
13950 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13953 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13955 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13956 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13957 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13958 sh_sh4_register_byte, sh_sh4_register_raw_size,
13959 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13960 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13961 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13962 sh_store_pseudo_register, sh_do_pseudo_register): Call
13963 gdbarch_tdep() just once, assign result to variable and use that,
13964 instead of calling the function several times.
13966 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13968 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13969 macros instead of LAST_FPU_CTRL_REGNUM.
13970 (store_register): Likewise.
13972 2002-01-21 Jim Blandy <jimb@redhat.com>
13974 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13975 is up-to-date before running the program, not just when a program
13978 2002-01-21 Fred Fish <fnf@redhat.com>
13980 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13981 when we have found all instructions we are looking for.
13983 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13985 * arm-tdep.c (arm_register_name): New function.
13986 (arm_registers_names): Make static.
13987 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13988 (arm_register_name): Declare.
13989 (REGISTER_NAME): Use it.
13991 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13992 Kevin Buettner <kevinb@redhat.com>
13994 Convert arm targets to new FRAME interface.
13995 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13996 (arm_frame_find_save_regs): Delete.
13997 (arm_frame_init_saved_regs): New.
13998 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13999 Allocate extra_info as required. Convert all uses of fsr.regs
14000 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14002 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14003 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14004 (check_prologue_cache, save_prologue_cache): Likewise.
14005 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14006 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14007 (FRAME_FIND_SAVED_REGS): Delete.
14008 (arm_frame_find_saved_regs): Delete prototype.
14009 (arm_frame_init_saved_regs): New prototype.
14010 (FRAME_INIT_SAVED_REGS): Define.
14012 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14014 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14016 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14018 From Jeff Law <law@redhat.com>:
14019 * infttrace.c: Include <sys/pstat.h>.
14020 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14021 exec file if the ttrace equivalent fails.
14023 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14025 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14026 (closeLogFile): Ditto.
14028 2002-01-20 Michael Chastain <mec@shout.net>
14030 * top.c (print_gdb_version): Bump copyright year to 2002.
14032 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14034 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14035 Zannoni and Eli Zaretskii.
14037 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14039 * buildsym.c: Update copyright years.
14040 * c-typeprint.c: Likewise.
14041 * dwarf2read.c: Likewise.
14042 * f-typeprint.c: Likewise.
14043 * gdbtypes.c: Likewise.
14044 * gdbtypes.h: Likewise.
14045 * hp-symtab-read.c: Likewise.
14046 * hpread.c: Likewise.
14047 * mdebugread.c: Likewise.
14048 * p-typeprint.c: Likewise.
14050 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14052 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14053 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14054 byte-order selectable.
14055 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14056 * arch-utils.c: Ditto.
14057 (set_endian): Ditto.
14058 (set_endian_from_file): Ditto.
14059 * gdbserver/low-sim.c (create_inferior): Ditto.
14060 * gdbarch.sh: Ditto.
14061 * gdbarch.h: Re-generate.
14062 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14063 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14064 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14065 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14066 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14067 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14068 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14069 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14071 * config/mips/tm-wince.h: Remove #undef of macro
14072 TARGET_BYTE_ORDER_SELECTABLE.
14073 * config/sh/tm-wince.h: Ditto.
14075 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14077 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14078 member function fields. Add accessor macro
14079 TYPE_FN_FIELD_ARTIFICIAL.
14080 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14081 * c-typeprint.c (c_type_print_base): Skip artificial member
14084 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14086 * f-typeprint.c: Delete unused function f_type_print_args.
14087 * p-typeprint.c: Delete unused function pascal_type_print_args.
14089 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14091 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14092 comment. Add ``artificial'' to ``union field_location''.
14094 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14096 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14097 * mdebugread.c (parse_symbol): Likewise.
14098 * stabsread.c (define_symbol): Likewise.
14099 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14100 initializing TYPE_FIELD_BITPOS to n (obsolete).
14101 (hpread_doc_function_type): Likewise.
14102 * hpread.c (hpread_function_type): Likewise.
14104 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14106 * configure.in (host_makefile_frag): Only require a host makefile
14107 fragment when a native build.
14108 * configure: Re-generate.
14110 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14112 * doublest.h (floatformat_from_type): Declare.
14113 * doublest.c (floatformat_from_type): New function.
14114 (convert_typed_floating): Use.
14116 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14117 call to function floatformat_from_type.
14119 * gdbarch.sh (IEEE_FLOAT): Delete.
14120 * gdbarch.h, gdbarch.c: Re-generate.
14121 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14122 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14123 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14124 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14125 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14126 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14127 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14128 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14129 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14130 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14131 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14132 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14134 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14135 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14136 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14137 * sh-tdep.c (sh_gdbarch_init): Ditto.
14138 * mips-tdep.c (mips_gdbarch_init): Ditto.
14139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14140 * cris-tdep.c (cris_gdbarch_init): Ditto.
14142 2002-01-20 Jiri Smid <smid@suse.cz>
14144 * configure.host, configure.tgt: Support x86-64.
14145 * NEWS: Note new target x86-64.
14147 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14148 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14149 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14150 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14151 x86-64-linux-nat.o): Fix dependencies.
14153 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14155 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14156 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14157 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14158 * config/sparc/xm-sun4os4.h: Delete file.
14159 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14161 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14163 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14164 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14165 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14166 * config/i386/i386lynx.mh (XM_FILE): Delete.
14167 * config/rs6000/xm-rs6000ly.h: Delete file.
14168 * config/sparc/xm-sparclynx.h: Delete file.
14169 * config/m68k/xm-m68klynx.h: Delete file.
14170 * config/i386/xm-i386lynx.h: Delete file.
14171 * config/xm-lynx.h: Delete file.
14172 * config/djgpp/fnchange.lst: Update.
14174 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14176 * alpha-tdep.c (alpha_register_byte): New function.
14177 (alpha_register_raw_size): Ditto.
14178 (alpha_register_virtual_size): Ditto.
14179 (alpha_skip_prologue_internal): Renamed from
14180 alpha_skip_prologue.
14181 (alpha_skip_prologue): New version that calls
14182 alpha_skip_prologue_internal.
14183 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14184 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14185 second argument from alpha_skip_prologue.
14186 (REGISTER_BYTE): Use alpha_register_byte.
14187 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14188 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14189 (FRAMELESS_FUNCTION_INVOCATION): Use
14190 generic_frameless_function_invocation_not.
14191 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14192 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14194 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14196 * config/mips/xm-news-mips.h: Delete file.
14197 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14199 * config/m88k/xm-m88k.h: Delete file.
14200 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14201 * config/m88k/xm-delta88v4.h: Ditto.
14202 * config/m88k/xm-delta88.h: Ditto.
14204 * config/alpha/xm-fbsd.h: Delete file.
14205 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14207 * config/sparc/xm-sparc.h: Delete file.
14208 * Makefile.in (xm-sun4os4.h): Delete dependency.
14209 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14210 * config/sparc/xm-sun4os4.h: Ditto.
14211 * config/sparc/xm-linux.h: Ditto.
14213 * config/i386/xm-windows.h: Delete file.
14215 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14217 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14218 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14220 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14222 * alpha-tdep.c (alpha_call_dummy_words): New.
14223 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14224 (CALL_DUMMY_P): Define.
14225 (CALL_DUMMY_WORDS): Define.
14226 (SIZEOF_CALL_DUMMY_WORDS): Define.
14228 2002-01-19 Per Bothner <per@bothner.com>
14230 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14231 isn't NULL, which can happen with some gcj-3.x-produced code.
14233 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14235 * alpha-tdep.c (alpha_register_virtual_type): New function.
14236 (alpha_init_frame_pc_first): Ditto.
14237 (alpha_fix_call_dummy): Ditto.
14238 (alpha_store_struct_return): Ditto.
14239 (alpha_extract_struct_value_address): Ditto.
14240 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14241 alpha_register_virtual_type.
14242 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14243 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14244 alpha_extract_struct_value_address.
14245 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14246 (INIT_FRAME_PC): Use init_frame_pc_noop.
14247 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14249 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14251 * i386gnu-nat.c: Include "i386-tdep.h".
14252 (fetch_fpregs): Simplify code dealing with uninitialized floating
14253 point states such that it doesn't require FP7_REGNUM.
14255 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14257 * alpha-tdep.c (frame_extra_info): New.
14258 (alpha_find_saved_regs): Make static. Use
14260 (alpha_frame_init_saved_regs): New function.
14261 (alpha_frame_saved_pc): Use frame->extra_info.
14262 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14263 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14264 (init_extra_frame_info): Rename to...
14265 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14266 (alpha_print_extra_frame_info): New function.
14267 (alpha_frame_locals_address): Ditto.
14268 (alpha_frame_args_address): Ditto.
14269 (alpha_pop_frame): Use frame->extra_info.
14270 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14271 alpha_frame_args_address.
14272 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14273 (alpha_find_saved_regs): Remove prototype.
14274 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14275 (EXTRA_FRAME_INFO): Remove.
14276 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14277 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14279 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14281 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14282 (alpha_cannot_fetch_register): Ditto.
14283 (alpha_cannot_store_register): Ditto.
14284 (alpha_register_convertible): Ditto.
14285 (alpha_use_struct_convention): Ditto.
14286 * config/alpha/tm-alpha.h: Update copyright years.
14287 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14288 (INNER_THAN): Use core_addr_lessthan.
14289 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14290 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14291 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14292 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14293 (FRAME_CHAIN): Remove unnecessary cast.
14295 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14297 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14300 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14302 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14303 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14304 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14305 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14306 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14307 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14308 * x86-64-linux-nat.c: Ditto.
14310 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14312 * alpha-tdep.c (alpha_register_name): New function.
14313 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14314 (REGISTER_NAME): Define.
14316 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14318 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14320 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14322 * alpha-tdep.c: Update copyright years.
14323 (alpha_next_pc): New function.
14324 (alpha_software_single_step): Ditto.
14325 * config/alpha/tm-alpha.h: Add prototype for
14326 alpha_software_single_step.
14328 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14330 * alphabsd-nat.c: Update copyright years.
14331 (fill_gregset): Use regcache_collect.
14332 (fill_fpregset): Likewise.
14333 (fetch_inferior_registers): Only fetch integer registers
14334 if requested to do so.
14335 (store_inferior_registers): Only store integer registers
14336 if requested to do so.
14338 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14340 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14341 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14342 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14343 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14344 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14345 * config/arm/linux.mh (XDEPFILES): Delete.
14346 * config/arm/nbsd.mh (XDEPFILES): Delete.
14347 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14348 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14349 * config/i386/i386m3.mh (XDEPFILES): Delete.
14350 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14351 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14352 * config/i386/fbsd.mh (XDEPFILES): Delete.
14353 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14354 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14355 * config/i386/i386v4.mh (XDEPFILES): Delete.
14356 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14357 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14358 * config/i386/i386aix.mh (XDEPFILES): Delete.
14359 * config/i386/go32.mh (XDEPFILES): Delete.
14360 * config/i386/cygwin.mh (XDEPFILES): Delete.
14361 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14362 * config/i386/i386mach.mh (XDEPFILES): Delete.
14363 * config/i386/i386v32.mh (XDEPFILES): Delete.
14364 * config/i386/linux.mh (XDEPFILES): Delete.
14365 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14366 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14367 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14368 * config/i386/i386sco.mh (XDEPFILES): Delete.
14369 * config/i386/i386v.mh (XDEPFILES): Delete.
14370 * config/i386/nbsd.mh (XDEPFILES): Delete.
14371 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14372 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14373 * config/i386/symmetry.mh (XDEPFILES): Delete.
14374 * config/i386/obsd.mh (XDEPFILES): Delete.
14375 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14376 * config/ia64/linux.mh (XDEPFILES): Delete.
14377 * config/ia64/aix.mh (XDEPFILES): Delete.
14378 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14379 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14380 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14381 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14382 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14383 * config/m68k/linux.mh (XDEPFILES): Delete.
14384 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14385 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14386 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14387 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14388 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14389 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14390 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14391 * config/m88k/delta88.mh (XDEPFILES): Delete.
14392 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14393 * config/m88k/m88k.mh (XDEPFILES): Delete.
14394 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14395 * config/mips/linux.mh (XDEPFILES): Delete.
14396 * config/mips/irix6.mh (XDEPFILES): Delete.
14397 * config/mips/irix5.mh (XDEPFILES): Delete.
14398 * config/mips/irix4.mh (XDEPFILES): Delete.
14399 * config/mips/irix3.mh (XDEPFILES): Delete.
14400 * config/mips/decstation.mh (XDEPFILES): Delete.
14401 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14402 (NATDEPFILES): Move core-aout.o to here.
14403 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14404 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14405 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14406 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14407 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14408 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14409 * config/pa/hpux11.mh (XDEPFILES): Delete.
14410 * config/powerpc/aix.mh (XDEPFILES): Delete.
14411 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14412 * config/powerpc/linux.mh (XDEPFILES): Delete.
14413 * config/romp/rtbsd.mh: Rename XDEPFILES.
14414 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14415 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14416 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14417 * config/s390/s390.mh (XDEPFILES): Delete.
14418 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14419 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14420 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14421 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14422 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14423 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14424 * config/sparc/linux.mh (XDEPFILES): Delete.
14425 * config/vax/vaxult.mh (XDEPFILES): Delete.
14426 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14427 * Makefile.in (DEPFILES): Remove XDEPFILES.
14429 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14431 * utils.c (internal_verror): Fix comments, default is yes not no.
14432 Update queries to match. Default to quit and dump core.
14434 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14436 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14438 * defs.h, event-top.c, gdbcmd.h: Ditto.
14439 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14440 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14441 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14442 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14443 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14444 * mi/mi-main.c:Ditto.
14446 * stack.c, symfile.c: Update copyright.
14448 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14450 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14451 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14452 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14453 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14455 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14457 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14458 * gdbserver/low-lynx.c (myattach): Likewise.
14459 * gdbserver/low-nbsd.c (myattach): Likewise.
14460 * gdbserver/low-sim.c (myattach): Likewise.
14461 * gdbserver/low-sparc.c (myattach): Likewise.
14462 * gdbserver/low-sun3.c (myattach): Likewise.
14464 * gdbserver/low-linux.c (myattach): New function.
14466 * gdbserver/server.c (attach_inferior): New function.
14467 (main): Handle "--attach".
14469 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14471 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14474 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14476 * c-typeprint.c (is_type_conversion_operator): Add additional
14477 check for non-conversion operators.
14479 2002-01-15 Michael Snyder <msnyder@redhat.com>
14481 * linux-proc.c: Add "info proc" command, a la procfs.c.
14482 (read_mapping): New function, abstract and re-use code.
14483 (linux_find_memory_regions): Use new func read_mapping.
14484 (linux_info_proc_cmd): New function, implement "info proc".
14485 (_initialize_linux_proc): Add new command "info proc".
14487 2002-01-15 Michael Snyder <msnyder@redhat.com>
14489 * symfile.c (generic_load): Use bfd_map_over_sections method
14490 instead of manipulating bfd structure members directly.
14491 (add_section_size_callback): New function, bfd sections callback
14492 used by generic_load.
14493 (load_sections_callback): New function, bfd sections callback
14494 used by generic_load.
14496 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14498 [Based on work by Jim Blandy]
14499 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14500 (builtin_type_vec128): Export.
14501 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14503 (builtin_type_vec128): New builtin type for 128 bit vector
14505 (build_gdbtypes): Initialize builtin_type_v16qi and
14506 builtin_type_v8hi. Create the vec128 register builtin type
14508 (build_builtin_type_vec128): New function.
14509 (_initialize_gdbtypes): Register builtin_type_v16qi and
14510 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14511 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14512 AltiVec register to new builtin type.
14514 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14516 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14519 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14521 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14522 CLEAN_UP_REGISTER_VALUE.
14523 * regcache.c (supply_register): Update only call.
14525 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14527 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14528 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14529 a29k-*-vxworks* targets as obsolete.
14531 2002-01-14 Michael Snyder <msnyder@redhat.com>
14533 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14534 until we can resolve portability issues.
14535 * gregset.h: Remove references to fpxregs.
14536 * gcore.c (gcore_command): Initialize note_sec to NULL.
14538 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14540 * signals.c (target_signal_to_name): Rewrite. Only use
14541 signals[].name when in bounds and non-NULL.
14543 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14545 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14546 * signals.c (target_signal_to_name): Verify that SIG is within the
14547 bounds of the signals array.
14549 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14551 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14553 2002-01-13 Keith Seitz <keiths@redhat.com>
14555 * stack.c (print_frame_info_base): Print the frame's pc
14556 only if when print_frame_info_listing_hook is not defined.
14558 2002-01-13 Keith Seitz <keiths@redhat.com>
14560 * varobj.c (varobj_set_value): Make sure that there were no
14561 errors evaluating the object before attempting to set its
14563 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14564 so this offset adjustment is no longer necessary.
14565 (create_child): Don't set the error flag if the child is
14566 a CPLUS_FAKE_CHILD.
14567 (value_of_child): If value_fetch_lazy fails, return NULL
14568 so that callers will be notified that an error occurred.
14569 (c_value_of_variable): Delay check of variable's validity
14570 until later. We actually want all structs and unions to have
14572 Do not return "???" for variables which could not be evaluated.
14573 This error condition must be returned to the caller so that it
14574 can get the error condition from gdb.
14575 (cplus_name_of_child): Adjust index for vptr before figuring
14576 out the name of the child.
14577 (cplus_value_of_child): If a child's (real) parent is not valid,
14578 don't even bother trying to give a value for it. Just return
14579 an error. Change all instances in this function.
14580 (cplus_type_of_child): If our parent is one of the "fake"
14581 parents, we need to get at the type of the real parent, and
14582 derive the child's true type using this information.
14584 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14586 From 2002-01-09 John Marshall <johnm@falch.net>:
14587 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14588 sources.redhat.com, and tweak some related URLs which had
14589 suffered from linkrot.
14591 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14594 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14595 structures passed in registers.
14597 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14599 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14600 white space which prevented compilation. Reported by DSK
14601 <dsk@student.unsw.edu.au>.
14603 2002-01-11 Michael Snyder <msnyder@redhat.com>
14605 * symfile.c (build_section_addr_info_from_section_tab):
14606 Use bfd access method instead of manipulating bfd directly.
14607 (syms_from_objfile): Ditto.
14608 (simple_overlay_update_1): Ditto.
14609 (simple_overlay_update): Ditto.
14610 (generic_load): Ditto.
14611 (overlay_unmapped_address): FIXME comment, bfd access methods.
14612 (sections_overlap): FIXME comment, bfd access methods.
14613 (pc_in_mapped_range): FIXME comment, bfd access methods.
14614 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14615 (section_is_mapped): FIXME comment, bfd access methods.
14616 (section_is_overlay): FIXME comment, bfd access methods.
14618 * symfile.c (generic_load): Whitespace and long line cleanups.
14619 Remove duplicate variable, change several local variables to
14620 more appropriate data types.
14621 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14623 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14625 From Peter Schauer:
14626 * language.c (longest_local_hex_string_custom): Use phex_nz to
14627 convert NUM to a hex string.
14629 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14631 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14633 Update Copyright year.
14635 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14637 * language.c (longest_raw_hex_string): Delete unused function.
14639 2002-01-11 Petr Sorfa <petrs@caldera.com>
14641 * MAINTAINERS (write-after-approval): Add myself.
14642 * dwarf2read.c (read_tag_string_type): Handling of
14644 (read_tag_string_type): FORTRAN fix to prevent propagation of
14646 (set_cu_language): Handling of DW_LANG_Fortran95
14648 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14650 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14651 GETPID(inferior_ptid).
14652 (store_inferior_registers): Likewise.
14654 2002-01-10 Jason Merrill <jason@redhat.com>
14656 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14659 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14661 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14662 and bfd/elf32-sh-nbsd.c.
14664 2002-01-10 Michael Snyder <msnyder@redhat.com>
14666 * NEWS: Mention --pid and corefile/proc-id behavior change.
14668 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14669 * gcore.c: Include cli/cli-decode.h instead of command.h.
14671 * main.c (captured_main): Add new command line option "--pid".
14672 If the second command line argument (following the symbol-file)
14673 begins with a digit, try to attach to it before trying to open
14675 (print_gdb_help): Document the "--pid" argument.
14677 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14679 * completer.c (command_completer): New function.
14681 * completer.h <command_completer>: Add prototype.
14683 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14684 completer for the "help" command.
14686 2002-01-09 Jason Merrill <jason@redhat.com>
14688 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14690 2002-01-09 Michael Snyder <msnyder@redhat.com>
14692 * i386-linux-nat.c (fill_fpxregset): Make global.
14693 (store_fpxregset): Ditto.
14695 * gregset.h (gdb_fpxregset_t): Define.
14696 (supply_fpxregset): Prototype.
14697 (fill_fpxregset): Prototype.
14699 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14701 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14703 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14704 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14705 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14707 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14709 * MAINTAINERS: Update target maintainer rules so that any
14710 Maintainer can approve a tested patch for a maintenance-only
14713 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14715 * MAINTAINERS (write-after-approval): Add myself.
14717 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14720 2002-01-08 Michael Snyder <msnyder@redhat.com>
14722 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14723 real name of the executable, rather than the /proc name.
14725 2002-01-03 Michael Snyder <msnyder@redhat.com>
14727 Implement a "generate-core-file" command in gdb, save target state.
14728 * gcore.c: New file. Implement new command 'generate-core-file'.
14729 Save a corefile image of the current state of the inferior.
14730 * linux-proc.c: Add linux-specific code for saving corefiles.
14731 * target.h (struct target_ops): Add new target vectors for saving
14732 corefiles; to_find_memory_regions and to_make_corefile_notes.
14733 (target_find_memory_regions): New macro.
14734 (target_make_corefile_notes): New macro.
14735 * target.c (update_current_target): Inherit new target methods.
14736 (dummy_find_memory_regions): New place-holder method.
14737 (dummy_make_corefile_notes): New place-holder method.
14738 (init_dummy_target): Initialize new dummy target vectors.
14739 * exec.c (exec_set_find_memory_regions): New function.
14740 Allow the exec_ops vector for memory regions to be taken over.
14741 (exec_make_note_section): New function, target vector method.
14742 * defs.h (exec_set_find_memory_regions): Export prototype.
14743 * procfs.c (proc_find_memory_regions): New function, corefile method.
14744 (procfs_make_note_section): New function, corefile method.
14745 (init_procfs_ops): Set new target vector pointers.
14746 (find_memory_regions_callback): New function.
14747 (procfs_do_thread_registers): New function.
14748 (procfs_corefile_thread_callback): New function.
14749 * sol-thread.c (sol_find_memory_regions): New function.
14750 (sol_make_note_section): New function.
14751 (init_sol_thread_ops): Initialize new target vectors.
14752 * inftarg.c (inftarg_set_find_memory_regions): New function.
14753 Allow to_find_memory_regions vector to be taken over.
14754 (inftarg_set_make_corefile_notes): New function.
14755 Allow to_make_corefile_notes vector to be taken over.
14756 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14757 interface layer if not target_has_execution (may be a corefile).
14758 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14759 * config/sparc/sun4sol2.mh: Ditto.
14760 * config/alpha/alpha-linux.mh: Ditto.
14761 * config/arm/linux.mh: Ditto.
14762 * config/i386/x86-64linux.mh: Ditto.
14763 * config/ia64/linux.mh: Ditto.
14764 * config/m68k/linux.mh: Ditto.
14765 * config/mips/linux.mh: Ditto.
14766 * config/powerpc/linux.mh: Ditto.
14767 * config/sparc/linux.mh: Ditto.
14769 2002-01-07 Michael Snyder <msnyder@redhat.com>
14771 * arm-linux-nat.c: Remove references to regcache.c internal data
14772 (registers[] and register_valid[]).
14774 2002-01-07 Michael Snyder <msnyder@redhat.com>
14776 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14777 so that attaching to a pid will automatically read the process's
14778 symbol file and shlibs.
14779 * Makefile.in: Add rule for linux-proc.o.
14780 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14781 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14782 * config/arm/linux.mh: Ditto.
14783 * config/i386/linux.mh: Ditto.
14784 * config/i386/x86-64linux.mh: Ditto.
14785 * config/ia64/linux.mh: Ditto.
14786 * config/m68k/linux.mh: Ditto.
14787 * config/mips/linux.mh: Ditto.
14788 * config/powerpc/linux.mh: Ditto.
14789 * config/sparc/linux.mh: Ditto.
14791 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14793 * win32-nat.c: Add i386-tdep.h dependency.
14795 2002-01-07 Michael Snyder <msnyder@redhat.com>
14797 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14798 instead of bfd_get_arch_size. Don't bail out just because
14799 there's no exec_bfd.
14801 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14802 * p-valprint.c (pascal_object_print_value): Ditto.
14803 * somread.c (som_symtab_read): Ditto.
14804 * symfile.c (simple_free_overlay_region_table): Ditto.
14805 * valops.c (value_assign): Ditto.
14807 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14808 use tilde_expand and strerror for opening save-tracepoints file.
14810 * thread-db.c (thread_db_new_objfile): Indendation fix.
14812 * infptrace.c (GDB_MAX_ALLOCA): New define.
14813 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14814 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14815 can be overridden with whatever value is appropriate to the host).
14816 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14817 alloca to allocate potentially large buffer.
14818 * rs6000-nat.c (child_xfer_memory): Ditto.
14819 * symm-nat.c (child_xfer_memory): Ditto.
14820 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14822 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14824 From Nick Clifton <nickc@redhat.com>
14825 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14827 2002-01-07 Michael Snyder <msnyder@redhat.com>
14829 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14830 Don't use exec_bfd if it's NULL.
14832 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14834 * valops.c (value_arg_coerce): Fix formatting.
14836 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14838 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14839 * gnu-nat.c: Ditto.
14841 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14843 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14844 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14845 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14846 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14847 z8k-coff have not been multi-arched. Update z8k-coff build
14850 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14852 * MAINTAINERS: Mark a29k target as obsolete.
14853 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14854 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14856 * NEWS: Note that a29k targets are obsolete.
14857 * a29k-tdep.c: Mark as obsolete.
14858 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14859 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14860 a29k-*-vxworks* targets as obsolete.
14861 * remote-adapt.c: Obsolete.
14862 * remote-eb.c: Obsolete.
14863 * remote-mm.c: Obsolete.
14864 * remote-udi.c: Obsolete.
14865 * config/a29k/a29k-udi.mt: Obsolete.
14866 * config/a29k/a29k.mt: Obsolete.
14867 * config/a29k/tm-a29k.h: Obsolete.
14868 * config/a29k/tm-vx29k.h: Obsolete.
14869 * config/a29k/vx29k.mt: Obsolete.
14871 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14873 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14874 with BFD_ENDIAN_BIG.
14876 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14878 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14879 * configure, config.in: Re-generate.
14880 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14881 * defs.h: Do not include <endian.h>.
14883 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14885 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14886 * config.in: Regenerate.
14887 * configure.in: Update copyright years.
14888 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14889 * configure: Regenerate.
14890 * i386bsd-nat.c: Update copyright years.
14891 (fill_gregset): Use regcache_collect.
14892 (fetch_inferior_registers): Only fetch integer registers
14893 if requested to do so. Add support for XMM registers
14894 using PT_GETXMMREGS.
14895 (store_inferior_registers): Only store integer registers
14896 if requested to do so. Add support for XMM registers
14897 using PT_SETXMMREGS.
14898 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14899 (store_inferior_registers): Remove.
14900 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14901 (fetch_elfcore_registers): New function.
14902 (i386nbsd_elfcore_fns): New.
14903 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14904 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14906 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14907 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14908 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14909 * config/i386/tm-nbsd.h: Update copyright years.
14910 (HAVE_SSE_REGS): Define.
14911 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14912 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14913 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14914 (SIGCONTEXT_PC_OFFSET): Remove.
14915 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14917 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14919 * configure.tgt: Remove powerpc-*-macos* target.
14920 * config/m68k/xm-mpw.h: Delete file.
14921 * config/xm-mpw.h: Delete file.
14922 * ser-mac.c: Delete file.
14923 * mpw-make.sed: Delete file.
14924 * mpw-config.in: Delete file.
14925 * mac-xdep.c: Delete file.
14926 * mac-gdb.r: Delete file.
14927 * mac-defs.h: Delete file.
14928 * mac-nat.c: Delete file.
14929 * config/powerpc/macos.mh: Delete file.
14930 * config/powerpc/macos.mt: Delete file.
14931 * config/powerpc/nm-macos.h: Delete file.
14932 * config/powerpc/tm-macos.h: Delete file.
14933 * source.c (openp, open_source_file): Remove obsolete code.
14934 * top.c (gdb_readline): Ditto.
14935 * utils.c (query): Ditto.
14936 * event-top.c (display_gdb_prompt): Ditto.
14937 * Makefile.in (ser-mac.o): Delete obsolete target.
14940 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14942 * defs.h (BIG_ENDIAN): Delete macro definition.
14943 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14944 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14945 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14946 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14947 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14948 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14949 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14950 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14951 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14952 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14953 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14954 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14955 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14956 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14957 * gdbarch.c: Re-generate.
14959 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14961 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14964 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14966 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14968 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14970 * value.h (value_ptr): Delete typedef.
14972 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14974 * i386nbsd-nat.c: Update copyright years.
14975 Include i386-tdep.h.
14977 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14979 * stabsread.c: Update copyright years.
14981 From Debashis Mahata <debashis.mahata@wipro.com>:
14982 (read_struct_fields): Deal with Sun C compiler erroneous stab
14983 output for structs and unions.
14986 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14988 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14991 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14993 * cp-abi.c: Fix whitespace.
14994 (baseclass_offset): New wrapper function.
14995 * cp-abi.h (baseclass_offset): Add prototype.
14996 (struct cp_abi_ops): Add baseclass_offset pointer.
14998 * valops.c (vb_match): Move to...
14999 * gnu-v2-abi.c (vb_match): here.
15000 * valops.c (baseclass_offset): Move to...
15001 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15003 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15005 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15006 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15007 * hpacc-abi.c (init_hpacc_ops): Likewise.
15009 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15011 * valops.c (find_overload_match): Accept obj as a
15012 reference parameter. Update it before returning.
15013 * value.h (find_overload_match): Update prototype.
15014 * eval.c (evaluate_subexp_standard): Pass object to
15015 find_overload_match by reference.
15017 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15019 * valarith.c: Replace value_ptr with struct value pointer. Remove
15020 register attribute from value declarations.
15023 * scm-lang.c (scm_lookup_name): Ditto.
15025 2002-01-03 Michael Snyder <msnyder@redhat.com>
15027 Abstract the functionality of iterating over mapped memory
15028 regions into a general purpose iterator function.
15029 * procfs.c (iterate_over_mappings): New function, general purpose
15030 iterator for memory sections.
15031 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15032 (solib_mappings_callback): New function, callback for above.
15033 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15034 (info_mappings_callback): New function, callback for above.
15036 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15038 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15040 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15041 * i386-tdep.c: Include "elf-bfd.h".
15042 (process_note_abi_tag_sections): New function.
15043 (i386_gdbarch_init): Add code to recognize various OS/ABI
15046 * maint.c (_initialize_maint_cmds): Add missing \ in
15049 For older changes see ChangeLog-2001
15055 version-control: never