1 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Reorganize "Checks for library functions section"
4 a bit. Remove check for `btowc' and `isascii' functions.
5 * configure: Regenerated.
7 * acconfig.h (_MSE_INT_H): Remove.
8 * configure.in: Create "Checks for header files" section, and move
9 appropriate tests there. Don't check for objlist.h, wchar.h,
10 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11 misdetection fix. Also add "Checks for types", "Checks for
12 compiler characteristics" and "Checks for library functions"
14 * config.in, configure: Regenerated.
16 * configure.in: Create "Checks for programs" section, and move
17 appropriate tests there.
19 2003-01-01 Mark Kettenis <kettenis@gnu.org>
21 * configure.in: Create "Checks for libraries" section, and move
22 appropriate tests there. Cleanup check for wctype in libw. Use
23 AC_SEARCH_LIBS to see whether we need libsocket.
24 * configure: Regenerated.
26 2002-12-31 Mark Kettenis <kettenis@gnu.org>
28 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
29 * config.in, configure: Regenerated.
31 2002-12-31 Mark Kettenis <kettenis@gnu.org>
33 * gdb_dirent.h: Cleanup and update code to match the example in
35 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
36 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
37 * configure: Regenerated.
39 2002-12-30 Adam Fedor <fedor@gnu.org>
41 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
42 (yylex): Initialize c to avoid uninitialized warning.
44 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
46 * doc/fdl.texi: Revert the last change.
48 2002-12-29 Mark Kettenis <kettenis@gnu.org>
50 * tracepoint.c (ISATTY): Removed.
52 2002-12-26 J. Brobecker <brobecker@gnat.com>
54 Continuing work to convert the hppa targets to multiarch partil.
56 * hppa-tdep.c: Add some missing forward declarations.
57 (frameless_function_invocation): Prefix the function name
58 by "hppa_" to avoid polluting the namespace. Update all calls
59 to use the new function name.
60 (saved_pc_after_call): Ditto.
61 (init_extra_frame_info): Ditto.
63 (push_dummy_frame): Ditto.
64 (target_read_pc): Ditto.
65 (target_write_pc): Ditto.
66 (in_solib_call_trampoline): Ditto.
67 (in_solib_return_trampoline): Ditto.
68 (skip_trampoline_code): Ditto.
69 (hppa_read_fp): New function, renamed from target_read_fp.
70 (hppa_target_read_fp): New function, using hppa_read_fp.
71 This function conforms to the function profile for the
72 READ_FP gdbarch method.
73 (hppa_extract_struct_value_address): New function, extracted
74 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
76 (hppa_frame_num_args): New function.
77 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
79 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
80 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
81 for the switch to multiarch partial.
82 Update some of the macros definitions to match some changes
83 described above in the name of the function they are calling.
84 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
85 not be straightforward to convert. Do now wrap it inside
86 "#if !... #endif" to remember that this macro has still not
88 (FIX_CALL_DUMMY): Likewise.
90 2002-12-26 J. Brobecker <brobecker@gnat.com>
92 Continuing work to convert the hppa targets to multiarch partial.
94 * hppa-tdep.c (hppa_register_raw_size): New function replacing
95 the body of macro REGISTER_RAW_SIZE.
96 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
97 config/pa/tm-hppah.h. These functions will be used to initialize
98 the gdbarch structure.
99 (hppa_hpux_pc_in_sigtramp): New function.
100 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
101 (hppa_hpux_frame_base_before_sigtramp): New function.
102 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
103 Add gdbcore.h #include.
104 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
105 of this gdbarch-eligible macro to a call to the new associated
107 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
108 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
109 into a call to the new associated function.
110 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
111 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
112 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
114 2002-12-24 David Carlton <carlton@math.stanford.edu>
116 * config/sparc/tm-sparc.h: Delete duplicate definition of
117 DEPRECATED_PC_IN_CALL_DUMMY.
119 2002-12-24 Kevin Buettner <kevinb@redhat.com>
121 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
123 * configure.tgt: Recognize mips64*-*-linux*.
124 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
125 (supply_32_bit_reg): New function.
126 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
127 (fill_gregset): Use regcache_collect() instead of
128 deprecated_registers[].
129 (register_addr): Change name to mips_linux_register_addr().
130 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
131 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
132 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
133 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
134 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
135 (MIPS64_LINUX_JB_PC): New defines.
136 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
137 (mips64_elf_fpregset_t): New typedefs.
138 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
139 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
140 (mips64_linux_register_addr, set_mips_linux_register_addr)
141 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
142 (init_register_addr_data)
144 (fetch_core_registers): Add support for core file formats with 64-bit
146 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
147 (register_addr_data): New static global variable.
148 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
149 gdbarch_register_osabi() for each MIPS machine.
150 * config/mips/linux64.mt: New file.
151 * config/mips/tm-linux64.h: New file.
153 2002-12-23 Adam Fedor <fedor@gnu.org>
155 * maint.c (maintenance_demangle): Add switch to demangle
156 ObjC language symbols as well.
158 2002-12-23 Adam Fedor <fedor@gnu.org>
160 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
161 last argument from complaint function call.
163 2002-12-23 Kevin Buettner <kevinb@redhat.com>
165 * exec.c (print_section_info): Add FIXME comments regarding format
168 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
170 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
171 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
173 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
175 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
177 2002-12-23 David Carlton <carlton@math.stanford.edu>
179 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
180 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
181 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
182 information associated to a minsym, not lookup_symbol.
184 2002-12-21 Mark Kettenis <kettenis@gnu.org>
186 * x86-64-tdep.h (x86_64_init_abi): New prototype.
187 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
188 (x86_64_init_abi): Make non-static. Set number of pseudo
190 (x86_64_gdbarch_init): Remove function.
191 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
192 Remove code dealing with dissambly.
193 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
194 (_initialize_x86_64_linux_tdep): New function.
195 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
198 2002-12-14 Mark Kettenis <kettenis@gnu.org>
200 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
201 (struct gdb_osabi_handler): Remove member `arch'. Add member
203 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
204 construct a `struct bfd_arch_info' and store it in the `struct
205 gdb_osabi_handler' that is created.
206 (gdbarch_init_osabi): Check for compatibility based on machine
207 type and architecture.
208 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
210 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
211 second argument in call to gdbarch_register_osabi.
212 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
213 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
214 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
215 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
216 * arm-tdep.c (_initialize_arm_tdep): Likewise.
217 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
218 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
219 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
220 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
221 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
222 * i386-tdep.c (_initialize_i386_tdep): Likewise.
223 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
224 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
225 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
226 _initialize_i386bsd_tdep and updated likewise.
227 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
228 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
229 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
230 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
231 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
232 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
233 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
234 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
235 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
236 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
238 2002-12-20 Kevin Buettner <kevinb@redhat.com>
240 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
241 DT_MIPS_RLD_MAP case for 64-bit targets.
243 2002-12-20 Kevin Buettner <kevinb@redhat.com>
245 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
246 ``temp_saved_regs'', not the pointer or other storage contiguous
249 2002-12-20 Kevin Buettner <kevinb@redhat.com>
251 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
252 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
253 (mips_linux_get_longjmp_target): Delete declarations.
254 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
255 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
256 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
257 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
258 (mips_linux_get_longjmp_target)
259 (mips_linux_svr4_fetch_link_map_offsets): Make static.
260 (mips_linux_init_abi): New function.
261 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
263 2002-12-19 Keith Seitz <keiths@redhat.com>
265 patch committed by Elena Zannoni <ezannoni@redhat.com>
266 * thread.c (do_captured_list_thread_ids): Call prune_threads and
267 target_find_new_threads. Fix for PR mi/669.
269 2002-12-19 David Carlton <carlton@math.stanford.edu>
271 * linespec.c (decode_line_1): Move code into decode_all_digits.
272 (decode_all_digits): New function.
274 2002-12-19 Kevin Buettner <kevinb@redhat.com>
276 * exec.c (print_section_info): Select a format string to use with
277 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
279 2002-12-18 Andrew Cagney <ac131313@redhat.com>
281 * frame.c (deprecated_update_current_frame_pc_hack): Replace
282 deprecated_update_current_frame_pc_hack.
283 (deprecated_update_frame_base_hack): New function.
284 * frame.h (deprecated_update_frame_pc_hack): Replace
285 (deprecated_update_frame_base_hack): Declare.
286 * infrun.c (normal_stop): Update.
288 2002-12-18 Andrew Cagney <ac131313@redhat.com>
290 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
291 frame_extra_info_zalloc.
292 (rs6000_frame_args_address): Use get_frame_extra_info.
293 (frame_get_saved_regs): Use get_frame_saved_regs.
294 (frame_initial_stack_address): Use get_frame_saved_regs and
295 get_frame_extra_info.
296 (frame_initial_stack_address): Use get_frame_extra_info.
298 2002-12-17 Kevin Buettner <kevinb@redhat.com>
300 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
302 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
303 checks for r3900_regnames[].
305 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
307 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
309 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
311 2002-12-17 David Carlton <carlton@math.stanford.edu>
313 * symtab.c (lookup_partial_symbol): Don't search past the end of
316 2002-12-17 Andrew Cagney <ac131313@redhat.com>
318 * stack.c (frame_info): Use get_frame_saved_regs.
319 * breakpoint.c (until_break_command): Use get_frame_pc.
321 2002-12-16 Kevin Buettner <kevinb@redhat.com>
323 * buildsym.c (block_end_complaint, anon_block_end_complaint)
324 (innerblock_complaint, innerblock_anon_complaint)
325 (blockvector_complaint): Delete deprecated complaint structs.
326 (finish_block, make_blockvector, end_symtab): Replace calls
327 to complain() with calls to complaint().
328 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
329 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
330 (unexpected_type_complaint, bad_sclass_complaint)
331 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
332 Delete deprecated complaint structs.
333 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
334 Replace calls to complain() with calls to complaint().
335 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
336 (unknown_symtype_complaint, unknown_symchar_complaint)
337 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
338 (lbrac_mismatch_complaint, repeated_header_complaint)
339 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
340 Delete deprecated complaint structs.
341 (unknown_symtype_complaint, lbrac_mismatch_complaint)
342 (repeated_header_complaint)
343 (function_outside_compiliation_unit_complaint): New functions.
344 (add_old_header_file, find_corresponding_bincl_psymtab)
345 (set_namestring, find_stab_function_addr, read_dbx_symtab)
346 (process_one_symbol): Replace calls to complain() with, possibly
347 indirect, calls to complaint().
348 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
349 (unknown_attribute_form, unknown_attribute_length)
350 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
351 (const_ignored, botched_modified_type, op_deref2, op_deref4)
352 (basereg_not_handled, dup_user_type_allocation)
353 (dup_user_type_definition, missing_tag, bad_array_element_type)
354 (subscript_data_items, unhandled_array_subscript_format)
355 (unknown_array_subscript_format, not_row_major)
356 (missing_at_name): Delete deprecated complaint structs.
357 (bad_die_ref_complaint, unknown_attribute_form_complaint)
358 (dup_user_type_definition_complaint)
359 (bad_array_element_type_complaint): New functions.
360 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
361 (decode_subscript_data_item, dwarf_read_array_type)
362 (read_tag_string_type, read_subroutine_type, read_func_scope)
363 (locval, scan_partial_symbols, decode_modified_type)
364 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
365 (attribute_size): Replace calls to complain() with, possibly
366 indirect, calls to complaint().
367 * elfread.c (section_info_complaint, section_info_dup_complaint)
368 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
369 Delete deprecated complaint structs.
370 (elf_symtab_read, elfstab_offset_sections): Replace calls to
371 complain() with calls to complaint().
372 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
374 (stub_noname_complaint): New function.
375 (check_typedef, add_mangled_type): Replace calls to complain()
376 with calls to complaint().
377 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
378 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
379 (hpread_unhandled_type_complaint, hpread_struct_complaint)
380 (hpread_array_complaint, hpread_type_lookup_complaint)
381 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
382 (hpread_unhandled_common_complaint)
383 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
384 struct definitions and declarations.
385 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
386 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
387 Replace calls to complain() with, possibly indirect, calls to
389 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
391 * mdebugread.c (bad_file_number_complaint, index_complaint)
392 (aux_index_complaint, block_index_complaint)
393 (unknown_ext_complaint, unknown_sym_complaint)
394 (unknown_st_complaint, block_overflow_complaint)
395 (basic_type_complaint, unknown_type_qual_complaint)
396 (array_index_type_complaint, bad_tag_guess_complaint)
397 (block_member_complaint, stEnd_complaint)
398 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
399 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
400 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
401 (bad_continued_complaint, bad_rfd_entry_complaint)
402 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
403 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
404 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
405 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
407 (index_complaint, unknown_ext_complaint, basic_type_complaint)
408 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
409 (unexpected_type_code_complaint)
410 (function_outside_compilation_unit_complaint): New functions.
411 (parse_symbol, parse_type, upgrade_type, parse_procedure)
412 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
413 Replace calls to complain() with, possibly indirect calls to
415 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
416 Delete deprecated complaint structs.
417 (lookup__objc_class, lookup_child_selector): Replace complain()
419 * remote-vx.c (cant_contact_target): Delete deprecated complaint
421 (vx_lookup_symbol): Replace complain() with complaint().
422 * stabsread.c (invalid_cpp_abbrev_complaint)
423 (invalid_cpp_type_complaint, member_fn_complaint)
424 (const_vol_complaint, error_type_complaint)
425 (invalid_member_complaint, range_type_base_complaint)
426 (reg_value_complaint, vtbl_notfound_complaint)
427 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
428 (unresolved_sym_chain_complaint, stabs_general_complaint)
429 (lrs_general_complaint, multiply_defined_struct): Delete
430 deprecated complaint structs.
431 (invalid_cpp_abbrev_complaint, ref_value_complaint)
432 (stabs_general_complaint, lrs_general_complaint)
433 (msg_unknown_complaint): New functions.
434 (dbx_lookup_type, read_cfront_baseclasses)
435 (read_cfront_member_functions, resolve_symbol_reference)
436 (define_symbol, resolve_live_range, add_live_range, read_type)
437 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
438 (read_one_struct_field, read_baseclasses, read_tilde_fields)
439 (read_cfront_static_fields, attach_fields_to_type)
440 (complain_about_struct_wipeout, read_range_type)
441 (common_block_start, common_block_end, cleanup_undefined_types)
442 (scan_file_globals): Replace complain() with complaint().
443 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
444 Delete deprecated complaint struct declarations.
445 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
446 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
447 (bf_not_found_complaint, ef_complaint, eb_complaint)
448 (function_outside_compilation_unit_complaint): New functions.
449 (record_include_begin, record_include_end, enter_line_range)
450 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
451 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
452 complain() with complaint().
454 2002-12-16 Andrew Cagney <ac131313@redhat.com>
456 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
457 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
458 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
459 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
460 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
461 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
462 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
463 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
464 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
465 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
466 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
467 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
468 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
469 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
470 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
471 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
472 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
473 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
474 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
475 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
476 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
477 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
478 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
479 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
480 * config/m88k/xm-dgux.h: Delete.
481 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
482 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
483 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
484 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
485 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
486 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
487 * ch-valprint.c: Delete.
489 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
491 * infrun.c (handle_inferior_event): Rearrange code to resume if
492 no catchpoint triggers for an event.
494 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
496 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
497 and TARGET_WAITKIND_VFORKED cases.
499 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
501 * infrun.c (handle_inferior_event): Assume that catchpoints
502 are not affected by DECR_PC_AFTER_BREAK.
504 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
506 * target.c (update_current_target): Don't inherit DONT_USE.
507 * target.h (struct target_ops): Remove DONT_USE.
508 (target_next): Remove macro.
510 2002-12-15 Mark Kettenis <kettenis@gnu.org>
512 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
514 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
516 * arm-tdep.c (convert_from_extended): New argument to hold the
517 type of floating point result we want to convert to. Make input
518 argument const. Fix all callers.
519 (convert_to_extended): Similarly.
520 (arm_extract_return_value): Now takes a regcache argument. Change
521 code to use regcache accessor functions. Correctly extract
522 smaller-than-word results on big-endian machines.
523 (arm_store_return_value): Now takes a regcache argument. Change
524 code to use regcache accessor functions. Correctly zero/sign extend
525 smaller than word results before storing into r0.
526 (arm_gdbarch_init): Register new-style extract_return_value and
527 store_return_value functions.
529 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
531 * thread-db.c (thread_from_lwp): Uniquify error msg.
532 (lwp_from_thread): Ditto.
533 (check_event): Ditto.
534 (find_new_threads_callback): Ditto.
535 (thread_db_pid_to_str): Ditto.
537 2002-12-13 Andrew Cagney <ac131313@redhat.com>
539 * frame.h (get_frame_saved_regs): Declare.
540 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
542 * frame.c (get_frame_saved_regs): New function.
543 (frame_saved_regs_zalloc): Return the allocated saved_regs.
545 2002-12-13 Andrew Cagney <ac131313@redhat.com>
547 * frame.c (deprecated_update_current_frame_pc_hack): New
549 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
550 * infrun.c (normal_stop): Use said function instead of directly
551 modifying the frame's PC.
553 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
555 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
557 2002-12-13 Kevin Buettner <kevinb@redhat.com>
559 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
560 config/mips/tm-irix6.h (NUM_REGS): Delete.
561 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
562 (temp_saved_regs): Declare as a pointer rather than an array.
563 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
564 that ``temp_saved_regs'' has storage allocated to it and that
565 it's the correct size.
567 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
569 * defs.h (init_last_source_visited): New prototype.
571 * source.c (add_path): New function that adds to a specified path.
572 (mod_path): Change to call add_path.
573 (init_last_source_visited): New function to allow interfaces to
574 initialize static variable: last_source_visited. Part of fix
576 * Makefile.in: Add support for mi/mi-cmd-env.c.
578 2002-12-13 Andrew Cagney <ac131313@redhat.com>
580 * frame.h (frame_id_unwind): Declare.
581 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
583 (frame_id_unwind_ftype): Declare.
584 * frame.c (frame_id_unwind): New function.
585 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
586 (create_new_frame, get_prev_frame): Pass id_unwind to
588 (frame_saved_regs_id_unwind): New function.
589 (frame_saved_regs_id_unwind): New function.
590 * dummy-frame.c (dummy_frame_id_unwind): New function.
591 (struct dummy_frame): Add field id.
592 (generic_push_dummy_frame): Initialize `id'.
593 * dummy-frame.h (dummy_frame_id_unwind): Declare.
595 2002-12-13 Andrew Cagney <ac131313@redhat.com>
597 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
598 pass that to set_momentary_breakpoint. Move comments to where they
600 * frame.h (set_current_frame): Delete declaration.
601 * frame.c (set_current_frame): Delete function.
603 2002-12-13 Andrew Cagney <ac131313@redhat.com>
605 * frame.c (frame_extra_info_zalloc): New function.
606 * frame.h (frame_extra_info_zalloc): Declare.
608 2002-12-13 Joel Brobecker <brobecker@gnat.com>
610 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
611 in the previous prototype change to set_momentary_breakpoint.
613 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
615 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
617 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
618 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
619 (stop_stepping): Remove outdated check for child vfork events.
621 2002-12-12 Andrew Cagney <ac131313@redhat.com>
623 * GDB 5.3 released from gdb_5_3-branch.
625 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
627 * corelow.c (init_core_ops): Delete references to to_require_attach
628 and to_require_detach.
629 * exec.c (init_exec_ops): Likewise.
630 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
631 hppa_require_detach directly.
632 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
633 * inftarg.c (child_detach): Remove.
634 (child_detach_from_process): Rename to child_detach, remove
636 (child_attach): Remove.
637 (child_attach_to_process): Rename to child_attach, remove after_fork
639 (init_child_ops): Delete references to to_require_attach
640 and to_require_detach.
641 * infttrace.c (hppa_require_attach): Update comment.
642 * target.c (cleanup_target, update_current_target)
643 (init_dummy_target, setup_target_debug): Delete references to
644 to_require_attach and to_require_detach.
645 (find_default_require_detach, find_default_require_attach)
646 (debug_to_require_attach, debug_to_require_detach): Remove
648 * target.h (struct target_ops): Remove to_require_attach
649 and to_require_detach.
650 (target_require_attach, target_require_detach): Delete macros.
651 (find_default_require_detach, find_default_require_attach): Delete
653 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
655 2002-12-11 Andrew Cagney <ac131313@redhat.com>
657 * frame.c (get_frame_extra_info): New function.
658 * frame.h (get_frame_extra_info): Declare.
660 2002-12-11 Andrew Cagney <ac131313@redhat.com>
662 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
663 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
664 with `struct frame_id'.
665 (set_longjmp_resume_breakpoint): Ditto.
666 * infrun.c (handle_inferior_event): Update.
667 * breakpoint.c (watch_command_1, until_break_command): Update.
668 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
669 (handle_inferior_event, step_over_function): Update.
670 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
671 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
672 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
673 * infcmd.c (finish_command, run_stack_dummy): Update.
675 2002-12-11 Kevin Buettner <kevinb@redhat.com>
677 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
678 (dwarf2_non_const_array_bound_ignored)
679 (dwarf2_missing_line_number_section)
680 (dwarf2_statement_list_fits_in_line_number_section)
681 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
682 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
683 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
684 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
685 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
686 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
687 (dwarf2_missing_member_fn_type_complaint)
688 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
689 (dwarf2_const_value_length_mismatch)
690 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
691 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
692 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
693 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
694 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
695 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
696 complaints using deprecated struct..
697 (dwarf2_non_const_array_bound_ignored_complaint)
698 (dwarf2_complex_location_expr_complaint)
699 (dwarf2_unsupported_at_frame_base_complaint)
700 (dwarf2_const_value_length_mismatch_complaint)
701 (dwarf2_macros_too_long_complaint)
702 (dwarf2_macro_malformed_definition_complaint)
703 (dwarf2_invalid_attrib_class_complaint): New functions.
704 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
705 (read_structure_scope, read_array_type, read_common_block)
706 (read_tag_pointer_type, read_base_type, read_partial_die)
707 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
708 (new_symbol, dwarf2_const_value, read_type_die)
709 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
710 (parse_macro_definition, dwarf_decode_macros): Replace calls to
711 complain() with, possibly indirect, calls to complaint().
713 2002-12-11 Andrew Cagney <cagney@redhat.com>
715 * frame.c (deprecated_get_frame_saved_regs): Rename
716 get_frame_saved_regs.
717 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
718 * sparc-tdep.c: Update.
719 * hppa-tdep.c: Update.
720 * h8500-tdep.c: Update.
722 2002-12-11 Kevin Buettner <kevinb@redhat.com>
724 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
725 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
726 ``char *'' for return and parameter types.
727 * gdbarch.h, gdbarch.c: Regenerate.
728 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
729 return type from ``char *'' to ``const char *''.
730 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
733 2002-12-11 Mark Kettenis <kettenis@gnu.org>
735 * i386-tdep.c: Include "dummy-frame.h".
736 (i386_frame_chain, i386_frame_saved_pc): Replace
737 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
738 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
740 2002-12-10 Andrew Cagney <cagney@redhat.com>
742 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
743 Change to a function with predicate.
744 * gdbarch.h, gdbarch.c: Re-generate.
745 * frame.c (get_prev_frame): Update. Test
746 DEPRECATED_INIT_FRAME_PC_P.
747 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
748 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
749 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
750 * alpha-tdep.c (alpha_gdbarch_init): Update.
751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
752 * mips-tdep.c (mips_gdbarch_init): Update.
753 * i386-interix-tdep.c (i386_interix_init_abi): Update.
754 * arm-tdep.c: Update comments.
755 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
756 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
757 * frv-tdep.c (frv_gdbarch_init): Ditto.
758 * x86-64-tdep.c (x86_64_init_abi): Ditto.
759 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
760 * s390-tdep.c (s390_gdbarch_init): Ditto.
761 * v850-tdep.c (v850_gdbarch_init): Ditto.
762 * vax-tdep.c (vax_gdbarch_init): Ditto.
763 * sh-tdep.c (sh_gdbarch_init): Ditto.
764 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
766 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
768 * i386-tdep.c (i386_gdbarch_init): Ditto.
769 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
770 * cris-tdep.c (cris_gdbarch_init): Ditto.
771 * avr-tdep.c (avr_gdbarch_init): Ditto.
772 * arm-tdep.c (arm_gdbarch_init): Ditto.
773 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
774 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
776 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
778 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
780 * hppah-nat.c (saved_vfork_pid): Add.
781 (child_post_follow_vfork): Remove.
782 (child_follow_fork): New function.
783 (child_wait): Call detach_breakpoints after receiving the child vfork.
784 Call child_resume directly instead of going through resume ().
785 Make sure we have the exec before reporting the vfork.
786 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
787 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
788 (follow_fork): New function. Call target_follow_fork.
789 (follow_inferior_reset_breakpoints): New function broken out from
790 old follow_inferior_fork.
791 (resume): Remove hack to follow exec after vfork.
792 * inftarg.c (child_post_follow_vfork): Remove.
793 (child_follow_fork): New function.
794 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
795 * target.c (cleanup_target): Replace to_post_follow_vfork with
797 (update_current_target): Likewise.
798 (setup_target_debug): Likewise.
799 (debug_to_post_follow_vfork): Remove.
800 (debug_to_follow_fork): New function.
801 * target.h (struct target_ops): Replace to_post_folow_vfork with
803 (child_post_follow_vfork): Remove prototype.
804 (child_follow_fork): Add prototype.
805 (target_post_follow_vfork): Remove macro.
806 (target_follow_fork): Add macro.
808 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
810 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
811 (child_post_follow_vfork): Cancel pending exec event if we follow
813 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
814 events have been processed. Return a fake TARGET_WAITKIND_EXECD
815 event at the following wait call if necessary.
816 * infrun.c (follow_vfork): Don't follow_exec here.
817 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
818 case about HP/UX 10.20. Remove code pushed down to
819 hppah-nat.c:child_wait.
820 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
821 vfork_in_flight is set.
823 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
825 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
826 for the parent's fork event.
827 * infrun.c (handle_inferior_event): Only expect one fork event.
828 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
829 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
831 2002-12-10 Andrew Cagney <ac131313@redhat.com>
833 * PROBLEMS: Delete reference to PR gdb/725.
835 * MAINTAINERS (gdb.c++): Add David Carlton.
837 2002-12-09 David Carlton <carlton@math.stanford.edu>
839 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
840 * cli/cli-cmds.c: Ditto.
842 2002-12-09 Andrew Cagney <cagney@redhat.com>
844 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
845 function address in <>.
846 * gdbarch.c: Re-generate.
848 2002-12-09 David Carlton <carlton@math.stanford.edu>
850 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
852 2002-12-09 David Carlton <carlton@math.stanford.edu>
854 * linespec.c (symtab_from_filename): New function.
855 (decode_line_1): Move code into symtab_from_filename.
857 2002-12-09 Kevin Buettner <kevinb@redhat.com>
859 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
861 2002-12-07 Andrew Cagney <ac131313@redhat.com>
863 * f-valprint.c (info_common_command): Use get_frame_pc.
864 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
865 * ax-gdb.c (agent_command): Ditto.
866 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
867 (rs6000_pop_frame): Ditto.
868 (rs6000_frameless_function_invocation): Ditto.
869 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
870 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
871 * macroscope.c (default_macro_scope): Ditto.
872 * stack.c (print_frame_info_base): Ditto.
873 (print_frame, frame_info, print_frame_label_vars): Ditto.
874 (return_command, func_command, get_frame_language): Ditto.
875 * infcmd.c (finish_command): Ditto.
876 * dummy-frame.c (cached_find_dummy_frame): Ditto.
877 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
878 (break_at_finish_at_depth_command_1): Ditto.
879 (break_at_finish_command_1): Ditto.
880 (until_break_command, get_catch_sals): Ditto.
881 * blockframe.c (func_frame_chain_valid): Ditto.
882 (frameless_look_for_prologue): Ditto.
883 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
885 2002-12-08 Andrew Cagney <ac131313@redhat.com>
887 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
888 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
890 2002-12-08 Andrew Cagney <ac131313@redhat.com>
892 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
894 * gdbarch.h, gdbarch.c: Re-generate.
895 * frame.c (get_prev_frame): Explictly assign prev's pc with value
896 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
898 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
899 declaration to a function returning a CORE_ADDR.
900 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
901 * arch-utils.c (init_frame_pc_noop): Return the PC value.
902 (init_frame_pc_default): Ditto.
903 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
904 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
905 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
906 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
907 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
908 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
910 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
911 to init_frame_pc_noop.
912 (i386_interix_init_frame_pc): Delete function.
913 * z8k-tdep.c (init_frame_pc): Delete function.
914 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
915 (INIT_FRAME_PC_FIRST): Ditto.
916 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
917 (INIT_FRAME_PC_FIRST): Ditto.
918 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
919 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
921 (INIT_FRAME_PC_FIRST): Convert to an expression.
922 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
924 2002-12-08 Andrew Cagney <ac131313@redhat.com>
926 * blockframe.c: Use get_frame_base instead of directly accessing
927 the `struct frame_info' member frame.
928 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
929 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
931 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
933 * Makefile.in (readline_h): Define.
934 (completer.o): Depend on readline_h.
936 (event-top.o): Ditto.
943 (tracepoint.o): Ditto.
946 (tui-hooks.o): Ditto.
949 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
951 More cleanup from import of readline 4.3.
952 * completer.h (complete_line, readline_line_completion_function):
954 (line_completion_function): Removed, not used outside of completer.c.
955 * completer.c (readline_line_completion_function,
956 complete_function, line_completion_function): Use const for first
958 (line_completion_function): Make static.
959 (filename_completer): filename_completion_function is now called
960 rl_filename_completion_function
961 * corelow.c: Include <readline/readline.h>.
967 * top.c (init_main): No need to coerce
968 readline_line_completion_function anymore.
969 * cli/cli-dump.c: Include <readline/readline.h>.
971 2002-12-08 Andrew Cagney <ac131313@redhat.com>
973 * stack.c (frame_info): Use get_prev_frame.
974 * blockframe.c (frame_address_in_block): Ditto.
975 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
976 (rs6000_frameless_function_invocation): Ditto.
977 (rs6000_frame_saved_pc): Ditto.
978 (rs6000_frame_chain): Ditto.
979 * arch-utils.c (init_frame_pc_default): Ditto.
981 2002-12-08 Andrew Cagney <ac131313@redhat.com>
983 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
984 Delete redundant definition.
986 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
988 Import of readline 4.3:
989 * cli/cli-cmds.c: Include readline/tilde.h.
990 * cli/cli-setshow.c: Ditto.
991 * defs.h: Don't declare tilde_expand anymore, since readline
994 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
996 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
997 -Werror on this file.
999 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1001 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1003 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1004 * gdbarch.c: Regenerate.
1006 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1008 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1009 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1010 provide a default value.
1011 * gdbarch.h, gdbarch.c: Regenerate.
1012 * frame.c (get_prev_frame): Update. Check
1013 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1014 * s390-tdep.c (s390_gdbarch_init): Update.
1015 * mips-tdep.c (mips_gdbarch_init): Update.
1016 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1017 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1018 * alpha-tdep.c (alpha_gdbarch_init): Update.
1020 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1022 * ia64-linux-nat.c: Include gdb_string.h.
1023 * alpha-nat.c: Ditto.
1024 * ppc-linux-nat.c: Ditto.
1025 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1026 Update dependencies.
1028 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1030 * gdbthread.h: Include "frame.h".
1031 (struct thread_info): Replace step_frame_address with
1033 * inferior.h: Include "frame.h".
1034 (step_frame_id): Replace external variable step_frame_address.
1035 * gdbthread.h (save_infrun_state): Replace step_frame_address
1036 parameter with step_frame_id parameter.
1037 (load_infrun_state): Ditto.
1038 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1039 * infcmd.c (step_frame_id, step_1, step_once): Update.
1040 * thread.c (load_infrun_state, save_infrun_state): Update.
1041 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1042 (handle_inferior_event, step_over_function): Update.
1043 (normal_stop, context_switch, restore_inferior_status): Update.
1044 (struct inferior_status): Replace step_frame_address with
1047 2002-12-05 David Carlton <carlton@math.stanford.edu>
1049 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1050 DW_TAG_member as well as a declaration as being a C++ static data
1052 (read_structure_scope): Combine tests for DW_TAG_member and
1055 2002-12-05 David Carlton <carlton@math.stanford.edu>
1057 * linespec.c (decode_compound): New function.
1058 (decode_line_1): Move code into decode_compound.
1060 2002-12-05 David Carlton <carlton@math.stanford.edu>
1062 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1064 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1065 the static block. See PR gdb/804.
1067 2002-12-05 David Carlton <carlton@math.stanford.edu>
1069 * symtab.c (lookup_symbol_aux_block): New function.
1070 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1072 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1074 * gdbarch.sh: Dump the predicate function and macro values.
1075 (read): Print error on standard error.
1076 * gdbarch.c: Regenerate.
1078 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1080 * Makefile.in (mips_tdep_h): Define.
1081 (mips-tdep.o): Add mips_tdep_h to dependency list.
1082 * mips-tdep.h: New file.
1083 * mips-tdep.c (mips-tdep.h): Include.
1084 (enum mips_abi): Move to mips-tdep.h.
1085 (mips_abi): New function.
1087 2002-12-04 David Carlton <carlton@math.stanford.edu>
1089 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1091 2002-12-04 David Carlton <carlton@math.stanford.edu>
1093 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1095 (lookup_symbol_aux_minsyms): New function.
1097 2002-12-04 J. Brobecker <brobecker@gnat.com>
1099 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1101 2002-12-04 J. Brobecker <brobecker@gnat.com>
1103 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1104 which is an obsolete macro name.
1106 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1108 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1109 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1111 2002-12-03 H.J. Lu (hjl@gnu.org)
1113 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1114 (create_breakpoints): Make sure the addr_string field is not
1117 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1119 * sparc-nat.c (fetch_inferior_registers)
1120 (store_inferior_registers): Add comment on problem of LWP vs
1123 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1124 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1125 (lin_lwp_store_registers): Remove.
1126 (init_lin_lwp_ops): Use fetch_inferior_registers
1127 and store_inferior_registers directly.
1128 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1129 (store_inferior_registers): Likewise.
1132 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1134 * frame.h (get_frame_id): Convert to a function.
1135 (null_frame_id, frame_id_p): Declare.
1136 (frame_id_eq, frame_id_inner): Declare.
1137 (frame_id_build): New function.
1138 * frame.c (get_frame_id): Update. Use null_frame_id.
1139 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1141 (null_frame_id, frame_id_p): Define.
1142 (frame_id_eq, frame_id_inner): Define.
1143 (frame_id_build): New function.
1144 * varobj.c (varobj_create): Update.
1145 (varobj_update): Update.
1146 * valops.c (value_assign): Update.
1147 (new_root_variable): Update.
1148 * infrun.c (save_inferior_status): Update.
1149 * breakpoint.c (watch_command_1): Update.
1151 2002-12-03 J. Brobecker <brobecker@gnat.com>
1153 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1156 2002-12-03 Andrew Cagney <cagney@redhat.com>
1158 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1161 * PROBLEMS: Mention PR gdb/725.
1163 2002-12-03 Andreas Schwab <schwab@suse.de>
1165 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1167 2002-12-02 Adam Fedor <fedor@gnu.org>
1168 Klee Dienes <kdienes@apple.com>
1170 * objc-lang.c (objc_printstr): Add width arg to match
1172 (compare_selectors): Add 'const' to arg types.
1173 (compare_classes): Likewise.
1174 (find_imps): Cast msym pointer to avoid compiler warning.
1175 (print_object_command): Validate the address before
1176 passing it to the print routine.
1177 (find_objc_msgcall_submethod): Change function argument to
1179 * objc-lang.h: Add 'extern' to all function declarations.
1180 (value_nsstring): Add declaration.
1182 2002-12-02 J. Brobecker <brobecker@gnat.com>
1184 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1185 Fixes a build failure on HP/UX.
1187 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1189 (hpread_has_name): Advance declaration to avoid a compilation warning.
1190 (pst_syms_count): Add missing variable type. By change, the compiler
1191 was defaulting to int, which seems a good choice. Fixes a compilation
1193 (pst_syms_size): Likewise.
1195 2002-12-02 J. Brobecker <brobecker@gnat.com>
1197 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1198 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1199 later to set the proper gdbarch methods depending on the osabi.
1200 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1202 2002-12-02 J. Brobecker <brobecker@gnat.com>
1204 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1205 * osabi.c (gdb_osabi_name): Add strings images for the two new
1207 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1209 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1211 * MAINTAINERS (Java): Global maintainers are responible for Java.
1212 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1213 part Java maintainers.
1215 2002-12-02 J. Brobecker <brobecker@gnat.com>
1217 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1218 Fixes a compilation failure on AiX.
1220 2002-12-02 J. Brobecker <brobecker@gnat.com>
1222 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1223 why aix-thread.o is not listed.
1225 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1227 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1228 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1229 * gdbarch.h, gdbarch.c: Re-generate.
1230 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1231 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1232 * config/pa/tm-hppa.h, frame.h: Update.
1233 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1234 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1235 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1236 * cris-tdep.c, alpha-tdep.c: Update.
1237 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1238 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1239 (get_prev_frame): Ditto.
1241 2002-11-30 Andrew Cagney <cagney@redhat.com>
1243 * exec.c (xfer_memory): Replace boolean with int.
1244 * p-exp.y: Use 0 instead of false.
1245 * corelow.c (gdb_check_format): Change return type to int from
1247 * utils.c: Don't include <curses.h> or <term.h> first.
1249 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1251 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1252 (m68hc11_register_byte): Remove.
1253 (m68hc11_gdbarch_init): Don't set the above.
1255 2002-11-29 Andrew Cagney <cagney@redhat.com>
1257 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1258 by calling get_selected_frame.
1259 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1260 set_current_frame, create_new_frame, select_frame and
1262 * remote-e7000.c (e7000_start_remote): Ditto.
1263 * remote-mips.c (common_open): Ditto
1264 * remote-rdp.c (remote_rdp_open): Ditto.
1266 2002-11-29 Andreas Schwab <schwab@suse.de>
1268 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1269 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1270 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1271 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1272 read_memory_unsigned_integer instead of read_memory_integer when
1273 dealing with addresses and instruction opcodes.
1274 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1275 (m68k_linux_frame_saved_pc): Likewise.
1277 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1279 * stack.c (selected_frame, select_frame): Move from here ...
1280 * frame.c (selected_frame, select_frame): ... to here. Include
1282 * Makefile.in (frame.o): Update dependencies.
1283 * frame.c (get_selected_frame): New function.
1284 * frame.h (get_selected_frame): Declare.
1285 (deprecated_selected_frame): Rename selected_frame.
1286 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1287 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1288 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1289 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1290 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1291 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1292 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1293 * z8k-tdep.c, cli/cli-cmds.c: Update.
1295 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1297 * frame.h (get_selected_block): Add comments.
1299 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1301 * frame.c (pc_notcurrent): New function.
1302 (find_frame_sal): New function.
1303 * frame.h (find_frame_sal): Declare.
1304 (struct symtab_and_line): Add opaque declaration.
1305 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1307 (frame_info): Ditto.
1308 * ada-lang.c (find_printable_frame): Ditto.
1310 2002-11-28 J. Brobecker <brobecker@gnat.com>
1312 * configure.in: Check that the pthdebug library is recent enough
1313 before enabling thread support on native AiX.
1314 * configure: Regenerate.
1316 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1317 from the list of object files as it is now appended by configure
1318 if thread support is enabled.
1319 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1320 if thread support is enabled.
1322 2002-11-28 Andrew Cagney <cagney@redhat.com>
1324 * stack.c (get_selected_block): In-line get_current_block.
1325 * frame.h (get_current_block): Delete declaration.
1326 * blockframe.c (get_current_block): Delete function.
1328 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1330 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1331 USE_GENERIC_DUMMY_FRAMES.
1332 * gdbarch.h, gdbarch.c: Regenerate.
1333 * valops.c, frame.c: Update.
1334 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1335 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1336 * config/pa/tm-hppa.h, blockframe.c: Update.
1337 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1338 * m68k-tdep.c, alpha-tdep.c: Ditto.
1340 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1341 * mips-tdep.c: Ditto.
1343 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1345 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1346 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1347 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1348 * gdbarch.c, gdbarch.h: Re-generate.
1349 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1350 (CALL_DUMMY_LOCATION): Delete macro definition.
1351 (PC_IN_CALL_DUMMY): Delete macro definitions.
1353 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1354 default is already generic_pc_in_call_dummy.
1355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1356 * v850-tdep.c (v850_gdbarch_init): Ditto.
1357 * sh-tdep.c (sh_gdbarch_init): Ditto.
1358 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1359 * mips-tdep.c (mips_gdbarch_init): Ditto.
1360 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1362 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1363 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1364 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1365 * avr-tdep.c (avr_gdbarch_init): Ditto.
1367 * arm-tdep.c (arm_gdbarch_init): Do not set
1368 use_generic_dummy_frames, default is already 1.
1369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1370 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1371 * v850-tdep.c (v850_gdbarch_init): Ditto.
1372 * sh-tdep.c (sh_gdbarch_init): Ditto.
1373 * s390-tdep.c (s390_gdbarch_init): Ditto.
1374 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1375 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1376 * mips-tdep.c (mips_gdbarch_init): Ditto.
1377 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1379 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1380 * i386-tdep.c (i386_gdbarch_init): Ditto.
1381 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1382 * frv-tdep.c (frv_gdbarch_init): Ditto.
1383 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1384 * cris-tdep.c (cris_gdbarch_init): Ditto.
1385 * avr-tdep.c (avr_gdbarch_init): Ditto.
1387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1388 call_dummy_location, default is already AT_ENTRY_POINT.
1389 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1390 * v850-tdep.c (v850_gdbarch_init): Ditto.
1391 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1392 * sh-tdep.c (sh_gdbarch_init): Ditto.
1393 * s390-tdep.c (s390_gdbarch_init): Ditto.
1394 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1395 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1396 * mips-tdep.c (mips_gdbarch_init): Ditto.
1397 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1399 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1400 * i386-tdep.c (i386_gdbarch_init): Ditto.
1401 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1402 * frv-tdep.c (frv_gdbarch_init): Ditto.
1403 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1404 * cris-tdep.c (cris_gdbarch_init): Ditto.
1405 * avr-tdep.c (avr_gdbarch_init): Ditto.
1406 * arm-tdep.c (arm_gdbarch_init): Ditto.
1407 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1409 2002-11-28 Andrew Cagney <cagney@redhat.com>
1411 * frame.h: Update comments on set_current_frame, create_new_frame,
1412 flush_cached_frames, reinit_frame_cache, select_frame and
1415 2002-11-27 Andrew Cagney <cagney@redhat.com>
1417 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1418 deprecated pc_in_call_dummy function.
1419 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1420 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1421 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1422 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1423 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1425 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1427 * Makefile.in: Remove Tix dependencies.
1428 * acinclude.m4: Ditto.
1429 * aclocal.m4: Ditto.
1430 * configure.in: Ditto.
1431 * configure: Regenerated.
1433 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1435 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1436 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1437 * gdbarch.c: Re-generate.
1439 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1441 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1442 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1443 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1444 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1445 pc_in_call_dummy_at_entry_point.
1446 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1447 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1448 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1449 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1450 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1451 pc_in_call_dummy_on_stack.
1452 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1453 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1454 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1455 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1456 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1458 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1460 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1461 pc_in_call_dummy_before_text_end
1462 (deprecated_pc_in_call_dummy_after_text_end): Rename
1463 pc_in_call_dummy_after_text_end.
1464 (deprecated_pc_in_call_dummy_on_stack): Rename
1465 pc_in_call_dummy_on_stack.
1466 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1467 pc_in_call_dummy_at_entry_point.
1468 * m68k-tdep.c (m68k_gdbarch_init): Update.
1469 * s390-tdep.c (s390_gdbarch_init): Update.
1470 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1471 * vax-tdep.c (vax_gdbarch_init): Update.
1472 * sparc-tdep.c (sparc_gdbarch_init): Update.
1473 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1474 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1475 * i386-tdep.c (i386_gdbarch_init): Update.
1476 * frv-tdep.c (frv_gdbarch_init): Update.
1477 * cris-tdep.c (cris_gdbarch_init): Update.
1478 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1479 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1480 (deprecated_pc_in_call_dummy_after_text_end)
1481 (deprecated_pc_in_call_dummy_on_stack)
1482 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1483 * alpha-tdep.c (alpha_gdbarch_init): Update.
1485 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1487 * acconfig.h (HAVE_PREAD64): Add.
1488 * configure.in: Check for pread64.
1489 * config.in: Regenerated.
1490 * configure: Regenerated.
1491 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1492 * linux-proc.c (linux_proc_xfer_memory): New function.
1493 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1495 2002-11-25 David Carlton <carlton@math.stanford.edu>
1497 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1500 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1502 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1503 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1505 2002-11-25 Jim Blandy <jimb@redhat.com>
1507 * symfile.c (init_objfile_sect_indices): New function.
1508 (default_symfile_offsets): Move the section-index-initializing
1509 stuff into init_objfile_sect_indices, and call that.
1511 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1512 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1514 * symfile.c (syms_from_objfile): Adjust indentation.
1516 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1517 || info_verbose isn't true.
1519 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1521 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1522 default to get_frame_base.
1523 * gdbarch.h, gdbarch.c: Regenerate.
1524 * arch-utils.c (default_frame_address): Delete function.
1525 * arch-utils.h (default_frame_address): Delete declaration
1527 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1529 * varobj.c (find_frame_addr_in_frame_chain):
1530 Use get_frame_base instead of FRAME_FP,
1533 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1535 * frame.h (FRAME_FP): Delete macro.
1536 (get_frame_base): New function declaration.
1537 * frame.c (get_frame_base): New function.
1538 (get_frame_id): Use ->frame.
1539 (frame_find_by_id): Rewrite to use get_frame_id.
1540 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1541 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1542 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1543 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1544 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1545 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1546 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1548 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1550 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1552 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1554 * frame.c (set_unwind_by_pc): Revert change below, use
1556 (get_prev_frame): Ditto.
1558 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1560 * dummy-frame.c (pc_in_dummy_frame): New function.
1561 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1562 (find_dummy_frame): Update comment.
1563 (generic_pop_current_frame): Use get_frame_type.
1564 * dummy-frame.h (pc_in_dummy_frame): Declare.
1565 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1566 (create_new_frame): Use pc_in_dummy_frame.
1567 (get_prev_frame): Use pc_in_dummy_frame.
1568 (frame_saved_regs_register_unwind): Use get_prev_frame.
1569 (deprecated_generic_get_saved_register): Use get_prev_frame.
1571 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1573 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1575 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1576 (varobj_create): Note that frame ID should be used.
1577 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1579 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1581 * breakpoint.c: Include "gdb_assert.h".
1582 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1584 * Makefile.in (breakpoint.o): Update dependencies.
1585 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1586 deprecated_frame_in_dummy.
1587 * stack.c (print_frame_info_base): Ditto.
1588 (frame_info): Ditto.
1589 (print_frame_info_base): Ditto. Delete dead code.
1591 2002-11-23 Andreas Schwab <schwab@suse.de>
1593 * Makefile.in (m68k_tdep_h): Define.
1594 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1595 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1596 * m68k-tdep.c: Move register number enum ...
1597 * m68k-tdep.h: ... to this new file and rename the constants from
1598 E_* to M68K_*. All uses changed.
1599 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1600 * abug-rom.c: Include "m68k-tdep.h". Use
1601 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1602 * cpu32bug-rom.c: Likewise.
1603 * dbug-rom.c: Likewise.
1604 * m68k-tdep.c: Likewise.
1605 * m68klinux-nat.c: Likewise.
1606 * remote-est.c: Likewise.
1607 * rom68k-rom.c: Likewise.
1608 * config/m68k/tm-linux.h: Likewise.
1610 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1612 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1613 dummy frame initialization code.
1614 * mips-tdep.c (mips_gdbarch_init): Ditto.
1616 2002-11-22 Christopher Faylor <cgf@redhat.com>
1618 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1621 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1623 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1624 to default_frame_address.
1625 * gdbarch.h, gdbarch.c: Re-generate.
1627 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1628 or frame_locals_address to default_frame_address.
1629 * m68k-tdep.c (m68k_gdbarch_init): Update.
1630 * i386-tdep.c (i386_gdbarch_init): Update.
1631 * frv-tdep.c (frv_gdbarch_init): Update.
1632 * sh-tdep.c (sh_gdbarch_init): Update.
1633 * v850-tdep.c (v850_gdbarch_init): Update.
1634 * sparc-tdep.c (sparc_gdbarch_init): Update.
1635 * mips-tdep.c (mips_gdbarch_init): Update.
1636 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1637 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1640 * cris-tdep.c (cris_frame_args_address): Delete function.
1641 (cris_frame_locals_address): Delete function.
1642 (cris_gdbarch_init): Do not set frame_args_address or
1643 frame_locals_address.
1645 2002-11-22 Michael Snyder <msnyder@redhat.com>
1647 * thread-db.c (thread_db_load): Tell the user what's going on
1648 if dlopen fails on libthread_db.
1650 2002-11-23 Andreas Schwab <schwab@suse.de>
1652 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1653 invariant return values.
1655 2002-11-22 Andreas Schwab <schwab@suse.de>
1657 * valops.c (value_slice): Move declaration of `offset' to avoid
1660 2002-11-22 Christopher Faylor <cgf@redhat.com>
1662 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1663 (struct so_stuff): Add end_addr field.
1664 (register_loaded_dll): Calculate and store end address of loaded dll.
1665 (solib_address): New function.
1666 (child_solib_loaded_library_pathname): Pass carefully constructed
1667 section info to safe_symbol_file_add rather than ignoring it.
1668 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1670 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1671 (child_create_inferior): Fix a compiler warning.
1672 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1673 (solib_address): Declare new function.
1675 2002-11-22 Andreas Schwab <schwab@suse.de>
1677 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1680 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1682 * maint.c (_initialize_maint_cmds): Fix typo. From
1683 Francesco Potorti` <pot@gnu.org>.
1685 2002-11-21 Andrew Cagney <cagney@redhat.com>
1687 * mips-tdep.c (mips_dump_tdep): Delete references to
1688 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1689 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1690 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1691 * printcmd.c (build_address_symbolic): Delete calls to
1692 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1693 (address_info): Ditto.
1696 2002-11-19 Klee Dienes <kdienes@apple.com>
1697 Adam Fedor <fedor@gnu.org>
1699 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1700 the ability to explicitly specify the quote characters and word
1701 break characters; if NULL is specified for either, use the old
1702 behavior of using the characters used by the completer.
1703 (skip_chars): New function. Convenience wrapper around
1704 skip_quoted_chars to provide the original skip_chars behavior.
1705 * completer.h (skip_quoted_chars): Add prototype.
1707 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1709 Problems reported by Paul Eggert.
1710 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1712 2002-11-19 Andreas Schwab <schwab@suse.de>
1714 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1715 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1716 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1717 (m68k_linux_frame_saved_pc): Move to ...
1718 * m68klinux-tdep.c: ... here. New file.
1719 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1720 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1722 2002-11-19 Adam Fedor <fedor@gnu.org>
1724 * objc-exp.y: Revert to old skip_quoted usage.
1726 2002-11-19 Adam Fedor <fedor@gnu.org>
1728 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1729 (objc_lang_h): Define.
1730 (YYFILES): Add objc-exp.tab.c.
1731 (local-maintainer-clean): Remove objc-exp.tab.c.
1732 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1734 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1736 * p-exp.y (typecast rule): Add automatic dereference of
1737 pascal classes if needed.
1738 (THIS): Set current_type.
1739 Automatically dereference pascal classes.
1740 (typebase rule): Add ^typebase recognition.
1742 2002-11-18 Adam Fedor <fedor@gnu.org>
1744 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1745 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1746 (op_name): Handle OP_OBJC_SELF.
1747 * Makefile.in (expprint.o): Add additional depends.
1749 2002-11-18 Adam Fedor <fedor@gnu.org>
1751 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1752 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1753 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1754 * objc-exp.y: Likewise.
1756 2002-11-18 Adam Fedor <fedor@gnu.org>
1758 * gdb/parser-defs.h: (struct objc_class_str): New structure
1759 for parsing ObjC classes.
1761 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1763 * stack.c (frame_relative_level): Copy function from here ...
1764 * frame.c (frame_relative_level): ...to here.
1766 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1768 * frame.h (enum frame_type): Define.
1769 (get_frame_type): Declare.
1770 (struct frame_info): Add field `type'. Delete field
1771 signal_handler_caller.
1772 (deprecated_set_frame_signal_handler_caller): Declare.
1773 * frame.c (get_frame_type): New function.
1774 (deprecated_set_frame_type): New function.
1775 (create_new_frame): Set the frame's type.
1776 (get_prev_frame): Similar.
1777 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1778 * s390-tdep.c: Ditto.
1779 * m68klinux-nat.c: Ditto.
1780 * ns32k-tdep.c: Ditto.
1781 * x86-64-linux-tdep.c: Ditto.
1782 * vax-tdep.c: Ditto.
1783 * rs6000-tdep.c: Ditto.
1784 * ppc-linux-tdep.c: Ditto.
1785 * i386-interix-tdep.c: Ditto.
1786 * mips-tdep.c: Ditto.
1787 * m68k-tdep.c: Ditto.
1788 * hppa-tdep.c: Ditto.
1789 * ia64-tdep.c: Ditto.
1790 * cris-tdep.c: Ditto.
1791 * arm-tdep.c: Ditto.
1792 * alpha-tdep.c: Ditto.
1793 * i386-tdep.c: Ditto.
1795 * ada-lang.c: Ditto.
1796 * blockframe.c: Update.
1797 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1798 deprecated_set_frame_type instead of signal_handler_caller.
1799 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1800 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1801 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1803 2002-11-18 Klee Dienes <kdienes@apple.com>
1805 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1807 2002-11-18 Klee Dienes <kdienes@apple.com>
1809 * buildsym.c (pop_context): Add comment.
1811 2002-11-18 Klee Dienes <kdienes@apple.com>
1813 * buildsym.h (pop_context): Convert to function, defined in
1815 * buildsym.c: Include gdb_assert.h.
1816 (pop_context): Implement as C function. Add check for stack
1818 * dbxread.c (process_one_symbol): Complain and stop processing
1819 that symbol if we are already at the top of the context stack for
1820 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1821 when processing N_RBRAC.
1823 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1825 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1827 (struct target_waitstatus): Add opaque definition.
1828 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1829 * exec.c (init_exec_ops): Likewise.
1830 * fork-child.c (clone_and_follow_inferior): Remove.
1831 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1832 * inferior.h (clone_and_follow_inferior): Remove prototype.
1833 * infrun.c (follow_fork_mode_both): Remove.
1834 (follow_fork_mode_kind_names): Remove commented out "both".
1835 (follow_inferior_fork): Remove follow_fork_mode_both support.
1836 * inftarg.c (child_clone_and_follow_inferior): Remove.
1837 (child_post_follow_inferior_by_clone): Remove.
1838 (init_child_ops): Don't set to_clone_and_follow_inferior
1839 or to_post_follow_inferior_by_clone.
1840 * target.c (default_clone_and_follow_inferior): Remove.
1841 (cleanup_target): Don't set to_clone_and_follow_inferior
1842 or to_post_follow_inferior_by_clone.
1843 (find_default_clone_and_follow_inferior): Remove.
1844 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1845 (debug_to_clone_and_follow_inferior): Remove.
1846 (debug_to_post_follow_inferior_by_clone): Remove.
1847 (setup_target_debug): Don't set to_clone_and_follow_inferior
1848 or to_post_follow_inferior_by_clone.
1849 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1850 and to_post_follow_inferior_by_clone.
1851 (child_clone_and_follow_inferior): Remove prototype.
1852 (child_post_follow_inferior_by_clone): Remove prototype.
1853 (target_clone_and_follow_inferior): Remove macro.
1854 (target_post_follow_inferior_by_clone): Remove macro.
1855 (find_default_clone_and_follow_inferior): Remove prototype.
1857 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1859 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1860 inferior_has_vforked, and inferior_has_execd instead of
1861 target_has_forked, target_has_vforked, and target_has_execd.
1862 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1863 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1864 (CHILD_WAIT): Define.
1865 (child_wait): Add prototype.
1866 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1868 (hpux_has_vforked): Likewise, from child_has_vforked.
1869 (hpux_has_execd): Likewise, from child_has_execd.
1870 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1871 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1872 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1873 and hpux_has_syscall_event instead of the target hooks.
1874 * infrun.c (inferior_has_forked, inferior_has_vforked)
1875 (inferior_has_execd): New functions.
1876 * inftarg.c (not_same_real_pid): Remove.
1877 (child_wait): Remove references to not_same_real_pid,
1878 target_has_forked, target_has_vforked, target_has_execd,
1879 and target_has_syscall_event.
1880 (child_has_forked, child_has_vforked, child_has_execd)
1881 (child_has_syscall_event): Remove.
1882 (init_child_ops): Remove references to child_has_forked,
1883 child_has_vforked, child_has_execd, and child_has_syscall_event.
1884 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1885 (hpux_has_vforked): Likewise, from child_has_vforked.
1886 (hpux_has_execd): Likewise, from child_has_execd.
1887 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1888 * target.c (cleanup_target): Remove references to
1889 to_has_forked, to_has_vforked, to_has_execd, and
1890 to_has_syscall_event.
1891 (update_current_target): Likewise.
1892 (setup_target_debug): Likewise.
1893 (debug_to_has_forked): Remove.
1894 (debug_to_has_vforked): Remove.
1895 (debug_to_has_execd): Remove.
1896 (debug_to_has_syscall_event): Remove.
1897 * target.h (struct target_ops): Remove to_has_forked.
1898 to_has_vforked, to_has_execd, and to_has_syscall_event.
1899 (child_has_forked, child_has_vforked, child_has_execd)
1900 (child_has_syscall_event): Remove prototypes.
1901 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1903 (target_has_forked, target_has_vforked, target_has_execd)
1904 (target_has_syscall_event): Remove macros.
1906 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1908 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1909 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1910 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1911 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1912 * target.c (cleanup_target): Remove reference to
1913 to_can_follow_vfork_prior_to_exec.
1914 (update_current_target): Likewise.
1915 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1916 (setup_target_debug): Remove reference to
1917 to_can_follow_vfork_prior_to_exec.
1918 * target.h (struct target_ops): Remove
1919 to_can_follow_vfork_prior_to_exec.
1920 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1921 (target_can_follow_vfork_prior_to_exec): Remove definition.
1922 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1924 * infrun.c (follow_vfork_when_exec): Remove.
1925 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1926 (follow_exec): Likewise.
1927 (handle_inferior_event): Likewise.
1928 (keep_going): Likewise.
1930 2002-11-15 Andrew Cagney <cagney@redhat.com>
1932 * frame.c (generic_unwind_get_saved_register): Make static.
1933 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1934 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1935 defaults to generic_unwind_get_saved_register.
1936 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1937 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1938 * frv-tdep.c (frv_gdbarch_init): Ditto.
1939 * i386-tdep.c (i386_gdbarch_init): Ditto.
1940 * s390-tdep.c (s390_gdbarch_init): Ditto.
1941 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1942 * v850-tdep.c (v850_gdbarch_init): Ditto.
1943 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1944 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1945 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1947 2002-11-15 Andrew Cagney <cagney@redhat.com>
1949 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1952 2002-11-15 Andrew Cagney <cagney@redhat.com>
1954 * frame.h (sigtramp_saved_pc): Delete declaration.
1955 * blockframe.c (sigtramp_saved_pc): Delete function.
1956 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1957 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1958 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1959 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1961 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1963 * frame.c (frame_pc_unwind): New function.
1964 (frame_saved_regs_pc_unwind): New function.
1965 (frame_register_unwind): Pass unwind_cache instead of
1966 register_unwind_cache.
1967 (set_unwind_by_pc): Add unwind_pc parameter, set.
1968 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1969 (get_prev_frame): Ditto.
1970 * frame.h (frame_pc_unwind_ftype): Declare.
1971 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1972 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1973 (frame_pc_unwind): Declare.
1974 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1975 (struct dummy_frame): Add comment mentioning that values are for
1977 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1978 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1979 (generic_file_frame_chain_valid): Ditto.
1980 * stack.c (frame_info): Ditto.
1982 2002-11-15 David Carlton <carlton@math.stanford.edu>
1984 * linespec.c (locate_first_half): New function.
1985 (decode_line_1): Move code into locate_first_half.
1987 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1989 * complaints.h: Add comment explaining how to eliminate a
1990 deprecated_complain call.
1991 * complaints.h: Fix spelling errors.
1993 2002-11-15 David Carlton <carlton@math.stanford.edu>
1995 * printcmd.c: Remove #include "disasm.h".
1997 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1999 * frame.h: Move the most relevant interface functions to the start
2002 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2004 * regcache.h (deprecated_registers): Rename registers.
2005 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2006 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2007 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2008 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2009 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2010 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2011 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2012 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2013 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2014 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2015 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2016 * v850ice.c: Update.
2018 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2020 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2023 2002-11-13 Andrew Cagney <cagney@redhat.com>
2025 * regcache.h (deprecated_read_register_bytes): Rename
2026 read_register_bytes.
2027 (deprecated_write_register_bytes): Rename write_register_bytes.
2028 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2029 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2030 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2031 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2032 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2033 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2034 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2035 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2036 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2037 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2038 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2039 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2040 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2041 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2043 2002-11-13 Jim Blandy <jimb@redhat.com>
2045 * findvar.c (read_var_value): Doc fix.
2047 2002-11-13 Andrew Cagney <cagney@redhat.com>
2049 * regcache.c (struct regcache): Replace passthough_p with
2051 (regcache_xmalloc): Initialize readonly_p.
2052 (build_regcache): Initialize readonly_p.
2053 (regcache_save): New function.
2054 (regcache_restore): New function.
2055 (regcache_cpy): Re-implement using regcache_save and
2057 (regcache_raw_read): Update.
2058 (regcache_cooked_read): When a read-only cache, checked for cached
2059 pseudo register values.
2060 (regcache_raw_write): Assert that the cache is not read-only.
2061 Remove code handling a non-passthrough cache.
2062 * regcache.h (regcache_save): Declare.
2063 (regcache_restore): Declare.
2065 2002-11-13 Andrew Cagney <cagney@redhat.com>
2067 * regcache.c (struct regcache_descr): Add fields
2068 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2069 (init_legacy_regcache_descr): Compute the size of a cooked
2070 register cache and then assign that to sizeof_raw_registers. Set
2071 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2072 (init_legacy_regcache_descr): Ditto.
2074 2002-11-13 Andrew Cagney <cagney@redhat.com>
2076 * regcache.c (register_buffer): Move to near start of file, update
2078 (regcache_raw_read): Use.
2079 (regcache_raw_write): Use.
2080 (struct regcache): Rename raw_registers to registers and
2081 raw_register_valid_p to register_valid_p.
2082 (regcache_xmalloc): Update.
2083 (regcache_xfree): Update.
2084 (register_buffer): Update.
2085 (regcache_cpy): Update.
2086 (regcache_cpy_no_passthrough): Update.
2087 (regcache_valid_p): Update.
2088 (deprecated_grub_regcache_for_registers): Update.
2089 (deprecated_grub_regcache_for_register_valid): Update.
2090 (set_register_cached): Update.
2091 (regcache_raw_write): Update.
2093 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2095 * p-exp.y (name_not_typename): Use copy_name to
2096 set current_type variable for fields of THIS.
2098 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2100 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2101 * monitor.c (init_base_monitor_ops): Likewise.
2102 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2103 * remote-array.c (init_array_ops): Likewise.
2104 * remote-e7000.c (init_e7000_ops): Likewise.
2105 * remote-es.c (init_es1800_ops): Likewise.
2106 (init_es1800_child_ops): Likewise.
2107 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2108 * remote-sim.c (init_gdbsim_ops): Likewise.
2109 * remote-st.c (init_st2000_ops): Likewise.
2110 * sol-thread.c (init_sol_core_ops): Likewise.
2111 (init_sol_thread_ops): Likewise.
2112 * v850ice.c (init_850ice_ops): Likewise.
2113 * win32-nat.c (init_child_ops): Likewise.
2114 * wince.c (init_child_ops): Likewise.
2116 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2118 * utils.c (gdb_realpath): Make rp a constant pointer.
2120 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2122 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2123 a constant buffer; cannonicalize_file_name(); realpath() with a
2124 pathconf() defined buffer, xstrdup().
2126 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2128 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2129 to hang2.C; hang3.c to hang3.C.
2131 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2133 * findvar.c (read_var_value): Reenable TLS code.
2135 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2136 Jim Blandy <jimb@redhat.com>
2138 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2139 * target.c (update_current_target): Add
2140 to_get_thread_local_address.
2141 * target.h (to_get_thread_local_address): Export.
2142 (target_get_thread_local_address): Define.
2143 (target_get_thread_local_address_p): Define.
2144 * thread-db.c: Include solib-svr4.h.
2145 (td_thr_tls_get_addr_p): Define.
2146 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2147 (thread_db_get_thread_local_address): New function.
2148 (init_thread_db_ops): Initialize to_get_thread_local_address.
2149 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2150 * configure: Regenerate.
2151 * config.in: Regenerate.
2153 2002-11-11 David Carlton <carlton@math.stanford.edu>
2155 * linespec.c (set_flags): New function.
2156 (decode_line_1): Move code into set_flags.
2158 2002-11-11 David Carlton <carlton@math.stanford.edu>
2160 * linespec.c (decode_line_1): Move chunks of code to separate
2162 (initialize_defaults): New function.
2163 (decode_indirect): New function.
2165 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2167 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2168 instead of void_code_ptr.
2169 (sigtramp_saved_pc): Ditto.
2171 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2174 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2176 * gdbtypes.h (struct main_type): Move artificial flag out of
2177 loc. New member of ``struct field'' named static_kind. Reduce
2178 overloaded meaning of bitsize.
2179 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2180 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2181 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2183 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2185 (template_to_fixed_record_type, template_to_static_fixed_type)
2186 (to_record_with_fixed_variant_part): Likewise.
2187 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2188 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2189 * dwarfread.c (struct_type, enum_type): Likewise.
2190 * hpread.c (hpread_read_enum_type)
2191 (hpread_read_function_type, hpread_read_doc_function_type)
2192 (hpread_read_struct_type): Likewise.
2193 * mdebugread.c (parse_symbol): Likewise.
2195 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2197 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2198 * stack.c (print_frame_info_base): Update.
2199 (print_frame_info_base, frame_info): Update.
2200 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2201 (sparc_frame_saved_pc): Update.
2202 * ada-lang.c (find_printable_frame): Update.
2203 * breakpoint.c (deprecated_frame_in_dummy): Update.
2205 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2207 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2209 (regmap): Extend to cover all registers.
2210 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2211 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2213 (fetch_register, sore_register): Simplify.
2214 (old_fetch_inferior_registers, old_store_inferior_registers):
2216 (cannot_fetch_register, cannot_store_register): Change
2217 implementation to use regmap array to decide which registers
2218 cannot be fetched/stored. This removes $orig_eax from the
2219 registers that cannot be fetched/stored.
2220 (fetch_inferior_registers): Call fetch_register directly instead
2221 of calling old_fetch_inferior_registers.
2222 (store_inferior_registers): Call store_register directly instead
2223 of calling old_store_inferior_registers.
2224 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2225 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2226 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2228 2002-11-09 Klee Dienes <kdienes@apple.com>
2230 * i387-tdep.c (i387_supply_register): When called with NULL as a
2231 buffer, mark the register as not provided (to mirror the behavior
2232 of supply_register).
2233 (i387_supply_fxsave): Ditto.
2234 (i387_supply_fsave): Ditto (inherits the behavior from
2235 i387_supply_register).
2237 2002-11-09 Klee Dienes <kdienes@apple.com>
2239 * blockframe.c (sigtramp_saved_pc): Use
2240 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2241 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2242 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2244 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2246 * frame.c (get_prev_frame): Test prev_p to identify a previously
2247 unwound frame. Initialize prev_p.
2248 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2251 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2253 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2254 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2255 more comments. Zap dead code.
2257 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2259 * infcmd.c (print_vector_info, print_float_info): Move code that
2260 checks whether the target has any registers and whether there is a
2261 selected frame up, such that it is also used if a target provides
2262 multi-arch definitions of these functions.
2264 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2266 * Makefile.in (DESTDIR): Define.
2267 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2270 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2271 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2273 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2275 * i386-linux-tdep.c: Include "reggroups.h".
2276 (i386_linux_register_reggroup_p): New function.
2277 (i386_linux_init_abi): Set register_reggroup_p to
2278 i386_linux_register_reggroup_p.
2279 * i386-tdep.h (i386_register_reggroup_p): Declare.
2280 * i386-tdep.c: Include "reggroups.h".
2281 (i386_init_reggroups): New function.
2282 (i386_add_reggroups): New function.
2283 (i386_register_reggroup_p): New function.
2284 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2285 (_initialize_i386_tdep): Call i386_init_reggroups.
2286 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2289 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2291 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2292 request that's available in *BSD.
2294 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2296 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2299 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2301 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2302 * dummy-frame.c (find_dummy_frame): Rename
2303 generic_find_dummy_frame, make static. Return the dummy frame
2304 instead of the regcache.
2305 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2306 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2307 (dummy_frame_register_unwind): Rename
2308 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2309 * dummy-frame.h (dummy_frame_register_unwind): Rename
2310 generic_call_dummy_register_unwind.
2312 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2314 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2315 except the inclusion of "i386/tm-i386.h", to...
2316 * config/i386/nm-i386v42mp.h: ...here.
2317 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2319 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2321 * Makefile.in (frame.o): Update dependencies.
2322 * blockframe.c (current_frame, frame_obstack_alloc)
2323 (frame_saved_regs_zalloc, get_current_frame)
2324 (set_current_frame, create_new_frame)
2325 (set_unwind_by_pc, get_next_frame)
2326 (flush_cached_frames, reinit_frame_cache)
2327 (frame_saved_regs_register_unwind)
2328 (deprecated_generic_get_saved_register)
2329 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2330 (_initialize_blockframe): Move frame code from here...
2331 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2332 "annotate.h" and "dummy-frame.h".
2333 (_initialize_frame): New function.
2335 2002-11-08 Jim Blandy <jimb@redhat.com>
2337 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2338 when we finish a function a context.
2339 * buildsym.h (outermost_context_p): New macro.
2340 (Bug analyzed by David Edelsohn.)
2342 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2344 * blockframe.c: Include "dummy-frame.h".
2345 (struct dummy_frame, dummy_frame_stack)
2346 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2347 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2348 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2349 (generic_save_call_dummy_addr, generic_pop_current_frame)
2350 (generic_pop_dummy_frame, generic_fix_call_dummy)
2351 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2352 dummy frame code from here...
2353 * dummy-frame.c: ...to here. New file.
2354 * dummy-frame.h: New file.
2355 (generic_call_dummy_register_unwind): Declare.
2356 (generic_find_dummy_frame): Declare.
2357 * Makefile.in (SFILES): Add dummy-frame.c.
2358 (dummy-frame.o): Specify dependencies.
2359 (dummy_frame_h): Define.
2360 (COMMON_OBS): Add dummy-frame.o.
2361 (blockframe.o): Update dependencies.
2363 2002-11-08 Jim Blandy <jimb@redhat.com>
2365 * dwarf2read.c (read_func_scope): Restore local_symbols and
2366 param_symbols after we finish the function context. (Based on a
2367 patch from David Edelsohn.)
2369 2002-11-08 David Carlton <carlton@math.stanford.edu>
2371 * linespec.c (symbol_found): New function.
2372 (minsym_found): New function.
2373 (decode_line_1): Separate out some code into separate functions.
2375 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2377 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2378 the benefit of the interix target.
2379 * i386-tdep.h (i386_frameless_signal_p): Declare.
2381 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2383 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2384 declaration that snuck in from change below.
2386 2002-11-06 Andrew Cagney <cagney@redhat.com>
2388 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2390 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2391 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2392 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2393 (i386_mxcsr_regnum_p): new function. Use instead of
2395 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2396 (i386_sse_regnum_p): Declare.
2397 (i386_mxcsr_regnum_p): Declare.
2398 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2399 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2400 (IS_FP_REGNUM): Update definition.
2401 (IS_FPU_CTRL_REGNUM): Update definition..
2402 (IS_SSE_REGNUM): Update definition..
2403 * i386v-nat.c (register_u_addr): Update.
2404 * go32-nat.c (fetch_register): Update.
2405 (store_register): Update.
2407 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2409 Preparation work to convert the hppa targets to multiarch partial.
2411 * hppa-tdep.c: Add new functions replacing macro bodies from
2412 config/pa/tm-hppa.h. These function will be used to initialize
2413 the gdbarch structure. Import some comments from tm-hppa.h,
2414 and place them where appropriate, to avoid loosing them when
2415 we cleanup this file.
2416 (hppa_reg_struct_has_addr): New function.
2417 (hppa_inner_than): New function.
2418 (hppa_stack_align): New function.
2419 (hppa_pc_requires_run_before_use): New function.
2420 (hppa_instruction_nullified): New function.
2421 (hppa_register_byte): New function.
2422 (hppa_register_virtual_type): New function.
2423 (hppa_store_struct_return): New function.
2424 (hppa_cannot_store_register): New function.
2425 (hppa_frame_args_address): New function.
2426 (hppa_frame_locals_address): New function.
2427 (hppa_smash_text_address): New function.
2428 (hppa_coerce_float_to_double): New function. Requires the inclusion
2431 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2433 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2434 gdbarch-eligible macro to a call to the new associated function
2435 created in hppa-tdep.c.
2436 (INNER_THAN): Likewise.
2437 (STACK_ALIGN): Likewise.
2438 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2439 (INSTRUCTION_NULLIFIED): Likewise.
2440 (REGISTER_BYTE): Likewise.
2441 (REGISTER_VIRTUAL_TYPE): Likewise.
2442 (STORE_STRUCT_RETURN): Likewise.
2443 (CANNOT_STORE_REGISTER): Likewise.
2444 (FRAME_ARGS_ADDRESS): Likewise.
2445 (FRAME_LOCALS_ADDRESS): Likewise.
2446 (SMASH_TEXT_ADDRESS): Likewise.
2447 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2448 (ABOUT_TO_RETURN): Delete, as no longer used.
2450 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2452 * printcmd.c (disassemble_command): Remove obsolete function.
2453 (_initialize_printcmd): Do not create disassemble command here.
2454 * cli/cli-cmds.c (disassemble_command): New function. Implements
2455 disassemble command.
2456 (init_cli_cmds): Create disassemble command here instead.
2458 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2460 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2462 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2464 * regcache.h (regcache_cooked_read_using_offset_hack)
2465 (regcache_cooked_write_using_offset_hack): Delete declarations.
2466 (register_changed): Delete declaration.
2467 * regcache.c (regcache_cooked_read_using_offset_hack)
2468 (regcache_cooked_write_using_offset_hack): Delete functions.
2469 (cooked_xfer_using_offset_hack): Delete function.
2470 (register_changed): Delete function.
2472 2002-11-07 Jim Blandy <jimb@redhat.com>
2474 * macroscope.c: #include "complaints.h".
2475 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2476 but not in the macro table.
2477 * Makefile.in (macroscope.o): Record dependency.
2479 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2481 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2483 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2485 * regcache.c (deprecated_registers_fetched): Update.
2486 * regcache.h (deprecated_registers_fetched): Rename
2488 * remote-vxsparc.c (vx_read_register): Update.
2489 * remote-vxmips.c (vx_read_register): Update.
2490 * remote-vx68.c (vx_read_register): Update.
2491 * irix5-nat.c (fetch_core_registers): Update.
2492 * mipsm3-nat.c (fetch_inferior_registers): Update.
2493 * sun3-nat.c (fetch_inferior_registers): Update.
2494 * symm-nat.c (fetch_inferior_registers): Update.
2495 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2496 (fetch_core_registers): Update.
2497 (fetch_kcore_registers): Update.
2498 * mips-nat.c (fetch_inferior_registers): Update.
2499 * corelow.c (get_core_registers): Update.
2500 * a68v-nat.c (fetch_inferior_registers): Update.
2502 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2504 Put in place the framework necessary for multiarching the hppa targets.
2505 * hppa-tdep.c (hppa_gdbarch_init): New function.
2506 (hppa_dump_tdep): New function.
2507 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2508 tdep structure dumper.
2509 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2510 until the multi-arching conversion has partially been completed.
2512 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2514 * valops.c (value_assign): Merge lval_register case into
2515 lval_reg_frame_relative. Use frame_register and
2516 regcache_cooked_write instead of get_saved_register and
2517 write_register_bytes. After flushing the register cache, try to
2518 re-select the selected frame.
2520 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2522 * regcache.h (deprecated_register_valid): Rename register_valid.
2523 * regcache.c: Update.
2524 * ia64-aix-nat.c: Update.
2525 * i386gnu-nat.c: Update.
2526 * alpha-nat.c: Update.
2527 * sparc-nat.c: Update.
2528 * lynx-nat.c: Update.
2529 * remote-mips.c: Update.
2531 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2533 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2534 to end of file, to be more consistent with the pratice followed
2537 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2539 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2540 (print_float_info): Print registers in float_reggroup.
2541 (print_vector_info): Print registers in vector_reggroup.
2542 (default_print_registers_info): When all, print registers in
2543 all_reggroup. Otherwize, print registers in general_reggroup.
2544 (registers_info): Rewrite. Add support for register groups.
2547 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2549 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2551 (symtab_symbol_info): Remove eons old ifdeffed out code.
2552 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2555 2002-11-06 Theodore A. Roth <troth@openavr.org>
2557 * c-exp.y: Add missing semi-colons.
2558 * f-exp.y: Add missing semi-colons.
2559 * m2-exp.y: Add missing semi-colons.
2560 * p-exp.y: Add missing semi-colons.
2561 Add empty action to start rule to avoid a type clash error when
2562 building with bison >= 1.50.
2564 2002-11-06 Jim Blandy <jimb@redhat.com>
2566 * macrotab.h (struct macro_source_file): Doc fix.
2568 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2570 * varobj.c (child_exists, cplus_number_of_children): Change
2571 STREQ macro references to strcmp.
2572 (cplus_name_of_child): Change code to handle the fact that
2573 fields are not necessarily contiguous with regards to their
2574 access control. This is a fix for PR gdb/792.
2576 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2578 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2579 * gdbarch.h, gdbarch.c: Regnerate.
2580 * frame.h (frame_register): Declare.
2581 * frame.c (frame_register): New function.
2582 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2583 GET_SAVED_REGISTER, otherwize call
2584 generic_unwind_get_saved_register.
2585 (frame_register_read): Use frame_register instead of
2588 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2590 From Jim Ingham <jingham@apple.com>:
2591 * event-top.c (gdb_disable_readline): New function.
2592 (_initialize_event_loop): Move comment.
2594 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2596 * event-loop.c (start_event_loop): Add comment.
2599 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2601 * infcmd.c (default_print_registers_info): Do not call
2602 PRINT_REGISTER_HOOK.
2604 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2606 * sparc-tdep.c (sparc_print_register_hook): Make static.
2607 (sparc_print_registers_info): New function.
2608 (sparc_do_registers_info): New function.
2609 (sparclet_print_registers_info): New function.
2610 (sparclet_do_registers_info): New function.
2611 (do_sparc_print_registers_info): New function.
2612 (sparc_print_registers): New static function, clone of infcmd.c's
2613 default_print_registers_info.
2614 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2615 (sparclet_do_registers_info): Declare.
2616 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2617 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2619 (sparc_do_registers_info): Declare.
2620 (PRINT_REGISTER_HOOK): Delete macro.
2621 (sparc_print_register_hook): Delete declaration.
2623 2002-11-05 David Carlton <carlton@math.stanford.edu>
2625 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2627 (lookup_symbol_aux_local): New function.
2628 (lookup_symbol_aux_symtabs): New function.
2629 (lookup_symbol_aux_psymtabs): New function.
2631 2002-11-05 David Carlton <carlton@math.stanford.edu>
2633 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2634 previous values of 'objfile' and 'block'.
2636 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2638 * values.c (value_change_enclosing_type): Set
2639 enclosing_type field correctly also for the case where
2640 more memory needs to be allocated.
2642 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2644 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2647 * i387-tdep.c (i387_print_float_info): Replace calls to
2648 register_read and deprecated_read_register_gen with calls to
2649 frame_register_read, and make the necessary adjustments to the
2652 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2654 * gdbarch.sh (register_reggroup_p): Allow default value.
2655 * gdbarch.h, gdbarch.c: Regenerate.
2657 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2659 * regcache.h: Add coment indicating replacements for deprecated
2662 2002-11-02 Andrew Cagney <cagney@redhat.com>
2664 * reggroups.h, reggroups.c: New files.
2665 * regcache.c: Include "reggroups.h".
2666 (enum regcache_dump_what): Add `regcache_dump_groups'.
2667 (regcache_dump): Contract size of the "Type" column. When
2668 specified, dump the register's groups.
2669 (maintenance_print_register_groups): New function.
2670 (_initialize_regcache): Add command `maint print register-groups'.
2671 * Makefile.in (COMMON_OBS): Add reggroups.o
2672 (SFILES): Add reggroups.c.
2673 (reggroups_h): Define.
2674 (regcache.o, gdbarch.o): Update dependencies.
2675 (reggroups.o): Specify dependencies.
2676 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2677 Add opaque declaration for `struct reggroup' in generated .h file.
2678 Include "reggroups.h" in generated .c file.
2679 gdbarch.h, gdbarch.c: Re-generate.
2681 2002-11-02 Andrew Cagney <cagney@redhat.com>
2683 * regcache.h (deprecated_read_register_gen): Rename
2685 (deprecated_write_register_gen): Rename write_register_gen.
2686 * i387-tdep.c: Update.
2687 * x86-64-linux-nat.c: Update
2689 * thread-db.c: Update.
2690 * win32-nat.c: Update.
2691 * mips-tdep.c: Update.
2692 * d10v-tdep.c: Update.
2693 * cris-tdep.c: Update.
2694 * remote-sim.c: Update.
2695 * remote-rdi.c: Update.
2696 * remote-rdp.c: Update.
2699 * blockframe.c: Update.
2700 * x86-64-tdep.c: Update.
2701 * xstormy16-tdep.c: Update.
2702 * sh-tdep.c: Update.
2703 * s390-tdep.c: Update.
2704 * rs6000-tdep.c: Update.
2705 * sparc-tdep.c: Update.
2706 * i386-tdep.c: Update.
2707 * dwarf2cfi.c: Update.
2708 * regcache.c: Update.
2710 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2712 New interix-specific files:
2713 * config/i386/nm-interix.h: New file.
2714 * config/i386/interix.mh: New file.
2715 * config/i386/interix.mt: New file.
2716 * i386-interix-nat.c: New file.
2717 * i386-interix-tdep.c: New file.
2719 2002-11-01 Andrew Cagney <cagney@redhat.com>
2721 * frame.h (deprecated_generic_get_saved_register): Rename
2722 generic_get_saved_register.
2723 * blockframe.c (deprecated_generic_get_saved_register): Update.
2724 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2725 (xstormy16_frame_saved_register): Update.
2726 * sh-tdep.c (sh_gdbarch_init): Update.
2727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2728 * ia64-tdep.c (ia64_get_saved_register): Update.
2729 * cris-tdep.c (cris_gdbarch_init): Update.
2730 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2731 * arm-tdep.c (arm_gdbarch_init): Update.
2733 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2735 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2737 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2739 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2740 trampolines in sigaction.
2742 2002-10-31 Andrew Cagney <cagney@redhat.com>
2744 * h8300-tdep.c: Include "gdb_assert.h".
2745 (h8300_print_register): Add gdbarch, file and frame parameters.
2746 Use frame_read_unsigned_register to read the register's value.
2747 Use fprintf_filtered to display output.
2748 (h8300_print_registers_info): Replace h8300_do_registers_info.
2749 (h8300_gdbarch_init): Set print_registers_info.
2751 2002-10-31 Andrew Cagney <cagney@redhat.com>
2753 * frame.c (frame_read_unsigned_register): New function.
2754 (frame_read_signed_register): New function.
2755 * frame.h (frame_read_unsigned_register): Declare.
2756 (frame_read_signed_register): Declare.
2758 2002-10-31 Andrew Cagney <cagney@redhat.com>
2760 * h8500-tdep.c (h8500_print_registers_info): New static function,
2761 clone of infcmd.c's default_print_registers_info.
2762 (h8500_do_registers_info): New funtion.
2763 (h8500_print_register_hook): Rename print_register_hook, make
2766 * config/h8500/tm-h8500.h: Update copyright.
2767 (DEPRECATED_DO_REGISTERS_INFO): Define.
2768 (h8500_do_registers_info: Declare.
2769 (PRINT_REGISTER_HOOK): Delete macro.
2770 (print_register_hook): Delete function.
2772 2002-10-31 Andrew Cagney <cagney@redhat.com>
2774 * z8k-tdep.c (z8k_print_register_hook): Make static.
2775 (z8k_print_registers_info): New static function, clone of
2776 infcmd.c's default_print_registers_info.
2777 (z8k_do_registers_info): New function. Wrap
2778 z8k_print_registers_info.
2779 * config/z8k/tm-z8k.h: Update copyright.
2780 (PRINT_REGISTER_HOOK): Delete macro.
2781 (z8k_print_register_hook): Delete declaration.
2782 (DEPRECATED_DO_REGISTERS_INFO): Define.
2783 (z8k_do_registers_info): Declare.
2785 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2787 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2788 as this is already provided by value.h, and was actually causing
2789 a compilation error because of a conflict in parameter type
2790 declaration due to a missing const keyword.
2791 (low_text_segment_addres): Fix a compilation warning.
2793 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2795 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2796 registers without a name.
2797 (mips_linux_cannot_store_register): Don't store registers without
2800 2002-10-28 David Carlton <carlton@math.stanford.edu>
2802 * symtab.c (find_addr_symbol): Delete. (It was already commented
2804 * symtab.h: Delete prototype for find_addr_symbol.
2806 2002-10-26 Andrew Cagney <cagney@redhat.com>
2808 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2810 gdbarch.h, gdbarch.c: Re-generate.
2811 * infcmd.c (default_print_registers_info): Update reference.
2812 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2813 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2814 * sh-tdep.c (sh_gdbarch_init): Ditto.
2815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2816 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2818 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2820 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2821 cfi_init_extra_frame_info.
2822 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2823 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2825 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2826 target where necessary. Add more comments and remove the ones
2827 that don't provide any useful information.
2829 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2830 deprecated_read_register_dummy with
2831 frame_unwind_unsigned_register.
2833 * i386-tdep.c (i386_extract_struct_value_address): Use
2834 regcache_raw_read_unsigned instead of
2835 regcache_cooked_read_unsigned since we know that the register
2836 we're reading isn't a pseudo register. Rename variable 'val' into
2837 the more descriptive 'addr'.
2839 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2840 (x86_64_push_return_address): Add comment.
2841 (x86_64_pop_frame): Make static.
2842 (examine_argument): Clarify comment.
2843 (x86_64_skip_prologue): Make prolog_expact variable static.
2845 * dwarf2cfi.c: Fix some formatting problems.
2846 (context_cpy, read_encoded_pointer): Clarify comments.
2848 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2849 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2850 i386 target back into x86_64_gdbarch_init. Add some comments and
2851 remove meaningless ones.
2853 2002-10-25 Andrew Cagney <cagney@redhat.com>
2855 * complaints.h (struct deprecated_complaint): Rename `struct
2857 * complaints.c (complain): Update.
2858 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2859 incorrect comment indicating that "symfile.h" was being included
2860 for the `struct complaint' definition.
2861 * remote-vx.c: Update.
2862 * objc-lang.c: Update.
2863 * xcoffread.c: Update.
2865 * mdebugread.c: Update.
2866 * stabsread.c: Update.
2867 * dwarf2read.c: Update.
2868 * dwarfread.c: Update.
2869 * elfread.c: Update.
2870 * coffread.c: Update.
2871 * stabsread.h: Update.
2872 * dbxread.c: Update.
2873 * buildsym.c: Update.
2874 * gdbtypes.c: Update.
2875 * macrotab.c: Update.
2877 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2879 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2880 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2881 (x86_64_init_abi): ...new function.
2883 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2884 * i386v-nat.c: Include "i386-tdep.h".
2886 2002-10-25 Andrew Cagney <cagney@redhat.com>
2888 * gdbtypes.c (address_space_name_to_int): Update.
2889 (address_space_int_to_name): Update.
2890 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2891 multi-arch predicate.
2892 (address_class_name_to_type_flags): Ditto.
2893 * gdbarch.h, gdbarch.c: Re-generate.
2895 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2897 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2899 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2901 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2903 * symtab.h (INIT_SAL): Delete macro.
2905 * symtab.c (init_sal): New function.
2907 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2908 to init_sal function call.
2909 (find_sal_from_funcs_and_line): Ditto.
2910 (all_sals_for_line): Ditto.
2911 * breakpoint.c (create_internal_breakpoint): Ditto.
2912 (create_fork_vfork_event_catchpoint): Ditto.
2913 (create_exec_event_catchpoint): Ditto.
2914 (parse_breakpoint_sals): Ditto.
2915 (watch_command_1): Ditto.
2916 (handle_gnu_4_16_catch_command): Ditto.
2917 (clear_command): Ditto.
2918 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2919 * infcmd.c (run_stack_dummy): Ditto.
2920 * infrun.c (process_event_stop_test): Ditto.
2921 (check_sigtramp2): Ditto.
2922 (step_over_function): Ditto.
2923 * linespec.c (decode_line_2): Ditto.
2924 (decode_line_1): Ditto.
2925 * source.c (line_info): Ditto.
2926 * symtab.c (find_pc_sect_line): Ditto.
2928 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2930 * dwarf2cfi.c (struct context)
2931 (struct context_reg): Moved to dwarf2cfi.h
2932 (context_alloc, frame_state_alloc, context_cpy):
2933 Made extern instead of static, removed prototypes.
2934 * dwarf2cfi.h (struct context)
2935 (struct context_reg): New, moved from dwarf2cfi.c
2936 (context_alloc, frame_state_alloc, context_cpy):
2938 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2939 Changed from static to extern.
2940 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2941 (LINUX_SIGCONTEXT_FP_OFFSET)
2942 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2943 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2944 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2945 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2946 set_gdbarch_*() calls now use x86-64 specific functions
2947 instead of DWARF2 CFI ones.
2948 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2949 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2950 (x86_64_init_extra_frame_info): New prototypes.
2952 2002-10-23 David Carlton <carlton@math.stanford.edu>
2954 * linespec.c: #include "parser-defs.h".
2955 Delete prototype for find_template_name_end.
2956 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2958 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2960 * NEWS: add recent mi fixes.
2961 * varobj.c (struct varobj): Add new "updated" flag.
2962 (new_variable): Default "updated" flag to 0.
2963 (varobj_set_value): Set "updated" flag to 1 if value
2965 (varobj_update): Check varobj "updated" flag before
2966 comparing old and refreshed values. Fix for
2969 2002-10-23 David Carlton <carlton@math.stanford.edu>
2971 * parse.c (parse_exp_1): Use BLOCK_START.
2972 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2974 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2976 2002-10-23 David Carlton <carlton@math.stanford.edu>
2978 * symtab.c: Delete cplusplus_hint.
2979 Delete prototype for find_template_name_end.
2981 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2983 * symtab.h: Update comment.
2985 2002-10-23 Michael Snyder <msnyder@redhat.com>
2987 * printcmd.c (address_info): Restore quotes in output.
2988 * valops.c (value_of_local): Restore quotes in error message.
2990 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2992 * symtab.c (symbol_demangled_name): New function.
2993 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2994 turning most of it into a function.
2995 (symbol_demangled_name): Export.
2997 2002-10-23 Michael Snyder <msnyder@redhat.com>
2999 * valops.c (value_of_local): Restore quotes in error message.
3001 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3003 * symtab.c (symbol_init_language_specific): New function.
3004 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3005 turning most of it into a function.
3006 (symbol_init_language_specific): Export.
3008 2002-10-23 David Carlton <carlton@math.stanford.edu>
3010 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3011 (dwarf_attr_name): Ditto.
3012 (dwarf_type_encoding_name): Ditto.
3013 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3014 (process_die): Handle DW_TAG_namespace,
3015 DW_TAG_imported_declaration, DW_TAG_imported_module.
3016 (read_namespace): New function.
3018 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3020 * configure.in: Define NEW_PROC_API on Interix too.
3021 * configure: Regenerate.
3023 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3025 * configure: Regenerate using the proper version of autoconf.
3027 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3029 * findvar.c (read_var_value): Temporarily disable TLS code, until
3030 complete TLS support is added.
3032 2002-10-21 Jim Blandy <jimb@redhat.com>
3033 Elena Zannoni <ezannoni@redhat.com>
3035 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3036 for thread local storage locations.
3037 (struct symbol): Add objfile field.
3038 (SYMBOL_OBJFILE): Define.
3039 * dwarf2read.c (is_thread_local): New static variable.
3040 (new_symbol): If variable is in thread local fill in address class
3041 and objfile appropriately.
3042 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3044 * printcmd.c (address_info): Print the information for thread
3045 local storage variable.
3046 * findvar.c (read_var_value): In case of thread local variable,
3047 defer to the target vector code to compute address.
3049 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3051 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3052 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3054 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3056 * symtab.h (address_class): Rename
3057 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3058 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3059 * printcmd.c (address_info): Ditto.
3060 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3062 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3064 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3065 DBREG_DRX macro to acces debug registers.
3067 * Makefile.in (i386obsd-tdep.o): New target.
3069 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3070 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3072 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3073 * config/i386/obsd.mt: New file.
3074 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3075 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3076 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3077 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3078 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3079 * i386obsd-tdep.c: New file.
3081 2002-10-19 Adam Fedor <fedor@gnu.org>
3083 * objc-exp.y (name_not_typename): Fix invalid comment.
3085 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3087 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3088 to allocate partial syms and macro byte caches.
3090 2002-10-18 David Carlton <carlton@math.stanford.edu>
3092 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3094 2002-10-18 Adam Fedor <fedor@gnu.org>
3096 * stabsread.c (find_name_end): New function.
3097 (define_symbol): Use it.
3099 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3101 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3102 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3103 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3104 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3106 2002-10-17 David Carlton <carlton@math.stanford.edu>
3108 * symfile.h: Add opaque declaration for struct obstack.
3109 Declare obsavestring to take a const char *.
3110 * symfile.c (obsavestring): Make first argument a const char *.
3112 2002-10-16 Adam Fedor <fedor@gnu.org>
3114 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3115 names when matching breakpoints in current file.
3117 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3119 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3120 (read_tag_pointer_type): Add address class support.
3121 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3122 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3124 * gdbarch.h, gdbarch.c: Regenerate.
3125 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3126 (make_type_with_address_space, recursive_type_dump): Add address
3128 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3129 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3130 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3132 2002-10-16 Klee Dienes <kdienes@apple.com>
3134 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3135 to get the last character of a char[] buffer, not
3136 name[sizeof(vptr_name)-1].
3138 2002-10-14 Adam Fedor <fedor@gnu.org>
3140 * symtab.h: New objc_specific struct.
3141 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3142 (SYMBOL_DEMANGLED_NAME): Likewise.
3144 2002-10-14 Adam Fedor <fedor@gnu.org>
3146 * symfile.c (init_filename_language_table): Add ObjC file extension.
3148 2002-10-14 Adam Fedor <fedor@gnu.org>
3150 * utils.c (puts_filtered_tabular): New function.
3151 (fprintf_symbol_filtered): Get ObjC demangled name.
3152 * defs.h (puts_filtered_tabular): Declared.
3154 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3156 * c-lang.h (c_type_print_varspec_prefix): Delete.
3157 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3158 ``need_post_space'' parameter. Adjust all callers.
3160 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3162 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3163 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3164 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3165 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3167 2002-10-13 Adam Fedor <fedor@gnu.org>
3169 * source.c (print_source_lines): Update comments.
3171 2002-10-13 Adam Fedor <fedor@gnu.org>
3173 * valops.c (value_of_local): New function.
3174 (value_of_this): Use it.
3175 * value.h (value_of_local): Declared.
3177 2002-10-13 Adam Fedor <fedor@gnu.org>
3179 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3180 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3182 2002-10-12 Adam Fedor <fedor@gnu.org>
3184 * language.c (binop_result_type): Add language_objc to case.
3185 (integral_type): Likewise.
3186 (character_type): Likewise.
3187 (string_type): Likewise.
3188 (boolean_type): Likewise.
3189 (structured_type): Likewise.
3190 (binop_type_check): Likewise.
3192 2002-10-11 Adam Fedor <fedor@gnu.org>
3194 * printcmd.c (address_info): Print 'self' for ObjC.
3196 2002-10-11 Adam Fedor <fedor@gnu.org>
3198 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3201 2002-10-11 Adam Fedor <fedor@gnu.org>
3203 * language.h (CAST_IS_CONVERSION): Add language_objc.
3205 2002-10-11 Adam Fedor <fedor@gnu.org>
3207 * defs.h (enum language): Add language_objc.
3209 2002-10-11 Klee Dienes <kdienes@apple.com>
3211 * corefile.c (read_memory_typed_address): New function.
3212 * gdbcore.h (read_memory_typed_address): Add prototype.
3213 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3214 to read a value destined for a CORE_ADDR, not read_memory_integer.
3215 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3216 (f77_get_dynamic_lowerbound): Ditto.
3218 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3220 * utils.c (string_to_core_addr): After turning string into
3221 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3222 which will do necessary sign-extension, etc.
3224 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3226 * c-exp.y (THIS): Delete token and grammar rule.
3227 (yylex): Don't return THIS.
3228 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3229 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3230 * demangle.c (cplus_markers): Update comment. Put '$'
3231 first. Remove CPLUS_MARKER.
3232 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3233 * jv-exp.y (THIS): Delete token and grammar rule.
3234 (yylex): Don't return THIS.
3235 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3236 * objc-exp.y (THIS): Delete token and grammar rule.
3237 (yylex): Don't return THIS.
3238 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3239 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3240 (read_member_functions): Likewise for opname.
3241 (read_tilde_fields): Use is_cplus_marker.
3243 * defs.h (CPLUS_MARKER): Don't define.
3244 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3245 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3246 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3247 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3248 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3250 * config/i386/tm-i386v4.h: Delete file.
3251 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3252 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3253 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3254 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3255 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3256 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3257 * config/i386/i386v4.mt (TM_FILE): Likewise.
3258 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3260 2002-10-10 Marko Mlinar <markom@opencores.org>
3262 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3263 accidentially not commited 2002-10-09
3264 * gdbarch.h, gdbarch.c: Re-generate.
3266 2002-10-09 Marko Mlinar <markom@opencores.org>
3268 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3269 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3270 * gdbarch.h, gdbarch.c: Re-generate.
3272 2002-10-08 Petr Sorfa <petrs@caldera.com>
3274 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3276 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3277 so we can work on more than one compilation unit at a time. This
3278 helps prepare GDB to handle inter-CU die references.
3279 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3280 the code to be defined before struct comp_unit_head.
3281 (comp_unit_head): Added new members - offset, cu_head,
3282 begin_die, next and dwarf2_abbrevs.
3283 (dwarf2_abbrevs): Removed single static var; now member of
3284 struct comp_unit_head.
3285 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3287 (psymtab_to_symtab_1): Changed to work with the new
3288 struct comp_unit_head.
3289 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3290 constructs the dwarf2_abbrevs[] inside the cu_header.
3291 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3292 dwarf2_abbrev table to clean up.
3293 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3294 handling of dwarf2_abbrevs inside the cu_header.
3295 (read_partial_die): Now supports the call to the new
3296 dwarf2_lookup_abbrev.
3297 (read_full_die): Now supports the call to the new
3298 dwarf2_lookup_abbrev.
3300 2002-10-06 Christopher Faylor <cgf@redhat.com>
3302 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3303 insure that shell variables, such as "transformed_name" are propagated
3304 to later shell statements in rule.
3306 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3308 * config/i386/nm-i386sco.h: Add protection against
3309 multiple-inclusion. Include "i386/nm-i386v.h".
3310 (REGISTER_U_ADDR): Remove define.
3311 (i386_register_u_addr): Remove prototype.
3313 2002-10-04 Michael Snyder <msnyder@redhat.com>
3315 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3316 before treating it as a single-step event.
3318 2002-10-03 Adam Fedor <fedor@gnu.org>
3320 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3321 (objc_demangle): Remove assignment in if statements, Replace
3323 (add_msglist): Likewise.
3324 (end_msglist): Likewise.
3325 (complare_selectors): Likewise.
3326 (selectors_info): Likewise.
3327 (compare_classes): Likewise.
3328 (classes_info): Likewise.
3329 (print_object_command): Likewise.
3330 (find_objc_msgcall_submethod): Replace PTR with void *.
3331 * objc-lang.h: Remove check for __STDC__.
3333 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3335 * ui-out.h (ui_out_field_fmt_int): New prototype.
3336 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3337 of field width and alignment.
3338 * stack.c (print_frame_info_base): When printing frame level, use
3339 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3342 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3344 * MAINTAINERS: Add self to Write After Approval list.
3346 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3348 * infcmd.c (interrupt_target_command_wrapper): Delete.
3349 (interrupt_target_command): Make non static.
3350 (nofp_registers_info): Make static.
3351 * stack.c (return_command_wrapper): Delete.
3352 (return_command): Make non static.
3354 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3356 * event-top.c (gdb_setup_readline): New function. Code moved from
3357 _initialize_event_loop().
3358 (_initialize_event_loop): Call gdb_setup_readline().
3360 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3362 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3363 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3364 * gdbarch.h, gdbarch.c: Re-generate.
3366 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3369 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3371 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3372 of fill_in_vptr_fieldno.
3374 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3376 * inferior.h (registers_info, stepi_command, nexti_command,
3377 continue_command, interrupt_target_command): Export from infcmd.c.
3378 * frame.h (args_info, selected_frame_level_changed_hook,
3379 return_command): Export from stack.c.
3380 * v850ice.c (stepi_command, nexti_command, continue_command): use
3381 prototypes from inferior.h.
3382 * tracepoint.c (registers_info, args_info, locals_info): Use
3383 prototypes from frame.h and inferior.h.
3384 * Makefile.in (mi-main.o): Add dependency on frame.h.
3386 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3388 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3389 value in register 3 adjusted by ppc_gp0_regnum.
3391 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3393 2002-10-02 Marko Mlinar <markom@opencores.org>
3395 * MAINTAINERS: Add myself to the Write After Approval list.
3397 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3399 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3400 of the section for the N64 ABI, fixed.
3402 * config/mips/tm-irix6.h: Include solib.h.
3404 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3406 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3409 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3411 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3412 and that "mi0" syntax has been removed.
3414 2002-09-30 David Carlton <carlton@math.stanford.edu>
3416 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3417 * ppc-sysv-tdep.c: #include "gdb_string.h".
3418 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3421 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3423 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3424 "vrsave"'s register number.
3426 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3428 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3429 use frame_unwind_signed_register to obtain the PC.
3430 (mips_frame_chain): Handle a generic dummy frame.
3431 (mips_init_extra_frame_info): When a generic dummy frame, don't
3432 re-compute the frame base.
3433 (mips_pop_frame): Handle generic dummy frames.
3434 (mips_gdbarch_init): When generic dummy frames, set
3435 use_generic_dummy_frames, push_dummy_frame to
3436 generic_push_dummy_frame, pc_in_call_dummy to
3437 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3438 generic_save_dummy_frame_tos.
3440 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3442 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3443 against TOP when TOP was explictly set.
3444 (generic_push_dummy_frame): Set TOP to zero.
3446 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3448 * event-loop.c (start_event_loop): Rename variable 'result' to
3449 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3451 2002-09-30 Keith Seitz <keiths@redhat.com>
3453 * gdb-events.sh (selected_thread_changed): New event.
3454 * gdb-events.c: Regenerated.
3455 * gdb-events.h: Regenerated.
3457 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3459 * MAINTAINERS: Add self to Write After Approval list.
3461 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3463 * disasm.c: New file.
3464 * disasm.h: New file.
3465 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3466 (compare_lines): Ditto.
3467 (dump_insns): Ditto.
3468 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3470 (do_assembly_only): Ditto.
3471 (do_disassembly): Renamed to gdb_disassembly and moved to
3472 disasm.c. Sdded uiout argument.
3473 * Makefile.in: Add new files. Reorder SFILES list. Update
3474 dependencies. Include libgdb.a later in the insight executable.
3476 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3478 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3479 bfd/elf64-alpha-fbsd.c.
3481 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3483 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3486 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3488 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3490 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3492 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3493 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3494 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3495 (S_msg_sig_post_reply): Ditto.
3497 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3499 * sh-tdep.c (sh_use_struct_convention): Use definition according
3501 (sh_push_arguments): Store in register with correct endianess.
3502 (sh_default_store_return_value): Ditto.
3503 (sh_gdbarch_init): Set sizeof long double to 8.
3505 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3507 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3508 Fix some whitespace problems.
3510 2002-09-27 David Carlton <carlton@math.stanford.edu>
3512 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3513 (mcore-tdep.o): Ditto.
3514 (ns32k-tdep.o): Ditto.
3515 (ns32knbsd-tdep.o): Ditto.
3517 (vax-tdep.o): Ditto.
3518 * cris-tdep.c: #include "gdb_string.h"
3519 * mcore-tdep.c: Ditto.
3520 * ns32k-tdep.c: Ditto.
3521 * ns32knbsd-tdep.c: Ditto.
3523 * vax-tdep.c: Ditto.
3525 2002-09-27 David Carlton <carlton@math.stanford.edu>
3527 * config/djgpp/fnchange.lst: Add entries for
3528 gdb/testsuite/gdb.c++/m-static files.
3530 2002-09-27 Jim Wilson <wilson@redhat.com>
3532 * MAINTAINERS: Add myself to the Write After Approval list.
3534 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3536 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3539 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3541 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3544 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3546 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3547 (rs6000_struct_return_address): Delete variable.
3548 (rs6000_store_struct_return): Update.
3549 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3550 deprecated_extract_struct_value_address.
3551 (rs6000_frame_align): New function.
3552 (rs6000_gdbarch_init): Set frame_align.
3554 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3556 From Grace Sainsbury <graces@redhat.com>:
3557 * Makefile.in (gdbtk-main.o): New target.
3558 (gdb.o): New target.
3560 (main.o): Update dependencies.
3561 (gdb$(EXEEXT)): Add gdb.o.
3562 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3563 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3564 (SUBDIR_GDBTK_CLEAN): Set.
3565 (install-gdbtk): Install the insight binary.
3566 (uninstall-gdbtk): New target.
3567 (all-gdbtk, clean-gdbtk): New rule.
3568 * top.c (use_windows): Default to zero.
3569 * main.c: Include "main.h".
3571 (struct captured_main_args): Delete.
3572 (gdb_main): New function.
3576 2002-09-25 Andrew Cagney <cagney@redhat.com>
3578 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3579 (frame_map_regnum_to_name): New function.
3580 (frame_map_name_to_regnum): New function.
3581 * frame.h (frame_map_name_to_regnum): Declare.
3582 (frame_map_regnum_to_name): Declare.
3583 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3584 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3585 * parse.c: Do not include "builtin-regs.h".
3586 (target_map_name_to_register): Delete function.
3587 (write_dollar_variable): Use frame_map_name_to_regnum.
3588 * parser-defs.h (target_map_name_to_register): Delete declaration.
3589 * expprint.c: Include "frame.h".
3590 (print_subexp): Use frame_map_regnum_to_name.
3591 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3592 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3594 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3596 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3597 wasn't saved, and the next innermost frame is a dummy, return the
3598 dummy frame's link register.
3600 2002-09-24 Jim Blandy <jimb@redhat.com>
3602 Fix from Paul Breed:
3603 * main.c (captured_main): Add a `break' after the case for 'b'.
3605 2002-09-24 Keith Seitz <keiths@redhat.com>
3607 * varobj.c (c_type_of_child): Use get_target_type instead
3608 of TYPE_TARGET_TYPE.
3610 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3612 * source.c (get_current_or_default_source_symtab_and_line): Remove
3614 (set_default_source_symtab_and_line): New function. Attempts to
3615 determine a source file to list lines from if one is not currently
3617 (get_current_source_symtab_and_line): Initialize sal.pc and
3619 (set_current_source_symtab_and_line): Mark argument as const.
3620 * source.h: Update declarations and comments.
3621 * linespec.c (decode_line_1): Replace call to removed routine above.
3622 * stack.c (print_frame_info_base): Ditto.
3623 * cli/cli-cmds.c (edit_command): Ditto.
3624 (list_command): Ditto.
3626 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3628 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3629 sal.pc and sal.end fields.
3630 (get_current_or_default_source_symtab_and_line): Ditto.
3631 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3632 so we do not cause a new source symtab to be searched for (reverting an
3633 unintentional change from the 2002-09-20 patch).
3634 * scm-lang.c (scm_unpac): Ditto.
3636 2002-09-21 Andrew Cagney <cagney@redhat.com>
3638 * complaints.c (symfile_explanations): Remove new-line from
3639 ``isolated_message''.
3640 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3641 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3643 2002-09-20 Nick Clifton <nickc@redhat.com>
3645 * NEWS: Announce that V850EA ISA is no longer supported.
3646 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3648 2002-09-20 David Carlton <carlton@math.stanford.edu>
3650 * Makefile.in (c-lang.o): Correct dependencies.
3651 (utils.o): Gather dependencies.
3653 * c-lang.c: #include "gdb_string.h"
3655 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3657 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3658 * cli/cli-cmds.c (list_command): New function. Implements the new
3660 (_init_cli_cmds): Add new command definition.
3661 * gdb.1: Document edit command.
3662 * doc/gdb.texinfo: Document edit command.
3664 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3666 * source.c: Make global variables current_source_symtab and
3667 current_source_line static.
3668 (list_command): Moved to cli/cli-cmds.c.
3669 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3670 (get_first_line_listed): New accessor function.
3671 (get_lines_to_list): New accessor function.
3672 (get_current_source_symtab_and_line): New function. Retrieves the
3673 position in the source code that we consider current.
3674 (get_current_or_default_source_symtab_and_line): New function.
3675 Like the above but attempts to determine a default position if one
3676 is not currently defined.
3677 (set_current_source_symtab_and_line): New function. Sets the source
3678 code position considered current and returns the previously set one.
3679 (clear_current_source_symtab_and_line): Reset stored information about
3680 a current source line.
3681 (_initialize_source): Remove registration for the "list" command and
3683 * source.h: Add declarations for the new functions above.
3684 * symtab.h: Remove declarations for the global variables mentioned
3686 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3687 obtain current source line.
3688 * linespec.c (decode_line_1): Ditto.
3689 * macroscope.c (default_macro_scope): Ditto.
3690 * scm-lang.c (scm_unpac): Ditto.
3691 * stack.c (print_frame_info_base): Ditto.
3692 * symfile.c (clear_symtab_users): Ditto.
3693 * symtab.c (decode_line_spec): Ditto.
3694 * cli/cli-cmds.c (list_command): Moved here from source.c.
3695 (ambiguous_line_spec): Moved here from source.c.
3696 (_init_cli_cmds): Add definition for "list" and its alias.
3697 * Makefile.in: Update dependencies.
3699 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3701 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3702 with what gcc thinks is correct.
3704 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3706 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3707 multiple register push instruction.
3709 2002-09-19 Jim Blandy <jimb@redhat.com>
3711 Add support for distinct host and target character sets.
3712 * charset.c, charset.h: New files.
3713 * c-exp.y: #include "charset.h".
3714 (yylex): Convert character and string literals to the target
3715 character set, before returning them as the semantic value of the
3717 * c-lang.c: #include "charset.h".
3718 (c_emit_char): Use charset-specific methods to recognize
3719 characters with backslash escape forms, to decide which characters
3720 to print literally and which to print using numeric escape
3721 sequences, and to convert target characters to host characters
3723 * utils.c: #include "charset.h".
3724 (no_control_char_error): New function.
3725 (parse_escape): Use charset-specific methods to recognize
3726 backslash escapes, parse `control character' notation, and convert
3727 characters from the host character set to the target character set.
3728 * configure.in: Set the default host character set.
3729 Check where to find iconv, and what its argument types might be.
3730 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3731 * Makefile.in (SFILES): List charset.c.
3732 (COMMON_OBS): List charset.o.
3733 (charset.o): New rule.
3734 (charset_h): New header dependency variable.
3735 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3736 (LIBICONV): New variable, set by configure.
3737 (CLIBS): Include $(LIBICONV) here.
3738 * aclocal.m4, config.in, configure: Regenerated.
3740 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3742 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3745 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3747 * gdb_mbuild.sh: New file.
3749 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3751 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3753 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3755 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3756 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3757 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3758 valops.c, value.h: Revert previous change.
3760 2002-09-18 Michael Snyder <msnyder@redhat.com>
3762 Preliminary support for Objective-C:
3763 * defs.h (language_objc): New enum value.
3764 (puts_filtered_tabular): Declaration only, exported from utils.c.
3765 (skip_quoted): Delete, declared in completer.h.
3766 * c-exp.y: Include completer.h.
3769 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3770 New operator enum values.
3771 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3772 * language.c (binop_result_type): Handle language_objc case.
3773 (integral_type, character_type, string_type, boolean_type,
3774 structured_type, binop_type_check): Ditto.
3775 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3776 (struct objc_specific): Add to general_symbol_info.
3777 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3778 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3779 * parser-defs.h (struct objc_class_str): New struct type.
3780 (start_msglist, end_msglist, add_msglist): Declaration only,
3781 exported from objc-lang.c.
3782 * value.h (value_of_local, value_nsstring,
3783 call_function_by_hand_expecting_type): Exported from valops.c.
3784 * valops.c (find_function_addr): Export.
3785 (call_function_by_hand_expecting_type): New function.
3786 (value_of_local): New function.
3787 * symfile.c (init_filename_language_table): Add ".m" extension
3789 * utils.c (puts_filtered_tabular): New function.
3790 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3791 (set/show demangle): Extend help-string to refer to ObjC.
3792 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3793 * stabsread.c (symbol_reference_defined): Objective-C symbols
3794 may contain colons: make allowances when scanning stabs strings
3796 (objc_find_colon): New function.
3797 * printcmd.c (address_info): If language == objc then print
3798 "self" instead of "this".
3799 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3800 OP_NSSTRING, and OP_SELF.
3801 (prefixify_subexp): Ditto.
3802 * source.c (print_source_lines): Mention objc in comment.
3803 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3806 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3808 * complaints.h: Update copyright.
3809 (struct complaints): Declare.
3810 (struct complaint): Make `message' constant.
3811 (internal_complaint): Declare.
3812 (complaint): Declare.
3813 (complaint_root): Delete declaration.
3814 (symfile_complaints): Delete declaration.
3815 (struct complaints): Add opaque declaration.
3816 (clear_complaints): Add a complaints parameter.
3817 * complaints.c: Update copyright.
3818 (enum complaint_series): Define.
3819 (complaint_root): Delete.
3820 (struct complaints): Define.
3821 (complaint_sentinel, symfile_complaint_book): New variables.
3822 (symfile_explanations, symfile_complaints): New variables.
3824 (get_complaints): New function.
3825 (vcomplaint): New function.
3826 (complaint): New function.
3827 (internal_complaint): New function.
3828 (complain): Call vcomplain with symfile_complaint.
3829 (clear_complaints): Rewrite.
3830 (_initialize_complaints): Use add_setshow_command.
3831 * Makefile.in (complaints.o): Update dependencies.
3832 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3833 to call to clear_complaints.
3834 (new_symfile_objfile, reread_symbols): Ditto.
3835 (oldsyms_complaint): Delete.
3836 (empty_symtab_complaint, unknown_option_complaint): Delete.
3837 (free_named_symtabs): Use complaint instead of complain.
3839 2002-09-18 Michael Snyder <msnyder@redhat.com>
3841 Contributed by Apple Computer, Inc. Merged with current sources
3842 by Adam Fedor <fedor@doc.com> [cagney].
3844 * objc-lang.c: First clean-up round: comments, indentation.
3845 * objc-lang.h: Ditto.
3846 * objc-lang.y: Ditto.
3848 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3850 * maint.c (maintenance_internal_error): Print the parameter as the
3852 (maintenance_internal_warning): New function.
3853 (_initialize_maint_cmds): Add command `maint internal-warning'.
3855 * defs.h (internal_warning, internal_vwarning): Declare.
3856 * utils.c (struct internal_problem): Define.
3857 (internal_vproblem): New function.
3858 (internal_warning): New function.
3859 (internal_vwarning): New function.
3860 (internal_warning_problem, internal_error_problem): New variables.
3861 (internal_verror): Just call internal_vproblem.
3863 2002-09-18 Michael Snyder <msnyder@redhat.com>
3865 * objc-lang.c: New file, support for Objective-C.
3866 Preliminary check-in, not yet integrated into gdb.
3867 * objc-lang.h: New file.
3868 * objc-exp.y: New file.
3870 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3872 * infrun.c (signal_stop_update): Convert definition to ISO C.
3873 (signal_print_update): Ditto.
3874 (signal_pass_update): Ditto.
3875 * inflow.c (terminal_save_ours): Ditto.
3877 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3880 * config/djgpp/fnchange.lst: Handle name clashes between
3881 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3884 * i386-linux-tdep.h: Fix tipo.
3886 2002-09-18 Adam Fedor <fedor@gnu.org>
3888 * MAINTAINERS: Add myself to the Write After Approval list.
3890 2002-09-18 Jim Blandy <jimb@redhat.com>
3892 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3893 texthigh and textlow to reader-specific structs caused
3894 objfile_relocate to miss them. This is fixable, but the work that
3895 the change was supposed to prepare GDB for never got done anyway.
3897 2002-09-18 David Carlton <carlton@math.stanford.edu>
3899 * MAINTAINERS: Alphabetize Write After Approval list.
3901 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3904 * values.c (value_static_field): Call read_var_value.
3906 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3908 * valops.c (hand_function_call): Align the initial stack pointer
3909 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3910 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3912 * mips-tdep.c (mips_frame_align): New function.
3913 (mips_gdbarch_init): Set frame_align.
3914 * gdbarch.sh (FRAME_ALIGN): New method.
3915 * gdbarch.h, gdbarch.c: Re-generate.
3917 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3919 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3922 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3924 * NEWS: Mention that MIPS $fp behavior changed.
3925 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3926 reference to FP_REGNUM.
3927 (mipsnbsd_cannot_store_register): Ditto.
3928 * mips-linux-nat.c: Update copyright.
3929 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3930 (mips_linux_cannot_store_register): Ditto.
3931 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3932 * config/mips/tm-mips.h: Update copyright.
3933 (FP_REGNUM): Delete macro.
3934 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3935 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3936 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3937 (mips_r3041_reg_names, mips_r3051_reg_names)
3938 (mips_r3081_reg_names): Replace "fp" with "".
3941 2002-09-17 Theodore A. Roth <troth@verinet.com>
3943 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3944 generic_read_register_dummy() (PR gdb/703).
3945 (avr_push_return_address): #if 0 out unused vars.
3946 (avr_gdbarch_init): Enable use of avr_push_return_address().
3948 2002-09-17 Michael Snyder <msnyder@redhat.com>
3950 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3951 RTE will take care of it.
3953 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3955 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3956 invalid, return SP_REGNUM.
3958 2002-09-17 Michael Snyder <msnyder@redhat.com>
3960 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3961 point registers without sign extension.
3963 2002-09-17 Andrew Cagney <cagney@redhat.com>
3965 * blockframe.c (deprecated_read_register_dummy): Rename
3966 generic_read_register_dummy.
3967 * frame.c (frame_unwind_signed_register): New function.
3968 (frame_unwind_unsigned_register): New function.
3969 * frame.h (frame_unwind_signed_register): Declare.
3970 (frame_unwind_unsigned_register): Declare.
3971 (deprecated_read_register_dummy): Rename
3972 generic_read_register_dummy.
3974 * h8300-tdep.c (h8300_frame_chain): Update.
3975 (h8300_frame_saved_pc): Update.
3976 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3977 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3978 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3979 (s390_frame_chain): Update.
3980 * v850-tdep.c (v850_find_callers_reg): Update.
3981 (v850_frame_saved_pc): Update.
3982 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3983 (m32r_find_callers_reg): Update.
3984 (m32r_frame_saved_pc): Update.
3985 * sh-tdep.c (sh_find_callers_reg): Update.
3986 (sh64_get_saved_pr): Update.
3987 (sh_init_extra_frame_info): Update.
3988 (sh_init_extra_frame_info): Update.
3989 (sh64_init_extra_frame_info): Update.
3990 (sh64_init_extra_frame_info): Update.
3991 * mcore-tdep.c (mcore_find_callers_reg): Update.
3992 (mcore_frame_saved_pc): Update.
3993 (mcore_init_extra_frame_info): Update.
3994 * i386-tdep.c (i386_frame_saved_pc): Update.
3995 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3996 (ia64_init_extra_frame_info): Update.
3997 (ia64_init_extra_frame_info): Update.
3998 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3999 * cris-tdep.c (cris_init_extra_frame_info): Update.
4000 * avr-tdep.c (avr_frame_chain): Update.
4001 (avr_init_extra_frame_info): Update.
4002 (avr_frame_saved_pc): Update.
4003 * arm-tdep.c (arm_find_callers_reg): Update.
4004 (arm_init_extra_frame_info): Update.
4005 (arm_frame_saved_pc): Update.
4007 2002-09-17 Tom Tromey <tromey@redhat.com>
4009 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4012 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4014 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4015 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4017 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4020 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4022 * osfsolib.c: Remove file, replaced by solib-osf.c.
4023 * Makefile.in: Remove compilation rules for osfsolib.c.
4025 2002-09-16 David Carlton <carlton@math.stanford.edu>
4027 * cp-valprint.c (cp_print_class_method): Correct args to
4028 check_stub_method_group.
4030 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4032 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4033 `set architecture'. Unify naming convention of functions.
4034 (h8300_skip_prologue): Improve prologue analysis.
4035 (h8300_push_arguments): Rewritten to more closely match GCC's
4036 bizarre argument-passing behavior, along with the comment describing
4038 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4039 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4040 sim, remote-e7000.c, remote-hms.c and remote.c
4042 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4044 * i386-tdep.c (gdb_print_insn_i386): Removed.
4045 (i386_print_insn): New function.
4046 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4047 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4050 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4052 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4055 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4057 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4058 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4059 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4061 2002-09-13 Christopher Faylor <cgf@redhat.com>
4063 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4065 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4067 * gdbtypes.c (check_stub_method): Make static.
4068 (check_stub_method_group): New function.
4069 * gdbtypes.h: Update prototypes.
4070 * cp-support.c: New file.
4071 * cp-support.h: New file.
4073 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4074 (update_method_name_from_physname): New function.
4075 (read_member_functions): Correct method names for operators
4076 and v3 constructors/destructors. Separate v2 constructors and
4078 * Makefile.in (stabsread.o): Update dependencies.
4079 (SFILES): Add cp-support.c.
4080 (COMMON_OBS): Add cp-support.o.
4081 (cp_support_h, cp-support.o): Add.
4083 * cp-valprint.c (cp_print_class_method): Call
4084 check_stub_method_group instead of check_stub_method. Remove
4086 * p-valprint.c (pascal_object_print_class_method): Likewise.
4087 * valops.c (search_struct_method): Likewise.
4088 (find_method_list, value_struct_elt_for_reference): Likewise.
4090 2002-09-13 Andrew Cagney <cagney@redhat.com>
4092 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4093 * gdbarch.h, gdbarch.c: Regenerate.
4095 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4097 * frame.c (find_saved_register): Delete function.
4098 * frame.h (find_saved_register): Delete declaration.
4101 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4103 * mips-tdep.c (read_next_frame_reg): Re-hack using
4104 frame_register_unwind.
4106 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4108 * mips-tdep.c (mips_get_saved_register): Re-hack using
4109 frame_register_unwind.
4111 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4113 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4114 vector. Will be useful for Interix.
4115 * gdbarch.h, gdbarch.c: Regenerate.
4117 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4118 name of the malloc function by NAME_OF_MALLOC.
4120 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4122 * value.h (find_function_in_inferior): Add const keyword to
4123 one of the parameters. Allows us to invoke this function with
4125 * valops.c (find_function_in_inferior): Likewise.
4127 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4129 * exec.c (xfer_memory): Fix compilation warning with old versions
4131 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4133 2002-09-12 David Carlton <carlton@math.stanford.edu>
4135 * symtab.h: Run through gdb_indent.h.
4136 Add 2002 to Copyright year list.
4138 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4140 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4142 * MAINTAINERS: Add myself to write after approval list.
4144 2002-09-11 J. Brobecker <brobecker@gnat.com>
4146 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4148 2002-09-11 J. Brobecker <brobecker@gnat.com>
4150 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4153 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4155 * procfs.c (do_detach): Clear current signal, not just fault.
4156 Corrects problem with breakpoint trap signal leaking to detached
4159 2002-09-10 Michael Snyder <msnyder@redhat.com>
4161 * buildsym.c (finish_block): Protect against null pointer.
4163 2002-09-10 Andrew Cagney <cagney@redhat.com>
4165 * infcmd.c (default_print_registers_info): Send all output to
4166 ``file'' instead of ``gdb_stdout''.
4168 2002-09-10 Michael Snyder <msnyder@redhat.com>
4170 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4171 LONGEST, and use signed register read (addresses are sign-
4174 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4176 * event-loop.c (gdb_do_one_event): Make public.
4177 * event-loop.h (gdb_do_one_event): Declare.
4179 2002-09-10 Jeff Law <law@redhat.com>
4181 * infttrace.c (child_resume): Simplify and rework to avoid
4184 2002-09-09 Fred Fish <fnf@intrinsity.com>
4186 * printcmd.c (print_scalar_formatted): "len" is the number of
4187 target bytes, NOT the number of target bits.
4189 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4191 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4192 * top.c (init_main): Set rl_terminal_name.
4194 2002-09-08 Aidan Skinner <aidan@velvet.net>
4196 * ada-lang.c (ada_array_bound, ada_type_match,
4197 _initialize_ada_language): Fix K&R definitions.
4198 * ada-tasks.c (get_current_task): Fix K&R definitions.
4199 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4201 2002-09-07 Christopher Faylor <cgf@redhat.com>
4203 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4206 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4208 * i386-tdep.c (i386_register_virtual_type,
4209 i386_register_convertible, i386_register_convert_to_virtual,
4210 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4211 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4212 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4213 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4214 Don't set push_arguments twice.
4216 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4217 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4218 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4219 sigtramp_end to NULL.
4220 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4222 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4224 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4227 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4228 * gdbarch.h, gdbarch.c: Re-generate.
4229 * blockframe.c (find_pc_sect_partial_function): Convert to use
4230 SIGTRAMP_START_P predicate.
4232 2002-09-05 Michael Snyder <msnyder@redhat.com>
4234 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4235 generic_dummy_frame method and old method. Also distinguish
4236 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4237 (arm_extract_return_value): Use new regcache method.
4239 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4240 adjustment that doesn't conform to the ABI.
4241 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4242 saved regcache, not from current regcache.
4244 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4246 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4249 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4251 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4252 if arm_apcs_32 is false.
4254 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4256 GDB 5.3 branch created.
4258 2002-09-03 Theodore A. Roth <troth@verinet.com>
4260 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4261 generic_unwind_get_saved_register.
4263 2002-09-03 David Carlton <carlton@math.stanford.edu>
4265 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4266 argument (PR gdb/653). Update call to smash_to_method_type.
4267 (read_structure_scope): Update call to dwarf2_add_member_fn.
4269 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4271 * x86-64-linux-tdep.c: Include gdb_string.h
4272 * x86-64-linux-nat.c: Ditto.
4274 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4276 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4277 when YYDEBUG is set to 1.
4278 * c-exp.y: Likewise.
4279 * f-exp.y: Likewise.
4280 * jv-exp.y: Likewise.
4281 * m2-exp.y: Likewise.
4282 * p-exp.y: Likewise.
4284 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4286 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4288 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4289 solib_svr4_fetch_link_map_offsets to
4290 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4291 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4292 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4293 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4294 solib-svr4.o, and solib-legacy.o.
4295 * config/i386/tm-nbsd.h: Include solib.h.
4297 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4299 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4300 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4301 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4302 comment noting that this needs its own target configuration.
4303 * config/i386/nbsd.mt: New file.
4304 * config/i386/nbsdaout.mt: Remove.
4305 * config/i386/nbsdelf.mt: Ditto.
4306 * config/i386/tm-nbsdaout.h: Ditto.
4308 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4310 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4311 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4312 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4314 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4315 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4316 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4318 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4320 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4321 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4322 * i386-tdep.h (i386bsd_init_abi): New prototype.
4323 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4324 function declaration.
4325 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4326 for NetBSD-a.out or NetBSD-ELF.
4327 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4328 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4329 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4330 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4332 (i386nbsd_pc_in_sigtramp): New function.
4333 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4334 i386nbsd_pc_in_sigtramp.
4335 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4336 and i386nbsdelf_init_abi OS ABI handlers.
4337 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4338 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4340 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4342 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4343 registers if the target really has them.
4345 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4347 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4350 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4352 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4354 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4355 (alphanbsd_skip_sigtramp_frame): New functions.
4356 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4357 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4358 to alphanbsd_sigcontext_addr.
4360 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4362 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4364 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4365 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4366 nbsd_pc_in_sigtramp.
4367 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4368 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4369 * nbsd-tdep.c: Include gdb_string.h.
4370 (nbsd_pc_in_sigtramp): New function.
4371 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4372 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4373 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4374 ppcnbsd_pc_in_sigtramp.
4375 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4376 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4377 shnbsd_pc_in_sigtramp.
4378 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4379 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4380 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4382 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4384 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4385 watchpoints to NULL.
4386 (insert_breakpoints): set val field of watchpoints if NULL.
4389 2002-08-29 Jim Blandy <jimb@redhat.com>
4391 * symtab.c (lookup_symbol_aux): In the cases where we find a
4392 minimal symbol of an appropriate name and use its address to
4393 select a symtab to read and search, use `name' (as passed to us)
4394 as the demangled name when searching the symtab's global and
4395 static blocks, not the minsym's name.
4397 2002-08-29 Keith Seitz <keiths@redhat.com>
4399 * stack.c (print_frame_info_base): Always set current_source_symtab
4400 and current_source_line.
4402 2002-08-29 Donn Terry <donnte@microsoft.com>
4404 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4406 2002-08-28 Keith Seitz <keiths@redhat.com>
4408 * stack.c (select_frame): Add FIXME concerning selected-frame
4410 (select_frame_command): Send selected-frame-level-changed
4411 event notification, but only if the level actually changed.
4412 (up_silently_base): Add selected-frame-level-changed event
4414 (down_silently_base): Likewise.
4416 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4418 * Makefile.in: Update dependencies for all gdb/*.c files.
4420 2002-08-27 Tom Tromey <tromey@redhat.com>
4422 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4423 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4424 Update dependencies.
4425 * i387-tdep.c: Include gdb_string.h.
4426 * osabi.c: Likewise.
4427 * i386-linux-nat.c: Likewise.
4428 * lin-lwp.c: Likewise.
4429 * ax-gdb.c: Likewise.
4430 * signals/signals.c: Likewise.
4431 * jv-valprint.c: Likewise.
4432 * p-lang.c: Likewise.
4433 * c-valprint.c: Likewise.
4434 * cp-abi.c: Likewise.
4436 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4438 * cli/cli-script.h (copy_command_lines): Export.
4439 * breakpoint.c: Include cli/cli-script.h.
4440 * Makefile.in (breakpoint.o): Update dependencies.
4442 2002-08-26 Michael Snyder <msnyder@redhat.com>
4444 * breakpoint.c (insert_breakpoints): Protect all references
4445 to 'process_warning'. Shorten long lines.
4447 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4449 * cli/cli-script.c (copy_command_lines): New function.
4450 * defs.h (copy_command_lines): Export.
4451 * testsuite/gdb.base/commands.exp: New tests for commands
4452 attached to a temporary breakpoint, and for commands that
4453 delete the breakpoint they are attached to.
4455 2002-08-26 Michael Snyder <msnyder@redhat.com>
4457 * breakpoint.c (bpstat_stop_status): Instead of copying the
4458 pointer to the breakpoint commands struct, make a new copy
4459 of the struct and point to that.
4460 (bpstat_clear): Free the commands struct.
4461 (bpstat_clear_actions): Free the commands struct.
4462 (bpstat_do_actions): Free the command actions. Also execute
4463 the local cleanups, instead of deleting them.
4464 (delete_breakpoint): Leave the commands field of the bpstat
4465 chain alone -- it will be freed later.
4467 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4469 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4470 deleted in 2002-08-20 commit. This function is still used by
4473 2002-08-26 Keith Seitz <keiths@redhat.com>
4475 * gdb-events.sh: Add selected-frame-level-changed event.
4476 * gdb-events.c: Regenerated.
4477 * gdb-events.h: Regenerated.
4479 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4482 * inflow.c (terminal_save_ours): New function to save terminal
4484 * inferior.h (terminal_save_ours): Declare.
4485 * target.c (debug_to_terminal_save_ours): New function.
4486 (cleanup_target): Defaults to_terminal_save_ours.
4487 (update_current_target): Inherit to_terminal_save_ours.
4488 (setup_target_debug): Set to_terminal_save_ours.
4489 * target.h (target_terminal_save_ours): New to save terminal settings.
4490 (target_ops): New member to_terminal_save_ours.
4491 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4492 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4493 * inftarg.c (init_child_ops): Likewise.
4494 * m3-nat.c (init_m3_ops): Likewise.
4495 * procfs.c (init_procfs_ops): Likewise.
4496 * wince.c (init_child_ops): Likewise.
4497 * win32-nat.c (init_child_ops): Likewise.
4498 * sol-thread.c (init_sol_thread_ops): Likewise.
4500 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4502 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4503 use regcache_* functions.
4504 (i386_gdbarch_init): Set store_return_value instead of
4505 deprecated_store_return_value.
4507 * regcache.c (regcache_raw_write_signed,
4508 regcache_raw_write_unsigned): New functions.
4509 * regcache.h (regcache_raw_write_signed,
4510 regcache_raw_write_unsigned): New prototypes.
4512 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4514 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4515 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4516 source file dependencies. Cleanup corresponding generator rules.
4518 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4520 * regcache.h (register_offset_hack): Declare.
4521 (regcache_cooked_read_using_offset_hack): Declare.
4522 (regcache_cooked_write_using_offset_hack): Declare.
4524 * regcache.c (register_offset_hack): New function.
4525 (regcache_cooked_read_using_offset_hack): New function.
4526 (regcache_cooked_write_using_offset_hack): New function.
4527 (regcache_dump): Check that the registers, according to their
4528 offset, are packed hard against each other.
4529 (cooked_xfer_using_offset_hack): New function.
4531 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4533 * regcache.c (struct regcache_descr): Add field register_type.
4534 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4536 (init_regcache_descr): Initialize register_type. Pass the descr
4537 to init_legacy_regcache_descr. Use register_type instead of
4538 REGISTER_VIRTUAL_TYPE.
4539 (register_type): New function.
4540 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4541 * regcache.h (register_type): Declare.
4543 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4545 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4546 instead of deprecated_store_return_value. Fix fallout from
4547 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4549 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4551 * regcache.c (max_register_size): New function.
4552 (init_legacy_regcache_descr): Ensure that max_register_size is
4553 large enough for REGISTER_VIRTUAL_SIZE.
4554 * regcache.h (max_register_size): Declare.
4556 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4558 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4560 (e500_extract_return_value): Change type of valbuf pointer to
4563 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4565 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4568 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4569 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4570 long long) to prevent compiler warning on 64-bit systems.
4572 2002-08-23 Andrew Cagney <cagney@redhat.com>
4574 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4575 (DEPRECATED_STORE_RETURN_VALUE): New method.
4576 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4577 * gdbarch.h, gdbarch.c: Re-generate.
4579 * values.c (set_return_value): Pass current_regcache to
4581 * arch-utils.h (legacy_store_return_value): Declare.
4582 * arch-utils.c (legacy_store_return_value): New function.
4583 (legacy_extract_return_value): Update parameters.
4585 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4587 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4588 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4589 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4590 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4591 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4592 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4593 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4594 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4595 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4596 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4599 * i386-tdep.c (i386_extract_return_value): Update.
4600 * arch-utils.c (legacy_extract_return_value): Update.
4601 * frv-tdep.c (frv_gdbarch_init): Update.
4602 * cris-tdep.c (cris_gdbarch_init): Update.
4603 * d10v-tdep.c (d10v_gdbarch_init): Update.
4604 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4605 * m68k-tdep.c (m68k_gdbarch_init): Update.
4606 * mcore-tdep.c (mcore_gdbarch_init): Update.
4607 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4608 * s390-tdep.c (s390_gdbarch_init): Update.
4609 * sparc-tdep.c (sparc_gdbarch_init): Update.
4610 * sh-tdep.c (sh_gdbarch_init): Update.
4611 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4612 * v850-tdep.c (v850_gdbarch_init): Update.
4613 * avr-tdep.c (avr_gdbarch_init): Update.
4614 * ia64-tdep.c (ia64_gdbarch_init): Update.
4615 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4616 * vax-tdep.c (vax_gdbarch_init): Update.
4617 * alpha-tdep.c (alpha_gdbarch_init): Update.
4618 * arm-tdep.c (arm_gdbarch_init): Update.
4619 * mips-tdep.c (mips_gdbarch_init): Update.
4620 * i386-tdep.c (i386_gdbarch_init): Update.
4622 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4624 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4625 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4627 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4629 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4632 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4634 * infrun.c (handle_inferior_event): Move a comment outside of a
4635 function call, in order to avoid indent reformatting this part
4636 of the code in an unreadable way.
4638 2002-08-23 Grace Sainsbury <graces@redhat.com>
4640 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4641 when breakpoints fail. Move general breakpoint error messages to
4643 * breakpoint.c (insert_breakpoints): Change warnings when
4644 breakpoints are nto inserted to specify the type. Remove call to
4645 memory_error when hardware breakpoints can't be inserted. Remove
4646 multiple calls to warning so all messages are sent to the user at
4648 (delete_breakpoints): Make insert error messsages more explicit.
4650 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4652 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4653 gdbserver/ChangeLog.
4655 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4657 * i386-tdep.c: Include "objfiles.h".
4658 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4659 skip_trampoline_code.
4660 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4661 (CPLUS_MARKER): Define to '.'.
4663 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4665 (linux_corefile_thread_callback): Increase args->num_notes.
4666 (linux_make_note_section): Initialize thread_args.num_notes, and
4667 use it to determine whether notes for any threads were created.
4669 2002-08-23 Donn Terry <donnte@microsoft.com>
4671 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4672 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4674 (write_with_trace): Conditionalize out the switch branch handling
4675 PCSHOLD if the corresponding macro is not defined. Likewise for
4676 PRSABORT and PRSTOP.
4677 This change will be needed by the Interix port.
4679 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4681 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4682 write_register wherever possible instead of manipulating the
4683 register bytes directly.
4684 Assign VALUE_CONTENTS to a variable and use that.
4685 The GPR numbers are now dependent on the architecture.
4687 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4689 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4691 (skip_prologue): Add support for BookE/e500 instructions.
4692 (e500_extract_return_value): New function.
4693 (frame_get_saved_regs): Add support for saving ev registers and
4695 (e500_store_return_value): New function.
4696 (rs6000_gdbarch_init): Move up default intializations of
4697 deprecated_extract_return_value and store_return_value. Overwrite
4698 init of store_return_value with e500 specific version.
4699 Set extract_return_value for e500.
4701 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4703 * blockframe.c (generic_call_dummy_register_unwind): Use
4704 regcache_cooked_read to catch cases in which the variable is
4705 stored in a pseudo register.
4707 2002-08-22 Andrew Cagney <cagney@redhat.com>
4709 * NEWS: Mention that the i960 has been made obsolete.
4710 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4712 (remote-nrom.o): Obsolete target.
4713 (remote-nindy.o, i960-tdep.o): Ditto.
4714 * remote-nrom.c: Make file obsolete.
4715 * remote-nindy.c, remote-vx960.c: Ditto.
4716 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4717 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4718 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4719 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4720 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4721 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4722 i960-*-vxworks* obsolete.
4723 * MAINTAINERS: Note that the i960 is obsolete.
4725 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4727 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4728 detach to allow reinitialization.
4730 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4732 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4735 2002-08-22 Jim Blandy <jimb@redhat.com>
4737 * coffread.c (coff_symfile_read): Don't try to read the line
4738 number table from disk if the image file doesn't have a symbol
4739 table; we'll never actually look at the info anyway, and Windows
4740 ships DLL's with bogus file offsets for the line number data.
4742 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4744 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4747 2002-08-21 Michael Snyder <msnyder@redhat.com>
4749 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4750 (MSYMBOL_SIZE): Replace macro with function.
4751 (DEFAULT_MIPS_TYPE): Delete unused macro.
4752 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4753 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4755 2002-08-21 Jim Blandy <jimb@redhat.com>
4757 * valops.c (value_cast): Simplify and correct logic for doing a
4758 static cast from a pointer to a base class to a pointer to a
4761 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4763 * infcmd.c (default_print_registers_info): Replace
4765 (registers_info): Use gdbarch_print_registers_info instead of
4767 * inferior.h (default_print_registers_info): Replace
4769 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4770 (DO_REGISTERS_INFO): Change to a predicate function.
4771 * gdbarch.h, gdbarch.c: Regenerate.
4773 2002-08-21 Keith Seitz <keiths@redhat.com>
4775 * gdb-events.sh: Add target-changed event.
4776 * gdb-events.c: Regenerated.
4777 * gdb-events.c: Regenerated.
4778 * valops.c (value_assign): Add target-changed event notification
4779 to inlval_register, lval_memory, and lval_reg_frame_relative.
4781 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4783 * NEWS: Add an entry regarding the improvement of the next/step
4784 operation on Alpha Tru64 multi-processor machines.
4786 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4788 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4790 * Makefile.in: Update all _h macro definitions.
4791 * Makefile.in (install-gdbtk): Move to install section.
4792 (rdi-share/libangsd.a): Move to end of file.
4794 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4796 * frame.c (frame_register_unwind): When a register, set addrp to
4797 the register's byte.
4799 2002-08-20 Michael Snyder <msnyder@redhat.com>
4801 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4802 used locally, so move them from the target machine header to here.
4803 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4804 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4806 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4808 2002-08-20 Andrew Cagney <cagney@redhat.com>
4810 * NEWS: Mention that the Apollo line was made obsolete.
4811 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4812 m68*-hp-hpux* obsolete.
4813 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4814 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4815 * buildsym.c (make_blockvector): Make static.
4816 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4817 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4818 (ALLDEPFILES): Remove dstread.c.
4819 (dstread.o): Obsolete make rule.
4820 * dstread.c: Makefile obsolete.
4822 * config/m68k/hp300hpux.mt: Ditto.
4823 * config/m68k/hp300hpux.mh: Ditto.
4824 * config/m68k/hp300bsd.mt: Ditto.
4825 * config/m68k/hp300bsd.mh: Ditto.
4826 * config/m68k/apollo68b.mt: Ditto.
4827 * config/m68k/apollo68v.mh: Ditto.
4828 * config/m68k/apollo68b.mh: Ditto.
4830 2002-08-20 Michael Snyder <msnyder@redhat.com>
4832 * mips-tdep.c (mips_in_return_stub): Make static.
4833 (mips_gdbarch_init): Set in_solib_return_trampoline.
4834 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4836 2002-08-20 Michael Snyder <msnyder@redhat.com>
4838 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4839 * gdbarch.c, gdbarch.h: Regenerate.
4840 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4842 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4844 2002-08-20 Michael Snyder <msnyder@redhat.com>
4846 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4847 (mips_gdbarch_init): Set skip_trampoline_code,
4848 in_solib_call_trampoline.
4849 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4850 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4852 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4854 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4856 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4857 vector type for ev registers.
4858 (e500_pseudo_register_read): New function.
4859 (e500_pseudo_register_write): New function.
4860 (e500_dwarf2_reg_to_regnum): New function.
4861 (PPC_UISA_NOFP_SPRS): New macro.
4862 (PPC_EV_REGS): New macro.
4863 (PPC_GPRS_PSEUDO_REGS): New macro.
4864 (registers_e500): New register set for e500.
4865 (variants): Add e500 variant.
4866 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4867 before setting architectural dependent variations. Initialize ev
4868 registers numbers. Add case for e500 architecture. Set the
4869 number of pseudo registers.
4871 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4873 * rs6000-tdep.c: Clean up comments.
4875 2002-08-20 Andrew Cagney <cagney@redhat.com>
4877 * h8300-tdep.c: Re-indent file.
4879 2002-08-20 Jim Blandy <jimb@redhat.com>
4881 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4884 2002-08-20 Keith Seitz <keiths@redhat.com>
4886 * breakpoints.c (watch_command_1): Use internal breakpoint
4887 when setting a watchpoint_scope breakpoint.
4889 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4891 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4892 (build_builtin_type_vec64i): Ditto.
4893 (build_builtin_type_vec128): Ditto.
4894 (build_builtin_type_vec128i): Ditto.
4896 2002-08-19 Michael Snyder <msnyder@redhat.com>
4898 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4899 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4900 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4901 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4902 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4903 CALL_DUMMY_ADDRESS): Delete.
4904 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4905 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4906 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4907 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4908 push_return_address.
4909 (mips_register_raw_size, mips_eabi_use_struct_convention,
4910 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4911 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4912 mips_init_extra_frame_info, mips_eabi_push_arguments,
4913 mips_n32n64_push_arguments, mips_push_return_address,
4914 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4915 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4917 2002-08-19 Michael Snyder <msnyder@redhat.com>
4919 * mips-tdep.c (mips_frame_num_args): New function.
4920 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4921 frame_saved_pc, frame_args_address, frame_locals_address,
4922 frame_num_args, and frame_args_skip.
4923 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4924 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4925 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4926 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4928 2002-08-20 Michael Snyder <msnyder@redhat.com>
4930 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4931 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4932 * mips-tdep.c (mips_store_struct_return): New function.
4933 (mips_extract_struct_value_address): New function.
4934 (mips_gdbarch_init): Set store_struct_return and
4935 extract_struct_value_address.
4937 2002-08-20 David Carlton <carlton@math.stanford.edu>
4939 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4940 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4941 (read_file_scope): Check that line_header is nonzero before
4942 decoding macro information.
4944 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4946 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4947 flag the general-purpose registers as floating-point on targets
4948 that don't support the floating-point registers.
4950 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4952 * rs6000-tdep.c (altivec_register_p): Delete.
4953 (rs6000_do_altivec_registers): Delete.
4954 (rs6000_altivec_registers_info): Delete.
4955 (rs6000_do_registers_info): Delete.
4956 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4957 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4959 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4961 * infcmd.c (do_registers_info): Print vector registers in hex
4963 (print_vector_info): Check that printing registers
4965 (print_float_info): Ditto.
4967 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4969 * mips-tdep.c (mips_gdbarch_init): Update.
4970 (mips_o32_extract_return_value): Rewrite.
4971 (mips_o32_store_return_value): Rewrite.
4972 (mips_o32_xfer_return_value): New function.
4973 (mips_xfer_register): Tweak debug print message. Allow for
4974 buf_offset when dumping the value transfered.
4976 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4978 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4979 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4980 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4981 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4982 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4984 2002-08-14 Michael Snyder <msnyder@redhat.com>
4986 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4988 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4990 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4992 (P): New macro to define a register as a pseudo register.
4993 (R, R4, R8, R16, FR32, R64, R0): Updated.
4994 (struct variant): Add new fields for number of pseudo registers
4995 and number of total registers.
4996 (tot_num_registers): New macro replacing....
4997 (num_registers): ...deleted macro.
4998 (num_registers): New function.
4999 (num_pseudo_registers): New function.
5000 (variants): Update all variants to intialize new fields correctly.
5001 Postpone initialization of number of pseudo regs and real regs.
5002 (init_variants): New function.
5003 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5006 2002-08-19 David Carlton <carlton@math.stanford.edu>
5008 * valops.c (search_struct_field): Change error message to treat
5009 return value of 0 from value_static_field as meaning that field is
5011 (value_struct_elt_for_reference): Ditto.
5012 * values.c (value_static_field): Treat an unresolved location the
5013 same as a nonexistent symbol. Fix PR gdb/635.
5014 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5015 enclosed. Fix PR gdb/574.
5016 * MAINTAINERS: Add self to Write After Approval list.
5018 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5020 * mips-tdep.c (mips_xfer_register): New function.
5021 (mips_n32n64_extract_return_value): Rewrite.
5022 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5023 instead of deprecated_extract_return_value.
5025 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5027 * rs6000-tdep.c (TDEP): Delete macro.
5028 (branch_dest): Replace use of TDEP macro with its body.
5029 (rs6000_pop_frame): Ditto.
5030 (rs6000_push_arguments): Ditto.
5031 (rs6000_skip_trampoline_code): Ditto.
5032 (rs6000_frame_saved_pc): Ditto.
5033 (rs6000_frame_chain): Ditto.
5034 (rs6000_register_name): Ditto.
5035 (rs6000_register_byte): Ditto.
5036 (rs6000_register_raw_size): Ditto.
5037 (rs6000_register_virtual_type): Ditto.
5038 (rs6000_register_convertible): Ditto.
5039 (rs6000_convert_from_func_ptr_addr): Ditto.
5041 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5043 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5045 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5046 MIPS_LINUX_JB_ELEMENT_SIZE.
5047 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5048 for MAX_REGISTER_RAW_SIZE arrays.
5049 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5050 MIPS_LINUX_JB_ELEMENT_SIZE.
5052 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5054 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5056 2002-08-19 Aidan Skinner <aidan@velvet.net>
5058 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5059 ada-valprint.c ada-tasks.c.
5060 (YYFILES): Add ada-exp.y.
5061 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5062 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5063 (ada-exp.tab.o): New target.
5065 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5067 * regcache.c (regcache_xfer_part): New function.
5068 (regcache_raw_read_part): New function.
5069 (regcache_raw_write_part): New function.
5070 (regcache_cooked_read_part): New function.
5071 (regcache_cooked_write_part): New function.
5072 * regcache.h (regcache_raw_read_part): Declare.
5073 (regcache_raw_write_part): Declare.
5074 (regcache_cooked_read_part): Declare.
5075 (regcache_cooked_write_part): Declare.
5077 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5079 * remote.c (remote_open_1): Add async_p.
5080 (remote_async_open_1): Delete.
5081 (open_remote_target): Delete.
5082 (remote_open, extended_remote_open): Update calls to remote_open_1.
5083 (remote_async_open, extended_remote_async_open): Call
5084 remote_open_1 instead of remote_async_open_1.
5086 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5088 * blockframe.c: Fix a few coding standard violations.
5090 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5092 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5094 * config/i386/tm-i386sco5.h: ... here. File removed.
5095 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5097 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5098 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5099 (TM_FILE): Set to tm-i386.h.
5100 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5101 * config/i386/tm-i386v.h: Remove file.
5102 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5103 instead of "i386/tm-i386v.h".
5104 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5105 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5107 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5108 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5111 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5113 * config/i386/nm-i386v.h: Add protection against
5115 (i386_register_u_addr): Remove prototype.
5116 (register_u_addr): New prototype.
5117 (REGISTER_U_ADDR): Redefine accordingly.
5118 * i386v-nat.c: Improve several comments.
5119 (i386_register_u_addr): Change signature and rename to
5120 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5123 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5125 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5126 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5127 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5128 deprecated_extract_return_value.
5129 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5130 rename mips_o32o64_push_arguments.
5131 (mips_gdbarch_init): Update.
5132 (mips_extract_return_value): Delete.
5133 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5134 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5135 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5136 (mips_n32n64_extract_return_value): Clone
5137 mips_extract_return_value.
5138 (mips_store_return_value): Delete.
5139 (mips_o32_store_return_value): Clone mips_store_return_value.
5140 (mips_o64_store_return_value): Clone mips_store_return_value.
5141 (mips_eabi_store_return_value): Clone mips_store_return_value.
5142 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5144 2002-08-18 Aidan Skinner <aidan@velvet.net>
5146 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5147 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5149 2002-08-18 Aidan Skinner <aidan@velvet.net>
5151 * ada-lang.c: Run through gdb_indent.sh.
5152 * ada-lang.h: Run through gdb_indent.sh.
5153 * ada-tasks.c: Run through gdb_indent.sh.
5154 * ada-typeprint.c: Run through gdb_indent.sh.
5155 * ada-valprint.c: Run through gdb_indent.sh.
5157 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5159 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5162 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5164 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5166 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5167 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5169 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5170 write_register_gen instead of write_register_bytes.
5172 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5173 i[3456]-*-osf1mk* configurations have been made obsolete.
5174 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5175 i[3456]86-*-osf1mk* hosts obsolete.
5176 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5178 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5179 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5180 config/i386/i386m3.mt, config/i386/nm-m3.h,
5181 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5182 config/i386/i386mk.mh, config/i386/i386mk.mt,
5183 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5185 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5186 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5187 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5189 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5191 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5192 (hppa_value_returned_from_stack): Declare.
5193 (hppa_extract_return_value): Declare.
5194 * config/pa/hppa.mt: New file.
5195 * configure.tgt: Recognize hppa*-*-*.
5196 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5198 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5200 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5203 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5205 * top.c (gdb_rl_operate_and_get_next): Make sure
5206 operate-and-get-next functions correctly even when the history
5207 list is completely filled.
5209 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5211 * MAINTAINERS (Target Instruction Set Architectures): Rename
5212 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5213 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5214 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5215 already listed under Host/Native.
5217 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5218 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5221 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5223 * config/ia64/ia64.mt: New file.
5224 * config/alpha/alpha.mt: New file.
5225 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5226 ia64-linux-gnu. Mention that ia64-elf is broken.
5227 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5229 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5231 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5232 generic_func_frame_valid instead of func_frame_valid.
5234 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5236 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5237 procfs appears to be broken when debugging on multi-processor
5238 machines. So enable software single stepping in order to avoid
5239 using the procfs interface to do next/step operations, using
5240 internal breakpoints instead.
5242 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5243 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5244 make this pc address equal to the value it would have if the
5245 system stepping capability was used. Also set a new flag used
5246 to ensure that we don't readjust the PC one more time later.
5248 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5249 address by DECR_PC_AFTER_BREAK when software single step is
5250 in use for this architecture, as this has already been taken
5251 care of in handle_inferior_event().
5253 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5255 * infrun.c (handle_inferior_event): Minor reformatting, to make
5256 a rather long condition expression easier to read.
5258 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5260 * Makefile.in (gdbtk.o): Move to end of file.
5261 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5262 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5263 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5264 (gdbtk-wrapper.o, gdbres.o): Ditto.
5266 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5268 * Makefile.in (copying.o): Separate out compile rule.
5269 (hpux-thread.o, procfs.o, signals.o): Ditto.
5270 (v850ice.o, z8k-tdep.o): Ditto.
5271 (tui-file.o): Move to TUI section.
5272 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5273 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5275 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5277 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5278 skip_trampoline_code, for better namespace-proofing.
5280 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5282 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5284 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5288 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5289 signal, check whether we hit a breakpoint before checking for a
5290 single step breakpoint. Otherwise, GDB fails to notice that a
5291 breakpoint has been hit when stepping onto a breakpoint.
5293 2002-08-16 Keith Seitz <keiths@redhat.com>
5295 * gdb-events.sh (clear_gdb_event_hooks): New function.
5296 * gdb-events.c: Regenerate.
5297 * gdb-events.h: Regenerate.
5299 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5301 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5302 not_a_sw_breakpoint.
5303 * breakpoint.h (bpstat_stop_status): Add parameter names.
5305 2002-08-16 Grace Sainsbury <graces@redhat.com>
5307 * remote.c (remote_insert_hw_breakpoint)
5308 (remote_remove_hw_breakpoint): Fix calculation of length field
5311 2002-08-15 Michael Snyder <msnyder@redhat.com>
5313 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5314 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5315 (supply_fpregset): Ditto.
5317 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5318 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5319 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5320 (TARGET_READ_SP): Delete.
5321 (DO_REGISTERS_INFO): Delete.
5322 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5324 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5325 from macros to functions.
5327 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5328 (mips_register_convertible, mips_register_convert_to_virtual,
5329 mips_register_convert_to_raw): Make static.
5330 (mips_read_sp): New function.
5331 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5332 (mips_do_registers_info): Make static.
5333 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5334 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5335 (mips_register_convert_from_type, mips_register_convert_to_type):
5337 (mips_gdbarch_init): Set up function_start_offset,
5338 register_virtual_size, pc_in_sigtramp.
5340 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5342 * infcmd.c (vector_info): New function.
5343 (_initialize_infcmd): Add command "info vector".
5344 (print_vector_info): New function.
5346 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5347 * gdbarch.h, gdbarch.c: Regenerate.
5349 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5351 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5352 ``print_all''. Only print vector registers when ``print_all''.
5354 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5356 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5357 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5359 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5360 Add `args' parameter.
5361 * gdbarch.h, gdbarch.c: Regenerate.
5363 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5365 * infcmd.c (float_info): Call print_float_info.
5366 (print_float_info): New function. By default, print the
5367 floating-point registers.
5369 * arch-utils.h (default_print_float_info): Delete declaration.
5370 * arch-utils.c (default_print_float_info): Delete function.
5372 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5374 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5377 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5380 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5381 * configure.host: Make i[3456]86-*-aix host obsolete.
5382 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5383 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5384 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5385 config/i386/xm-i386aix.h: Make files obsolete.
5386 * i386aix-nat.c: Make file obsolete.
5387 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5388 (i386aix-nat.o): Make target obsolete.
5390 * config/i386/nm-gnu.h: Removed.
5391 * config/i386/nm-i386gnu.h: New file.
5392 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5393 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5395 * config/i386/tm-i386gnu.h: ... here. Removed.
5396 * config/i386/xm-i386gnu.h: Removed.
5397 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5398 (NAT_FILE): Set to nm-i386gnu.h.
5399 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5400 * i386-tdep.c: New file.
5401 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5402 (i386gnu-tdep.o): Specify dependencies.
5404 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5406 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5407 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5408 Adjust a few comments to reflect reality a bit closer.
5409 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5410 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5411 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5412 target_insert_watchpoint, target_remove_watchpoint):
5414 * config/i386/nm-i386sco5.h: ... here.
5415 (kernel_u_size): Add prototype. Improve a few comments and add
5416 protection against multiple inclusion.
5418 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5421 * uw-thread.c (SP_ARG0): Define if not already defined.
5422 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5424 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5426 * config/i386/tm-i386.h: Don't include "regcache.h".
5428 * i387-tdep.h (i387_print_float_info): New prototype.
5429 * i387-tdep.c (print_i387_value, print_i387_ext,
5430 print_i387_status_word, print_i387_control_word): Add `struct
5431 ui_file *' argument and use it for output.
5432 (i387_print_float_info): Renamed from i387_float_info. Add
5433 `struct gdbarch *' and `struct ui_file *' arguments and use the
5435 * i386-tdep.c: Include "i387-tdep.h".
5436 (i386_gdbarch_init): Set print_float_info.
5437 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5438 (FLOAT_INFO): Remove define.
5440 2002-08-13 Michael Snyder <msnyder@redhat.com>
5442 * mips-tdep.c (mips_push_arguments): Rename to
5443 mips_eabi_push_arguments, and tune for EABI.
5444 (MIPS_REGS_HAVE_HOME_P): Delete.
5445 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5446 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5447 Delete references to mips_regs_have_home_p.
5449 2002-08-14 Keith Seitz <keiths@redhat.com>
5451 * Makefile.in (install-gdbtk): Create insight plugin directory.
5452 Install plugins.tcl file.
5454 2002-08-14 Keith Seitz <keiths@redhat.com>
5456 * configure.in: Move SUBDIRS to near top of the file so that
5457 --enable options may add things to it.
5458 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5459 * configure: Regenerate.
5461 2002-08-13 Michael Snyder <msnyder@redhat.com>
5463 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5464 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5465 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5467 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5469 * vax-tdep.c (vax_get_saved_register): Delete function.
5470 (vax_gdbarch_init): Update.
5471 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5472 (ns32k_gdbarch_init): Update.
5473 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5474 (alpha_gdbarch_init): Update.
5476 2002-08-13 Andrew Cagney <cagney@redhat.com>
5478 * regcache.c (init_regcache_descr): Overallocate the
5479 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5480 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5482 (set_register_cached): Add range checking assertions. Use
5485 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5487 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5488 numbers for MMX registers.
5490 2002-08-13 Andrew Cagney <cagney@redhat.com>
5492 * i386-tdep.c (i386_gdbarch_init): Use
5493 generic_unwind_get_saved_register.
5495 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5497 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5498 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5500 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5501 Delete. Add comment regarding this now-deleted target method.
5503 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5505 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5506 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5507 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5508 real PC and the page number (if it's within the memory bank window).
5509 (m68hc11_pseudo_register_write): Likewise when saving.
5510 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5511 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5512 (m68hc11_register_raw_size): And use 32-bit for it.
5513 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5514 16K memory bank is used by the prog; also use the virtual pc.
5516 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5518 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5519 (m68hc11_gdbarch_init): Install it in gdbarch.
5520 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5521 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5522 (MSYMBOL_SIZE): New for documentation.
5523 (insn_return_kind): Enum to specify how a function returns.
5524 (frame_extra_info): Cleanup and record the return mode.
5525 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5526 register in address computation.
5527 (m68hc11_get_return_insn): New to obtain the return instruction used
5529 (m68hc11_frame_init_saved_regs): Take into account the return
5530 instruction used by the function for far and interrupt functions.
5531 (m68hc11_init_extra_frame_info): Take into account page register.
5532 (m68hc11_frame_args_address): Adjust according to the return mode.
5533 (show_regs): Print page register only when it's used.
5535 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5537 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5538 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5539 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5541 (m68hc11_register_raw_size): Likewise.
5543 2002-08-13 Andrew Cagney <cagney@redhat.com>
5545 * i386-tdep.c (i386_register_name): Handle mmx registers.
5546 (mmx_regnum_p): New function.
5547 (i386_mmx_names): New array.
5548 (mmx_num_regs): New variable.
5549 (i386_pseudo_register_read): New function.
5550 (i386_pseudo_register_write): New function.
5551 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5553 * regcache.c (regcache_raw_read_unsigned): New function.
5554 (regcache_raw_read_signed): New function.
5555 * regcache.h (regcache_raw_read_unsigned): Declare.
5556 (regcache_raw_read_signed): Declare.
5558 2002-08-13 Andrew Cagney <cagney@redhat.com>
5560 * regcache.c (regcache_raw_read_as_address): Delete function.
5561 (regcache_cooked_read_signed): New function.
5562 (regcache_cooked_read_unsigned): New function.
5563 * regcache.h (regcache_cooked_read_signed): Declare.
5564 (regcache_cooked_read_unsigned): Declare.
5565 (regcache_raw_read_as_address): Delete declaration.
5567 * blockframe.c (generic_read_register_dummy): Use
5568 regcache_cooked_read_unsigned.
5569 * i386-tdep.c (i386_extract_struct_value_address): Use
5570 regcache_cooked_read_unsigned.
5572 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5574 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5575 double sizes according to ELF ABI flags.
5576 (gdbarch_tdep): Record elf_flags.
5578 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5580 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5581 (m6812_prolog): They can appear in 68HC12 function prologue.
5582 (m68hc11_frame_chain): Cleanup.
5584 2002-08-12 Andrew Cagney <cagney@redhat.com>
5586 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5588 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5589 (i386_linux_register_raw_size): Delete function.
5590 (i386_linux_init_abi): Update.
5591 * i386-tdep.c (i386_register_raw_size): Delete function.
5592 (i386_register_byte): Delete function.
5593 (i386_gdbarch_init): Update.
5594 (i386_register_size): Delete array.
5595 (i386_register_offset): Delete array.
5597 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5598 (REGISTER_RAW_SIZE): Delete macro.
5599 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5600 (REGISTER_BYTE): Delete macro.
5602 2002-08-11 Aidan Skinner <aidan@velvet.net>
5604 * ada-lang.c (ada_lookup_partial_symbol)
5605 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5606 prototype names so that grep ^func works properly.
5608 * ada-lang.c (ada_array_element_type)
5609 (ada_lookup_partial_symbol): Fix typos in parameter list.
5611 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5612 Fix prototype names so that grep ^func works properly.
5614 2002-08-10 Andrew Cagney <cagney@redhat.com>
5615 Elena Zannoni <ezannoni@redhat.com>
5616 Martin M. Hunt <hunt@redhat.com>
5618 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5619 (build_builtin_type_vec128i): Set the vector bit.
5620 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5621 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5622 (build_builtin_type_vec64): New function.
5623 (build_builtin_type_vec64i): New function.
5624 (build_gdbtypes): Initialize builtin_type_vec64 and
5625 builtin_type_vec64i.
5627 2002-08-09 Andrew Cagney <cagney@redhat.com>
5629 * regcache.c (regcache_dump): Compare the register offset
5631 * arch-utils.c (generic_register_byte): New function.
5632 * arch-utils.h (generic_register_byte): Declare.
5633 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5634 * gdbarch.h, gdbarch.c: Regenerate.
5636 2002-08-09 Andrew Cagney <cagney@redhat.com>
5638 * regcache.c: Include "gdbcmd.h"
5639 (_initialize_regcache): Add commands "maintenance print
5640 registers", "maintenance print raw-registers" and "maintenance
5641 print cooked-registers".
5642 (enum regcache_dump_what): Define.
5643 (dump_endian_bytes): New function.
5644 (regcache_dump): New function.
5645 (regcache_print): New function.
5646 (maintenance_print_registers): New function.
5647 (maintenance_print_raw_registers): New function.
5648 (maintenance_print_cooked_registers): New function.
5649 * Makefile.in (regcache.o): Update dependencies.
5651 2002-08-09 Michael Snyder <msnyder@redhat.com>
5653 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5654 (mips_push_arguments): Correct some comments. Use paddr_nz
5655 for printing addresses in debug output. Replace static
5656 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5657 (mips_n32n64_push_arguments): New function, cloned from
5658 mips_push_arguments and tuned for the n32/n64 ABI.
5659 (mips_push_register): Buffer needs dynamic allocation.
5660 (mips_print_register): Ditto.
5661 (do_gp_register_row): Ditto.
5662 (mips_store_return_value): Ditto.
5663 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5665 2002-08-09 Don Howard <dhoward@redhat.com>
5667 * memattr.c (mem_info_command): Print special case of upper bound
5668 as max CORE_ADDR + 1.
5670 2002-08-08 Michael Snyder <msnyder@redhat.com>
5672 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5673 returns structs by ref if they're too big to fit in two registers.
5675 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5677 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5679 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5680 mips_find_saved_regs().
5681 (mips_pop_frame): Likewise.
5683 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5685 * blockframe.c (frame_saved_regs_register_unwind): Revise
5686 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5689 2002-08-09 Grace Sainsbury <graces@redhat.com>
5691 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5692 T-packets; the 'a' is not taken as a register number.
5693 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5694 (remote_stopped_data_address): New functions; add to target
5696 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5697 prototypes to match other implementations of this
5698 function. replace integer argument with pointer -- the length
5699 field in the Z-packet is the length of what is pointed to or 1 if
5700 pointer is null. Add to target vector.
5701 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5705 * remote.c (remote_wait): Add support to extract optional
5706 watchpoint information from T-packet. Ignore unrecognized
5707 optional info in T-packet.
5708 (remote_async_wait): Ditto.
5710 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5712 * cli/cli-dump.c: Change fopen modes to use binary open modes
5713 as defined in include/fopen-bin.h throughout.
5715 2002-08-08 Michael Snyder <msnyder@redhat.com>
5717 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5719 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5721 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5722 assertion failure by returning early after a warning.
5724 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5726 * mips-tdep.c (mips_find_saved_regs): Make static.
5727 (mips_frame_init_saved_regs): New function.
5728 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5729 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5730 (mips_find_saved_regs): Delete declaration.
5732 2002-08-08 Grace Sainsbury <graces@redhat.com>
5734 * remote.c (remote_wait, remote_async_wait): Change
5735 thread_num from int to ULONGEST.
5736 (unpack_varlen_hex): Change result parameter from
5737 int * to ULONGEST *.
5739 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5741 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5742 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5744 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5746 2002-08-08 Andrew Cagney <cagney@redhat.com>
5748 * gcore.c (override_derive_stack_segment): Delete variable.
5749 (preempt_derive_stack_segment): Delete function.
5750 (derive_stack_segment): Delete function.
5751 (default_derive_stack_segment): Renamed to derive_stack_segment.
5752 (override_derive_heap_segment): Delete variable.
5753 (preempt_derive_heap_segment): Delete function.
5754 (derive_heap_segment): Delete function.
5755 (default_derive_heap_segment): Rename to derive_heap_segment.
5757 2002-08-06 Michael Snyder <msnyder@redhat.com>
5759 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5760 * mips-tdep.c (mips_EABI_use_struct_convention,
5761 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5762 New functions. (mips_use_struct_convention): Delete.
5763 (mips_gdbarch_init): set use_gdbarch_convention.
5765 2002-08-06 Michael Snyder <msnyder@redhat.com>
5767 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5768 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5769 mips_o32_reg_struct_has_addr): New functions.
5770 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5772 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5774 * regcache.c (pseudo_register): Delete function.
5775 (fetch_register): Delete function.
5776 (store_register): Delete function.
5777 (regcache_raw_read, legacy_read_register_gen): Use
5778 target_fetch_registers instead of fetch_register.
5779 (legacy_write_register_gen, regcache_raw_write): Use
5780 target_store_register instead of store_register.
5781 (write_register_bytes): Ditto.
5783 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5784 (STORE_PSEUDO_REGISTER): Delete.
5785 * gdbarch.h, gdbarch.c: Regenerate.
5787 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5789 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5790 write dump file binary.
5792 2002-08-05 Michael Snyder <msnyder@redhat.com>
5794 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5795 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5796 (mips_gdbarch_init): Set N32 target to be mips64.
5798 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5800 * frame.c (find_saved_register): Break out of loop once saved
5801 register address is found. Don't mention sparc in loop comment
5804 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5806 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5807 mips_default_saved_regsize to 8.
5809 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5811 * gcore.c: Do not include <sys/procfs.h>.
5812 * Makefile.in (gcore.o): Update dependencies.
5814 2002-08-06 Andrew Cagney <cagney@redhat.com>
5816 * configure.tgt: Make arc-*-* obsolete.
5817 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5818 * MAINTAINERS: Make arc-elf obsolete.
5819 * arc-tdep.c: Make file obsolete.
5820 * config/arc/arc.mt: Ditto.
5821 * config/arc/tm-arc.h: Ditto.
5823 2002-08-05 Theodore A. Roth <troth@verinet.com>
5825 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5827 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5829 * mcore-tdep.c (mcore_gdbarch_init): Use
5830 generic_unwind_get_saved_register instead of
5831 generic_get_saved_register.
5832 * v850-tdep.c (v850_gdbarch_init): Ditto.
5833 * frv-tdep.c (frv_gdbarch_init): Ditto.
5834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5835 * s390-tdep.c (s390_gdbarch_init): Ditto.
5836 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5837 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5838 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5840 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5842 * objfiles.h: Add missing #include "symfile.h"
5844 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5846 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5848 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5849 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5852 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5854 * NEWS: Cleanup and nitpick.
5856 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5858 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5860 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5862 * Makefile.in (gdbtk-bp.o): Update dependencies.
5863 (gdbtk-register.o): Ditto.
5864 (gdbtk-varobj.o): Ditto.
5866 2002-08-03 Andrew Cagney <cagney@redhat.com>
5868 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5869 m68hc11_fetch_pseudo_register.
5870 (m68hc11_pseudo_register_write): Replace
5871 m68hc11_store_pseudo_register.
5872 (m68hc11_gdbarch_init): Update.
5874 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5876 * gdbarch.sh: Include "gdb_string.h".
5877 * gdbarch.c: Regenerate.
5879 * regcache.c: Include "gdb_string.h".
5880 * ax-general.c: Ditto.
5882 * std-regs.c: Ditto.
5883 * fbsd-proc.c: Ditto.
5886 * Makefile.in (regcache.o): Update dependencies.
5887 (thread.o, gdbarch.o): Ditto.
5888 (ax-general.o, gdbarch.o): Ditto.
5889 (varobj.o, std-regs.o): Ditto.
5890 (fbsd-proc.o): Specify dependencies.
5892 2002-08-02 Andrew Cagney <cagney@redhat.com>
5894 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5896 (regcache_cooked_write): Ditto.
5898 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5900 * regcache.c (regcache_cooked_read): New function.
5901 (regcache_cooked_write): New function.
5902 (read_register_gen): Rewrite using regcache_cooked_read.
5903 (write_register_gen): Rewrite using regcache_cooked_write.
5905 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5908 2002-08-02 Andrew Cagney <cagney@redhat.com>
5910 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5911 Replace the architecture methods register_read and register_write.
5912 * gdbarch.h, gdbarch.c: Regenerate.
5913 * regcache.c (init_regcache_descr): Update.
5914 (read_register_gen): Update.
5915 (write_register_gen): Update.
5916 (supply_register): Update comment.
5918 * sh-tdep.c (sh_gdbarch_init): Update.
5919 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5920 `regcache' and `gdbarch' parameters. Make `buffer' a void
5921 pointer. Update code.
5922 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5923 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5924 void pointer. Update code.
5925 (sh64_register_write): Delete.
5926 (sh4_register_read): Delete.
5927 (sh64_register_read): Delete.
5928 (sh4_register_write): Delete.
5929 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5930 void pointer, `to' parameter a void pointer.
5931 (sh_sh64_register_convert_to_raw): Ditto.
5933 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5935 * mips-tdep.c (mips_register_virtual_type): Use architecture
5936 invariant return values.
5938 2002-08-01 Andrew Cagney <cagney@redhat.com>
5940 * linux-proc.c: Include "gdb_string.h".
5941 * Makefile.in (linux-proc.o): Update dependency list.
5943 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5945 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5948 2002-08-01 Grace Sainsbury <graces@redhat.com>
5950 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5951 to_insert_watchpoint, to_remove_watchpoint,
5952 to_stopped_by_watchpoint, to_stopped_data_address,
5953 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5954 target vecctor. Define their corresponding macros so they call
5957 * target.c: Add default and debug versions of for
5958 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5959 to_insert_watchpoint, to_remove_watchpoint,
5960 to_stopped_by_watchpoint, to_stopped_data_address,
5961 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5963 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5965 * mips-tdep.c (mips_register_virtual_type): New function.
5966 (mips_gdbarch_init): Register mips_register_virtual_type()
5967 with gdbarch machinery.
5968 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5969 this file instead of tm-bigmips.h.
5970 (MIPS_REGSIZE): Delete this macro.
5971 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5972 multiarch version in mips-tdep.c will be found.
5974 2002-08-01 Andrew Cagney <cagney@redhat.com>
5976 * NEWS: Menion that CHILL has been made obsolete.
5978 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5979 * stabsread.c (read_range_type): Ditto.
5980 * gdbtypes.h: Ditto.
5981 * language.c (binop_type_check): Ditto.
5982 (binop_result_type): Ditto.
5983 (integral_type): Ditto.
5984 (character_type): Ditto.
5985 (string_type): Ditto.
5986 (boolean_type): Ditto.
5987 (structured_type): Ditto.
5988 (lang_bool_type): Ditto.
5989 (binop_type_check): Ditto.
5990 * language.h (_LANG_chill): Ditto.
5991 * dwarfread.c (set_cu_language): Ditto.
5992 * dwarfread.c (CHILL_PRODUCER): Ditto.
5993 * dwarfread.c (handle_producer): Ditto.
5994 * expression.h (enum exp_opcode): Ditto.
5995 * eval.c: Ditto for comments.
5996 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5997 * expprint.c (print_subexp): Ditto.
5998 (print_subexp): Ditto.
5999 * valops.c (value_cast): Ditto.
6000 (search_struct_field): Ditto.
6001 * value.h (COERCE_VARYING_ARRAY): Ditto.
6002 * symfile.c (init_filename_language_table): Ditto.
6003 (add_psymbol_with_dem_name_to_list): Ditto.
6004 * valarith.c (value_binop): Ditto.
6006 * valops.c (value_slice): Ditto.
6007 * symtab.h (union language_specific): Ditto.
6008 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6009 (SYMBOL_DEMANGLED_NAME): Ditto.
6010 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6011 * defs.h (enum language): Ditto.
6012 * symtab.c (got_symtab): Ditto.
6013 * utils.c (fprintf_symbol_filtered): Ditto.
6015 * ch-typeprint.c: Make file obsolete.
6016 * ch-valprint.c: Make file obsolete.
6017 * ch-lang.h: Make file obsolete.
6018 * ch-exp.c: Make file obsolete.
6019 * ch-lang.c: Make file obsolete.
6021 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6023 (TARGET_FLAGS_TO_PASS): Ditto.
6024 (CHILLFLAGS): Obsolete.
6026 (CHILL_FOR_TARGET): Obsolete.
6027 (CHILL_LIB): Obsolete.
6028 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6030 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6031 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6033 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6036 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6038 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6039 This does not change anything at the moment, but will be helpful
6040 later when full Ada support is integrated.
6042 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6044 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6047 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6049 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6050 and save it in a local variable. Use variable in later test.
6052 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6054 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6055 test. (Thanks to Daniel Jacobowitz.)
6057 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6059 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6060 (mips_abi_strings): Add "n64".
6061 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6063 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6065 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6066 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6068 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6070 * utils.c (host_pointer_to_address, address_to_host_pointer):
6071 Use gdb_assert() instead of explicit call to internal_error().
6073 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6075 * Makefile.in (rs6000-nat.o): Update dependencies.
6077 From Nicholas Duffek:
6078 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6079 (aix-thread.o): New rule.
6080 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6081 * config/powerpc/aix432.mh: New file.
6083 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6085 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6086 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6087 (fetch_core_registers, ppc_linux_supply_gregset)
6088 (ppc_linux_supply_fpregset): New functions.
6089 (ppc_linux_regset_core_fns): New.
6090 (_initialize_ppc_linux_tdep): Call add_core_fns.
6091 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6092 and ppc_linux_supply_gregset.
6093 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6094 (supply_fpregset): Call ppc_linux_supply_fpregset.
6095 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6097 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6099 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6101 * symtab.c (lookup_symbol): Demangle before lowercasing.
6103 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6105 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6107 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6108 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6109 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6110 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6112 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6113 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6114 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6115 (avr-tdep.o, mon960-rom.o): Ditto.
6116 (aout_stabs_gnu_h): Define.
6117 (symtab_h): Remove $(gdb_obstack_h).
6119 2002-07-30 Jim Blandy <jimb@redhat.com>
6121 Patch from David Carlton <carlton@math.stanford.edu>:
6122 * gdbinit.in: Move the `dir' commands that add GDB's own source
6123 directory to the search path to the end, so that the `gdb' source
6124 directory will be searched first.
6126 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6128 * gdb_obstack.h: New file.
6129 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6130 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6131 * objfiles.h: Include "gdb_obstack.h".
6132 * Makefile.in (gdb_obstack_h): Define.
6133 (symtab_h): Add $(gdb_obstack_h).
6134 (objfiles_h): Add $(gdb_obstack_h).
6136 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6137 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6138 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6139 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6140 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6141 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6142 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6143 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6145 * Makefile.in (bcache.o): Update dependencies.
6146 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6147 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6148 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6149 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6150 (stabsread.o, symfile.o, symmisc.o): Ditto.
6151 (symtab.o, typeprint.o, macroexp.o): Ditto.
6152 (macrotab.o, mdebugread.o): Ditto.
6153 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6154 (coff_ecoff_h, aout_aout64_h): Define.
6155 (aout_stabs_gnu_h, libaout_h): Define.
6157 2002-07-29 Andrew Cagney <cagney@redhat.com>
6159 * regcache.c (struct regcache_descr): Rename nr_registers to
6160 nr_cooked_registers. Revise comments describing the structure
6162 (init_regcache_descr): Update.
6163 (init_legacy_regcache_descr): Update.
6164 (read_register_gen, write_register_gen): When a cooked register in
6165 the raw register range, directly access the value from the raw
6168 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6170 * z8k-tdep.c: Do not include "obstack.h".
6171 * h8300-tdep.c, h8500-tdep.c: Ditto.
6172 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6173 * valprint.c, v850-tdep.c: Ditto.
6174 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6175 * mn10200-tdep.c: Ditto.
6177 * Makefile.in (z8k-tdep.o): Update dependencies.
6178 (m68hc11-tdep.o, valprint.o): Ditto.
6179 (v850-tdep.o, d10v-tdep.o): Ditto.
6180 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6181 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6182 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6183 (sh_opc_h, gdb_sim_sh_h): Define.
6184 (elf_sh_h, elf_bfd_h): Define.
6185 (opcode_m68hc11_h): Define.
6186 (OPCODES_SRC, OPCODES_DIR): define.
6187 (OPCODES): Use $(OPCODES_DIR).
6188 (gdb_sim_d10v_h): Rename sim_d10v_h.
6189 (gdb_sim_arm_h): Rename sim_arm_h.
6191 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6193 * utils.c (host_pointer_to_address, address_to_host_pointer):
6194 Change internal_error() message to indicate function responsible
6197 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6199 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6200 calls to local_hex_string_custom().
6202 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6204 * irix5-nat.c: Move IRIX shared library support from here...
6205 * solib-irix.c: ...to here. Revised substantially to work with
6206 generic solib framework.
6208 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6209 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6210 * mips-irix-tdep.c: New file.
6212 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6213 (mips-irix-tdep.o, solib-irix.o): New rules.
6214 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6216 * config/mips/irix6.mt (TDEPFILES): Likewise.
6217 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6219 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6221 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6222 disabled (via ``#if 0'') includes.
6224 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6226 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6227 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6228 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6229 Add support for the fpscr register.
6230 * rs6000-nat.c (regmap, fetch_inferior_registers)
6231 (store_inferior_registers, fetch_core_registers): Likewise.
6233 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6235 * rs6000-nat.c (language.h): Include.
6236 (special_regs): Delete this array.
6237 (regmap): New function.
6238 (fetch_register, store_register): Use regmap() to map gdb
6239 register numbers to ptrace register numbers. Also, use
6240 outputs from regmap() to make decisions regarding type of
6241 ptrace() call to make. In particular, don't compare against
6242 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6243 (fetch_inferior_registers, store_inferior_registers): Where
6244 possible, obtain register numbers from tdep struct. Don't
6245 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6246 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6247 (LAST_UISA_SP_REGNUM): Delete.
6249 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6251 * rs6000-nat.c (ppc-tdep.h): Include.
6252 (fetch_registers, store_register, fetch_core_registers): Don't
6253 access registers[] directly. Instead, use supply_register() or
6254 regcache_collect() as appropriate.
6255 (find_toc_address): Format hex address with local_hex_string().
6257 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6259 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6262 2002-07-24 Tom Tromey <tromey@redhat.com>
6264 * jv-exp.y: Marked all strings with _().
6265 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6267 (MethodInvocation, CastExpression, parse_number, yyerror,
6268 java_type_from_name, push_expression_name, yylex): Typo fixes.
6270 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6272 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6273 (tee_file_flush, tee_file_write, tee_file_fputs)
6274 (tee_file_isatty): New.
6275 * ui-file.h (tee_file_new): Add prototype.
6277 2002-07-24 Aidan Skinner <aidan@velvet.net>
6279 * ada-lang.c: Change k&r style function definitions to prototyped
6281 * ada-typeprint.c: Change k&r style function definitions to prototyped
6283 * ada-valprint.c: Change k&r style function definitions to prototyped
6286 2002-07-24 Andrew Cagney <cagney@redhat.com>
6288 * README: Remove reference to remote-bug.
6289 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6291 (m88k-nat.o): Delete rule.
6292 (m88k-tdep.o): Delete rule.
6293 (remote-bug.o): Delete rule.
6294 * MAINTAINERS: Mark as obsolete.
6295 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6296 * m88k-tdep.c: Make file obsolete.
6297 * config/m88k/m88k.mh: Ditto.
6298 * config/m88k/delta88v4.mh: Ditto.
6299 * config/m88k/delta88v4.mt: Ditto.
6300 * config/m88k/delta88.mt: Ditto.
6301 * config/m88k/delta88.mh: Ditto.
6302 * remote-bug.c: Ditto.
6303 * config/m88k/tm-delta88.h: Ditto.
6304 * config/m88k/nm-delta88v4.h: Ditto.
6305 * config/m88k/xm-delta88.h: Ditto.
6306 * config/m88k/xm-dgux.h: Ditto.
6307 * config/m88k/tm-m88k.h: Ditto.
6308 * config/m88k/nm-m88k.h: Ditto.
6309 * config/m88k/tm-delta88v4.h: Ditto.
6310 * m88k-nat.c: Ditto.
6311 * cxux-nat.c: Ditto.
6312 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6313 and m88*-*-* obsolete.
6314 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6317 2002-07-24 Andrew Cagney <cagney@redhat.com>
6319 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6320 constant. Same for local pointer variables.
6321 (extract_signed_integer): Ditto.
6322 * defs.h (extract_unsigned_integer): Update.
6323 (extract_signed_integer): Update.
6325 2002-07-24 Andrew Cagney <cagney@redhat.com>
6327 * regcache.c (regcache_raw_write): Change buf parameter to a
6328 constant void pointer.
6329 (regcache_raw_read): Change buf parameter to a void pointer.
6330 (legacy_write_register_gen): Change myaddr parameter a constant
6332 (supply_register): Change val parameter to a const void pointer.
6333 * regcache.h (regcache_raw_write): Update declaration.
6334 (regcache_raw_read): Update declaration.
6335 (supply_register): Update declaration.
6337 2002-07-24 Tom Tromey <tromey@redhat.com>
6339 * defs.h (gdb_readline_wrapper): Declare.
6340 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6341 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6342 * top.c (gdb_readline_wrapper): New function.
6343 (command_line_input): Use it.
6345 2002-07-24 Andrew Cagney <cagney@redhat.com>
6347 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6348 regcache_read and regcache_write.
6349 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6350 * regcache.c: Update.
6351 * sh-tdep.c (sh64_push_arguments): Update comment.
6352 (sh_pseudo_register_read): Update.
6353 (sh_pseudo_register_write): Update.
6354 (sh4_register_read): Update.
6355 (sh4_register_write): Update.
6356 (sh64_pseudo_register_read): Update.
6357 (sh64_pseudo_register_write): Update.
6358 (sh64_register_read): Update.
6359 (sh64_register_write): Update.
6360 * i386-tdep.c (i386_extract_return_value): Update.
6361 (i386_extract_struct_value_address): Update.
6362 (i386_extract_return_value): Update.
6363 * blockframe.c (generic_read_register_dummy): Update.
6364 (generic_call_dummy_register_unwind): Update
6365 * infrun.c (write_inferior_status_register): Update.
6367 2002-07-23 Jim Blandy <jimb@redhat.com>
6369 * parser-defs.h (expression_context_pc): Make this extern.
6370 (Thanks to Michael Snyder.)
6372 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6374 GDB 5.2.1 released from 5.2 branch.
6375 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6376 * README: Update to mention 5.2.1.
6378 2002-07-23 Mark Salter <msalter@redhat.com>
6380 * remote.c (remote_read_bytes): Fix check for error.
6382 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6384 * aix-thread.c (language.h): Include.
6385 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6386 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6387 Print newlines at end of debug messages.
6388 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6389 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6391 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6393 * aix-thread.c (ppc-tdep.h): Include.
6394 (special_register_p): New function.
6395 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6396 (store_regs_user_thread): Use register number information from
6397 gdbarch_tdep struct instead of hardcoded offsets relative to
6398 FIRST_UISA_SP_REGNUM.
6399 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6400 special_register_p() instead of using FPLAST_REGNUM and
6401 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6402 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6403 will be MQ's register number.
6405 2002-07-22 Michael Snyder <msnyder@redhat.com>
6407 * aix-thread.c (ops): Rename to aix_thread_ops.
6408 (base_ops): Rename to base_target.
6409 (ops_attach): Rename to aix_thread_attach.
6410 (ops_detach): Rename to aix_thread_detach.
6411 (ops_resume): Rename to aix_thread_detach.
6412 (ops_wait): Rename to aix_thread_wait.
6413 (ops_kill): Rename to aix_thread_kill.
6414 (init_ops): Rename to init_aix_thread_ops.
6415 (ops_fetch_register): Rename to aix_thread_fetch_register.
6416 (ops_store_register): Rename to aix_thread_store_register.
6417 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6418 (ops_thread_alive): Rename to aix_thread_thread_alive.
6419 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6420 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6421 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6422 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6423 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6424 (store_regs_lib): Rename to store_regs_user_thread.
6425 (store_regs_kern): Rename to store_regs_kernel_thread.
6427 2002-07-22 Michael Snyder <msnyder@redhat.com>
6429 * aix-thread.c (ops_prepare_to_store): Eliminate.
6430 (init_ops): Don't initialize ops.prepare_to_store.
6431 (store_regs_kern): Pre-fetch register buffers from child,
6432 because some registers may not be in the cache. Copy
6433 regs from register cache only if they are cached.
6434 (store_regs_lib): Copy regs from register cache only
6436 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6437 fill_gprs64): Ditto.
6439 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6441 * aix-thread.c (gdb_assert.h): Include.
6442 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6443 register sizes (from register cache) match size of buffer holding
6445 (fill_sprs32): Change parameter types to match those in the ptrace()
6447 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6448 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6450 2002-07-22 Michael Snyder <msnyder@redhat.com>
6452 * aix-thread.c (supply_sprs64): Cosmetic change.
6453 (supply_sprs32): Cosmetic change.
6454 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6455 (fill_sprs64): Use regcache_collect instead of read_register.
6456 (store_regs_lib): Use regcache_collect instead of
6457 read_register. Use fill_sprs32 instead of fill_sprs64,
6458 if debugging a 32-bit architecture.
6459 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6460 out of the register cache, instead of passing a pointer into
6461 the register cache directly to ptrace. Use regcache_collect
6462 insteaad of read_register.
6463 (ops_prepare_to_store): Use target_read_registers instead
6464 of read_register_bytes.
6466 2002-07-20 Aidan Skinner <aidan@velvet.net>
6468 * MAINTAINERS: Add self under write after approval.
6470 2002-07-20 Aidan Skinner <aidan@velvet.net>
6472 * ada-tasks.c: Change k&r style function definitions to prototyped
6475 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6477 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6478 * x86-64-tdep.c: Include "objfiles.h".
6479 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6480 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6482 2002-07-17 Michal Ludvig <michal@suse.cz>
6484 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6485 (update_context): Initialise cfa variable.
6487 2002-07-17 Michael Snyder <msnyder@redhat.com>
6489 * aix-thread.c: Shorten some long lines.
6490 Bring comments into line with code spec.
6492 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6494 * infrun.c: Re-indent using gdb_indent.sh.
6496 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6498 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6499 Leave the indentation temporarily untouched, to minimize the diffs.
6501 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6503 * stabsread.c: Make os9k sections of the code obsolete,
6505 * stabsread.h: Make os9k sections of the code obsolete.
6507 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6509 * linux-low.c (regsets_store_inferior_registers): Add free()
6510 at the end of a loop to prevent memory leak.
6511 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6512 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6513 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6515 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6517 2002-07-17 Jim Blandy <jimb@redhat.com>
6519 * macrocmd.c (info_macro_command): Remove newline from error
6522 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6524 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6525 (sh_gdbarch_init): Use it for sh-dsp.
6527 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6529 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6530 64-bit DWARF2 format.
6532 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6534 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6535 <sys/proc.h> when not available.
6537 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6539 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6540 * stabsread.c: Make os9k sections of the code obsolete.
6541 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6542 * config/i386/i386os9k.mt: Make file obsolete.
6543 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6544 (COMMON_OBS): Remove os9kread.o
6545 (SFILES): Remove os9kread.c.
6546 (os9kread.o, remote-os9k.o): Make target obsolete.
6547 * remote-os9k.c: Make file obsolete.
6548 * os9kread.c: Make file obsolete.
6551 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6553 * NEWS: Mention that the FR30 has been made obsolete.
6554 * fr30-tdep.c: Make file obsolete.
6555 * config/fr30/tm-fr30.h: Ditto.
6556 * config/fr30/fr30.mt: Ditto.
6557 * configure.tgt: Make fr30-*-elf obsolete.
6558 * MAINTAINERS: Make fr30-elf obsolete.
6560 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6562 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6563 found is not inside a section.
6565 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6567 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6569 (pdc_realloc): Use xrealloc() instead of realloc().
6571 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6573 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6574 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6575 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6578 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6580 * aix-thread.c (ptrace_check): Eliminate goto.
6581 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6584 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6586 * aix-thread.c (gdbcmd.h): Include.
6587 (DEBUG, DBG, DBG2, dbg): Eliminate.
6588 (debug_aix_thread): New static global.
6589 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6590 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6591 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6592 invocations to DBG and DBG2 macros to test against
6593 ``debug_aix_thread'' and call fprintf_unfiltered().
6594 (_initialize_aix_thread): Add new command "set debug aix-thread".
6596 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6598 From Gerhard Tonn <TON@de.ibm.com>:
6599 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6600 instead of supply_register.
6602 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6604 * dwarf2cfi.c: Include "gdb_assert.h".
6605 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6607 (update_context): Do not use __func__. Add missing ``break''.
6608 (update_context): Do not use __func__.
6610 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6612 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6613 and its setting. Set gdbarch instruction printing functions
6614 directly. For non-rs6000 case use new function
6615 gdb_print_insn_powerpc.
6616 (gdb_print_insn_powerpc): New function.
6618 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6620 * NEWS: Mention that the d30v has been marked obsolete.
6621 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6622 * configure.tgt: Mark d30v-*-* as obsolete.
6623 * d30v-tdep.c: Mark file as obsolete.
6624 * config/d30v/d30v.mt: Ditto.
6625 * config/d30v/tm-d30v.h: Ditto.
6627 2002-07-13 Aidan Skinner <aidan@velvet.net>
6629 * ada-tasks.c (add_task_entry): replace calls to
6630 malloc() with xmalloc
6631 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6633 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6634 ada_finish_decode_line_1, all_sals_for_line
6635 ada_breakpoint_rewrite): replace calls to free() with xfree()
6637 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6639 From Nicholas Duffek (with minor changes by Martin Hunt,
6640 Louis Hamilton, and Kevin Buettner):
6641 * aix-thread.c: New file.
6643 2002-07-12 Petr Sorfa <petrs@caldera.com>
6645 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6646 complaint for invalid attribute class or form.
6647 (read_func_scope): DW_AT_frame_base
6648 better handling of DW_AT_block*.
6649 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6650 better handling of DW_AT_block*.
6651 (read_common_block): DW_AT_location
6652 better handling of DW_AT_block*.
6653 (read_partial_die): DW_AT_location better handling
6655 (new_symbol): DW_AT_external better handling of
6656 DW_AT_block*. Proper initialization of variable
6658 (attr_form_is_block): New function that returns true
6659 if the attribute's form is of DW_FORM_block*.
6661 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6663 * valops.c (find_method_list): Remove comment about
6664 removed STATIC_MEMFUNCP argument.
6665 (value_find_oload_method_list): Likewise.
6667 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6669 From Nicholas Duffek:
6670 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6671 target_new_objfile_hook.
6673 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6675 From Nicholas Duffek:
6676 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6679 2002-07-12 Andrew Cagney <cagney@redhat.com>
6681 * MAINTAINERS: Mention --enable-sim-build-warnings.
6682 (m68hc11-elf): Disable sim build warnings.
6683 (m32r-elf): Mark as broken obsolete candidate.
6684 (x86_64-linux-gnu): Mark as buildable with -Werror.
6685 (arm-elf): Change -w to ``,'' which enables warnings but not
6688 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6690 * bcache.h: Update copyright.
6691 (struct bstring, struct bcache): Move definition to "bcache.c".
6692 Replaced by opaque declaration.
6693 (bcache_xfree): Replace free_bcache.
6694 (bcache_xmalloc, bcache_memory_used): Declare.
6696 * bcache.c: Update copyright.
6697 (struct bstring, struct bcache): Moved to here from "bcache.h".
6699 (bcache_xmalloc, bcache_memory_used): New functions.
6700 (bcache_xfree): Replace function free_bcache.
6702 * Makefile.in (objfiles.o): Add $(bcache_h).
6703 (objfiles_h): Remove $(bcache_h).
6704 (symfile.o): Add $(bcache_h).
6706 * symmisc.c: Update copyright.
6707 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6708 (print_objfile_statistics): Use bcache_memory_used.
6710 * symfile.c: Include "bcache.h".
6711 (reread_symbols): Use bcache_xfree.
6712 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6713 (add_psymbol_to_list): Pass psymbol_cache by value.
6714 (add_psymbol_with_dem_name_to_list): Ditto.
6716 * objfiles.h: Update copyright.
6717 (struct bcache): Declare opaque. Do not include "bcache.h".
6718 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6720 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6722 * objfiles.c: Include "bcache.h". Update copyright.
6723 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6725 (free_objfile): Use bcache_xfree.
6727 2002-07-11 Grace Sainsbury <graces@redhat.com>
6729 * monitor.c (monitor_fetch_register): Make name a constant.
6730 (monitor_store_register): Same.
6732 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6734 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6735 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6736 (finish_block) For non-function blocks, hash the symbol table. For
6737 function blocks, mark the symbol table as unhashed.
6738 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6739 (msymbol_hash_iw): Likewise.
6740 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6742 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6743 (lookup_minimal_symbol): Likewise for both.
6744 * symtab.h (struct block): Add `hashtable' flag. Comment the
6746 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6747 (ALL_BLOCK_SYMBOLS): Update.
6748 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6749 (struct symbol): Add `hash_next' pointer.
6750 * symtab.c (lookup_block_symbol): Search using the hash table when
6752 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6753 (search_symbols, find_addr_symbol): Likewise.
6755 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6756 (read_dst_symtab): Likewise.
6757 * jv-lang.c (get_java_class_symtab): Likewise.
6758 * mdebugread.c: Include "gdb_assert.h".
6759 (shrink_block): Assert that the block being modified is not hashed.
6760 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6761 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6763 (dump_symtab): Recognize hashed blocks.
6764 * printcmd.c (print_frame_args): Assert that function blocks do not
6765 have hashed symbol tables.
6766 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6767 (fill_in_ada_prototype, debug_print_block): Likewise.
6768 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6770 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6772 * stack.c (print_frame): Use result of frame_address_in_block()
6773 instead of fi->pc when evaluating symbols.
6774 (backtrace_command_1): Ditto.
6776 2002-07-11 Andrew Cagney <cagney@redhat.com>
6778 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6781 * arm-tdep.c (arm_register_name): Make return type constant.
6783 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6785 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6787 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6788 * s390-tdep.c (s390_fp_regnum): Ditto.
6789 (s390_read_fp): Ditto.
6790 (s390_pop_frame): Ditto.
6791 (_initialize_s390_tdep): Ditto.
6792 * remote.c (get_remote_state): Ditto.
6793 * procfs.c (mappingflags): Ditto.
6794 * memattr.c (_initialize_mem): Ditto.
6795 * mcore-tdep.c (mcore_pop_frame): Ditto.
6796 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6797 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6798 * language.c (set_case_str): Ditto.
6799 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6800 * frv-tdep.c (new_variant): Ditto.
6801 (frv_stopped_data_address): Ditto.
6802 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6803 (context_alloc): Ditto.
6804 (frame_state_alloc): Ditto.
6805 (unwind_tmp_obstack_init): Ditto.
6806 (unwind_tmp_obstack_free): Ditto.
6807 (cfi_read_fp): Ditto.
6808 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6809 (cris_pop_frame): Ditto.
6810 * c-lang.c (scanning_macro_expansion): Ditto.
6811 (finished_macro_expansion): Ditto.
6812 (c_preprocess_and_parse): Ditto.
6813 * gdbarch.sh: Ditto.
6814 * gdbarch.h, gdbarch.c: Regenerate.
6815 * config/mn10200/tm-mn10200.h: Adjust indentation.
6816 * target.c: Adjust indentation.
6817 * symtab.h: Adjust indentation.
6818 * stabsread.h: Adjust indentation.
6819 * remote-es.c: Adjust indentation.
6820 * os9kread.c: Adjust indentation.
6822 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6824 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6825 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6827 2002-07-10 Grace Sainsbury <graces@redhat.com>
6829 * NEWS: Mention m68k, mcore multi-arching.
6830 * MAINTAINERS: Change status of m68k, mcore to reflect
6833 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6835 * valops.c (find_overload_match): Free oload_syms.
6837 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6839 Define HAVE_SYS_PROC_H if sys/proc.h exists
6840 * configure.in: Add check for sys/proc.h
6841 * config.in: Regenerate.
6842 * configure: Regenerate.
6844 2002-07-09 Grace Sainsbury <graces@redhat.com>
6846 * config/m68k/tm-m68k.h: Remove macros wrapped in
6847 #if !GDB_MULTI_ARCH.
6849 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6851 * config.in, configure: Regenerate.
6853 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6855 * dwarf2cfi.c: Include "gcore.h".
6856 (execute_stack_op): Fix implementation of the
6857 DW_OP_deref and DW_OP_deref_size operators by letting do their
6858 lookup in the target.
6860 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6862 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6863 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6866 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6868 Fix PR gdb/595, gdb/602
6869 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6870 Don't call value_cast, just read the vtable pointer; update comments
6873 2002-07-05 Grace Sainsbury <graces@redhat.com>
6875 * config/mcore/tm-mcore.h: Remove file.
6876 * config/mcore/mcore.mt: Remove definition of TM_FILE
6877 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6879 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6881 * i386bsd-tdep.c: Include "gdb_string.h".
6883 2002-07-04 Grace Sainsbury <graces@redhat.com>
6885 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6886 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6888 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6889 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6890 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6891 (RETVAL_REGNUM): Move macros from tm-mcore.h
6892 (mcore_reg_struct_has_addr): New function.
6893 (mcore_gdbarch_init): Added initializations for the macros removed
6896 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6898 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6899 traditonal string branding within the ELF header.
6901 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6903 * symtab.c (remove_params): New function.
6904 (make_symbol_overload_list): Use it instead of cplus_demangle.
6905 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6907 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6909 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6911 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6913 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6914 and tdep->sigtramp_end.
6915 * i386obsd-nat.c: New file.
6916 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6918 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6919 Don't call get_current_frame().
6921 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6923 * i386-nat.c (child_post_startup_inferior): New function
6924 calling i386_cleanup_dregs if
6925 I386_USE_GENERIC_WATCHPOINTS is defined.
6926 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6927 conditional to acknowledge that i386-nat.c has its
6928 own child_post_startup_inferior function.
6930 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6932 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6933 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6934 instead of MAX_REGISTER_RAW_SIZE.
6935 (i386_extract_return_value, i386_extract_struct_value_address):
6936 Convert to use regcache.
6937 (i386_gdbarch_init): Set max_register_raw_size and
6938 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6939 Set extract_return_value and extract_struct_value_address instead
6940 of their deprecated variants.
6942 Convert i386 target to generic dummy frames.
6943 * i386-tdep.c: Include "symfile.h".
6944 (i386_frameless_signal_p): Consider a function to be frameless if
6945 the pc points at the first instruction of the function.
6946 (i386_frame_chain): Handle (generic) call dummies.
6947 (i386_frame_saved_pc): Likewise.
6948 (i386_frame_init_saved_regs): Remove code dealing with call
6949 dummies on the stack.
6950 (i386_push_dummy_frame): Removed.
6951 (i386_call_dummy_words): Removed.
6952 (i386_fix_call_dummy): Removed.
6953 (i386_push_return_address): New function.
6954 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6955 parameter, and don't call get_current_frame.
6956 (i386_pop_frame): New function.
6957 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6958 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6959 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6960 call_dummy_length to 0, set call_dummy_words to NULL, set
6961 sizeof_call_dummy_words to 0, set fix_call_dummy to
6962 generic_fix_call_dummy, set pc_in_call_dummy to
6963 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6964 generic_push_dummy_frame, set push_return_address to
6965 i386_push_return_address and set frame_chain_valid to
6966 generic_file_frame_chain_valid.
6968 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6970 * gdbarch.sh (struct regcache): Add opaque declaration.
6971 (EXTRACT_RETURN_VALUE): New architecture method.
6972 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6973 * gdbarch.h, gdbarch.c: Regenerate.
6974 * arch-utils.c (legacy_extract_return_value): New function.
6975 * arch-utils.h (legacy_extract_return_value): Declare.
6976 * values.c (value_being_returned): Re-enable code handling
6977 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6978 deprecated_grub_regcache_for_registers call to block handling
6979 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6980 (EXTRACT_RETURN_VALUE): Do not define.
6982 2002-07-03 Grace Sainsbury <graces@redhat.com>
6984 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6985 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6986 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6987 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6988 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6989 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6990 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6991 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6992 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6993 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6994 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6995 argument so the function fits the prototype in the architecture
6997 (mcore_pop_frame): Remove argument so the function fits the
6998 prototype. Use get_current_frame instead of the argument.
6999 (mcore_push_arguments): Change type of struct_return so the
7000 function can be used in the architecture vector.
7001 (mcore_store_struct_return): Add.
7002 (mcore_frame_init_saved_regs): Add.
7003 (mcore_gdbarch_init): Add function calls to replace the macros
7004 removed from tm-mcore.h
7006 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7008 * infcmd.c (print_return_value): Remove compatibility code calling
7009 deprecated_grub_regcache_for_registers.
7011 * values.c: Include "regcache.h".
7012 (value_being_returned): Update. Use
7013 deprecated_grub_regcache_for_registers to extract the register
7015 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7016 ``struct regcache''.
7017 * Makefile.in (values.o): Add dependency on $(regcache_h).
7019 * inferior.h (run_stack_dummy): Change type of second parameter to
7020 a ``struct regcache''.
7021 * valops.c (hand_function_call): Change type of retbuf to ``struct
7022 regcache''. Allocate using regcache_xmalloc, clean using
7023 make_cleanup_regcache_xfree.
7024 * infcmd.c (run_stack_dummy): Update. Use
7025 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7027 * regcache.c (do_regcache_xfree): New function.
7028 (make_cleanup_regcache_xfree): New function.
7029 * regcache.h (make_cleanup_regcache_xfree): Declare.
7031 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7033 * event-top.c (command_line_handler): Don't read past
7034 beginning of buffer.
7036 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7038 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7040 (varobj_create): Store frame_id for root.
7041 (varobj_gen_name): Use xasprintf.
7042 (varobj_update): Save and restore frame using get_frame_id() and
7044 (create_child): Use xasprintf.
7045 (new_root_variable): Initialize frame_id.
7046 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7047 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7048 to prevent memory leak.
7050 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7052 * valops.c (hand_function_call): Move declaration of retbuf to
7053 start of function, allocate using malloc, add a cleanup but before
7054 the inf_status cleanup, cleanup the buffer. Rename local variable
7055 old_chain to inf_status_cleanup.
7057 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7059 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7061 * cli/cli-decode.c (cmd_func_p): New function.
7062 (cmd_func): New function.
7064 * command.h: Add cmd_func() and cmd_func_p().
7066 2002-07-03 Grace Sainsbury <graces@redhat.com>
7068 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7069 (REGISTER_SIZE): Remove.
7070 (MAX_REGISTER_RAW_SIZE): Remove.
7071 (REGISTER_VIRTUAL_TYPE): Remove.
7072 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7073 (REGISTER_NAME): Remove.
7074 (USE_GENERIC_DUMMY_FRAMES): Remove.
7075 (CALL_DUMMY): Remove.
7076 (CALL_DUMMY_START_OFFSET): Remove.
7077 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7078 (CALL_DUMMY_LOCATION): Remove.
7079 (FIX_CALL_DUMMY): Remove.
7080 (CALL_DUMMY_ADDRESS): Remove.
7081 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7082 (SAVE_DUMMY_FRAME_TOS): Remove.
7083 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7084 (mcore_register_virtual_type): New function.
7085 (mcore_register_byte): New function.
7086 (mcore_register_size): New function.
7087 (mcore_register_name): New function.
7088 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7089 macros removed from tm-mcore.h.
7090 (mcore_dump_tdep): Add.
7091 (_initialize_mcore_tdep): Add gdbarch_register call.
7093 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7095 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7096 frameless_look_for_prologue, such that we actually call this
7099 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7101 * frame.h (frame_address_in_block): New function.
7103 * blockframe.c (frame_address_in_block): New function extracted
7104 from get_frame_block().
7105 (get_frame_block): Use frame_address_in_block().
7106 (block_innermost_frame): Use frame_address_in_block() to match
7107 the frame pc address against the block boundaries rather than
7108 the frame pc directly. This prevents a failure when a frame pc
7109 is actually a return-address pointing immediately after the end
7112 2002-07-02 Grace Sainsbury <graces@redhat.com>
7114 * MAINTAINERS: Add self under write after approval.
7116 2002-07-02 Grace Sainsbury <graces@redhat.com>
7118 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7119 used in architecture vector. The default is
7120 m68k_local_breakpoint_from_pc.
7121 (m68k_local_breakpoint_from_pc): Add.
7122 (enum): Add register numbers from tm-m68k.h.
7123 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7125 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7126 GDB_MULTI_ARCH_PARTIAL.
7127 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7128 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7130 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7131 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7132 to enum in m68k-tdep.c
7134 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7136 * solib-osf.c (open_map): Compute the list of shared libraries
7137 loaded by the inferior, rather than the list of libraries loaded
7138 by GDB itself. Otherwise, GDB ends up reading the symbols from
7139 the wrong shared libraries...
7141 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7143 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7144 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7146 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7148 (FRAMELESS_SIGNAL): Remove function.
7149 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7150 i386_linux_saved_pc_after_call): Removed.
7151 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7152 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7153 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7155 * i386-tdep.c (i386_frameless_signal_p): New function.
7156 (i386_frame_chain): Deal with frameless signals.
7157 (i386_sigtramp_saved_sp): New function.
7158 (i386_frame_saved_pc): Deal with frameless signals.
7159 (i386_saved_pc_after_call): Make sure the correct value is
7160 returned just after entry into a sigtramp.
7161 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7162 i386fbsd4_sc_sp_offset): New variables.
7163 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7164 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7165 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7166 similiar to what we already did for sc_pc_offset.
7167 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7170 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7172 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7174 * config/i386/tm-x86-64linux.h: New.
7175 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7177 * config/i386/nm-x86-64.h: Rename to ...
7178 * config/i386/nm-x86-64linux.h: ... this one.
7179 * config/i386/x86-64linux.mh: Reflect the above change.
7181 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7183 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7184 with sigcontext_addr. Add sc_sp_offset.
7185 (i386bsd_sigtramp_saved_pc): Remove prototype.
7186 (i386bsd_sicontext_addr): Add prototype.
7187 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7188 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7189 (i386_svr4_sigtramp_saved_pc): Removed.
7190 (i386_svr4_sigcontext_addr): New function.
7191 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7192 Initialize tdep->sigcontext_addr instead. Initialize
7193 tdep->sc_pc_offset and tdep->sc_sp_offset.
7194 (i386_gdbarch_init): Likewise.
7195 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7197 (i386bsd_sigtramp_saved_pc): Remove function.
7198 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7199 Initialize tdep->sigcontext_addr instead. Initialize
7201 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7202 of tdep->sigtramp_saved_pc.
7203 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7204 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7207 * i386-tdep.c (i386_frameless_function_invocation,
7208 i386_frame_num_args, i386_frame_init_saved_regs,
7209 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7210 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7211 i386_extract_return_value, i386_store_return_value,
7212 i386_extract_struct_value_address, i386_register_virtual_type,
7213 i386_register_convertible, i386_register_convert_to_virtual,
7214 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7215 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7218 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7220 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7222 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7223 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7224 this macro. Include "value.h".
7226 2002-06-30 Aidan Skinner <aidan@velvet.net>
7228 * ada-exp.tab.c: remove as it's a generated file
7229 * ada-lex.c: remove as it's a generated file
7231 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7233 * config/i386/tm-i386.h (struct frame_info, struct
7234 frame_saved_regs, struct value, struct type): Remove forward
7237 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7238 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7239 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7240 (FILL_FPXREGSET): Define.
7242 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7244 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7245 i[3456]86-*-netbsd* case.
7246 * config/i386/tm-obsd.h: Removed.
7247 * config/i386/obsd.mt: Removed.
7248 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7250 (MH_CFLAGS): Add -DYYDEBUG=0.
7252 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7253 i386nbsd_sc_pc_offset on OpenBSD too.
7255 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7256 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7257 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7259 * i386bsd-tdep.c: Include "arch-utils.h".
7260 (i386bsd_aout_in_solib_call_trampoline): New function.
7261 (i386bsd_init_abi): Set in_solib_call_trampoline to
7262 i386bsd_aout_in_solib_call_trampoline.
7263 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7264 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7266 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7268 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7269 (struct obstack, struct bcache): Add opaque declarations.
7270 * Makefile.in (macrotab_h): Update
7272 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7274 * blockframe.c (generic_find_dummy_frame): Change return type to
7275 ``struct regcache''.
7276 (struct dummy_frame): Replace field ``registers'' with regcache, a
7277 struct regcache object.
7278 (generic_find_dummy_frame): Update.
7279 (generic_push_dummy_frame): Update. Use regcache_xfree,
7280 regcache_xmalloc and regcache_cpy.
7281 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7283 (deprecated_generic_find_dummy_frame): Update.
7284 (generic_read_register_dummy): Update. Use
7285 regcache_read_as_address.
7286 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7287 (generic_get_saved_register): Update. Use regcache_read.
7289 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7291 * Makefile.in (objfiles_h): Add $(bcache_h).
7292 * objfiles.h: Include "bcache.h".
7294 * Makefile.in (symtab_h): Remove $(bcache_h).
7295 * symtab.h: Do not include "bcache.h".
7297 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7299 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7300 generic_func_frame_chain_valid.
7302 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7304 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7305 * config/i386/tm-fbsd.h: Likewise.
7307 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7309 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7310 generic_unwind_get_saved_register.
7312 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7314 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7315 * regcache.c (supply_register): Add missing argument to
7316 register_buffer call.
7318 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7320 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7321 Solaris /bin/grep does not not like it. From Peter Schauer.
7323 2002-06-26 Tom Tromey <tromey@redhat.com>
7325 * command.h (add_setshow_cmd): Declare.
7326 (add_setshow_cmd_full): Declare.
7327 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7328 returns void. Use add_setshow_cmd_full.
7329 (add_setshow_cmd_full): New function.
7330 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7331 (add_setshow_boolean_cmd): Likewise.
7333 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7335 * config/vax/tm-vax.h: Protect from multiple inclusion.
7336 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7337 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7338 * config/vax/tm-vaxbsd.h: ...here. New file.
7339 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7341 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7343 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7344 (BELIEVE_PCC_PROMOTION): Remove.
7345 (AP_REGNUM): Move to...
7346 * config/vax/nm-vax.h: ...here.
7347 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7348 (vax_breakpoint_from_pc): New function.
7349 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7350 and gdbarch_believe_pcc_promotion.
7352 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7354 * Makefile.in (vax_tdep_h): Define.
7355 (vax-tdep.o): Use $(vax_tdep_h).
7356 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7357 (vax_dump_tdep): New function.
7358 (_initialize_vax_tdep): Register vax_dump_tdep.
7359 * vax-tdep.h: Include osabi.h.
7360 (struct gdbarch_tdep): New.
7362 2002-06-26 Andrew Cagney <cagney@redhat.com>
7364 * frame.h (deprecated_generic_find_dummy_frame): Rename
7365 generic_find_dummy_frame.
7366 * blockframe.c (generic_find_dummy_frame): Make static.
7367 (deprecated_generic_find_dummy_frame): New function.
7368 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7369 generic_find_dummy_frame with deprecated_find_dummy_frame.
7370 (sh64_nofp_frame_init_saved_regs): Ditto.
7371 (sh_fp_frame_init_saved_regs): Ditto.
7372 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7373 (s390_frame_chain): Ditto.
7374 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7376 2002-06-26 Grace Sainsbury <graces@redhat.com>
7378 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7379 gdbarch vector are at the top.
7381 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7382 (FRAME_ARGS_ADDRESS): Remove.
7383 (FRAME_LOCALS_ADDRESS): Remove.
7384 (FRAME_NUM_ARGS): Remove.
7385 (FRAME_ARGS_SKIP): Remove.
7386 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7387 (m68k_gdbarch_init): Add gdbarch initializations for macros
7388 undefined in tm-m68k.h
7390 2002-06-26 Grace Sainsbury <graces@redhat.com>
7392 * monitor.h: Add the function regname to monitor_ops
7393 structure. This way NUM_REGS does not have to be a constant.
7394 * monitor.c (monitor_fetch_register): Added support for regname
7395 function. The function is called if the array regnames is NULL.
7396 (monitor_store_register): Same.
7397 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7399 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7400 cpu32bug_cmds.regname to point to new function.
7401 * abug-rom.c (abug_regname): Same as above.
7402 (init_abug_cmds): Same.
7403 * dbug-rom.c (dbug_regname): Same as above.
7404 (init_dbug_cmds): Same.
7405 * remote-est.c (est_regname): Same.
7406 (init_est_cmds): Same.
7407 * rom68k-rom.c (rom68k_regname): Same.
7408 (init_rom68k_cmds): Same.
7410 2002-06-25 Tom Tromey <tromey@redhat.com>
7412 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7414 2002-06-25 Andrew Cagney <cagney@redhat.com>
7416 * infrun.c (stop_registers): Change variable's type to ``struct
7418 (xmalloc_inferior_status): Delete function.
7419 (free_inferior_status): Delete function.
7420 (normal_stop): Use regcache_cpy.
7421 (struct inferior_status): Change type of fields ``stop_registers''
7422 and ``registers'' to ``struct regcache''.
7423 (write_inferior_status_register): Use regcache_write.
7424 (save_inferior_status): Instead of calling
7425 xmalloc_inferior_status, allocate the inf_status buffer directly.
7426 Use regcache_dup_no_passthrough and regcache_dup to save the
7428 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7429 Replace the stop_registers regcache instead of overriding it. Use
7430 regcache_xfree. Instead of calling free_inferior_status, xfree
7431 the buffer directly.
7432 (discard_inferior_status): Use regcache_xfree. Instead of calling
7433 free_inferior_status, xfree the buffer directly.
7434 (build_infrun): Use regcache_xmalloc.
7435 (_initialize_infrun): Delete redundant call to build_infrun.
7437 * Makefile.in (infcmd.o): Add $(regcache_h).
7439 * infcmd.c: Include "regcache.h".
7440 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7441 obtain the address of `stop_registers' register buffer.
7442 (print_return_value): Ditto.
7444 * inferior.h (struct regcache): Add opaque declaration.
7445 (stop_registers): Change variable's declared type to ``struct
7448 2002-06-24 Tom Tromey <tromey@redhat.com>
7450 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7451 * target.c (initialize_targets): Fixed typo in
7452 trust-readonly-sections `show' documentation.
7454 * main.c: Marked all strings with _().
7456 2002-06-24 Don Howard <dhoward@redhat.com>
7458 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7459 that means max CORE_ADDR+1.
7460 (lookup_mem_region): Ditto.
7461 (mem_info_command): Ditto.
7463 2002-06-24 Grace Sainsbury <graces@redhat.com>
7465 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7466 (REGISTER_BYTES_OK): Remove.
7467 (REGISTER_BYTES): Remove.
7468 (STORE_STRUCT_RETURN): Remove.
7469 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7470 (STORE_RETURN_VALUE): Remove.
7471 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7472 (FRAME_CHAIN): Remove.
7473 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7474 (FRAME_SAVED_PC): Remove.
7475 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7476 (m68k_store_struct_return): Add.
7477 (m68k_deprecated_extract_return_value): Add.
7478 (m68k_deprecated_extract_struct_value_address): Add.
7479 (m68k_store_return_value): Add.
7480 (m68k_frame_chain): Add.
7481 (m68k_frameless_function_invocation): Add.
7482 (m68k_frame_saved_pc): Add.
7483 (m68k_gdbarch_init): added set_gdbarch calls for new
7484 functions and deleted macros.
7486 2002-06-23 Tom Tromey <tromey@redhat.com>
7488 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7489 (ALLDEPFILES): Likewise.
7490 (udiheaders): Removed.
7491 (udip2soc.o): Likewise.
7492 (udi2go32.o): Likewise.
7494 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7496 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7498 * infrun.c (_initialize_infrun): Delete unnecessary call to
7501 * regcache.h: Update comments describing the regcache_cpy family
7503 (regcache_save, regcache_restore): Delete declaration.
7504 (regcache_save_no_passthrough): Delete declaration.
7505 (regcache_restore_no_passthrough): Delete declaration.
7506 * regcache.c (regcache_save): Delete function.
7507 (regcache_save_no_passthrough): Delete function.
7508 (regcache_restore): Delete function.
7509 (regcache_restore_no_passthrough): Delete function.
7511 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7513 * config/m68k/tm-m68k.h: Fix typo.
7514 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7515 (m68k_frame_init_saved_regs): Declare.
7517 2002-06-21 Jim Blandy <jimb@redhat.com>
7519 Remove some vestiges of Harris 88k support.
7520 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7521 register numbering quirk.
7522 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7523 odd symbols occurring in Harris 88k ELF targets.
7525 2002-06-21 Tom Tromey <tromey@redhat.com>
7527 * gdb_locale.h: New file.
7528 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7529 (defs_h): Added gdb_locale.h.
7530 * configure, config.in: Rebuilt.
7531 * configure.in (PACKAGE): Define.
7532 * defs.h: Include gdb_locale.h.
7533 * main.c (captured_main): Call setlocale, bindtextdomain,
7536 2002-06-21 Dave Brolley <brolley@redhat.com>
7538 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7539 * config/frv/frv.mt: New file.
7540 * config/frv/tm-frv.h: New file.
7541 * configure.tgt: Support frv-*-*.
7542 * Makefile.in (frv-tdep.o): New target.
7543 * frv-tdep.c: New file.
7544 * NEWS: Mention frv.
7546 2002-06-21 Dave Brolley <brolley@redhat.com>
7548 * MAINTAINERS: Add self to "Write After Approval" list.
7550 2002-06-21 Grace Sainsbury <graces@redhat.com>
7552 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7553 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7554 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7555 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7556 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7558 * m68k-tdep.c: Include arch-utils.h
7559 (m68k_register_raw_size): Add.
7560 (m68k_register_virtual_size): Add.
7561 (m68k_register_virtual_type): Add.
7562 (m68k_register_name): Add.
7563 (m68k_stack_align): Add.
7564 (m68k_register_byte): Add.
7565 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7568 2002-06-21 Grace Sainsbury <graces@redhat.com>
7570 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7571 m68k_find_saved_regs.
7572 (m68k_pop_frame): Removed saved_regs structure, and replaced
7573 references to it with frame->saved_regs.
7574 (m68k_gdbarch_init): Added function calls to initialize the
7576 (m68k_fix_call_dummy): Add.
7577 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7578 (CALL_DUMMY): Remove.
7579 (CALL_DUMMY_LENGTH): Remove.
7580 (CALL_DUMMY_START_OFFSET): Remove.
7581 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7582 (FIX_CALL_DUMMY): Remove.
7583 (PUSH_DUMMY_FRAME): Remove.
7584 (POP_FRAME): Remove.
7586 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7588 * parse.c (parse_fprintf): New function used to avoid calls to
7589 fprintf in bison parser generated debug code.
7590 * parser-defs.h: Declaration of new parse_fprintf function.
7591 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7592 Set YYDEBUG to 1 by default.
7593 Set YYFPRINTF as parse_fprintf.
7595 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7597 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7599 (pointer_encoding, enum ptr_encoding): New.
7600 (execute_cfa_program): Take care about pointer encoding.
7601 (dwarf2_build_frame_info): Only call parse_frame_info for
7602 .debug_frame and .eh_frame.
7603 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7604 fixed augmentation handling, added relative addressing,
7605 ignore duplicate FDEs. Added comments.
7606 * dwarf2cfi.c: Reindented.
7608 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7610 * event-top.c (command_handler): Don't use space_at_cmd_start
7611 unless there is sbrk() on the host. Assign time and space data
7612 to union fields of the appropriate length.
7614 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7616 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7617 x86_64_register_name. Return type changed to 'const char *'.
7618 (x86_64_register_name2nr): Rename to x86_64_register_number.
7619 (x86_64_gdbarch_init): Update to reflect the change.
7620 * x86-64-tdep.h: Ditto.
7621 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7622 (supply_fpregset): Ditto.
7624 2002-06-19 Andrew Cagney <cagney@redhat.com>
7626 * regcache.h: Update copyright.
7627 (struct regcache, struct gdbarch): Add opaque declarations.
7628 (current_regcache): Declare global variable.
7629 (regcache_read, regcache_write): Add gdbarch parameter.
7630 (regcache_save, regcache_save_no_passthrough)
7631 (regcache_restore, regcache_restore_no_passthrough)
7632 (regcache_dup, regcache_dup_no_passthrough)
7633 (regcache_cpy, regcache_cpy_no_passthrough)
7634 (deprecated_grub_regcache_for_registers)
7635 (deprecated_grub_regcache_for_register_valid)
7636 (regcache_valid_p): Add function declarations.
7638 * regcache.c: Update copyright.
7639 (regcache_descr_handle): New global variable.
7640 (struct regcache_descr): Define.
7641 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7642 (regcache_descr, xfree_regcache_descr): New functions.
7643 (struct regcache): Define.
7644 (regcache_xmalloc, regcache_xfree): New functions.
7645 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7646 (regcache_dup, regcache_dup_no_passthrough): New functions.
7647 (regcache_valid_p, regcache_read_as_address): New functions.
7648 (deprecated_grub_regcache_for_registers): New function.
7649 (deprecated_grub_regcache_for_register_valid): New function.
7650 (current_regcache): New global variable.
7651 (register_buffer): Add regcache parameter. Update calls.
7652 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7653 (read_register_gen, write_register_gen): Update register_buffer
7654 call. Test for legacy_p instead of gdbarch_register_read_p or
7655 gdbarch_register_write_p.
7656 (regcache_collect): Update register_buffer call.
7657 (build_regcache): Rewrite. Use deprecated grub functions.
7658 (regcache_save, regcache_save_no_passthrough): New functions.
7659 (regcache_restore, regcache_restore_no_passthrough): New
7661 (_initialize_regcache): Create the regcache_data_handle. Swap
7662 current_regcache global variable.
7664 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7665 parameter to regcache_read and regcache_write calls.
7666 (sh4_register_read): Ditto.
7667 (sh64_pseudo_register_read): Ditto.
7668 (sh64_register_read): Ditto.
7669 (sh_pseudo_register_write): Ditto.
7670 (sh4_register_write): Ditto.
7671 (sh64_pseudo_register_write): Ditto.
7672 (sh64_register_write): Ditto.
7674 * defs.h (XCALLOC): Define.
7676 2002-06-19 Grace Sainsbury <graces@redhat.com>
7678 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7679 * m68k-tdep.c (m68k_gdbarch_init): Added.
7680 (m68k_dump_tdep): Added.
7682 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7684 * ada-lang.c (fill_in_ada_prototype): Update comment.
7686 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7688 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7690 (mips_abi_string, mips_abi_strings): New.
7691 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7692 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7693 tdep->mips_abi_string. Honor mips_abi_string. Default to
7694 O32 if no ABI is found.
7695 (mips_dump_tdep): Use mips_abi_strings.
7696 (mips_abi_update): New function.
7697 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7698 ``set mips abi'' and ``show mips abi''. Check the size of
7701 2002-06-19 Andrew Cagney <cagney@redhat.com>
7703 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7706 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7708 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7709 current frame using only the first stack size adjustment. All
7710 subsequent size adjustments are not considered to be part of
7711 the "static" part of the current frame.
7712 Compute the address of the saved registers relative to the
7713 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7714 in use in this frame.
7716 2002-06-18 Don Howard <dhoward@redhat.com>
7718 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7719 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7720 suggesting this solution.
7722 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7724 * config/romp/xm-rtbsd.h: Delete file.
7725 * config/romp/rtbsd.mh: Delete file.
7727 2002-06-18 Keith Seitz <keiths@redhat.com>
7729 * breakpoint.c (condition_command): Post breakpoint_modify
7730 when a condition is added to an existing breakpoint.
7731 (commands_command): Likewise for commands.
7732 (set_ignore_count): Likewise for ignore counts.
7733 If no tty, do not simply return, still need to send event
7735 (ignore_command): Only print a newline if the command came
7737 Don't call breakpoints_changed, since this is now properly
7738 handled by set_ignore_count.
7740 2002-06-18 Andrew Cagney <cagney@redhat.com>
7742 * MAINTAINERS: Note that cris-elf target can be compiled with
7744 * cris-tdep.c (cris_register_name): Make return type constant.
7745 (cris_breakpoint_from_pc): Ditto.
7747 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7749 * frame.h (struct frame_info): Change type of context to
7752 2002-06-17 Andrew Cagney <cagney@redhat.com>
7754 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7756 * gdbarch.h, gdbarch.c: Regenerate.
7757 * config/mips/tm-mips.h (mips_register_name): Update.
7758 * i386-tdep.h (i386_register_name): Update.
7759 * mips-tdep.c (mips_register_name): Update
7760 * alpha-tdep.c (alpha_register_name): Update.
7761 * arch-utils.c (legacy_register_name): Update.
7762 * arch-utils.h (legacy_register_name): Update.
7763 * avr-tdep.c (avr_register_name): Update.
7764 * ia64-tdep.c (ia64_register_name): Update.
7765 * i386-tdep.c (i386_register_name): Update.
7766 * sparc-tdep.c (sparc32_register_name): Update.
7767 (sparc64_register_name): Update.
7768 (sparclite_register_name): Update.
7769 (sparclet_register_name): Update.
7770 * sh-tdep.c (sh_generic_register_name): Update.
7771 (sh_sh_register_name): Update.
7772 (sh_sh3_register_name): Update.
7773 (sh_sh3e_register_name): Update.
7774 (sh_sh_dsp_register_name): Update.
7775 (sh_sh3_dsp_register_name): Update.
7776 (sh_sh4_register_name): Update.
7777 (sh_sh64_register_name): Update.
7778 * s390-tdep.c (s390_register_name): Update.
7779 * rs6000-tdep.c (rs6000_register_name): Update.
7780 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7781 (ns32k_register_name_32382): Update.
7782 * d10v-tdep.c (d10v_ts2_register_name): Update.
7783 (d10v_ts3_register_name): Update.
7784 * xstormy16-tdep.c (xstormy16_register_name): Update.
7785 * vax-tdep.c (vax_register_name): Update.
7786 * v850-tdep.c (v850_register_name): Update.
7787 * m68hc11-tdep.c (m68hc11_register_name): Update.
7788 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7789 (am33_register_name): Update.
7791 2002-06-17 Grace Sainsbury <graces@redhat.com>
7793 * m68k-tdep.c: Reindented.
7795 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7797 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7798 list of predefined types.
7800 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7802 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7803 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7804 REGISTER_CONVERT_TO_RAW): Remove defines.
7805 (i386_register_virtual_type, i386_register_convertible,
7806 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7808 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7809 macros mentioned above.
7811 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7812 (i386lynx_saved_pc_after_call): Remove prototype.
7813 * i386ly-tdep.c: Include "i386-tdep.h".
7814 (i386lynx_saved_pc_after_call): Make static. Use
7815 read_memory_nobpt instead of read_memory. Use
7816 read_memory_unsigned_integer instead of read_memory_integer.
7817 (i386lynx_init_abi): New function.
7818 (i386lynx_coff_osabi_sniffer): New function.
7819 (_initialize_i386bsd_tdep): New function.
7821 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7822 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7823 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7824 (i386_fix_call_dummy): Remove prototype.
7825 * i386-tdep.c (i386_call_dummy_words): New variable.
7826 (i386_gdbarch_init): Adjust for removal of the
7827 macros mentioned above.
7829 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7831 * command.h (add_setshow_auto_boolean_cmd): Replace
7832 add_set_auto_boolean_cmd.
7833 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7834 add_set_auto_boolean_cmd.
7835 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7836 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7837 mask-address'' command.
7838 (show_mask_address): Add cmd parameter.
7839 * remote.c (add_packet_config_cmd): Update. Change type of
7840 set_func and show_func to cmd_sfunc_ftype.
7841 (_initialize_remote): Update `set remote Z-packet'
7842 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7843 (show_remote_protocol_e_packet_cmd): Ditto.
7844 (show_remote_protocol_E_packet_cmd): Ditto.
7845 (show_remote_protocol_P_packet_cmd): Ditto.
7846 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7847 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7848 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7849 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7850 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7851 (show_remote_protocol_Z_packet_cmd): Ditto.
7852 (show_remote_protocol_binary_download_cmd): Ditto.
7853 (show_remote_cmd): Pass NULL to all of above.
7855 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7857 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7858 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7859 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7860 POP_FRAME): Remove defines.
7861 (i386_push_arguments, i386_store_struct_return,
7862 i386_extract_return_value, i386_store_return_value,
7863 i386_extract_struct_value_address, i386_push_dummy_frame,
7864 i386_pop_frame): Renove prototypes.
7865 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7866 macros mentioned above.
7868 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7870 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7871 add_set_boolean_cmd.
7872 (add_setshow_cmd): New function.
7873 * command.h (add_setshow_boolean_cmd): Replace
7874 add_set_boolean_cmd.
7875 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7876 and ``set rdiromatzero''.
7877 * maint.c (_initialize_maint_cmds): Update commented out code.
7878 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7879 * target.c (initialize_targets): Update `set
7880 trust-readonly-sections'.
7881 * remote.c (_initialize_remote): Update `set remotebreak'.
7883 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7885 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7886 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7887 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7888 fit into multi-arch framework.
7889 (i386_breakpoint_from_pc): New function.
7890 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7893 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7894 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7895 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7896 (i386_frameless_function_invocation, i386_frame_num_args,
7897 i386_frame_init_saved_regs): Remove prototypes.
7898 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7899 macros mentioned above.
7901 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7903 * cli/cli-decode.c (set_cmd_cfunc): Update.
7904 (set_cmd_sfunc): Update.
7905 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7906 (set_cmd_sfunc, set_cmd_cfunc): Update.
7907 * cli/cli-decode.h: Update.
7909 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7911 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7912 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7914 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7916 * defs.h (auto_boolean): Declare enum.
7917 * command.h (cmd_auto_boolean): Delete enum.
7918 * mips-tdep.c (mask_address_var): Update.
7919 (mips_mask_address_p): Update.
7920 (show_mask_address): Update.
7921 * remote.c (struct packet_config): Update.
7922 (update_packet_config): Update.
7923 (show_packet_config_cmd): Update.
7924 (packet_ok): Update.
7925 (add_packet_config_cmd): Update.
7926 (_initialize_remote):
7927 * command.h: Update.
7928 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7929 (do_setshow_command): Update.
7930 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7931 * cli/cli-decode.h: Update.
7933 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7935 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7936 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7937 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7938 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7939 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7940 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7942 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7943 list of DJGPP COFF targets.
7945 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7946 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7947 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7948 (FP0_REGNUM): Remove define.
7949 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7950 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7951 (i386_register_virtual_size): Remove protoype.
7952 * i386-tdep.c (i386_register_virtual_size): Removed.
7953 (i386_extract_return_value, i386_store_return_value): Use
7954 FP0_REGNUM instead of NUM_FREGS to determine whether the
7955 floating-point registers are available.
7956 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7957 Adjust for removal of macros mentioned above.
7959 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7961 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7963 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7965 (supply_gregset, fill_gregset): Remove use of register keyword and
7966 remove declaration for regmap. Use I386_NUM_GREGS instead of
7967 NUM_REGS and NUM_FREGS.
7968 (FPREGSET_FSAVE_OFFSET): Remove.
7969 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7970 NUM_FREGS to determine whether the floating-point registers are
7973 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7974 gnu_store_registers): Replace usage of NUM_GREGS with
7977 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7978 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7979 usage of NUM_GREGS with I386_NUM_GREGS.
7981 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7983 * i386bsd-nat.c: Include "i386-tdep.h".
7984 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7987 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7988 and associated comment. They no longer make any sense, since we
7989 don't use this file anymore on Linux.
7991 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7992 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7993 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7994 elements in these arrays.
7995 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7998 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8000 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8001 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8003 2002-06-14 Andrew Cagney <cagney@redhat.com>
8005 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8006 EXTRACT_RETURN_VALUE.
8007 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8008 EXTRACT_STRUCT_VALUE_ADDRESS.
8009 * gdbarch.h, gdbarch.c: Regenerate.
8011 * values.c (value_being_returned): Handle
8012 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8013 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8015 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8016 * arm-tdep.c (arm_gdbarch_init): Update.
8017 * avr-tdep.c (avr_gdbarch_init): Update.
8018 * cris-tdep.c (cris_gdbarch_init): Update.
8019 * d10v-tdep.c (d10v_gdbarch_init): Update.
8020 * ia64-tdep.c (ia64_gdbarch_init): Update.
8021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8023 * s390-tdep.c (s390_gdbarch_init): Update.
8024 * sh-tdep.c (sh_gdbarch_init): Update.
8025 * s390-tdep.c (s390_gdbarch_init): Update.
8026 * sparc-tdep.c (sparc_gdbarch_init): Update.
8027 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8028 * v850-tdep.c (v850_gdbarch_init): Update.
8029 * vax-tdep.c (vax_gdbarch_init): Update.
8030 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8033 * config/arc/tm-arc.h: Update.
8034 * config/d30v/tm-d30v.h: Update.
8035 * config/fr30/tm-fr30.h: Update.
8036 * config/h8300/tm-h8300.h: Update.
8037 * config/h8500/tm-h8500.h: Update.
8038 * config/i386/tm-i386.h: Update.
8039 * config/i386/tm-ptx.h: Update.
8040 * config/i386/tm-symmetry.h: Update.
8041 * config/i960/tm-i960.h: Update.
8042 * config/m32r/tm-m32r.h: Update.
8043 * config/m68k/tm-delta68.h: Update.
8044 * config/m68k/tm-linux.h: Update.
8045 * config/m68k/tm-m68k.h: Update.
8046 * config/m88k/tm-m88k.h: Update.
8047 * config/mcore/tm-mcore.h: Update.
8048 * config/mips/tm-mips.h: Update.
8049 * config/mn10200/tm-mn10200.h: Update.
8050 * config/pa/tm-hppa.h: Update.
8051 * config/pa/tm-hppa64.h: Update.
8052 * config/sparc/tm-sp64.h: Update.
8053 * config/sparc/tm-sparc.h: Update.
8054 * config/sparc/tm-sparclet.h: Update.
8055 * config/z8k/tm-z8k.h: Update.
8057 2002-06-14 Andrew Cagney <cagney@redhat.com>
8059 * Makefile.in (i386_linux_tdep_h): Define.
8060 (i386_tdep_h, i387_tdep_h): Define.
8061 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8062 $(i386_tdep_h) and $(i387_tdep_h).
8063 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8065 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8067 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8068 Already covered by the default.
8070 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8071 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8072 (i386_gdbarch_init): Initialize long_double_format and long_double
8075 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8076 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8078 * config/i386/i386sol2.mh: ... here.
8079 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8080 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8081 (SIGCONTEXT_PC_OFFSET): Remove define.
8082 (IN_SIGTRAMP): Remove define.
8083 * i386-sol2-tdep.c: New file.
8085 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8086 * config/i386/tm-i386nw.h: Removed.
8088 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8089 USE_STRUCT_CONVENTION): Remove defines.
8090 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8091 (get_longjmp_target): Remove prototype.
8092 (IN_SIGTRAMP): Remove define.
8093 (i386bsd_in_sigtramp): Remove prototype.
8094 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8095 function. Update comment accordingly
8096 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8097 (FRAME_SAVED_PC): Remove define.
8098 (i386bsd_frame_saved_pc): Remove prototype.
8099 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8100 GET_LONGJMP_TARGET): Remove defines.
8101 (get_longjmp_target): Remove prototype.
8102 (IN_SIGTRAMP): Remove define.
8103 (i386bsd_in_sigtramp): Remove prototype.
8104 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8105 function. Update comment accordingly
8106 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8107 (FRAME_SAVED_PC): Remove define.
8108 (i386bsd_frame_saved_pc): Remove prototype.
8109 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8111 (USE_STRUCT_CONVENTION): Remove prototype.
8112 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8114 (_initialize_i386bsd_nat): Revise logic to determine some
8115 constants at compile time when compiling a native GDB. Warn if
8116 things don't match up with what we expect.
8117 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8119 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8120 to use date stored in `struct gdbarch_tdep'.
8121 (i386bsd_sigcontext_offset): Remove varaible.
8122 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8123 stored in `struct gdbarch_tdep'.
8124 (i386bsd_frame_saved_pc): Make static.
8125 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8126 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8127 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8128 i386fbsd4_sc_pc_offset): New variables.
8129 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8130 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8132 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8134 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8135 Modify the value of i386fbsd_sigtramp_start and
8136 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8137 i386fbsd_sigtramp_end.
8138 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8141 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8142 define to i386-linux-tdep.h.
8143 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8144 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8146 (i386_linux_register_name, i386_linux_register_byte,
8147 i386_linux_register_raw_size): Remove prototypes.
8148 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8149 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8150 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8151 TARGET_WRITE_PC): Remove defines.
8152 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8153 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8154 i386_linux_write_pc): Remove prototypes.
8155 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8156 (get_longjmp_target): Remove prototype.
8157 * i386-linux-tdep.h: New file.
8158 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8159 * i386-linux-tdep.c: Include "i386-tdep.h" and
8160 "i386-linux-tdep.h".
8161 (i386_linux_register_name, i386_linux_register_byte,
8162 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8163 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8165 (i386_linux_init_abi): New function.
8166 (_initialize_i386_linux_tdep): New function.
8168 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8169 (i386_saved_pc_after_call): Remove prototype.
8170 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8171 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8172 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8173 (i386_register_name, i386_stab_reg_to_regnum,
8174 i386_dwarf_reg_to_regnum): Remove prototypes.
8175 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8176 SIZEOF_SSE_REGS): Remove defines.
8177 (REGISTER_BYTES): Remove define.
8178 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8179 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8180 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8181 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8182 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8183 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8184 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8185 (get_longjmp_target): Remove prototype.
8186 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8187 (sigtramp_saved_pc): Remove define.
8188 (i386v4_sigtramp_saved_pc): Remove prototype.
8189 * config/i386/tm-go32.h (FRAME_CHAIN,
8190 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8191 (i386go32_frame_saved_pc): Remove prototype.
8192 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8193 (get_longjmp_target): Remove prototype.
8194 * i386-tdep.h: Include "osabi.h".
8195 (enum i386_abi): Removed.
8196 (enum struct_return): New enum.
8197 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8198 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8199 sc_pc_offset members.
8200 (i386_gdbarch_register_os_abi): Remove prototype.
8201 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8202 I386_SSE_NUM_REGS): New defines.
8203 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8204 I386_SSE_SIZEOF_REGS): New defines.
8205 (i386_register_name, i386_register_byte, i386_register_raw_size):
8207 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8208 (i386bsd_sigtramp_saved_pc): New prototype.
8209 * i386-tdep.c: Don't include "elf-bfd.h".
8210 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8211 i386_frame_chain, i386_saved_pc_after_call): Make static.
8212 (i386_frame_saved_pc): Rewrite to call architecture dependent
8213 function to deal with signal handlers. Make static.
8214 (i386go32_frame_saved_pc): Removed.
8215 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8217 (i386_get_longjmp_target): New function.
8218 (default_struct_convention, pcc_struct_convention,
8219 reg_struct_convention, valid_conventions, struct_convention): New
8221 (i386_use_struct_convention): New function.
8222 (i386v4_sigtramp_saved_pc): Renamed to
8223 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8224 (i386_pc_in_sigtramp): New function.
8225 (i386_abi_names): Removed.
8226 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8227 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8229 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8230 i386_gdbarch_register_os_abi): Removed.
8231 (struct i386_abi_handler): Removed.
8232 (i386_abi_handler_list): Removed.
8233 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8235 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8236 i386_nw_init_abi): New functions.
8237 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8238 Use set_gdbarch_xxx() calls instead of relying on macros for a
8240 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8241 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8242 Register the various architecture variants defined in this file.
8244 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8246 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8247 (struct main_type): Remove arg_types member. Update comments for
8249 (TYPE_ARG_TYPES): Remove.
8250 (TYPE_FN_FIELD_ARGS): Update.
8251 (smash_to_method_type): Update prototype.
8253 * c-typeprint.c (cp_type_print_method_args): Take method type
8254 instead of argument list. Use new argument layout. Simplify.
8255 (c_type_print_args): Use new argument layout. Simplify.
8256 (c_type_print_base): Update call to cp_type_print_method_args.
8257 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8258 argument; use die->type instead. Update call to
8259 smash_to_method_type.
8260 (read_structure_scope): Update call to dwarf2_add_member_fn.
8261 * gdbtypes.c (allocate_stub_method): Update comment.
8262 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8263 Use new argument layout.
8264 (check_stub_method): Use new argument layout. Don't count
8265 void as an argument.
8266 (print_arg_types): Update comments. Use new argument layout.
8267 (recursive_dump_type): Don't print arg_types member.
8268 * hpread.c (hpread_read_struct_type): Use new argument layout.
8269 (fixup_class_method_type): Likewise.
8270 (hpread_type_lookup): Likewise.
8271 * stabsread.c (read_type): Update calls to read_args and
8272 smash_to_method_type.
8273 (read_args): Use new argument layout. Simplify.
8274 * valops.c (typecmp): Use new argument layout. Update parameters
8275 and comments. Simplify.
8276 (hand_function_call): Use new argument layout.
8277 (search_struct_method): Update call to typecmp.
8278 (find_overload_match): Use new argument layout.
8280 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8282 * NEWS: Mention multithreaded debug support for gdbserver.
8284 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8286 * MAINTAINERS: Mention NEWS.
8288 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8290 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8291 (struct mips_objfile_private, compare_pdr_entries): New.
8292 (non_heuristic_proc_desc): Read the ".pdr" section if it
8295 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8297 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8298 (arm_debug): New static variable.
8299 (_initialize_arm_tdep): Add ``set debug arm'' command.
8301 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8303 * Makefile.in (sim_arm_h): Define.
8304 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8305 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8306 (arm_register_sim_regno): New function, map an internal REGNUM
8307 onto a simulator register number.
8308 (arm_gdbarch_init): Set register_sim_regno.
8310 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8312 * MAINTAINERS: Add self.
8314 2002-06-11 Jim Blandy <jimb@redhat.com>
8316 * source.c (source_info): Mention whether the symtab has
8317 information about preprocessor macros.
8319 Call the command `info macro', not `show macro'.
8320 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8322 (_initialize_macrocmd): Register `info_macro_command' in
8323 `infolist', not `showlist'.
8325 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8327 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8328 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8329 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8330 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8331 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8333 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8334 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8335 (_initialize_mips_tdep): Remove dead code.
8336 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8337 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8338 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8339 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8340 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8341 MIPS_LAST_FP_ARG_REGNUM): Remove.
8343 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8345 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8346 (unwind_tmp_obstack_free, parse_frame_info)
8347 (update_context, cfi_read_fp, cfi_write_fp)
8348 (cfi_frame_chain, cfi_init_extra_frame_info)
8349 (cfi_virtual_frame_pointer): Use the above function.
8350 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8352 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8354 * v850-tdep.c (v850_type_is_scalar): New function.
8355 (v850_use_struct_convention): Match current gcc implementation
8356 as close as possible.
8357 (v850_push_arguments): Fix stack_offset handling. Don't write
8358 struct_addr into register. This is done by v850_store_struct_return.
8359 (v850_extract_return_value): Care for structs.
8360 (v850_store_return_value): Ditto.
8361 (v850_store_struct_return): Actually write address.
8363 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8365 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8366 without debug information too.
8368 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8370 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8371 Make multi-arch pure.
8372 * gdbarch.h, gdbarch.c: Re-generate.
8373 * arm-tdep.c (arm_print_float_info): Update.
8374 * arch-utils.h (default_print_float_info): Update.
8375 * arch-utils.c (default_print_float_info): Update.
8376 * infcmd.c (float_info): Update call.
8378 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8380 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8381 the front of the initialize list.
8383 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8385 * infrun.c (struct inferior_status): Replace fields
8386 selected_frame_address and selected_level with field
8388 (save_inferior_status): Update. Use get_frame_id.
8389 (struct restore_selected_frame_args): Delete.
8390 (restore_selected_frame): Update. Use frame_find_by_id.
8391 (restore_inferior_status): Update.
8393 * breakpoint.h (struct breakpoint): Change type of
8394 watchpoint_frame to frame_id.
8395 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8396 call to get_current_frame.
8397 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8399 (watchpoint_check): Use frame_find_by_id.
8401 * frame.h (record_selected_frame): Delete declaration.
8402 * stack.c (record_selected_frame): Delete function.
8404 * frame.h (struct frame_id): Define.
8405 (get_frame_id): Declare.
8406 (frame_find_by_id): Declare.
8407 * frame.c (frame_find_by_id): New function.
8408 (get_frame_id): New function.
8410 2002-06-10 Andrey Volkov <avolkov@transas.com>
8412 * ser-e7kpc.c: Fix duplicated define and call of
8413 _initialize_ser_e7000pc
8415 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8417 * signals/signals.c (target_signal_from_host): Fix #ifdef
8419 (do_target_signal_to_host): Likewise.
8421 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8423 * mips-tdep.c (mips_find_abi_section): New function.
8424 (mips_gdbarch_init): Call it.
8426 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8428 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8429 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8430 after Andrew's 2002-06-08 gdbarch change.
8432 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8434 * i386-linux-nat.c (suppy_gregset): Don't supply
8435 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8437 (fill_gregset): Don't fetch it under the same circumstances.
8439 2002-06-09 Andrew Cagney <cagney@redhat.com>
8441 * Makefile.in (callback_h): Define.
8442 (remote_sim_h): Update path to remote-sim.h.
8443 (remote-rdp.o): Add $(callback_h).
8444 (remote-sim.o): Use $(callback_h).
8445 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8446 * remote-rdp.c: Include "gdb/callback.h".
8448 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8450 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8451 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8453 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8455 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8456 * rdi-share/serpardr.c: Ditto.
8457 * rdi-share/unixcomm.c: Ditto.
8458 * rdi-share/serdrv.c: Ditto.
8459 * rdi-share/hostchan.h: Ditto.
8460 * rdi-share/hostchan.c: Ditto.
8461 * rdi-share/host.h: Ditto.
8462 * rdi-share/devsw.c: Ditto.
8464 * objfiles.h: Change type of obj_private to void pointer.
8465 * pa64solib.c: Update copyright. Don't include "assert.h", use
8466 strcmp instead of STREQ, use LONGEST, do not use PTR
8467 * somsolib.c: Ditto.
8469 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8470 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8471 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8473 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8475 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8476 (default_get_saved_register): Delete function.
8477 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8478 generic_unwind_get_saved_register.
8479 * gdbarch.h, gdbarch.c: Re-generate.
8481 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8483 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8484 generic_func_frame_chain_valid.
8485 * gdbarch.h, gdbarch.c: Re-generate.
8486 * blockframe.c (generic_func_frame_chain_valid): Only check
8487 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8488 passing FP to PC_IN_CALL_DUMMY.
8491 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8493 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8494 (register_gdbarch_data): Initialize init_p.
8495 (gdbarch_data): Initialize data pointer using the init function.
8496 (init_gdbarch_data): Delete function.
8497 (gdbarch_update_p): Update.
8498 (initialize_non_multiarch): Update.
8499 (struct gdbarch): Add field initialized_p.
8500 * gdbarch.h, gdbarch.c: Re-generate.
8502 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8504 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8505 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8506 better do the things actually here.
8507 * x86-64-tdep.c (x86_64_register_name2nr): New.
8508 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8509 (x86_64_gdbarch_init): Respect the above change.
8510 * x86-64-tdep.h (x86_64_register_name2nr)
8511 (x86_64_register_nr2name): Add prototypes.
8512 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8514 2002-06-06 Michael Snyder <msnyder@redhat.com>
8516 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8517 Delete extra braces and re-indent.
8518 (d10v_store_return_value): Char return values
8519 must be shifted over by one byte in R0.
8520 (d10v_extract_return_value): Delete extra braces, re-indent.
8522 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8524 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8525 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8526 (d10v_integer_to_address): Rewrite.
8527 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8528 the d10v specific functions which take care of converting to the
8531 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8533 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8534 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8536 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8538 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8540 * config/tm-linux.h: Ditto.
8541 * config/alpha/tm-alphalinux.h: Ditto.
8542 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8543 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8544 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8545 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8546 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8547 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8548 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8549 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8550 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8551 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8552 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8553 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8554 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8555 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8556 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8557 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8558 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8559 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8560 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8561 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8562 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8563 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8564 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8565 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8566 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8567 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8568 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8569 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8570 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8571 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8572 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8573 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8574 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8575 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8576 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8577 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8578 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8580 2002-05-04 Aidan Skinner <aidan@velvet.net>
8582 * ada-exp.tab.c: New file
8583 * ada-exp.y: New file
8584 * ada-lang.c: New file
8585 * ada-lang.h: New file
8586 * ada-lex.c: New file
8587 * ada-lex.l: New file
8588 * ada-tasks.c: New file
8589 * ada-typeprint.c: New file
8590 * ada-valprint.c: New file
8592 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8594 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8595 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8597 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8599 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8600 insetead of ppc-linux-tdep.o.
8601 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8602 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8604 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8606 2002-05-07 Christian Groessler <chris@groessler.org>
8607 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8608 bit register contents for little endian hosts.
8610 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8612 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8615 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8617 * gdbarch.h: Regenerate.
8619 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8621 * MAINTAINERS: Add everyone to write-after-approval list.
8623 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8625 * stack.c (frame_info): Use frame_register_unwind instead of
8626 saved_regs. Mention when the SP is on the stack or in a register.
8628 * frame.h (frame_register_unwind_ftype): Define. Document.
8629 (struct frame_info): Add field register_unwind and
8630 register_unwind_cache.
8631 (frame_register_unwind): Declare.
8632 (generic_unwind_get_saved_register): Declare.
8634 * frame.c (frame_register_unwind): New function.
8635 (generic_unwind_get_saved_register): New function.
8637 * blockframe.c (generic_call_dummy_register_unwind): New function.
8638 (frame_saved_regs_register_unwind): New function.
8639 (set_unwind_by_pc): New function.
8640 (create_new_frame): New function.
8641 (get_prev_frame): New function.
8643 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8645 * a29k-share/: Delete directory.
8646 * remote-vx29k.c: Delete file.
8648 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8650 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8651 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8653 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8655 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8656 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8659 (sparcnbsd-tdep.o): New dependency lists.
8660 * NEWS: Note new UltraSPARC NetBSD native configuration.
8661 * configure.host (sparc64-*-netbsd*): New host.
8662 * configure.tgt (sparc-*-netbsdelf*)
8663 (sparc-*-netbsd*): Set gdb_target to nbsd.
8664 (sparc64-*-netbsd*): New target.
8665 * sparc64nbsd-nat.c: New file.
8666 * sparcnbsd-nat.c: New file.
8667 * sparcnbsd-tdep.c: New file.
8668 * sparcnbsd-tdep.h: New file.
8669 * config/sparc/nbsd.mt: New file.
8670 * config/sparc/nbsd64.mh: New file.
8671 * config/sparc/nbsd64.mt: New file.
8672 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8673 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8675 * config/sparc/nbsdaout.mt: Remove.
8676 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8677 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8679 * config/sparc/nbsdelf.mt: Remove.
8680 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8681 sparc-nat.c compatiblity defines.
8682 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8683 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8684 * config/sparc/tm-nbsd64.h: New file.
8685 * config/sparc/tm-nbsdaout.h: Remove.
8686 * config/sparc/xm-nbsd.h: Remove.
8688 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8690 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8691 * sparc-tdep.c: Include osabi.h.
8692 (gdbarch_tdep): Add osabi member.
8693 (_initialize_sparc_tdep): Use gdbarch_register.
8694 (sparc_gdbarch_init): Use generic OS ABI framework.
8695 (sparc_dump_tdep): New function.
8697 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8699 * corefile.c (do_captured_read_memory_integer): Return non-zero
8701 (safe_read_memory_integer): Copy result of memory read when
8702 status is non-zero. Also, add comments.
8704 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8706 * Makefile.in (ppc_tdep_h): Define.
8709 (rs6000-tdep.o): Use $(ppc_tdep_h).
8712 (ppcnbsd-tdep.o): New dependency lists.
8713 * ppc-tdep.h: Use generic OS ABI framework.
8714 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8715 (ppc_linux_init_abi): New functions.
8716 (ppc_sysv_abi_broken_use_struct_convention)
8717 (ppc_sysv_abi_use_struct_convention)
8718 (ppc_sysv_abi_push_arguments): Move to...
8719 * ppc-sysv-tdep.c: ...here.
8720 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8721 * rs6000-tdep.c (process_note_abi_tag_sections)
8722 (get_elfosabi): Remove.
8723 (rs6000_gdbarch_init): Use generic OS ABI framework.
8724 (rs6000_dump_tdep): New function.
8725 (_initialize_rs6000_tdep): Use gdbarch_register.
8726 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8727 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8728 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8729 of ppc-linux-tdep.o.
8730 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8731 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8732 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8733 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8734 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8735 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8737 2002-05-29 Jim Blandy <jimb@redhat.com>
8739 * macroscope.c (default_macro_scope): Put `void' in empty argument
8742 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8744 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8745 * arch-utils.c: Include "sim-regno.h".
8746 * gdbarch.sh: Don't include "sim-regno.h".
8747 * gdbarch.h, gdbarch.c: Regenerate.
8748 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8750 * arch-utils.h (legacy_register_sim_regno): To here.
8751 * remote-sim.c (legacy_register_sim_regno): Move function from
8753 * arch-utils.c (legacy_register_sim_regno): To here.
8755 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8757 * sim-regno.h: New file.
8758 * Makefile.in (sim_regno_h): Define.
8759 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8760 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8761 (legacy_register_sim_regno): New function.
8762 (one2one_register_sim_regno): New function.
8763 (gdbsim_fetch_register): Rewrite.
8764 (gdbsim_store_register): Only store a register when
8765 REGISTER_SIM_REGNO is valid.
8766 * d10v-tdep.c: Include "sim-regno.h".
8767 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8768 (d10v_ts3_register_sim_regno): Ditto.
8769 * gdbarch.sh: Include "sim-regno.h".
8770 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8771 * gdbarch.h, gdbarch.c: Regenerate.
8772 * arch-utils.h (default_register_sim_regno): Delete declaration.
8773 * arch-utils.c (default_register_sim_regno): Delete function.
8775 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8777 * ppcnbsd-nat.c: Rewrite.
8778 * ppcnbsd-tdep.c: New file.
8779 * ppcnbsd-tdep.h: New file.
8780 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8781 solib.o, and solib-svr4.o.
8782 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8783 nbsd-tdep.o, and corelow.o.
8785 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8787 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8788 `tr' and `sed'. Mention that `broken' targets are not expected to
8791 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8793 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8794 Let PC point right after the prologue before looking up symbols.
8796 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8798 * i386-tdep.c (i386_register_virtual_type): Return
8799 builtin_type_vec128i for SSE registers.
8801 * gdbtypes.h (builtin_type_vec128i): Declare.
8803 * gdbtypes.c (build_builtin_type_vec128i): New function.
8804 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8805 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8806 (build_gdbtypes): Initialize new builtin vector types.
8807 (_initialize_gdbtypes): Register new vector types with gdbarch.
8809 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8811 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8812 since it has been multi-arch'd.
8813 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8814 Move Alpha and VAX multi-arch news entries to same section
8815 as other multi-arch news.
8817 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8819 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8820 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8821 static. Rename some register numbers to put them in ns32k-tdep
8823 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8824 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8826 (_initialize_ns32k_tdep): Use gdbarch_register.
8827 * ns32k-tdep.h: New file.
8828 * ns32knbsd-tdep.c: New file.
8829 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8830 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8831 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8832 REGISTER_BYTES, REGISTER_BYTE): Remove.
8833 * config/ns32k/tm-ns32k.h: New file.
8834 * config/ns32k/tm-umax.h: Remove.
8836 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8838 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8839 ns32k_store_struct_return, ns32k_extract_return_value,
8840 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8842 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8843 ns32k_saved_pc_after_call.
8844 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8845 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8846 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8847 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8848 ns32k_extract_struct_value_address.
8850 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8852 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8853 ns32k_fix_call_dummy): New.
8854 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8855 ns32k_call_dummy_words.
8856 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8857 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8858 CALL_DUMMY_NARGS): Remove.
8859 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8863 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8864 ns32k_frame_saved_pc, ns32k_frame_args_address,
8865 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8866 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8867 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8868 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8869 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8870 (BREAKPOINT): Remove..
8871 (FRAME_CHAIN): Define as ns32k_frame_chain.
8872 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8873 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8874 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8875 (FRAME_FIND_SAVED_REGS): Remove.
8876 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8877 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8878 (POP_FRAME): Define as ns32k_pop_frame.
8880 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8882 * ns32k-tdep.c (ns32k_register_byte_32082,
8883 ns32k_register_byte_32382, ns32k_register_raw_size,
8884 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8886 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8887 ns32k_register_byte_32382.
8888 * config/ns32k/tm-umax.h: Update copyright years.
8889 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8890 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8891 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8892 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8893 (ns32k_get_enter_addr): Fix prototype.
8895 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8897 * ns32k-tdep.c: Update copyright years.
8898 (ns32k_register_name_32082): New function.
8899 (ns32k_register_name_32382): Ditto.
8900 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8901 (REGISTER_NAME): Define as ns32k_register_name_32382.
8902 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8903 (REGISTER_NAME): Define as ns32k_register_name_32082.
8905 2002-05-24 Jim Blandy <jimb@redhat.com>
8907 * dwarf2read.c (free_line_header): Use xfree, not free.
8909 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8911 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8912 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8914 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8916 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8918 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8920 From Ross Alexander at NEC Europe:
8921 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8923 2002-05-23 Michael Snyder <msnyder@redhat.com>
8925 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8926 for input, rather than parse_and_eval_address.
8928 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8930 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8931 * Makefile.in (sim_d10v_h): Update definition.
8933 2002-05-24 Andrew Cagney <cagney@redhat.com>
8935 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8936 change `2002-05-22 Michael Snyder' below.
8937 (d10v_push_arguments): Ditto.
8938 (d10v_extract_return_value): Ditto.
8940 2002-05-23 Jim Blandy <jimb@redhat.com>
8942 * macrotab.c (check_for_redefinition): Don't complain if the new
8943 definition is the same as the previous one. Take more arguments
8944 to allow the comparison.
8945 (macro_define_object, macro_define_function): Pass more arguments
8946 to check_for_redefinition.
8948 2002-05-22 Michael Snyder <msnyder@redhat.com>
8950 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8951 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8952 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8953 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8954 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8955 Add a temp variable to save a call (and a memory read).
8956 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8957 if possible (so that PC_IN_CALL_DUMMY will work).
8959 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8961 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8963 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8965 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8967 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8968 (dwarf2_build_frame_info): Add offset to fde->initial_location
8969 so that frames of shared libraries are mapped correctly.
8970 (execute_stack_op): Change type of 'result' from ULONGEST to
8973 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8975 * config/alpha/tm-nbsd.h: Include solib.h.
8977 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8979 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8980 assumptions about the host's byte order.
8982 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8984 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8986 * alphanbsd-tdep.c: Include solib-svr4.h.
8987 * shnbsd-tdep.c: Ditto.
8989 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8991 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8992 nbsd-tdep.h to dependency list.
8993 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8994 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8995 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8996 nbsdaout.mh and nbsdelf.mh consistently.
8997 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8998 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8999 nbsdaout.mt and nbsdelf.mh consistently.
9000 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9001 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9002 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9003 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9004 a.out shared library stuff from here...
9005 * config/nm-nbsdaout.h: ...to here.
9006 * config/tm-nbsd.h: Remove.
9007 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9008 * config/arm/nbsd.mh: Remove.
9009 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9011 * config/arm/nbsdaout.mh: New file.
9012 * config/arm/nbsdelf.mh: New file.
9013 * config/arm/nm-nbsdaout.h: New file.
9014 * config/i386/nbsd.mh: Remove.
9015 * config/i386/nbsd.mt: Remove.
9016 * config/i386/nbsdaout.mh: New file.
9017 * config/i386/nbsdaout.mt: New file.
9018 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9019 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9020 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9021 i386_register_u_addr): Remove.
9022 * config/i386/nm-nbsdaout.h: New file.
9023 * config/i386/nm-nbsdelf.h: Remove.
9024 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9025 (USE_STRUCT_CONVENTION): Remove.
9026 * config/i386/tm-nbsdaout.h: New file.
9027 * config/i386/tm-nbsdelf.h: Remove.
9028 * config/m68k/nbsd.mh: Remove.
9029 * config/m68k/nbsd.mt: Remove.
9030 * config/m68k/nbsdaout.mh: New file.
9031 * config/m68k/nbsdaout.mt: New file.
9032 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9033 * config/m68k/nm-nbsdaout.h: New file.
9034 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9035 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9036 * config/ns32k/nbsd.mh: Remove.
9037 * config/ns32k/nbsd.mt: Remove.
9038 * config/ns32k/nbsdaout.mh: New file.
9039 * config/ns32k/nbsdaout.mt: New file.
9040 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9041 * config/ns32k/nm-nbsdaout.h: New file.
9042 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9043 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9044 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9045 (SVR4_SHARED_LIBS): Remove.
9046 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9047 * config/sparc/nbsd.mh: Remove.
9048 * config/sparc/nbsd.mt: Remove.
9049 * config/sparc/nbsdaout.mh: New file.
9050 * config/sparc/nbsdaout.mt: New file.
9051 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9052 * config/sparc/nbsdelf.mt: New file.
9053 * config/sparc/nm-nbsdaout.h: New file.
9054 * config/sparc/nm-nbsdelf.h: Remove.
9055 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9056 * config/sparc/tm-nbsdaout.h: New file.
9058 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9060 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9062 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9064 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9066 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9068 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9070 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9072 * NEWS: Note new MIPS NetBSD native configuration.
9073 * configure.host (mips*-*-netbsd*): New host.
9074 * configure.tgt (mips*-*-netbsd*): New target.
9075 * mipsnbsd-nat.c: New file.
9076 * mipsnbsd-tdep.c: New file.
9077 * mipsnbsd-tdep.h: New file.
9078 * config/mips/nbsd.mh: New file.
9079 * config/mips/nbsd.mt: New file.
9080 * config/mips/nm-nbsd.h: New file.
9081 * config/mips/tm-nbsd.h: New file.
9083 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9085 * Makefile.in (SFILES): Add osabi.c.
9086 (COMMON_OBS): Add osabi.o.
9087 (osabi.o): New dependency list.
9088 * osabi.c: New file.
9089 * osabi.h: New file.
9090 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9092 * Makefile.in (alpha_tdep_h): Define and use instead of
9094 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9095 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9097 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9098 * alpha-tdep.h: Include osabi.h.
9099 (alpha_abi): Remove.
9100 (gdbarch_tdep): Use generic OS ABI framework.
9101 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9102 gdbarch_register_osabi.
9103 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9104 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9105 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9107 * Makefile.in (sh_tdep_h): Add osabi.h.
9108 * sh-tdep.h (sh_osabi): Remove.
9109 (gdbarch_tdep): Use generic OS ABI framework.
9110 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9111 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9112 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9113 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9115 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9116 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9117 gdbarch_register_osabi.
9118 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9119 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9120 (get_elfosabi): Rename to...
9121 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9122 ABI framework support routines.
9123 (arm_gdbarch_init): Use generic OS ABI framework.
9124 (arm_dump_tdep): Likewise.
9125 (_initialize_arm_tdep): Likewise.
9126 * arm-tdep.h: Include osabi.h.
9128 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9130 (arm_gdbarch_register_os_abi): Remove prototype.
9131 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9132 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9134 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9135 * mips-tdep.c: Include osabi.h.
9136 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9139 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9141 * h8300-tdep.c: Fix formatting.
9143 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9145 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9146 printing vector registers.
9148 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9150 From Fernando Nasser:
9151 * remote.c (remote_async_open_1): Re-throw the exception when the
9153 (remote_cisco_open): Ditto.
9154 (remote_open_1): Ditto.
9156 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9158 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9159 (remote_start_remote): Add uiout parameter. Pass through to
9160 remote_start_remote_dummy.
9161 (remote_open_1): Use catch_exception instead of catch_errors.
9162 (remote_async_open_1): Ditto.
9163 (remote_cisco_open): Ditto.
9165 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9167 * remote.c (remote_start_remote): Replace PTR with void pointer.
9168 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9171 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9173 * gdb_indent.sh: Allow the script to be run in the sim directory.
9175 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9177 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9178 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9180 * corelow.c (core_open): Only call set_gdbarch_from_file if
9183 2002-05-17 Andrey Volkov <avolkov@transas.com>
9185 * h8300-tdep.c: Add support of EXR register
9186 * config/h8300/tm-h8300.h: Ditto.
9188 2002-05-17 Andrey Volkov <avolkov@transas.com>
9190 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9192 2002-05-17 Andrey Volkov <avolkov@transas.com>
9194 * h8300-tdep.c: Change literal regnums to REGNO.
9196 2002-05-17 Jim Blandy <jimb@redhat.com>
9198 * NEWS: Note addition of macro support.
9200 Expand preprocessor macros in C expressions.
9201 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9202 (scan_macro_expansion, scanning_macro_expansion,
9203 finished_macro_expansion): New function declarations.
9204 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9205 variable declarations.
9206 * parser-defs.h (expression_context_pc): New declaration.
9207 * parse.c (expression_context_pc): New variable.
9208 (parse_exp_1): Set expression_context_pc, as well as
9209 expression_context_block.
9210 * c-exp.y (yylex): If we're not already reading the result of a
9211 macro expansion, try to macro-expand the next token. When we're
9212 done scanning a macro expansion, switch back to the mainline text.
9213 Commas and `if's in a macro's expansion don't terminate the input.
9214 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9215 (macro_original_text, macro_expanded_text,
9216 expression_macro_lookup_func, expression_macro_lookup_baton): New
9218 (scan_macro_expansion, scanning_macro_expansion,
9219 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9220 c_preprocess_and_parse): New functions.
9221 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9222 c_preprocess_and_parse, instead of c_parse.
9223 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9224 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9226 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9228 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9229 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9230 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9232 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9234 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9236 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9238 * Makefile.in (sh_tdep_h): Define and use.
9239 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9240 register enum): Move to...
9241 * * sh-tdep.h: ...here.
9242 * sh-tdep.c: Include sh-tdep.h.
9243 * sh3-rom.c: Likewise.
9244 * shnbsd-tdep.c: Likewise.
9246 2002-05-16 Michael Snyder <msnyder@redhat.com>
9248 * arm-tdep.c: Spelling fix in comment.
9250 2002-05-16 Jim Blandy <jimb@redhat.com>
9252 Add commands for manually expanding macros and showing their
9254 * macrocmd.c, macroscope.c, macroscope.h: New files.
9255 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9256 (macroscope_h): New variable.
9257 (HFILES_NO_SRCDIR): Add macroscope.h.
9258 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9259 (macroscope.o, macrocmd.o): New rules.
9261 Teach the Dwarf 2 reader to read macro information.
9262 * dwarf2read.c: #include "macrotab.h".
9263 (dwarf_macinfo_buffer): New variable.
9264 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9266 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9267 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9268 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9269 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9270 dwarf2_macro_spaces_in_definition): New complaints.
9271 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9272 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9273 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9274 the partial symbol table.
9275 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9276 from what's recorded in the partial symbol table.
9277 (read_file_scope): If the compilation unit has a
9278 `DW_AT_macro_info' attribute, read its macro information.
9279 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9281 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9284 * ser-tcp.c: Don't include <netinet/udp.h>.
9286 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9288 * MAINTAINERS: Update my email address.
9290 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9292 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9293 include file of the same name.
9295 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9297 * configure.tgt: Mark v850 as multi-arched.
9298 * config/v850/tm-v850.h: Remove file.
9299 * config/v850/v850.mt: Eliminate TM_FILE.
9301 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9303 * v850-tdep.c: Full multi-arch.
9304 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9305 Define GDB_MULTI_ARCH to 2.
9307 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9309 * p-exp.y (current_type): New static variable.
9310 Carries the type of the expression at the position that is parsed.
9311 (push_current_type, pop_current_type): Two new functions. Used
9312 to store/restore current_type in expression on specific tokens.
9313 (search_field): New static variable. Set to one after parsing a point
9314 as at that point only a FIELDNAME token should be searched.
9315 (FIELDNAME): New token. After a point only a token belonging to
9316 current_type type definition is allowed.
9317 (all over token rules): reset and change current_type according
9319 (exp '[' rule): insert implicit array index field if
9320 exp is a pascal string type.
9322 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9324 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9325 frame info. Use frame_info's saved_regs instead of matching member
9326 in extra_frame_info throughout.
9327 (v850_frame_init_saved_regs): New function.
9328 (v850_init_extra_frame_info): Move most functionality into
9329 v850_frame_init_saved_regs().
9330 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9331 (v850_frame_find_saved_regs): Remove declaration.
9332 (FRAME_FIND_SAVED_REGS): Remove definition.
9333 (v850_frame_init_saved_regs): Add declaration.
9334 (FRAME_INIT_SAVED_REGS): Add definition.
9336 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9338 * v850-tdep.c: Begin multi-arch'ing v850.
9339 (v850_target_architecture_hook): Remove function.
9340 (v850_gdbarch_init): New function. Add code previously in
9341 v850_target_architecture_hook().
9342 (_initialize_v850_tdep): Don't set target_architecture_hook.
9343 Call register_gdbarch_init() instead.
9345 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9347 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9348 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9349 (fixup_class_method_type): Likewise.
9351 2002-05-15 Jim Blandy <jimb@redhat.com>
9353 Add macro structures to GDB's symbol tables. Nobody puts anything
9355 * symtab.h (struct symtab): New member: `macro_table'.
9356 * buildsym.h (pending_macros): New global variable.
9357 * buildsym.c: #include "macrotab.h".
9358 (buildsym_init): Initialize `pending_macros'.
9359 (end_symtab): If we found macro information while reading a CU's
9360 debugging info, do build a symtab structure for it. Make the
9361 symtab point to the macro information, and clear the
9362 `pending_macros' pointer which held it while we were reading the
9364 (really_free_pendings): Free any pending macro table.
9365 * objfiles.h (struct objfile): New member: `macro_cache'.
9366 * objfiles.c (allocate_objfile): Set allocate and free functions
9367 for the macro cache's objstack.
9368 (free_objfile): Empty the macro cache's obstack.
9369 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9370 set new allocate and free functions for it.
9371 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9372 free functions for the macro cache's objstack. (Why is this
9373 function building its own objfile?)
9374 * symmisc.c (print_objfile_statistics): Print statistics on the
9376 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9378 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9380 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9381 (REGISTER_U_ADDR): Delete definition.
9382 (arm_register_u_addr): Delete declaration.
9384 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9386 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9387 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9389 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9391 * regcache.c (register_valid): Revise comments refering to "Not
9392 available" and "unavailable".
9393 * frame.c (frame_register_read): Ditto.
9394 * findvar.c (value_of_register): Ditto.
9396 2002-05-15 Andrew Cagney <cagney@redhat.com>
9398 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9399 (remote-sim.o): Update dependencies.
9400 (d10v-tdep.o): Specify dependencies.
9401 (sim_d10v_h): Define.
9403 2002-05-14 Jim Blandy <jimb@redhat.com>
9405 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9406 * macrotab.c (macro_lookup_inclusion, find_definition,
9407 new_macro_table): Same.
9409 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9410 not `! strcmp ()'. This is a dubious improvement.
9411 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9413 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9414 although it's not necessary, to avoid a warning.
9416 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9418 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9419 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9420 TYPE_INSTANCE_FLAGS.
9421 (struct main_type): New.
9422 (struct type): Move most members to struct main_type. Change
9423 cv_type and as_type to new type_chain member. Add instance_flags.
9424 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9425 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9426 (finish_cv_type): Remove prototype.
9427 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9429 (alloc_type_instance): New function.
9430 (smash_type): New function.
9431 (make_pointer_type, make_reference_type, make_function_type)
9432 (smash_to_member_type, smash_to_method_type): Call smash_type.
9433 (make_qualified_type): New function.
9434 (make_type_with_address_space): Call make_qualified_type.
9435 (make_cv_type): Likewise.
9436 (finish_cv_type): Remove unnecessary function.
9437 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9438 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9439 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9440 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9441 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9442 * hpread.c (hpread_read_struct_type): Likewise.
9443 * stabsread.c (read_struct_type): Likewise.
9445 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9447 * configure.tgt: Add a catch all sh* target, for cases like
9448 sh[2,3,4]-elf and sh-hms.
9450 2002-05-14 Keith Seitz <keiths@redhat.com>
9452 * event-loop.c (create_file_handler): Don't do anything but
9453 update data when we are given a fd which we are already
9456 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9458 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9459 (update_context): Use __func__ in warnings.
9461 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9463 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9464 and tcp_close to net_open and net_close.
9465 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9466 using UDP if requested. Don't try to disable Nagle on UDP
9468 * remote.c (remote_serial_open): New function. Warn about UDP.
9469 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9471 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9473 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9475 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9477 * configure.tgt: Remove sh-hms target.
9478 * MAINTAINERS: Don't list sh-hms as a separate target.
9480 2002-05-13 Jim Blandy <jimb@redhat.com>
9482 Add first preprocessor macro-expansion files.
9483 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9484 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9485 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9486 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9487 (COMMON_OBS): Add macrotab.o, macroexp.o.
9488 (macroexp.o, macrotab.o): New rules.
9490 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9492 * config/m88k/tm-m88k.h: Update copyright.
9493 (m88k_target_write_pc): Declare
9494 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9495 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9496 (SHIFT_INST_REGS): Update definition.
9497 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9498 using old definition of TARGET_WRITE_PC.
9499 * regcache.c (generic_target_write_pc): Delete code handling
9501 * gdbarch.sh (NNPC_REGNUM): Delete.
9502 * gdbarch.h, gdbarch.c: Regenerate.
9504 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9506 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9509 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9511 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9512 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9513 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9515 * c-typeprint.c (cp_type_print_method_args): Likewise.
9516 (c_type_print_args): Likewise.
9517 * d10v-tdep.c (d10v_push_arguments): Likewise.
9518 (d10v_extract_return_value): Likewise.
9519 * expprint.c (print_subexp): Likewise.
9520 * gdbtypes.c (lookup_primitive_typename): Likewise.
9521 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9522 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9523 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9524 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9525 (TYPE_VECTOR): Likewise.
9526 * hpread.c (hpread_read_struct_type)
9527 (fix_static_member_physnames, fixup_class_method_type)
9528 (hpread_type_lookup): Likewise.
9529 * mdebugread.c (parse_symbol, parse_type): Likewise.
9530 * p-lang.c (is_pascal_string_type): Likewise.
9531 * valops.c (hand_function_call): Likewise.
9532 * x86-64-tdep.c (classify_argument): Likewise.
9534 * hpread.c (hpread_read_function_type)
9535 (hpread_read_doc_function_type): Call replace_type.
9536 * dstread.c (create_new_type): Delete.
9537 (decode_dst_structure, process_dst_function): Call alloc_type.
9538 Use type access macros.
9540 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9542 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9543 the're not supported by the current architecture.
9544 (i387_fill_fxsave): Likewise.
9546 2002-05-12 Fred Fish <fnf@redhat.com>
9548 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9549 sect_index_xxx members to index the first slot in section_offsets
9550 if all of the section_offsets are zero.
9552 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9554 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9555 checked in with last change.
9557 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9559 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9560 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9563 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9565 * Makefile.in: Update dependencies.
9567 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9569 * language.c (local_hex_string_custom): Simplify. Do not depend
9570 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9572 * memattr.c (mem_info_command): Replace calls to
9573 longest_local_hex_string and longest_local_hex_string_custom.
9574 * buildsym.c (make_blockvector): Ditto.
9575 * solib.c (info_sharedlibrary_command): Ditto.
9576 * tracepoint.c (tracepoints_info): Ditto.
9577 * symtab.c (print_msymbol_info): Ditto.
9579 * language.c (local_hex_string): Delete.
9580 (local_hex_string_custom): Delete.
9581 (longest_local_hex_string): Rename to local_hex_string.
9582 (longest_local_hex_string_custom): Rename to
9583 local_hex_string_custom.
9584 * language.h (local_hex_string): Change parameter type to LONGEST.
9585 (local_hex_string_custom): Ditto.
9586 (longest_local_hex_string): Delete declaration.
9587 (longest_local_hex_string_custom): Ditto.
9589 * solib.c: Update copyright.
9590 * memattr.c: Update copyright.
9592 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9594 * arch-utils.h (legacy_register_to_value): Declare.
9595 (legacy_value_to_register): Declare.
9596 (legacy_convert_register_p): Declare.
9597 * arch-utils.c (legacy_register_to_value): New function.
9598 (legacy_value_to_register): New function.
9599 (legacy_convert_register_p): New function.
9601 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9602 (VALUE_TO_REGISTER): Define.
9603 (CONVERT_REGISTER_P): Define.
9604 * gdbarch.h, gdbarch.c: Regenerate.
9606 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9608 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9611 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9612 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9614 * Makefile.in: Update dependencies for valops.c.
9615 * valops.c: Include "gdb_assert.h".
9616 (typecmp): Skip THIS parameter to methods.
9617 (find_method_list): Remove static_memfuncp argument,
9618 update callers. Check for stub methods.
9619 (find_value_oload_method_list): Don't set *static_memfuncp.
9620 (find_overload_match): Don't check for stub methods. Assert
9621 that methods are not stubbed. Handle static methods.
9622 (value_find_oload_method_list): Remove static_memfuncp argument.
9623 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9624 to the argument list for static stub methods.
9625 * value.h (value_find_oload_method_list): Update prototype.
9627 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9629 * arch-utils.h (generic_register_size): Declare.
9630 (generic_register_raw_size, generic_register_virtual_size): Delete
9632 * arch-utils.c (generic_register_raw_size): Delete.
9633 (generic_register_size): New function.
9634 (generic_register_virtual_size): Delete.
9636 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9637 default generic_register_size.
9638 * gdbarch.h, gdbarch.c: Re-generate.
9640 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9641 register_virtual_size.
9642 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9643 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9645 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9647 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9648 * gdbarch.h, gdbarch.c: Regenerate.
9649 * gnu-v3-abi.c: Update copyright.
9650 (vtable_address_point_offset): Update.
9651 (gnuv3_rtti_type): Update.
9652 (gnuv3_baseclass_offset): Update.
9653 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9654 (init_fetch_link_map_offsets): Update.
9655 * remote.c (get_remote_state): Update.
9657 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9659 * TODO: Remove value_headof/value_from_vtable_info comment.
9660 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9661 * values.c (value_headof, value_from_vtable_info): Delete.
9662 * value.h (value_from_vtable_info): Delete prototype.
9664 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9666 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9667 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9669 (gdb_assert_h): Define.
9670 (gdb_wait_h): Define.
9671 (gdb_regex_h): Define.
9673 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9675 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9676 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9678 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9680 * nbsd-tdep.c: Fix comment.
9682 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9684 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9685 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9686 (nbsd-tdep.o): New dependency list.
9687 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9689 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9690 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9691 * nbsd-tdep.c: New file.
9692 * nbsd-tdep.h: New file.
9693 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9695 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9696 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9697 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9698 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9700 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9702 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9703 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9704 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9705 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9706 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9707 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9709 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9711 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9712 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9713 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9714 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9715 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9716 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9717 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9719 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9721 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9722 fetch_elfcore_registers to...
9723 * i386nbsd-tdep.c: ...here.
9724 (i386nbsd_use_struct_convention): Rename to...
9725 (i386nbsd_aout_use_struct_convention): ...this.
9726 (i386nbsd_supply_reg): New function.
9727 (i386nbsd_fill_reg): New function.
9728 (fetch_core_registers): Use i386nbsd_supply_reg.
9729 (fetch_elfcore_registers): Likewise.
9730 (_initialize_i386nbsd_tdep): New function.
9731 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9732 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9733 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9734 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9735 (i386nbsd_aout_use_struct_convention): ...this.
9737 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9739 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9740 (store_inferior_registers): Use shnbsd_fill_reg.
9741 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9742 sh_nbsd_supply_register): Collapse into...
9743 (shnbsd_supply_reg): ...this.
9744 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9745 (shnbsd_fill_reg): ...this.
9746 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9747 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9748 (fetch_core_registers): Use shnbsd_supply_reg.
9749 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9750 (sh_nbsd_core_fns): Rename to...
9751 (shnbsd_core_fns): ...this.
9752 (sh_nbsd_elfcore_fns): Rename to...
9753 (shnbsd_elfcore_fns): ...this.
9754 (sh_nbsd_init_abi): Rename to...
9755 (shnbsd_init_abi): ...this.
9756 (_initialize_sh_nbsd_tdep): Rename to...
9757 (_initialize_shnbsd_tdep): ...this.
9758 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9759 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9760 sh_nbsd_fill_register): Remove prototypes.
9761 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9763 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9765 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9766 (i387-nat.o): Delete dependency list.
9767 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9768 (x86-64-linux-nat.o): Likewise.
9769 * i387-nat.c: Delete file, moving contents to...
9770 * i387-tdep.c: ...here.
9771 * i387-nat.h: Rename...
9772 * i387-tdep.h: ...to this.
9773 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9774 * i386-linux-nat.c: Likewise.
9775 * i386bsd-nat.c: Likewise.
9776 * i386gnu-nat.c: Likewise.
9777 * i386nbsd-nat.c: Likewise.
9778 * i386v4-nat.c: Likewise.
9779 * x86-64-linux-nat.c: Likewise.
9780 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9781 * config/i386/go32.mh (NATDEPFILES): Likewise.
9782 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9783 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9784 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9785 * config/i386/linux.mh (NATDEPFILES): Likewise.
9786 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9787 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9788 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9789 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9791 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9793 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9794 (alphanbsd-nat.o): Remove dependency list.
9795 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9796 * alphanbsd-nat.c: Delete. Contents moved to...
9797 * alphanbsd-tdep.c: ...here.
9798 (_initialize_alphanbsd_tdep): Register core functions.
9799 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9801 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9803 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9804 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9805 (alphanbsd-nat.o): Likewise.
9806 (alphabsd-tdep.o): New dependency list.
9807 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9808 (fill_gregset): Use alphabsd_fill_reg.
9809 (supply_fpregset): Use alphabsd_supply_fpreg.
9810 (fill_fpregset): Use alphabsd_fill_fpreg.
9811 (fetch_inferior_registers): Use struct reg and struct fpreg
9812 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9813 and alphabsd_supply_fpreg.
9814 (store_inferior_registers): Use struct reg and struct fpreg
9815 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9816 and alphabsd_fill_fpreg.
9817 * alphabsd-tdep.c: New file.
9818 * alphabsd-tdep.h: New file.
9819 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9820 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9821 alphabsd_supply_fpreg.
9822 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9823 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9825 2002-05-11 Eric Christopher <echristo@redhat.com>
9827 * mips-tdep.c (mips_double_register_type): Fix thinko.
9828 (mips_single_register_type): Ditto.
9829 * MAINTAINERS: Add self.
9831 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9833 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9834 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9835 right thing on architectures with different endianness and/or
9838 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9840 From Christian Limpach <chris@Pin.LU>
9841 * configure.in: Change sed expression which comments out
9842 NATDEPFILES to also comment out continuation lines.
9843 * configure: Regenerate.
9845 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9847 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9850 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9852 * sh-tdep.c: Include correct file.
9854 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9856 New support for sh64-elf (sh5) target.
9858 * configure.tgt: For sh64-elf target, default to sh-elf.
9860 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9861 (struct gdbarch_tdep): Add new fields for new registers and ABI
9864 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9865 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9866 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9867 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9868 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9869 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9870 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9871 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9872 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9873 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9874 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9875 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9876 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9877 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9878 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9879 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9880 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9881 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9882 sign_extend, sh64_nofp_frame_init_saved_regs,
9883 sh64_init_extra_frame_info, sh64_get_saved_register,
9884 sh64_extract_struct_value_address, sh64_pop_frame,
9885 sh64_push_arguments, sh64_extract_return_value,
9886 sh64_store_return_value, sh64_show_media_regs,
9887 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9888 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9889 sh_sh64_register_virtual_type,
9890 sh_sh64_register_convert_to_virtual,
9891 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9892 sh64_register_read, sh64_pseudo_register_write,
9893 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9894 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9895 sh64_do_pseudo_register, sh_compact_do_registers_info,
9896 sh64_do_registers_info, sh_gdbarch_init): New functions.
9898 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9900 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9902 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9904 * linespec.c (decode_line_1): Check for a double quote after
9905 a filename correctly.
9907 2002-05-10 Jim Blandy <jimb@redhat.com>
9909 Properly track the size of the current objfile's .debug_line section.
9910 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9911 (DWARF_LINE_SIZE): New macro.
9912 (dwarf2_build_psymtabs_hard): Record the line section's size in
9913 the partial symbol table.
9914 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9917 2002-05-10 Petr Sorfa <petrs@caldera.com>
9919 * ia64-tdep.c: Handle breakpoints on L instruction type
9920 in MLX instruction bundle by moving the breakpoint to
9921 the third slot (X instruction type) as L holds only data.
9923 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9925 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9926 (process_one_symbol): Complain about discarding local symbols
9927 due to a misplaced N_LBRAC entry.
9929 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9931 From Daniel Berlin <dan@cgsoftware.com>
9932 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9933 decrease the depth we are at, in the case of templates.
9935 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9937 * mips-tdep.c (mips_float_register_type): New function.
9938 (mips_double_register_type): New function.
9939 (mips_print_register): Use them.
9940 (do_fp_register_row): Likewise.
9942 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9944 * signals/signals.c (signals): Remove conditional compilation around
9945 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9946 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9948 2002-05-09 Michael Snyder <msnyder@redhat.com>
9950 * remote-rdp.c (remote_rdp_can_run): Remove.
9952 2002-05-09 Tom Tromey <tromey@redhat.com>
9954 * jv-valprint.c (java_val_print): Handle `char' as a special case
9957 2002-05-09 Michael Snyder <msnyder@redhat.com>
9959 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9960 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9961 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9962 str r(0123),[sp,#nn].
9963 (arm_skip_prologue): Ditto. Also make disassembly
9964 order-independent by placing it in a loop.
9966 2002-05-06 Michael Snyder <msnyder@redhat.com>
9968 * stabsread.c (read_type): Add recognition for new attribute:
9969 "@V;" means that an array type is actually a vector.
9970 This is analogous to the vector flag that's been added to dwarf2.
9972 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9974 * i386-tdep.h (i386_abi): New enum.
9975 (struct gdbarch_tdep): Replace os_ident member with abi.
9976 (i386_gdbarch_register_os_abi): New prototype.
9977 * i386-tdep.c (i386_abi_names): New array.
9978 (process_note_abi_tag_sections): Removed.
9979 (process_note_sections): New function.
9980 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9981 (struct i386_abi_handler): New struct.
9982 (i386_abi_handler_list): New variable.
9983 (i386_gdbarch_register_os_abi): New function.
9984 (i386_gdbarch_init): Adapt for the changes given above.
9986 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9988 * gregset.h: Say "GNU/Linux".
9990 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9992 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9993 (build_gdbtypes): Build builtin_type_v2_float.
9994 (_initialize_gdbtypes): Register new builtin type.
9996 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9998 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9999 (clear_gdbarch_swap): New function.
10000 (initialize_non_multiarch): Call.
10001 (gdbarch_update_p): Before calling init(), swap out and clear the
10002 existing architecture.
10003 * gdbarch.c: Regenerate.
10005 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10007 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10010 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10012 * sh-nbsd-nat.c: Rename to...
10013 * shnbsd-nat.c: ...this.
10014 * sh-nbsd-tdep.c: Rename to...
10015 * shnbsd-tdep.c: ...this.
10016 * sh-nbsd-tdep.h: Rename to...
10017 * shnbsd-tdep.h: ...this.
10018 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10019 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10021 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10023 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10024 concatenation for command help messages.
10026 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10028 * NEWS: Note new sh*-*-netbsdelf* configuration.
10029 * configure.host: Set gdb_host_cpu to sh for all sh*.
10030 (sh*-*-netbsdelf*): New host.
10031 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10032 (sh*-*-netbsdelf*): New target.
10033 * sh-nbsd-nat.c: New file.
10034 * sh-nbsd-tdep.c: New file.
10035 * sh-nbsd-tdep.h: New file.
10036 * config/sh/nbsd.mh: New file.
10037 * config/sh/nbsd.mt: New file.
10038 * config/sh/nm-nbsd.h: New file.
10039 * config/sh/tm-nbsd.h: New file.
10041 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10043 * sh-tdep.c (sh_osabi_names): Declare.
10044 (process_note_abi_tag_sections): New function.
10045 (get_elfosabi): Ditto.
10046 (sh_gdbarch_register_os_abi): Ditto.
10047 (sh_dump_tdep): Ditto.
10048 _initialize_sh_tdep): Use gdbarch_register to register
10049 sh_gdbarch_init and sh_dump_tdep.
10050 * config/sh/tm-sh.h (sh_osabi): Declare.
10051 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10053 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10055 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10056 (thumb_scan_prologue): Ditto.
10057 (arm_find_callers_reg): Ditto.
10058 (arm_frame_chain): Ditto.
10059 (arm_init_extra_frame_info): Ditto.
10060 (arm_frame_saved_pc): Ditto.
10061 (arm_pop_frame): Ditto.
10062 (arm_push_return_address): New function.
10063 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10064 call_dummy_location, call_dummy_breakpoint_offset_p,
10065 call_dummy_breakpoint_offset, call_dummy_p,
10066 call_dummy_stack_adjust_p, call_dummy_words,
10067 sizeof_call_dummy_words, call_dummy_start_offset,
10068 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10069 call_dummy_address, push_return_address and push_dummy_frame for
10070 generic dummy frames.
10072 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10074 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10075 size computation for alloca.
10076 (sh_fp_frame_init_saved_regs): Likewise.
10078 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10080 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10081 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10082 * arm-tdep.c (arm_store_return_value): Use them.
10083 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10084 * remote-rdp.c (remote_rdp_fetch_register): Use
10085 ARM_MAX_REGISTER_RAW_SIZE.
10086 (remote_rdp_store_register): Likewise.
10088 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10090 * dwarf2cfi.c: Code cleanup, removed unused variables,
10091 added default labels to switch {} statements.
10092 * x86-64-tdep.c: Ditto.
10093 * x86-64-linux-nat.c: Ditto.
10095 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10097 * solib.h: Protect against multiple inclusion.
10099 2002-05-06 Jim Blandy <jimb@redhat.com>
10101 Add first preprocessor macro-expansion files.
10102 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10103 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10104 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10105 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10106 (COMMON_OBS): Add macrotab.o, macroexp.o.
10107 (macroexp.o, macrotab.o): New rules.
10109 Separate the job of reading the line number info statement program
10110 header (...expialidocious) out into its own function.
10111 * dwarf2read.c (struct line_head, struct filenames, struct
10112 directories): Replace with...
10113 (struct line_header): New structure, containing the full
10114 contents of the statement program header, including the
10115 include directory and file name tables.
10116 (read_file_scope): If we have line number info, instead of just
10117 calling dwarf_decode_lines to do all the work, call
10118 dwarf_decode_line_header first to get a `struct line_header'
10119 containing the data in the statement program header, and then
10120 pass that to dwarf_decode_lines, which will pick up where that
10121 left off. Be sure to clean up the `struct line_header' object.
10122 (dwarf_decode_line_header, free_line_header, add_include_dir,
10123 add_file_name): New functions.
10124 (dwarf_decode_lines): Move all the code to read the statement
10125 program header into dwarf_decode_line_header. Take the line
10126 header it built as the first argument, instead of the offset to
10127 the compilation unit's line number info. Use the new `struct
10128 line_header' type instead of the old structures. No need to do
10129 cleanups here now, since we don't allocate anything.
10130 (dwarf2_statement_list_fits_in_line_number_section,
10131 dwarf2_line_header_too_long): New complaints.
10133 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10135 * gdbtypes.c (init_vector_type): New function.
10136 (build_builtin_type_vec128): Simplify the representation of SIMD
10138 (build_gdbtypes): Initialize new builtin vector types.
10139 (_initialize_gdbtypes): Register new vector types with gdbarch.
10140 (builtin_type_v4_float, builtin_type_v4_int32,
10141 builtin_type_v8_int16, builtin_type_v16_int8,
10142 builtin_type_v2_int32, builtin_type_v4_int16,
10143 builtin_type_v8_int8): New (renamed) SIMD types.
10145 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10147 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10148 (i387_fill_fxsave): Likewise.
10150 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10152 * alpha-tdep.c (alpha_extract_return_value): Don't use
10153 non-constant array size in prototype.
10155 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10157 From Brian Taylor <briant at model dot com>:
10158 * ui-out.c (ui_out_field_core_addr): Use the function
10159 longest_local_hex_string_custom'to format addresses > 32 bits
10162 * ui-out.c (ui_out_field_core_addr): Update comment.
10164 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10166 * stack.c (select_and_print_frame): Make static. Delete the
10168 (func_command): Update call.
10169 (select_frame_command): Delete code computing the frame level.
10170 * frame.h (select_and_print_frame): Delete declaration.
10172 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10174 * sparc-tdep.c (sparc_get_saved_register): Comment why
10175 get_prev_frame call is safe.
10177 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10179 * frame.h (select_frame): Delete level parameter.
10180 * stack.c (select_frame): Update. Use frame_relative_level to
10181 obtain the frame's level.
10182 (select_and_print_frame): Update call.
10183 (select_frame_command): Ditto.
10184 (up_silently_base): Ditto.
10185 (down_silently_base): Ditto.
10186 * ocd.c (ocd_start_remote): Ditto.
10187 * remote-rdp.c (remote_rdp_open): Ditto.
10188 * remote-mips.c (mips_initialize): Ditto.
10189 (common_open): Ditto.
10190 * remote-e7000.c (e7000_start_remote): Ditto.
10191 * m3-nat.c (select_thread): Ditto.
10192 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10193 (child_get_current_exception_event): Ditto.
10194 * varobj.c (varobj_create): Ditto.
10195 (varobj_update): Ditto.
10196 (c_value_of_root): Ditto.
10197 * tracepoint.c (finish_tfind_command): Ditto.
10198 * corelow.c (core_open): Ditto.
10199 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10200 * thread.c (info_threads_command): Ditto.
10201 (switch_to_thread): Ditto.
10202 * infrun.c (normal_stop): Ditto.
10203 (restore_selected_frame): Ditto.
10204 (restore_inferior_status): Ditto.
10205 * breakpoint.c (insert_breakpoints): Ditto.
10206 (watchpoint_check): Ditto.
10207 (bpstat_stop_status): Ditto.
10208 (do_enable_breakpoint): Ditto.
10209 * blockframe.c (flush_cached_frames): Ditto.
10210 (reinit_frame_cache): Ditto.
10212 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10214 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10217 2002-05-04 Jim Blandy <jimb@redhat.com>
10219 * gdbtypes.c (replace_type): Doc fix.
10221 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10223 * valprint.c (strcat_longest): Delete commented out function.
10226 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10228 * MAINTAINERS: Mark a29k as deleted.
10229 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10230 Move new configurations to the top.
10231 * configure.tgt: Remove a29k.
10232 * config/a29k/tm-vx29k.h: Delete.
10233 * config/a29k/vx29k.mt: Delete.
10234 * config/a29k/tm-a29k.h: Delete.
10235 * config/a29k/a29k-udi.mt: Delete.
10236 * config/a29k/a29k.mt: Delete.
10237 * a29k-tdep.c: Delete.
10238 * remote-udi.c: Delete.
10239 * remote-mm.c: Delete.
10240 * remote-eb.c: Delete.
10241 * remote-adapt.c: Delete.
10242 * Makefile.in: Remove obsolete code.
10243 * config/s390/s390x.mt: Ditto.
10244 * config/s390/s390.mt: Ditto.
10245 * config/sparc/sparclynx.mh: Ditto.
10246 * config/sparc/linux.mh: Ditto.
10247 * config/pa/hppaosf.mh: Ditto.
10248 * config/pa/hppabsd.mh: Ditto.
10249 * config/ns32k/nbsd.mt: Ditto.
10250 * config/mips/vr5000.mt: Ditto.
10251 * config/m68k/sun3os4.mh: Ditto.
10252 * config/m68k/nbsd.mt: Ditto.
10253 * config/m68k/m68klynx.mh: Ditto.
10254 * config/m32r/m32r.mt: Ditto.
10255 * config/i386/x86-64linux.mt: Ditto.
10256 * config/i386/nbsdelf.mt: Ditto.
10257 * config/i386/nbsd.mt: Ditto.
10258 * config/i386/i386lynx.mh: Ditto.
10260 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10262 * target.c (debug_print_register): New function. Handle oversize
10264 (debug_to_fetch_registers): Call.
10265 (debug_to_store_registers): Call.
10267 2002-05-03 Jim Blandy <jimb@redhat.com>
10269 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10270 (read_type): Doc fix.
10271 * gdbtypes.c (replace_type): Doc fix.
10273 * stabsread.c (multiply_defined_struct): New complaint.
10274 (read_struct_type): If the type we were passed isn't empty, or
10275 incomplete, don't read the new struct type into it; complain,
10276 and return the original type unchanged. Take a new `type_code'
10277 argument, which is the type code for the new type.
10278 (read_type): Rather than storing the type's type code here, pass
10279 it as an argument to read_struct_type, and let that take care of
10280 storing it. That way, we don't overwrite the original type code,
10281 so read_struct_type can use it to decide whether we're overwriting
10282 something we shouldn't.
10283 (complain_about_struct_wipeout): New function.
10285 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10287 * gdbarch.sh: Assert that gdbarch is non-NULL.
10288 * gdbarch.c: Regenerate.
10290 2002-05-03 Jason Merrill <jason@redhat.com>
10292 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10295 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10297 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10298 (x86_64_dwarf2gdb_regno_map_length),
10299 (x86_64_dwarf2_reg_to_regnum): Added.
10300 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10301 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10302 (_initialize_x86_64_tdep): Synced with the change above.
10303 (x86_64_skip_prologue): Reformulated message.
10305 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10307 * f-exp.y: Also use new prev_lexptr variable
10308 to improve error reporting. Based on Michael Snyder
10309 2002-04-24 dated patch to c-exp.y.
10310 * jv-exp.y: Likewise.
10311 * m2-exp.y: Likewise.
10313 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10315 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10316 we are dealing with vectors.
10318 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10320 * config/m68k/tm-nbsd.h: Obvious fix,
10321 correct machine name.
10323 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10325 * p-typeprint.c (pascal_type_print_base): Add support
10326 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10328 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10330 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10331 for fondamental pascal 'char' type.
10333 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10335 * p-lang.h (is_pascal_string_type): Declaration changed,
10336 new sixth argument of type char ** added.
10337 * p-lang.c (is_pascal_string_type): Implementation
10338 changed. Args length_pos, length_size, string_pos, char_size
10339 can now be NULL. New argument arrayname set to the field
10340 name of the char array. Return value set to char array
10341 field index plus one.
10342 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10343 is_pascal_string_type function.
10345 2002-05-02 Andrew Cagney <cagney@redhat.com>
10347 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10348 <cagney@redhat.com> change.
10349 * gdbarch.c: Regenerate.
10351 2002-05-02 Andrew Cagney <cagney@redhat.com>
10353 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10354 before probing for a new one. Detect errorenous gdbarch_init
10356 * gdbarch.c: Regenerate.
10358 2002-05-01 Andrew Cagney <cagney@redhat.com>
10360 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10361 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10362 * config/v850/tm-v850.h: Ditto. Update copyright.
10364 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10366 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10369 2002-04-30 Michael Snyder <msnyder@redhat.com>
10371 * arm-tdep.c: Whitespace clean-ups.
10372 (arm_skip_prologue): Fix thinko; two lines
10373 should have been removed as part of 4/24 change.
10375 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10377 * rs6000-tdep.c: Added comment describing how fpscr register
10378 numbers were chosen.
10380 2002-04-30 Michael Snyder <msnyder@redhat.com>
10382 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10384 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10386 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10387 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10388 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10390 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10392 From Louis Hamilton <hamilton@redhat.com>:
10393 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10394 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10395 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10396 not bfd-private xcoff data, to determine wordsize.
10397 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10399 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10401 GDB 5.2 released from 5.2 branch.
10403 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10405 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10406 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10407 (x86_64_register_info_table): Added comments with register numbers.
10409 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10411 * rs6000-tdep.c (rs6000_extract_return_value,
10412 rs6000_store_return_value): Handle returning vectors.
10413 (rs6000_gdbarch_init): Use
10414 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10415 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10417 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10419 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10420 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10422 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10424 * hpread.c (hpread_psymtab_to_symtab_1,
10425 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10426 with fprintf_unfiltered (gdb_stderr,...).
10428 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10430 * remote-array.c (printf_monitor, write_monitor,
10431 array_insert_breakpoint, array_remove_breakpoint ):
10432 Replace fprintf (stderr,...
10433 with fprintf_unfiltered (gdb_stderr,....
10434 * remote-es.c: Likewise.
10435 * remote-os9k.c: Likewise.
10436 * remote-st.c: Likewise.
10438 2002-04-28 Andreas Schwab <schwab@suse.de>
10440 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10441 linux-proc.o and gcore.o.
10443 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10445 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10446 code without frame pointers.
10448 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10450 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10451 ON_STACK is needed.
10453 2002-04-26 Ben Elliston <bje@redhat.com>
10455 * target.c (do_xfer_memory): Correct reference to the new option
10456 "trust-readonly-sections".
10458 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10460 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10461 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10462 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10464 (read_array_type): Record the fact that this array type is really a
10465 vector (i.e. are passed in by value).
10467 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10469 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10470 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10471 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10472 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10473 * alpha-linux-tdep.c: Include frame.h.
10474 (alpha_linux_sigcontext_addr): New function.
10475 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10476 alpha_linux_sigcontext_addr.
10477 * alpha-osf1-tdep.c: Include gdbcore.h.
10478 (alpha_osf1_sigcontext_addr): New function.
10479 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10480 alpha_osf1_sigcontext_addr.
10481 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10482 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10484 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10486 * stack.c (selected_frame_level):
10487 (select_frame): Do not set selected_frame_level.
10488 * frame.h (selected_frame_level): Delete declaration.
10490 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10492 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10493 convert_from_func_ptr-addr when AIX / PowerOpen.
10495 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10497 * valops.c (hand_function_call): Call
10498 generic_save_call_dummy_addr.
10499 * frame.h (generic_save_call_dummy_addr): Declare.
10500 * blockframe.c (struct dummy_frame): Add fields call_lo and
10502 (generic_find_dummy_frame): Check for PC in range call_lo to
10503 call_hi instead of entry_point_address.
10504 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10505 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10506 (generic_save_call_dummy_addr): New function.
10508 2002-04-24 David S. Miller <davem@redhat.com>
10510 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10511 sparc_skip_prologue.
10512 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10513 information to find prologue when possible.
10514 (sparc_prologue_frameless_p): Call examine_prologue directly.
10515 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10516 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10518 (SKIP_PROLOGUE): Likewise.
10520 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10522 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10523 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10524 indicate that the condition it was testing is always true.
10525 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10526 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10527 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10529 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10531 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10532 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10533 tdep->jb_pc and tdep->jb_elt_size.
10534 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10535 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10536 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10537 * alpha-nat.c (get_longjmp_target): Remove.
10538 (JB_ELEMENT_SIZE): Ditto.
10540 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10541 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10542 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10543 to alpha_get_longjmp_target.
10544 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10545 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10546 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10548 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10550 * README: Update to GDB 5.2.
10552 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10554 * gdbarch.sh (LC_ALL): Set to `c'.
10556 2002-04-25 Theodore A. Roth <troth@verinet.com>
10558 * avr-tdep.c: Ran through gdb_indent.sh.
10560 2002-04-25 Theodore A. Roth <troth@verinet.com>
10562 * MAINTAINERS: Add myself as AVR maintainer.
10563 * NEWS: Note new target avr.
10565 2002-04-25 Theodore A. Roth <troth@verinet.com>
10567 * Makefile.in: Add support for AVR target.
10568 * configure.tgt: Add support for AVR target.
10569 * avr-tdep.c: New file
10570 * config/avr/avr.mt: New file.
10572 2002-04-25 Theodore A. Roth <troth@verinet.com>
10574 * MAINTAINERS: Add myself to write-after-approval.
10576 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10578 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10579 with fprintf_unfiltered (gdb_stderr,....
10581 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10584 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10586 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10588 * p-exp.y: Also use new prev_lexptr variable
10589 to improve error reporting. Based on Michael Snyder
10590 2002-04-24 dated patch to c-exp.y.
10592 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10594 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10595 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10596 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10598 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10600 (FUNCTION_START_OFFSET): Remove.
10601 (BREAKPOINT): Ditto.
10603 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10605 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10608 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10610 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10611 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10612 alpha_linux_pc_in_sigtramp.
10613 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10614 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10615 alpha_osf1_pc_in_sigtramp.
10616 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10617 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10618 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10619 alphafbsd_pc_in_sigtramp.
10620 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10621 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10622 alphanbsd_pc_in_sigtramp.
10623 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10624 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10626 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10628 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10630 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10632 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10634 (alphanbsd-nat.o): New dependency list.
10635 (alphanbsd-tdep.o): Ditto.
10636 * NEWS: Note new native NetBSD/alpha configuration.
10637 * alphanbsd-nat.c: New file.
10638 * alphanbsd-tdep.c: Ditto.
10639 * configure.host (alpha*-*-netbsd*): New host.
10640 * configure.tgt (alpha*-*-netbsd*): New target.
10641 * config/alpha/nbsd.mh: New file.
10642 * config/alpha/nbsd.mt: Ditto.
10643 * config/alpha/nm-nbsd.h: Ditto.
10644 * config/alpha/tm-nbsd.h: Ditto.
10646 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10648 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10649 (alpha-osf1-tdep.o): New dependency list.
10650 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10651 and skip_sigtramp_frame members.
10652 * alpha-linux-tdep.c: Include gdbcore.h.
10653 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10654 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10655 * alpha-osf1-tdep.c: New file.
10656 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10658 (alpha_frame_past_sigtramp_frame): New function.
10659 (alpha_dynamic_sigtramp_offset): Ditto.
10660 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10661 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10662 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10663 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10664 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10665 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10666 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10667 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10668 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10669 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10670 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10671 to find_solib_trampoline_target.
10672 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10673 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10674 (SKIP_TRAMPOLINE_CODE): Remove.
10675 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10676 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10677 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10678 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10679 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10680 (PROC_SIGTRAMP_MAGIC): Ditto.
10681 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10682 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10683 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10684 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10685 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10687 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10689 * NEWS: Note that Alpha targets are now multi-arch.
10691 2002-04-24 Michael Snyder <msnyder@redhat.com>
10693 * parser-defs.h (prev_lexptr): New external variable.
10694 * parse.c (parse_exp_1): Set prev_lexptr to null before
10695 calling the language-specific parser.
10696 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10697 (yyerror): Use prev_lexptr in error reporting.
10699 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10701 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10702 * gregset.h: If FILL_FPXREGSET is defined, provide
10703 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10704 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10705 is defined, call fill_fpxregset.
10707 2002-04-24 Roland McGrath <roland@frob.com>
10709 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10710 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10711 (supply_gregset, supply_fpregset): New functions.
10713 * gnu-nat.c (gnu_find_memory_regions): New function.
10714 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10715 (gnu_xfer_memory): Add a cast.
10717 2002-04-24 Michael Snyder <msnyder@redhat.com>
10719 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10720 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10721 of argument regs ("str r(0123), [r11, #-nn"]).
10722 (arm_skip_prologue): Better handling for frameless functions.
10723 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10724 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10726 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10728 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10729 NUM_PSEUDO_REGS can be used.
10731 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10733 * arch-utils.h: Update copyright.
10735 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10736 * gdbarch.h, gdbarch.c: Re-generate.
10738 * inferior.h (IN_SIGTRAMP): Delete definition.
10739 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10740 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10742 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10743 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10744 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10745 (find_proc_framesize): Ditto.
10746 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10747 (alpha_init_extra_frame_info): Ditto.
10748 * infrun.c (handle_inferior_event): Ditto.
10749 (handle_inferior_event): Ditto.
10750 (check_sigtramp2): Ditto.
10751 * blockframe.c (create_new_frame): Ditto.
10752 (get_prev_frame): Ditto.
10753 * ppc-linux-tdep.c: Update comments.
10754 * i386-linux-tdep.c: Update comments.
10755 * breakpoint.c (bpstat_what): Update comment.
10757 2002-04-24 David S. Miller <davem@redhat.com>
10759 * i960-tdep.c (register_in_window_p): New function.
10760 (i960_find_saved_register): Use it instead of
10761 REGISTER_IN_WINDOW_P.
10762 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10764 * symtab.h (find_stab_function_addr): Kill extern.
10765 * minsyms.c (find_stab_function_addr): Remove from here...
10766 * dbxread.c: ... to here, and mark it static.
10768 2002-04-20 David S. Miller <davem@redhat.com>
10770 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10771 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10773 2002-04-21 David S. Miller <davem@redhat.com>
10775 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10776 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10777 (vx_write_register): Likewise.
10779 2002-04-23 J. Brobecker <brobecker@gnat.com>
10781 * source.c (is_regular_file): New function.
10782 (openp): Check wether file to open is a regular file
10783 to avoid opening directories.
10785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10787 * findvar.c (extract_signed_integer): Cast printf argument
10788 to suppress format warning.
10789 (extract_unsigned_integer): Likewise.
10790 * infcmd.c (registers_info): Likewise.
10791 * top.c (get_prompt_1): Likewise.
10792 * valops.c (value_assign): Likewise.
10793 * valprint.c (print_decimal): Likewise.
10795 2002-04-22 H.J. Lu (hjl@gnu.org)
10797 * c-exp.y (typebase): Support
10799 [long|long long|short] [signed|unsigned] [int|]
10803 signed [long|long long|short] int
10805 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10807 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10809 * vax-tdep.h: New file.
10810 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10811 Make several routines static.
10812 (vax_get_saved_register): New function.
10813 (vax_gdbarch_init): New function.
10814 (_initialize_vax_tdep): Register vax_gdbarch_init.
10815 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10816 Remove macros now under the control of gdbarch.
10818 2002-04-22 Michael Snyder <msnyder@redhat.com>
10820 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10821 Some whitespace and coding standards tweaks.
10823 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10825 * vax-tdep.c: Include regcache.h.
10826 (vax_call_dummy_words): New.
10827 (sizeof_vax_call_dummy_words): New.
10828 (vax_fix_call_dummy): New function.
10829 (vax_saved_pc_after_call): Ditto.
10830 * config/vax/tm-vax.h: Don't include regcache.h.
10831 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10832 (CALL_DUMMY): Remove.
10833 (CALL_DUMMY_WORDS): Define.
10834 (SIZEOF_CALL_DUMMY_WORDS): Define.
10835 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10837 2002-04-18 Michael Snyder <msnyder@redhat.com>
10839 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10841 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10843 * vax-tdep.c (vax_frame_chain): New function.
10844 (vax_push_dummy_frame): Ditto.
10845 (vax_pop_frame): Ditto.
10846 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10847 (FRAMELESS_FUNCTION_INVOCATION): Use
10848 generic_frameless_function_invocation_not.
10849 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10850 (POP_FRAME): Use vax_pop_frame.
10852 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10854 * vax-tdep.c (vax_store_struct_return): New function.
10855 (vax_extract_return_value): Ditto.
10856 (vax_store_return_value): Ditto.
10857 (vax_extract_struct_value_address): Ditto.
10858 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10859 vax_store_struct_return.
10860 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10861 (STORE_RETURN_VALUE): Use vax_store_return_value.
10862 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10864 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10866 * vax-tdep.c (vax_frame_saved_pc): New function.
10867 (vax_frame_args_address_correct): Ditto.
10868 (vax_frame_args_address): Ditto.
10869 (vax_frame_locals_address): Ditto.
10870 (vax_frame_num_args): Move code to be in proximity to
10871 other frame-related functions.
10872 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10873 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10874 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10875 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10876 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10878 2002-04-22 H.J. Lu (hjl@gnu.org)
10880 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10883 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10885 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10886 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10887 (FRAME_INIT_SAVED_REGS): New macro.
10889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10891 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10895 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10897 (fetch_osf_core_registers): Likewise.
10898 (supply_gregset): Likewise.
10900 2002-04-22 J. Brobecker <brobecker@gnat.com>
10902 * symfile.h (get_section_index): Define.
10903 * symfile.c (get_section_index): New function.
10904 * mdebugread.c (SC_IS_SBSS): New macro.
10905 (SC_IS_BSS): Return true for the scBss storage class only, as
10906 the scSBss storage class refers to the .sbss section.
10907 (parse_partial_symbols): Discard the symbols which associated
10908 section does not exist.
10909 Make sure to use the .sbss section index for symbols which
10910 storage class is scBss, rather than using the .bss section index.
10912 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10914 * vax-tdep.c: Update copyright years.
10915 (vax_register_name): New function.
10916 (vax_register_byte): Ditto.
10917 (vax_register_raw_size): Ditto.
10918 (vax_register_virtual_size): Ditto.
10919 (vax_register_virtual_type): Ditto.
10920 * config/vax/tm-vax.h: Update copyright years.
10921 (REGISTER_NAMES): Remove.
10922 (REGISTER_NAME): Define.
10923 (REGISTER_BYTE): Use vax_register_byte.
10924 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10925 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10926 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10928 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10930 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10932 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10934 2002-04-21 David S. Miller <davem@redhat.com>
10936 * arch-utils.c (generic_prologue_frameless_p): Kill
10937 SKIP_PROLOGUE_FRAMELESS_P code.
10938 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10940 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10941 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10942 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10944 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10945 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10946 (sparc_gdbarch_init): Pass it to
10947 set_gdbarch_prologue_frameless_p.
10949 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10951 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10952 (alphabsd-nat.o): New dependency list.
10954 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10956 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10958 (alpha-linux-tdep.o): New dependency list.
10959 (alphafbsd-tdep.o): Likewise.
10961 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10963 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10965 * alpha-tdep.c: ...from here.
10966 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10968 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10970 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10971 prototype from here...
10972 * alpha-tdep.h: ...to here.
10974 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10976 * frame.h (selected_frame_level): Document as deprecated.
10977 (frame_relative_level): Declare.
10978 * stack.c (frame_relative_level): New function.
10979 (selected_frame_level): Document as deprecated.
10980 (select_frame): Do not set the selected_frame_level.
10982 * stack.c (frame_info, record_selected_frame): Update.
10983 (frame_command, current_frame_command): Update.
10984 (up_silently_base, up_command, down_silently_base): Update.
10985 (down_command): Update.
10986 * inflow.c (kill_command): Update.
10987 * tracepoint.c (finish_tfind_command): Update.
10988 * corelow.c (core_open): Update.
10989 * thread.c (info_threads_command): Update.
10990 (do_captured_thread_select): Update.
10991 * infcmd.c (finish_command): Update.
10992 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10994 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10996 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10998 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11000 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11003 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11005 * alphafbsd-tdep.c: Update copyright years. Include
11007 (alphafbsd_use_struct_convention): Make static.
11008 (alphafbsd_init_abi): New function.
11009 (_initialize_alphafbsd_tdep): New function.
11010 * config/alpha/tm-fbsd.h: Update copyright years.
11011 (USE_STRUCT_CONVENTION): Remove.
11013 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11015 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11016 an Alpha ABI variant.
11017 (alpha_abi_handler_list): Declare.
11018 (alpha_gdbarch_register_os_abi): New function.
11019 (alpha_gdbarch_init): Give registered ABI variant handlers a
11020 chance to tweak the gdbarch once we have set up defaults.
11021 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11023 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11025 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11026 to standard_coerce_float_to_double.
11027 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11029 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11031 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11032 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11033 from gdbarch_tdep rather than a constant.
11034 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11035 the default text address for all Alpha Unix ABIs.
11036 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11037 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11039 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11041 * alpha-tdep.h: New file. Includes several Alpha target constants
11043 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11044 let gdbarch deal with.
11045 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11046 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11047 to dependency list.
11048 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11049 Alpha target register names.
11050 * alphabsd-nat.c: Likewise.
11051 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11052 Alpha target register names. Make serveral routines static.
11053 (alpha_get_saved_register): New function.
11054 (alpha_abi_names): New.
11055 (process_note_abi_tag_sections): New function.
11056 (get_elfosabi): New function.
11057 (alpha_gdbarch_init): New function.
11058 (alpha_dump_tdep): New function.
11059 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11061 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11063 * frame.c (find_saved_register): Delete #ifdef
11064 HAVE_REGISTER_WINDOWS code.
11065 * config/sparc/tm-sparc.h: Update comments.
11066 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11068 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11070 * i960-tdep.c (i960_find_saved_register): New function.
11071 (i960_get_saved_register): New function.
11072 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11073 (i960_get_saved_register): Declare.
11074 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11076 2002-04-20 David S. Miller <davem@redhat.com>
11078 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11080 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11082 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11083 instead of NUM_PSEUDO_REGS.
11085 2002-04-20 David S. Miller <davem@redhat.com>
11087 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11088 GDB_MULTI_ARCH_PARTIAL
11089 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11090 define, let tm-sp64.h do it.
11092 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11094 * frame.c (find_saved_register): Avoid a NULL pointer
11095 dereference and actually walk the frame list.
11097 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11099 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11100 sorted in most most-recent-used order. Document.
11101 * gdbarch.h, gdbarch.c: Regenerate.
11103 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11105 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11107 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11108 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11109 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11112 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11115 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11116 (build_builtin_type_vec128): Ditto.
11117 (append_composite_type_field): Fix calculation of type length in
11120 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11122 * config/djgpp/README: Update.
11124 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11127 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11129 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11130 (alpha_setup_arbitrary_frame): ...to this.
11131 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11132 for alpha_setup_arbitrary_frame.
11134 2002-04-18 Andrew Cagney <cagney@redhat.com>
11136 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11137 * gdbarch.h, gdbarch.c: Regenerate.
11139 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11140 * target.h (memory_breakpoint_from_pc): Update declaration.
11141 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11143 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11144 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11145 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11146 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11147 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11148 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11149 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11150 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11151 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11152 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11153 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11154 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11156 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11158 * monitor.c (monitor_insert_breakpoint): Ditto.
11159 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11161 * config/mcore/tm-mcore.h: Update copyright.
11162 * mem-break.c: Ditto.
11163 * xstormy16-tdep.c: Ditto.
11165 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11167 * p-exp.y: Add precedence rule for '^' token.
11168 This removes the shift/reduce conflicts.
11169 Remove the comment concerning these shift/reduce conflicts.
11171 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11173 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11174 (registers_powerpc_nofp): New register set for processors
11175 without floating point unit.
11177 2002-04-18 David S. Miller <davem@redhat.com>
11179 * MAINTAINERS: Add myself to write-after-approval.
11181 2002-04-17 Michael Snyder <msnyder@redhat.com>
11183 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11185 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11187 * rs6000-tdep.c (frame_initial_stack_address): Use
11188 frame_register_read to read the alloca_reg.
11190 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11192 * frame.c (find_saved_register): Find saved registers in the next
11196 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11198 * gdbarch.sh (LANG): Set to ``c''.
11200 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11202 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11204 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11206 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11209 * hpread.c (hpread_get_lntt): Add declaration.
11210 Also fix PR gdb/391.
11212 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11214 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11215 * aclocal.m4, configure: Re-generate.
11218 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11220 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11221 instead of tm_print_insn.
11223 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11225 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11227 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11229 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11230 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11231 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11233 2002-04-12 Don Howard <dhoward@redhat.com>
11235 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11236 max_user_call_depth.
11237 (init_cmd_lists): Initialize the new value;
11238 * cli/cli-script.c (execute_user_command): Limit the call depth of
11239 user defined commands. This avoids a core-dump when user commands
11240 are infinitly recursive.
11242 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11244 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11245 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11246 from tdep struct instead of DEFAULT_LR_SAVE.
11247 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11248 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11249 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11251 2002-04-12 Michael Snyder <msnyder@redhat.com>
11253 * Remote.c: Spelling fix.
11254 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11255 If no symbol found for "sbrk", try "_sbrk".
11256 (make_output_phdrs): Use bfd_section_name.
11257 (gcore_copy_callback): Use bfd_section_name.
11258 * eval.c: Indentation fix-ups.
11259 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11260 in case it gets applied to an address that is already
11261 in the instruction space.
11262 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11263 * symfile.c: Fix indentation, long lines.
11264 * source.c: White space fix-up.
11266 2002-04-12 Andrew Cagney <cagney@redhat.com>
11268 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11269 * frame.c (frame_register_read): New function. Return non-zero on
11271 (read_relative_register_raw_bytes_for_frame): Delete.
11272 (read_relative_register_raw_bytes): Delete.
11273 * frame.h (frame_register_read): Declare.
11274 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11275 * sh-tdep.c: Ditto.
11276 * infcmd.c (do_registers_info): Ditto.
11277 * hppa-tdep.c: Ditto.
11278 * rs6000-tdep.c: Ditto.
11279 * h8500-tdep.c: Ditto.
11280 * mips-tdep.c: Ditto.
11281 * h8300-tdep.c: Ditto.
11282 * z8k-tdep.c: Ditto.
11284 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11286 From Jimi X <jimix@watson.ibm.com>:
11287 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11290 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11292 From Jimi X <jimix@watson.ibm.com>:
11293 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11296 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11298 From Jimi X <jimix@watson.ibm.com>:
11299 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11300 register sets for these processor variants.
11302 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11304 * regformats/reg-ppc.dat: Support FPSCR.
11306 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11308 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11309 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11310 Add fpscr as an invalid/unfetchable register.
11311 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11312 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11313 (fill_fpregset): Add support for register fpscr.
11314 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11315 (fill_gregset): Account for the fact that register ``mq'' might
11317 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11318 (registers_power): Add fpscr to register set at slot 71.
11319 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11320 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11322 2002-04-11 Michael Snyder <msnyder@redhat.com>
11324 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11325 * configure: Regenerate.
11326 * config.in: Regenerate.
11327 * acconfig.h: Add define for _SYSCALL32.
11328 * core-sol2.c: Remove #define _SYSCALL32.
11329 * solib-legacy.c: Remove #define _SYSCALL32.
11331 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11333 * stack.c (select_frame): Cleanup internal error message, do not
11336 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11338 * stack.c (select_frame): Check that selected_frame and the
11339 specified level are as expected.
11340 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11342 * frame.h (struct frame_info): Add field `level'. Update
11344 Work-in-progress PR gdb/464.
11346 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11348 * maint.c (maint_print_section_info): Rename print_section_info.
11349 (print_bfd_section_info, print_objfile_section_info): Update.
11350 * inferior.h (struct gdbarch): Add opaque declaration.
11351 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11352 * gdbarch.h: Regenerate.
11354 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11356 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11357 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11358 (kernel_u_size): Added.
11359 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11360 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11362 2002-04-04 Jim Ingham <jingham@apple.com>
11364 * valarith.c (find_size_for_pointer_math): New function, either returns
11365 the size for a pointer's target, returns 1 for void *, or errors for
11367 (value_add, value_sub): use find_size_for_pointer_math.
11369 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11371 * linux-low.c (linux_look_up_symbols): New hook.
11372 (linux_target_ops): Add linux_look_up_symbols.
11373 * remote-utils.c (decode_address): New function.
11374 (look_up_one_symbol): New function.
11375 * server.c (handle_query): Call target look_up_symbols hook.
11376 * server.h (look_up_one_symbol): Add prototype.
11377 * target.h (struct target_ops): Add look_up_symbols hook.
11379 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11381 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11382 override FP_REGNUM with frame->fp. Update copyright.
11383 * parse.c (num_std_regs, std_regs): Delete.
11384 (target_map_name_to_register): Do not search std_regs. Update
11385 function description.
11386 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11387 declarations. Update copyright.
11390 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11392 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11393 after the last symbol in a block.
11395 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11397 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11398 is non zero as a found symbol.
11400 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11402 * findvar.c: Include "builtin-regs.h".
11403 (value_of_register): Call value_of_builtin_reg when applicable.
11404 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11405 (target_map_name_to_register): Call
11406 builtin_reg_map_name_to_regnum.
11407 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11408 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11409 (builtin_regs_h): Define.
11410 (builtin-regs.o): New target.
11411 (findvar.o): Add $(builtin_regs_h).
11412 * builtin-regs.c, builtin-regs.h: New files.
11413 * std-regs.c: New file.
11414 Partial fix for PR gdb/251.
11416 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11418 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11419 it's no longer required.
11421 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11423 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11425 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11427 From Jimi X <jimix@watson.ibm.com>:
11428 * rs6000-tdep.c (rs6000_software_single_step): Use
11429 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11430 and size. Use target_insert_breakpoint() and
11431 target_remove_breakpoint() to insert and remove breakpoints
11432 instead of explicit memory reads and writes.
11434 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11436 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11437 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11438 ELF_OBJECT_FORMAT ifdef.
11440 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11442 From Jimi X <jimix@watson.ibm.com>:
11443 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11445 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11447 From Jimi X <jimix@watson.ibm.com>:
11448 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11449 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11451 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11453 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11454 s/asprintf/xasprintf/.
11455 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11457 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11459 I believe Jeff Law denies responsability for this one:
11460 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11461 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11462 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11463 Work-around for PR gdb/366.
11465 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11467 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11468 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11469 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11471 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11473 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11474 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11477 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11479 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11482 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11484 * README (Reporting Bugs in GDB): Document the bug web page as the
11485 prefered way of submitting bugs.
11488 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11490 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11491 -1. Update comment.
11492 * gdbarch.h, gdbarch.c: Re-generate.
11494 2002-04-07 Andreas Schwab <schwab@suse.de>
11496 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11497 buffer to regcache_collect.
11499 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11501 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11502 * gdbarch.c, gdbarch.h: Re-generate.
11504 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11506 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11507 declaration. Fix -Werror.
11509 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11511 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11512 * gdbarch.c: Regenerate.
11514 2002-04-05 Michael Snyder <msnyder@redhat.com>
11516 * breakpoint.c (clear_command): Rewrite middle section to
11517 combine two loops with identical control conditions.
11518 Add a cleanup to eliminate a memory leak.
11519 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11521 2002-04-05 H.J. Lu (hjl@gnu.org)
11523 * solib-svr4.c (bkpt_names): Add "__start".
11525 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11527 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11528 as test for 64 bit target.
11530 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11532 * h8500-tdep.c (h8500_write_fp): Delete function.
11533 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11534 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11535 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11537 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11538 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11540 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11541 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11542 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11543 (d10v_write_fp): Delete function.
11544 * inferior.h (write_fp, generic_target_write_fp): Delete
11546 * regcache.c (generic_target_write_fp): Delete function.
11547 (write_fp): Delete function.
11548 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11549 * gdbarch.h, gdbarch.c: Regenerate.
11550 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11551 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11552 (sparc64_write_fp): Delete declaration.
11553 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11554 (h8500_write_fp): Delete declaration.
11556 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11558 * sparc-tdep.c (sparc64_write_fp): Delete.
11559 (sparc_push_dummy_frame): Replace write_fp call with code to store
11561 (sparc_gdbarch_init): Do not initialize write_fp.
11563 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11565 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11568 2002-03-29 Jim Blandy <jimb@redhat.com>
11570 * stack.c (get_selected_block): Add new argument `addr_in_block',
11571 used to return the exact code address we used to select the block,
11572 not just the block.
11573 * blockframe.c (get_frame_block, get_current_block): Same.
11574 * frame.h (get_frame_block, get_current_block,
11575 get_selected_block): Update declarations.
11576 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11577 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11579 2002-04-05 Michael Snyder <msnyder@redhat.com>
11581 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11584 2002-04-05 J. Brobecker <brobecker@gnat.com>
11586 * utils.c (xfullpath): New function.
11587 * defs.h (xfullpath): Add declaration.
11588 * source.c (openp): Use xfullpath in place of gdb_realpath to
11589 avoid resolving the basename part of filenames when the
11590 associated file is a symbolic link. This fixes a potential
11591 inconsistency between the filenames known to GDB and the
11592 filenames it prints in the annotations.
11593 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11594 to be able to match a filename with either the real filename, or
11595 the name of any symbolic link to this file.
11596 (lookup_partial_symtab): Ditto.
11598 2002-04-04 Michael Snyder <msnyder@redhat.com>
11600 * breakpoint.c: Add support for hardware breakpoints in overlays.
11601 (overlay_events_enabled): New state variable.
11602 (insert_breakpoints): Use overlay_events_enabled to decide
11603 whether to attempt to set a breakpoint at the overlay load addr.
11604 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11605 (remove_breakpoint): Use overlay_events_enabled to decide
11606 whether breakpoints need to be removed from overlay load addr.
11607 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11608 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11609 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11610 disable_overlay_breakpoints): Update overlay_events_enabled.
11612 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11614 * dwarf2read.c (struct function_range): New.
11615 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11616 (check_cu_functions): New.
11617 (read_file_scope): Initialize global function lists.
11618 Call dwarf_decode_line after processing children.
11619 (read_func_scope): Add to global function list.
11620 (dwarf_decode_lines): Call check_cu_functions everywhere
11621 record_line is called. Call record_line with a linenumber
11622 of 0 to mark sequence ends.
11624 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11626 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11627 change sync with glibc.
11629 2002-04-03 Jim Blandy <jimb@redhat.com>
11631 * configure.in: Call AC_C_INLINE.
11632 * configure: Regenerated.
11634 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11636 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11637 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11639 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11641 * NEWS: Mention gcore support on FreeBSD/i386.
11643 * fbsd-proc.c: New file.
11644 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11645 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11647 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11650 2002-03-29 Jim Blandy <jimb@redhat.com>
11652 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11653 unescaped newlines in string literals, but newer ones don't. So
11656 2002-03-26 Michael Snyder <msnyder@redhat.com>
11657 Andrew Cagney <cagney@redhat.com>
11659 * cli/cli-dump.c: New file. Dump memory to file,
11660 restore file to memory.
11661 * cli/cli-dump.h: New file.
11662 * Makefile.in: Add rules, dependencies for cli-dump.o.
11663 * NEWS: Mention new commands.
11665 2002-03-28 Michael Snyder <msnyder@redhat.com>
11667 * symfile.c (symbol_file_add): Move test for null symbols to later.
11669 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11671 From veksler at il.ibm.com:
11672 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11673 the xstrduped original path.
11676 2002-03-27 Michael Snyder <msnyder@redhat.com>
11678 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11679 * infcmd.c (_initialize_infcmd): Ditto.
11680 * language.c (_initialize_language): Ditto.
11681 * symfile.c (_initialize_symfile): Ditto.
11682 * top.c (_init_main): Ditto.
11683 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11685 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11687 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11688 vector registers handling.
11689 (skip_prologue): Handle new AltiVec instructions. Fill in new
11690 fields of frame data.
11691 (frame_get_saved_regs): Fill in information for AltiVec registers.
11693 2002-03-27 Jim Blandy <jimb@redhat.com>
11695 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11696 a function; leave this macro here to invoke that function.
11697 (symbol_init_mangled_name): Declaration for that function.
11698 * symtab.c (symbol_init_mangled_name): New function.
11700 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11702 * valarith.c: Replace strerror with safe_strerror.
11703 * tracepoint.c: Ditto.
11704 * lin-lwp.c: Ditto.
11705 * go32-nat.c: Ditto.
11707 * gnu-nat.c: Ditto.
11709 2002-03-27 Andreas Schwab <schwab@suse.de>
11711 * event-top.c (command_line_handler): Remove useless if.
11713 2002-03-27 Andreas Jaeger <aj@suse.de>
11715 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11718 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11720 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11721 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11722 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11723 (x86_64_linux_dr_get_status, supply_gregset),
11724 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11725 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11726 (x86_64_register_info_table): Add.
11727 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11728 (x86_64_register_raw_size, x86_64_register_virtual_type),
11729 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11730 general x86_64_register_info_table.
11731 (i386_gdbarch_init): gdbarch_register_bytes is now set
11732 dynamicaly during initialization.
11733 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11734 * gdbserver/linux-x86-64-low.c: Ditto.
11736 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11738 * gdbserver/server.c (main): Call target_signal_to_host_p
11739 and target_signal_to_host on signals received from the remote.
11740 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11741 target_signal_from_host on signals sent to the remote.
11742 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11743 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11745 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11747 * signals/signals.c: Include "server.h" in gdbserver build.
11748 (target_signal_from_name): Don't use STREQ.
11749 (_initialize_signals): Likewise. Don't include function in
11752 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11754 * signals.c: Moved to...
11755 * signals/signals.c: Here.
11756 * Makefile (signals.o): Update.
11758 2002-03-26 Jeff Law (law@redhat.com)
11760 * somread.c (som_symtab_read): Remove some commented out code and
11761 updated related comments. Do not set the minimal symbol table to
11762 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11763 in a dynamic executable.
11764 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11765 where we are unable to find the minimal symbol for the given
11768 2002-03-25 Jeff Law (law@redhat.com)
11770 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11772 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11774 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11776 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11778 * command.h: Update copyright.
11779 (struct cmd_list_element): Replace definition with opaque
11781 (enum cmd_types): Document that it will eventually be moved to
11783 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11784 (MALLOCED_REPLACEMENT): Delete macro.
11785 * Makefile.in (cli_decode_h): Add $(command_h).
11786 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11787 * top.c: Include "cli/cli-decode.h".
11788 * completer.c: Include "cli/cli-decode.h".
11789 * maint.c: Include "cli/cli-decode.h".
11790 * cli/cli-decode.h: Include "command.h".
11791 (enum command_class): Delete.
11792 (enum cmd_types): Comment out.
11793 (enum cmd_auto_boolean): Delete.
11794 (enum var_types): Delete.
11796 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11798 * cli/cli-decode.c: Include "gdb_assert.h".
11799 (add_set_or_show_cmd): New static function.
11800 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11801 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11802 all fields, such as func, from the set command.
11804 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11806 * MAINTAINERS (sh-elf): Change warning flag to -w.
11808 2002-03-23 Andrew Cagney <cagney@redhat.com>
11810 * defs.h (error): Add printf format attribute.
11811 * thread-db.c (thread_from_lwp): Fix error format string.
11812 * stack.c (parse_frame_specification): Ditto.
11813 * cli/cli-decode.c (undef_cmd_error): Ditto.
11814 * scm-lang.c (scm_lookup_name): Ditto.
11815 * tracepoint.c (trace_error): Ditto.
11816 * remote-utils.c (usage): Ditto.
11817 * remote.c (compare_sections_command): Ditto.
11820 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11822 * gdbtypes.c (append_composite_type_field): New function.
11823 (init_composite_type): New function.
11824 * gdbtypes.h (append_composite_type_field): Declare.
11825 (init_composite_type): Ditto.
11827 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11829 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11831 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11832 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11833 structure returning convention for SYSV ABI case, but not
11834 for GNU/Linux, FreeBSD, or NetBSD.
11836 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11838 * symtab.h (lookup_block_symbol): Add mangled_name argument
11841 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11842 with new mangled_name argument.
11843 * linespec.c (decode_line_1): Likewise.
11844 * valops (value_of_this): Likewise.
11845 * symtab.c (lookup_transparent_type): Likewise.
11846 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11847 (lookup_symbol): If we are given a mangled name, pass it down
11848 to lookup_symbol_aux.
11849 (lookup_block_symbol): If we are given a mangled name to check
11850 against, only return symbols which match it.
11852 2002-03-22 Christopher Faylor <cgf@redhat.com>
11854 * win32-nat.c (child_create_inferior): Check for proper shell to use
11855 here, in case the user changes it on the fly.
11856 (_initialize_inftarg): Remove shell path considerations.
11858 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11860 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11861 for gdbarch_max_register_raw_size and max_register_virtual_size.
11862 Adjust copyright year.
11864 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11866 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11867 in a function to cover the entire beginning of the function
11868 as well if it does not already.
11870 2002-03-21 Tom Rix <trix@redhat.com>
11872 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11873 (rs6000_ptrace64): Renamed from ptrace64.
11875 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11877 * gdbserver/remote-utils.c (remote_open): Don't call
11878 getprotobyname, we're all using TCP here so just use
11880 * gdbserver/gdbreplay.c (remote_open): Ditto.
11882 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11884 * regcache.c (_initialize_regcache): No need to call
11885 build_regcache() at this time; it gets called whenever
11886 the gdbarch changes.
11888 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11890 * sparc-nat.c: Include sys/param.h where possible.
11892 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11895 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11896 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11897 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11899 * stabsread.c (rs6000_builtin_type): Likewise.
11900 (read_sun_floating_type): Likewise.
11902 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11904 * stabsread.c (read_member_functions): Remove skip code for duplicate
11905 constructor/destructor methods. Use standard parsing for these
11906 methods and just do not chain them to the list of methods after
11909 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11911 * coffread.c: Remove redundant static declarations. Replace
11912 occurrences of `PTR' with `void *'.
11913 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11914 * top.h (quit_cover): Likewise.
11915 * defs.h (catch_errors): Likewise.
11917 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11919 * defs.h (XMALLOC): Define.
11920 * gdb-events.sh (XMALLOC): Delete macro.
11921 * gdb-events.c, gdb-events.h: Regenerate.
11922 * gdbarch.sh (XMALLOC): Delete macro.
11923 * gdbarch.c: Regenerate.
11924 * serial.c (XMALLOC): Delete macro.
11925 * ui-file.c (XMALLOC): Ditto.
11926 * ser-unix.h (XMALLOC): Ditto.
11927 * sh-tdep.c (XMALLOC): Ditto.
11928 * ui-out.c (XMALLOC): Ditto.
11929 * utils.c (XMALLOC): Ditto.
11930 * i386-tdep.c (XMALLOC): Ditto.
11931 * gdb-events.c (XMALLOC): Ditto.
11932 * d10v-tdep.c (XMALLOC): Ditto.
11933 * cli-out.c (XMALLOC): Ditto.
11935 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11936 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11937 * ui-file.c, ui-out.c: Ditto.
11939 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11941 * command.h (struct cmd_list_element): Add field context.
11942 (set_cmd_context, get_cmd_context): Declare.
11943 * cli/cli-decode.h: Ditto.
11944 * cli/cli-decode.c (get_cmd_context): New function.
11945 (set_cmd_context): New function.
11946 (add_cmd): Initialize context.
11947 Part of fixing PR gdb/145 and PR gdb/146.
11949 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11951 * cli/cli-decode.c (cmd_type): New function.
11952 * command.h (cmd_type): Declare.
11953 * infrun.c (set_schedlock_func): Call function cmd_type.
11954 * kod.c (kod_set_os): Call cmd_type.
11955 * cris-tdep.c (cris_version_update): Use function cmd_type.
11956 (cris_mode_update, cris_abi_update): Ditto.
11958 * command.h: (execute_cmd_post_hook): Declare.
11959 (execute_cmd_pre_hook): Declare.
11960 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11961 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11962 functions. Execute pre/post hook while ensuring that afterwords
11963 hook_in is cleared.
11964 * top.c (execute_command): Use execute_cmd_post_hook, and
11965 execute_cmd_pre_hook to execute pre/post commands.
11966 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11968 (hook_stop_stub): Call execute_cmd_pre_hook.
11970 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11972 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11973 set'' and this leads to a core dump. Move xstrdup of
11974 operating_system to after check that it is not NULL.
11976 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11978 * kod.c (kod_set_os): Remove unnecessary check that
11979 ``command->type'' is set_cmd.
11981 * valprint.c (set_input_radix): Use input_radix.
11982 (set_output_radix): Use output_radix.
11983 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11986 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11988 * value.h (struct value): Delete field ``substring_addr''. Change
11989 aligner fields to force_doublest_align, force_longest_align,
11990 force_core_addr_align and force_pointer_aligh.
11992 * value.h (struct value): Fix typo in above change.
11994 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11996 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11997 to fix internal_error from ``maintenance print architecture''.
11999 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12001 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12002 for gcc versions after gcc-2.8.1.
12004 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12006 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12007 for method resolution. Restore adjustment of ``this'' pointer after
12008 calling value_struct_elt, which was accidentally removed during the
12011 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12013 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12015 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12016 get_saved_register.
12017 * value.h (value_of_register): Update.
12019 2002-03-14 Richard Henderson <rth@redhat.com>
12021 * configure.in: Detect declaration for canonicalize_file_name.
12022 * utils.c (canonicalize_file_name): Declare, if needed.
12023 (gdb_realpath): Prefer realpath if available and usable.
12024 * config.in, configure: Rebuild.
12026 2002-03-14 Richard Henderson <rth@redhat.com>
12028 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12029 a constant array bound.
12031 * MAINTAINERS: Add myself to write-after-approval.
12033 2002-03-14 Michael Snyder <msnyder@redhat.com>
12035 * symfile.c (syms_from_objfile): Return immediately if no syms.
12036 (symbol_file_add): Return immediately if no syms.
12037 (find_sym_fns): Return immediately if no syms.
12039 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12041 * gdbserver/remote-util.c (remote_open): Print remote-side's
12042 IP address when remote debugging over the network.
12044 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12046 * config/sparc/fbsd.mh: Fix copyright.
12047 * config/sparc/fbsd.mt: Likewise.
12049 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12051 * MAINTAINERS: Fix typo in name of gdb warnings option.
12052 (x86-64): Fix formating so that this can be parsed by awk.
12054 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12056 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12057 * defs.h: Include "gdb/signals.h".
12058 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12060 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12062 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12063 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12066 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12067 Don Howard <dhoward@redhat.com>
12069 * mips-tdep.c (ST0_FR): Define.
12070 (mips2_fp_compat): New function, temporarily disabled.
12071 (mips_read_fp_register_single): New function.
12072 (mips_read_fp_register_double): New function.
12073 (mips_print_register): Use them.
12074 (do_fp_register_row): Likewise.
12076 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12078 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12081 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12083 * stabsread.c (read_member_functions): Fix is_stub test for
12084 static member functions, improve comment.
12086 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12088 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12089 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12090 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12091 commands that set boolean values.
12092 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12093 (arm_rdi_resume): Always initialize PC.
12094 (arm_rdi_open): Don't use rslt as a boolean.
12095 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12096 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12097 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12098 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12100 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12102 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12103 * configure: Rebuilt.
12105 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12107 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12108 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12110 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12112 * cli/cli-decode.c (set_cmd_completer): New function.
12113 * command.h (set_cmd_completer): Declare.
12114 * cli/cli-decode.h (set_cmd_completer): Ditto.
12116 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12117 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12118 * win32-nat.c (_initialize_inftarg): Ditto.
12119 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12120 * proc-api.c (_initialize_proc_api): Ditto.
12121 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12122 * source.c (_initialize_source): Ditto.
12123 * exec.c (_initialize_exec): Ditto.
12124 * solib.c (_initialize_solib): Ditto.
12125 * top.c (init_main): Ditto.
12126 * tracepoint.c (_initialize_tracepoint): Ditto.
12127 * symfile.c (_initialize_symfile): Ditto.
12128 * printcmd.c (_initialize_printcmd): Ditto.
12129 * infcmd.c (_initialize_infcmd): Ditto.
12130 * corefile.c (_initialize_core): Ditto.
12132 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12134 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12136 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12138 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12140 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12142 * NEWS: Update headings, 5.2 has branched.
12144 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12146 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12147 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12148 (register_addr, REGISTER_RAW_SIZE): Likewise.
12149 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12150 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12152 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12154 * MAINTAINERS (x86-64): Add myself.
12155 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12156 changed value_ptr -> struct value *
12158 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12160 * configure.host (sparc64-*-freebsd): Add.
12161 * configure.tgt: Likewise.
12162 * config/sparc/fbsd.mh: New file.
12163 * config/sparc/fbsd.mt: Likewise.
12164 * config/sparc/nm-fbsd.h: Likewise.
12165 * config/sparc/tm-fbsd.h: Likewise.
12167 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12169 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12170 regformats/reg-s390x.dat.
12172 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12174 * utils.c: Add FIXME explaining true/false problem.
12176 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12178 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12180 2002-02-28 Michael Chastain <mec@shout.net>
12182 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12184 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12186 * gdbserver/linux-s390-low.c: New file.
12187 * regformats/reg-s390.dat: New file.
12188 * regformats/reg-s390x.dat: New file.
12189 * gdbserver/configure.srv: Add S/390.
12190 * gdbserver/Makefile.in: Add S/390.
12191 * configure.tgt: Enable gdbserver for S/390.
12193 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12195 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12196 first line of the doc string for "info dos", except at the end of
12197 the sentence, since the short help stops at the first period.
12199 2002-02-28 Jason Merrill <jason@redhat.com>
12201 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12203 2002-02-27 Fred Fish <fnf@redhat.com>
12205 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12206 comment (dumy -> dummy).
12208 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12210 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12212 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12214 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12216 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12218 * gdbserver/acconfig.h: New file.
12219 * gdbserver/i387-fp.c: New file.
12220 * gdbserver/i387-fp.h: New file.
12221 * gdbserver/linux-x86-64.c: New file.
12222 * regformats/reg-x86-64.dat: New file.
12223 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12224 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12225 * gdbserver/configure.in: Add support for regsets.
12226 * gdbserver/config.in: Regenerate.
12227 * gdbserver/configure: Regenerate.
12228 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12229 * gdbserver/linux-low.h: New file.
12230 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12232 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12233 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12234 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12235 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12236 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12237 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12238 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12239 "i387-fp.h". Add PTRACE_GETREGS and friends.
12240 * gdbserver/regcache.c (supply_register): New function.
12241 (supply_register_by_name): New function.
12242 (collect_register): New function.
12243 (collect_register_by_name): New function.
12245 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12247 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12248 (config.status): Add configure.srv dependency.
12249 (server_h): Add config.h dependency.
12251 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12253 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12254 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12255 * gdbserver/configure.srv: Change i386-*-linux* to use
12258 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12260 * x86-64-tdep.c: Re-indent. Update copyright date.
12262 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12264 From Michal Ludvig <mludvig@suse.cz>:
12265 * x86-64-tdep.c (value.h): Delete.
12266 (gdb_assert.h): Include.
12267 (x86_64_register_convert_to_virtual,
12268 x86_64_register_convert_to_raw ): Add check which lets only
12269 floating-point values to be converted.
12270 (value_push): Delete.
12271 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12272 (i386_gdbarch_init): Number of register_bytes fixed.
12274 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12276 * MAINTAINERS: Add x86-64 target.
12278 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12280 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12281 * osfsolib.c (solib_map_sections): Ditto.
12282 * irix5-nat.c (solib_map_sections): Ditto.
12283 * corelow.c (gdb_check_format): Ditto.
12284 * symfile.c (symfile_bfd_open): Ditto.
12285 * solib.c (solib_map_sections): Ditto.
12288 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12290 * remote.c (_initialize_remote): By default, disable ``e'' and
12291 ``E'' step out-of-range packets.
12293 2002-02-26 Andreas Schwab <schwab@suse.de>
12295 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12296 m68k_linux_frame_saved_pc.
12297 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12299 (SIGCONTEXT_PC_OFFSET): Remove.
12300 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12301 m68k_linux_sigtramp_saved_pc): New functions.
12302 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12303 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12304 (UCONTEXT_PC_OFFSET): Define.
12305 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12306 non-RT and RT signal trampolines.
12308 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12310 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12311 (TARGET_NBPG, STACK_END_ADDR): Delete
12312 (VARIABLES_INSIDE_BLOCK): Delete.
12314 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12316 * utils.c (perror_with_name): Make string parameter constant.
12317 (print_sys_errmsg): Ditto.
12319 * defs.h (perror_with_name): Update.
12320 (print_sys_errmsg): Update.
12323 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12325 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12326 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12328 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12330 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12331 if it already matches the current architecture from the exec file.
12332 Include arch-utils.h for gdbarch_info_init prototype.
12333 * Makefile.in (rs6000-nat.o): Update dependencies.
12335 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12337 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12338 list of exported variables.
12340 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12342 * gdbserver/configure.srv: New file.
12343 * gdbserver/configure.in: Use configure.srv instead
12344 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12346 * gdbserver/configure: Regenerated.
12347 * gdbserver/terminal.h: New file.
12348 * gdbserver/Makefile.in: Update for configure changes. Remove
12349 more unneeded include paths.
12351 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12353 From wiz at danbala:
12354 * config/sparc/tm-sp64.h: Fix grammar and typos.
12357 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12359 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12360 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12361 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12362 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12363 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12364 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12365 * s390-tdep.c: Ditto.
12366 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12367 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12368 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12369 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12370 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12371 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12372 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12373 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12374 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12375 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12378 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12380 * lin-thread.c: Delete file.
12381 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12382 to gdb_proc_service.h.
12383 * configure: Re-generate.
12385 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12386 * serial.c (serial_open): Delete check for "ocd".
12389 * Makefile.in (linux-thread.o): Delete target.
12390 * linux-thread.c: Delete file.
12392 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12393 renamed SH files to be consistent.
12395 * symtab.c (sort_search_symbols): Use xfree.
12397 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12399 * arm-linux-tdep.c (arm_linux_init_abi): Register
12400 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12401 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12402 definition with undef, since we don't want the sysvr4 definition.
12403 (SKIP_TRAMPOLINE_CODE): Likewise.
12405 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12407 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12409 * configure.in: (AC_CHECK_FUNCS) Added test for
12410 canonicalize_file_name Regenerated.
12411 * config.in, configure: Regenerated.
12412 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12413 defined use canonicalize_file_name.
12415 2002-02-23 Michael Chastain <mec@shout.net>
12417 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12419 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12421 * README: Remove references to cygnus.com.
12422 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12423 dot com'' form. Remove references to cygnus.com and sourceware.
12425 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12427 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12428 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12429 1003.1-2001 no longer allows "head -1".
12430 * gdb/Makefile.in (version.c): Likewise.
12431 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12432 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12433 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12435 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12437 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12438 * command.h (cmd_cfunc_eq): Declare.
12439 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12441 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12442 ``struct cmd_list_element *''.
12443 * cli/cli-cmds.c (is_complete_command): Update. Use
12445 * top.c (execute_command): Pass the command to
12446 is_complete_command.
12447 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12449 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12451 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12452 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12453 architecture defines.
12454 * s390-tdep.c (s390_gdbarch_init): Likewise.
12456 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12458 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12459 (arm_linux_push_arguments): Likewise.
12460 (arm_linux_init_abi): Register them. Also register linux-specific
12462 (find_minsym_and_objfile): Use strcmp, not STREQ.
12463 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12464 (arm_linux_call_dummy_words): Delete declaration.
12465 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12466 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12468 (LOWEST_PC): Delete.
12470 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12472 * maint.c (print_section_info): Do not prepend `0x' to filepos
12473 output, it will be handled by local_hex_string_custom.
12475 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12477 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12478 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12479 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12481 2002-02-22 Jim Blandy <jimb@redhat.com>
12483 Indicate that the bcache functions don't change the strings
12485 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12486 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12488 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12490 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12492 2002-02-21 Christopher Faylor <cgf@redhat.com>
12494 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12495 find the complete path to a loaded DLL.
12497 2002-02-21 Fred Fish <fnf@redhat.com>
12499 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12500 that marks the end of the range of a function, enter a line number
12501 entry that has a line number of zero and a PC offset that matches
12502 the end of the function. This starts a range of PC's for which no
12503 line number information is known.
12504 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12505 PC's for which no line number info is found (line number is zero)
12506 then we didn't find any valid line information.
12507 * symtab.h: Document use of zero line number entry.
12509 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12511 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12512 (have_ptrace_getvrregs): Define for run time checks.
12513 (gdb_vrregset_t): New type for Altivec register handling.
12514 (fetch_register, store_register): Fetch/store altivec register
12516 (fetch_altivec_register, store_altivec_register): New functions.
12517 (supply_vrregset, fill_vrregset): New functions.
12518 (fetch_altivec_registers, store_altivec_registers): New functions.
12519 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12522 2002-02-21 Jiri Smid <smid@suse.cz>
12524 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12526 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12528 * Makefile.in (armnbsd-nat.o): Update dependencies.
12529 * armnbsd-nat.c (supply_gregset): New function. Common code to
12530 supply the integer register set.
12531 (supply_fparegset): New function. Similar for FPA registers.
12532 (fetch_regs, fetch_fp_regs): Use them.
12533 (fetch_core_registers): Likewise.
12534 (fetch_elfcore_registers): New function.
12535 (arm_netbsd_elfcore_fns): New core-file type specification.
12536 (_initialize_arm_netbsd_nat): Register it.
12538 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12540 * armnbsd-nat.c: Include gdbcore.h.
12541 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12542 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12543 'void' to declaration, to shut up ARI.
12544 (fetch_core_registers): Make static. Rewrite using supply_register.
12545 (arm_netbsd_core_fns): New core-file type specification.
12546 (_initialize_arm_netbsd_nat): New function.
12548 2002-02-21 Christopher Faylor <cgf@redhat.com>
12550 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12553 2002-02-20 Christopher Faylor <cgf@redhat.com>
12555 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12558 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12560 * jv-exp.y (parse_number): Change type of implicit longs
12561 to builtin_type_uint64.
12563 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12565 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12566 to be an integer instead of a `union wait'.
12568 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12570 * mips-linux-nat.c: Call the operating system GNU/Linux.
12571 * mips-linux-tdep.c: Likewise.
12572 * mips-tdep.c: Likewise.
12574 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12577 * jv-exp.y (parse_number): Handle 64-bit integers.
12579 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12581 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12582 AC_STDC_HEADERS to AC_HEADER_STDC.
12583 * gdbserver/configure: Regenerated.
12585 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12587 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12589 * sparc-tdep.c (get_longjmp_target): Likewise.
12591 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12593 * News: Add news about ARM and Multi-arch. Mention the new target
12596 2002-02-19 Jim Blandy <jimb@redhat.com>
12598 * stabsread.c (error_type_complaint): Improve error message.
12600 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12602 * gdbserver/README: Update documentation.
12603 * gdbserver/configure.in: Update configury to match documentation.
12604 * gdbserver/Makefile.in: Likewise.
12605 * gdbserver/configure: Regenerated.
12606 * gdbserver/aclocal.m4: New file, generated by aclocal.
12607 * gdbserver/config.in: New file, generated by autoheader.
12609 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12611 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12614 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12616 * arm-tdep.h (enum arm_float_model): New enum.
12617 (struct gdbarch_tdep): Add fp_model.
12618 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12619 up floating-point conversions until we know the floating-point model
12620 in use by the inferior. Don't complain about being unable to
12621 determine the ABI of the inferior when we don't have one.
12622 (arm_extract_return_value): Support different floating-point models.
12623 (arm_store_return_value): Likewise.
12624 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12626 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12628 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12630 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12631 of ``current_gdbarch''.
12633 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12635 * armnbsd-nat.c : ANSIfy all function declarations.
12636 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12637 (fetch_inferior_registers): Re-implement in terms of above.
12638 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12639 (store_inferior_registers): Re-implement in terms of above.
12641 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12643 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12645 * arm-linux-tdep.c: Likewise.
12646 * config/arm/tm-linux.h: Likewise.
12648 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12650 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12651 * config/arm/nbsd.mt (TM_FILE): Delete.
12652 * config/arm/tm-nbsd.h: Delete.
12654 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12656 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12657 Initialize CALL_DUMMY_LENGTH.
12659 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12661 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12663 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12664 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12665 defines one thing and that is incorrect for this port.
12666 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12668 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12670 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12672 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12674 * win32-nat.c (display_selector): New function. Displays information
12675 about the information returned by GetThreadSelectorEntry API function.
12676 (display_selectors): New function. Displays the infomation of
12677 the selector given as argument, or of CS, DS ans FS selectors
12678 if no argument is given.
12679 ( _initialize_inftarg): Add "w32" as info prefix command.
12680 Add "info w32 selector" as command calling display_selectors.
12682 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12684 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12685 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12688 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12690 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12692 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12694 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12695 (arm_fix_call_dummy): Call it.
12696 (arm_call_dummy_breakpoint_offset): Delete.
12697 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12698 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12700 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12702 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12703 Default to func_frame_chain_valid.
12704 * gdbarch.h, gdbarch.c: Re-generate.
12705 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12707 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12709 * ppc-linux-nat.c: Update copyright.
12710 (fetch_register, store_register): Add tid parameter, don't compute
12712 (fetch_ppc_registers, store_ppc_registers): Add tid
12713 parameter. Pass it along to callees.
12714 (fetch_inferior_registers, store_inferior_registers): Compute tid
12715 here, and pass it to calleed functions.
12716 (fill_gregset, supply_fpregset): Clean up formatting.
12718 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12720 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12721 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12723 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12725 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12726 * gdbarch.c gdbarch.h: Regenerate.
12727 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12729 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12730 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12731 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12733 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12734 * arm-tdep.c (arm_get_longjmp_target): New function.
12735 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12736 this to a positive value register arm_get_longjmp_target as the
12738 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12739 (arm_linux_init_abi): Set up longjmp description in tdep.
12740 * armnbsd-nat.c (get_longjmp_target): Delete.
12741 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12742 description in tdep.
12743 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12744 (get_longjmp_target): Delete declaration.
12745 (GET_LONGJMP_TARGET): Delete.
12746 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12747 (GET_LONGJMP_TARGET): Delete.
12749 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12751 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12752 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12753 of ``current_gdbarch''.
12755 2002-02-17 Tom Tromey <tromey@redhat.com>
12757 * cli/cli-cmds.c (compare_strings): New function.
12758 (complete_command): Only print each unique item once.
12759 * completer.h (complete_line): Declare.
12760 * completer.c (complete_line): New function.
12761 (line_completion_function): Use it.
12763 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12765 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12766 * gdbarch.h, gdbarch.c: Re-generate.
12768 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12770 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12772 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12774 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12775 * valops.c (value_arg_coerce): Don't take the address of a reference
12776 to convert an argument to a reference.
12778 2002-02-15 Christopher Faylor <cgf@redhat.com>
12780 * win32-nat.c (get_image_name): New function.
12781 (handle_load_dll): Use get_image_name function.
12782 (get_child_debug_event): Avoid registering debug events until possibly
12783 execed process is started.
12784 (child_create_inferior): Allow invocation via shell so that command
12785 line redirection, etc. works ok.
12786 (_initialize_inftarg): Add new command: "set shell" to control whether
12787 a shell is used to start a process.
12789 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12791 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12792 instead of find_register_by_number.
12793 (cannot_store_register): Likewise.
12795 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12797 * dwarf2read.c: Replace fprintf (stderr, ...) by
12798 fprintf_unfiltered (gdb_stderr, ...).
12800 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12802 * gdbserver/gdbserver.1: Document --attach.
12804 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12806 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12808 * arm-tdep.c (arm_default_arm_le_breakpoint)
12809 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12810 (arm_default_thumb_be_breakpoint): New. Initialize them from
12811 traditional breakpoint defines.
12812 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12813 (arm_gdbarch_init): Initialize new breakpoint variables.
12814 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12815 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12816 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12817 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12819 (arm_netbsd_init_abi_common): ... here; new function.
12820 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12821 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12822 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12823 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12825 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12827 * arm-tdep.h (enum arm_abi): New enum.
12828 (struct gdbarch_tdep): New structure.
12829 (LOWEST_PC): Provide a default.
12830 (arm_gdbarch_register_os_abi): Declare new function.
12831 * arm-tdep.c (arm_abi_names): New array.
12832 (process_note_abi_tag_sections): New function.
12833 (get_elfosabi): New function.
12834 (arm_gdbarch_register_os_abi): New function.
12835 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12836 support for that ABI has been built in, then call the appropriate
12837 configuration routine. Use gdbarch_num_regs() to get the number
12839 (arm_dump_tdep): New function.
12840 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12841 place-holder functions.
12842 (_initialize_arm_tdep): Register them.
12843 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12845 * armnbsd-tdep.c: New file.
12846 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12847 * config/arm/nbsd.mt (TDEPFILES): Add it.
12848 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12850 * armnbsd-nat.c: Include regcache.h.
12851 * Makefile.in (armnbsd-nat.o): Update dependency list.
12853 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12855 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12857 * gdbserver/Makefile.in: Fix typos in target rules.
12859 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12861 Fix part of PR gdb/267.
12862 * linespec.c (find_methods): Handle constructors specially for now.
12864 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12866 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12868 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12869 standard_coerce_float_to_double().
12871 2002-02-14 Christopher Faylor <cgf@redhat.com>
12873 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12876 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12878 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12879 find_variant_by_name, because it confuses the multiarch
12880 framework. Return NULL if there isn't an architecture with the
12881 user supplied name, instead of forcing a different one without
12882 recording the change with the multiarch machinery.
12883 (find_variant_by_name): Delete.
12885 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12887 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12888 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12890 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12892 * stack.c (print_frame_info_base): When calling
12893 print_frame_info_listing_hook, set current_source_symtab.
12895 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12897 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12898 and remove unused $(INCLUDE_DIR).
12899 Add regcache.c to OBS.
12900 Add generated register protocol files to clean target.
12901 Update dependencies for new objects, obsolete old target code.
12903 * gdbserver/linux-low.c: Remove all platform-specific code to
12904 new files. Remove various dead code. Update to use regcache
12906 * gdbserver/remote-utils.c (fromhex): Add return statement
12908 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12910 (input_interrupt): Add integer parameter to match prototype
12911 of a signal handler.
12912 (outreg): Use register_data ().
12913 (prepare_resume_reply): Use gdbserver_expedite_regs.
12914 * gdbserver/server.c (main): Dynamically allocate own_buf because
12915 PBUFSIZ is no longer constant. Use registers_to_string () and
12916 registers_from_string ().
12917 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12918 for error (), fatal (), and warning (). Update definition of
12919 PBUFSIZ to use regcache functionality. Add include guard.
12920 * gdbserver/utils.c (fatal): Add missing ``const''.
12921 (warning): New function.
12923 * regformats/regdat.sh: Include "regcache.h" in generated files.
12924 Provide init_registers () function.
12925 * regformats/regdef.h: Add prototype for set_register_cache ().
12928 * gdbserver/linux-arm-low.c: New file.
12929 * gdbserver/linux-i386-low.c: New file.
12930 * gdbserver/linux-ia64-low.c: New file.
12931 * gdbserver/linux-m68k-low.c: New file.
12932 * gdbserver/linux-mips-low.c: New file.
12933 * gdbserver/linux-ppc-low.c: New file.
12934 * gdbserver/linux-sh-low.c: New file.
12936 * gdbserver/regcache.c: New file.
12937 * gdbserver/regcache.h: New file.
12939 * gdbserver/low-linux.c: Removed obsolete file.
12941 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12943 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12944 * config/i386/linux.mt: Likewise.
12945 * config/ia64/linux.mt: Likewise.
12946 * config/m68k/linux.mh: Likewise.
12947 * config/powerpc/linux.mh: Likewise.
12948 * config/mips/linux.mt: Likewise.
12950 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12952 * config/i386/i386lynx.mh: Mark gdbserver variables
12953 as (currently) obsolete for this target.
12954 * config/i386/nbsd.mt: Likewise.
12955 * config/i386/nbsdelf.mt: Likewise.
12956 * config/m32r/m32r.mt: Likewise.
12957 * config/m68k/m68klynx.mh: Likewise.
12958 * config/m68k/nbsd.mt: Likewise.
12959 * config/m68k/sun3os4.mh: Likewise.
12960 * config/mips/vr5000.mt: Likewise.
12961 * config/ns32k/nbsd.mt: Likewise.
12962 * config/pa/hppabsd.mh: Likewise.
12963 * config/pa/hppaosf.mh: Likewise.
12964 * config/powerpc/nbsd.mt: Likewise.
12965 * config/rs6000/rs6000lynx.mh: Likewise.
12966 * config/s390/s390.mt: Likewise.
12967 * config/s390/s390x.mt: Likewise.
12968 * config/sparc/sparclynx.mh: Likewise.
12969 * config/sparc/sun4os4.mh: Likewise.
12970 * config/i386/x86-64linux.mt: Likewise.
12971 * config/sparc/linux.mh: Likewise.
12973 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12975 * configure.tgt: Configure gdbserver only for known working
12976 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12977 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12978 SUBDIRS if it is configured. Update comment for ${nativefile}.
12979 * configure: Regenerated.
12981 2002-02-13 Michael Snyder <msnyder@redhat.com>
12983 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12985 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12986 (default_gcore_mach): Just return 0, work around a problem in bfd.
12987 (default_gcore_target): OK to return NULL if exec_bfd is null.
12988 (make_mem_sec): Use a cast, avoid a warning.
12990 * procfs.c (find_memory_regions_callback): Use a cast instead of
12991 calling host_pointer_to_address (which complains if
12992 sizeof (host pointer) != sizeof (target pointer)).
12993 (procfs_make_note_section): Avoid overflow in psargs string.
12995 * procfs.c (procfs_make_note_section): Make the default
12996 implementation return an error.
12998 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13000 * procfs.c (procfs_make_note_section): Provide a default definition
13001 (for alpha-dec-osf4.0f). Fix typos.
13003 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13005 * linux-proc.c: Add include of regcache.h.
13006 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13008 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13010 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13011 * memattr.c (create_mem_region): Disallow useless empty region.
13012 Regions are half-open intervals, so allow [A..B) [B..C) as
13015 2002-02-13 Michael Chastain <mec@shout.net>
13017 * defs.h: Kill CONST_PTR.
13018 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13019 * c-lang.c (c_builtin_types): Likewise.
13020 * ch-lang.c (ch_builtin_types): Likewise.
13021 * f-lang.c (f_builtin_types): Likewise.
13022 * language.c (unknown_builtin_types): Likewise.
13023 * m2-lang.c (m2_builtin_types): Likewise.
13024 * p-lang.c (pascal_builtin_types): Likewise.
13025 * scm-lang.c (c_builtin_types): Likewise.
13027 2002-02-13 Keith Seitz <keiths@redhat.com>
13029 * arm-tdep.h (arm_get_next_pc): Add declaration.
13031 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13033 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13034 with other related struct-returning functions.
13035 (arm_extract_struct_value_address): New function.
13036 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13037 initialize float_format, double_format and long_double_format as
13038 appropriate to the endianness of the target.
13039 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13040 (arm_use_struct_convention): Delete declaration.
13041 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13043 2002-02-13 Keith Seitz <keiths@redhat.com>
13045 * defs.h (core_addr_to_string_nz): New function.
13047 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13049 Apply missing bits of 2002-01-15 patch.
13050 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13051 (fill_fpregset): Use i387_fill_fsave.
13053 2002-02-12 Keith Seitz <keiths@redhat.com>
13055 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13056 (core_addr_to_string_nz): New function.
13058 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13060 * arm-linux-nat.c: Really include arm-tdep.h.
13061 * config/arm/tm-linux.h (struct type, struct value): Declare.
13063 2002-02-11 Michael Snyder <msnyder@redhat.com>
13065 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13066 (gcore section): Ifdef for Solaris and Unixware only.
13067 (procfs_do_thread_registers): Unixware needs one lwpstatus
13068 per thread (not one prstatus or pstatus).
13069 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13070 not over all gdb threads. For unixware, call elfcore_write_pstatus
13071 once before iterating over threads.
13073 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13075 * arm-tdep.h: New file.
13076 * arm-tdep.c: Include arm-tdep.h.
13077 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13078 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13079 (arm_print_float_info, arm_register_type, convert_to_extended)
13080 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13081 (arm_extract_return_value, arm_register_name): Make static.
13082 (arm_software_single_step): Similarly. Fix types in declaration.
13083 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13084 (arm_store_return_value, arm_store_struct_return): New functions.
13085 (arm_gdbarch_init): Register the above functions. Also register
13086 call_dummy_start_offset, sizeof_call_dummy_words,
13087 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13088 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13089 max_register_virtual_size, register_size. Set up
13090 prologue_cache.saved_regs here, rather than ...
13091 (_initialize_arm_tdep): ... here.
13092 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13094 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13095 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13096 (arm_print_float_info, arm_register_type, convert_to_extended)
13097 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13098 (arm_extract_return_value, arm_register_name): Delete declarations.
13099 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13100 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13101 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13102 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13103 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13104 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13105 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13106 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13107 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13108 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13109 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13110 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13112 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13113 * remote-rdi.c remote-rdp.c: Likewise.
13114 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13115 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13116 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13119 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13120 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13121 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13122 from non-ARM_ prefixed definitions.
13123 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13125 * remote-rdi.c remote-rdp.c: Likewise.
13126 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13128 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13130 * arm-tdep.c (arm_frameless_function_invocation)
13131 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13132 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13133 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13134 (arm_pop_frame, arm_get_next_pc): Make static.
13135 (arm_gdbarch_init): Register above in gdbarch structure.
13136 (arm_read_fp): Renamed from arm_target_read_fp.
13137 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13138 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13139 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13140 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13141 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13142 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13143 (arm_pc_is_thumb_dummy): Delete declarations.
13144 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13145 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13146 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13147 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13149 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13151 * symtab.c (compare_search_syms): New function.
13152 (sort_search_symbols): New function.
13153 (search_symbols): Sort symbols after searching rather than
13156 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13158 * NEWS: Linux -> GNU/Linux.
13160 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13162 * gdbarch.sh: For for level one methods, disallow a definition
13163 when partially multi-arched. Add comments explaining rationale.
13164 * gdbarch.h: Re-generate.
13166 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13168 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13169 multi-arch partial.
13171 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13173 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13174 field. Use diff -u.
13175 * gdbarch.c: Re-generate.
13177 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13179 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13180 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13183 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13185 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13186 multi-arch partial.
13187 (PUSH_ARGUMENTS): Switch to using predefault.
13188 * gdbarch.c: Regenerate.
13190 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13192 * valops.c (PUSH_ARGUMENTS): Delete definition.
13193 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13194 partial. Default to default_push_arguments.
13195 * gdbarch.h, gdbarch.c: Regenerate.
13197 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13199 * defs.h (throw_exception): Rename return_to_top_level. Update
13201 * utils.c (error_stream, internal_verror, quit): Ditto.
13202 * top.c (throw_exception, catcher): Ditto.
13203 * sparclet-rom.c (sparclet_load): Ditto.
13204 * remote.c (interrupt_query, minitelnet): Ditto.
13205 * remote-sds.c (interrupt_query): Ditto.
13206 * remote-mips.c (mips_error, mips_kill): Ditto.
13207 * ocd.c (interrupt_query): Ditto.
13208 * monitor.c (monitor_interrupt_query): Ditto.
13209 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13210 * target.h: Update comment.
13212 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13214 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13216 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13217 default_double_format.
13218 * gdbarch.h, gdbarch.c: Re-generate.
13219 * findvar.c (floatformat_unknown): Delete variable definition.
13220 * doublest.h (floatformat_unknown): Delete variable declaration.
13222 2002-02-09 Jim Blandy <jimb@redhat.com>
13224 * stabsread.c (read_type): Add code to parse Sun's syntax for
13225 prototyped function types.
13227 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13229 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13230 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13232 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13234 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13235 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13236 now _initialize_xcoffsolib gets called again and overrides the
13237 commands from solib.c in a native configuration.
13239 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13241 * doublest.c (store_typed_floating): Don't try to return a value.
13244 2002-02-08 Jim Blandy <jimb@redhat.com>
13246 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13247 is prototyped and has no arguments, print its argument list as
13250 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13252 * MAINTAINERS (write-after-approval): Add myself.
13253 (paper-trail): I've escaped!
13255 2002-02-08 Christopher Faylor <cgf@redhat.com>
13257 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13259 (_initialize_check_for_gdb_ini): Ditto.
13261 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13263 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13264 xaprintf -> xasprintf.
13266 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13268 * win32-nat.c: Remove use of printf and sprintf functions.
13270 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13272 * arm-tdep.c (arm_frame_chain_valid): Make static.
13273 (arm_push_arguments): Likewise.
13274 (arm_gdbarch_init): New function.
13275 (_initialize_arm_tdep): Call it.
13276 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13277 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13278 (FRAME_CHAIN_VALID): Delete.
13279 (arm_frame_chain_valid): Delete declaration.
13280 (PUSH_ARGUMENTS): Delete.
13281 (arm_push_arguments): Delete declaration.
13282 (CALL_DUMMY_P): Delete.
13284 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13285 Corinna Vinschen <vinschen@redhat.com>
13287 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13288 on builtin float types.
13290 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13292 * utils.c: Include <curses.h> before "bfd.h".
13293 * tui/tui-hooks.c: Likewise.
13294 * tui/tui.c: Likewise.
13295 * tui/tuiCommand.c: Likewise.
13296 * tui/tuiData.c: Likewise.
13297 * tui/tuiDataWin.c: Likewise.
13298 * tui/tuiDisassem.c: Likewise.
13299 * tui/tuiGeneralWin.c: Likewise.
13300 * tui/tuiIO.c: Likewise.
13301 * tui/tuiLayout.c: Likewise.
13302 * tui/tuiRegs.c: Likewise.
13303 * tui/tuiSource.c: Likewise.
13304 * tui/tuiSourceWin.c: Likewise.
13305 * tui/tuiStack.c: Likewise.
13306 * tui/tuiWin.c: Likewise.
13308 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13310 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13311 to include space for pseudoregs as well. Update loops accordingly.
13312 (sh_fp_frame_init_saved_regs): Ditto.
13313 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13315 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13317 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13318 Add Richard Earnshaw to Arm maintainers.
13320 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13322 * defs.h (warning_begin): Delete declaration.
13324 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13327 2002-02-07 Michael Snyder <msnyder@redhat.com>
13329 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13330 Logic bug, remove misplaced else.
13332 2002-02-07 Klee Dienes <klee@apple.com>
13334 * fork-inferior.c (fork_inferior): Add '!' to the list of
13335 characters that need to be quoted when building a string for the
13336 shell. Quote '!' specifically with a backslash, since CSH chokes
13337 when trying to evaluate "str!str".
13339 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13341 * rdi-share/host.h: Only provide a typedef for bool if it is not
13344 2002-02-04 Michael Snyder <msnyder@redhat.com>
13346 * breakpoint.h (enum bptype): Add new overlay event bp type.
13347 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13349 * breakpoint.c (create_internal_breakpoint): New function.
13350 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13351 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13352 (create_thread_event_breakpoint): Ditto.
13353 (create_solib_event_breakpoint): Ditto.
13354 (create_overlay_event_breakpoint): New function.
13355 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13356 (update_breakpoints_after_exec): Delete and re-initialize
13357 overlay event breakpoints after an exec. Add FIXME comment
13358 about longjmp breakpoint.
13359 (print_it_typical): Ignore overlay event breakpoints.
13360 (print_one_breakpoint): Ditto.
13362 (bpstat_what): Do not stop for overlay event breakpoints.
13363 (delete_breakpoint): Don't delete overlay event breakpoints.
13364 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13365 (breakpoint_re_set): Re-create overlay event breakpoint.
13367 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13368 (overlay_manual_command): Disable overlay breakpoints.
13369 (overlay_off_command): Disable overlay breakpoints.
13371 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13373 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13374 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13375 to here from config/tm-arm.h.
13376 (coff_sym_is_thumb): Make static.
13377 (arm_elf_make_msymbol_special): New function.
13378 (arm_coff_make_msymbol_special): New function.
13379 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13380 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13381 (coff_sym_is_thumb): Delete declaration.
13382 (arm_elf_make_msymbol_special): Declare.
13383 (arm_coff_make_msymbol_special): Declare.
13384 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13385 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13387 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13389 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13391 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13393 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13394 * gdbarch.c gdbarch.h: Regenerate.
13395 * arch-utils.c (default_print_float_info): New function.
13396 * arch-utils.h (default_print_float_info): Prototype it.
13397 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13398 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13399 (PRINT_FLOAT_INFO): Document it.
13401 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13402 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13403 (PRINT_FLOAT_INFO): Define.
13405 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13407 * win32-nat.c (_initialize_check_for_gdb_ini):
13408 Add typecast to sprintf argument to suppress a warning.
13410 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13412 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13413 to allow easier handling of pass state.
13414 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13415 that gives exception name and address.
13416 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13417 and set last_sig value to ourstatus->value.sig. Some missing
13419 (child_continue): Correctly report continue_status.
13420 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13421 TARGET_SIGNAL_0 (new default value).
13422 (child_resume): consider sig argument passed to decide if
13423 the exception should be passed to debuggee or not.
13425 2002-02-05 Michael Snyder <msnyder@redhat.com>
13427 * regcache.c (fetch_register): Call target_fetch_register
13428 only if we don't call FETCH_PSEUDO_REGISTER.
13429 (store_register): Call target_store_register only if we
13430 don't call STORE_PSEUDO_REGISTER.
13432 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13434 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13435 ELF_MAKE_MSYMBOL_SPECIAL.
13436 * gdbarch.c, gdbarch.h: Regenerate.
13437 * arch-utils.c (default_make_msymbol_special): New function.
13438 * arch-utils.h (default_make_msymbol_special): Export.
13439 * elfread.c (elf_symtab_read): Compile use of
13440 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13442 * coffread.c (coff_symtab_read): Ditto, for
13443 COFF_MAKE_MSYMBOL_SPECIAL.
13445 2002-02-05 Jim Blandy <jimb@redhat.com>
13447 * solib-svr4.c (svr4_truncate_ptr): New function.
13448 (svr4_relocate_section_addresses): Do the address arithmetic with
13449 the appropriate truncation for target addresses, even when
13450 CORE_ADDR is larger than a target address.
13452 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13454 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13457 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13459 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13462 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13464 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13466 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13468 * gdbserver/linux-low.c: Remove unused include files.
13470 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13472 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13473 (read_inferior_memory): Use it.
13474 (write_inferior_memory): Likewise.
13476 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13478 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13479 grubbing through sys_errlist.
13481 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13483 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13485 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13486 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13488 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13490 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13491 (do_sfunc, set_cmd_sfunc): New functions.
13493 * command.h (struct cmd_list_element): Add field func.
13494 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13495 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13496 * cli/cli-decode.h: Ditto.
13498 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13499 (help_all, help_cmd_list): Ditto.
13500 (find_cmd, complete_on_cmdlist): Ditto.
13501 * top.c (execute_command): Ditto.
13503 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13506 * infcmd.c (notice_args_read): Fix function signature.
13508 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13509 * cli/cli-decode.c (add_set_cmd): Ditto.
13510 * utils.c (initialize_utils): Ditto.
13511 * maint.c (_initialize_maint_cmds): Ditto.
13512 * infrun.c (_initialize_infrun): Ditto.
13513 * demangle.c (_initialize_demangler): Ditto.
13514 * remote.c (add_packet_config_cmd): Ditto.
13515 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13516 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13517 * proc-api.c (_initialize_proc_api): Ditto.
13518 * kod.c (_initialize_kod): Ditto.
13519 * valprint.c (_initialize_valprint): Ditto.
13520 * top.c (init_main): Ditto.
13521 * infcmd.c (_initialize_infcmd): Ditto.
13522 * corefile.c (_initialize_core): Ditto.
13523 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13524 * arch-utils.c (initialize_current_architecture): Ditto.
13525 (_initialize_gdbarch_utils): Ditto.
13526 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13528 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13529 * wince.c (_initialize_inftarg): Ditto.
13530 * symfile.c (_initialize_symfile): Ditto.
13531 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13532 * language.c (_initialize_language): Ditto.
13533 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13535 2002-02-04 Michael Snyder <msnyder@redhat.com>
13537 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13539 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13541 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13542 Add rules for building the register data files.
13544 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13546 * regformats/regdat.sh: Add braces to the definition of
13547 expedite_regs_${arch}.
13549 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13551 * regformats/regdef.h (struct reg): Add comment describing the
13552 requirements for offset and size fields.
13554 2002-02-04 Andreas Schwab <schwab@suse.de>
13556 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13557 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13559 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13561 * gdbarch.sh (copyright): Update years in generated header.
13562 (SMASH_TEXT_ADDRESS): Add rule.
13563 * gdbarch.h, gdbarch.c: Re-generate.
13564 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13565 * dbxread.c: Likewise.
13566 * dwarfread.c: Likewise.
13567 * elfread.c: Likewise.
13568 * somread.c: Likewise.
13570 * arm-tdep.c (arm_smash_text_address): New function.
13571 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13573 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13575 Add support for hardware watchpoints on win32 native.
13576 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13577 CONTEXT_DEBUG_REGISTERS.
13578 (dr variable): New variable. Static array containing a local copy
13579 of debug registers.
13580 (debug_registers_changed): New variable. Reflects when debug registers
13581 are changed and need to be written to inferior.
13582 (debug_registers_used): New variable. Reflects when any debug register
13583 was set, used when new threads are created.
13584 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13586 (thread_rec): Set dr array if id is the thread of current_event .
13587 (child_continue, child_resume): Change the debug registers for all
13588 threads if debug_registers_changed.
13589 (child_add_thread): Change the debug registers if debug_registers_used.
13590 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13591 Link nm.h to new nm-cygwin.h file.
13592 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13593 of hardware registers.
13595 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13597 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13598 Restore behavour broken by 2002-01-20 Andrew Cagney
13599 <ac131313@redhat.com> IEEE_FLOAT removal.
13601 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13603 * c-valprint.c (c_val_print): Pass a proper valaddr to
13604 cp_print_class_method.
13605 * valops.c (search_struct_method): If there is only one method
13606 and args is NULL, return that method.
13608 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13610 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13611 accessing tag_name directly.
13613 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13615 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13616 of accessing tag_name directly.
13618 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13621 * gdbtypes.c (replace_type): New function.
13622 * gdbtypes.h (replace_type): Add prototype.
13623 * stabsread.c (read_type): Use replace_type.
13625 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13627 * Makefile.in (memattr.o): Add missing dependencies rule.
13629 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13631 * breakpoint.c (break_at_finish_command): Really export.
13632 (break_at_finish_at_depth_command): Ditto.
13633 (tbreak_at_finish_command): Ditto.
13634 * hppa-tdep.c: Include completer.h.
13635 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13636 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13638 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13640 * utils.c (do_write): New function.
13641 (error_stream): Rewrite combining the code from error_begin and
13643 (verror): Rewrite using error_stream.
13644 (error_begin): Delete function.
13646 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13648 * utils.c (error_begin): Make static.
13649 * defs.h (error_begin): Delete declaration.
13651 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13652 (decode_line_1): Use cplusplus_error instead of error_begin,
13653 cplusplus_hint and return_to_top_level.
13654 * coffread.c (coff_symfile_read): Use error instead of error_begin
13655 and return_to_top_level.
13656 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13658 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13660 * language.h (type_error, range_error): Make string parameter
13662 * language.c (warning_pre_print): Delete extern declaration.
13663 * dwarfread.c (warning_pre_print): Ditto.
13664 * language.c (type_error, range_error): Rewrite to use verror and
13665 vwarning instead of warning_begin.
13667 2002-02-01 Michael Snyder <msnyder@redhat.com>
13669 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13670 (set_ignore_count): Move misplaced comment back where it belongs.
13672 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13674 * command.h (NO_FUNCTION): Delete macro.
13675 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13676 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13677 * tracepoint.c (_initialize_tracepoint): Ditto.
13678 * cli/cli-decode.c (add_set_cmd): Ditto.
13679 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13681 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13683 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13684 Update ``this'' pointer when calling virtual functions.
13686 2002-02-01 Michael Snyder <msnyder@redhat.com>
13688 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13689 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13691 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13693 * regformats/reg-arm.dat: New file.
13694 * regformats/reg-i386.dat: New file.
13695 * regformats/reg-ia64.dat: New file.
13696 * regformats/reg-m68k.dat: New file.
13697 * regformats/reg-mips.dat: New file.
13698 * regformats/reg-ppc.dat: New file.
13699 * regformats/reg-sh.dat: New file.
13700 * regformats/regdef.h: New file.
13701 * regformats/regdat.sh: New file.
13703 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13705 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13706 (arm_frame_args_address, arm_frame_locals_address): New functions.
13707 (arm_frame_num_args): New function.
13708 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13709 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13710 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13712 2002-01-31 Michael Snyder <msnyder@redhat.com>
13714 * breakpoint.c (break_at_finish_command): Export.
13715 (break_at_finish_at_depth_command): Export.
13716 (tbreak_at_finish_command): Export.
13717 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13718 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13719 "txbreak" commands, which are HPPA specific.
13721 * printcmd.c (disassemble_command): Remove an ancient
13722 artifact of an old merge.
13724 * symfile.h (enum overlay_debugging_state):
13725 Define enum constant values for overlay mode.
13726 * symfile.c (overlay_debugging): Use enums instead of literals.
13727 (overlay_is_mapped, overlay_auto_command,
13728 overlay_manual_command): Ditto.
13730 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13731 breakpoint_here_p, breakpoint_inserted_here_p,
13732 breakpoint_thread_match, bpstat_stop_status,
13733 describe_other_breakpoints, check_duplicates, clear_command):
13734 Coding standard fixes.
13736 * target.c (target_xfer_memory): Add spaces, coding standard.
13737 (do_xfer_memory): Add missing line to trust-readonly
13738 code: check bfd SEC_READONLY flag for section.
13740 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13742 * PROBLEMS: Fix typo, 5.1->5.1.1.
13744 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13746 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13747 data symbols, since we search based on textlow and texthigh.
13748 (find_pc_sect_symtab): Likewise.
13750 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13752 * defs.h (vwarning): Declare.
13753 * utils.c (vwarning): New function.
13754 (warning): Call vwarning.
13755 (warning_begin): Delete function.
13757 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13758 the warning message.
13759 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13762 2002-01-30 Michael Snyder <msnyder@redhat.com>
13764 * NEWS: Mention "set trust-readonly-sections" command.
13765 Mention generate-core-file command.
13767 2002-01-15 Michael Snyder <msnyder@redhat.com>
13769 * target.c: New command, "set trust-readonly-sections on".
13770 (do_xfer_memory): Honor the suggestion to trust readonly sections
13771 by reading them from the object file instead of from the target.
13772 (initialize_targets): Register command "set trust-readonly-sections".
13774 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13776 * parse.c (target_map_name_to_register): Simplify, search regs and
13777 pseudo-regs using a single loop.
13779 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13781 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13783 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13785 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13786 * config/i386/i386v42mp.mh: Add i387-nat.o .
13787 * i386v4-nat.c: Include i387-nat.h.
13788 (supply_fpregset): Use i387_supply_fsave.
13789 (fill_fpregset): Use i387_fill_fsave.
13791 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13793 * arm-tdep.c (arm_call_dummy_words): Define.
13794 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13795 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13796 (CALL_DUMMY_WORDS): Define.
13797 (arm_call_dummy_words): Declare.
13798 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13799 (arm_linux_call_dummy_words): Declare.
13801 2002-01-30 Andreas Schwab <schwab@suse.de>
13803 * m68klinux-nat.c: Fix last change to use regcache_collect
13804 instead of referencing registers[] directly.
13806 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13808 * parse.c (target_map_name_to_register): Delete code wrapped in
13809 #ifdef REGISTER_NAME_ALIAS_HOOK.
13811 2002-01-28 Michael Snyder <msnyder@redhat.com>
13813 * regcache.c (legacy_read_register_gen): Need to be able to
13814 read pseudo-register as well as real register.
13815 (legacy_write_register_gen): Ditto.
13817 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13819 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13820 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13821 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13822 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13823 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13824 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13825 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13826 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13827 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13828 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13829 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13830 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13831 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13832 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13833 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13834 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13835 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13836 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13837 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13838 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13840 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13842 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13843 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13844 (initialize_current_architecture): Update target_byte_order using
13845 information from BFD.
13846 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13847 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13849 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13851 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13852 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13854 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13855 #ifdef INVALID_FLOAT.
13856 * infcmd.c (do_registers_info): Ditto.
13857 * values.c (unpack_double): Ditto. Add comment.
13859 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13860 already commented out.
13862 2002-01-26 Andreas Schwab <schwab@suse.de>
13864 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13865 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13866 registers and add support for PTRACE_GETREGS.
13868 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13870 GDB 5.1.1 released from 5.1 branch.
13871 * NEWS: Add 5.1.1 news.
13872 * README: Sync with 5.1 branch.
13874 2002-01-23 Fred Fish <fnf@redhat.com>
13876 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13877 stabstring on initial malloc. Reallocing will copy it for us,
13880 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13882 * Makefile.in (hpread_h): Delete.
13883 (HFILES_NO_SRCDIR): Remove hpread.h.
13884 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13885 (hpread.o): Update dependencies.
13886 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13888 * hp-psymtab-read.c: Remove file.
13889 * hp-symtab-read.c: Remove file.
13890 * hpread.h: Remove file.
13892 * hpread.c: Merge all contents of hp-psymtab-read.c,
13893 hp-symtab-read.c and hpread.h into this file, as it was prior to
13896 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13897 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13898 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13899 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13901 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13903 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13904 fill_gregset): Call gdbarch_tdep() just once, assign result to
13905 variable and use that, instead of calling the function several
13908 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13910 * configure.host: Accept sparcv9 as alias for sparc64.
13911 * configure.tgt: Likewise.
13913 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13915 * solib-aix5.c (build_so_list_from_mapfile)
13916 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13917 arguments is not reversed.
13918 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13919 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13921 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13923 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13924 modified version of obsolete sh_fetch_pseudo_register.
13925 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13926 (sh4_register_read): New function.
13927 (sh_pseudo_register_write): New function. Renamed and modified
13928 version of obsolete sh_store_pseudo_register.
13929 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13930 (sh4_register_write): New function.
13931 (sh_gdbarch_init): Remove setting of gdbarch function
13932 fetch_pseudo_register and store_pseudo_register. Remove setting of
13933 register_convert_to_raw, register_convert_to_virtual,
13934 register_convertible.
13935 (sh_sh4_register_convertible): Delete. No longer needed. All is
13936 taken care by architecture specific functions
13937 register_read/register_write.
13938 (sh_sh4_register_convert_to_virtual): Make static.
13939 (sh_sh4_register_convert_to_raw): Ditto.
13941 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13943 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13944 (floatformat_is_nan, floatformat_mantissa): Ditto.
13946 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13947 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13948 builtin_type_ieee_double_little,
13949 builtin_type_ieee_double_littlebyte_bigword,
13950 builtin_type_m68881_ext, builtin_type_i960_ext,
13951 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13952 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13953 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13954 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13956 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13958 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13959 parameter. Set frameless flag if it exists and depended of
13960 whether the scanned function is frameless or not.
13961 (xstormy16_skip_prologue): If function is frameless, return
13962 result of xstormy16_scan_prologue().
13963 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13966 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13968 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13969 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13970 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13971 sh_sh4_register_byte, sh_sh4_register_raw_size,
13972 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13973 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13974 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13975 sh_store_pseudo_register, sh_do_pseudo_register): Call
13976 gdbarch_tdep() just once, assign result to variable and use that,
13977 instead of calling the function several times.
13979 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13981 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13982 macros instead of LAST_FPU_CTRL_REGNUM.
13983 (store_register): Likewise.
13985 2002-01-21 Jim Blandy <jimb@redhat.com>
13987 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13988 is up-to-date before running the program, not just when a program
13991 2002-01-21 Fred Fish <fnf@redhat.com>
13993 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13994 when we have found all instructions we are looking for.
13996 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13998 * arm-tdep.c (arm_register_name): New function.
13999 (arm_registers_names): Make static.
14000 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14001 (arm_register_name): Declare.
14002 (REGISTER_NAME): Use it.
14004 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14005 Kevin Buettner <kevinb@redhat.com>
14007 Convert arm targets to new FRAME interface.
14008 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14009 (arm_frame_find_save_regs): Delete.
14010 (arm_frame_init_saved_regs): New.
14011 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14012 Allocate extra_info as required. Convert all uses of fsr.regs
14013 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14015 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14016 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14017 (check_prologue_cache, save_prologue_cache): Likewise.
14018 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14019 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14020 (FRAME_FIND_SAVED_REGS): Delete.
14021 (arm_frame_find_saved_regs): Delete prototype.
14022 (arm_frame_init_saved_regs): New prototype.
14023 (FRAME_INIT_SAVED_REGS): Define.
14025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14027 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14029 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14031 From Jeff Law <law@redhat.com>:
14032 * infttrace.c: Include <sys/pstat.h>.
14033 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14034 exec file if the ttrace equivalent fails.
14036 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14038 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14039 (closeLogFile): Ditto.
14041 2002-01-20 Michael Chastain <mec@shout.net>
14043 * top.c (print_gdb_version): Bump copyright year to 2002.
14045 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14047 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14048 Zannoni and Eli Zaretskii.
14050 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14052 * buildsym.c: Update copyright years.
14053 * c-typeprint.c: Likewise.
14054 * dwarf2read.c: Likewise.
14055 * f-typeprint.c: Likewise.
14056 * gdbtypes.c: Likewise.
14057 * gdbtypes.h: Likewise.
14058 * hp-symtab-read.c: Likewise.
14059 * hpread.c: Likewise.
14060 * mdebugread.c: Likewise.
14061 * p-typeprint.c: Likewise.
14063 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14065 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14066 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14067 byte-order selectable.
14068 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14069 * arch-utils.c: Ditto.
14070 (set_endian): Ditto.
14071 (set_endian_from_file): Ditto.
14072 * gdbserver/low-sim.c (create_inferior): Ditto.
14073 * gdbarch.sh: Ditto.
14074 * gdbarch.h: Re-generate.
14075 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14076 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14077 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14078 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14079 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14080 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14081 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14082 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14084 * config/mips/tm-wince.h: Remove #undef of macro
14085 TARGET_BYTE_ORDER_SELECTABLE.
14086 * config/sh/tm-wince.h: Ditto.
14088 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14090 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14091 member function fields. Add accessor macro
14092 TYPE_FN_FIELD_ARTIFICIAL.
14093 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14094 * c-typeprint.c (c_type_print_base): Skip artificial member
14097 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14099 * f-typeprint.c: Delete unused function f_type_print_args.
14100 * p-typeprint.c: Delete unused function pascal_type_print_args.
14102 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14104 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14105 comment. Add ``artificial'' to ``union field_location''.
14107 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14109 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14110 * mdebugread.c (parse_symbol): Likewise.
14111 * stabsread.c (define_symbol): Likewise.
14112 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14113 initializing TYPE_FIELD_BITPOS to n (obsolete).
14114 (hpread_doc_function_type): Likewise.
14115 * hpread.c (hpread_function_type): Likewise.
14117 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14119 * configure.in (host_makefile_frag): Only require a host makefile
14120 fragment when a native build.
14121 * configure: Re-generate.
14123 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14125 * doublest.h (floatformat_from_type): Declare.
14126 * doublest.c (floatformat_from_type): New function.
14127 (convert_typed_floating): Use.
14129 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14130 call to function floatformat_from_type.
14132 * gdbarch.sh (IEEE_FLOAT): Delete.
14133 * gdbarch.h, gdbarch.c: Re-generate.
14134 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14135 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14136 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14137 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14138 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14139 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14140 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14141 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14142 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14143 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14144 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14145 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14147 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14148 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14149 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14150 * sh-tdep.c (sh_gdbarch_init): Ditto.
14151 * mips-tdep.c (mips_gdbarch_init): Ditto.
14152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14153 * cris-tdep.c (cris_gdbarch_init): Ditto.
14155 2002-01-20 Jiri Smid <smid@suse.cz>
14157 * configure.host, configure.tgt: Support x86-64.
14158 * NEWS: Note new target x86-64.
14160 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14161 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14162 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14163 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14164 x86-64-linux-nat.o): Fix dependencies.
14166 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14168 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14169 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14170 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14171 * config/sparc/xm-sun4os4.h: Delete file.
14172 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14174 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14176 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14177 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14178 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14179 * config/i386/i386lynx.mh (XM_FILE): Delete.
14180 * config/rs6000/xm-rs6000ly.h: Delete file.
14181 * config/sparc/xm-sparclynx.h: Delete file.
14182 * config/m68k/xm-m68klynx.h: Delete file.
14183 * config/i386/xm-i386lynx.h: Delete file.
14184 * config/xm-lynx.h: Delete file.
14185 * config/djgpp/fnchange.lst: Update.
14187 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14189 * alpha-tdep.c (alpha_register_byte): New function.
14190 (alpha_register_raw_size): Ditto.
14191 (alpha_register_virtual_size): Ditto.
14192 (alpha_skip_prologue_internal): Renamed from
14193 alpha_skip_prologue.
14194 (alpha_skip_prologue): New version that calls
14195 alpha_skip_prologue_internal.
14196 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14197 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14198 second argument from alpha_skip_prologue.
14199 (REGISTER_BYTE): Use alpha_register_byte.
14200 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14201 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14202 (FRAMELESS_FUNCTION_INVOCATION): Use
14203 generic_frameless_function_invocation_not.
14204 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14205 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14207 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14209 * config/mips/xm-news-mips.h: Delete file.
14210 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14212 * config/m88k/xm-m88k.h: Delete file.
14213 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14214 * config/m88k/xm-delta88v4.h: Ditto.
14215 * config/m88k/xm-delta88.h: Ditto.
14217 * config/alpha/xm-fbsd.h: Delete file.
14218 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14220 * config/sparc/xm-sparc.h: Delete file.
14221 * Makefile.in (xm-sun4os4.h): Delete dependency.
14222 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14223 * config/sparc/xm-sun4os4.h: Ditto.
14224 * config/sparc/xm-linux.h: Ditto.
14226 * config/i386/xm-windows.h: Delete file.
14228 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14230 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14231 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14233 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14235 * alpha-tdep.c (alpha_call_dummy_words): New.
14236 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14237 (CALL_DUMMY_P): Define.
14238 (CALL_DUMMY_WORDS): Define.
14239 (SIZEOF_CALL_DUMMY_WORDS): Define.
14241 2002-01-19 Per Bothner <per@bothner.com>
14243 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14244 isn't NULL, which can happen with some gcj-3.x-produced code.
14246 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14248 * alpha-tdep.c (alpha_register_virtual_type): New function.
14249 (alpha_init_frame_pc_first): Ditto.
14250 (alpha_fix_call_dummy): Ditto.
14251 (alpha_store_struct_return): Ditto.
14252 (alpha_extract_struct_value_address): Ditto.
14253 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14254 alpha_register_virtual_type.
14255 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14256 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14257 alpha_extract_struct_value_address.
14258 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14259 (INIT_FRAME_PC): Use init_frame_pc_noop.
14260 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14262 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14264 * i386gnu-nat.c: Include "i386-tdep.h".
14265 (fetch_fpregs): Simplify code dealing with uninitialized floating
14266 point states such that it doesn't require FP7_REGNUM.
14268 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14270 * alpha-tdep.c (frame_extra_info): New.
14271 (alpha_find_saved_regs): Make static. Use
14273 (alpha_frame_init_saved_regs): New function.
14274 (alpha_frame_saved_pc): Use frame->extra_info.
14275 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14276 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14277 (init_extra_frame_info): Rename to...
14278 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14279 (alpha_print_extra_frame_info): New function.
14280 (alpha_frame_locals_address): Ditto.
14281 (alpha_frame_args_address): Ditto.
14282 (alpha_pop_frame): Use frame->extra_info.
14283 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14284 alpha_frame_args_address.
14285 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14286 (alpha_find_saved_regs): Remove prototype.
14287 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14288 (EXTRA_FRAME_INFO): Remove.
14289 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14290 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14292 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14294 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14295 (alpha_cannot_fetch_register): Ditto.
14296 (alpha_cannot_store_register): Ditto.
14297 (alpha_register_convertible): Ditto.
14298 (alpha_use_struct_convention): Ditto.
14299 * config/alpha/tm-alpha.h: Update copyright years.
14300 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14301 (INNER_THAN): Use core_addr_lessthan.
14302 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14303 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14304 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14305 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14306 (FRAME_CHAIN): Remove unnecessary cast.
14308 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14310 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14313 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14315 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14316 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14317 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14318 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14319 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14320 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14321 * x86-64-linux-nat.c: Ditto.
14323 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14325 * alpha-tdep.c (alpha_register_name): New function.
14326 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14327 (REGISTER_NAME): Define.
14329 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14331 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14333 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14335 * alpha-tdep.c: Update copyright years.
14336 (alpha_next_pc): New function.
14337 (alpha_software_single_step): Ditto.
14338 * config/alpha/tm-alpha.h: Add prototype for
14339 alpha_software_single_step.
14341 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14343 * alphabsd-nat.c: Update copyright years.
14344 (fill_gregset): Use regcache_collect.
14345 (fill_fpregset): Likewise.
14346 (fetch_inferior_registers): Only fetch integer registers
14347 if requested to do so.
14348 (store_inferior_registers): Only store integer registers
14349 if requested to do so.
14351 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14353 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14354 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14355 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14356 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14357 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14358 * config/arm/linux.mh (XDEPFILES): Delete.
14359 * config/arm/nbsd.mh (XDEPFILES): Delete.
14360 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14361 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14362 * config/i386/i386m3.mh (XDEPFILES): Delete.
14363 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14364 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14365 * config/i386/fbsd.mh (XDEPFILES): Delete.
14366 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14367 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14368 * config/i386/i386v4.mh (XDEPFILES): Delete.
14369 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14370 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14371 * config/i386/i386aix.mh (XDEPFILES): Delete.
14372 * config/i386/go32.mh (XDEPFILES): Delete.
14373 * config/i386/cygwin.mh (XDEPFILES): Delete.
14374 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14375 * config/i386/i386mach.mh (XDEPFILES): Delete.
14376 * config/i386/i386v32.mh (XDEPFILES): Delete.
14377 * config/i386/linux.mh (XDEPFILES): Delete.
14378 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14379 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14380 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14381 * config/i386/i386sco.mh (XDEPFILES): Delete.
14382 * config/i386/i386v.mh (XDEPFILES): Delete.
14383 * config/i386/nbsd.mh (XDEPFILES): Delete.
14384 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14385 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14386 * config/i386/symmetry.mh (XDEPFILES): Delete.
14387 * config/i386/obsd.mh (XDEPFILES): Delete.
14388 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14389 * config/ia64/linux.mh (XDEPFILES): Delete.
14390 * config/ia64/aix.mh (XDEPFILES): Delete.
14391 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14392 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14393 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14394 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14395 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14396 * config/m68k/linux.mh (XDEPFILES): Delete.
14397 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14398 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14399 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14400 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14401 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14402 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14403 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14404 * config/m88k/delta88.mh (XDEPFILES): Delete.
14405 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14406 * config/m88k/m88k.mh (XDEPFILES): Delete.
14407 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14408 * config/mips/linux.mh (XDEPFILES): Delete.
14409 * config/mips/irix6.mh (XDEPFILES): Delete.
14410 * config/mips/irix5.mh (XDEPFILES): Delete.
14411 * config/mips/irix4.mh (XDEPFILES): Delete.
14412 * config/mips/irix3.mh (XDEPFILES): Delete.
14413 * config/mips/decstation.mh (XDEPFILES): Delete.
14414 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14415 (NATDEPFILES): Move core-aout.o to here.
14416 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14417 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14418 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14419 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14420 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14421 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14422 * config/pa/hpux11.mh (XDEPFILES): Delete.
14423 * config/powerpc/aix.mh (XDEPFILES): Delete.
14424 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14425 * config/powerpc/linux.mh (XDEPFILES): Delete.
14426 * config/romp/rtbsd.mh: Rename XDEPFILES.
14427 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14428 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14429 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14430 * config/s390/s390.mh (XDEPFILES): Delete.
14431 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14432 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14433 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14434 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14435 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14436 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14437 * config/sparc/linux.mh (XDEPFILES): Delete.
14438 * config/vax/vaxult.mh (XDEPFILES): Delete.
14439 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14440 * Makefile.in (DEPFILES): Remove XDEPFILES.
14442 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14444 * utils.c (internal_verror): Fix comments, default is yes not no.
14445 Update queries to match. Default to quit and dump core.
14447 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14449 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14451 * defs.h, event-top.c, gdbcmd.h: Ditto.
14452 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14453 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14454 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14455 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14456 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14457 * mi/mi-main.c:Ditto.
14459 * stack.c, symfile.c: Update copyright.
14461 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14463 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14464 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14465 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14466 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14468 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14470 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14471 * gdbserver/low-lynx.c (myattach): Likewise.
14472 * gdbserver/low-nbsd.c (myattach): Likewise.
14473 * gdbserver/low-sim.c (myattach): Likewise.
14474 * gdbserver/low-sparc.c (myattach): Likewise.
14475 * gdbserver/low-sun3.c (myattach): Likewise.
14477 * gdbserver/low-linux.c (myattach): New function.
14479 * gdbserver/server.c (attach_inferior): New function.
14480 (main): Handle "--attach".
14482 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14484 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14487 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14489 * c-typeprint.c (is_type_conversion_operator): Add additional
14490 check for non-conversion operators.
14492 2002-01-15 Michael Snyder <msnyder@redhat.com>
14494 * linux-proc.c: Add "info proc" command, a la procfs.c.
14495 (read_mapping): New function, abstract and re-use code.
14496 (linux_find_memory_regions): Use new func read_mapping.
14497 (linux_info_proc_cmd): New function, implement "info proc".
14498 (_initialize_linux_proc): Add new command "info proc".
14500 2002-01-15 Michael Snyder <msnyder@redhat.com>
14502 * symfile.c (generic_load): Use bfd_map_over_sections method
14503 instead of manipulating bfd structure members directly.
14504 (add_section_size_callback): New function, bfd sections callback
14505 used by generic_load.
14506 (load_sections_callback): New function, bfd sections callback
14507 used by generic_load.
14509 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14511 [Based on work by Jim Blandy]
14512 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14513 (builtin_type_vec128): Export.
14514 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14516 (builtin_type_vec128): New builtin type for 128 bit vector
14518 (build_gdbtypes): Initialize builtin_type_v16qi and
14519 builtin_type_v8hi. Create the vec128 register builtin type
14521 (build_builtin_type_vec128): New function.
14522 (_initialize_gdbtypes): Register builtin_type_v16qi and
14523 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14524 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14525 AltiVec register to new builtin type.
14527 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14529 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14532 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14534 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14535 CLEAN_UP_REGISTER_VALUE.
14536 * regcache.c (supply_register): Update only call.
14538 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14540 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14541 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14542 a29k-*-vxworks* targets as obsolete.
14544 2002-01-14 Michael Snyder <msnyder@redhat.com>
14546 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14547 until we can resolve portability issues.
14548 * gregset.h: Remove references to fpxregs.
14549 * gcore.c (gcore_command): Initialize note_sec to NULL.
14551 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14553 * signals.c (target_signal_to_name): Rewrite. Only use
14554 signals[].name when in bounds and non-NULL.
14556 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14558 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14559 * signals.c (target_signal_to_name): Verify that SIG is within the
14560 bounds of the signals array.
14562 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14564 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14566 2002-01-13 Keith Seitz <keiths@redhat.com>
14568 * stack.c (print_frame_info_base): Print the frame's pc
14569 only if when print_frame_info_listing_hook is not defined.
14571 2002-01-13 Keith Seitz <keiths@redhat.com>
14573 * varobj.c (varobj_set_value): Make sure that there were no
14574 errors evaluating the object before attempting to set its
14576 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14577 so this offset adjustment is no longer necessary.
14578 (create_child): Don't set the error flag if the child is
14579 a CPLUS_FAKE_CHILD.
14580 (value_of_child): If value_fetch_lazy fails, return NULL
14581 so that callers will be notified that an error occurred.
14582 (c_value_of_variable): Delay check of variable's validity
14583 until later. We actually want all structs and unions to have
14585 Do not return "???" for variables which could not be evaluated.
14586 This error condition must be returned to the caller so that it
14587 can get the error condition from gdb.
14588 (cplus_name_of_child): Adjust index for vptr before figuring
14589 out the name of the child.
14590 (cplus_value_of_child): If a child's (real) parent is not valid,
14591 don't even bother trying to give a value for it. Just return
14592 an error. Change all instances in this function.
14593 (cplus_type_of_child): If our parent is one of the "fake"
14594 parents, we need to get at the type of the real parent, and
14595 derive the child's true type using this information.
14597 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14599 From 2002-01-09 John Marshall <johnm@falch.net>:
14600 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14601 sources.redhat.com, and tweak some related URLs which had
14602 suffered from linkrot.
14604 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14607 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14608 structures passed in registers.
14610 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14612 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14613 white space which prevented compilation. Reported by DSK
14614 <dsk@student.unsw.edu.au>.
14616 2002-01-11 Michael Snyder <msnyder@redhat.com>
14618 * symfile.c (build_section_addr_info_from_section_tab):
14619 Use bfd access method instead of manipulating bfd directly.
14620 (syms_from_objfile): Ditto.
14621 (simple_overlay_update_1): Ditto.
14622 (simple_overlay_update): Ditto.
14623 (generic_load): Ditto.
14624 (overlay_unmapped_address): FIXME comment, bfd access methods.
14625 (sections_overlap): FIXME comment, bfd access methods.
14626 (pc_in_mapped_range): FIXME comment, bfd access methods.
14627 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14628 (section_is_mapped): FIXME comment, bfd access methods.
14629 (section_is_overlay): FIXME comment, bfd access methods.
14631 * symfile.c (generic_load): Whitespace and long line cleanups.
14632 Remove duplicate variable, change several local variables to
14633 more appropriate data types.
14634 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14636 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14638 From Peter Schauer:
14639 * language.c (longest_local_hex_string_custom): Use phex_nz to
14640 convert NUM to a hex string.
14642 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14644 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14646 Update Copyright year.
14648 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14650 * language.c (longest_raw_hex_string): Delete unused function.
14652 2002-01-11 Petr Sorfa <petrs@caldera.com>
14654 * MAINTAINERS (write-after-approval): Add myself.
14655 * dwarf2read.c (read_tag_string_type): Handling of
14657 (read_tag_string_type): FORTRAN fix to prevent propagation of
14659 (set_cu_language): Handling of DW_LANG_Fortran95
14661 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14663 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14664 GETPID(inferior_ptid).
14665 (store_inferior_registers): Likewise.
14667 2002-01-10 Jason Merrill <jason@redhat.com>
14669 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14672 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14674 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14675 and bfd/elf32-sh-nbsd.c.
14677 2002-01-10 Michael Snyder <msnyder@redhat.com>
14679 * NEWS: Mention --pid and corefile/proc-id behavior change.
14681 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14682 * gcore.c: Include cli/cli-decode.h instead of command.h.
14684 * main.c (captured_main): Add new command line option "--pid".
14685 If the second command line argument (following the symbol-file)
14686 begins with a digit, try to attach to it before trying to open
14688 (print_gdb_help): Document the "--pid" argument.
14690 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14692 * completer.c (command_completer): New function.
14694 * completer.h <command_completer>: Add prototype.
14696 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14697 completer for the "help" command.
14699 2002-01-09 Jason Merrill <jason@redhat.com>
14701 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14703 2002-01-09 Michael Snyder <msnyder@redhat.com>
14705 * i386-linux-nat.c (fill_fpxregset): Make global.
14706 (store_fpxregset): Ditto.
14708 * gregset.h (gdb_fpxregset_t): Define.
14709 (supply_fpxregset): Prototype.
14710 (fill_fpxregset): Prototype.
14712 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14714 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14716 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14717 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14718 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14720 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14722 * MAINTAINERS: Update target maintainer rules so that any
14723 Maintainer can approve a tested patch for a maintenance-only
14726 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14728 * MAINTAINERS (write-after-approval): Add myself.
14730 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14733 2002-01-08 Michael Snyder <msnyder@redhat.com>
14735 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14736 real name of the executable, rather than the /proc name.
14738 2002-01-03 Michael Snyder <msnyder@redhat.com>
14740 Implement a "generate-core-file" command in gdb, save target state.
14741 * gcore.c: New file. Implement new command 'generate-core-file'.
14742 Save a corefile image of the current state of the inferior.
14743 * linux-proc.c: Add linux-specific code for saving corefiles.
14744 * target.h (struct target_ops): Add new target vectors for saving
14745 corefiles; to_find_memory_regions and to_make_corefile_notes.
14746 (target_find_memory_regions): New macro.
14747 (target_make_corefile_notes): New macro.
14748 * target.c (update_current_target): Inherit new target methods.
14749 (dummy_find_memory_regions): New place-holder method.
14750 (dummy_make_corefile_notes): New place-holder method.
14751 (init_dummy_target): Initialize new dummy target vectors.
14752 * exec.c (exec_set_find_memory_regions): New function.
14753 Allow the exec_ops vector for memory regions to be taken over.
14754 (exec_make_note_section): New function, target vector method.
14755 * defs.h (exec_set_find_memory_regions): Export prototype.
14756 * procfs.c (proc_find_memory_regions): New function, corefile method.
14757 (procfs_make_note_section): New function, corefile method.
14758 (init_procfs_ops): Set new target vector pointers.
14759 (find_memory_regions_callback): New function.
14760 (procfs_do_thread_registers): New function.
14761 (procfs_corefile_thread_callback): New function.
14762 * sol-thread.c (sol_find_memory_regions): New function.
14763 (sol_make_note_section): New function.
14764 (init_sol_thread_ops): Initialize new target vectors.
14765 * inftarg.c (inftarg_set_find_memory_regions): New function.
14766 Allow to_find_memory_regions vector to be taken over.
14767 (inftarg_set_make_corefile_notes): New function.
14768 Allow to_make_corefile_notes vector to be taken over.
14769 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14770 interface layer if not target_has_execution (may be a corefile).
14771 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14772 * config/sparc/sun4sol2.mh: Ditto.
14773 * config/alpha/alpha-linux.mh: Ditto.
14774 * config/arm/linux.mh: Ditto.
14775 * config/i386/x86-64linux.mh: Ditto.
14776 * config/ia64/linux.mh: Ditto.
14777 * config/m68k/linux.mh: Ditto.
14778 * config/mips/linux.mh: Ditto.
14779 * config/powerpc/linux.mh: Ditto.
14780 * config/sparc/linux.mh: Ditto.
14782 2002-01-07 Michael Snyder <msnyder@redhat.com>
14784 * arm-linux-nat.c: Remove references to regcache.c internal data
14785 (registers[] and register_valid[]).
14787 2002-01-07 Michael Snyder <msnyder@redhat.com>
14789 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14790 so that attaching to a pid will automatically read the process's
14791 symbol file and shlibs.
14792 * Makefile.in: Add rule for linux-proc.o.
14793 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14794 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14795 * config/arm/linux.mh: Ditto.
14796 * config/i386/linux.mh: Ditto.
14797 * config/i386/x86-64linux.mh: Ditto.
14798 * config/ia64/linux.mh: Ditto.
14799 * config/m68k/linux.mh: Ditto.
14800 * config/mips/linux.mh: Ditto.
14801 * config/powerpc/linux.mh: Ditto.
14802 * config/sparc/linux.mh: Ditto.
14804 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14806 * win32-nat.c: Add i386-tdep.h dependency.
14808 2002-01-07 Michael Snyder <msnyder@redhat.com>
14810 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14811 instead of bfd_get_arch_size. Don't bail out just because
14812 there's no exec_bfd.
14814 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14815 * p-valprint.c (pascal_object_print_value): Ditto.
14816 * somread.c (som_symtab_read): Ditto.
14817 * symfile.c (simple_free_overlay_region_table): Ditto.
14818 * valops.c (value_assign): Ditto.
14820 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14821 use tilde_expand and strerror for opening save-tracepoints file.
14823 * thread-db.c (thread_db_new_objfile): Indendation fix.
14825 * infptrace.c (GDB_MAX_ALLOCA): New define.
14826 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14827 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14828 can be overridden with whatever value is appropriate to the host).
14829 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14830 alloca to allocate potentially large buffer.
14831 * rs6000-nat.c (child_xfer_memory): Ditto.
14832 * symm-nat.c (child_xfer_memory): Ditto.
14833 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14835 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14837 From Nick Clifton <nickc@redhat.com>
14838 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14840 2002-01-07 Michael Snyder <msnyder@redhat.com>
14842 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14843 Don't use exec_bfd if it's NULL.
14845 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14847 * valops.c (value_arg_coerce): Fix formatting.
14849 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14851 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14852 * gnu-nat.c: Ditto.
14854 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14856 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14857 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14858 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14859 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14860 z8k-coff have not been multi-arched. Update z8k-coff build
14863 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14865 * MAINTAINERS: Mark a29k target as obsolete.
14866 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14867 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14869 * NEWS: Note that a29k targets are obsolete.
14870 * a29k-tdep.c: Mark as obsolete.
14871 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14872 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14873 a29k-*-vxworks* targets as obsolete.
14874 * remote-adapt.c: Obsolete.
14875 * remote-eb.c: Obsolete.
14876 * remote-mm.c: Obsolete.
14877 * remote-udi.c: Obsolete.
14878 * config/a29k/a29k-udi.mt: Obsolete.
14879 * config/a29k/a29k.mt: Obsolete.
14880 * config/a29k/tm-a29k.h: Obsolete.
14881 * config/a29k/tm-vx29k.h: Obsolete.
14882 * config/a29k/vx29k.mt: Obsolete.
14884 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14886 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14887 with BFD_ENDIAN_BIG.
14889 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14891 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14892 * configure, config.in: Re-generate.
14893 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14894 * defs.h: Do not include <endian.h>.
14896 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14898 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14899 * config.in: Regenerate.
14900 * configure.in: Update copyright years.
14901 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14902 * configure: Regenerate.
14903 * i386bsd-nat.c: Update copyright years.
14904 (fill_gregset): Use regcache_collect.
14905 (fetch_inferior_registers): Only fetch integer registers
14906 if requested to do so. Add support for XMM registers
14907 using PT_GETXMMREGS.
14908 (store_inferior_registers): Only store integer registers
14909 if requested to do so. Add support for XMM registers
14910 using PT_SETXMMREGS.
14911 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14912 (store_inferior_registers): Remove.
14913 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14914 (fetch_elfcore_registers): New function.
14915 (i386nbsd_elfcore_fns): New.
14916 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14917 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14919 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14920 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14921 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14922 * config/i386/tm-nbsd.h: Update copyright years.
14923 (HAVE_SSE_REGS): Define.
14924 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14925 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14926 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14927 (SIGCONTEXT_PC_OFFSET): Remove.
14928 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14930 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14932 * configure.tgt: Remove powerpc-*-macos* target.
14933 * config/m68k/xm-mpw.h: Delete file.
14934 * config/xm-mpw.h: Delete file.
14935 * ser-mac.c: Delete file.
14936 * mpw-make.sed: Delete file.
14937 * mpw-config.in: Delete file.
14938 * mac-xdep.c: Delete file.
14939 * mac-gdb.r: Delete file.
14940 * mac-defs.h: Delete file.
14941 * mac-nat.c: Delete file.
14942 * config/powerpc/macos.mh: Delete file.
14943 * config/powerpc/macos.mt: Delete file.
14944 * config/powerpc/nm-macos.h: Delete file.
14945 * config/powerpc/tm-macos.h: Delete file.
14946 * source.c (openp, open_source_file): Remove obsolete code.
14947 * top.c (gdb_readline): Ditto.
14948 * utils.c (query): Ditto.
14949 * event-top.c (display_gdb_prompt): Ditto.
14950 * Makefile.in (ser-mac.o): Delete obsolete target.
14953 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14955 * defs.h (BIG_ENDIAN): Delete macro definition.
14956 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14957 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14958 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14959 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14960 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14961 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14962 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14963 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14964 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14965 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14966 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14967 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14968 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14969 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14970 * gdbarch.c: Re-generate.
14972 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14974 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14977 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14979 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14981 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14983 * value.h (value_ptr): Delete typedef.
14985 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14987 * i386nbsd-nat.c: Update copyright years.
14988 Include i386-tdep.h.
14990 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14992 * stabsread.c: Update copyright years.
14994 From Debashis Mahata <debashis.mahata@wipro.com>:
14995 (read_struct_fields): Deal with Sun C compiler erroneous stab
14996 output for structs and unions.
14999 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15001 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15004 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15006 * cp-abi.c: Fix whitespace.
15007 (baseclass_offset): New wrapper function.
15008 * cp-abi.h (baseclass_offset): Add prototype.
15009 (struct cp_abi_ops): Add baseclass_offset pointer.
15011 * valops.c (vb_match): Move to...
15012 * gnu-v2-abi.c (vb_match): here.
15013 * valops.c (baseclass_offset): Move to...
15014 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15016 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15018 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15019 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15020 * hpacc-abi.c (init_hpacc_ops): Likewise.
15022 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15024 * valops.c (find_overload_match): Accept obj as a
15025 reference parameter. Update it before returning.
15026 * value.h (find_overload_match): Update prototype.
15027 * eval.c (evaluate_subexp_standard): Pass object to
15028 find_overload_match by reference.
15030 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15032 * valarith.c: Replace value_ptr with struct value pointer. Remove
15033 register attribute from value declarations.
15036 * scm-lang.c (scm_lookup_name): Ditto.
15038 2002-01-03 Michael Snyder <msnyder@redhat.com>
15040 Abstract the functionality of iterating over mapped memory
15041 regions into a general purpose iterator function.
15042 * procfs.c (iterate_over_mappings): New function, general purpose
15043 iterator for memory sections.
15044 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15045 (solib_mappings_callback): New function, callback for above.
15046 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15047 (info_mappings_callback): New function, callback for above.
15049 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15051 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15053 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15054 * i386-tdep.c: Include "elf-bfd.h".
15055 (process_note_abi_tag_sections): New function.
15056 (i386_gdbarch_init): Add code to recognize various OS/ABI
15059 * maint.c (_initialize_maint_cmds): Add missing \ in
15062 For older changes see ChangeLog-2001
15068 version-control: never