1 2002-12-30 Adam Fedor <fedor@gnu.org>
3 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
4 (yylex): Initialize c to avoid uninitialized warning.
6 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
8 * doc/fdl.texi: Revert the last change.
10 2002-12-29 Mark Kettenis <kettenis@gnu.org>
12 * tracepoint.c (ISATTY): Removed.
14 2002-12-26 J. Brobecker <brobecker@gnat.com>
16 Continuing work to convert the hppa targets to multiarch partil.
18 * hppa-tdep.c: Add some missing forward declarations.
19 (frameless_function_invocation): Prefix the function name
20 by "hppa_" to avoid polluting the namespace. Update all calls
21 to use the new function name.
22 (saved_pc_after_call): Ditto.
23 (init_extra_frame_info): Ditto.
25 (push_dummy_frame): Ditto.
26 (target_read_pc): Ditto.
27 (target_write_pc): Ditto.
28 (in_solib_call_trampoline): Ditto.
29 (in_solib_return_trampoline): Ditto.
30 (skip_trampoline_code): Ditto.
31 (hppa_read_fp): New function, renamed from target_read_fp.
32 (hppa_target_read_fp): New function, using hppa_read_fp.
33 This function conforms to the function profile for the
34 READ_FP gdbarch method.
35 (hppa_extract_struct_value_address): New function, extracted
36 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
38 (hppa_frame_num_args): New function.
39 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
41 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
42 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
43 for the switch to multiarch partial.
44 Update some of the macros definitions to match some changes
45 described above in the name of the function they are calling.
46 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
47 not be straightforward to convert. Do now wrap it inside
48 "#if !... #endif" to remember that this macro has still not
50 (FIX_CALL_DUMMY): Likewise.
52 2002-12-26 J. Brobecker <brobecker@gnat.com>
54 Continuing work to convert the hppa targets to multiarch partial.
56 * hppa-tdep.c (hppa_register_raw_size): New function replacing
57 the body of macro REGISTER_RAW_SIZE.
58 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
59 config/pa/tm-hppah.h. These functions will be used to initialize
60 the gdbarch structure.
61 (hppa_hpux_pc_in_sigtramp): New function.
62 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
63 (hppa_hpux_frame_base_before_sigtramp): New function.
64 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
65 Add gdbcore.h #include.
66 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
67 of this gdbarch-eligible macro to a call to the new associated
69 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
70 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
71 into a call to the new associated function.
72 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
73 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
74 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
76 2002-12-24 David Carlton <carlton@math.stanford.edu>
78 * config/sparc/tm-sparc.h: Delete duplicate definition of
79 DEPRECATED_PC_IN_CALL_DUMMY.
81 2002-12-24 Kevin Buettner <kevinb@redhat.com>
83 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
85 * configure.tgt: Recognize mips64*-*-linux*.
86 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
87 (supply_32_bit_reg): New function.
88 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
89 (fill_gregset): Use regcache_collect() instead of
90 deprecated_registers[].
91 (register_addr): Change name to mips_linux_register_addr().
92 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
93 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
94 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
95 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
96 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
97 (MIPS64_LINUX_JB_PC): New defines.
98 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
99 (mips64_elf_fpregset_t): New typedefs.
100 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
101 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
102 (mips64_linux_register_addr, set_mips_linux_register_addr)
103 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
104 (init_register_addr_data)
106 (fetch_core_registers): Add support for core file formats with 64-bit
108 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
109 (register_addr_data): New static global variable.
110 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
111 gdbarch_register_osabi() for each MIPS machine.
112 * config/mips/linux64.mt: New file.
113 * config/mips/tm-linux64.h: New file.
115 2002-12-23 Adam Fedor <fedor@gnu.org>
117 * maint.c (maintenance_demangle): Add switch to demangle
118 ObjC language symbols as well.
120 2002-12-23 Adam Fedor <fedor@gnu.org>
122 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
123 last argument from complaint function call.
125 2002-12-23 Kevin Buettner <kevinb@redhat.com>
127 * exec.c (print_section_info): Add FIXME comments regarding format
130 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
132 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
133 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
135 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
137 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
139 2002-12-23 David Carlton <carlton@math.stanford.edu>
141 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
142 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
143 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
144 information associated to a minsym, not lookup_symbol.
146 2002-12-21 Mark Kettenis <kettenis@gnu.org>
148 * x86-64-tdep.h (x86_64_init_abi): New prototype.
149 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
150 (x86_64_init_abi): Make non-static. Set number of pseudo
152 (x86_64_gdbarch_init): Remove function.
153 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
154 Remove code dealing with dissambly.
155 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
156 (_initialize_x86_64_linux_tdep): New function.
157 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
160 2002-12-14 Mark Kettenis <kettenis@gnu.org>
162 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
163 (struct gdb_osabi_handler): Remove member `arch'. Add member
165 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
166 construct a `struct bfd_arch_info' and store it in the `struct
167 gdb_osabi_handler' that is created.
168 (gdbarch_init_osabi): Check for compatibility based on machine
169 type and architecture.
170 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
172 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
173 second argument in call to gdbarch_register_osabi.
174 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
175 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
176 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
177 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
178 * arm-tdep.c (_initialize_arm_tdep): Likewise.
179 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
180 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
181 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
182 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
183 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
184 * i386-tdep.c (_initialize_i386_tdep): Likewise.
185 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
186 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
187 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
188 _initialize_i386bsd_tdep and updated likewise.
189 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
190 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
191 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
192 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
193 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
194 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
195 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
196 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
197 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
198 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
200 2002-12-20 Kevin Buettner <kevinb@redhat.com>
202 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
203 DT_MIPS_RLD_MAP case for 64-bit targets.
205 2002-12-20 Kevin Buettner <kevinb@redhat.com>
207 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
208 ``temp_saved_regs'', not the pointer or other storage contiguous
211 2002-12-20 Kevin Buettner <kevinb@redhat.com>
213 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
214 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
215 (mips_linux_get_longjmp_target): Delete declarations.
216 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
217 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
218 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
219 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
220 (mips_linux_get_longjmp_target)
221 (mips_linux_svr4_fetch_link_map_offsets): Make static.
222 (mips_linux_init_abi): New function.
223 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
225 2002-12-19 Keith Seitz <keiths@redhat.com>
227 patch committed by Elena Zannoni <ezannoni@redhat.com>
228 * thread.c (do_captured_list_thread_ids): Call prune_threads and
229 target_find_new_threads. Fix for PR mi/669.
231 2002-12-19 David Carlton <carlton@math.stanford.edu>
233 * linespec.c (decode_line_1): Move code into decode_all_digits.
234 (decode_all_digits): New function.
236 2002-12-19 Kevin Buettner <kevinb@redhat.com>
238 * exec.c (print_section_info): Select a format string to use with
239 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
241 2002-12-18 Andrew Cagney <ac131313@redhat.com>
243 * frame.c (deprecated_update_current_frame_pc_hack): Replace
244 deprecated_update_current_frame_pc_hack.
245 (deprecated_update_frame_base_hack): New function.
246 * frame.h (deprecated_update_frame_pc_hack): Replace
247 (deprecated_update_frame_base_hack): Declare.
248 * infrun.c (normal_stop): Update.
250 2002-12-18 Andrew Cagney <ac131313@redhat.com>
252 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
253 frame_extra_info_zalloc.
254 (rs6000_frame_args_address): Use get_frame_extra_info.
255 (frame_get_saved_regs): Use get_frame_saved_regs.
256 (frame_initial_stack_address): Use get_frame_saved_regs and
257 get_frame_extra_info.
258 (frame_initial_stack_address): Use get_frame_extra_info.
260 2002-12-17 Kevin Buettner <kevinb@redhat.com>
262 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
264 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
265 checks for r3900_regnames[].
267 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
269 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
271 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
273 2002-12-17 David Carlton <carlton@math.stanford.edu>
275 * symtab.c (lookup_partial_symbol): Don't search past the end of
278 2002-12-17 Andrew Cagney <ac131313@redhat.com>
280 * stack.c (frame_info): Use get_frame_saved_regs.
281 * breakpoint.c (until_break_command): Use get_frame_pc.
283 2002-12-16 Kevin Buettner <kevinb@redhat.com>
285 * buildsym.c (block_end_complaint, anon_block_end_complaint)
286 (innerblock_complaint, innerblock_anon_complaint)
287 (blockvector_complaint): Delete deprecated complaint structs.
288 (finish_block, make_blockvector, end_symtab): Replace calls
289 to complain() with calls to complaint().
290 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
291 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
292 (unexpected_type_complaint, bad_sclass_complaint)
293 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
294 Delete deprecated complaint structs.
295 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
296 Replace calls to complain() with calls to complaint().
297 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
298 (unknown_symtype_complaint, unknown_symchar_complaint)
299 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
300 (lbrac_mismatch_complaint, repeated_header_complaint)
301 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
302 Delete deprecated complaint structs.
303 (unknown_symtype_complaint, lbrac_mismatch_complaint)
304 (repeated_header_complaint)
305 (function_outside_compiliation_unit_complaint): New functions.
306 (add_old_header_file, find_corresponding_bincl_psymtab)
307 (set_namestring, find_stab_function_addr, read_dbx_symtab)
308 (process_one_symbol): Replace calls to complain() with, possibly
309 indirect, calls to complaint().
310 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
311 (unknown_attribute_form, unknown_attribute_length)
312 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
313 (const_ignored, botched_modified_type, op_deref2, op_deref4)
314 (basereg_not_handled, dup_user_type_allocation)
315 (dup_user_type_definition, missing_tag, bad_array_element_type)
316 (subscript_data_items, unhandled_array_subscript_format)
317 (unknown_array_subscript_format, not_row_major)
318 (missing_at_name): Delete deprecated complaint structs.
319 (bad_die_ref_complaint, unknown_attribute_form_complaint)
320 (dup_user_type_definition_complaint)
321 (bad_array_element_type_complaint): New functions.
322 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
323 (decode_subscript_data_item, dwarf_read_array_type)
324 (read_tag_string_type, read_subroutine_type, read_func_scope)
325 (locval, scan_partial_symbols, decode_modified_type)
326 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
327 (attribute_size): Replace calls to complain() with, possibly
328 indirect, calls to complaint().
329 * elfread.c (section_info_complaint, section_info_dup_complaint)
330 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
331 Delete deprecated complaint structs.
332 (elf_symtab_read, elfstab_offset_sections): Replace calls to
333 complain() with calls to complaint().
334 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
336 (stub_noname_complaint): New function.
337 (check_typedef, add_mangled_type): Replace calls to complain()
338 with calls to complaint().
339 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
340 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
341 (hpread_unhandled_type_complaint, hpread_struct_complaint)
342 (hpread_array_complaint, hpread_type_lookup_complaint)
343 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
344 (hpread_unhandled_common_complaint)
345 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
346 struct definitions and declarations.
347 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
348 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
349 Replace calls to complain() with, possibly indirect, calls to
351 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
353 * mdebugread.c (bad_file_number_complaint, index_complaint)
354 (aux_index_complaint, block_index_complaint)
355 (unknown_ext_complaint, unknown_sym_complaint)
356 (unknown_st_complaint, block_overflow_complaint)
357 (basic_type_complaint, unknown_type_qual_complaint)
358 (array_index_type_complaint, bad_tag_guess_complaint)
359 (block_member_complaint, stEnd_complaint)
360 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
361 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
362 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
363 (bad_continued_complaint, bad_rfd_entry_complaint)
364 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
365 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
366 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
367 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
369 (index_complaint, unknown_ext_complaint, basic_type_complaint)
370 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
371 (unexpected_type_code_complaint)
372 (function_outside_compilation_unit_complaint): New functions.
373 (parse_symbol, parse_type, upgrade_type, parse_procedure)
374 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
375 Replace calls to complain() with, possibly indirect calls to
377 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
378 Delete deprecated complaint structs.
379 (lookup__objc_class, lookup_child_selector): Replace complain()
381 * remote-vx.c (cant_contact_target): Delete deprecated complaint
383 (vx_lookup_symbol): Replace complain() with complaint().
384 * stabsread.c (invalid_cpp_abbrev_complaint)
385 (invalid_cpp_type_complaint, member_fn_complaint)
386 (const_vol_complaint, error_type_complaint)
387 (invalid_member_complaint, range_type_base_complaint)
388 (reg_value_complaint, vtbl_notfound_complaint)
389 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
390 (unresolved_sym_chain_complaint, stabs_general_complaint)
391 (lrs_general_complaint, multiply_defined_struct): Delete
392 deprecated complaint structs.
393 (invalid_cpp_abbrev_complaint, ref_value_complaint)
394 (stabs_general_complaint, lrs_general_complaint)
395 (msg_unknown_complaint): New functions.
396 (dbx_lookup_type, read_cfront_baseclasses)
397 (read_cfront_member_functions, resolve_symbol_reference)
398 (define_symbol, resolve_live_range, add_live_range, read_type)
399 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
400 (read_one_struct_field, read_baseclasses, read_tilde_fields)
401 (read_cfront_static_fields, attach_fields_to_type)
402 (complain_about_struct_wipeout, read_range_type)
403 (common_block_start, common_block_end, cleanup_undefined_types)
404 (scan_file_globals): Replace complain() with complaint().
405 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
406 Delete deprecated complaint struct declarations.
407 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
408 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
409 (bf_not_found_complaint, ef_complaint, eb_complaint)
410 (function_outside_compilation_unit_complaint): New functions.
411 (record_include_begin, record_include_end, enter_line_range)
412 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
413 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
414 complain() with complaint().
416 2002-12-16 Andrew Cagney <ac131313@redhat.com>
418 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
419 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
420 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
421 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
422 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
423 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
424 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
425 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
426 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
427 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
428 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
429 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
430 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
431 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
432 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
433 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
434 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
435 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
436 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
437 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
438 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
439 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
440 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
441 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
442 * config/m88k/xm-dgux.h: Delete.
443 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
444 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
445 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
446 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
447 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
448 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
449 * ch-valprint.c: Delete.
451 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
453 * infrun.c (handle_inferior_event): Rearrange code to resume if
454 no catchpoint triggers for an event.
456 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
458 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
459 and TARGET_WAITKIND_VFORKED cases.
461 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
463 * infrun.c (handle_inferior_event): Assume that catchpoints
464 are not affected by DECR_PC_AFTER_BREAK.
466 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
468 * target.c (update_current_target): Don't inherit DONT_USE.
469 * target.h (struct target_ops): Remove DONT_USE.
470 (target_next): Remove macro.
472 2002-12-15 Mark Kettenis <kettenis@gnu.org>
474 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
476 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
478 * arm-tdep.c (convert_from_extended): New argument to hold the
479 type of floating point result we want to convert to. Make input
480 argument const. Fix all callers.
481 (convert_to_extended): Similarly.
482 (arm_extract_return_value): Now takes a regcache argument. Change
483 code to use regcache accessor functions. Correctly extract
484 smaller-than-word results on big-endian machines.
485 (arm_store_return_value): Now takes a regcache argument. Change
486 code to use regcache accessor functions. Correctly zero/sign extend
487 smaller than word results before storing into r0.
488 (arm_gdbarch_init): Register new-style extract_return_value and
489 store_return_value functions.
491 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
493 * thread-db.c (thread_from_lwp): Uniquify error msg.
494 (lwp_from_thread): Ditto.
495 (check_event): Ditto.
496 (find_new_threads_callback): Ditto.
497 (thread_db_pid_to_str): Ditto.
499 2002-12-13 Andrew Cagney <ac131313@redhat.com>
501 * frame.h (get_frame_saved_regs): Declare.
502 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
504 * frame.c (get_frame_saved_regs): New function.
505 (frame_saved_regs_zalloc): Return the allocated saved_regs.
507 2002-12-13 Andrew Cagney <ac131313@redhat.com>
509 * frame.c (deprecated_update_current_frame_pc_hack): New
511 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
512 * infrun.c (normal_stop): Use said function instead of directly
513 modifying the frame's PC.
515 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
517 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
519 2002-12-13 Kevin Buettner <kevinb@redhat.com>
521 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
522 config/mips/tm-irix6.h (NUM_REGS): Delete.
523 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
524 (temp_saved_regs): Declare as a pointer rather than an array.
525 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
526 that ``temp_saved_regs'' has storage allocated to it and that
527 it's the correct size.
529 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
531 * defs.h (init_last_source_visited): New prototype.
533 * source.c (add_path): New function that adds to a specified path.
534 (mod_path): Change to call add_path.
535 (init_last_source_visited): New function to allow interfaces to
536 initialize static variable: last_source_visited. Part of fix
538 * Makefile.in: Add support for mi/mi-cmd-env.c.
540 2002-12-13 Andrew Cagney <ac131313@redhat.com>
542 * frame.h (frame_id_unwind): Declare.
543 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
545 (frame_id_unwind_ftype): Declare.
546 * frame.c (frame_id_unwind): New function.
547 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
548 (create_new_frame, get_prev_frame): Pass id_unwind to
550 (frame_saved_regs_id_unwind): New function.
551 (frame_saved_regs_id_unwind): New function.
552 * dummy-frame.c (dummy_frame_id_unwind): New function.
553 (struct dummy_frame): Add field id.
554 (generic_push_dummy_frame): Initialize `id'.
555 * dummy-frame.h (dummy_frame_id_unwind): Declare.
557 2002-12-13 Andrew Cagney <ac131313@redhat.com>
559 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
560 pass that to set_momentary_breakpoint. Move comments to where they
562 * frame.h (set_current_frame): Delete declaration.
563 * frame.c (set_current_frame): Delete function.
565 2002-12-13 Andrew Cagney <ac131313@redhat.com>
567 * frame.c (frame_extra_info_zalloc): New function.
568 * frame.h (frame_extra_info_zalloc): Declare.
570 2002-12-13 Joel Brobecker <brobecker@gnat.com>
572 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
573 in the previous prototype change to set_momentary_breakpoint.
575 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
577 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
579 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
580 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
581 (stop_stepping): Remove outdated check for child vfork events.
583 2002-12-12 Andrew Cagney <ac131313@redhat.com>
585 * GDB 5.3 released from gdb_5_3-branch.
587 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
589 * corelow.c (init_core_ops): Delete references to to_require_attach
590 and to_require_detach.
591 * exec.c (init_exec_ops): Likewise.
592 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
593 hppa_require_detach directly.
594 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
595 * inftarg.c (child_detach): Remove.
596 (child_detach_from_process): Rename to child_detach, remove
598 (child_attach): Remove.
599 (child_attach_to_process): Rename to child_attach, remove after_fork
601 (init_child_ops): Delete references to to_require_attach
602 and to_require_detach.
603 * infttrace.c (hppa_require_attach): Update comment.
604 * target.c (cleanup_target, update_current_target)
605 (init_dummy_target, setup_target_debug): Delete references to
606 to_require_attach and to_require_detach.
607 (find_default_require_detach, find_default_require_attach)
608 (debug_to_require_attach, debug_to_require_detach): Remove
610 * target.h (struct target_ops): Remove to_require_attach
611 and to_require_detach.
612 (target_require_attach, target_require_detach): Delete macros.
613 (find_default_require_detach, find_default_require_attach): Delete
615 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
617 2002-12-11 Andrew Cagney <ac131313@redhat.com>
619 * frame.c (get_frame_extra_info): New function.
620 * frame.h (get_frame_extra_info): Declare.
622 2002-12-11 Andrew Cagney <ac131313@redhat.com>
624 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
625 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
626 with `struct frame_id'.
627 (set_longjmp_resume_breakpoint): Ditto.
628 * infrun.c (handle_inferior_event): Update.
629 * breakpoint.c (watch_command_1, until_break_command): Update.
630 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
631 (handle_inferior_event, step_over_function): Update.
632 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
633 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
634 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
635 * infcmd.c (finish_command, run_stack_dummy): Update.
637 2002-12-11 Kevin Buettner <kevinb@redhat.com>
639 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
640 (dwarf2_non_const_array_bound_ignored)
641 (dwarf2_missing_line_number_section)
642 (dwarf2_statement_list_fits_in_line_number_section)
643 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
644 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
645 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
646 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
647 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
648 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
649 (dwarf2_missing_member_fn_type_complaint)
650 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
651 (dwarf2_const_value_length_mismatch)
652 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
653 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
654 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
655 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
656 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
657 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
658 complaints using deprecated struct..
659 (dwarf2_non_const_array_bound_ignored_complaint)
660 (dwarf2_complex_location_expr_complaint)
661 (dwarf2_unsupported_at_frame_base_complaint)
662 (dwarf2_const_value_length_mismatch_complaint)
663 (dwarf2_macros_too_long_complaint)
664 (dwarf2_macro_malformed_definition_complaint)
665 (dwarf2_invalid_attrib_class_complaint): New functions.
666 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
667 (read_structure_scope, read_array_type, read_common_block)
668 (read_tag_pointer_type, read_base_type, read_partial_die)
669 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
670 (new_symbol, dwarf2_const_value, read_type_die)
671 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
672 (parse_macro_definition, dwarf_decode_macros): Replace calls to
673 complain() with, possibly indirect, calls to complaint().
675 2002-12-11 Andrew Cagney <cagney@redhat.com>
677 * frame.c (deprecated_get_frame_saved_regs): Rename
678 get_frame_saved_regs.
679 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
680 * sparc-tdep.c: Update.
681 * hppa-tdep.c: Update.
682 * h8500-tdep.c: Update.
684 2002-12-11 Kevin Buettner <kevinb@redhat.com>
686 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
687 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
688 ``char *'' for return and parameter types.
689 * gdbarch.h, gdbarch.c: Regenerate.
690 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
691 return type from ``char *'' to ``const char *''.
692 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
695 2002-12-11 Mark Kettenis <kettenis@gnu.org>
697 * i386-tdep.c: Include "dummy-frame.h".
698 (i386_frame_chain, i386_frame_saved_pc): Replace
699 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
700 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
702 2002-12-10 Andrew Cagney <cagney@redhat.com>
704 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
705 Change to a function with predicate.
706 * gdbarch.h, gdbarch.c: Re-generate.
707 * frame.c (get_prev_frame): Update. Test
708 DEPRECATED_INIT_FRAME_PC_P.
709 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
710 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
711 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
712 * alpha-tdep.c (alpha_gdbarch_init): Update.
713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
714 * mips-tdep.c (mips_gdbarch_init): Update.
715 * i386-interix-tdep.c (i386_interix_init_abi): Update.
716 * arm-tdep.c: Update comments.
717 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
718 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
719 * frv-tdep.c (frv_gdbarch_init): Ditto.
720 * x86-64-tdep.c (x86_64_init_abi): Ditto.
721 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
722 * s390-tdep.c (s390_gdbarch_init): Ditto.
723 * v850-tdep.c (v850_gdbarch_init): Ditto.
724 * vax-tdep.c (vax_gdbarch_init): Ditto.
725 * sh-tdep.c (sh_gdbarch_init): Ditto.
726 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
728 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
729 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
730 * i386-tdep.c (i386_gdbarch_init): Ditto.
731 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
732 * cris-tdep.c (cris_gdbarch_init): Ditto.
733 * avr-tdep.c (avr_gdbarch_init): Ditto.
734 * arm-tdep.c (arm_gdbarch_init): Ditto.
735 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
736 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
738 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
740 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
742 * hppah-nat.c (saved_vfork_pid): Add.
743 (child_post_follow_vfork): Remove.
744 (child_follow_fork): New function.
745 (child_wait): Call detach_breakpoints after receiving the child vfork.
746 Call child_resume directly instead of going through resume ().
747 Make sure we have the exec before reporting the vfork.
748 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
749 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
750 (follow_fork): New function. Call target_follow_fork.
751 (follow_inferior_reset_breakpoints): New function broken out from
752 old follow_inferior_fork.
753 (resume): Remove hack to follow exec after vfork.
754 * inftarg.c (child_post_follow_vfork): Remove.
755 (child_follow_fork): New function.
756 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
757 * target.c (cleanup_target): Replace to_post_follow_vfork with
759 (update_current_target): Likewise.
760 (setup_target_debug): Likewise.
761 (debug_to_post_follow_vfork): Remove.
762 (debug_to_follow_fork): New function.
763 * target.h (struct target_ops): Replace to_post_folow_vfork with
765 (child_post_follow_vfork): Remove prototype.
766 (child_follow_fork): Add prototype.
767 (target_post_follow_vfork): Remove macro.
768 (target_follow_fork): Add macro.
770 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
772 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
773 (child_post_follow_vfork): Cancel pending exec event if we follow
775 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
776 events have been processed. Return a fake TARGET_WAITKIND_EXECD
777 event at the following wait call if necessary.
778 * infrun.c (follow_vfork): Don't follow_exec here.
779 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
780 case about HP/UX 10.20. Remove code pushed down to
781 hppah-nat.c:child_wait.
782 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
783 vfork_in_flight is set.
785 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
787 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
788 for the parent's fork event.
789 * infrun.c (handle_inferior_event): Only expect one fork event.
790 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
791 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
793 2002-12-10 Andrew Cagney <ac131313@redhat.com>
795 * PROBLEMS: Delete reference to PR gdb/725.
797 * MAINTAINERS (gdb.c++): Add David Carlton.
799 2002-12-09 David Carlton <carlton@math.stanford.edu>
801 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
802 * cli/cli-cmds.c: Ditto.
804 2002-12-09 Andrew Cagney <cagney@redhat.com>
806 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
807 function address in <>.
808 * gdbarch.c: Re-generate.
810 2002-12-09 David Carlton <carlton@math.stanford.edu>
812 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
814 2002-12-09 David Carlton <carlton@math.stanford.edu>
816 * linespec.c (symtab_from_filename): New function.
817 (decode_line_1): Move code into symtab_from_filename.
819 2002-12-09 Kevin Buettner <kevinb@redhat.com>
821 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
823 2002-12-07 Andrew Cagney <ac131313@redhat.com>
825 * f-valprint.c (info_common_command): Use get_frame_pc.
826 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
827 * ax-gdb.c (agent_command): Ditto.
828 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
829 (rs6000_pop_frame): Ditto.
830 (rs6000_frameless_function_invocation): Ditto.
831 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
832 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
833 * macroscope.c (default_macro_scope): Ditto.
834 * stack.c (print_frame_info_base): Ditto.
835 (print_frame, frame_info, print_frame_label_vars): Ditto.
836 (return_command, func_command, get_frame_language): Ditto.
837 * infcmd.c (finish_command): Ditto.
838 * dummy-frame.c (cached_find_dummy_frame): Ditto.
839 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
840 (break_at_finish_at_depth_command_1): Ditto.
841 (break_at_finish_command_1): Ditto.
842 (until_break_command, get_catch_sals): Ditto.
843 * blockframe.c (func_frame_chain_valid): Ditto.
844 (frameless_look_for_prologue): Ditto.
845 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
847 2002-12-08 Andrew Cagney <ac131313@redhat.com>
849 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
850 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
852 2002-12-08 Andrew Cagney <ac131313@redhat.com>
854 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
856 * gdbarch.h, gdbarch.c: Re-generate.
857 * frame.c (get_prev_frame): Explictly assign prev's pc with value
858 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
860 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
861 declaration to a function returning a CORE_ADDR.
862 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
863 * arch-utils.c (init_frame_pc_noop): Return the PC value.
864 (init_frame_pc_default): Ditto.
865 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
866 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
867 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
868 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
869 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
870 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
872 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
873 to init_frame_pc_noop.
874 (i386_interix_init_frame_pc): Delete function.
875 * z8k-tdep.c (init_frame_pc): Delete function.
876 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
877 (INIT_FRAME_PC_FIRST): Ditto.
878 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
879 (INIT_FRAME_PC_FIRST): Ditto.
880 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
881 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
883 (INIT_FRAME_PC_FIRST): Convert to an expression.
884 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
886 2002-12-08 Andrew Cagney <ac131313@redhat.com>
888 * blockframe.c: Use get_frame_base instead of directly accessing
889 the `struct frame_info' member frame.
890 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
891 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
893 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
895 * Makefile.in (readline_h): Define.
896 (completer.o): Depend on readline_h.
898 (event-top.o): Ditto.
905 (tracepoint.o): Ditto.
908 (tui-hooks.o): Ditto.
911 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
913 More cleanup from import of readline 4.3.
914 * completer.h (complete_line, readline_line_completion_function):
916 (line_completion_function): Removed, not used outside of completer.c.
917 * completer.c (readline_line_completion_function,
918 complete_function, line_completion_function): Use const for first
920 (line_completion_function): Make static.
921 (filename_completer): filename_completion_function is now called
922 rl_filename_completion_function
923 * corelow.c: Include <readline/readline.h>.
929 * top.c (init_main): No need to coerce
930 readline_line_completion_function anymore.
931 * cli/cli-dump.c: Include <readline/readline.h>.
933 2002-12-08 Andrew Cagney <ac131313@redhat.com>
935 * stack.c (frame_info): Use get_prev_frame.
936 * blockframe.c (frame_address_in_block): Ditto.
937 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
938 (rs6000_frameless_function_invocation): Ditto.
939 (rs6000_frame_saved_pc): Ditto.
940 (rs6000_frame_chain): Ditto.
941 * arch-utils.c (init_frame_pc_default): Ditto.
943 2002-12-08 Andrew Cagney <ac131313@redhat.com>
945 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
946 Delete redundant definition.
948 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
950 Import of readline 4.3:
951 * cli/cli-cmds.c: Include readline/tilde.h.
952 * cli/cli-setshow.c: Ditto.
953 * defs.h: Don't declare tilde_expand anymore, since readline
956 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
958 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
959 -Werror on this file.
961 2002-12-07 Andrew Cagney <ac131313@redhat.com>
963 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
965 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
966 * gdbarch.c: Regenerate.
968 2002-12-06 Andrew Cagney <ac131313@redhat.com>
970 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
971 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
972 provide a default value.
973 * gdbarch.h, gdbarch.c: Regenerate.
974 * frame.c (get_prev_frame): Update. Check
975 DEPRECATED_INIT_FRAME_PC_FIRST_P.
976 * s390-tdep.c (s390_gdbarch_init): Update.
977 * mips-tdep.c (mips_gdbarch_init): Update.
978 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
979 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
980 * alpha-tdep.c (alpha_gdbarch_init): Update.
982 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
984 * ia64-linux-nat.c: Include gdb_string.h.
985 * alpha-nat.c: Ditto.
986 * ppc-linux-nat.c: Ditto.
987 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
990 2002-12-05 Andrew Cagney <ac131313@redhat.com>
992 * gdbthread.h: Include "frame.h".
993 (struct thread_info): Replace step_frame_address with
995 * inferior.h: Include "frame.h".
996 (step_frame_id): Replace external variable step_frame_address.
997 * gdbthread.h (save_infrun_state): Replace step_frame_address
998 parameter with step_frame_id parameter.
999 (load_infrun_state): Ditto.
1000 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1001 * infcmd.c (step_frame_id, step_1, step_once): Update.
1002 * thread.c (load_infrun_state, save_infrun_state): Update.
1003 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1004 (handle_inferior_event, step_over_function): Update.
1005 (normal_stop, context_switch, restore_inferior_status): Update.
1006 (struct inferior_status): Replace step_frame_address with
1009 2002-12-05 David Carlton <carlton@math.stanford.edu>
1011 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1012 DW_TAG_member as well as a declaration as being a C++ static data
1014 (read_structure_scope): Combine tests for DW_TAG_member and
1017 2002-12-05 David Carlton <carlton@math.stanford.edu>
1019 * linespec.c (decode_compound): New function.
1020 (decode_line_1): Move code into decode_compound.
1022 2002-12-05 David Carlton <carlton@math.stanford.edu>
1024 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1026 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1027 the static block. See PR gdb/804.
1029 2002-12-05 David Carlton <carlton@math.stanford.edu>
1031 * symtab.c (lookup_symbol_aux_block): New function.
1032 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1034 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1036 * gdbarch.sh: Dump the predicate function and macro values.
1037 (read): Print error on standard error.
1038 * gdbarch.c: Regenerate.
1040 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1042 * Makefile.in (mips_tdep_h): Define.
1043 (mips-tdep.o): Add mips_tdep_h to dependency list.
1044 * mips-tdep.h: New file.
1045 * mips-tdep.c (mips-tdep.h): Include.
1046 (enum mips_abi): Move to mips-tdep.h.
1047 (mips_abi): New function.
1049 2002-12-04 David Carlton <carlton@math.stanford.edu>
1051 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1053 2002-12-04 David Carlton <carlton@math.stanford.edu>
1055 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1057 (lookup_symbol_aux_minsyms): New function.
1059 2002-12-04 J. Brobecker <brobecker@gnat.com>
1061 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1063 2002-12-04 J. Brobecker <brobecker@gnat.com>
1065 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1066 which is an obsolete macro name.
1068 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1070 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1071 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1073 2002-12-03 H.J. Lu (hjl@gnu.org)
1075 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1076 (create_breakpoints): Make sure the addr_string field is not
1079 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1081 * sparc-nat.c (fetch_inferior_registers)
1082 (store_inferior_registers): Add comment on problem of LWP vs
1085 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1086 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1087 (lin_lwp_store_registers): Remove.
1088 (init_lin_lwp_ops): Use fetch_inferior_registers
1089 and store_inferior_registers directly.
1090 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1091 (store_inferior_registers): Likewise.
1094 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1096 * frame.h (get_frame_id): Convert to a function.
1097 (null_frame_id, frame_id_p): Declare.
1098 (frame_id_eq, frame_id_inner): Declare.
1099 (frame_id_build): New function.
1100 * frame.c (get_frame_id): Update. Use null_frame_id.
1101 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1103 (null_frame_id, frame_id_p): Define.
1104 (frame_id_eq, frame_id_inner): Define.
1105 (frame_id_build): New function.
1106 * varobj.c (varobj_create): Update.
1107 (varobj_update): Update.
1108 * valops.c (value_assign): Update.
1109 (new_root_variable): Update.
1110 * infrun.c (save_inferior_status): Update.
1111 * breakpoint.c (watch_command_1): Update.
1113 2002-12-03 J. Brobecker <brobecker@gnat.com>
1115 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1118 2002-12-03 Andrew Cagney <cagney@redhat.com>
1120 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1123 * PROBLEMS: Mention PR gdb/725.
1125 2002-12-03 Andreas Schwab <schwab@suse.de>
1127 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1129 2002-12-02 Adam Fedor <fedor@gnu.org>
1130 Klee Dienes <kdienes@apple.com>
1132 * objc-lang.c (objc_printstr): Add width arg to match
1134 (compare_selectors): Add 'const' to arg types.
1135 (compare_classes): Likewise.
1136 (find_imps): Cast msym pointer to avoid compiler warning.
1137 (print_object_command): Validate the address before
1138 passing it to the print routine.
1139 (find_objc_msgcall_submethod): Change function argument to
1141 * objc-lang.h: Add 'extern' to all function declarations.
1142 (value_nsstring): Add declaration.
1144 2002-12-02 J. Brobecker <brobecker@gnat.com>
1146 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1147 Fixes a build failure on HP/UX.
1149 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1151 (hpread_has_name): Advance declaration to avoid a compilation warning.
1152 (pst_syms_count): Add missing variable type. By change, the compiler
1153 was defaulting to int, which seems a good choice. Fixes a compilation
1155 (pst_syms_size): Likewise.
1157 2002-12-02 J. Brobecker <brobecker@gnat.com>
1159 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1160 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1161 later to set the proper gdbarch methods depending on the osabi.
1162 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1164 2002-12-02 J. Brobecker <brobecker@gnat.com>
1166 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1167 * osabi.c (gdb_osabi_name): Add strings images for the two new
1169 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1171 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1173 * MAINTAINERS (Java): Global maintainers are responible for Java.
1174 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1175 part Java maintainers.
1177 2002-12-02 J. Brobecker <brobecker@gnat.com>
1179 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1180 Fixes a compilation failure on AiX.
1182 2002-12-02 J. Brobecker <brobecker@gnat.com>
1184 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1185 why aix-thread.o is not listed.
1187 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1189 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1190 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1191 * gdbarch.h, gdbarch.c: Re-generate.
1192 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1193 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1194 * config/pa/tm-hppa.h, frame.h: Update.
1195 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1196 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1197 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1198 * cris-tdep.c, alpha-tdep.c: Update.
1199 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1200 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1201 (get_prev_frame): Ditto.
1203 2002-11-30 Andrew Cagney <cagney@redhat.com>
1205 * exec.c (xfer_memory): Replace boolean with int.
1206 * p-exp.y: Use 0 instead of false.
1207 * corelow.c (gdb_check_format): Change return type to int from
1209 * utils.c: Don't include <curses.h> or <term.h> first.
1211 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1213 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1214 (m68hc11_register_byte): Remove.
1215 (m68hc11_gdbarch_init): Don't set the above.
1217 2002-11-29 Andrew Cagney <cagney@redhat.com>
1219 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1220 by calling get_selected_frame.
1221 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1222 set_current_frame, create_new_frame, select_frame and
1224 * remote-e7000.c (e7000_start_remote): Ditto.
1225 * remote-mips.c (common_open): Ditto
1226 * remote-rdp.c (remote_rdp_open): Ditto.
1228 2002-11-29 Andreas Schwab <schwab@suse.de>
1230 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1231 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1232 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1233 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1234 read_memory_unsigned_integer instead of read_memory_integer when
1235 dealing with addresses and instruction opcodes.
1236 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1237 (m68k_linux_frame_saved_pc): Likewise.
1239 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1241 * stack.c (selected_frame, select_frame): Move from here ...
1242 * frame.c (selected_frame, select_frame): ... to here. Include
1244 * Makefile.in (frame.o): Update dependencies.
1245 * frame.c (get_selected_frame): New function.
1246 * frame.h (get_selected_frame): Declare.
1247 (deprecated_selected_frame): Rename selected_frame.
1248 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1249 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1250 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1251 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1252 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1253 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1254 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1255 * z8k-tdep.c, cli/cli-cmds.c: Update.
1257 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1259 * frame.h (get_selected_block): Add comments.
1261 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1263 * frame.c (pc_notcurrent): New function.
1264 (find_frame_sal): New function.
1265 * frame.h (find_frame_sal): Declare.
1266 (struct symtab_and_line): Add opaque declaration.
1267 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1269 (frame_info): Ditto.
1270 * ada-lang.c (find_printable_frame): Ditto.
1272 2002-11-28 J. Brobecker <brobecker@gnat.com>
1274 * configure.in: Check that the pthdebug library is recent enough
1275 before enabling thread support on native AiX.
1276 * configure: Regenerate.
1278 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1279 from the list of object files as it is now appended by configure
1280 if thread support is enabled.
1281 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1282 if thread support is enabled.
1284 2002-11-28 Andrew Cagney <cagney@redhat.com>
1286 * stack.c (get_selected_block): In-line get_current_block.
1287 * frame.h (get_current_block): Delete declaration.
1288 * blockframe.c (get_current_block): Delete function.
1290 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1292 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1293 USE_GENERIC_DUMMY_FRAMES.
1294 * gdbarch.h, gdbarch.c: Regenerate.
1295 * valops.c, frame.c: Update.
1296 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1297 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1298 * config/pa/tm-hppa.h, blockframe.c: Update.
1299 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1300 * m68k-tdep.c, alpha-tdep.c: Ditto.
1302 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1303 * mips-tdep.c: Ditto.
1305 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1307 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1308 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1309 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1310 * gdbarch.c, gdbarch.h: Re-generate.
1311 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1312 (CALL_DUMMY_LOCATION): Delete macro definition.
1313 (PC_IN_CALL_DUMMY): Delete macro definitions.
1315 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1316 default is already generic_pc_in_call_dummy.
1317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1318 * v850-tdep.c (v850_gdbarch_init): Ditto.
1319 * sh-tdep.c (sh_gdbarch_init): Ditto.
1320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1321 * mips-tdep.c (mips_gdbarch_init): Ditto.
1322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1324 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1326 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1327 * avr-tdep.c (avr_gdbarch_init): Ditto.
1329 * arm-tdep.c (arm_gdbarch_init): Do not set
1330 use_generic_dummy_frames, default is already 1.
1331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1332 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1333 * v850-tdep.c (v850_gdbarch_init): Ditto.
1334 * sh-tdep.c (sh_gdbarch_init): Ditto.
1335 * s390-tdep.c (s390_gdbarch_init): Ditto.
1336 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1337 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1338 * mips-tdep.c (mips_gdbarch_init): Ditto.
1339 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1341 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1342 * i386-tdep.c (i386_gdbarch_init): Ditto.
1343 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1344 * frv-tdep.c (frv_gdbarch_init): Ditto.
1345 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1346 * cris-tdep.c (cris_gdbarch_init): Ditto.
1347 * avr-tdep.c (avr_gdbarch_init): Ditto.
1349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1350 call_dummy_location, default is already AT_ENTRY_POINT.
1351 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1352 * v850-tdep.c (v850_gdbarch_init): Ditto.
1353 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1354 * sh-tdep.c (sh_gdbarch_init): Ditto.
1355 * s390-tdep.c (s390_gdbarch_init): Ditto.
1356 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1358 * mips-tdep.c (mips_gdbarch_init): Ditto.
1359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1360 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1361 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1362 * i386-tdep.c (i386_gdbarch_init): Ditto.
1363 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1364 * frv-tdep.c (frv_gdbarch_init): Ditto.
1365 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1366 * cris-tdep.c (cris_gdbarch_init): Ditto.
1367 * avr-tdep.c (avr_gdbarch_init): Ditto.
1368 * arm-tdep.c (arm_gdbarch_init): Ditto.
1369 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1371 2002-11-28 Andrew Cagney <cagney@redhat.com>
1373 * frame.h: Update comments on set_current_frame, create_new_frame,
1374 flush_cached_frames, reinit_frame_cache, select_frame and
1377 2002-11-27 Andrew Cagney <cagney@redhat.com>
1379 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1380 deprecated pc_in_call_dummy function.
1381 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1382 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1383 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1384 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1385 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1387 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1389 * Makefile.in: Remove Tix dependencies.
1390 * acinclude.m4: Ditto.
1391 * aclocal.m4: Ditto.
1392 * configure.in: Ditto.
1393 * configure: Regenerated.
1395 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1397 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1398 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1399 * gdbarch.c: Re-generate.
1401 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1403 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1404 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1405 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1406 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1407 pc_in_call_dummy_at_entry_point.
1408 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1409 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1410 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1411 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1412 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1413 pc_in_call_dummy_on_stack.
1414 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1415 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1416 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1417 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1418 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1420 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1422 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1423 pc_in_call_dummy_before_text_end
1424 (deprecated_pc_in_call_dummy_after_text_end): Rename
1425 pc_in_call_dummy_after_text_end.
1426 (deprecated_pc_in_call_dummy_on_stack): Rename
1427 pc_in_call_dummy_on_stack.
1428 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1429 pc_in_call_dummy_at_entry_point.
1430 * m68k-tdep.c (m68k_gdbarch_init): Update.
1431 * s390-tdep.c (s390_gdbarch_init): Update.
1432 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1433 * vax-tdep.c (vax_gdbarch_init): Update.
1434 * sparc-tdep.c (sparc_gdbarch_init): Update.
1435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1437 * i386-tdep.c (i386_gdbarch_init): Update.
1438 * frv-tdep.c (frv_gdbarch_init): Update.
1439 * cris-tdep.c (cris_gdbarch_init): Update.
1440 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1441 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1442 (deprecated_pc_in_call_dummy_after_text_end)
1443 (deprecated_pc_in_call_dummy_on_stack)
1444 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1445 * alpha-tdep.c (alpha_gdbarch_init): Update.
1447 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1449 * acconfig.h (HAVE_PREAD64): Add.
1450 * configure.in: Check for pread64.
1451 * config.in: Regenerated.
1452 * configure: Regenerated.
1453 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1454 * linux-proc.c (linux_proc_xfer_memory): New function.
1455 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1457 2002-11-25 David Carlton <carlton@math.stanford.edu>
1459 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1462 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1464 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1465 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1467 2002-11-25 Jim Blandy <jimb@redhat.com>
1469 * symfile.c (init_objfile_sect_indices): New function.
1470 (default_symfile_offsets): Move the section-index-initializing
1471 stuff into init_objfile_sect_indices, and call that.
1473 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1474 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1476 * symfile.c (syms_from_objfile): Adjust indentation.
1478 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1479 || info_verbose isn't true.
1481 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1483 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1484 default to get_frame_base.
1485 * gdbarch.h, gdbarch.c: Regenerate.
1486 * arch-utils.c (default_frame_address): Delete function.
1487 * arch-utils.h (default_frame_address): Delete declaration
1489 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1491 * varobj.c (find_frame_addr_in_frame_chain):
1492 Use get_frame_base instead of FRAME_FP,
1495 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1497 * frame.h (FRAME_FP): Delete macro.
1498 (get_frame_base): New function declaration.
1499 * frame.c (get_frame_base): New function.
1500 (get_frame_id): Use ->frame.
1501 (frame_find_by_id): Rewrite to use get_frame_id.
1502 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1503 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1504 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1505 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1506 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1507 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1508 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1510 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1512 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1514 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1516 * frame.c (set_unwind_by_pc): Revert change below, use
1518 (get_prev_frame): Ditto.
1520 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1522 * dummy-frame.c (pc_in_dummy_frame): New function.
1523 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1524 (find_dummy_frame): Update comment.
1525 (generic_pop_current_frame): Use get_frame_type.
1526 * dummy-frame.h (pc_in_dummy_frame): Declare.
1527 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1528 (create_new_frame): Use pc_in_dummy_frame.
1529 (get_prev_frame): Use pc_in_dummy_frame.
1530 (frame_saved_regs_register_unwind): Use get_prev_frame.
1531 (deprecated_generic_get_saved_register): Use get_prev_frame.
1533 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1535 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1537 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1538 (varobj_create): Note that frame ID should be used.
1539 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1541 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1543 * breakpoint.c: Include "gdb_assert.h".
1544 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1546 * Makefile.in (breakpoint.o): Update dependencies.
1547 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1548 deprecated_frame_in_dummy.
1549 * stack.c (print_frame_info_base): Ditto.
1550 (frame_info): Ditto.
1551 (print_frame_info_base): Ditto. Delete dead code.
1553 2002-11-23 Andreas Schwab <schwab@suse.de>
1555 * Makefile.in (m68k_tdep_h): Define.
1556 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1557 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1558 * m68k-tdep.c: Move register number enum ...
1559 * m68k-tdep.h: ... to this new file and rename the constants from
1560 E_* to M68K_*. All uses changed.
1561 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1562 * abug-rom.c: Include "m68k-tdep.h". Use
1563 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1564 * cpu32bug-rom.c: Likewise.
1565 * dbug-rom.c: Likewise.
1566 * m68k-tdep.c: Likewise.
1567 * m68klinux-nat.c: Likewise.
1568 * remote-est.c: Likewise.
1569 * rom68k-rom.c: Likewise.
1570 * config/m68k/tm-linux.h: Likewise.
1572 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1574 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1575 dummy frame initialization code.
1576 * mips-tdep.c (mips_gdbarch_init): Ditto.
1578 2002-11-22 Christopher Faylor <cgf@redhat.com>
1580 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1583 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1585 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1586 to default_frame_address.
1587 * gdbarch.h, gdbarch.c: Re-generate.
1589 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1590 or frame_locals_address to default_frame_address.
1591 * m68k-tdep.c (m68k_gdbarch_init): Update.
1592 * i386-tdep.c (i386_gdbarch_init): Update.
1593 * frv-tdep.c (frv_gdbarch_init): Update.
1594 * sh-tdep.c (sh_gdbarch_init): Update.
1595 * v850-tdep.c (v850_gdbarch_init): Update.
1596 * sparc-tdep.c (sparc_gdbarch_init): Update.
1597 * mips-tdep.c (mips_gdbarch_init): Update.
1598 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1599 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1602 * cris-tdep.c (cris_frame_args_address): Delete function.
1603 (cris_frame_locals_address): Delete function.
1604 (cris_gdbarch_init): Do not set frame_args_address or
1605 frame_locals_address.
1607 2002-11-22 Michael Snyder <msnyder@redhat.com>
1609 * thread-db.c (thread_db_load): Tell the user what's going on
1610 if dlopen fails on libthread_db.
1612 2002-11-23 Andreas Schwab <schwab@suse.de>
1614 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1615 invariant return values.
1617 2002-11-22 Andreas Schwab <schwab@suse.de>
1619 * valops.c (value_slice): Move declaration of `offset' to avoid
1622 2002-11-22 Christopher Faylor <cgf@redhat.com>
1624 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1625 (struct so_stuff): Add end_addr field.
1626 (register_loaded_dll): Calculate and store end address of loaded dll.
1627 (solib_address): New function.
1628 (child_solib_loaded_library_pathname): Pass carefully constructed
1629 section info to safe_symbol_file_add rather than ignoring it.
1630 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1632 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1633 (child_create_inferior): Fix a compiler warning.
1634 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1635 (solib_address): Declare new function.
1637 2002-11-22 Andreas Schwab <schwab@suse.de>
1639 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1642 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1644 * maint.c (_initialize_maint_cmds): Fix typo. From
1645 Francesco Potorti` <pot@gnu.org>.
1647 2002-11-21 Andrew Cagney <cagney@redhat.com>
1649 * mips-tdep.c (mips_dump_tdep): Delete references to
1650 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1651 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1652 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1653 * printcmd.c (build_address_symbolic): Delete calls to
1654 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1655 (address_info): Ditto.
1658 2002-11-19 Klee Dienes <kdienes@apple.com>
1659 Adam Fedor <fedor@gnu.org>
1661 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1662 the ability to explicitly specify the quote characters and word
1663 break characters; if NULL is specified for either, use the old
1664 behavior of using the characters used by the completer.
1665 (skip_chars): New function. Convenience wrapper around
1666 skip_quoted_chars to provide the original skip_chars behavior.
1667 * completer.h (skip_quoted_chars): Add prototype.
1669 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1671 Problems reported by Paul Eggert.
1672 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1674 2002-11-19 Andreas Schwab <schwab@suse.de>
1676 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1677 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1678 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1679 (m68k_linux_frame_saved_pc): Move to ...
1680 * m68klinux-tdep.c: ... here. New file.
1681 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1682 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1684 2002-11-19 Adam Fedor <fedor@gnu.org>
1686 * objc-exp.y: Revert to old skip_quoted usage.
1688 2002-11-19 Adam Fedor <fedor@gnu.org>
1690 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1691 (objc_lang_h): Define.
1692 (YYFILES): Add objc-exp.tab.c.
1693 (local-maintainer-clean): Remove objc-exp.tab.c.
1694 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1696 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1698 * p-exp.y (typecast rule): Add automatic dereference of
1699 pascal classes if needed.
1700 (THIS): Set current_type.
1701 Automatically dereference pascal classes.
1702 (typebase rule): Add ^typebase recognition.
1704 2002-11-18 Adam Fedor <fedor@gnu.org>
1706 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1707 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1708 (op_name): Handle OP_OBJC_SELF.
1709 * Makefile.in (expprint.o): Add additional depends.
1711 2002-11-18 Adam Fedor <fedor@gnu.org>
1713 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1714 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1715 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1716 * objc-exp.y: Likewise.
1718 2002-11-18 Adam Fedor <fedor@gnu.org>
1720 * gdb/parser-defs.h: (struct objc_class_str): New structure
1721 for parsing ObjC classes.
1723 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1725 * stack.c (frame_relative_level): Copy function from here ...
1726 * frame.c (frame_relative_level): ...to here.
1728 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1730 * frame.h (enum frame_type): Define.
1731 (get_frame_type): Declare.
1732 (struct frame_info): Add field `type'. Delete field
1733 signal_handler_caller.
1734 (deprecated_set_frame_signal_handler_caller): Declare.
1735 * frame.c (get_frame_type): New function.
1736 (deprecated_set_frame_type): New function.
1737 (create_new_frame): Set the frame's type.
1738 (get_prev_frame): Similar.
1739 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1740 * s390-tdep.c: Ditto.
1741 * m68klinux-nat.c: Ditto.
1742 * ns32k-tdep.c: Ditto.
1743 * x86-64-linux-tdep.c: Ditto.
1744 * vax-tdep.c: Ditto.
1745 * rs6000-tdep.c: Ditto.
1746 * ppc-linux-tdep.c: Ditto.
1747 * i386-interix-tdep.c: Ditto.
1748 * mips-tdep.c: Ditto.
1749 * m68k-tdep.c: Ditto.
1750 * hppa-tdep.c: Ditto.
1751 * ia64-tdep.c: Ditto.
1752 * cris-tdep.c: Ditto.
1753 * arm-tdep.c: Ditto.
1754 * alpha-tdep.c: Ditto.
1755 * i386-tdep.c: Ditto.
1757 * ada-lang.c: Ditto.
1758 * blockframe.c: Update.
1759 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1760 deprecated_set_frame_type instead of signal_handler_caller.
1761 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1762 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1763 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1765 2002-11-18 Klee Dienes <kdienes@apple.com>
1767 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1769 2002-11-18 Klee Dienes <kdienes@apple.com>
1771 * buildsym.c (pop_context): Add comment.
1773 2002-11-18 Klee Dienes <kdienes@apple.com>
1775 * buildsym.h (pop_context): Convert to function, defined in
1777 * buildsym.c: Include gdb_assert.h.
1778 (pop_context): Implement as C function. Add check for stack
1780 * dbxread.c (process_one_symbol): Complain and stop processing
1781 that symbol if we are already at the top of the context stack for
1782 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1783 when processing N_RBRAC.
1785 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1787 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1789 (struct target_waitstatus): Add opaque definition.
1790 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1791 * exec.c (init_exec_ops): Likewise.
1792 * fork-child.c (clone_and_follow_inferior): Remove.
1793 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1794 * inferior.h (clone_and_follow_inferior): Remove prototype.
1795 * infrun.c (follow_fork_mode_both): Remove.
1796 (follow_fork_mode_kind_names): Remove commented out "both".
1797 (follow_inferior_fork): Remove follow_fork_mode_both support.
1798 * inftarg.c (child_clone_and_follow_inferior): Remove.
1799 (child_post_follow_inferior_by_clone): Remove.
1800 (init_child_ops): Don't set to_clone_and_follow_inferior
1801 or to_post_follow_inferior_by_clone.
1802 * target.c (default_clone_and_follow_inferior): Remove.
1803 (cleanup_target): Don't set to_clone_and_follow_inferior
1804 or to_post_follow_inferior_by_clone.
1805 (find_default_clone_and_follow_inferior): Remove.
1806 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1807 (debug_to_clone_and_follow_inferior): Remove.
1808 (debug_to_post_follow_inferior_by_clone): Remove.
1809 (setup_target_debug): Don't set to_clone_and_follow_inferior
1810 or to_post_follow_inferior_by_clone.
1811 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1812 and to_post_follow_inferior_by_clone.
1813 (child_clone_and_follow_inferior): Remove prototype.
1814 (child_post_follow_inferior_by_clone): Remove prototype.
1815 (target_clone_and_follow_inferior): Remove macro.
1816 (target_post_follow_inferior_by_clone): Remove macro.
1817 (find_default_clone_and_follow_inferior): Remove prototype.
1819 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1821 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1822 inferior_has_vforked, and inferior_has_execd instead of
1823 target_has_forked, target_has_vforked, and target_has_execd.
1824 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1825 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1826 (CHILD_WAIT): Define.
1827 (child_wait): Add prototype.
1828 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1830 (hpux_has_vforked): Likewise, from child_has_vforked.
1831 (hpux_has_execd): Likewise, from child_has_execd.
1832 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1833 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1834 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1835 and hpux_has_syscall_event instead of the target hooks.
1836 * infrun.c (inferior_has_forked, inferior_has_vforked)
1837 (inferior_has_execd): New functions.
1838 * inftarg.c (not_same_real_pid): Remove.
1839 (child_wait): Remove references to not_same_real_pid,
1840 target_has_forked, target_has_vforked, target_has_execd,
1841 and target_has_syscall_event.
1842 (child_has_forked, child_has_vforked, child_has_execd)
1843 (child_has_syscall_event): Remove.
1844 (init_child_ops): Remove references to child_has_forked,
1845 child_has_vforked, child_has_execd, and child_has_syscall_event.
1846 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1847 (hpux_has_vforked): Likewise, from child_has_vforked.
1848 (hpux_has_execd): Likewise, from child_has_execd.
1849 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1850 * target.c (cleanup_target): Remove references to
1851 to_has_forked, to_has_vforked, to_has_execd, and
1852 to_has_syscall_event.
1853 (update_current_target): Likewise.
1854 (setup_target_debug): Likewise.
1855 (debug_to_has_forked): Remove.
1856 (debug_to_has_vforked): Remove.
1857 (debug_to_has_execd): Remove.
1858 (debug_to_has_syscall_event): Remove.
1859 * target.h (struct target_ops): Remove to_has_forked.
1860 to_has_vforked, to_has_execd, and to_has_syscall_event.
1861 (child_has_forked, child_has_vforked, child_has_execd)
1862 (child_has_syscall_event): Remove prototypes.
1863 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1865 (target_has_forked, target_has_vforked, target_has_execd)
1866 (target_has_syscall_event): Remove macros.
1868 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1870 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1871 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1872 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1873 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1874 * target.c (cleanup_target): Remove reference to
1875 to_can_follow_vfork_prior_to_exec.
1876 (update_current_target): Likewise.
1877 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1878 (setup_target_debug): Remove reference to
1879 to_can_follow_vfork_prior_to_exec.
1880 * target.h (struct target_ops): Remove
1881 to_can_follow_vfork_prior_to_exec.
1882 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1883 (target_can_follow_vfork_prior_to_exec): Remove definition.
1884 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1886 * infrun.c (follow_vfork_when_exec): Remove.
1887 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1888 (follow_exec): Likewise.
1889 (handle_inferior_event): Likewise.
1890 (keep_going): Likewise.
1892 2002-11-15 Andrew Cagney <cagney@redhat.com>
1894 * frame.c (generic_unwind_get_saved_register): Make static.
1895 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1896 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1897 defaults to generic_unwind_get_saved_register.
1898 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1899 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1900 * frv-tdep.c (frv_gdbarch_init): Ditto.
1901 * i386-tdep.c (i386_gdbarch_init): Ditto.
1902 * s390-tdep.c (s390_gdbarch_init): Ditto.
1903 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1904 * v850-tdep.c (v850_gdbarch_init): Ditto.
1905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1906 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1907 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1909 2002-11-15 Andrew Cagney <cagney@redhat.com>
1911 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1914 2002-11-15 Andrew Cagney <cagney@redhat.com>
1916 * frame.h (sigtramp_saved_pc): Delete declaration.
1917 * blockframe.c (sigtramp_saved_pc): Delete function.
1918 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1919 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1920 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1921 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1923 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1925 * frame.c (frame_pc_unwind): New function.
1926 (frame_saved_regs_pc_unwind): New function.
1927 (frame_register_unwind): Pass unwind_cache instead of
1928 register_unwind_cache.
1929 (set_unwind_by_pc): Add unwind_pc parameter, set.
1930 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1931 (get_prev_frame): Ditto.
1932 * frame.h (frame_pc_unwind_ftype): Declare.
1933 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1934 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1935 (frame_pc_unwind): Declare.
1936 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1937 (struct dummy_frame): Add comment mentioning that values are for
1939 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1940 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1941 (generic_file_frame_chain_valid): Ditto.
1942 * stack.c (frame_info): Ditto.
1944 2002-11-15 David Carlton <carlton@math.stanford.edu>
1946 * linespec.c (locate_first_half): New function.
1947 (decode_line_1): Move code into locate_first_half.
1949 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1951 * complaints.h: Add comment explaining how to eliminate a
1952 deprecated_complain call.
1953 * complaints.h: Fix spelling errors.
1955 2002-11-15 David Carlton <carlton@math.stanford.edu>
1957 * printcmd.c: Remove #include "disasm.h".
1959 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1961 * frame.h: Move the most relevant interface functions to the start
1964 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1966 * regcache.h (deprecated_registers): Rename registers.
1967 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1968 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1969 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1970 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1971 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1972 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1973 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1974 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1975 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1976 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1977 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1978 * v850ice.c: Update.
1980 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1982 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1985 2002-11-13 Andrew Cagney <cagney@redhat.com>
1987 * regcache.h (deprecated_read_register_bytes): Rename
1988 read_register_bytes.
1989 (deprecated_write_register_bytes): Rename write_register_bytes.
1990 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1991 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1992 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1993 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1994 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1995 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1996 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1997 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1998 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1999 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2000 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2001 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2002 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2003 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2005 2002-11-13 Jim Blandy <jimb@redhat.com>
2007 * findvar.c (read_var_value): Doc fix.
2009 2002-11-13 Andrew Cagney <cagney@redhat.com>
2011 * regcache.c (struct regcache): Replace passthough_p with
2013 (regcache_xmalloc): Initialize readonly_p.
2014 (build_regcache): Initialize readonly_p.
2015 (regcache_save): New function.
2016 (regcache_restore): New function.
2017 (regcache_cpy): Re-implement using regcache_save and
2019 (regcache_raw_read): Update.
2020 (regcache_cooked_read): When a read-only cache, checked for cached
2021 pseudo register values.
2022 (regcache_raw_write): Assert that the cache is not read-only.
2023 Remove code handling a non-passthrough cache.
2024 * regcache.h (regcache_save): Declare.
2025 (regcache_restore): Declare.
2027 2002-11-13 Andrew Cagney <cagney@redhat.com>
2029 * regcache.c (struct regcache_descr): Add fields
2030 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2031 (init_legacy_regcache_descr): Compute the size of a cooked
2032 register cache and then assign that to sizeof_raw_registers. Set
2033 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2034 (init_legacy_regcache_descr): Ditto.
2036 2002-11-13 Andrew Cagney <cagney@redhat.com>
2038 * regcache.c (register_buffer): Move to near start of file, update
2040 (regcache_raw_read): Use.
2041 (regcache_raw_write): Use.
2042 (struct regcache): Rename raw_registers to registers and
2043 raw_register_valid_p to register_valid_p.
2044 (regcache_xmalloc): Update.
2045 (regcache_xfree): Update.
2046 (register_buffer): Update.
2047 (regcache_cpy): Update.
2048 (regcache_cpy_no_passthrough): Update.
2049 (regcache_valid_p): Update.
2050 (deprecated_grub_regcache_for_registers): Update.
2051 (deprecated_grub_regcache_for_register_valid): Update.
2052 (set_register_cached): Update.
2053 (regcache_raw_write): Update.
2055 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2057 * p-exp.y (name_not_typename): Use copy_name to
2058 set current_type variable for fields of THIS.
2060 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2062 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2063 * monitor.c (init_base_monitor_ops): Likewise.
2064 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2065 * remote-array.c (init_array_ops): Likewise.
2066 * remote-e7000.c (init_e7000_ops): Likewise.
2067 * remote-es.c (init_es1800_ops): Likewise.
2068 (init_es1800_child_ops): Likewise.
2069 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2070 * remote-sim.c (init_gdbsim_ops): Likewise.
2071 * remote-st.c (init_st2000_ops): Likewise.
2072 * sol-thread.c (init_sol_core_ops): Likewise.
2073 (init_sol_thread_ops): Likewise.
2074 * v850ice.c (init_850ice_ops): Likewise.
2075 * win32-nat.c (init_child_ops): Likewise.
2076 * wince.c (init_child_ops): Likewise.
2078 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2080 * utils.c (gdb_realpath): Make rp a constant pointer.
2082 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2084 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2085 a constant buffer; cannonicalize_file_name(); realpath() with a
2086 pathconf() defined buffer, xstrdup().
2088 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2090 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2091 to hang2.C; hang3.c to hang3.C.
2093 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2095 * findvar.c (read_var_value): Reenable TLS code.
2097 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2098 Jim Blandy <jimb@redhat.com>
2100 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2101 * target.c (update_current_target): Add
2102 to_get_thread_local_address.
2103 * target.h (to_get_thread_local_address): Export.
2104 (target_get_thread_local_address): Define.
2105 (target_get_thread_local_address_p): Define.
2106 * thread-db.c: Include solib-svr4.h.
2107 (td_thr_tls_get_addr_p): Define.
2108 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2109 (thread_db_get_thread_local_address): New function.
2110 (init_thread_db_ops): Initialize to_get_thread_local_address.
2111 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2112 * configure: Regenerate.
2113 * config.in: Regenerate.
2115 2002-11-11 David Carlton <carlton@math.stanford.edu>
2117 * linespec.c (set_flags): New function.
2118 (decode_line_1): Move code into set_flags.
2120 2002-11-11 David Carlton <carlton@math.stanford.edu>
2122 * linespec.c (decode_line_1): Move chunks of code to separate
2124 (initialize_defaults): New function.
2125 (decode_indirect): New function.
2127 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2129 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2130 instead of void_code_ptr.
2131 (sigtramp_saved_pc): Ditto.
2133 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2136 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2138 * gdbtypes.h (struct main_type): Move artificial flag out of
2139 loc. New member of ``struct field'' named static_kind. Reduce
2140 overloaded meaning of bitsize.
2141 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2142 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2143 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2145 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2147 (template_to_fixed_record_type, template_to_static_fixed_type)
2148 (to_record_with_fixed_variant_part): Likewise.
2149 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2150 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2151 * dwarfread.c (struct_type, enum_type): Likewise.
2152 * hpread.c (hpread_read_enum_type)
2153 (hpread_read_function_type, hpread_read_doc_function_type)
2154 (hpread_read_struct_type): Likewise.
2155 * mdebugread.c (parse_symbol): Likewise.
2157 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2159 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2160 * stack.c (print_frame_info_base): Update.
2161 (print_frame_info_base, frame_info): Update.
2162 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2163 (sparc_frame_saved_pc): Update.
2164 * ada-lang.c (find_printable_frame): Update.
2165 * breakpoint.c (deprecated_frame_in_dummy): Update.
2167 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2169 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2171 (regmap): Extend to cover all registers.
2172 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2173 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2175 (fetch_register, sore_register): Simplify.
2176 (old_fetch_inferior_registers, old_store_inferior_registers):
2178 (cannot_fetch_register, cannot_store_register): Change
2179 implementation to use regmap array to decide which registers
2180 cannot be fetched/stored. This removes $orig_eax from the
2181 registers that cannot be fetched/stored.
2182 (fetch_inferior_registers): Call fetch_register directly instead
2183 of calling old_fetch_inferior_registers.
2184 (store_inferior_registers): Call store_register directly instead
2185 of calling old_store_inferior_registers.
2186 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2187 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2188 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2190 2002-11-09 Klee Dienes <kdienes@apple.com>
2192 * i387-tdep.c (i387_supply_register): When called with NULL as a
2193 buffer, mark the register as not provided (to mirror the behavior
2194 of supply_register).
2195 (i387_supply_fxsave): Ditto.
2196 (i387_supply_fsave): Ditto (inherits the behavior from
2197 i387_supply_register).
2199 2002-11-09 Klee Dienes <kdienes@apple.com>
2201 * blockframe.c (sigtramp_saved_pc): Use
2202 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2203 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2204 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2206 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2208 * frame.c (get_prev_frame): Test prev_p to identify a previously
2209 unwound frame. Initialize prev_p.
2210 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2213 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2215 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2216 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2217 more comments. Zap dead code.
2219 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2221 * infcmd.c (print_vector_info, print_float_info): Move code that
2222 checks whether the target has any registers and whether there is a
2223 selected frame up, such that it is also used if a target provides
2224 multi-arch definitions of these functions.
2226 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2228 * Makefile.in (DESTDIR): Define.
2229 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2232 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2233 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2235 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2237 * i386-linux-tdep.c: Include "reggroups.h".
2238 (i386_linux_register_reggroup_p): New function.
2239 (i386_linux_init_abi): Set register_reggroup_p to
2240 i386_linux_register_reggroup_p.
2241 * i386-tdep.h (i386_register_reggroup_p): Declare.
2242 * i386-tdep.c: Include "reggroups.h".
2243 (i386_init_reggroups): New function.
2244 (i386_add_reggroups): New function.
2245 (i386_register_reggroup_p): New function.
2246 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2247 (_initialize_i386_tdep): Call i386_init_reggroups.
2248 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2251 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2253 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2254 request that's available in *BSD.
2256 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2258 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2261 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2263 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2264 * dummy-frame.c (find_dummy_frame): Rename
2265 generic_find_dummy_frame, make static. Return the dummy frame
2266 instead of the regcache.
2267 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2268 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2269 (dummy_frame_register_unwind): Rename
2270 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2271 * dummy-frame.h (dummy_frame_register_unwind): Rename
2272 generic_call_dummy_register_unwind.
2274 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2276 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2277 except the inclusion of "i386/tm-i386.h", to...
2278 * config/i386/nm-i386v42mp.h: ...here.
2279 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2281 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2283 * Makefile.in (frame.o): Update dependencies.
2284 * blockframe.c (current_frame, frame_obstack_alloc)
2285 (frame_saved_regs_zalloc, get_current_frame)
2286 (set_current_frame, create_new_frame)
2287 (set_unwind_by_pc, get_next_frame)
2288 (flush_cached_frames, reinit_frame_cache)
2289 (frame_saved_regs_register_unwind)
2290 (deprecated_generic_get_saved_register)
2291 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2292 (_initialize_blockframe): Move frame code from here...
2293 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2294 "annotate.h" and "dummy-frame.h".
2295 (_initialize_frame): New function.
2297 2002-11-08 Jim Blandy <jimb@redhat.com>
2299 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2300 when we finish a function a context.
2301 * buildsym.h (outermost_context_p): New macro.
2302 (Bug analyzed by David Edelsohn.)
2304 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2306 * blockframe.c: Include "dummy-frame.h".
2307 (struct dummy_frame, dummy_frame_stack)
2308 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2309 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2310 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2311 (generic_save_call_dummy_addr, generic_pop_current_frame)
2312 (generic_pop_dummy_frame, generic_fix_call_dummy)
2313 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2314 dummy frame code from here...
2315 * dummy-frame.c: ...to here. New file.
2316 * dummy-frame.h: New file.
2317 (generic_call_dummy_register_unwind): Declare.
2318 (generic_find_dummy_frame): Declare.
2319 * Makefile.in (SFILES): Add dummy-frame.c.
2320 (dummy-frame.o): Specify dependencies.
2321 (dummy_frame_h): Define.
2322 (COMMON_OBS): Add dummy-frame.o.
2323 (blockframe.o): Update dependencies.
2325 2002-11-08 Jim Blandy <jimb@redhat.com>
2327 * dwarf2read.c (read_func_scope): Restore local_symbols and
2328 param_symbols after we finish the function context. (Based on a
2329 patch from David Edelsohn.)
2331 2002-11-08 David Carlton <carlton@math.stanford.edu>
2333 * linespec.c (symbol_found): New function.
2334 (minsym_found): New function.
2335 (decode_line_1): Separate out some code into separate functions.
2337 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2339 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2340 the benefit of the interix target.
2341 * i386-tdep.h (i386_frameless_signal_p): Declare.
2343 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2345 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2346 declaration that snuck in from change below.
2348 2002-11-06 Andrew Cagney <cagney@redhat.com>
2350 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2352 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2353 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2354 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2355 (i386_mxcsr_regnum_p): new function. Use instead of
2357 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2358 (i386_sse_regnum_p): Declare.
2359 (i386_mxcsr_regnum_p): Declare.
2360 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2361 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2362 (IS_FP_REGNUM): Update definition.
2363 (IS_FPU_CTRL_REGNUM): Update definition..
2364 (IS_SSE_REGNUM): Update definition..
2365 * i386v-nat.c (register_u_addr): Update.
2366 * go32-nat.c (fetch_register): Update.
2367 (store_register): Update.
2369 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2371 Preparation work to convert the hppa targets to multiarch partial.
2373 * hppa-tdep.c: Add new functions replacing macro bodies from
2374 config/pa/tm-hppa.h. These function will be used to initialize
2375 the gdbarch structure. Import some comments from tm-hppa.h,
2376 and place them where appropriate, to avoid loosing them when
2377 we cleanup this file.
2378 (hppa_reg_struct_has_addr): New function.
2379 (hppa_inner_than): New function.
2380 (hppa_stack_align): New function.
2381 (hppa_pc_requires_run_before_use): New function.
2382 (hppa_instruction_nullified): New function.
2383 (hppa_register_byte): New function.
2384 (hppa_register_virtual_type): New function.
2385 (hppa_store_struct_return): New function.
2386 (hppa_cannot_store_register): New function.
2387 (hppa_frame_args_address): New function.
2388 (hppa_frame_locals_address): New function.
2389 (hppa_smash_text_address): New function.
2390 (hppa_coerce_float_to_double): New function. Requires the inclusion
2393 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2395 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2396 gdbarch-eligible macro to a call to the new associated function
2397 created in hppa-tdep.c.
2398 (INNER_THAN): Likewise.
2399 (STACK_ALIGN): Likewise.
2400 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2401 (INSTRUCTION_NULLIFIED): Likewise.
2402 (REGISTER_BYTE): Likewise.
2403 (REGISTER_VIRTUAL_TYPE): Likewise.
2404 (STORE_STRUCT_RETURN): Likewise.
2405 (CANNOT_STORE_REGISTER): Likewise.
2406 (FRAME_ARGS_ADDRESS): Likewise.
2407 (FRAME_LOCALS_ADDRESS): Likewise.
2408 (SMASH_TEXT_ADDRESS): Likewise.
2409 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2410 (ABOUT_TO_RETURN): Delete, as no longer used.
2412 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2414 * printcmd.c (disassemble_command): Remove obsolete function.
2415 (_initialize_printcmd): Do not create disassemble command here.
2416 * cli/cli-cmds.c (disassemble_command): New function. Implements
2417 disassemble command.
2418 (init_cli_cmds): Create disassemble command here instead.
2420 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2422 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2424 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2426 * regcache.h (regcache_cooked_read_using_offset_hack)
2427 (regcache_cooked_write_using_offset_hack): Delete declarations.
2428 (register_changed): Delete declaration.
2429 * regcache.c (regcache_cooked_read_using_offset_hack)
2430 (regcache_cooked_write_using_offset_hack): Delete functions.
2431 (cooked_xfer_using_offset_hack): Delete function.
2432 (register_changed): Delete function.
2434 2002-11-07 Jim Blandy <jimb@redhat.com>
2436 * macroscope.c: #include "complaints.h".
2437 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2438 but not in the macro table.
2439 * Makefile.in (macroscope.o): Record dependency.
2441 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2443 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2445 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2447 * regcache.c (deprecated_registers_fetched): Update.
2448 * regcache.h (deprecated_registers_fetched): Rename
2450 * remote-vxsparc.c (vx_read_register): Update.
2451 * remote-vxmips.c (vx_read_register): Update.
2452 * remote-vx68.c (vx_read_register): Update.
2453 * irix5-nat.c (fetch_core_registers): Update.
2454 * mipsm3-nat.c (fetch_inferior_registers): Update.
2455 * sun3-nat.c (fetch_inferior_registers): Update.
2456 * symm-nat.c (fetch_inferior_registers): Update.
2457 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2458 (fetch_core_registers): Update.
2459 (fetch_kcore_registers): Update.
2460 * mips-nat.c (fetch_inferior_registers): Update.
2461 * corelow.c (get_core_registers): Update.
2462 * a68v-nat.c (fetch_inferior_registers): Update.
2464 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2466 Put in place the framework necessary for multiarching the hppa targets.
2467 * hppa-tdep.c (hppa_gdbarch_init): New function.
2468 (hppa_dump_tdep): New function.
2469 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2470 tdep structure dumper.
2471 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2472 until the multi-arching conversion has partially been completed.
2474 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2476 * valops.c (value_assign): Merge lval_register case into
2477 lval_reg_frame_relative. Use frame_register and
2478 regcache_cooked_write instead of get_saved_register and
2479 write_register_bytes. After flushing the register cache, try to
2480 re-select the selected frame.
2482 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2484 * regcache.h (deprecated_register_valid): Rename register_valid.
2485 * regcache.c: Update.
2486 * ia64-aix-nat.c: Update.
2487 * i386gnu-nat.c: Update.
2488 * alpha-nat.c: Update.
2489 * sparc-nat.c: Update.
2490 * lynx-nat.c: Update.
2491 * remote-mips.c: Update.
2493 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2495 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2496 to end of file, to be more consistent with the pratice followed
2499 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2501 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2502 (print_float_info): Print registers in float_reggroup.
2503 (print_vector_info): Print registers in vector_reggroup.
2504 (default_print_registers_info): When all, print registers in
2505 all_reggroup. Otherwize, print registers in general_reggroup.
2506 (registers_info): Rewrite. Add support for register groups.
2509 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2511 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2513 (symtab_symbol_info): Remove eons old ifdeffed out code.
2514 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2517 2002-11-06 Theodore A. Roth <troth@openavr.org>
2519 * c-exp.y: Add missing semi-colons.
2520 * f-exp.y: Add missing semi-colons.
2521 * m2-exp.y: Add missing semi-colons.
2522 * p-exp.y: Add missing semi-colons.
2523 Add empty action to start rule to avoid a type clash error when
2524 building with bison >= 1.50.
2526 2002-11-06 Jim Blandy <jimb@redhat.com>
2528 * macrotab.h (struct macro_source_file): Doc fix.
2530 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2532 * varobj.c (child_exists, cplus_number_of_children): Change
2533 STREQ macro references to strcmp.
2534 (cplus_name_of_child): Change code to handle the fact that
2535 fields are not necessarily contiguous with regards to their
2536 access control. This is a fix for PR gdb/792.
2538 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2540 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2541 * gdbarch.h, gdbarch.c: Regnerate.
2542 * frame.h (frame_register): Declare.
2543 * frame.c (frame_register): New function.
2544 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2545 GET_SAVED_REGISTER, otherwize call
2546 generic_unwind_get_saved_register.
2547 (frame_register_read): Use frame_register instead of
2550 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2552 From Jim Ingham <jingham@apple.com>:
2553 * event-top.c (gdb_disable_readline): New function.
2554 (_initialize_event_loop): Move comment.
2556 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2558 * event-loop.c (start_event_loop): Add comment.
2561 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2563 * infcmd.c (default_print_registers_info): Do not call
2564 PRINT_REGISTER_HOOK.
2566 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2568 * sparc-tdep.c (sparc_print_register_hook): Make static.
2569 (sparc_print_registers_info): New function.
2570 (sparc_do_registers_info): New function.
2571 (sparclet_print_registers_info): New function.
2572 (sparclet_do_registers_info): New function.
2573 (do_sparc_print_registers_info): New function.
2574 (sparc_print_registers): New static function, clone of infcmd.c's
2575 default_print_registers_info.
2576 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2577 (sparclet_do_registers_info): Declare.
2578 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2579 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2581 (sparc_do_registers_info): Declare.
2582 (PRINT_REGISTER_HOOK): Delete macro.
2583 (sparc_print_register_hook): Delete declaration.
2585 2002-11-05 David Carlton <carlton@math.stanford.edu>
2587 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2589 (lookup_symbol_aux_local): New function.
2590 (lookup_symbol_aux_symtabs): New function.
2591 (lookup_symbol_aux_psymtabs): New function.
2593 2002-11-05 David Carlton <carlton@math.stanford.edu>
2595 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2596 previous values of 'objfile' and 'block'.
2598 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2600 * values.c (value_change_enclosing_type): Set
2601 enclosing_type field correctly also for the case where
2602 more memory needs to be allocated.
2604 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2606 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2609 * i387-tdep.c (i387_print_float_info): Replace calls to
2610 register_read and deprecated_read_register_gen with calls to
2611 frame_register_read, and make the necessary adjustments to the
2614 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2616 * gdbarch.sh (register_reggroup_p): Allow default value.
2617 * gdbarch.h, gdbarch.c: Regenerate.
2619 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2621 * regcache.h: Add coment indicating replacements for deprecated
2624 2002-11-02 Andrew Cagney <cagney@redhat.com>
2626 * reggroups.h, reggroups.c: New files.
2627 * regcache.c: Include "reggroups.h".
2628 (enum regcache_dump_what): Add `regcache_dump_groups'.
2629 (regcache_dump): Contract size of the "Type" column. When
2630 specified, dump the register's groups.
2631 (maintenance_print_register_groups): New function.
2632 (_initialize_regcache): Add command `maint print register-groups'.
2633 * Makefile.in (COMMON_OBS): Add reggroups.o
2634 (SFILES): Add reggroups.c.
2635 (reggroups_h): Define.
2636 (regcache.o, gdbarch.o): Update dependencies.
2637 (reggroups.o): Specify dependencies.
2638 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2639 Add opaque declaration for `struct reggroup' in generated .h file.
2640 Include "reggroups.h" in generated .c file.
2641 gdbarch.h, gdbarch.c: Re-generate.
2643 2002-11-02 Andrew Cagney <cagney@redhat.com>
2645 * regcache.h (deprecated_read_register_gen): Rename
2647 (deprecated_write_register_gen): Rename write_register_gen.
2648 * i387-tdep.c: Update.
2649 * x86-64-linux-nat.c: Update
2651 * thread-db.c: Update.
2652 * win32-nat.c: Update.
2653 * mips-tdep.c: Update.
2654 * d10v-tdep.c: Update.
2655 * cris-tdep.c: Update.
2656 * remote-sim.c: Update.
2657 * remote-rdi.c: Update.
2658 * remote-rdp.c: Update.
2661 * blockframe.c: Update.
2662 * x86-64-tdep.c: Update.
2663 * xstormy16-tdep.c: Update.
2664 * sh-tdep.c: Update.
2665 * s390-tdep.c: Update.
2666 * rs6000-tdep.c: Update.
2667 * sparc-tdep.c: Update.
2668 * i386-tdep.c: Update.
2669 * dwarf2cfi.c: Update.
2670 * regcache.c: Update.
2672 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2674 New interix-specific files:
2675 * config/i386/nm-interix.h: New file.
2676 * config/i386/interix.mh: New file.
2677 * config/i386/interix.mt: New file.
2678 * i386-interix-nat.c: New file.
2679 * i386-interix-tdep.c: New file.
2681 2002-11-01 Andrew Cagney <cagney@redhat.com>
2683 * frame.h (deprecated_generic_get_saved_register): Rename
2684 generic_get_saved_register.
2685 * blockframe.c (deprecated_generic_get_saved_register): Update.
2686 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2687 (xstormy16_frame_saved_register): Update.
2688 * sh-tdep.c (sh_gdbarch_init): Update.
2689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2690 * ia64-tdep.c (ia64_get_saved_register): Update.
2691 * cris-tdep.c (cris_gdbarch_init): Update.
2692 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2693 * arm-tdep.c (arm_gdbarch_init): Update.
2695 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2697 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2699 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2701 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2702 trampolines in sigaction.
2704 2002-10-31 Andrew Cagney <cagney@redhat.com>
2706 * h8300-tdep.c: Include "gdb_assert.h".
2707 (h8300_print_register): Add gdbarch, file and frame parameters.
2708 Use frame_read_unsigned_register to read the register's value.
2709 Use fprintf_filtered to display output.
2710 (h8300_print_registers_info): Replace h8300_do_registers_info.
2711 (h8300_gdbarch_init): Set print_registers_info.
2713 2002-10-31 Andrew Cagney <cagney@redhat.com>
2715 * frame.c (frame_read_unsigned_register): New function.
2716 (frame_read_signed_register): New function.
2717 * frame.h (frame_read_unsigned_register): Declare.
2718 (frame_read_signed_register): Declare.
2720 2002-10-31 Andrew Cagney <cagney@redhat.com>
2722 * h8500-tdep.c (h8500_print_registers_info): New static function,
2723 clone of infcmd.c's default_print_registers_info.
2724 (h8500_do_registers_info): New funtion.
2725 (h8500_print_register_hook): Rename print_register_hook, make
2728 * config/h8500/tm-h8500.h: Update copyright.
2729 (DEPRECATED_DO_REGISTERS_INFO): Define.
2730 (h8500_do_registers_info: Declare.
2731 (PRINT_REGISTER_HOOK): Delete macro.
2732 (print_register_hook): Delete function.
2734 2002-10-31 Andrew Cagney <cagney@redhat.com>
2736 * z8k-tdep.c (z8k_print_register_hook): Make static.
2737 (z8k_print_registers_info): New static function, clone of
2738 infcmd.c's default_print_registers_info.
2739 (z8k_do_registers_info): New function. Wrap
2740 z8k_print_registers_info.
2741 * config/z8k/tm-z8k.h: Update copyright.
2742 (PRINT_REGISTER_HOOK): Delete macro.
2743 (z8k_print_register_hook): Delete declaration.
2744 (DEPRECATED_DO_REGISTERS_INFO): Define.
2745 (z8k_do_registers_info): Declare.
2747 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2749 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2750 as this is already provided by value.h, and was actually causing
2751 a compilation error because of a conflict in parameter type
2752 declaration due to a missing const keyword.
2753 (low_text_segment_addres): Fix a compilation warning.
2755 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2757 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2758 registers without a name.
2759 (mips_linux_cannot_store_register): Don't store registers without
2762 2002-10-28 David Carlton <carlton@math.stanford.edu>
2764 * symtab.c (find_addr_symbol): Delete. (It was already commented
2766 * symtab.h: Delete prototype for find_addr_symbol.
2768 2002-10-26 Andrew Cagney <cagney@redhat.com>
2770 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2772 gdbarch.h, gdbarch.c: Re-generate.
2773 * infcmd.c (default_print_registers_info): Update reference.
2774 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2775 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2776 * sh-tdep.c (sh_gdbarch_init): Ditto.
2777 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2778 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2780 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2782 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2783 cfi_init_extra_frame_info.
2784 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2785 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2787 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2788 target where necessary. Add more comments and remove the ones
2789 that don't provide any useful information.
2791 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2792 deprecated_read_register_dummy with
2793 frame_unwind_unsigned_register.
2795 * i386-tdep.c (i386_extract_struct_value_address): Use
2796 regcache_raw_read_unsigned instead of
2797 regcache_cooked_read_unsigned since we know that the register
2798 we're reading isn't a pseudo register. Rename variable 'val' into
2799 the more descriptive 'addr'.
2801 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2802 (x86_64_push_return_address): Add comment.
2803 (x86_64_pop_frame): Make static.
2804 (examine_argument): Clarify comment.
2805 (x86_64_skip_prologue): Make prolog_expact variable static.
2807 * dwarf2cfi.c: Fix some formatting problems.
2808 (context_cpy, read_encoded_pointer): Clarify comments.
2810 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2811 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2812 i386 target back into x86_64_gdbarch_init. Add some comments and
2813 remove meaningless ones.
2815 2002-10-25 Andrew Cagney <cagney@redhat.com>
2817 * complaints.h (struct deprecated_complaint): Rename `struct
2819 * complaints.c (complain): Update.
2820 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2821 incorrect comment indicating that "symfile.h" was being included
2822 for the `struct complaint' definition.
2823 * remote-vx.c: Update.
2824 * objc-lang.c: Update.
2825 * xcoffread.c: Update.
2827 * mdebugread.c: Update.
2828 * stabsread.c: Update.
2829 * dwarf2read.c: Update.
2830 * dwarfread.c: Update.
2831 * elfread.c: Update.
2832 * coffread.c: Update.
2833 * stabsread.h: Update.
2834 * dbxread.c: Update.
2835 * buildsym.c: Update.
2836 * gdbtypes.c: Update.
2837 * macrotab.c: Update.
2839 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2841 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2842 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2843 (x86_64_init_abi): ...new function.
2845 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2846 * i386v-nat.c: Include "i386-tdep.h".
2848 2002-10-25 Andrew Cagney <cagney@redhat.com>
2850 * gdbtypes.c (address_space_name_to_int): Update.
2851 (address_space_int_to_name): Update.
2852 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2853 multi-arch predicate.
2854 (address_class_name_to_type_flags): Ditto.
2855 * gdbarch.h, gdbarch.c: Re-generate.
2857 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2859 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2861 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2863 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2865 * symtab.h (INIT_SAL): Delete macro.
2867 * symtab.c (init_sal): New function.
2869 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2870 to init_sal function call.
2871 (find_sal_from_funcs_and_line): Ditto.
2872 (all_sals_for_line): Ditto.
2873 * breakpoint.c (create_internal_breakpoint): Ditto.
2874 (create_fork_vfork_event_catchpoint): Ditto.
2875 (create_exec_event_catchpoint): Ditto.
2876 (parse_breakpoint_sals): Ditto.
2877 (watch_command_1): Ditto.
2878 (handle_gnu_4_16_catch_command): Ditto.
2879 (clear_command): Ditto.
2880 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2881 * infcmd.c (run_stack_dummy): Ditto.
2882 * infrun.c (process_event_stop_test): Ditto.
2883 (check_sigtramp2): Ditto.
2884 (step_over_function): Ditto.
2885 * linespec.c (decode_line_2): Ditto.
2886 (decode_line_1): Ditto.
2887 * source.c (line_info): Ditto.
2888 * symtab.c (find_pc_sect_line): Ditto.
2890 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2892 * dwarf2cfi.c (struct context)
2893 (struct context_reg): Moved to dwarf2cfi.h
2894 (context_alloc, frame_state_alloc, context_cpy):
2895 Made extern instead of static, removed prototypes.
2896 * dwarf2cfi.h (struct context)
2897 (struct context_reg): New, moved from dwarf2cfi.c
2898 (context_alloc, frame_state_alloc, context_cpy):
2900 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2901 Changed from static to extern.
2902 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2903 (LINUX_SIGCONTEXT_FP_OFFSET)
2904 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2905 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2906 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2907 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2908 set_gdbarch_*() calls now use x86-64 specific functions
2909 instead of DWARF2 CFI ones.
2910 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2911 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2912 (x86_64_init_extra_frame_info): New prototypes.
2914 2002-10-23 David Carlton <carlton@math.stanford.edu>
2916 * linespec.c: #include "parser-defs.h".
2917 Delete prototype for find_template_name_end.
2918 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2920 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2922 * NEWS: add recent mi fixes.
2923 * varobj.c (struct varobj): Add new "updated" flag.
2924 (new_variable): Default "updated" flag to 0.
2925 (varobj_set_value): Set "updated" flag to 1 if value
2927 (varobj_update): Check varobj "updated" flag before
2928 comparing old and refreshed values. Fix for
2931 2002-10-23 David Carlton <carlton@math.stanford.edu>
2933 * parse.c (parse_exp_1): Use BLOCK_START.
2934 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2936 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2938 2002-10-23 David Carlton <carlton@math.stanford.edu>
2940 * symtab.c: Delete cplusplus_hint.
2941 Delete prototype for find_template_name_end.
2943 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2945 * symtab.h: Update comment.
2947 2002-10-23 Michael Snyder <msnyder@redhat.com>
2949 * printcmd.c (address_info): Restore quotes in output.
2950 * valops.c (value_of_local): Restore quotes in error message.
2952 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2954 * symtab.c (symbol_demangled_name): New function.
2955 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2956 turning most of it into a function.
2957 (symbol_demangled_name): Export.
2959 2002-10-23 Michael Snyder <msnyder@redhat.com>
2961 * valops.c (value_of_local): Restore quotes in error message.
2963 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2965 * symtab.c (symbol_init_language_specific): New function.
2966 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2967 turning most of it into a function.
2968 (symbol_init_language_specific): Export.
2970 2002-10-23 David Carlton <carlton@math.stanford.edu>
2972 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2973 (dwarf_attr_name): Ditto.
2974 (dwarf_type_encoding_name): Ditto.
2975 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2976 (process_die): Handle DW_TAG_namespace,
2977 DW_TAG_imported_declaration, DW_TAG_imported_module.
2978 (read_namespace): New function.
2980 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2982 * configure.in: Define NEW_PROC_API on Interix too.
2983 * configure: Regenerate.
2985 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2987 * configure: Regenerate using the proper version of autoconf.
2989 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2991 * findvar.c (read_var_value): Temporarily disable TLS code, until
2992 complete TLS support is added.
2994 2002-10-21 Jim Blandy <jimb@redhat.com>
2995 Elena Zannoni <ezannoni@redhat.com>
2997 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2998 for thread local storage locations.
2999 (struct symbol): Add objfile field.
3000 (SYMBOL_OBJFILE): Define.
3001 * dwarf2read.c (is_thread_local): New static variable.
3002 (new_symbol): If variable is in thread local fill in address class
3003 and objfile appropriately.
3004 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3006 * printcmd.c (address_info): Print the information for thread
3007 local storage variable.
3008 * findvar.c (read_var_value): In case of thread local variable,
3009 defer to the target vector code to compute address.
3011 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3013 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3014 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3016 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3018 * symtab.h (address_class): Rename
3019 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3020 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3021 * printcmd.c (address_info): Ditto.
3022 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3024 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3026 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3027 DBREG_DRX macro to acces debug registers.
3029 * Makefile.in (i386obsd-tdep.o): New target.
3031 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3032 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3034 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3035 * config/i386/obsd.mt: New file.
3036 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3037 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3038 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3039 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3040 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3041 * i386obsd-tdep.c: New file.
3043 2002-10-19 Adam Fedor <fedor@gnu.org>
3045 * objc-exp.y (name_not_typename): Fix invalid comment.
3047 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3049 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3050 to allocate partial syms and macro byte caches.
3052 2002-10-18 David Carlton <carlton@math.stanford.edu>
3054 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3056 2002-10-18 Adam Fedor <fedor@gnu.org>
3058 * stabsread.c (find_name_end): New function.
3059 (define_symbol): Use it.
3061 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3063 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3064 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3065 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3066 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3068 2002-10-17 David Carlton <carlton@math.stanford.edu>
3070 * symfile.h: Add opaque declaration for struct obstack.
3071 Declare obsavestring to take a const char *.
3072 * symfile.c (obsavestring): Make first argument a const char *.
3074 2002-10-16 Adam Fedor <fedor@gnu.org>
3076 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3077 names when matching breakpoints in current file.
3079 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3081 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3082 (read_tag_pointer_type): Add address class support.
3083 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3084 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3086 * gdbarch.h, gdbarch.c: Regenerate.
3087 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3088 (make_type_with_address_space, recursive_type_dump): Add address
3090 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3091 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3092 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3094 2002-10-16 Klee Dienes <kdienes@apple.com>
3096 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3097 to get the last character of a char[] buffer, not
3098 name[sizeof(vptr_name)-1].
3100 2002-10-14 Adam Fedor <fedor@gnu.org>
3102 * symtab.h: New objc_specific struct.
3103 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3104 (SYMBOL_DEMANGLED_NAME): Likewise.
3106 2002-10-14 Adam Fedor <fedor@gnu.org>
3108 * symfile.c (init_filename_language_table): Add ObjC file extension.
3110 2002-10-14 Adam Fedor <fedor@gnu.org>
3112 * utils.c (puts_filtered_tabular): New function.
3113 (fprintf_symbol_filtered): Get ObjC demangled name.
3114 * defs.h (puts_filtered_tabular): Declared.
3116 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3118 * c-lang.h (c_type_print_varspec_prefix): Delete.
3119 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3120 ``need_post_space'' parameter. Adjust all callers.
3122 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3124 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3125 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3126 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3127 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3129 2002-10-13 Adam Fedor <fedor@gnu.org>
3131 * source.c (print_source_lines): Update comments.
3133 2002-10-13 Adam Fedor <fedor@gnu.org>
3135 * valops.c (value_of_local): New function.
3136 (value_of_this): Use it.
3137 * value.h (value_of_local): Declared.
3139 2002-10-13 Adam Fedor <fedor@gnu.org>
3141 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3142 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3144 2002-10-12 Adam Fedor <fedor@gnu.org>
3146 * language.c (binop_result_type): Add language_objc to case.
3147 (integral_type): Likewise.
3148 (character_type): Likewise.
3149 (string_type): Likewise.
3150 (boolean_type): Likewise.
3151 (structured_type): Likewise.
3152 (binop_type_check): Likewise.
3154 2002-10-11 Adam Fedor <fedor@gnu.org>
3156 * printcmd.c (address_info): Print 'self' for ObjC.
3158 2002-10-11 Adam Fedor <fedor@gnu.org>
3160 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3163 2002-10-11 Adam Fedor <fedor@gnu.org>
3165 * language.h (CAST_IS_CONVERSION): Add language_objc.
3167 2002-10-11 Adam Fedor <fedor@gnu.org>
3169 * defs.h (enum language): Add language_objc.
3171 2002-10-11 Klee Dienes <kdienes@apple.com>
3173 * corefile.c (read_memory_typed_address): New function.
3174 * gdbcore.h (read_memory_typed_address): Add prototype.
3175 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3176 to read a value destined for a CORE_ADDR, not read_memory_integer.
3177 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3178 (f77_get_dynamic_lowerbound): Ditto.
3180 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3182 * utils.c (string_to_core_addr): After turning string into
3183 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3184 which will do necessary sign-extension, etc.
3186 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3188 * c-exp.y (THIS): Delete token and grammar rule.
3189 (yylex): Don't return THIS.
3190 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3191 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3192 * demangle.c (cplus_markers): Update comment. Put '$'
3193 first. Remove CPLUS_MARKER.
3194 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3195 * jv-exp.y (THIS): Delete token and grammar rule.
3196 (yylex): Don't return THIS.
3197 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3198 * objc-exp.y (THIS): Delete token and grammar rule.
3199 (yylex): Don't return THIS.
3200 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3201 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3202 (read_member_functions): Likewise for opname.
3203 (read_tilde_fields): Use is_cplus_marker.
3205 * defs.h (CPLUS_MARKER): Don't define.
3206 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3207 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3208 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3209 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3210 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3212 * config/i386/tm-i386v4.h: Delete file.
3213 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3214 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3215 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3216 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3217 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3218 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3219 * config/i386/i386v4.mt (TM_FILE): Likewise.
3220 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3222 2002-10-10 Marko Mlinar <markom@opencores.org>
3224 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3225 accidentially not commited 2002-10-09
3226 * gdbarch.h, gdbarch.c: Re-generate.
3228 2002-10-09 Marko Mlinar <markom@opencores.org>
3230 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3231 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3232 * gdbarch.h, gdbarch.c: Re-generate.
3234 2002-10-08 Petr Sorfa <petrs@caldera.com>
3236 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3238 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3239 so we can work on more than one compilation unit at a time. This
3240 helps prepare GDB to handle inter-CU die references.
3241 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3242 the code to be defined before struct comp_unit_head.
3243 (comp_unit_head): Added new members - offset, cu_head,
3244 begin_die, next and dwarf2_abbrevs.
3245 (dwarf2_abbrevs): Removed single static var; now member of
3246 struct comp_unit_head.
3247 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3249 (psymtab_to_symtab_1): Changed to work with the new
3250 struct comp_unit_head.
3251 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3252 constructs the dwarf2_abbrevs[] inside the cu_header.
3253 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3254 dwarf2_abbrev table to clean up.
3255 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3256 handling of dwarf2_abbrevs inside the cu_header.
3257 (read_partial_die): Now supports the call to the new
3258 dwarf2_lookup_abbrev.
3259 (read_full_die): Now supports the call to the new
3260 dwarf2_lookup_abbrev.
3262 2002-10-06 Christopher Faylor <cgf@redhat.com>
3264 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3265 insure that shell variables, such as "transformed_name" are propagated
3266 to later shell statements in rule.
3268 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3270 * config/i386/nm-i386sco.h: Add protection against
3271 multiple-inclusion. Include "i386/nm-i386v.h".
3272 (REGISTER_U_ADDR): Remove define.
3273 (i386_register_u_addr): Remove prototype.
3275 2002-10-04 Michael Snyder <msnyder@redhat.com>
3277 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3278 before treating it as a single-step event.
3280 2002-10-03 Adam Fedor <fedor@gnu.org>
3282 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3283 (objc_demangle): Remove assignment in if statements, Replace
3285 (add_msglist): Likewise.
3286 (end_msglist): Likewise.
3287 (complare_selectors): Likewise.
3288 (selectors_info): Likewise.
3289 (compare_classes): Likewise.
3290 (classes_info): Likewise.
3291 (print_object_command): Likewise.
3292 (find_objc_msgcall_submethod): Replace PTR with void *.
3293 * objc-lang.h: Remove check for __STDC__.
3295 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3297 * ui-out.h (ui_out_field_fmt_int): New prototype.
3298 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3299 of field width and alignment.
3300 * stack.c (print_frame_info_base): When printing frame level, use
3301 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3304 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3306 * MAINTAINERS: Add self to Write After Approval list.
3308 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3310 * infcmd.c (interrupt_target_command_wrapper): Delete.
3311 (interrupt_target_command): Make non static.
3312 (nofp_registers_info): Make static.
3313 * stack.c (return_command_wrapper): Delete.
3314 (return_command): Make non static.
3316 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3318 * event-top.c (gdb_setup_readline): New function. Code moved from
3319 _initialize_event_loop().
3320 (_initialize_event_loop): Call gdb_setup_readline().
3322 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3324 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3325 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3326 * gdbarch.h, gdbarch.c: Re-generate.
3328 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3331 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3333 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3334 of fill_in_vptr_fieldno.
3336 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3338 * inferior.h (registers_info, stepi_command, nexti_command,
3339 continue_command, interrupt_target_command): Export from infcmd.c.
3340 * frame.h (args_info, selected_frame_level_changed_hook,
3341 return_command): Export from stack.c.
3342 * v850ice.c (stepi_command, nexti_command, continue_command): use
3343 prototypes from inferior.h.
3344 * tracepoint.c (registers_info, args_info, locals_info): Use
3345 prototypes from frame.h and inferior.h.
3346 * Makefile.in (mi-main.o): Add dependency on frame.h.
3348 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3350 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3351 value in register 3 adjusted by ppc_gp0_regnum.
3353 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3355 2002-10-02 Marko Mlinar <markom@opencores.org>
3357 * MAINTAINERS: Add myself to the Write After Approval list.
3359 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3361 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3362 of the section for the N64 ABI, fixed.
3364 * config/mips/tm-irix6.h: Include solib.h.
3366 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3368 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3371 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3373 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3374 and that "mi0" syntax has been removed.
3376 2002-09-30 David Carlton <carlton@math.stanford.edu>
3378 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3379 * ppc-sysv-tdep.c: #include "gdb_string.h".
3380 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3383 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3385 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3386 "vrsave"'s register number.
3388 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3390 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3391 use frame_unwind_signed_register to obtain the PC.
3392 (mips_frame_chain): Handle a generic dummy frame.
3393 (mips_init_extra_frame_info): When a generic dummy frame, don't
3394 re-compute the frame base.
3395 (mips_pop_frame): Handle generic dummy frames.
3396 (mips_gdbarch_init): When generic dummy frames, set
3397 use_generic_dummy_frames, push_dummy_frame to
3398 generic_push_dummy_frame, pc_in_call_dummy to
3399 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3400 generic_save_dummy_frame_tos.
3402 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3404 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3405 against TOP when TOP was explictly set.
3406 (generic_push_dummy_frame): Set TOP to zero.
3408 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3410 * event-loop.c (start_event_loop): Rename variable 'result' to
3411 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3413 2002-09-30 Keith Seitz <keiths@redhat.com>
3415 * gdb-events.sh (selected_thread_changed): New event.
3416 * gdb-events.c: Regenerated.
3417 * gdb-events.h: Regenerated.
3419 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3421 * MAINTAINERS: Add self to Write After Approval list.
3423 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3425 * disasm.c: New file.
3426 * disasm.h: New file.
3427 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3428 (compare_lines): Ditto.
3429 (dump_insns): Ditto.
3430 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3432 (do_assembly_only): Ditto.
3433 (do_disassembly): Renamed to gdb_disassembly and moved to
3434 disasm.c. Sdded uiout argument.
3435 * Makefile.in: Add new files. Reorder SFILES list. Update
3436 dependencies. Include libgdb.a later in the insight executable.
3438 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3440 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3441 bfd/elf64-alpha-fbsd.c.
3443 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3445 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3448 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3450 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3452 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3454 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3455 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3456 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3457 (S_msg_sig_post_reply): Ditto.
3459 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3461 * sh-tdep.c (sh_use_struct_convention): Use definition according
3463 (sh_push_arguments): Store in register with correct endianess.
3464 (sh_default_store_return_value): Ditto.
3465 (sh_gdbarch_init): Set sizeof long double to 8.
3467 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3469 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3470 Fix some whitespace problems.
3472 2002-09-27 David Carlton <carlton@math.stanford.edu>
3474 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3475 (mcore-tdep.o): Ditto.
3476 (ns32k-tdep.o): Ditto.
3477 (ns32knbsd-tdep.o): Ditto.
3479 (vax-tdep.o): Ditto.
3480 * cris-tdep.c: #include "gdb_string.h"
3481 * mcore-tdep.c: Ditto.
3482 * ns32k-tdep.c: Ditto.
3483 * ns32knbsd-tdep.c: Ditto.
3485 * vax-tdep.c: Ditto.
3487 2002-09-27 David Carlton <carlton@math.stanford.edu>
3489 * config/djgpp/fnchange.lst: Add entries for
3490 gdb/testsuite/gdb.c++/m-static files.
3492 2002-09-27 Jim Wilson <wilson@redhat.com>
3494 * MAINTAINERS: Add myself to the Write After Approval list.
3496 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3498 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3501 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3503 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3506 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3508 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3509 (rs6000_struct_return_address): Delete variable.
3510 (rs6000_store_struct_return): Update.
3511 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3512 deprecated_extract_struct_value_address.
3513 (rs6000_frame_align): New function.
3514 (rs6000_gdbarch_init): Set frame_align.
3516 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3518 From Grace Sainsbury <graces@redhat.com>:
3519 * Makefile.in (gdbtk-main.o): New target.
3520 (gdb.o): New target.
3522 (main.o): Update dependencies.
3523 (gdb$(EXEEXT)): Add gdb.o.
3524 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3525 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3526 (SUBDIR_GDBTK_CLEAN): Set.
3527 (install-gdbtk): Install the insight binary.
3528 (uninstall-gdbtk): New target.
3529 (all-gdbtk, clean-gdbtk): New rule.
3530 * top.c (use_windows): Default to zero.
3531 * main.c: Include "main.h".
3533 (struct captured_main_args): Delete.
3534 (gdb_main): New function.
3538 2002-09-25 Andrew Cagney <cagney@redhat.com>
3540 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3541 (frame_map_regnum_to_name): New function.
3542 (frame_map_name_to_regnum): New function.
3543 * frame.h (frame_map_name_to_regnum): Declare.
3544 (frame_map_regnum_to_name): Declare.
3545 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3546 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3547 * parse.c: Do not include "builtin-regs.h".
3548 (target_map_name_to_register): Delete function.
3549 (write_dollar_variable): Use frame_map_name_to_regnum.
3550 * parser-defs.h (target_map_name_to_register): Delete declaration.
3551 * expprint.c: Include "frame.h".
3552 (print_subexp): Use frame_map_regnum_to_name.
3553 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3554 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3556 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3558 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3559 wasn't saved, and the next innermost frame is a dummy, return the
3560 dummy frame's link register.
3562 2002-09-24 Jim Blandy <jimb@redhat.com>
3564 Fix from Paul Breed:
3565 * main.c (captured_main): Add a `break' after the case for 'b'.
3567 2002-09-24 Keith Seitz <keiths@redhat.com>
3569 * varobj.c (c_type_of_child): Use get_target_type instead
3570 of TYPE_TARGET_TYPE.
3572 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3574 * source.c (get_current_or_default_source_symtab_and_line): Remove
3576 (set_default_source_symtab_and_line): New function. Attempts to
3577 determine a source file to list lines from if one is not currently
3579 (get_current_source_symtab_and_line): Initialize sal.pc and
3581 (set_current_source_symtab_and_line): Mark argument as const.
3582 * source.h: Update declarations and comments.
3583 * linespec.c (decode_line_1): Replace call to removed routine above.
3584 * stack.c (print_frame_info_base): Ditto.
3585 * cli/cli-cmds.c (edit_command): Ditto.
3586 (list_command): Ditto.
3588 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3590 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3591 sal.pc and sal.end fields.
3592 (get_current_or_default_source_symtab_and_line): Ditto.
3593 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3594 so we do not cause a new source symtab to be searched for (reverting an
3595 unintentional change from the 2002-09-20 patch).
3596 * scm-lang.c (scm_unpac): Ditto.
3598 2002-09-21 Andrew Cagney <cagney@redhat.com>
3600 * complaints.c (symfile_explanations): Remove new-line from
3601 ``isolated_message''.
3602 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3603 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3605 2002-09-20 Nick Clifton <nickc@redhat.com>
3607 * NEWS: Announce that V850EA ISA is no longer supported.
3608 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3610 2002-09-20 David Carlton <carlton@math.stanford.edu>
3612 * Makefile.in (c-lang.o): Correct dependencies.
3613 (utils.o): Gather dependencies.
3615 * c-lang.c: #include "gdb_string.h"
3617 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3619 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3620 * cli/cli-cmds.c (list_command): New function. Implements the new
3622 (_init_cli_cmds): Add new command definition.
3623 * gdb.1: Document edit command.
3624 * doc/gdb.texinfo: Document edit command.
3626 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3628 * source.c: Make global variables current_source_symtab and
3629 current_source_line static.
3630 (list_command): Moved to cli/cli-cmds.c.
3631 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3632 (get_first_line_listed): New accessor function.
3633 (get_lines_to_list): New accessor function.
3634 (get_current_source_symtab_and_line): New function. Retrieves the
3635 position in the source code that we consider current.
3636 (get_current_or_default_source_symtab_and_line): New function.
3637 Like the above but attempts to determine a default position if one
3638 is not currently defined.
3639 (set_current_source_symtab_and_line): New function. Sets the source
3640 code position considered current and returns the previously set one.
3641 (clear_current_source_symtab_and_line): Reset stored information about
3642 a current source line.
3643 (_initialize_source): Remove registration for the "list" command and
3645 * source.h: Add declarations for the new functions above.
3646 * symtab.h: Remove declarations for the global variables mentioned
3648 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3649 obtain current source line.
3650 * linespec.c (decode_line_1): Ditto.
3651 * macroscope.c (default_macro_scope): Ditto.
3652 * scm-lang.c (scm_unpac): Ditto.
3653 * stack.c (print_frame_info_base): Ditto.
3654 * symfile.c (clear_symtab_users): Ditto.
3655 * symtab.c (decode_line_spec): Ditto.
3656 * cli/cli-cmds.c (list_command): Moved here from source.c.
3657 (ambiguous_line_spec): Moved here from source.c.
3658 (_init_cli_cmds): Add definition for "list" and its alias.
3659 * Makefile.in: Update dependencies.
3661 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3663 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3664 with what gcc thinks is correct.
3666 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3668 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3669 multiple register push instruction.
3671 2002-09-19 Jim Blandy <jimb@redhat.com>
3673 Add support for distinct host and target character sets.
3674 * charset.c, charset.h: New files.
3675 * c-exp.y: #include "charset.h".
3676 (yylex): Convert character and string literals to the target
3677 character set, before returning them as the semantic value of the
3679 * c-lang.c: #include "charset.h".
3680 (c_emit_char): Use charset-specific methods to recognize
3681 characters with backslash escape forms, to decide which characters
3682 to print literally and which to print using numeric escape
3683 sequences, and to convert target characters to host characters
3685 * utils.c: #include "charset.h".
3686 (no_control_char_error): New function.
3687 (parse_escape): Use charset-specific methods to recognize
3688 backslash escapes, parse `control character' notation, and convert
3689 characters from the host character set to the target character set.
3690 * configure.in: Set the default host character set.
3691 Check where to find iconv, and what its argument types might be.
3692 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3693 * Makefile.in (SFILES): List charset.c.
3694 (COMMON_OBS): List charset.o.
3695 (charset.o): New rule.
3696 (charset_h): New header dependency variable.
3697 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3698 (LIBICONV): New variable, set by configure.
3699 (CLIBS): Include $(LIBICONV) here.
3700 * aclocal.m4, config.in, configure: Regenerated.
3702 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3704 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3707 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3709 * gdb_mbuild.sh: New file.
3711 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3713 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3715 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3717 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3718 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3719 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3720 valops.c, value.h: Revert previous change.
3722 2002-09-18 Michael Snyder <msnyder@redhat.com>
3724 Preliminary support for Objective-C:
3725 * defs.h (language_objc): New enum value.
3726 (puts_filtered_tabular): Declaration only, exported from utils.c.
3727 (skip_quoted): Delete, declared in completer.h.
3728 * c-exp.y: Include completer.h.
3731 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3732 New operator enum values.
3733 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3734 * language.c (binop_result_type): Handle language_objc case.
3735 (integral_type, character_type, string_type, boolean_type,
3736 structured_type, binop_type_check): Ditto.
3737 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3738 (struct objc_specific): Add to general_symbol_info.
3739 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3740 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3741 * parser-defs.h (struct objc_class_str): New struct type.
3742 (start_msglist, end_msglist, add_msglist): Declaration only,
3743 exported from objc-lang.c.
3744 * value.h (value_of_local, value_nsstring,
3745 call_function_by_hand_expecting_type): Exported from valops.c.
3746 * valops.c (find_function_addr): Export.
3747 (call_function_by_hand_expecting_type): New function.
3748 (value_of_local): New function.
3749 * symfile.c (init_filename_language_table): Add ".m" extension
3751 * utils.c (puts_filtered_tabular): New function.
3752 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3753 (set/show demangle): Extend help-string to refer to ObjC.
3754 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3755 * stabsread.c (symbol_reference_defined): Objective-C symbols
3756 may contain colons: make allowances when scanning stabs strings
3758 (objc_find_colon): New function.
3759 * printcmd.c (address_info): If language == objc then print
3760 "self" instead of "this".
3761 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3762 OP_NSSTRING, and OP_SELF.
3763 (prefixify_subexp): Ditto.
3764 * source.c (print_source_lines): Mention objc in comment.
3765 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3768 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3770 * complaints.h: Update copyright.
3771 (struct complaints): Declare.
3772 (struct complaint): Make `message' constant.
3773 (internal_complaint): Declare.
3774 (complaint): Declare.
3775 (complaint_root): Delete declaration.
3776 (symfile_complaints): Delete declaration.
3777 (struct complaints): Add opaque declaration.
3778 (clear_complaints): Add a complaints parameter.
3779 * complaints.c: Update copyright.
3780 (enum complaint_series): Define.
3781 (complaint_root): Delete.
3782 (struct complaints): Define.
3783 (complaint_sentinel, symfile_complaint_book): New variables.
3784 (symfile_explanations, symfile_complaints): New variables.
3786 (get_complaints): New function.
3787 (vcomplaint): New function.
3788 (complaint): New function.
3789 (internal_complaint): New function.
3790 (complain): Call vcomplain with symfile_complaint.
3791 (clear_complaints): Rewrite.
3792 (_initialize_complaints): Use add_setshow_command.
3793 * Makefile.in (complaints.o): Update dependencies.
3794 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3795 to call to clear_complaints.
3796 (new_symfile_objfile, reread_symbols): Ditto.
3797 (oldsyms_complaint): Delete.
3798 (empty_symtab_complaint, unknown_option_complaint): Delete.
3799 (free_named_symtabs): Use complaint instead of complain.
3801 2002-09-18 Michael Snyder <msnyder@redhat.com>
3803 Contributed by Apple Computer, Inc. Merged with current sources
3804 by Adam Fedor <fedor@doc.com> [cagney].
3806 * objc-lang.c: First clean-up round: comments, indentation.
3807 * objc-lang.h: Ditto.
3808 * objc-lang.y: Ditto.
3810 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3812 * maint.c (maintenance_internal_error): Print the parameter as the
3814 (maintenance_internal_warning): New function.
3815 (_initialize_maint_cmds): Add command `maint internal-warning'.
3817 * defs.h (internal_warning, internal_vwarning): Declare.
3818 * utils.c (struct internal_problem): Define.
3819 (internal_vproblem): New function.
3820 (internal_warning): New function.
3821 (internal_vwarning): New function.
3822 (internal_warning_problem, internal_error_problem): New variables.
3823 (internal_verror): Just call internal_vproblem.
3825 2002-09-18 Michael Snyder <msnyder@redhat.com>
3827 * objc-lang.c: New file, support for Objective-C.
3828 Preliminary check-in, not yet integrated into gdb.
3829 * objc-lang.h: New file.
3830 * objc-exp.y: New file.
3832 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3834 * infrun.c (signal_stop_update): Convert definition to ISO C.
3835 (signal_print_update): Ditto.
3836 (signal_pass_update): Ditto.
3837 * inflow.c (terminal_save_ours): Ditto.
3839 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3842 * config/djgpp/fnchange.lst: Handle name clashes between
3843 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3846 * i386-linux-tdep.h: Fix tipo.
3848 2002-09-18 Adam Fedor <fedor@gnu.org>
3850 * MAINTAINERS: Add myself to the Write After Approval list.
3852 2002-09-18 Jim Blandy <jimb@redhat.com>
3854 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3855 texthigh and textlow to reader-specific structs caused
3856 objfile_relocate to miss them. This is fixable, but the work that
3857 the change was supposed to prepare GDB for never got done anyway.
3859 2002-09-18 David Carlton <carlton@math.stanford.edu>
3861 * MAINTAINERS: Alphabetize Write After Approval list.
3863 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3866 * values.c (value_static_field): Call read_var_value.
3868 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3870 * valops.c (hand_function_call): Align the initial stack pointer
3871 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3872 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3874 * mips-tdep.c (mips_frame_align): New function.
3875 (mips_gdbarch_init): Set frame_align.
3876 * gdbarch.sh (FRAME_ALIGN): New method.
3877 * gdbarch.h, gdbarch.c: Re-generate.
3879 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3881 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3884 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3886 * NEWS: Mention that MIPS $fp behavior changed.
3887 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3888 reference to FP_REGNUM.
3889 (mipsnbsd_cannot_store_register): Ditto.
3890 * mips-linux-nat.c: Update copyright.
3891 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3892 (mips_linux_cannot_store_register): Ditto.
3893 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3894 * config/mips/tm-mips.h: Update copyright.
3895 (FP_REGNUM): Delete macro.
3896 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3897 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3898 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3899 (mips_r3041_reg_names, mips_r3051_reg_names)
3900 (mips_r3081_reg_names): Replace "fp" with "".
3903 2002-09-17 Theodore A. Roth <troth@verinet.com>
3905 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3906 generic_read_register_dummy() (PR gdb/703).
3907 (avr_push_return_address): #if 0 out unused vars.
3908 (avr_gdbarch_init): Enable use of avr_push_return_address().
3910 2002-09-17 Michael Snyder <msnyder@redhat.com>
3912 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3913 RTE will take care of it.
3915 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3917 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3918 invalid, return SP_REGNUM.
3920 2002-09-17 Michael Snyder <msnyder@redhat.com>
3922 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3923 point registers without sign extension.
3925 2002-09-17 Andrew Cagney <cagney@redhat.com>
3927 * blockframe.c (deprecated_read_register_dummy): Rename
3928 generic_read_register_dummy.
3929 * frame.c (frame_unwind_signed_register): New function.
3930 (frame_unwind_unsigned_register): New function.
3931 * frame.h (frame_unwind_signed_register): Declare.
3932 (frame_unwind_unsigned_register): Declare.
3933 (deprecated_read_register_dummy): Rename
3934 generic_read_register_dummy.
3936 * h8300-tdep.c (h8300_frame_chain): Update.
3937 (h8300_frame_saved_pc): Update.
3938 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3939 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3940 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3941 (s390_frame_chain): Update.
3942 * v850-tdep.c (v850_find_callers_reg): Update.
3943 (v850_frame_saved_pc): Update.
3944 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3945 (m32r_find_callers_reg): Update.
3946 (m32r_frame_saved_pc): Update.
3947 * sh-tdep.c (sh_find_callers_reg): Update.
3948 (sh64_get_saved_pr): Update.
3949 (sh_init_extra_frame_info): Update.
3950 (sh_init_extra_frame_info): Update.
3951 (sh64_init_extra_frame_info): Update.
3952 (sh64_init_extra_frame_info): Update.
3953 * mcore-tdep.c (mcore_find_callers_reg): Update.
3954 (mcore_frame_saved_pc): Update.
3955 (mcore_init_extra_frame_info): Update.
3956 * i386-tdep.c (i386_frame_saved_pc): Update.
3957 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3958 (ia64_init_extra_frame_info): Update.
3959 (ia64_init_extra_frame_info): Update.
3960 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3961 * cris-tdep.c (cris_init_extra_frame_info): Update.
3962 * avr-tdep.c (avr_frame_chain): Update.
3963 (avr_init_extra_frame_info): Update.
3964 (avr_frame_saved_pc): Update.
3965 * arm-tdep.c (arm_find_callers_reg): Update.
3966 (arm_init_extra_frame_info): Update.
3967 (arm_frame_saved_pc): Update.
3969 2002-09-17 Tom Tromey <tromey@redhat.com>
3971 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3974 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3976 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3977 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3979 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3982 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3984 * osfsolib.c: Remove file, replaced by solib-osf.c.
3985 * Makefile.in: Remove compilation rules for osfsolib.c.
3987 2002-09-16 David Carlton <carlton@math.stanford.edu>
3989 * cp-valprint.c (cp_print_class_method): Correct args to
3990 check_stub_method_group.
3992 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3994 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3995 `set architecture'. Unify naming convention of functions.
3996 (h8300_skip_prologue): Improve prologue analysis.
3997 (h8300_push_arguments): Rewritten to more closely match GCC's
3998 bizarre argument-passing behavior, along with the comment describing
4000 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4001 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4002 sim, remote-e7000.c, remote-hms.c and remote.c
4004 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4006 * i386-tdep.c (gdb_print_insn_i386): Removed.
4007 (i386_print_insn): New function.
4008 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4009 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4012 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4014 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4017 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4019 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4020 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4021 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4023 2002-09-13 Christopher Faylor <cgf@redhat.com>
4025 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4027 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4029 * gdbtypes.c (check_stub_method): Make static.
4030 (check_stub_method_group): New function.
4031 * gdbtypes.h: Update prototypes.
4032 * cp-support.c: New file.
4033 * cp-support.h: New file.
4035 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4036 (update_method_name_from_physname): New function.
4037 (read_member_functions): Correct method names for operators
4038 and v3 constructors/destructors. Separate v2 constructors and
4040 * Makefile.in (stabsread.o): Update dependencies.
4041 (SFILES): Add cp-support.c.
4042 (COMMON_OBS): Add cp-support.o.
4043 (cp_support_h, cp-support.o): Add.
4045 * cp-valprint.c (cp_print_class_method): Call
4046 check_stub_method_group instead of check_stub_method. Remove
4048 * p-valprint.c (pascal_object_print_class_method): Likewise.
4049 * valops.c (search_struct_method): Likewise.
4050 (find_method_list, value_struct_elt_for_reference): Likewise.
4052 2002-09-13 Andrew Cagney <cagney@redhat.com>
4054 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4055 * gdbarch.h, gdbarch.c: Regenerate.
4057 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4059 * frame.c (find_saved_register): Delete function.
4060 * frame.h (find_saved_register): Delete declaration.
4063 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4065 * mips-tdep.c (read_next_frame_reg): Re-hack using
4066 frame_register_unwind.
4068 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4070 * mips-tdep.c (mips_get_saved_register): Re-hack using
4071 frame_register_unwind.
4073 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4075 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4076 vector. Will be useful for Interix.
4077 * gdbarch.h, gdbarch.c: Regenerate.
4079 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4080 name of the malloc function by NAME_OF_MALLOC.
4082 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4084 * value.h (find_function_in_inferior): Add const keyword to
4085 one of the parameters. Allows us to invoke this function with
4087 * valops.c (find_function_in_inferior): Likewise.
4089 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4091 * exec.c (xfer_memory): Fix compilation warning with old versions
4093 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4095 2002-09-12 David Carlton <carlton@math.stanford.edu>
4097 * symtab.h: Run through gdb_indent.h.
4098 Add 2002 to Copyright year list.
4100 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4102 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4104 * MAINTAINERS: Add myself to write after approval list.
4106 2002-09-11 J. Brobecker <brobecker@gnat.com>
4108 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4110 2002-09-11 J. Brobecker <brobecker@gnat.com>
4112 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4115 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4117 * procfs.c (do_detach): Clear current signal, not just fault.
4118 Corrects problem with breakpoint trap signal leaking to detached
4121 2002-09-10 Michael Snyder <msnyder@redhat.com>
4123 * buildsym.c (finish_block): Protect against null pointer.
4125 2002-09-10 Andrew Cagney <cagney@redhat.com>
4127 * infcmd.c (default_print_registers_info): Send all output to
4128 ``file'' instead of ``gdb_stdout''.
4130 2002-09-10 Michael Snyder <msnyder@redhat.com>
4132 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4133 LONGEST, and use signed register read (addresses are sign-
4136 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4138 * event-loop.c (gdb_do_one_event): Make public.
4139 * event-loop.h (gdb_do_one_event): Declare.
4141 2002-09-10 Jeff Law <law@redhat.com>
4143 * infttrace.c (child_resume): Simplify and rework to avoid
4146 2002-09-09 Fred Fish <fnf@intrinsity.com>
4148 * printcmd.c (print_scalar_formatted): "len" is the number of
4149 target bytes, NOT the number of target bits.
4151 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4153 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4154 * top.c (init_main): Set rl_terminal_name.
4156 2002-09-08 Aidan Skinner <aidan@velvet.net>
4158 * ada-lang.c (ada_array_bound, ada_type_match,
4159 _initialize_ada_language): Fix K&R definitions.
4160 * ada-tasks.c (get_current_task): Fix K&R definitions.
4161 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4163 2002-09-07 Christopher Faylor <cgf@redhat.com>
4165 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4168 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4170 * i386-tdep.c (i386_register_virtual_type,
4171 i386_register_convertible, i386_register_convert_to_virtual,
4172 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4173 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4174 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4175 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4176 Don't set push_arguments twice.
4178 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4179 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4180 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4181 sigtramp_end to NULL.
4182 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4184 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4186 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4189 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4190 * gdbarch.h, gdbarch.c: Re-generate.
4191 * blockframe.c (find_pc_sect_partial_function): Convert to use
4192 SIGTRAMP_START_P predicate.
4194 2002-09-05 Michael Snyder <msnyder@redhat.com>
4196 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4197 generic_dummy_frame method and old method. Also distinguish
4198 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4199 (arm_extract_return_value): Use new regcache method.
4201 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4202 adjustment that doesn't conform to the ABI.
4203 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4204 saved regcache, not from current regcache.
4206 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4208 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4211 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4213 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4214 if arm_apcs_32 is false.
4216 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4218 GDB 5.3 branch created.
4220 2002-09-03 Theodore A. Roth <troth@verinet.com>
4222 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4223 generic_unwind_get_saved_register.
4225 2002-09-03 David Carlton <carlton@math.stanford.edu>
4227 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4228 argument (PR gdb/653). Update call to smash_to_method_type.
4229 (read_structure_scope): Update call to dwarf2_add_member_fn.
4231 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4233 * x86-64-linux-tdep.c: Include gdb_string.h
4234 * x86-64-linux-nat.c: Ditto.
4236 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4238 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4239 when YYDEBUG is set to 1.
4240 * c-exp.y: Likewise.
4241 * f-exp.y: Likewise.
4242 * jv-exp.y: Likewise.
4243 * m2-exp.y: Likewise.
4244 * p-exp.y: Likewise.
4246 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4248 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4250 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4251 solib_svr4_fetch_link_map_offsets to
4252 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4253 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4254 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4255 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4256 solib-svr4.o, and solib-legacy.o.
4257 * config/i386/tm-nbsd.h: Include solib.h.
4259 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4261 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4262 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4263 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4264 comment noting that this needs its own target configuration.
4265 * config/i386/nbsd.mt: New file.
4266 * config/i386/nbsdaout.mt: Remove.
4267 * config/i386/nbsdelf.mt: Ditto.
4268 * config/i386/tm-nbsdaout.h: Ditto.
4270 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4272 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4273 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4274 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4276 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4277 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4278 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4280 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4282 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4283 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4284 * i386-tdep.h (i386bsd_init_abi): New prototype.
4285 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4286 function declaration.
4287 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4288 for NetBSD-a.out or NetBSD-ELF.
4289 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4290 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4291 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4292 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4294 (i386nbsd_pc_in_sigtramp): New function.
4295 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4296 i386nbsd_pc_in_sigtramp.
4297 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4298 and i386nbsdelf_init_abi OS ABI handlers.
4299 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4300 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4302 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4304 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4305 registers if the target really has them.
4307 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4309 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4312 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4314 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4316 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4317 (alphanbsd_skip_sigtramp_frame): New functions.
4318 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4319 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4320 to alphanbsd_sigcontext_addr.
4322 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4324 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4326 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4327 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4328 nbsd_pc_in_sigtramp.
4329 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4330 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4331 * nbsd-tdep.c: Include gdb_string.h.
4332 (nbsd_pc_in_sigtramp): New function.
4333 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4334 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4335 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4336 ppcnbsd_pc_in_sigtramp.
4337 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4338 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4339 shnbsd_pc_in_sigtramp.
4340 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4341 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4342 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4344 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4346 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4347 watchpoints to NULL.
4348 (insert_breakpoints): set val field of watchpoints if NULL.
4351 2002-08-29 Jim Blandy <jimb@redhat.com>
4353 * symtab.c (lookup_symbol_aux): In the cases where we find a
4354 minimal symbol of an appropriate name and use its address to
4355 select a symtab to read and search, use `name' (as passed to us)
4356 as the demangled name when searching the symtab's global and
4357 static blocks, not the minsym's name.
4359 2002-08-29 Keith Seitz <keiths@redhat.com>
4361 * stack.c (print_frame_info_base): Always set current_source_symtab
4362 and current_source_line.
4364 2002-08-29 Donn Terry <donnte@microsoft.com>
4366 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4368 2002-08-28 Keith Seitz <keiths@redhat.com>
4370 * stack.c (select_frame): Add FIXME concerning selected-frame
4372 (select_frame_command): Send selected-frame-level-changed
4373 event notification, but only if the level actually changed.
4374 (up_silently_base): Add selected-frame-level-changed event
4376 (down_silently_base): Likewise.
4378 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4380 * Makefile.in: Update dependencies for all gdb/*.c files.
4382 2002-08-27 Tom Tromey <tromey@redhat.com>
4384 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4385 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4386 Update dependencies.
4387 * i387-tdep.c: Include gdb_string.h.
4388 * osabi.c: Likewise.
4389 * i386-linux-nat.c: Likewise.
4390 * lin-lwp.c: Likewise.
4391 * ax-gdb.c: Likewise.
4392 * signals/signals.c: Likewise.
4393 * jv-valprint.c: Likewise.
4394 * p-lang.c: Likewise.
4395 * c-valprint.c: Likewise.
4396 * cp-abi.c: Likewise.
4398 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4400 * cli/cli-script.h (copy_command_lines): Export.
4401 * breakpoint.c: Include cli/cli-script.h.
4402 * Makefile.in (breakpoint.o): Update dependencies.
4404 2002-08-26 Michael Snyder <msnyder@redhat.com>
4406 * breakpoint.c (insert_breakpoints): Protect all references
4407 to 'process_warning'. Shorten long lines.
4409 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4411 * cli/cli-script.c (copy_command_lines): New function.
4412 * defs.h (copy_command_lines): Export.
4413 * testsuite/gdb.base/commands.exp: New tests for commands
4414 attached to a temporary breakpoint, and for commands that
4415 delete the breakpoint they are attached to.
4417 2002-08-26 Michael Snyder <msnyder@redhat.com>
4419 * breakpoint.c (bpstat_stop_status): Instead of copying the
4420 pointer to the breakpoint commands struct, make a new copy
4421 of the struct and point to that.
4422 (bpstat_clear): Free the commands struct.
4423 (bpstat_clear_actions): Free the commands struct.
4424 (bpstat_do_actions): Free the command actions. Also execute
4425 the local cleanups, instead of deleting them.
4426 (delete_breakpoint): Leave the commands field of the bpstat
4427 chain alone -- it will be freed later.
4429 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4431 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4432 deleted in 2002-08-20 commit. This function is still used by
4435 2002-08-26 Keith Seitz <keiths@redhat.com>
4437 * gdb-events.sh: Add selected-frame-level-changed event.
4438 * gdb-events.c: Regenerated.
4439 * gdb-events.h: Regenerated.
4441 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4444 * inflow.c (terminal_save_ours): New function to save terminal
4446 * inferior.h (terminal_save_ours): Declare.
4447 * target.c (debug_to_terminal_save_ours): New function.
4448 (cleanup_target): Defaults to_terminal_save_ours.
4449 (update_current_target): Inherit to_terminal_save_ours.
4450 (setup_target_debug): Set to_terminal_save_ours.
4451 * target.h (target_terminal_save_ours): New to save terminal settings.
4452 (target_ops): New member to_terminal_save_ours.
4453 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4454 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4455 * inftarg.c (init_child_ops): Likewise.
4456 * m3-nat.c (init_m3_ops): Likewise.
4457 * procfs.c (init_procfs_ops): Likewise.
4458 * wince.c (init_child_ops): Likewise.
4459 * win32-nat.c (init_child_ops): Likewise.
4460 * sol-thread.c (init_sol_thread_ops): Likewise.
4462 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4464 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4465 use regcache_* functions.
4466 (i386_gdbarch_init): Set store_return_value instead of
4467 deprecated_store_return_value.
4469 * regcache.c (regcache_raw_write_signed,
4470 regcache_raw_write_unsigned): New functions.
4471 * regcache.h (regcache_raw_write_signed,
4472 regcache_raw_write_unsigned): New prototypes.
4474 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4476 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4477 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4478 source file dependencies. Cleanup corresponding generator rules.
4480 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4482 * regcache.h (register_offset_hack): Declare.
4483 (regcache_cooked_read_using_offset_hack): Declare.
4484 (regcache_cooked_write_using_offset_hack): Declare.
4486 * regcache.c (register_offset_hack): New function.
4487 (regcache_cooked_read_using_offset_hack): New function.
4488 (regcache_cooked_write_using_offset_hack): New function.
4489 (regcache_dump): Check that the registers, according to their
4490 offset, are packed hard against each other.
4491 (cooked_xfer_using_offset_hack): New function.
4493 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4495 * regcache.c (struct regcache_descr): Add field register_type.
4496 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4498 (init_regcache_descr): Initialize register_type. Pass the descr
4499 to init_legacy_regcache_descr. Use register_type instead of
4500 REGISTER_VIRTUAL_TYPE.
4501 (register_type): New function.
4502 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4503 * regcache.h (register_type): Declare.
4505 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4507 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4508 instead of deprecated_store_return_value. Fix fallout from
4509 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4511 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4513 * regcache.c (max_register_size): New function.
4514 (init_legacy_regcache_descr): Ensure that max_register_size is
4515 large enough for REGISTER_VIRTUAL_SIZE.
4516 * regcache.h (max_register_size): Declare.
4518 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4520 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4522 (e500_extract_return_value): Change type of valbuf pointer to
4525 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4527 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4530 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4531 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4532 long long) to prevent compiler warning on 64-bit systems.
4534 2002-08-23 Andrew Cagney <cagney@redhat.com>
4536 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4537 (DEPRECATED_STORE_RETURN_VALUE): New method.
4538 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4539 * gdbarch.h, gdbarch.c: Re-generate.
4541 * values.c (set_return_value): Pass current_regcache to
4543 * arch-utils.h (legacy_store_return_value): Declare.
4544 * arch-utils.c (legacy_store_return_value): New function.
4545 (legacy_extract_return_value): Update parameters.
4547 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4549 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4550 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4551 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4552 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4553 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4554 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4555 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4556 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4557 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4558 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4561 * i386-tdep.c (i386_extract_return_value): Update.
4562 * arch-utils.c (legacy_extract_return_value): Update.
4563 * frv-tdep.c (frv_gdbarch_init): Update.
4564 * cris-tdep.c (cris_gdbarch_init): Update.
4565 * d10v-tdep.c (d10v_gdbarch_init): Update.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4567 * m68k-tdep.c (m68k_gdbarch_init): Update.
4568 * mcore-tdep.c (mcore_gdbarch_init): Update.
4569 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4570 * s390-tdep.c (s390_gdbarch_init): Update.
4571 * sparc-tdep.c (sparc_gdbarch_init): Update.
4572 * sh-tdep.c (sh_gdbarch_init): Update.
4573 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4574 * v850-tdep.c (v850_gdbarch_init): Update.
4575 * avr-tdep.c (avr_gdbarch_init): Update.
4576 * ia64-tdep.c (ia64_gdbarch_init): Update.
4577 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4578 * vax-tdep.c (vax_gdbarch_init): Update.
4579 * alpha-tdep.c (alpha_gdbarch_init): Update.
4580 * arm-tdep.c (arm_gdbarch_init): Update.
4581 * mips-tdep.c (mips_gdbarch_init): Update.
4582 * i386-tdep.c (i386_gdbarch_init): Update.
4584 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4586 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4587 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4589 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4591 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4594 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4596 * infrun.c (handle_inferior_event): Move a comment outside of a
4597 function call, in order to avoid indent reformatting this part
4598 of the code in an unreadable way.
4600 2002-08-23 Grace Sainsbury <graces@redhat.com>
4602 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4603 when breakpoints fail. Move general breakpoint error messages to
4605 * breakpoint.c (insert_breakpoints): Change warnings when
4606 breakpoints are nto inserted to specify the type. Remove call to
4607 memory_error when hardware breakpoints can't be inserted. Remove
4608 multiple calls to warning so all messages are sent to the user at
4610 (delete_breakpoints): Make insert error messsages more explicit.
4612 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4614 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4615 gdbserver/ChangeLog.
4617 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4619 * i386-tdep.c: Include "objfiles.h".
4620 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4621 skip_trampoline_code.
4622 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4623 (CPLUS_MARKER): Define to '.'.
4625 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4627 (linux_corefile_thread_callback): Increase args->num_notes.
4628 (linux_make_note_section): Initialize thread_args.num_notes, and
4629 use it to determine whether notes for any threads were created.
4631 2002-08-23 Donn Terry <donnte@microsoft.com>
4633 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4634 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4636 (write_with_trace): Conditionalize out the switch branch handling
4637 PCSHOLD if the corresponding macro is not defined. Likewise for
4638 PRSABORT and PRSTOP.
4639 This change will be needed by the Interix port.
4641 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4643 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4644 write_register wherever possible instead of manipulating the
4645 register bytes directly.
4646 Assign VALUE_CONTENTS to a variable and use that.
4647 The GPR numbers are now dependent on the architecture.
4649 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4651 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4653 (skip_prologue): Add support for BookE/e500 instructions.
4654 (e500_extract_return_value): New function.
4655 (frame_get_saved_regs): Add support for saving ev registers and
4657 (e500_store_return_value): New function.
4658 (rs6000_gdbarch_init): Move up default intializations of
4659 deprecated_extract_return_value and store_return_value. Overwrite
4660 init of store_return_value with e500 specific version.
4661 Set extract_return_value for e500.
4663 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4665 * blockframe.c (generic_call_dummy_register_unwind): Use
4666 regcache_cooked_read to catch cases in which the variable is
4667 stored in a pseudo register.
4669 2002-08-22 Andrew Cagney <cagney@redhat.com>
4671 * NEWS: Mention that the i960 has been made obsolete.
4672 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4674 (remote-nrom.o): Obsolete target.
4675 (remote-nindy.o, i960-tdep.o): Ditto.
4676 * remote-nrom.c: Make file obsolete.
4677 * remote-nindy.c, remote-vx960.c: Ditto.
4678 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4679 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4680 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4681 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4682 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4683 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4684 i960-*-vxworks* obsolete.
4685 * MAINTAINERS: Note that the i960 is obsolete.
4687 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4689 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4690 detach to allow reinitialization.
4692 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4694 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4697 2002-08-22 Jim Blandy <jimb@redhat.com>
4699 * coffread.c (coff_symfile_read): Don't try to read the line
4700 number table from disk if the image file doesn't have a symbol
4701 table; we'll never actually look at the info anyway, and Windows
4702 ships DLL's with bogus file offsets for the line number data.
4704 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4706 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4709 2002-08-21 Michael Snyder <msnyder@redhat.com>
4711 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4712 (MSYMBOL_SIZE): Replace macro with function.
4713 (DEFAULT_MIPS_TYPE): Delete unused macro.
4714 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4715 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4717 2002-08-21 Jim Blandy <jimb@redhat.com>
4719 * valops.c (value_cast): Simplify and correct logic for doing a
4720 static cast from a pointer to a base class to a pointer to a
4723 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4725 * infcmd.c (default_print_registers_info): Replace
4727 (registers_info): Use gdbarch_print_registers_info instead of
4729 * inferior.h (default_print_registers_info): Replace
4731 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4732 (DO_REGISTERS_INFO): Change to a predicate function.
4733 * gdbarch.h, gdbarch.c: Regenerate.
4735 2002-08-21 Keith Seitz <keiths@redhat.com>
4737 * gdb-events.sh: Add target-changed event.
4738 * gdb-events.c: Regenerated.
4739 * gdb-events.c: Regenerated.
4740 * valops.c (value_assign): Add target-changed event notification
4741 to inlval_register, lval_memory, and lval_reg_frame_relative.
4743 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4745 * NEWS: Add an entry regarding the improvement of the next/step
4746 operation on Alpha Tru64 multi-processor machines.
4748 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4750 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4752 * Makefile.in: Update all _h macro definitions.
4753 * Makefile.in (install-gdbtk): Move to install section.
4754 (rdi-share/libangsd.a): Move to end of file.
4756 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4758 * frame.c (frame_register_unwind): When a register, set addrp to
4759 the register's byte.
4761 2002-08-20 Michael Snyder <msnyder@redhat.com>
4763 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4764 used locally, so move them from the target machine header to here.
4765 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4766 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4768 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4770 2002-08-20 Andrew Cagney <cagney@redhat.com>
4772 * NEWS: Mention that the Apollo line was made obsolete.
4773 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4774 m68*-hp-hpux* obsolete.
4775 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4776 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4777 * buildsym.c (make_blockvector): Make static.
4778 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4779 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4780 (ALLDEPFILES): Remove dstread.c.
4781 (dstread.o): Obsolete make rule.
4782 * dstread.c: Makefile obsolete.
4784 * config/m68k/hp300hpux.mt: Ditto.
4785 * config/m68k/hp300hpux.mh: Ditto.
4786 * config/m68k/hp300bsd.mt: Ditto.
4787 * config/m68k/hp300bsd.mh: Ditto.
4788 * config/m68k/apollo68b.mt: Ditto.
4789 * config/m68k/apollo68v.mh: Ditto.
4790 * config/m68k/apollo68b.mh: Ditto.
4792 2002-08-20 Michael Snyder <msnyder@redhat.com>
4794 * mips-tdep.c (mips_in_return_stub): Make static.
4795 (mips_gdbarch_init): Set in_solib_return_trampoline.
4796 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4798 2002-08-20 Michael Snyder <msnyder@redhat.com>
4800 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4801 * gdbarch.c, gdbarch.h: Regenerate.
4802 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4804 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4806 2002-08-20 Michael Snyder <msnyder@redhat.com>
4808 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4809 (mips_gdbarch_init): Set skip_trampoline_code,
4810 in_solib_call_trampoline.
4811 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4812 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4814 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4816 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4818 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4819 vector type for ev registers.
4820 (e500_pseudo_register_read): New function.
4821 (e500_pseudo_register_write): New function.
4822 (e500_dwarf2_reg_to_regnum): New function.
4823 (PPC_UISA_NOFP_SPRS): New macro.
4824 (PPC_EV_REGS): New macro.
4825 (PPC_GPRS_PSEUDO_REGS): New macro.
4826 (registers_e500): New register set for e500.
4827 (variants): Add e500 variant.
4828 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4829 before setting architectural dependent variations. Initialize ev
4830 registers numbers. Add case for e500 architecture. Set the
4831 number of pseudo registers.
4833 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4835 * rs6000-tdep.c: Clean up comments.
4837 2002-08-20 Andrew Cagney <cagney@redhat.com>
4839 * h8300-tdep.c: Re-indent file.
4841 2002-08-20 Jim Blandy <jimb@redhat.com>
4843 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4846 2002-08-20 Keith Seitz <keiths@redhat.com>
4848 * breakpoints.c (watch_command_1): Use internal breakpoint
4849 when setting a watchpoint_scope breakpoint.
4851 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4853 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4854 (build_builtin_type_vec64i): Ditto.
4855 (build_builtin_type_vec128): Ditto.
4856 (build_builtin_type_vec128i): Ditto.
4858 2002-08-19 Michael Snyder <msnyder@redhat.com>
4860 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4861 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4862 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4863 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4864 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4865 CALL_DUMMY_ADDRESS): Delete.
4866 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4867 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4868 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4869 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4870 push_return_address.
4871 (mips_register_raw_size, mips_eabi_use_struct_convention,
4872 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4873 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4874 mips_init_extra_frame_info, mips_eabi_push_arguments,
4875 mips_n32n64_push_arguments, mips_push_return_address,
4876 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4877 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4879 2002-08-19 Michael Snyder <msnyder@redhat.com>
4881 * mips-tdep.c (mips_frame_num_args): New function.
4882 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4883 frame_saved_pc, frame_args_address, frame_locals_address,
4884 frame_num_args, and frame_args_skip.
4885 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4886 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4887 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4888 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4890 2002-08-20 Michael Snyder <msnyder@redhat.com>
4892 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4893 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4894 * mips-tdep.c (mips_store_struct_return): New function.
4895 (mips_extract_struct_value_address): New function.
4896 (mips_gdbarch_init): Set store_struct_return and
4897 extract_struct_value_address.
4899 2002-08-20 David Carlton <carlton@math.stanford.edu>
4901 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4902 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4903 (read_file_scope): Check that line_header is nonzero before
4904 decoding macro information.
4906 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4908 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4909 flag the general-purpose registers as floating-point on targets
4910 that don't support the floating-point registers.
4912 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4914 * rs6000-tdep.c (altivec_register_p): Delete.
4915 (rs6000_do_altivec_registers): Delete.
4916 (rs6000_altivec_registers_info): Delete.
4917 (rs6000_do_registers_info): Delete.
4918 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4919 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4921 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4923 * infcmd.c (do_registers_info): Print vector registers in hex
4925 (print_vector_info): Check that printing registers
4927 (print_float_info): Ditto.
4929 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4931 * mips-tdep.c (mips_gdbarch_init): Update.
4932 (mips_o32_extract_return_value): Rewrite.
4933 (mips_o32_store_return_value): Rewrite.
4934 (mips_o32_xfer_return_value): New function.
4935 (mips_xfer_register): Tweak debug print message. Allow for
4936 buf_offset when dumping the value transfered.
4938 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4940 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4941 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4942 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4943 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4944 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4946 2002-08-14 Michael Snyder <msnyder@redhat.com>
4948 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4950 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4952 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4954 (P): New macro to define a register as a pseudo register.
4955 (R, R4, R8, R16, FR32, R64, R0): Updated.
4956 (struct variant): Add new fields for number of pseudo registers
4957 and number of total registers.
4958 (tot_num_registers): New macro replacing....
4959 (num_registers): ...deleted macro.
4960 (num_registers): New function.
4961 (num_pseudo_registers): New function.
4962 (variants): Update all variants to intialize new fields correctly.
4963 Postpone initialization of number of pseudo regs and real regs.
4964 (init_variants): New function.
4965 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4968 2002-08-19 David Carlton <carlton@math.stanford.edu>
4970 * valops.c (search_struct_field): Change error message to treat
4971 return value of 0 from value_static_field as meaning that field is
4973 (value_struct_elt_for_reference): Ditto.
4974 * values.c (value_static_field): Treat an unresolved location the
4975 same as a nonexistent symbol. Fix PR gdb/635.
4976 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4977 enclosed. Fix PR gdb/574.
4978 * MAINTAINERS: Add self to Write After Approval list.
4980 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4982 * mips-tdep.c (mips_xfer_register): New function.
4983 (mips_n32n64_extract_return_value): Rewrite.
4984 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4985 instead of deprecated_extract_return_value.
4987 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4989 * rs6000-tdep.c (TDEP): Delete macro.
4990 (branch_dest): Replace use of TDEP macro with its body.
4991 (rs6000_pop_frame): Ditto.
4992 (rs6000_push_arguments): Ditto.
4993 (rs6000_skip_trampoline_code): Ditto.
4994 (rs6000_frame_saved_pc): Ditto.
4995 (rs6000_frame_chain): Ditto.
4996 (rs6000_register_name): Ditto.
4997 (rs6000_register_byte): Ditto.
4998 (rs6000_register_raw_size): Ditto.
4999 (rs6000_register_virtual_type): Ditto.
5000 (rs6000_register_convertible): Ditto.
5001 (rs6000_convert_from_func_ptr_addr): Ditto.
5003 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5005 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5007 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5008 MIPS_LINUX_JB_ELEMENT_SIZE.
5009 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5010 for MAX_REGISTER_RAW_SIZE arrays.
5011 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5012 MIPS_LINUX_JB_ELEMENT_SIZE.
5014 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5016 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5018 2002-08-19 Aidan Skinner <aidan@velvet.net>
5020 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5021 ada-valprint.c ada-tasks.c.
5022 (YYFILES): Add ada-exp.y.
5023 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5024 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5025 (ada-exp.tab.o): New target.
5027 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5029 * regcache.c (regcache_xfer_part): New function.
5030 (regcache_raw_read_part): New function.
5031 (regcache_raw_write_part): New function.
5032 (regcache_cooked_read_part): New function.
5033 (regcache_cooked_write_part): New function.
5034 * regcache.h (regcache_raw_read_part): Declare.
5035 (regcache_raw_write_part): Declare.
5036 (regcache_cooked_read_part): Declare.
5037 (regcache_cooked_write_part): Declare.
5039 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5041 * remote.c (remote_open_1): Add async_p.
5042 (remote_async_open_1): Delete.
5043 (open_remote_target): Delete.
5044 (remote_open, extended_remote_open): Update calls to remote_open_1.
5045 (remote_async_open, extended_remote_async_open): Call
5046 remote_open_1 instead of remote_async_open_1.
5048 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5050 * blockframe.c: Fix a few coding standard violations.
5052 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5054 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5056 * config/i386/tm-i386sco5.h: ... here. File removed.
5057 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5059 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5060 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5061 (TM_FILE): Set to tm-i386.h.
5062 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5063 * config/i386/tm-i386v.h: Remove file.
5064 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5065 instead of "i386/tm-i386v.h".
5066 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5067 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5069 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5070 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5073 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5075 * config/i386/nm-i386v.h: Add protection against
5077 (i386_register_u_addr): Remove prototype.
5078 (register_u_addr): New prototype.
5079 (REGISTER_U_ADDR): Redefine accordingly.
5080 * i386v-nat.c: Improve several comments.
5081 (i386_register_u_addr): Change signature and rename to
5082 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5085 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5087 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5088 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5089 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5090 deprecated_extract_return_value.
5091 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5092 rename mips_o32o64_push_arguments.
5093 (mips_gdbarch_init): Update.
5094 (mips_extract_return_value): Delete.
5095 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5096 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5097 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5098 (mips_n32n64_extract_return_value): Clone
5099 mips_extract_return_value.
5100 (mips_store_return_value): Delete.
5101 (mips_o32_store_return_value): Clone mips_store_return_value.
5102 (mips_o64_store_return_value): Clone mips_store_return_value.
5103 (mips_eabi_store_return_value): Clone mips_store_return_value.
5104 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5106 2002-08-18 Aidan Skinner <aidan@velvet.net>
5108 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5109 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5111 2002-08-18 Aidan Skinner <aidan@velvet.net>
5113 * ada-lang.c: Run through gdb_indent.sh.
5114 * ada-lang.h: Run through gdb_indent.sh.
5115 * ada-tasks.c: Run through gdb_indent.sh.
5116 * ada-typeprint.c: Run through gdb_indent.sh.
5117 * ada-valprint.c: Run through gdb_indent.sh.
5119 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5121 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5124 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5126 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5128 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5129 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5131 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5132 write_register_gen instead of write_register_bytes.
5134 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5135 i[3456]-*-osf1mk* configurations have been made obsolete.
5136 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5137 i[3456]86-*-osf1mk* hosts obsolete.
5138 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5140 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5141 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5142 config/i386/i386m3.mt, config/i386/nm-m3.h,
5143 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5144 config/i386/i386mk.mh, config/i386/i386mk.mt,
5145 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5147 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5148 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5149 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5151 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5153 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5154 (hppa_value_returned_from_stack): Declare.
5155 (hppa_extract_return_value): Declare.
5156 * config/pa/hppa.mt: New file.
5157 * configure.tgt: Recognize hppa*-*-*.
5158 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5160 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5162 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5165 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5167 * top.c (gdb_rl_operate_and_get_next): Make sure
5168 operate-and-get-next functions correctly even when the history
5169 list is completely filled.
5171 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5173 * MAINTAINERS (Target Instruction Set Architectures): Rename
5174 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5175 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5176 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5177 already listed under Host/Native.
5179 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5180 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5183 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5185 * config/ia64/ia64.mt: New file.
5186 * config/alpha/alpha.mt: New file.
5187 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5188 ia64-linux-gnu. Mention that ia64-elf is broken.
5189 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5191 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5193 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5194 generic_func_frame_valid instead of func_frame_valid.
5196 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5198 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5199 procfs appears to be broken when debugging on multi-processor
5200 machines. So enable software single stepping in order to avoid
5201 using the procfs interface to do next/step operations, using
5202 internal breakpoints instead.
5204 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5205 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5206 make this pc address equal to the value it would have if the
5207 system stepping capability was used. Also set a new flag used
5208 to ensure that we don't readjust the PC one more time later.
5210 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5211 address by DECR_PC_AFTER_BREAK when software single step is
5212 in use for this architecture, as this has already been taken
5213 care of in handle_inferior_event().
5215 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5217 * infrun.c (handle_inferior_event): Minor reformatting, to make
5218 a rather long condition expression easier to read.
5220 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5222 * Makefile.in (gdbtk.o): Move to end of file.
5223 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5224 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5225 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5226 (gdbtk-wrapper.o, gdbres.o): Ditto.
5228 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5230 * Makefile.in (copying.o): Separate out compile rule.
5231 (hpux-thread.o, procfs.o, signals.o): Ditto.
5232 (v850ice.o, z8k-tdep.o): Ditto.
5233 (tui-file.o): Move to TUI section.
5234 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5235 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5237 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5239 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5240 skip_trampoline_code, for better namespace-proofing.
5242 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5244 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5246 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5248 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5250 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5251 signal, check whether we hit a breakpoint before checking for a
5252 single step breakpoint. Otherwise, GDB fails to notice that a
5253 breakpoint has been hit when stepping onto a breakpoint.
5255 2002-08-16 Keith Seitz <keiths@redhat.com>
5257 * gdb-events.sh (clear_gdb_event_hooks): New function.
5258 * gdb-events.c: Regenerate.
5259 * gdb-events.h: Regenerate.
5261 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5263 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5264 not_a_sw_breakpoint.
5265 * breakpoint.h (bpstat_stop_status): Add parameter names.
5267 2002-08-16 Grace Sainsbury <graces@redhat.com>
5269 * remote.c (remote_insert_hw_breakpoint)
5270 (remote_remove_hw_breakpoint): Fix calculation of length field
5273 2002-08-15 Michael Snyder <msnyder@redhat.com>
5275 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5276 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5277 (supply_fpregset): Ditto.
5279 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5280 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5281 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5282 (TARGET_READ_SP): Delete.
5283 (DO_REGISTERS_INFO): Delete.
5284 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5286 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5287 from macros to functions.
5289 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5290 (mips_register_convertible, mips_register_convert_to_virtual,
5291 mips_register_convert_to_raw): Make static.
5292 (mips_read_sp): New function.
5293 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5294 (mips_do_registers_info): Make static.
5295 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5296 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5297 (mips_register_convert_from_type, mips_register_convert_to_type):
5299 (mips_gdbarch_init): Set up function_start_offset,
5300 register_virtual_size, pc_in_sigtramp.
5302 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5304 * infcmd.c (vector_info): New function.
5305 (_initialize_infcmd): Add command "info vector".
5306 (print_vector_info): New function.
5308 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5309 * gdbarch.h, gdbarch.c: Regenerate.
5311 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5313 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5314 ``print_all''. Only print vector registers when ``print_all''.
5316 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5318 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5319 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5321 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5322 Add `args' parameter.
5323 * gdbarch.h, gdbarch.c: Regenerate.
5325 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5327 * infcmd.c (float_info): Call print_float_info.
5328 (print_float_info): New function. By default, print the
5329 floating-point registers.
5331 * arch-utils.h (default_print_float_info): Delete declaration.
5332 * arch-utils.c (default_print_float_info): Delete function.
5334 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5336 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5339 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5342 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5343 * configure.host: Make i[3456]86-*-aix host obsolete.
5344 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5345 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5346 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5347 config/i386/xm-i386aix.h: Make files obsolete.
5348 * i386aix-nat.c: Make file obsolete.
5349 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5350 (i386aix-nat.o): Make target obsolete.
5352 * config/i386/nm-gnu.h: Removed.
5353 * config/i386/nm-i386gnu.h: New file.
5354 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5355 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5357 * config/i386/tm-i386gnu.h: ... here. Removed.
5358 * config/i386/xm-i386gnu.h: Removed.
5359 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5360 (NAT_FILE): Set to nm-i386gnu.h.
5361 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5362 * i386-tdep.c: New file.
5363 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5364 (i386gnu-tdep.o): Specify dependencies.
5366 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5368 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5369 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5370 Adjust a few comments to reflect reality a bit closer.
5371 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5372 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5373 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5374 target_insert_watchpoint, target_remove_watchpoint):
5376 * config/i386/nm-i386sco5.h: ... here.
5377 (kernel_u_size): Add prototype. Improve a few comments and add
5378 protection against multiple inclusion.
5380 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5383 * uw-thread.c (SP_ARG0): Define if not already defined.
5384 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5386 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5388 * config/i386/tm-i386.h: Don't include "regcache.h".
5390 * i387-tdep.h (i387_print_float_info): New prototype.
5391 * i387-tdep.c (print_i387_value, print_i387_ext,
5392 print_i387_status_word, print_i387_control_word): Add `struct
5393 ui_file *' argument and use it for output.
5394 (i387_print_float_info): Renamed from i387_float_info. Add
5395 `struct gdbarch *' and `struct ui_file *' arguments and use the
5397 * i386-tdep.c: Include "i387-tdep.h".
5398 (i386_gdbarch_init): Set print_float_info.
5399 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5400 (FLOAT_INFO): Remove define.
5402 2002-08-13 Michael Snyder <msnyder@redhat.com>
5404 * mips-tdep.c (mips_push_arguments): Rename to
5405 mips_eabi_push_arguments, and tune for EABI.
5406 (MIPS_REGS_HAVE_HOME_P): Delete.
5407 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5408 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5409 Delete references to mips_regs_have_home_p.
5411 2002-08-14 Keith Seitz <keiths@redhat.com>
5413 * Makefile.in (install-gdbtk): Create insight plugin directory.
5414 Install plugins.tcl file.
5416 2002-08-14 Keith Seitz <keiths@redhat.com>
5418 * configure.in: Move SUBDIRS to near top of the file so that
5419 --enable options may add things to it.
5420 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5421 * configure: Regenerate.
5423 2002-08-13 Michael Snyder <msnyder@redhat.com>
5425 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5426 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5427 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5429 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5431 * vax-tdep.c (vax_get_saved_register): Delete function.
5432 (vax_gdbarch_init): Update.
5433 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5434 (ns32k_gdbarch_init): Update.
5435 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5436 (alpha_gdbarch_init): Update.
5438 2002-08-13 Andrew Cagney <cagney@redhat.com>
5440 * regcache.c (init_regcache_descr): Overallocate the
5441 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5442 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5444 (set_register_cached): Add range checking assertions. Use
5447 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5449 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5450 numbers for MMX registers.
5452 2002-08-13 Andrew Cagney <cagney@redhat.com>
5454 * i386-tdep.c (i386_gdbarch_init): Use
5455 generic_unwind_get_saved_register.
5457 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5459 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5460 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5462 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5463 Delete. Add comment regarding this now-deleted target method.
5465 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5467 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5468 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5469 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5470 real PC and the page number (if it's within the memory bank window).
5471 (m68hc11_pseudo_register_write): Likewise when saving.
5472 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5473 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5474 (m68hc11_register_raw_size): And use 32-bit for it.
5475 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5476 16K memory bank is used by the prog; also use the virtual pc.
5478 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5480 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5481 (m68hc11_gdbarch_init): Install it in gdbarch.
5482 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5483 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5484 (MSYMBOL_SIZE): New for documentation.
5485 (insn_return_kind): Enum to specify how a function returns.
5486 (frame_extra_info): Cleanup and record the return mode.
5487 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5488 register in address computation.
5489 (m68hc11_get_return_insn): New to obtain the return instruction used
5491 (m68hc11_frame_init_saved_regs): Take into account the return
5492 instruction used by the function for far and interrupt functions.
5493 (m68hc11_init_extra_frame_info): Take into account page register.
5494 (m68hc11_frame_args_address): Adjust according to the return mode.
5495 (show_regs): Print page register only when it's used.
5497 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5499 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5500 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5501 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5503 (m68hc11_register_raw_size): Likewise.
5505 2002-08-13 Andrew Cagney <cagney@redhat.com>
5507 * i386-tdep.c (i386_register_name): Handle mmx registers.
5508 (mmx_regnum_p): New function.
5509 (i386_mmx_names): New array.
5510 (mmx_num_regs): New variable.
5511 (i386_pseudo_register_read): New function.
5512 (i386_pseudo_register_write): New function.
5513 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5515 * regcache.c (regcache_raw_read_unsigned): New function.
5516 (regcache_raw_read_signed): New function.
5517 * regcache.h (regcache_raw_read_unsigned): Declare.
5518 (regcache_raw_read_signed): Declare.
5520 2002-08-13 Andrew Cagney <cagney@redhat.com>
5522 * regcache.c (regcache_raw_read_as_address): Delete function.
5523 (regcache_cooked_read_signed): New function.
5524 (regcache_cooked_read_unsigned): New function.
5525 * regcache.h (regcache_cooked_read_signed): Declare.
5526 (regcache_cooked_read_unsigned): Declare.
5527 (regcache_raw_read_as_address): Delete declaration.
5529 * blockframe.c (generic_read_register_dummy): Use
5530 regcache_cooked_read_unsigned.
5531 * i386-tdep.c (i386_extract_struct_value_address): Use
5532 regcache_cooked_read_unsigned.
5534 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5537 double sizes according to ELF ABI flags.
5538 (gdbarch_tdep): Record elf_flags.
5540 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5542 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5543 (m6812_prolog): They can appear in 68HC12 function prologue.
5544 (m68hc11_frame_chain): Cleanup.
5546 2002-08-12 Andrew Cagney <cagney@redhat.com>
5548 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5550 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5551 (i386_linux_register_raw_size): Delete function.
5552 (i386_linux_init_abi): Update.
5553 * i386-tdep.c (i386_register_raw_size): Delete function.
5554 (i386_register_byte): Delete function.
5555 (i386_gdbarch_init): Update.
5556 (i386_register_size): Delete array.
5557 (i386_register_offset): Delete array.
5559 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5560 (REGISTER_RAW_SIZE): Delete macro.
5561 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5562 (REGISTER_BYTE): Delete macro.
5564 2002-08-11 Aidan Skinner <aidan@velvet.net>
5566 * ada-lang.c (ada_lookup_partial_symbol)
5567 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5568 prototype names so that grep ^func works properly.
5570 * ada-lang.c (ada_array_element_type)
5571 (ada_lookup_partial_symbol): Fix typos in parameter list.
5573 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5574 Fix prototype names so that grep ^func works properly.
5576 2002-08-10 Andrew Cagney <cagney@redhat.com>
5577 Elena Zannoni <ezannoni@redhat.com>
5578 Martin M. Hunt <hunt@redhat.com>
5580 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5581 (build_builtin_type_vec128i): Set the vector bit.
5582 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5583 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5584 (build_builtin_type_vec64): New function.
5585 (build_builtin_type_vec64i): New function.
5586 (build_gdbtypes): Initialize builtin_type_vec64 and
5587 builtin_type_vec64i.
5589 2002-08-09 Andrew Cagney <cagney@redhat.com>
5591 * regcache.c (regcache_dump): Compare the register offset
5593 * arch-utils.c (generic_register_byte): New function.
5594 * arch-utils.h (generic_register_byte): Declare.
5595 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5596 * gdbarch.h, gdbarch.c: Regenerate.
5598 2002-08-09 Andrew Cagney <cagney@redhat.com>
5600 * regcache.c: Include "gdbcmd.h"
5601 (_initialize_regcache): Add commands "maintenance print
5602 registers", "maintenance print raw-registers" and "maintenance
5603 print cooked-registers".
5604 (enum regcache_dump_what): Define.
5605 (dump_endian_bytes): New function.
5606 (regcache_dump): New function.
5607 (regcache_print): New function.
5608 (maintenance_print_registers): New function.
5609 (maintenance_print_raw_registers): New function.
5610 (maintenance_print_cooked_registers): New function.
5611 * Makefile.in (regcache.o): Update dependencies.
5613 2002-08-09 Michael Snyder <msnyder@redhat.com>
5615 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5616 (mips_push_arguments): Correct some comments. Use paddr_nz
5617 for printing addresses in debug output. Replace static
5618 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5619 (mips_n32n64_push_arguments): New function, cloned from
5620 mips_push_arguments and tuned for the n32/n64 ABI.
5621 (mips_push_register): Buffer needs dynamic allocation.
5622 (mips_print_register): Ditto.
5623 (do_gp_register_row): Ditto.
5624 (mips_store_return_value): Ditto.
5625 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5627 2002-08-09 Don Howard <dhoward@redhat.com>
5629 * memattr.c (mem_info_command): Print special case of upper bound
5630 as max CORE_ADDR + 1.
5632 2002-08-08 Michael Snyder <msnyder@redhat.com>
5634 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5635 returns structs by ref if they're too big to fit in two registers.
5637 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5639 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5641 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5642 mips_find_saved_regs().
5643 (mips_pop_frame): Likewise.
5645 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5647 * blockframe.c (frame_saved_regs_register_unwind): Revise
5648 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5651 2002-08-09 Grace Sainsbury <graces@redhat.com>
5653 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5654 T-packets; the 'a' is not taken as a register number.
5655 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5656 (remote_stopped_data_address): New functions; add to target
5658 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5659 prototypes to match other implementations of this
5660 function. replace integer argument with pointer -- the length
5661 field in the Z-packet is the length of what is pointed to or 1 if
5662 pointer is null. Add to target vector.
5663 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5667 * remote.c (remote_wait): Add support to extract optional
5668 watchpoint information from T-packet. Ignore unrecognized
5669 optional info in T-packet.
5670 (remote_async_wait): Ditto.
5672 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5674 * cli/cli-dump.c: Change fopen modes to use binary open modes
5675 as defined in include/fopen-bin.h throughout.
5677 2002-08-08 Michael Snyder <msnyder@redhat.com>
5679 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5681 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5683 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5684 assertion failure by returning early after a warning.
5686 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5688 * mips-tdep.c (mips_find_saved_regs): Make static.
5689 (mips_frame_init_saved_regs): New function.
5690 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5691 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5692 (mips_find_saved_regs): Delete declaration.
5694 2002-08-08 Grace Sainsbury <graces@redhat.com>
5696 * remote.c (remote_wait, remote_async_wait): Change
5697 thread_num from int to ULONGEST.
5698 (unpack_varlen_hex): Change result parameter from
5699 int * to ULONGEST *.
5701 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5703 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5704 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5706 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5708 2002-08-08 Andrew Cagney <cagney@redhat.com>
5710 * gcore.c (override_derive_stack_segment): Delete variable.
5711 (preempt_derive_stack_segment): Delete function.
5712 (derive_stack_segment): Delete function.
5713 (default_derive_stack_segment): Renamed to derive_stack_segment.
5714 (override_derive_heap_segment): Delete variable.
5715 (preempt_derive_heap_segment): Delete function.
5716 (derive_heap_segment): Delete function.
5717 (default_derive_heap_segment): Rename to derive_heap_segment.
5719 2002-08-06 Michael Snyder <msnyder@redhat.com>
5721 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5722 * mips-tdep.c (mips_EABI_use_struct_convention,
5723 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5724 New functions. (mips_use_struct_convention): Delete.
5725 (mips_gdbarch_init): set use_gdbarch_convention.
5727 2002-08-06 Michael Snyder <msnyder@redhat.com>
5729 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5730 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5731 mips_o32_reg_struct_has_addr): New functions.
5732 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5734 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5736 * regcache.c (pseudo_register): Delete function.
5737 (fetch_register): Delete function.
5738 (store_register): Delete function.
5739 (regcache_raw_read, legacy_read_register_gen): Use
5740 target_fetch_registers instead of fetch_register.
5741 (legacy_write_register_gen, regcache_raw_write): Use
5742 target_store_register instead of store_register.
5743 (write_register_bytes): Ditto.
5745 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5746 (STORE_PSEUDO_REGISTER): Delete.
5747 * gdbarch.h, gdbarch.c: Regenerate.
5749 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5751 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5752 write dump file binary.
5754 2002-08-05 Michael Snyder <msnyder@redhat.com>
5756 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5757 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5758 (mips_gdbarch_init): Set N32 target to be mips64.
5760 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5762 * frame.c (find_saved_register): Break out of loop once saved
5763 register address is found. Don't mention sparc in loop comment
5766 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5768 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5769 mips_default_saved_regsize to 8.
5771 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5773 * gcore.c: Do not include <sys/procfs.h>.
5774 * Makefile.in (gcore.o): Update dependencies.
5776 2002-08-06 Andrew Cagney <cagney@redhat.com>
5778 * configure.tgt: Make arc-*-* obsolete.
5779 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5780 * MAINTAINERS: Make arc-elf obsolete.
5781 * arc-tdep.c: Make file obsolete.
5782 * config/arc/arc.mt: Ditto.
5783 * config/arc/tm-arc.h: Ditto.
5785 2002-08-05 Theodore A. Roth <troth@verinet.com>
5787 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5789 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5791 * mcore-tdep.c (mcore_gdbarch_init): Use
5792 generic_unwind_get_saved_register instead of
5793 generic_get_saved_register.
5794 * v850-tdep.c (v850_gdbarch_init): Ditto.
5795 * frv-tdep.c (frv_gdbarch_init): Ditto.
5796 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5797 * s390-tdep.c (s390_gdbarch_init): Ditto.
5798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5799 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5800 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5802 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5804 * objfiles.h: Add missing #include "symfile.h"
5806 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5808 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5810 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5811 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5814 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5816 * NEWS: Cleanup and nitpick.
5818 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5820 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5822 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5824 * Makefile.in (gdbtk-bp.o): Update dependencies.
5825 (gdbtk-register.o): Ditto.
5826 (gdbtk-varobj.o): Ditto.
5828 2002-08-03 Andrew Cagney <cagney@redhat.com>
5830 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5831 m68hc11_fetch_pseudo_register.
5832 (m68hc11_pseudo_register_write): Replace
5833 m68hc11_store_pseudo_register.
5834 (m68hc11_gdbarch_init): Update.
5836 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5838 * gdbarch.sh: Include "gdb_string.h".
5839 * gdbarch.c: Regenerate.
5841 * regcache.c: Include "gdb_string.h".
5842 * ax-general.c: Ditto.
5844 * std-regs.c: Ditto.
5845 * fbsd-proc.c: Ditto.
5848 * Makefile.in (regcache.o): Update dependencies.
5849 (thread.o, gdbarch.o): Ditto.
5850 (ax-general.o, gdbarch.o): Ditto.
5851 (varobj.o, std-regs.o): Ditto.
5852 (fbsd-proc.o): Specify dependencies.
5854 2002-08-02 Andrew Cagney <cagney@redhat.com>
5856 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5858 (regcache_cooked_write): Ditto.
5860 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5862 * regcache.c (regcache_cooked_read): New function.
5863 (regcache_cooked_write): New function.
5864 (read_register_gen): Rewrite using regcache_cooked_read.
5865 (write_register_gen): Rewrite using regcache_cooked_write.
5867 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5870 2002-08-02 Andrew Cagney <cagney@redhat.com>
5872 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5873 Replace the architecture methods register_read and register_write.
5874 * gdbarch.h, gdbarch.c: Regenerate.
5875 * regcache.c (init_regcache_descr): Update.
5876 (read_register_gen): Update.
5877 (write_register_gen): Update.
5878 (supply_register): Update comment.
5880 * sh-tdep.c (sh_gdbarch_init): Update.
5881 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5882 `regcache' and `gdbarch' parameters. Make `buffer' a void
5883 pointer. Update code.
5884 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5885 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5886 void pointer. Update code.
5887 (sh64_register_write): Delete.
5888 (sh4_register_read): Delete.
5889 (sh64_register_read): Delete.
5890 (sh4_register_write): Delete.
5891 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5892 void pointer, `to' parameter a void pointer.
5893 (sh_sh64_register_convert_to_raw): Ditto.
5895 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5897 * mips-tdep.c (mips_register_virtual_type): Use architecture
5898 invariant return values.
5900 2002-08-01 Andrew Cagney <cagney@redhat.com>
5902 * linux-proc.c: Include "gdb_string.h".
5903 * Makefile.in (linux-proc.o): Update dependency list.
5905 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5907 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5910 2002-08-01 Grace Sainsbury <graces@redhat.com>
5912 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5913 to_insert_watchpoint, to_remove_watchpoint,
5914 to_stopped_by_watchpoint, to_stopped_data_address,
5915 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5916 target vecctor. Define their corresponding macros so they call
5919 * target.c: Add default and debug versions of for
5920 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5921 to_insert_watchpoint, to_remove_watchpoint,
5922 to_stopped_by_watchpoint, to_stopped_data_address,
5923 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5925 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5927 * mips-tdep.c (mips_register_virtual_type): New function.
5928 (mips_gdbarch_init): Register mips_register_virtual_type()
5929 with gdbarch machinery.
5930 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5931 this file instead of tm-bigmips.h.
5932 (MIPS_REGSIZE): Delete this macro.
5933 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5934 multiarch version in mips-tdep.c will be found.
5936 2002-08-01 Andrew Cagney <cagney@redhat.com>
5938 * NEWS: Menion that CHILL has been made obsolete.
5940 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5941 * stabsread.c (read_range_type): Ditto.
5942 * gdbtypes.h: Ditto.
5943 * language.c (binop_type_check): Ditto.
5944 (binop_result_type): Ditto.
5945 (integral_type): Ditto.
5946 (character_type): Ditto.
5947 (string_type): Ditto.
5948 (boolean_type): Ditto.
5949 (structured_type): Ditto.
5950 (lang_bool_type): Ditto.
5951 (binop_type_check): Ditto.
5952 * language.h (_LANG_chill): Ditto.
5953 * dwarfread.c (set_cu_language): Ditto.
5954 * dwarfread.c (CHILL_PRODUCER): Ditto.
5955 * dwarfread.c (handle_producer): Ditto.
5956 * expression.h (enum exp_opcode): Ditto.
5957 * eval.c: Ditto for comments.
5958 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5959 * expprint.c (print_subexp): Ditto.
5960 (print_subexp): Ditto.
5961 * valops.c (value_cast): Ditto.
5962 (search_struct_field): Ditto.
5963 * value.h (COERCE_VARYING_ARRAY): Ditto.
5964 * symfile.c (init_filename_language_table): Ditto.
5965 (add_psymbol_with_dem_name_to_list): Ditto.
5966 * valarith.c (value_binop): Ditto.
5968 * valops.c (value_slice): Ditto.
5969 * symtab.h (union language_specific): Ditto.
5970 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5971 (SYMBOL_DEMANGLED_NAME): Ditto.
5972 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5973 * defs.h (enum language): Ditto.
5974 * symtab.c (got_symtab): Ditto.
5975 * utils.c (fprintf_symbol_filtered): Ditto.
5977 * ch-typeprint.c: Make file obsolete.
5978 * ch-valprint.c: Make file obsolete.
5979 * ch-lang.h: Make file obsolete.
5980 * ch-exp.c: Make file obsolete.
5981 * ch-lang.c: Make file obsolete.
5983 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5985 (TARGET_FLAGS_TO_PASS): Ditto.
5986 (CHILLFLAGS): Obsolete.
5988 (CHILL_FOR_TARGET): Obsolete.
5989 (CHILL_LIB): Obsolete.
5990 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5992 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5993 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5995 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5998 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6000 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6001 This does not change anything at the moment, but will be helpful
6002 later when full Ada support is integrated.
6004 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6006 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6009 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6011 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6012 and save it in a local variable. Use variable in later test.
6014 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6016 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6017 test. (Thanks to Daniel Jacobowitz.)
6019 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6021 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6022 (mips_abi_strings): Add "n64".
6023 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6025 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6027 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6028 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6030 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6032 * utils.c (host_pointer_to_address, address_to_host_pointer):
6033 Use gdb_assert() instead of explicit call to internal_error().
6035 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6037 * Makefile.in (rs6000-nat.o): Update dependencies.
6039 From Nicholas Duffek:
6040 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6041 (aix-thread.o): New rule.
6042 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6043 * config/powerpc/aix432.mh: New file.
6045 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6047 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6048 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6049 (fetch_core_registers, ppc_linux_supply_gregset)
6050 (ppc_linux_supply_fpregset): New functions.
6051 (ppc_linux_regset_core_fns): New.
6052 (_initialize_ppc_linux_tdep): Call add_core_fns.
6053 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6054 and ppc_linux_supply_gregset.
6055 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6056 (supply_fpregset): Call ppc_linux_supply_fpregset.
6057 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6059 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6061 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6063 * symtab.c (lookup_symbol): Demangle before lowercasing.
6065 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6067 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6069 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6070 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6071 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6072 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6074 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6075 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6076 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6077 (avr-tdep.o, mon960-rom.o): Ditto.
6078 (aout_stabs_gnu_h): Define.
6079 (symtab_h): Remove $(gdb_obstack_h).
6081 2002-07-30 Jim Blandy <jimb@redhat.com>
6083 Patch from David Carlton <carlton@math.stanford.edu>:
6084 * gdbinit.in: Move the `dir' commands that add GDB's own source
6085 directory to the search path to the end, so that the `gdb' source
6086 directory will be searched first.
6088 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6090 * gdb_obstack.h: New file.
6091 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6092 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6093 * objfiles.h: Include "gdb_obstack.h".
6094 * Makefile.in (gdb_obstack_h): Define.
6095 (symtab_h): Add $(gdb_obstack_h).
6096 (objfiles_h): Add $(gdb_obstack_h).
6098 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6099 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6100 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6101 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6102 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6103 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6104 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6105 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6107 * Makefile.in (bcache.o): Update dependencies.
6108 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6109 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6110 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6111 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6112 (stabsread.o, symfile.o, symmisc.o): Ditto.
6113 (symtab.o, typeprint.o, macroexp.o): Ditto.
6114 (macrotab.o, mdebugread.o): Ditto.
6115 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6116 (coff_ecoff_h, aout_aout64_h): Define.
6117 (aout_stabs_gnu_h, libaout_h): Define.
6119 2002-07-29 Andrew Cagney <cagney@redhat.com>
6121 * regcache.c (struct regcache_descr): Rename nr_registers to
6122 nr_cooked_registers. Revise comments describing the structure
6124 (init_regcache_descr): Update.
6125 (init_legacy_regcache_descr): Update.
6126 (read_register_gen, write_register_gen): When a cooked register in
6127 the raw register range, directly access the value from the raw
6130 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6132 * z8k-tdep.c: Do not include "obstack.h".
6133 * h8300-tdep.c, h8500-tdep.c: Ditto.
6134 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6135 * valprint.c, v850-tdep.c: Ditto.
6136 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6137 * mn10200-tdep.c: Ditto.
6139 * Makefile.in (z8k-tdep.o): Update dependencies.
6140 (m68hc11-tdep.o, valprint.o): Ditto.
6141 (v850-tdep.o, d10v-tdep.o): Ditto.
6142 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6143 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6144 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6145 (sh_opc_h, gdb_sim_sh_h): Define.
6146 (elf_sh_h, elf_bfd_h): Define.
6147 (opcode_m68hc11_h): Define.
6148 (OPCODES_SRC, OPCODES_DIR): define.
6149 (OPCODES): Use $(OPCODES_DIR).
6150 (gdb_sim_d10v_h): Rename sim_d10v_h.
6151 (gdb_sim_arm_h): Rename sim_arm_h.
6153 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6155 * utils.c (host_pointer_to_address, address_to_host_pointer):
6156 Change internal_error() message to indicate function responsible
6159 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6161 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6162 calls to local_hex_string_custom().
6164 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6166 * irix5-nat.c: Move IRIX shared library support from here...
6167 * solib-irix.c: ...to here. Revised substantially to work with
6168 generic solib framework.
6170 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6171 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6172 * mips-irix-tdep.c: New file.
6174 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6175 (mips-irix-tdep.o, solib-irix.o): New rules.
6176 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6178 * config/mips/irix6.mt (TDEPFILES): Likewise.
6179 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6181 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6183 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6184 disabled (via ``#if 0'') includes.
6186 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6188 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6189 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6190 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6191 Add support for the fpscr register.
6192 * rs6000-nat.c (regmap, fetch_inferior_registers)
6193 (store_inferior_registers, fetch_core_registers): Likewise.
6195 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6197 * rs6000-nat.c (language.h): Include.
6198 (special_regs): Delete this array.
6199 (regmap): New function.
6200 (fetch_register, store_register): Use regmap() to map gdb
6201 register numbers to ptrace register numbers. Also, use
6202 outputs from regmap() to make decisions regarding type of
6203 ptrace() call to make. In particular, don't compare against
6204 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6205 (fetch_inferior_registers, store_inferior_registers): Where
6206 possible, obtain register numbers from tdep struct. Don't
6207 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6208 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6209 (LAST_UISA_SP_REGNUM): Delete.
6211 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6213 * rs6000-nat.c (ppc-tdep.h): Include.
6214 (fetch_registers, store_register, fetch_core_registers): Don't
6215 access registers[] directly. Instead, use supply_register() or
6216 regcache_collect() as appropriate.
6217 (find_toc_address): Format hex address with local_hex_string().
6219 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6221 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6224 2002-07-24 Tom Tromey <tromey@redhat.com>
6226 * jv-exp.y: Marked all strings with _().
6227 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6229 (MethodInvocation, CastExpression, parse_number, yyerror,
6230 java_type_from_name, push_expression_name, yylex): Typo fixes.
6232 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6234 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6235 (tee_file_flush, tee_file_write, tee_file_fputs)
6236 (tee_file_isatty): New.
6237 * ui-file.h (tee_file_new): Add prototype.
6239 2002-07-24 Aidan Skinner <aidan@velvet.net>
6241 * ada-lang.c: Change k&r style function definitions to prototyped
6243 * ada-typeprint.c: Change k&r style function definitions to prototyped
6245 * ada-valprint.c: Change k&r style function definitions to prototyped
6248 2002-07-24 Andrew Cagney <cagney@redhat.com>
6250 * README: Remove reference to remote-bug.
6251 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6253 (m88k-nat.o): Delete rule.
6254 (m88k-tdep.o): Delete rule.
6255 (remote-bug.o): Delete rule.
6256 * MAINTAINERS: Mark as obsolete.
6257 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6258 * m88k-tdep.c: Make file obsolete.
6259 * config/m88k/m88k.mh: Ditto.
6260 * config/m88k/delta88v4.mh: Ditto.
6261 * config/m88k/delta88v4.mt: Ditto.
6262 * config/m88k/delta88.mt: Ditto.
6263 * config/m88k/delta88.mh: Ditto.
6264 * remote-bug.c: Ditto.
6265 * config/m88k/tm-delta88.h: Ditto.
6266 * config/m88k/nm-delta88v4.h: Ditto.
6267 * config/m88k/xm-delta88.h: Ditto.
6268 * config/m88k/xm-dgux.h: Ditto.
6269 * config/m88k/tm-m88k.h: Ditto.
6270 * config/m88k/nm-m88k.h: Ditto.
6271 * config/m88k/tm-delta88v4.h: Ditto.
6272 * m88k-nat.c: Ditto.
6273 * cxux-nat.c: Ditto.
6274 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6275 and m88*-*-* obsolete.
6276 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6279 2002-07-24 Andrew Cagney <cagney@redhat.com>
6281 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6282 constant. Same for local pointer variables.
6283 (extract_signed_integer): Ditto.
6284 * defs.h (extract_unsigned_integer): Update.
6285 (extract_signed_integer): Update.
6287 2002-07-24 Andrew Cagney <cagney@redhat.com>
6289 * regcache.c (regcache_raw_write): Change buf parameter to a
6290 constant void pointer.
6291 (regcache_raw_read): Change buf parameter to a void pointer.
6292 (legacy_write_register_gen): Change myaddr parameter a constant
6294 (supply_register): Change val parameter to a const void pointer.
6295 * regcache.h (regcache_raw_write): Update declaration.
6296 (regcache_raw_read): Update declaration.
6297 (supply_register): Update declaration.
6299 2002-07-24 Tom Tromey <tromey@redhat.com>
6301 * defs.h (gdb_readline_wrapper): Declare.
6302 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6303 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6304 * top.c (gdb_readline_wrapper): New function.
6305 (command_line_input): Use it.
6307 2002-07-24 Andrew Cagney <cagney@redhat.com>
6309 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6310 regcache_read and regcache_write.
6311 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6312 * regcache.c: Update.
6313 * sh-tdep.c (sh64_push_arguments): Update comment.
6314 (sh_pseudo_register_read): Update.
6315 (sh_pseudo_register_write): Update.
6316 (sh4_register_read): Update.
6317 (sh4_register_write): Update.
6318 (sh64_pseudo_register_read): Update.
6319 (sh64_pseudo_register_write): Update.
6320 (sh64_register_read): Update.
6321 (sh64_register_write): Update.
6322 * i386-tdep.c (i386_extract_return_value): Update.
6323 (i386_extract_struct_value_address): Update.
6324 (i386_extract_return_value): Update.
6325 * blockframe.c (generic_read_register_dummy): Update.
6326 (generic_call_dummy_register_unwind): Update
6327 * infrun.c (write_inferior_status_register): Update.
6329 2002-07-23 Jim Blandy <jimb@redhat.com>
6331 * parser-defs.h (expression_context_pc): Make this extern.
6332 (Thanks to Michael Snyder.)
6334 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6336 GDB 5.2.1 released from 5.2 branch.
6337 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6338 * README: Update to mention 5.2.1.
6340 2002-07-23 Mark Salter <msalter@redhat.com>
6342 * remote.c (remote_read_bytes): Fix check for error.
6344 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6346 * aix-thread.c (language.h): Include.
6347 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6348 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6349 Print newlines at end of debug messages.
6350 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6351 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6353 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6355 * aix-thread.c (ppc-tdep.h): Include.
6356 (special_register_p): New function.
6357 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6358 (store_regs_user_thread): Use register number information from
6359 gdbarch_tdep struct instead of hardcoded offsets relative to
6360 FIRST_UISA_SP_REGNUM.
6361 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6362 special_register_p() instead of using FPLAST_REGNUM and
6363 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6364 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6365 will be MQ's register number.
6367 2002-07-22 Michael Snyder <msnyder@redhat.com>
6369 * aix-thread.c (ops): Rename to aix_thread_ops.
6370 (base_ops): Rename to base_target.
6371 (ops_attach): Rename to aix_thread_attach.
6372 (ops_detach): Rename to aix_thread_detach.
6373 (ops_resume): Rename to aix_thread_detach.
6374 (ops_wait): Rename to aix_thread_wait.
6375 (ops_kill): Rename to aix_thread_kill.
6376 (init_ops): Rename to init_aix_thread_ops.
6377 (ops_fetch_register): Rename to aix_thread_fetch_register.
6378 (ops_store_register): Rename to aix_thread_store_register.
6379 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6380 (ops_thread_alive): Rename to aix_thread_thread_alive.
6381 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6382 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6383 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6384 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6385 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6386 (store_regs_lib): Rename to store_regs_user_thread.
6387 (store_regs_kern): Rename to store_regs_kernel_thread.
6389 2002-07-22 Michael Snyder <msnyder@redhat.com>
6391 * aix-thread.c (ops_prepare_to_store): Eliminate.
6392 (init_ops): Don't initialize ops.prepare_to_store.
6393 (store_regs_kern): Pre-fetch register buffers from child,
6394 because some registers may not be in the cache. Copy
6395 regs from register cache only if they are cached.
6396 (store_regs_lib): Copy regs from register cache only
6398 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6399 fill_gprs64): Ditto.
6401 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6403 * aix-thread.c (gdb_assert.h): Include.
6404 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6405 register sizes (from register cache) match size of buffer holding
6407 (fill_sprs32): Change parameter types to match those in the ptrace()
6409 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6410 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6412 2002-07-22 Michael Snyder <msnyder@redhat.com>
6414 * aix-thread.c (supply_sprs64): Cosmetic change.
6415 (supply_sprs32): Cosmetic change.
6416 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6417 (fill_sprs64): Use regcache_collect instead of read_register.
6418 (store_regs_lib): Use regcache_collect instead of
6419 read_register. Use fill_sprs32 instead of fill_sprs64,
6420 if debugging a 32-bit architecture.
6421 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6422 out of the register cache, instead of passing a pointer into
6423 the register cache directly to ptrace. Use regcache_collect
6424 insteaad of read_register.
6425 (ops_prepare_to_store): Use target_read_registers instead
6426 of read_register_bytes.
6428 2002-07-20 Aidan Skinner <aidan@velvet.net>
6430 * MAINTAINERS: Add self under write after approval.
6432 2002-07-20 Aidan Skinner <aidan@velvet.net>
6434 * ada-tasks.c: Change k&r style function definitions to prototyped
6437 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6439 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6440 * x86-64-tdep.c: Include "objfiles.h".
6441 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6442 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6444 2002-07-17 Michal Ludvig <michal@suse.cz>
6446 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6447 (update_context): Initialise cfa variable.
6449 2002-07-17 Michael Snyder <msnyder@redhat.com>
6451 * aix-thread.c: Shorten some long lines.
6452 Bring comments into line with code spec.
6454 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6456 * infrun.c: Re-indent using gdb_indent.sh.
6458 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6460 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6461 Leave the indentation temporarily untouched, to minimize the diffs.
6463 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6465 * stabsread.c: Make os9k sections of the code obsolete,
6467 * stabsread.h: Make os9k sections of the code obsolete.
6469 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6471 * linux-low.c (regsets_store_inferior_registers): Add free()
6472 at the end of a loop to prevent memory leak.
6473 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6474 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6475 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6477 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6479 2002-07-17 Jim Blandy <jimb@redhat.com>
6481 * macrocmd.c (info_macro_command): Remove newline from error
6484 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6486 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6487 (sh_gdbarch_init): Use it for sh-dsp.
6489 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6491 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6492 64-bit DWARF2 format.
6494 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6496 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6497 <sys/proc.h> when not available.
6499 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6501 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6502 * stabsread.c: Make os9k sections of the code obsolete.
6503 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6504 * config/i386/i386os9k.mt: Make file obsolete.
6505 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6506 (COMMON_OBS): Remove os9kread.o
6507 (SFILES): Remove os9kread.c.
6508 (os9kread.o, remote-os9k.o): Make target obsolete.
6509 * remote-os9k.c: Make file obsolete.
6510 * os9kread.c: Make file obsolete.
6513 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6515 * NEWS: Mention that the FR30 has been made obsolete.
6516 * fr30-tdep.c: Make file obsolete.
6517 * config/fr30/tm-fr30.h: Ditto.
6518 * config/fr30/fr30.mt: Ditto.
6519 * configure.tgt: Make fr30-*-elf obsolete.
6520 * MAINTAINERS: Make fr30-elf obsolete.
6522 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6524 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6525 found is not inside a section.
6527 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6529 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6531 (pdc_realloc): Use xrealloc() instead of realloc().
6533 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6535 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6536 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6537 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6540 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6542 * aix-thread.c (ptrace_check): Eliminate goto.
6543 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6546 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6548 * aix-thread.c (gdbcmd.h): Include.
6549 (DEBUG, DBG, DBG2, dbg): Eliminate.
6550 (debug_aix_thread): New static global.
6551 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6552 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6553 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6554 invocations to DBG and DBG2 macros to test against
6555 ``debug_aix_thread'' and call fprintf_unfiltered().
6556 (_initialize_aix_thread): Add new command "set debug aix-thread".
6558 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6560 From Gerhard Tonn <TON@de.ibm.com>:
6561 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6562 instead of supply_register.
6564 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6566 * dwarf2cfi.c: Include "gdb_assert.h".
6567 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6569 (update_context): Do not use __func__. Add missing ``break''.
6570 (update_context): Do not use __func__.
6572 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6574 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6575 and its setting. Set gdbarch instruction printing functions
6576 directly. For non-rs6000 case use new function
6577 gdb_print_insn_powerpc.
6578 (gdb_print_insn_powerpc): New function.
6580 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6582 * NEWS: Mention that the d30v has been marked obsolete.
6583 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6584 * configure.tgt: Mark d30v-*-* as obsolete.
6585 * d30v-tdep.c: Mark file as obsolete.
6586 * config/d30v/d30v.mt: Ditto.
6587 * config/d30v/tm-d30v.h: Ditto.
6589 2002-07-13 Aidan Skinner <aidan@velvet.net>
6591 * ada-tasks.c (add_task_entry): replace calls to
6592 malloc() with xmalloc
6593 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6595 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6596 ada_finish_decode_line_1, all_sals_for_line
6597 ada_breakpoint_rewrite): replace calls to free() with xfree()
6599 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6601 From Nicholas Duffek (with minor changes by Martin Hunt,
6602 Louis Hamilton, and Kevin Buettner):
6603 * aix-thread.c: New file.
6605 2002-07-12 Petr Sorfa <petrs@caldera.com>
6607 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6608 complaint for invalid attribute class or form.
6609 (read_func_scope): DW_AT_frame_base
6610 better handling of DW_AT_block*.
6611 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6612 better handling of DW_AT_block*.
6613 (read_common_block): DW_AT_location
6614 better handling of DW_AT_block*.
6615 (read_partial_die): DW_AT_location better handling
6617 (new_symbol): DW_AT_external better handling of
6618 DW_AT_block*. Proper initialization of variable
6620 (attr_form_is_block): New function that returns true
6621 if the attribute's form is of DW_FORM_block*.
6623 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6625 * valops.c (find_method_list): Remove comment about
6626 removed STATIC_MEMFUNCP argument.
6627 (value_find_oload_method_list): Likewise.
6629 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6631 From Nicholas Duffek:
6632 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6633 target_new_objfile_hook.
6635 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6637 From Nicholas Duffek:
6638 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6641 2002-07-12 Andrew Cagney <cagney@redhat.com>
6643 * MAINTAINERS: Mention --enable-sim-build-warnings.
6644 (m68hc11-elf): Disable sim build warnings.
6645 (m32r-elf): Mark as broken obsolete candidate.
6646 (x86_64-linux-gnu): Mark as buildable with -Werror.
6647 (arm-elf): Change -w to ``,'' which enables warnings but not
6650 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6652 * bcache.h: Update copyright.
6653 (struct bstring, struct bcache): Move definition to "bcache.c".
6654 Replaced by opaque declaration.
6655 (bcache_xfree): Replace free_bcache.
6656 (bcache_xmalloc, bcache_memory_used): Declare.
6658 * bcache.c: Update copyright.
6659 (struct bstring, struct bcache): Moved to here from "bcache.h".
6661 (bcache_xmalloc, bcache_memory_used): New functions.
6662 (bcache_xfree): Replace function free_bcache.
6664 * Makefile.in (objfiles.o): Add $(bcache_h).
6665 (objfiles_h): Remove $(bcache_h).
6666 (symfile.o): Add $(bcache_h).
6668 * symmisc.c: Update copyright.
6669 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6670 (print_objfile_statistics): Use bcache_memory_used.
6672 * symfile.c: Include "bcache.h".
6673 (reread_symbols): Use bcache_xfree.
6674 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6675 (add_psymbol_to_list): Pass psymbol_cache by value.
6676 (add_psymbol_with_dem_name_to_list): Ditto.
6678 * objfiles.h: Update copyright.
6679 (struct bcache): Declare opaque. Do not include "bcache.h".
6680 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6682 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6684 * objfiles.c: Include "bcache.h". Update copyright.
6685 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6687 (free_objfile): Use bcache_xfree.
6689 2002-07-11 Grace Sainsbury <graces@redhat.com>
6691 * monitor.c (monitor_fetch_register): Make name a constant.
6692 (monitor_store_register): Same.
6694 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6696 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6697 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6698 (finish_block) For non-function blocks, hash the symbol table. For
6699 function blocks, mark the symbol table as unhashed.
6700 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6701 (msymbol_hash_iw): Likewise.
6702 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6704 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6705 (lookup_minimal_symbol): Likewise for both.
6706 * symtab.h (struct block): Add `hashtable' flag. Comment the
6708 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6709 (ALL_BLOCK_SYMBOLS): Update.
6710 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6711 (struct symbol): Add `hash_next' pointer.
6712 * symtab.c (lookup_block_symbol): Search using the hash table when
6714 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6715 (search_symbols, find_addr_symbol): Likewise.
6717 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6718 (read_dst_symtab): Likewise.
6719 * jv-lang.c (get_java_class_symtab): Likewise.
6720 * mdebugread.c: Include "gdb_assert.h".
6721 (shrink_block): Assert that the block being modified is not hashed.
6722 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6723 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6725 (dump_symtab): Recognize hashed blocks.
6726 * printcmd.c (print_frame_args): Assert that function blocks do not
6727 have hashed symbol tables.
6728 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6729 (fill_in_ada_prototype, debug_print_block): Likewise.
6730 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6732 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6734 * stack.c (print_frame): Use result of frame_address_in_block()
6735 instead of fi->pc when evaluating symbols.
6736 (backtrace_command_1): Ditto.
6738 2002-07-11 Andrew Cagney <cagney@redhat.com>
6740 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6743 * arm-tdep.c (arm_register_name): Make return type constant.
6745 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6747 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6749 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6750 * s390-tdep.c (s390_fp_regnum): Ditto.
6751 (s390_read_fp): Ditto.
6752 (s390_pop_frame): Ditto.
6753 (_initialize_s390_tdep): Ditto.
6754 * remote.c (get_remote_state): Ditto.
6755 * procfs.c (mappingflags): Ditto.
6756 * memattr.c (_initialize_mem): Ditto.
6757 * mcore-tdep.c (mcore_pop_frame): Ditto.
6758 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6759 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6760 * language.c (set_case_str): Ditto.
6761 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6762 * frv-tdep.c (new_variant): Ditto.
6763 (frv_stopped_data_address): Ditto.
6764 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6765 (context_alloc): Ditto.
6766 (frame_state_alloc): Ditto.
6767 (unwind_tmp_obstack_init): Ditto.
6768 (unwind_tmp_obstack_free): Ditto.
6769 (cfi_read_fp): Ditto.
6770 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6771 (cris_pop_frame): Ditto.
6772 * c-lang.c (scanning_macro_expansion): Ditto.
6773 (finished_macro_expansion): Ditto.
6774 (c_preprocess_and_parse): Ditto.
6775 * gdbarch.sh: Ditto.
6776 * gdbarch.h, gdbarch.c: Regenerate.
6777 * config/mn10200/tm-mn10200.h: Adjust indentation.
6778 * target.c: Adjust indentation.
6779 * symtab.h: Adjust indentation.
6780 * stabsread.h: Adjust indentation.
6781 * remote-es.c: Adjust indentation.
6782 * os9kread.c: Adjust indentation.
6784 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6786 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6787 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6789 2002-07-10 Grace Sainsbury <graces@redhat.com>
6791 * NEWS: Mention m68k, mcore multi-arching.
6792 * MAINTAINERS: Change status of m68k, mcore to reflect
6795 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6797 * valops.c (find_overload_match): Free oload_syms.
6799 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6801 Define HAVE_SYS_PROC_H if sys/proc.h exists
6802 * configure.in: Add check for sys/proc.h
6803 * config.in: Regenerate.
6804 * configure: Regenerate.
6806 2002-07-09 Grace Sainsbury <graces@redhat.com>
6808 * config/m68k/tm-m68k.h: Remove macros wrapped in
6809 #if !GDB_MULTI_ARCH.
6811 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6813 * config.in, configure: Regenerate.
6815 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6817 * dwarf2cfi.c: Include "gcore.h".
6818 (execute_stack_op): Fix implementation of the
6819 DW_OP_deref and DW_OP_deref_size operators by letting do their
6820 lookup in the target.
6822 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6824 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6825 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6828 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6830 Fix PR gdb/595, gdb/602
6831 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6832 Don't call value_cast, just read the vtable pointer; update comments
6835 2002-07-05 Grace Sainsbury <graces@redhat.com>
6837 * config/mcore/tm-mcore.h: Remove file.
6838 * config/mcore/mcore.mt: Remove definition of TM_FILE
6839 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6841 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6843 * i386bsd-tdep.c: Include "gdb_string.h".
6845 2002-07-04 Grace Sainsbury <graces@redhat.com>
6847 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6848 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6850 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6851 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6852 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6853 (RETVAL_REGNUM): Move macros from tm-mcore.h
6854 (mcore_reg_struct_has_addr): New function.
6855 (mcore_gdbarch_init): Added initializations for the macros removed
6858 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6860 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6861 traditonal string branding within the ELF header.
6863 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6865 * symtab.c (remove_params): New function.
6866 (make_symbol_overload_list): Use it instead of cplus_demangle.
6867 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6869 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6871 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6873 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6875 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6876 and tdep->sigtramp_end.
6877 * i386obsd-nat.c: New file.
6878 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6880 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6881 Don't call get_current_frame().
6883 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6885 * i386-nat.c (child_post_startup_inferior): New function
6886 calling i386_cleanup_dregs if
6887 I386_USE_GENERIC_WATCHPOINTS is defined.
6888 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6889 conditional to acknowledge that i386-nat.c has its
6890 own child_post_startup_inferior function.
6892 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6894 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6895 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6896 instead of MAX_REGISTER_RAW_SIZE.
6897 (i386_extract_return_value, i386_extract_struct_value_address):
6898 Convert to use regcache.
6899 (i386_gdbarch_init): Set max_register_raw_size and
6900 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6901 Set extract_return_value and extract_struct_value_address instead
6902 of their deprecated variants.
6904 Convert i386 target to generic dummy frames.
6905 * i386-tdep.c: Include "symfile.h".
6906 (i386_frameless_signal_p): Consider a function to be frameless if
6907 the pc points at the first instruction of the function.
6908 (i386_frame_chain): Handle (generic) call dummies.
6909 (i386_frame_saved_pc): Likewise.
6910 (i386_frame_init_saved_regs): Remove code dealing with call
6911 dummies on the stack.
6912 (i386_push_dummy_frame): Removed.
6913 (i386_call_dummy_words): Removed.
6914 (i386_fix_call_dummy): Removed.
6915 (i386_push_return_address): New function.
6916 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6917 parameter, and don't call get_current_frame.
6918 (i386_pop_frame): New function.
6919 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6920 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6921 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6922 call_dummy_length to 0, set call_dummy_words to NULL, set
6923 sizeof_call_dummy_words to 0, set fix_call_dummy to
6924 generic_fix_call_dummy, set pc_in_call_dummy to
6925 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6926 generic_push_dummy_frame, set push_return_address to
6927 i386_push_return_address and set frame_chain_valid to
6928 generic_file_frame_chain_valid.
6930 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6932 * gdbarch.sh (struct regcache): Add opaque declaration.
6933 (EXTRACT_RETURN_VALUE): New architecture method.
6934 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6935 * gdbarch.h, gdbarch.c: Regenerate.
6936 * arch-utils.c (legacy_extract_return_value): New function.
6937 * arch-utils.h (legacy_extract_return_value): Declare.
6938 * values.c (value_being_returned): Re-enable code handling
6939 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6940 deprecated_grub_regcache_for_registers call to block handling
6941 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6942 (EXTRACT_RETURN_VALUE): Do not define.
6944 2002-07-03 Grace Sainsbury <graces@redhat.com>
6946 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6947 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6948 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6949 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6950 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6951 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6952 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6953 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6954 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6955 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6956 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6957 argument so the function fits the prototype in the architecture
6959 (mcore_pop_frame): Remove argument so the function fits the
6960 prototype. Use get_current_frame instead of the argument.
6961 (mcore_push_arguments): Change type of struct_return so the
6962 function can be used in the architecture vector.
6963 (mcore_store_struct_return): Add.
6964 (mcore_frame_init_saved_regs): Add.
6965 (mcore_gdbarch_init): Add function calls to replace the macros
6966 removed from tm-mcore.h
6968 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6970 * infcmd.c (print_return_value): Remove compatibility code calling
6971 deprecated_grub_regcache_for_registers.
6973 * values.c: Include "regcache.h".
6974 (value_being_returned): Update. Use
6975 deprecated_grub_regcache_for_registers to extract the register
6977 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6978 ``struct regcache''.
6979 * Makefile.in (values.o): Add dependency on $(regcache_h).
6981 * inferior.h (run_stack_dummy): Change type of second parameter to
6982 a ``struct regcache''.
6983 * valops.c (hand_function_call): Change type of retbuf to ``struct
6984 regcache''. Allocate using regcache_xmalloc, clean using
6985 make_cleanup_regcache_xfree.
6986 * infcmd.c (run_stack_dummy): Update. Use
6987 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6989 * regcache.c (do_regcache_xfree): New function.
6990 (make_cleanup_regcache_xfree): New function.
6991 * regcache.h (make_cleanup_regcache_xfree): Declare.
6993 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6995 * event-top.c (command_line_handler): Don't read past
6996 beginning of buffer.
6998 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7000 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7002 (varobj_create): Store frame_id for root.
7003 (varobj_gen_name): Use xasprintf.
7004 (varobj_update): Save and restore frame using get_frame_id() and
7006 (create_child): Use xasprintf.
7007 (new_root_variable): Initialize frame_id.
7008 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7009 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7010 to prevent memory leak.
7012 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7014 * valops.c (hand_function_call): Move declaration of retbuf to
7015 start of function, allocate using malloc, add a cleanup but before
7016 the inf_status cleanup, cleanup the buffer. Rename local variable
7017 old_chain to inf_status_cleanup.
7019 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7021 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7023 * cli/cli-decode.c (cmd_func_p): New function.
7024 (cmd_func): New function.
7026 * command.h: Add cmd_func() and cmd_func_p().
7028 2002-07-03 Grace Sainsbury <graces@redhat.com>
7030 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7031 (REGISTER_SIZE): Remove.
7032 (MAX_REGISTER_RAW_SIZE): Remove.
7033 (REGISTER_VIRTUAL_TYPE): Remove.
7034 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7035 (REGISTER_NAME): Remove.
7036 (USE_GENERIC_DUMMY_FRAMES): Remove.
7037 (CALL_DUMMY): Remove.
7038 (CALL_DUMMY_START_OFFSET): Remove.
7039 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7040 (CALL_DUMMY_LOCATION): Remove.
7041 (FIX_CALL_DUMMY): Remove.
7042 (CALL_DUMMY_ADDRESS): Remove.
7043 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7044 (SAVE_DUMMY_FRAME_TOS): Remove.
7045 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7046 (mcore_register_virtual_type): New function.
7047 (mcore_register_byte): New function.
7048 (mcore_register_size): New function.
7049 (mcore_register_name): New function.
7050 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7051 macros removed from tm-mcore.h.
7052 (mcore_dump_tdep): Add.
7053 (_initialize_mcore_tdep): Add gdbarch_register call.
7055 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7057 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7058 frameless_look_for_prologue, such that we actually call this
7061 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7063 * frame.h (frame_address_in_block): New function.
7065 * blockframe.c (frame_address_in_block): New function extracted
7066 from get_frame_block().
7067 (get_frame_block): Use frame_address_in_block().
7068 (block_innermost_frame): Use frame_address_in_block() to match
7069 the frame pc address against the block boundaries rather than
7070 the frame pc directly. This prevents a failure when a frame pc
7071 is actually a return-address pointing immediately after the end
7074 2002-07-02 Grace Sainsbury <graces@redhat.com>
7076 * MAINTAINERS: Add self under write after approval.
7078 2002-07-02 Grace Sainsbury <graces@redhat.com>
7080 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7081 used in architecture vector. The default is
7082 m68k_local_breakpoint_from_pc.
7083 (m68k_local_breakpoint_from_pc): Add.
7084 (enum): Add register numbers from tm-m68k.h.
7085 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7087 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7088 GDB_MULTI_ARCH_PARTIAL.
7089 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7090 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7092 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7093 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7094 to enum in m68k-tdep.c
7096 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7098 * solib-osf.c (open_map): Compute the list of shared libraries
7099 loaded by the inferior, rather than the list of libraries loaded
7100 by GDB itself. Otherwise, GDB ends up reading the symbols from
7101 the wrong shared libraries...
7103 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7105 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7106 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7108 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7110 (FRAMELESS_SIGNAL): Remove function.
7111 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7112 i386_linux_saved_pc_after_call): Removed.
7113 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7114 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7115 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7117 * i386-tdep.c (i386_frameless_signal_p): New function.
7118 (i386_frame_chain): Deal with frameless signals.
7119 (i386_sigtramp_saved_sp): New function.
7120 (i386_frame_saved_pc): Deal with frameless signals.
7121 (i386_saved_pc_after_call): Make sure the correct value is
7122 returned just after entry into a sigtramp.
7123 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7124 i386fbsd4_sc_sp_offset): New variables.
7125 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7126 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7127 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7128 similiar to what we already did for sc_pc_offset.
7129 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7132 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7134 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7136 * config/i386/tm-x86-64linux.h: New.
7137 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7139 * config/i386/nm-x86-64.h: Rename to ...
7140 * config/i386/nm-x86-64linux.h: ... this one.
7141 * config/i386/x86-64linux.mh: Reflect the above change.
7143 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7145 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7146 with sigcontext_addr. Add sc_sp_offset.
7147 (i386bsd_sigtramp_saved_pc): Remove prototype.
7148 (i386bsd_sicontext_addr): Add prototype.
7149 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7150 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7151 (i386_svr4_sigtramp_saved_pc): Removed.
7152 (i386_svr4_sigcontext_addr): New function.
7153 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7154 Initialize tdep->sigcontext_addr instead. Initialize
7155 tdep->sc_pc_offset and tdep->sc_sp_offset.
7156 (i386_gdbarch_init): Likewise.
7157 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7159 (i386bsd_sigtramp_saved_pc): Remove function.
7160 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7161 Initialize tdep->sigcontext_addr instead. Initialize
7163 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7164 of tdep->sigtramp_saved_pc.
7165 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7166 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7169 * i386-tdep.c (i386_frameless_function_invocation,
7170 i386_frame_num_args, i386_frame_init_saved_regs,
7171 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7172 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7173 i386_extract_return_value, i386_store_return_value,
7174 i386_extract_struct_value_address, i386_register_virtual_type,
7175 i386_register_convertible, i386_register_convert_to_virtual,
7176 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7177 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7180 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7182 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7184 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7185 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7186 this macro. Include "value.h".
7188 2002-06-30 Aidan Skinner <aidan@velvet.net>
7190 * ada-exp.tab.c: remove as it's a generated file
7191 * ada-lex.c: remove as it's a generated file
7193 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7195 * config/i386/tm-i386.h (struct frame_info, struct
7196 frame_saved_regs, struct value, struct type): Remove forward
7199 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7200 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7201 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7202 (FILL_FPXREGSET): Define.
7204 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7206 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7207 i[3456]86-*-netbsd* case.
7208 * config/i386/tm-obsd.h: Removed.
7209 * config/i386/obsd.mt: Removed.
7210 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7212 (MH_CFLAGS): Add -DYYDEBUG=0.
7214 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7215 i386nbsd_sc_pc_offset on OpenBSD too.
7217 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7218 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7219 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7221 * i386bsd-tdep.c: Include "arch-utils.h".
7222 (i386bsd_aout_in_solib_call_trampoline): New function.
7223 (i386bsd_init_abi): Set in_solib_call_trampoline to
7224 i386bsd_aout_in_solib_call_trampoline.
7225 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7226 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7228 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7230 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7231 (struct obstack, struct bcache): Add opaque declarations.
7232 * Makefile.in (macrotab_h): Update
7234 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7236 * blockframe.c (generic_find_dummy_frame): Change return type to
7237 ``struct regcache''.
7238 (struct dummy_frame): Replace field ``registers'' with regcache, a
7239 struct regcache object.
7240 (generic_find_dummy_frame): Update.
7241 (generic_push_dummy_frame): Update. Use regcache_xfree,
7242 regcache_xmalloc and regcache_cpy.
7243 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7245 (deprecated_generic_find_dummy_frame): Update.
7246 (generic_read_register_dummy): Update. Use
7247 regcache_read_as_address.
7248 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7249 (generic_get_saved_register): Update. Use regcache_read.
7251 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7253 * Makefile.in (objfiles_h): Add $(bcache_h).
7254 * objfiles.h: Include "bcache.h".
7256 * Makefile.in (symtab_h): Remove $(bcache_h).
7257 * symtab.h: Do not include "bcache.h".
7259 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7261 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7262 generic_func_frame_chain_valid.
7264 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7266 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7267 * config/i386/tm-fbsd.h: Likewise.
7269 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7271 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7272 generic_unwind_get_saved_register.
7274 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7276 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7277 * regcache.c (supply_register): Add missing argument to
7278 register_buffer call.
7280 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7282 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7283 Solaris /bin/grep does not not like it. From Peter Schauer.
7285 2002-06-26 Tom Tromey <tromey@redhat.com>
7287 * command.h (add_setshow_cmd): Declare.
7288 (add_setshow_cmd_full): Declare.
7289 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7290 returns void. Use add_setshow_cmd_full.
7291 (add_setshow_cmd_full): New function.
7292 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7293 (add_setshow_boolean_cmd): Likewise.
7295 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7297 * config/vax/tm-vax.h: Protect from multiple inclusion.
7298 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7299 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7300 * config/vax/tm-vaxbsd.h: ...here. New file.
7301 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7303 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7305 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7306 (BELIEVE_PCC_PROMOTION): Remove.
7307 (AP_REGNUM): Move to...
7308 * config/vax/nm-vax.h: ...here.
7309 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7310 (vax_breakpoint_from_pc): New function.
7311 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7312 and gdbarch_believe_pcc_promotion.
7314 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7316 * Makefile.in (vax_tdep_h): Define.
7317 (vax-tdep.o): Use $(vax_tdep_h).
7318 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7319 (vax_dump_tdep): New function.
7320 (_initialize_vax_tdep): Register vax_dump_tdep.
7321 * vax-tdep.h: Include osabi.h.
7322 (struct gdbarch_tdep): New.
7324 2002-06-26 Andrew Cagney <cagney@redhat.com>
7326 * frame.h (deprecated_generic_find_dummy_frame): Rename
7327 generic_find_dummy_frame.
7328 * blockframe.c (generic_find_dummy_frame): Make static.
7329 (deprecated_generic_find_dummy_frame): New function.
7330 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7331 generic_find_dummy_frame with deprecated_find_dummy_frame.
7332 (sh64_nofp_frame_init_saved_regs): Ditto.
7333 (sh_fp_frame_init_saved_regs): Ditto.
7334 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7335 (s390_frame_chain): Ditto.
7336 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7338 2002-06-26 Grace Sainsbury <graces@redhat.com>
7340 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7341 gdbarch vector are at the top.
7343 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7344 (FRAME_ARGS_ADDRESS): Remove.
7345 (FRAME_LOCALS_ADDRESS): Remove.
7346 (FRAME_NUM_ARGS): Remove.
7347 (FRAME_ARGS_SKIP): Remove.
7348 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7349 (m68k_gdbarch_init): Add gdbarch initializations for macros
7350 undefined in tm-m68k.h
7352 2002-06-26 Grace Sainsbury <graces@redhat.com>
7354 * monitor.h: Add the function regname to monitor_ops
7355 structure. This way NUM_REGS does not have to be a constant.
7356 * monitor.c (monitor_fetch_register): Added support for regname
7357 function. The function is called if the array regnames is NULL.
7358 (monitor_store_register): Same.
7359 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7361 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7362 cpu32bug_cmds.regname to point to new function.
7363 * abug-rom.c (abug_regname): Same as above.
7364 (init_abug_cmds): Same.
7365 * dbug-rom.c (dbug_regname): Same as above.
7366 (init_dbug_cmds): Same.
7367 * remote-est.c (est_regname): Same.
7368 (init_est_cmds): Same.
7369 * rom68k-rom.c (rom68k_regname): Same.
7370 (init_rom68k_cmds): Same.
7372 2002-06-25 Tom Tromey <tromey@redhat.com>
7374 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7376 2002-06-25 Andrew Cagney <cagney@redhat.com>
7378 * infrun.c (stop_registers): Change variable's type to ``struct
7380 (xmalloc_inferior_status): Delete function.
7381 (free_inferior_status): Delete function.
7382 (normal_stop): Use regcache_cpy.
7383 (struct inferior_status): Change type of fields ``stop_registers''
7384 and ``registers'' to ``struct regcache''.
7385 (write_inferior_status_register): Use regcache_write.
7386 (save_inferior_status): Instead of calling
7387 xmalloc_inferior_status, allocate the inf_status buffer directly.
7388 Use regcache_dup_no_passthrough and regcache_dup to save the
7390 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7391 Replace the stop_registers regcache instead of overriding it. Use
7392 regcache_xfree. Instead of calling free_inferior_status, xfree
7393 the buffer directly.
7394 (discard_inferior_status): Use regcache_xfree. Instead of calling
7395 free_inferior_status, xfree the buffer directly.
7396 (build_infrun): Use regcache_xmalloc.
7397 (_initialize_infrun): Delete redundant call to build_infrun.
7399 * Makefile.in (infcmd.o): Add $(regcache_h).
7401 * infcmd.c: Include "regcache.h".
7402 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7403 obtain the address of `stop_registers' register buffer.
7404 (print_return_value): Ditto.
7406 * inferior.h (struct regcache): Add opaque declaration.
7407 (stop_registers): Change variable's declared type to ``struct
7410 2002-06-24 Tom Tromey <tromey@redhat.com>
7412 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7413 * target.c (initialize_targets): Fixed typo in
7414 trust-readonly-sections `show' documentation.
7416 * main.c: Marked all strings with _().
7418 2002-06-24 Don Howard <dhoward@redhat.com>
7420 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7421 that means max CORE_ADDR+1.
7422 (lookup_mem_region): Ditto.
7423 (mem_info_command): Ditto.
7425 2002-06-24 Grace Sainsbury <graces@redhat.com>
7427 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7428 (REGISTER_BYTES_OK): Remove.
7429 (REGISTER_BYTES): Remove.
7430 (STORE_STRUCT_RETURN): Remove.
7431 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7432 (STORE_RETURN_VALUE): Remove.
7433 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7434 (FRAME_CHAIN): Remove.
7435 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7436 (FRAME_SAVED_PC): Remove.
7437 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7438 (m68k_store_struct_return): Add.
7439 (m68k_deprecated_extract_return_value): Add.
7440 (m68k_deprecated_extract_struct_value_address): Add.
7441 (m68k_store_return_value): Add.
7442 (m68k_frame_chain): Add.
7443 (m68k_frameless_function_invocation): Add.
7444 (m68k_frame_saved_pc): Add.
7445 (m68k_gdbarch_init): added set_gdbarch calls for new
7446 functions and deleted macros.
7448 2002-06-23 Tom Tromey <tromey@redhat.com>
7450 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7451 (ALLDEPFILES): Likewise.
7452 (udiheaders): Removed.
7453 (udip2soc.o): Likewise.
7454 (udi2go32.o): Likewise.
7456 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7458 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7460 * infrun.c (_initialize_infrun): Delete unnecessary call to
7463 * regcache.h: Update comments describing the regcache_cpy family
7465 (regcache_save, regcache_restore): Delete declaration.
7466 (regcache_save_no_passthrough): Delete declaration.
7467 (regcache_restore_no_passthrough): Delete declaration.
7468 * regcache.c (regcache_save): Delete function.
7469 (regcache_save_no_passthrough): Delete function.
7470 (regcache_restore): Delete function.
7471 (regcache_restore_no_passthrough): Delete function.
7473 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7475 * config/m68k/tm-m68k.h: Fix typo.
7476 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7477 (m68k_frame_init_saved_regs): Declare.
7479 2002-06-21 Jim Blandy <jimb@redhat.com>
7481 Remove some vestiges of Harris 88k support.
7482 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7483 register numbering quirk.
7484 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7485 odd symbols occurring in Harris 88k ELF targets.
7487 2002-06-21 Tom Tromey <tromey@redhat.com>
7489 * gdb_locale.h: New file.
7490 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7491 (defs_h): Added gdb_locale.h.
7492 * configure, config.in: Rebuilt.
7493 * configure.in (PACKAGE): Define.
7494 * defs.h: Include gdb_locale.h.
7495 * main.c (captured_main): Call setlocale, bindtextdomain,
7498 2002-06-21 Dave Brolley <brolley@redhat.com>
7500 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7501 * config/frv/frv.mt: New file.
7502 * config/frv/tm-frv.h: New file.
7503 * configure.tgt: Support frv-*-*.
7504 * Makefile.in (frv-tdep.o): New target.
7505 * frv-tdep.c: New file.
7506 * NEWS: Mention frv.
7508 2002-06-21 Dave Brolley <brolley@redhat.com>
7510 * MAINTAINERS: Add self to "Write After Approval" list.
7512 2002-06-21 Grace Sainsbury <graces@redhat.com>
7514 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7515 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7516 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7517 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7518 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7520 * m68k-tdep.c: Include arch-utils.h
7521 (m68k_register_raw_size): Add.
7522 (m68k_register_virtual_size): Add.
7523 (m68k_register_virtual_type): Add.
7524 (m68k_register_name): Add.
7525 (m68k_stack_align): Add.
7526 (m68k_register_byte): Add.
7527 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7530 2002-06-21 Grace Sainsbury <graces@redhat.com>
7532 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7533 m68k_find_saved_regs.
7534 (m68k_pop_frame): Removed saved_regs structure, and replaced
7535 references to it with frame->saved_regs.
7536 (m68k_gdbarch_init): Added function calls to initialize the
7538 (m68k_fix_call_dummy): Add.
7539 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7540 (CALL_DUMMY): Remove.
7541 (CALL_DUMMY_LENGTH): Remove.
7542 (CALL_DUMMY_START_OFFSET): Remove.
7543 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7544 (FIX_CALL_DUMMY): Remove.
7545 (PUSH_DUMMY_FRAME): Remove.
7546 (POP_FRAME): Remove.
7548 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7550 * parse.c (parse_fprintf): New function used to avoid calls to
7551 fprintf in bison parser generated debug code.
7552 * parser-defs.h: Declaration of new parse_fprintf function.
7553 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7554 Set YYDEBUG to 1 by default.
7555 Set YYFPRINTF as parse_fprintf.
7557 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7559 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7561 (pointer_encoding, enum ptr_encoding): New.
7562 (execute_cfa_program): Take care about pointer encoding.
7563 (dwarf2_build_frame_info): Only call parse_frame_info for
7564 .debug_frame and .eh_frame.
7565 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7566 fixed augmentation handling, added relative addressing,
7567 ignore duplicate FDEs. Added comments.
7568 * dwarf2cfi.c: Reindented.
7570 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7572 * event-top.c (command_handler): Don't use space_at_cmd_start
7573 unless there is sbrk() on the host. Assign time and space data
7574 to union fields of the appropriate length.
7576 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7578 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7579 x86_64_register_name. Return type changed to 'const char *'.
7580 (x86_64_register_name2nr): Rename to x86_64_register_number.
7581 (x86_64_gdbarch_init): Update to reflect the change.
7582 * x86-64-tdep.h: Ditto.
7583 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7584 (supply_fpregset): Ditto.
7586 2002-06-19 Andrew Cagney <cagney@redhat.com>
7588 * regcache.h: Update copyright.
7589 (struct regcache, struct gdbarch): Add opaque declarations.
7590 (current_regcache): Declare global variable.
7591 (regcache_read, regcache_write): Add gdbarch parameter.
7592 (regcache_save, regcache_save_no_passthrough)
7593 (regcache_restore, regcache_restore_no_passthrough)
7594 (regcache_dup, regcache_dup_no_passthrough)
7595 (regcache_cpy, regcache_cpy_no_passthrough)
7596 (deprecated_grub_regcache_for_registers)
7597 (deprecated_grub_regcache_for_register_valid)
7598 (regcache_valid_p): Add function declarations.
7600 * regcache.c: Update copyright.
7601 (regcache_descr_handle): New global variable.
7602 (struct regcache_descr): Define.
7603 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7604 (regcache_descr, xfree_regcache_descr): New functions.
7605 (struct regcache): Define.
7606 (regcache_xmalloc, regcache_xfree): New functions.
7607 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7608 (regcache_dup, regcache_dup_no_passthrough): New functions.
7609 (regcache_valid_p, regcache_read_as_address): New functions.
7610 (deprecated_grub_regcache_for_registers): New function.
7611 (deprecated_grub_regcache_for_register_valid): New function.
7612 (current_regcache): New global variable.
7613 (register_buffer): Add regcache parameter. Update calls.
7614 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7615 (read_register_gen, write_register_gen): Update register_buffer
7616 call. Test for legacy_p instead of gdbarch_register_read_p or
7617 gdbarch_register_write_p.
7618 (regcache_collect): Update register_buffer call.
7619 (build_regcache): Rewrite. Use deprecated grub functions.
7620 (regcache_save, regcache_save_no_passthrough): New functions.
7621 (regcache_restore, regcache_restore_no_passthrough): New
7623 (_initialize_regcache): Create the regcache_data_handle. Swap
7624 current_regcache global variable.
7626 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7627 parameter to regcache_read and regcache_write calls.
7628 (sh4_register_read): Ditto.
7629 (sh64_pseudo_register_read): Ditto.
7630 (sh64_register_read): Ditto.
7631 (sh_pseudo_register_write): Ditto.
7632 (sh4_register_write): Ditto.
7633 (sh64_pseudo_register_write): Ditto.
7634 (sh64_register_write): Ditto.
7636 * defs.h (XCALLOC): Define.
7638 2002-06-19 Grace Sainsbury <graces@redhat.com>
7640 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7641 * m68k-tdep.c (m68k_gdbarch_init): Added.
7642 (m68k_dump_tdep): Added.
7644 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7646 * ada-lang.c (fill_in_ada_prototype): Update comment.
7648 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7650 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7652 (mips_abi_string, mips_abi_strings): New.
7653 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7654 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7655 tdep->mips_abi_string. Honor mips_abi_string. Default to
7656 O32 if no ABI is found.
7657 (mips_dump_tdep): Use mips_abi_strings.
7658 (mips_abi_update): New function.
7659 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7660 ``set mips abi'' and ``show mips abi''. Check the size of
7663 2002-06-19 Andrew Cagney <cagney@redhat.com>
7665 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7668 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7670 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7671 current frame using only the first stack size adjustment. All
7672 subsequent size adjustments are not considered to be part of
7673 the "static" part of the current frame.
7674 Compute the address of the saved registers relative to the
7675 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7676 in use in this frame.
7678 2002-06-18 Don Howard <dhoward@redhat.com>
7680 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7681 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7682 suggesting this solution.
7684 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7686 * config/romp/xm-rtbsd.h: Delete file.
7687 * config/romp/rtbsd.mh: Delete file.
7689 2002-06-18 Keith Seitz <keiths@redhat.com>
7691 * breakpoint.c (condition_command): Post breakpoint_modify
7692 when a condition is added to an existing breakpoint.
7693 (commands_command): Likewise for commands.
7694 (set_ignore_count): Likewise for ignore counts.
7695 If no tty, do not simply return, still need to send event
7697 (ignore_command): Only print a newline if the command came
7699 Don't call breakpoints_changed, since this is now properly
7700 handled by set_ignore_count.
7702 2002-06-18 Andrew Cagney <cagney@redhat.com>
7704 * MAINTAINERS: Note that cris-elf target can be compiled with
7706 * cris-tdep.c (cris_register_name): Make return type constant.
7707 (cris_breakpoint_from_pc): Ditto.
7709 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7711 * frame.h (struct frame_info): Change type of context to
7714 2002-06-17 Andrew Cagney <cagney@redhat.com>
7716 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7718 * gdbarch.h, gdbarch.c: Regenerate.
7719 * config/mips/tm-mips.h (mips_register_name): Update.
7720 * i386-tdep.h (i386_register_name): Update.
7721 * mips-tdep.c (mips_register_name): Update
7722 * alpha-tdep.c (alpha_register_name): Update.
7723 * arch-utils.c (legacy_register_name): Update.
7724 * arch-utils.h (legacy_register_name): Update.
7725 * avr-tdep.c (avr_register_name): Update.
7726 * ia64-tdep.c (ia64_register_name): Update.
7727 * i386-tdep.c (i386_register_name): Update.
7728 * sparc-tdep.c (sparc32_register_name): Update.
7729 (sparc64_register_name): Update.
7730 (sparclite_register_name): Update.
7731 (sparclet_register_name): Update.
7732 * sh-tdep.c (sh_generic_register_name): Update.
7733 (sh_sh_register_name): Update.
7734 (sh_sh3_register_name): Update.
7735 (sh_sh3e_register_name): Update.
7736 (sh_sh_dsp_register_name): Update.
7737 (sh_sh3_dsp_register_name): Update.
7738 (sh_sh4_register_name): Update.
7739 (sh_sh64_register_name): Update.
7740 * s390-tdep.c (s390_register_name): Update.
7741 * rs6000-tdep.c (rs6000_register_name): Update.
7742 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7743 (ns32k_register_name_32382): Update.
7744 * d10v-tdep.c (d10v_ts2_register_name): Update.
7745 (d10v_ts3_register_name): Update.
7746 * xstormy16-tdep.c (xstormy16_register_name): Update.
7747 * vax-tdep.c (vax_register_name): Update.
7748 * v850-tdep.c (v850_register_name): Update.
7749 * m68hc11-tdep.c (m68hc11_register_name): Update.
7750 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7751 (am33_register_name): Update.
7753 2002-06-17 Grace Sainsbury <graces@redhat.com>
7755 * m68k-tdep.c: Reindented.
7757 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7759 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7760 list of predefined types.
7762 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7764 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7765 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7766 REGISTER_CONVERT_TO_RAW): Remove defines.
7767 (i386_register_virtual_type, i386_register_convertible,
7768 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7770 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7771 macros mentioned above.
7773 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7774 (i386lynx_saved_pc_after_call): Remove prototype.
7775 * i386ly-tdep.c: Include "i386-tdep.h".
7776 (i386lynx_saved_pc_after_call): Make static. Use
7777 read_memory_nobpt instead of read_memory. Use
7778 read_memory_unsigned_integer instead of read_memory_integer.
7779 (i386lynx_init_abi): New function.
7780 (i386lynx_coff_osabi_sniffer): New function.
7781 (_initialize_i386bsd_tdep): New function.
7783 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7784 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7785 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7786 (i386_fix_call_dummy): Remove prototype.
7787 * i386-tdep.c (i386_call_dummy_words): New variable.
7788 (i386_gdbarch_init): Adjust for removal of the
7789 macros mentioned above.
7791 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7793 * command.h (add_setshow_auto_boolean_cmd): Replace
7794 add_set_auto_boolean_cmd.
7795 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7796 add_set_auto_boolean_cmd.
7797 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7798 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7799 mask-address'' command.
7800 (show_mask_address): Add cmd parameter.
7801 * remote.c (add_packet_config_cmd): Update. Change type of
7802 set_func and show_func to cmd_sfunc_ftype.
7803 (_initialize_remote): Update `set remote Z-packet'
7804 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7805 (show_remote_protocol_e_packet_cmd): Ditto.
7806 (show_remote_protocol_E_packet_cmd): Ditto.
7807 (show_remote_protocol_P_packet_cmd): Ditto.
7808 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7809 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7810 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7811 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7812 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7813 (show_remote_protocol_Z_packet_cmd): Ditto.
7814 (show_remote_protocol_binary_download_cmd): Ditto.
7815 (show_remote_cmd): Pass NULL to all of above.
7817 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7819 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7820 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7821 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7822 POP_FRAME): Remove defines.
7823 (i386_push_arguments, i386_store_struct_return,
7824 i386_extract_return_value, i386_store_return_value,
7825 i386_extract_struct_value_address, i386_push_dummy_frame,
7826 i386_pop_frame): Renove prototypes.
7827 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7828 macros mentioned above.
7830 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7832 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7833 add_set_boolean_cmd.
7834 (add_setshow_cmd): New function.
7835 * command.h (add_setshow_boolean_cmd): Replace
7836 add_set_boolean_cmd.
7837 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7838 and ``set rdiromatzero''.
7839 * maint.c (_initialize_maint_cmds): Update commented out code.
7840 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7841 * target.c (initialize_targets): Update `set
7842 trust-readonly-sections'.
7843 * remote.c (_initialize_remote): Update `set remotebreak'.
7845 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7847 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7848 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7849 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7850 fit into multi-arch framework.
7851 (i386_breakpoint_from_pc): New function.
7852 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7855 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7856 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7857 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7858 (i386_frameless_function_invocation, i386_frame_num_args,
7859 i386_frame_init_saved_regs): Remove prototypes.
7860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7861 macros mentioned above.
7863 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7865 * cli/cli-decode.c (set_cmd_cfunc): Update.
7866 (set_cmd_sfunc): Update.
7867 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7868 (set_cmd_sfunc, set_cmd_cfunc): Update.
7869 * cli/cli-decode.h: Update.
7871 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7873 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7874 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7876 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7878 * defs.h (auto_boolean): Declare enum.
7879 * command.h (cmd_auto_boolean): Delete enum.
7880 * mips-tdep.c (mask_address_var): Update.
7881 (mips_mask_address_p): Update.
7882 (show_mask_address): Update.
7883 * remote.c (struct packet_config): Update.
7884 (update_packet_config): Update.
7885 (show_packet_config_cmd): Update.
7886 (packet_ok): Update.
7887 (add_packet_config_cmd): Update.
7888 (_initialize_remote):
7889 * command.h: Update.
7890 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7891 (do_setshow_command): Update.
7892 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7893 * cli/cli-decode.h: Update.
7895 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7897 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7898 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7899 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7900 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7901 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7902 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7904 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7905 list of DJGPP COFF targets.
7907 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7908 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7909 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7910 (FP0_REGNUM): Remove define.
7911 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7912 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7913 (i386_register_virtual_size): Remove protoype.
7914 * i386-tdep.c (i386_register_virtual_size): Removed.
7915 (i386_extract_return_value, i386_store_return_value): Use
7916 FP0_REGNUM instead of NUM_FREGS to determine whether the
7917 floating-point registers are available.
7918 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7919 Adjust for removal of macros mentioned above.
7921 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7923 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7925 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7927 (supply_gregset, fill_gregset): Remove use of register keyword and
7928 remove declaration for regmap. Use I386_NUM_GREGS instead of
7929 NUM_REGS and NUM_FREGS.
7930 (FPREGSET_FSAVE_OFFSET): Remove.
7931 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7932 NUM_FREGS to determine whether the floating-point registers are
7935 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7936 gnu_store_registers): Replace usage of NUM_GREGS with
7939 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7940 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7941 usage of NUM_GREGS with I386_NUM_GREGS.
7943 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7945 * i386bsd-nat.c: Include "i386-tdep.h".
7946 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7949 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7950 and associated comment. They no longer make any sense, since we
7951 don't use this file anymore on Linux.
7953 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7954 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7955 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7956 elements in these arrays.
7957 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7960 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7962 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7963 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7965 2002-06-14 Andrew Cagney <cagney@redhat.com>
7967 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7968 EXTRACT_RETURN_VALUE.
7969 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7970 EXTRACT_STRUCT_VALUE_ADDRESS.
7971 * gdbarch.h, gdbarch.c: Regenerate.
7973 * values.c (value_being_returned): Handle
7974 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7975 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7977 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7978 * arm-tdep.c (arm_gdbarch_init): Update.
7979 * avr-tdep.c (avr_gdbarch_init): Update.
7980 * cris-tdep.c (cris_gdbarch_init): Update.
7981 * d10v-tdep.c (d10v_gdbarch_init): Update.
7982 * ia64-tdep.c (ia64_gdbarch_init): Update.
7983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7985 * s390-tdep.c (s390_gdbarch_init): Update.
7986 * sh-tdep.c (sh_gdbarch_init): Update.
7987 * s390-tdep.c (s390_gdbarch_init): Update.
7988 * sparc-tdep.c (sparc_gdbarch_init): Update.
7989 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7990 * v850-tdep.c (v850_gdbarch_init): Update.
7991 * vax-tdep.c (vax_gdbarch_init): Update.
7992 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7995 * config/arc/tm-arc.h: Update.
7996 * config/d30v/tm-d30v.h: Update.
7997 * config/fr30/tm-fr30.h: Update.
7998 * config/h8300/tm-h8300.h: Update.
7999 * config/h8500/tm-h8500.h: Update.
8000 * config/i386/tm-i386.h: Update.
8001 * config/i386/tm-ptx.h: Update.
8002 * config/i386/tm-symmetry.h: Update.
8003 * config/i960/tm-i960.h: Update.
8004 * config/m32r/tm-m32r.h: Update.
8005 * config/m68k/tm-delta68.h: Update.
8006 * config/m68k/tm-linux.h: Update.
8007 * config/m68k/tm-m68k.h: Update.
8008 * config/m88k/tm-m88k.h: Update.
8009 * config/mcore/tm-mcore.h: Update.
8010 * config/mips/tm-mips.h: Update.
8011 * config/mn10200/tm-mn10200.h: Update.
8012 * config/pa/tm-hppa.h: Update.
8013 * config/pa/tm-hppa64.h: Update.
8014 * config/sparc/tm-sp64.h: Update.
8015 * config/sparc/tm-sparc.h: Update.
8016 * config/sparc/tm-sparclet.h: Update.
8017 * config/z8k/tm-z8k.h: Update.
8019 2002-06-14 Andrew Cagney <cagney@redhat.com>
8021 * Makefile.in (i386_linux_tdep_h): Define.
8022 (i386_tdep_h, i387_tdep_h): Define.
8023 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8024 $(i386_tdep_h) and $(i387_tdep_h).
8025 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8027 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8029 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8030 Already covered by the default.
8032 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8033 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8034 (i386_gdbarch_init): Initialize long_double_format and long_double
8037 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8038 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8040 * config/i386/i386sol2.mh: ... here.
8041 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8042 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8043 (SIGCONTEXT_PC_OFFSET): Remove define.
8044 (IN_SIGTRAMP): Remove define.
8045 * i386-sol2-tdep.c: New file.
8047 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8048 * config/i386/tm-i386nw.h: Removed.
8050 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8051 USE_STRUCT_CONVENTION): Remove defines.
8052 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8053 (get_longjmp_target): Remove prototype.
8054 (IN_SIGTRAMP): Remove define.
8055 (i386bsd_in_sigtramp): Remove prototype.
8056 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8057 function. Update comment accordingly
8058 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8059 (FRAME_SAVED_PC): Remove define.
8060 (i386bsd_frame_saved_pc): Remove prototype.
8061 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8062 GET_LONGJMP_TARGET): Remove defines.
8063 (get_longjmp_target): Remove prototype.
8064 (IN_SIGTRAMP): Remove define.
8065 (i386bsd_in_sigtramp): Remove prototype.
8066 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8067 function. Update comment accordingly
8068 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8069 (FRAME_SAVED_PC): Remove define.
8070 (i386bsd_frame_saved_pc): Remove prototype.
8071 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8073 (USE_STRUCT_CONVENTION): Remove prototype.
8074 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8076 (_initialize_i386bsd_nat): Revise logic to determine some
8077 constants at compile time when compiling a native GDB. Warn if
8078 things don't match up with what we expect.
8079 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8081 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8082 to use date stored in `struct gdbarch_tdep'.
8083 (i386bsd_sigcontext_offset): Remove varaible.
8084 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8085 stored in `struct gdbarch_tdep'.
8086 (i386bsd_frame_saved_pc): Make static.
8087 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8088 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8089 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8090 i386fbsd4_sc_pc_offset): New variables.
8091 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8092 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8094 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8096 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8097 Modify the value of i386fbsd_sigtramp_start and
8098 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8099 i386fbsd_sigtramp_end.
8100 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8103 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8104 define to i386-linux-tdep.h.
8105 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8106 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8108 (i386_linux_register_name, i386_linux_register_byte,
8109 i386_linux_register_raw_size): Remove prototypes.
8110 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8111 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8112 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8113 TARGET_WRITE_PC): Remove defines.
8114 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8115 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8116 i386_linux_write_pc): Remove prototypes.
8117 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8118 (get_longjmp_target): Remove prototype.
8119 * i386-linux-tdep.h: New file.
8120 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8121 * i386-linux-tdep.c: Include "i386-tdep.h" and
8122 "i386-linux-tdep.h".
8123 (i386_linux_register_name, i386_linux_register_byte,
8124 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8125 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8127 (i386_linux_init_abi): New function.
8128 (_initialize_i386_linux_tdep): New function.
8130 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8131 (i386_saved_pc_after_call): Remove prototype.
8132 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8133 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8134 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8135 (i386_register_name, i386_stab_reg_to_regnum,
8136 i386_dwarf_reg_to_regnum): Remove prototypes.
8137 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8138 SIZEOF_SSE_REGS): Remove defines.
8139 (REGISTER_BYTES): Remove define.
8140 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8141 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8142 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8143 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8144 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8145 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8146 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8147 (get_longjmp_target): Remove prototype.
8148 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8149 (sigtramp_saved_pc): Remove define.
8150 (i386v4_sigtramp_saved_pc): Remove prototype.
8151 * config/i386/tm-go32.h (FRAME_CHAIN,
8152 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8153 (i386go32_frame_saved_pc): Remove prototype.
8154 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8155 (get_longjmp_target): Remove prototype.
8156 * i386-tdep.h: Include "osabi.h".
8157 (enum i386_abi): Removed.
8158 (enum struct_return): New enum.
8159 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8160 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8161 sc_pc_offset members.
8162 (i386_gdbarch_register_os_abi): Remove prototype.
8163 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8164 I386_SSE_NUM_REGS): New defines.
8165 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8166 I386_SSE_SIZEOF_REGS): New defines.
8167 (i386_register_name, i386_register_byte, i386_register_raw_size):
8169 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8170 (i386bsd_sigtramp_saved_pc): New prototype.
8171 * i386-tdep.c: Don't include "elf-bfd.h".
8172 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8173 i386_frame_chain, i386_saved_pc_after_call): Make static.
8174 (i386_frame_saved_pc): Rewrite to call architecture dependent
8175 function to deal with signal handlers. Make static.
8176 (i386go32_frame_saved_pc): Removed.
8177 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8179 (i386_get_longjmp_target): New function.
8180 (default_struct_convention, pcc_struct_convention,
8181 reg_struct_convention, valid_conventions, struct_convention): New
8183 (i386_use_struct_convention): New function.
8184 (i386v4_sigtramp_saved_pc): Renamed to
8185 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8186 (i386_pc_in_sigtramp): New function.
8187 (i386_abi_names): Removed.
8188 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8189 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8191 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8192 i386_gdbarch_register_os_abi): Removed.
8193 (struct i386_abi_handler): Removed.
8194 (i386_abi_handler_list): Removed.
8195 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8197 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8198 i386_nw_init_abi): New functions.
8199 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8200 Use set_gdbarch_xxx() calls instead of relying on macros for a
8202 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8203 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8204 Register the various architecture variants defined in this file.
8206 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8208 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8209 (struct main_type): Remove arg_types member. Update comments for
8211 (TYPE_ARG_TYPES): Remove.
8212 (TYPE_FN_FIELD_ARGS): Update.
8213 (smash_to_method_type): Update prototype.
8215 * c-typeprint.c (cp_type_print_method_args): Take method type
8216 instead of argument list. Use new argument layout. Simplify.
8217 (c_type_print_args): Use new argument layout. Simplify.
8218 (c_type_print_base): Update call to cp_type_print_method_args.
8219 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8220 argument; use die->type instead. Update call to
8221 smash_to_method_type.
8222 (read_structure_scope): Update call to dwarf2_add_member_fn.
8223 * gdbtypes.c (allocate_stub_method): Update comment.
8224 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8225 Use new argument layout.
8226 (check_stub_method): Use new argument layout. Don't count
8227 void as an argument.
8228 (print_arg_types): Update comments. Use new argument layout.
8229 (recursive_dump_type): Don't print arg_types member.
8230 * hpread.c (hpread_read_struct_type): Use new argument layout.
8231 (fixup_class_method_type): Likewise.
8232 (hpread_type_lookup): Likewise.
8233 * stabsread.c (read_type): Update calls to read_args and
8234 smash_to_method_type.
8235 (read_args): Use new argument layout. Simplify.
8236 * valops.c (typecmp): Use new argument layout. Update parameters
8237 and comments. Simplify.
8238 (hand_function_call): Use new argument layout.
8239 (search_struct_method): Update call to typecmp.
8240 (find_overload_match): Use new argument layout.
8242 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8244 * NEWS: Mention multithreaded debug support for gdbserver.
8246 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8248 * MAINTAINERS: Mention NEWS.
8250 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8252 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8253 (struct mips_objfile_private, compare_pdr_entries): New.
8254 (non_heuristic_proc_desc): Read the ".pdr" section if it
8257 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8259 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8260 (arm_debug): New static variable.
8261 (_initialize_arm_tdep): Add ``set debug arm'' command.
8263 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8265 * Makefile.in (sim_arm_h): Define.
8266 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8267 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8268 (arm_register_sim_regno): New function, map an internal REGNUM
8269 onto a simulator register number.
8270 (arm_gdbarch_init): Set register_sim_regno.
8272 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8274 * MAINTAINERS: Add self.
8276 2002-06-11 Jim Blandy <jimb@redhat.com>
8278 * source.c (source_info): Mention whether the symtab has
8279 information about preprocessor macros.
8281 Call the command `info macro', not `show macro'.
8282 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8284 (_initialize_macrocmd): Register `info_macro_command' in
8285 `infolist', not `showlist'.
8287 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8289 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8290 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8291 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8292 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8293 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8295 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8296 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8297 (_initialize_mips_tdep): Remove dead code.
8298 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8299 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8300 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8301 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8302 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8303 MIPS_LAST_FP_ARG_REGNUM): Remove.
8305 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8307 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8308 (unwind_tmp_obstack_free, parse_frame_info)
8309 (update_context, cfi_read_fp, cfi_write_fp)
8310 (cfi_frame_chain, cfi_init_extra_frame_info)
8311 (cfi_virtual_frame_pointer): Use the above function.
8312 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8314 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8316 * v850-tdep.c (v850_type_is_scalar): New function.
8317 (v850_use_struct_convention): Match current gcc implementation
8318 as close as possible.
8319 (v850_push_arguments): Fix stack_offset handling. Don't write
8320 struct_addr into register. This is done by v850_store_struct_return.
8321 (v850_extract_return_value): Care for structs.
8322 (v850_store_return_value): Ditto.
8323 (v850_store_struct_return): Actually write address.
8325 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8327 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8328 without debug information too.
8330 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8332 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8333 Make multi-arch pure.
8334 * gdbarch.h, gdbarch.c: Re-generate.
8335 * arm-tdep.c (arm_print_float_info): Update.
8336 * arch-utils.h (default_print_float_info): Update.
8337 * arch-utils.c (default_print_float_info): Update.
8338 * infcmd.c (float_info): Update call.
8340 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8342 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8343 the front of the initialize list.
8345 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8347 * infrun.c (struct inferior_status): Replace fields
8348 selected_frame_address and selected_level with field
8350 (save_inferior_status): Update. Use get_frame_id.
8351 (struct restore_selected_frame_args): Delete.
8352 (restore_selected_frame): Update. Use frame_find_by_id.
8353 (restore_inferior_status): Update.
8355 * breakpoint.h (struct breakpoint): Change type of
8356 watchpoint_frame to frame_id.
8357 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8358 call to get_current_frame.
8359 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8361 (watchpoint_check): Use frame_find_by_id.
8363 * frame.h (record_selected_frame): Delete declaration.
8364 * stack.c (record_selected_frame): Delete function.
8366 * frame.h (struct frame_id): Define.
8367 (get_frame_id): Declare.
8368 (frame_find_by_id): Declare.
8369 * frame.c (frame_find_by_id): New function.
8370 (get_frame_id): New function.
8372 2002-06-10 Andrey Volkov <avolkov@transas.com>
8374 * ser-e7kpc.c: Fix duplicated define and call of
8375 _initialize_ser_e7000pc
8377 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8379 * signals/signals.c (target_signal_from_host): Fix #ifdef
8381 (do_target_signal_to_host): Likewise.
8383 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8385 * mips-tdep.c (mips_find_abi_section): New function.
8386 (mips_gdbarch_init): Call it.
8388 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8390 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8391 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8392 after Andrew's 2002-06-08 gdbarch change.
8394 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8396 * i386-linux-nat.c (suppy_gregset): Don't supply
8397 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8399 (fill_gregset): Don't fetch it under the same circumstances.
8401 2002-06-09 Andrew Cagney <cagney@redhat.com>
8403 * Makefile.in (callback_h): Define.
8404 (remote_sim_h): Update path to remote-sim.h.
8405 (remote-rdp.o): Add $(callback_h).
8406 (remote-sim.o): Use $(callback_h).
8407 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8408 * remote-rdp.c: Include "gdb/callback.h".
8410 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8412 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8413 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8415 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8417 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8418 * rdi-share/serpardr.c: Ditto.
8419 * rdi-share/unixcomm.c: Ditto.
8420 * rdi-share/serdrv.c: Ditto.
8421 * rdi-share/hostchan.h: Ditto.
8422 * rdi-share/hostchan.c: Ditto.
8423 * rdi-share/host.h: Ditto.
8424 * rdi-share/devsw.c: Ditto.
8426 * objfiles.h: Change type of obj_private to void pointer.
8427 * pa64solib.c: Update copyright. Don't include "assert.h", use
8428 strcmp instead of STREQ, use LONGEST, do not use PTR
8429 * somsolib.c: Ditto.
8431 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8432 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8433 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8435 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8437 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8438 (default_get_saved_register): Delete function.
8439 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8440 generic_unwind_get_saved_register.
8441 * gdbarch.h, gdbarch.c: Re-generate.
8443 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8445 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8446 generic_func_frame_chain_valid.
8447 * gdbarch.h, gdbarch.c: Re-generate.
8448 * blockframe.c (generic_func_frame_chain_valid): Only check
8449 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8450 passing FP to PC_IN_CALL_DUMMY.
8453 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8455 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8456 (register_gdbarch_data): Initialize init_p.
8457 (gdbarch_data): Initialize data pointer using the init function.
8458 (init_gdbarch_data): Delete function.
8459 (gdbarch_update_p): Update.
8460 (initialize_non_multiarch): Update.
8461 (struct gdbarch): Add field initialized_p.
8462 * gdbarch.h, gdbarch.c: Re-generate.
8464 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8466 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8467 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8468 better do the things actually here.
8469 * x86-64-tdep.c (x86_64_register_name2nr): New.
8470 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8471 (x86_64_gdbarch_init): Respect the above change.
8472 * x86-64-tdep.h (x86_64_register_name2nr)
8473 (x86_64_register_nr2name): Add prototypes.
8474 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8476 2002-06-06 Michael Snyder <msnyder@redhat.com>
8478 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8479 Delete extra braces and re-indent.
8480 (d10v_store_return_value): Char return values
8481 must be shifted over by one byte in R0.
8482 (d10v_extract_return_value): Delete extra braces, re-indent.
8484 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8486 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8487 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8488 (d10v_integer_to_address): Rewrite.
8489 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8490 the d10v specific functions which take care of converting to the
8493 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8495 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8496 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8498 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8500 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8502 * config/tm-linux.h: Ditto.
8503 * config/alpha/tm-alphalinux.h: Ditto.
8504 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8505 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8506 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8507 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8508 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8509 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8510 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8511 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8512 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8513 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8514 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8515 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8516 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8517 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8518 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8519 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8520 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8521 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8522 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8523 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8524 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8525 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8526 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8527 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8528 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8529 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8530 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8531 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8532 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8533 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8534 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8535 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8536 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8537 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8538 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8539 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8540 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8542 2002-05-04 Aidan Skinner <aidan@velvet.net>
8544 * ada-exp.tab.c: New file
8545 * ada-exp.y: New file
8546 * ada-lang.c: New file
8547 * ada-lang.h: New file
8548 * ada-lex.c: New file
8549 * ada-lex.l: New file
8550 * ada-tasks.c: New file
8551 * ada-typeprint.c: New file
8552 * ada-valprint.c: New file
8554 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8556 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8557 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8559 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8561 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8562 insetead of ppc-linux-tdep.o.
8563 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8564 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8566 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8568 2002-05-07 Christian Groessler <chris@groessler.org>
8569 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8570 bit register contents for little endian hosts.
8572 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8574 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8577 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8579 * gdbarch.h: Regenerate.
8581 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8583 * MAINTAINERS: Add everyone to write-after-approval list.
8585 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8587 * stack.c (frame_info): Use frame_register_unwind instead of
8588 saved_regs. Mention when the SP is on the stack or in a register.
8590 * frame.h (frame_register_unwind_ftype): Define. Document.
8591 (struct frame_info): Add field register_unwind and
8592 register_unwind_cache.
8593 (frame_register_unwind): Declare.
8594 (generic_unwind_get_saved_register): Declare.
8596 * frame.c (frame_register_unwind): New function.
8597 (generic_unwind_get_saved_register): New function.
8599 * blockframe.c (generic_call_dummy_register_unwind): New function.
8600 (frame_saved_regs_register_unwind): New function.
8601 (set_unwind_by_pc): New function.
8602 (create_new_frame): New function.
8603 (get_prev_frame): New function.
8605 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8607 * a29k-share/: Delete directory.
8608 * remote-vx29k.c: Delete file.
8610 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8612 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8613 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8615 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8617 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8618 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8621 (sparcnbsd-tdep.o): New dependency lists.
8622 * NEWS: Note new UltraSPARC NetBSD native configuration.
8623 * configure.host (sparc64-*-netbsd*): New host.
8624 * configure.tgt (sparc-*-netbsdelf*)
8625 (sparc-*-netbsd*): Set gdb_target to nbsd.
8626 (sparc64-*-netbsd*): New target.
8627 * sparc64nbsd-nat.c: New file.
8628 * sparcnbsd-nat.c: New file.
8629 * sparcnbsd-tdep.c: New file.
8630 * sparcnbsd-tdep.h: New file.
8631 * config/sparc/nbsd.mt: New file.
8632 * config/sparc/nbsd64.mh: New file.
8633 * config/sparc/nbsd64.mt: New file.
8634 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8635 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8637 * config/sparc/nbsdaout.mt: Remove.
8638 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8639 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8641 * config/sparc/nbsdelf.mt: Remove.
8642 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8643 sparc-nat.c compatiblity defines.
8644 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8645 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8646 * config/sparc/tm-nbsd64.h: New file.
8647 * config/sparc/tm-nbsdaout.h: Remove.
8648 * config/sparc/xm-nbsd.h: Remove.
8650 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8652 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8653 * sparc-tdep.c: Include osabi.h.
8654 (gdbarch_tdep): Add osabi member.
8655 (_initialize_sparc_tdep): Use gdbarch_register.
8656 (sparc_gdbarch_init): Use generic OS ABI framework.
8657 (sparc_dump_tdep): New function.
8659 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8661 * corefile.c (do_captured_read_memory_integer): Return non-zero
8663 (safe_read_memory_integer): Copy result of memory read when
8664 status is non-zero. Also, add comments.
8666 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8668 * Makefile.in (ppc_tdep_h): Define.
8671 (rs6000-tdep.o): Use $(ppc_tdep_h).
8674 (ppcnbsd-tdep.o): New dependency lists.
8675 * ppc-tdep.h: Use generic OS ABI framework.
8676 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8677 (ppc_linux_init_abi): New functions.
8678 (ppc_sysv_abi_broken_use_struct_convention)
8679 (ppc_sysv_abi_use_struct_convention)
8680 (ppc_sysv_abi_push_arguments): Move to...
8681 * ppc-sysv-tdep.c: ...here.
8682 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8683 * rs6000-tdep.c (process_note_abi_tag_sections)
8684 (get_elfosabi): Remove.
8685 (rs6000_gdbarch_init): Use generic OS ABI framework.
8686 (rs6000_dump_tdep): New function.
8687 (_initialize_rs6000_tdep): Use gdbarch_register.
8688 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8689 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8690 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8691 of ppc-linux-tdep.o.
8692 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8693 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8694 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8695 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8696 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8697 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8699 2002-05-29 Jim Blandy <jimb@redhat.com>
8701 * macroscope.c (default_macro_scope): Put `void' in empty argument
8704 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8706 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8707 * arch-utils.c: Include "sim-regno.h".
8708 * gdbarch.sh: Don't include "sim-regno.h".
8709 * gdbarch.h, gdbarch.c: Regenerate.
8710 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8712 * arch-utils.h (legacy_register_sim_regno): To here.
8713 * remote-sim.c (legacy_register_sim_regno): Move function from
8715 * arch-utils.c (legacy_register_sim_regno): To here.
8717 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8719 * sim-regno.h: New file.
8720 * Makefile.in (sim_regno_h): Define.
8721 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8722 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8723 (legacy_register_sim_regno): New function.
8724 (one2one_register_sim_regno): New function.
8725 (gdbsim_fetch_register): Rewrite.
8726 (gdbsim_store_register): Only store a register when
8727 REGISTER_SIM_REGNO is valid.
8728 * d10v-tdep.c: Include "sim-regno.h".
8729 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8730 (d10v_ts3_register_sim_regno): Ditto.
8731 * gdbarch.sh: Include "sim-regno.h".
8732 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8733 * gdbarch.h, gdbarch.c: Regenerate.
8734 * arch-utils.h (default_register_sim_regno): Delete declaration.
8735 * arch-utils.c (default_register_sim_regno): Delete function.
8737 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8739 * ppcnbsd-nat.c: Rewrite.
8740 * ppcnbsd-tdep.c: New file.
8741 * ppcnbsd-tdep.h: New file.
8742 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8743 solib.o, and solib-svr4.o.
8744 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8745 nbsd-tdep.o, and corelow.o.
8747 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8749 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8750 `tr' and `sed'. Mention that `broken' targets are not expected to
8753 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8755 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8756 Let PC point right after the prologue before looking up symbols.
8758 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8760 * i386-tdep.c (i386_register_virtual_type): Return
8761 builtin_type_vec128i for SSE registers.
8763 * gdbtypes.h (builtin_type_vec128i): Declare.
8765 * gdbtypes.c (build_builtin_type_vec128i): New function.
8766 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8767 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8768 (build_gdbtypes): Initialize new builtin vector types.
8769 (_initialize_gdbtypes): Register new vector types with gdbarch.
8771 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8773 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8774 since it has been multi-arch'd.
8775 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8776 Move Alpha and VAX multi-arch news entries to same section
8777 as other multi-arch news.
8779 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8781 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8782 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8783 static. Rename some register numbers to put them in ns32k-tdep
8785 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8786 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8788 (_initialize_ns32k_tdep): Use gdbarch_register.
8789 * ns32k-tdep.h: New file.
8790 * ns32knbsd-tdep.c: New file.
8791 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8792 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8793 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8794 REGISTER_BYTES, REGISTER_BYTE): Remove.
8795 * config/ns32k/tm-ns32k.h: New file.
8796 * config/ns32k/tm-umax.h: Remove.
8798 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8800 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8801 ns32k_store_struct_return, ns32k_extract_return_value,
8802 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8804 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8805 ns32k_saved_pc_after_call.
8806 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8807 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8808 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8809 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8810 ns32k_extract_struct_value_address.
8812 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8814 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8815 ns32k_fix_call_dummy): New.
8816 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8817 ns32k_call_dummy_words.
8818 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8819 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8820 CALL_DUMMY_NARGS): Remove.
8821 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8823 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8825 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8826 ns32k_frame_saved_pc, ns32k_frame_args_address,
8827 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8828 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8829 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8830 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8831 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8832 (BREAKPOINT): Remove..
8833 (FRAME_CHAIN): Define as ns32k_frame_chain.
8834 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8835 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8836 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8837 (FRAME_FIND_SAVED_REGS): Remove.
8838 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8839 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8840 (POP_FRAME): Define as ns32k_pop_frame.
8842 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8844 * ns32k-tdep.c (ns32k_register_byte_32082,
8845 ns32k_register_byte_32382, ns32k_register_raw_size,
8846 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8848 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8849 ns32k_register_byte_32382.
8850 * config/ns32k/tm-umax.h: Update copyright years.
8851 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8852 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8853 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8854 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8855 (ns32k_get_enter_addr): Fix prototype.
8857 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8859 * ns32k-tdep.c: Update copyright years.
8860 (ns32k_register_name_32082): New function.
8861 (ns32k_register_name_32382): Ditto.
8862 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8863 (REGISTER_NAME): Define as ns32k_register_name_32382.
8864 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8865 (REGISTER_NAME): Define as ns32k_register_name_32082.
8867 2002-05-24 Jim Blandy <jimb@redhat.com>
8869 * dwarf2read.c (free_line_header): Use xfree, not free.
8871 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8873 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8874 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8876 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8878 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8880 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8882 From Ross Alexander at NEC Europe:
8883 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8885 2002-05-23 Michael Snyder <msnyder@redhat.com>
8887 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8888 for input, rather than parse_and_eval_address.
8890 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8892 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8893 * Makefile.in (sim_d10v_h): Update definition.
8895 2002-05-24 Andrew Cagney <cagney@redhat.com>
8897 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8898 change `2002-05-22 Michael Snyder' below.
8899 (d10v_push_arguments): Ditto.
8900 (d10v_extract_return_value): Ditto.
8902 2002-05-23 Jim Blandy <jimb@redhat.com>
8904 * macrotab.c (check_for_redefinition): Don't complain if the new
8905 definition is the same as the previous one. Take more arguments
8906 to allow the comparison.
8907 (macro_define_object, macro_define_function): Pass more arguments
8908 to check_for_redefinition.
8910 2002-05-22 Michael Snyder <msnyder@redhat.com>
8912 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8913 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8914 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8915 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8916 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8917 Add a temp variable to save a call (and a memory read).
8918 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8919 if possible (so that PC_IN_CALL_DUMMY will work).
8921 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8923 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8925 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8927 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8929 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8930 (dwarf2_build_frame_info): Add offset to fde->initial_location
8931 so that frames of shared libraries are mapped correctly.
8932 (execute_stack_op): Change type of 'result' from ULONGEST to
8935 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8937 * config/alpha/tm-nbsd.h: Include solib.h.
8939 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8941 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8942 assumptions about the host's byte order.
8944 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8946 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8948 * alphanbsd-tdep.c: Include solib-svr4.h.
8949 * shnbsd-tdep.c: Ditto.
8951 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8953 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8954 nbsd-tdep.h to dependency list.
8955 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8956 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8957 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8958 nbsdaout.mh and nbsdelf.mh consistently.
8959 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8960 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8961 nbsdaout.mt and nbsdelf.mh consistently.
8962 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8963 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8964 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8965 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8966 a.out shared library stuff from here...
8967 * config/nm-nbsdaout.h: ...to here.
8968 * config/tm-nbsd.h: Remove.
8969 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8970 * config/arm/nbsd.mh: Remove.
8971 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8973 * config/arm/nbsdaout.mh: New file.
8974 * config/arm/nbsdelf.mh: New file.
8975 * config/arm/nm-nbsdaout.h: New file.
8976 * config/i386/nbsd.mh: Remove.
8977 * config/i386/nbsd.mt: Remove.
8978 * config/i386/nbsdaout.mh: New file.
8979 * config/i386/nbsdaout.mt: New file.
8980 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8981 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8982 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8983 i386_register_u_addr): Remove.
8984 * config/i386/nm-nbsdaout.h: New file.
8985 * config/i386/nm-nbsdelf.h: Remove.
8986 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8987 (USE_STRUCT_CONVENTION): Remove.
8988 * config/i386/tm-nbsdaout.h: New file.
8989 * config/i386/tm-nbsdelf.h: Remove.
8990 * config/m68k/nbsd.mh: Remove.
8991 * config/m68k/nbsd.mt: Remove.
8992 * config/m68k/nbsdaout.mh: New file.
8993 * config/m68k/nbsdaout.mt: New file.
8994 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8995 * config/m68k/nm-nbsdaout.h: New file.
8996 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8997 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8998 * config/ns32k/nbsd.mh: Remove.
8999 * config/ns32k/nbsd.mt: Remove.
9000 * config/ns32k/nbsdaout.mh: New file.
9001 * config/ns32k/nbsdaout.mt: New file.
9002 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9003 * config/ns32k/nm-nbsdaout.h: New file.
9004 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9005 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9006 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9007 (SVR4_SHARED_LIBS): Remove.
9008 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9009 * config/sparc/nbsd.mh: Remove.
9010 * config/sparc/nbsd.mt: Remove.
9011 * config/sparc/nbsdaout.mh: New file.
9012 * config/sparc/nbsdaout.mt: New file.
9013 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9014 * config/sparc/nbsdelf.mt: New file.
9015 * config/sparc/nm-nbsdaout.h: New file.
9016 * config/sparc/nm-nbsdelf.h: Remove.
9017 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9018 * config/sparc/tm-nbsdaout.h: New file.
9020 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9022 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9024 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9026 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9028 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9030 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9032 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9034 * NEWS: Note new MIPS NetBSD native configuration.
9035 * configure.host (mips*-*-netbsd*): New host.
9036 * configure.tgt (mips*-*-netbsd*): New target.
9037 * mipsnbsd-nat.c: New file.
9038 * mipsnbsd-tdep.c: New file.
9039 * mipsnbsd-tdep.h: New file.
9040 * config/mips/nbsd.mh: New file.
9041 * config/mips/nbsd.mt: New file.
9042 * config/mips/nm-nbsd.h: New file.
9043 * config/mips/tm-nbsd.h: New file.
9045 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9047 * Makefile.in (SFILES): Add osabi.c.
9048 (COMMON_OBS): Add osabi.o.
9049 (osabi.o): New dependency list.
9050 * osabi.c: New file.
9051 * osabi.h: New file.
9052 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9054 * Makefile.in (alpha_tdep_h): Define and use instead of
9056 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9057 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9059 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9060 * alpha-tdep.h: Include osabi.h.
9061 (alpha_abi): Remove.
9062 (gdbarch_tdep): Use generic OS ABI framework.
9063 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9064 gdbarch_register_osabi.
9065 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9066 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9067 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9069 * Makefile.in (sh_tdep_h): Add osabi.h.
9070 * sh-tdep.h (sh_osabi): Remove.
9071 (gdbarch_tdep): Use generic OS ABI framework.
9072 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9073 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9074 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9075 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9077 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9078 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9079 gdbarch_register_osabi.
9080 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9081 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9082 (get_elfosabi): Rename to...
9083 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9084 ABI framework support routines.
9085 (arm_gdbarch_init): Use generic OS ABI framework.
9086 (arm_dump_tdep): Likewise.
9087 (_initialize_arm_tdep): Likewise.
9088 * arm-tdep.h: Include osabi.h.
9090 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9092 (arm_gdbarch_register_os_abi): Remove prototype.
9093 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9094 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9096 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9097 * mips-tdep.c: Include osabi.h.
9098 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9101 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9103 * h8300-tdep.c: Fix formatting.
9105 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9107 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9108 printing vector registers.
9110 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9112 From Fernando Nasser:
9113 * remote.c (remote_async_open_1): Re-throw the exception when the
9115 (remote_cisco_open): Ditto.
9116 (remote_open_1): Ditto.
9118 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9120 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9121 (remote_start_remote): Add uiout parameter. Pass through to
9122 remote_start_remote_dummy.
9123 (remote_open_1): Use catch_exception instead of catch_errors.
9124 (remote_async_open_1): Ditto.
9125 (remote_cisco_open): Ditto.
9127 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9129 * remote.c (remote_start_remote): Replace PTR with void pointer.
9130 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9133 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9135 * gdb_indent.sh: Allow the script to be run in the sim directory.
9137 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9139 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9140 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9142 * corelow.c (core_open): Only call set_gdbarch_from_file if
9145 2002-05-17 Andrey Volkov <avolkov@transas.com>
9147 * h8300-tdep.c: Add support of EXR register
9148 * config/h8300/tm-h8300.h: Ditto.
9150 2002-05-17 Andrey Volkov <avolkov@transas.com>
9152 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9154 2002-05-17 Andrey Volkov <avolkov@transas.com>
9156 * h8300-tdep.c: Change literal regnums to REGNO.
9158 2002-05-17 Jim Blandy <jimb@redhat.com>
9160 * NEWS: Note addition of macro support.
9162 Expand preprocessor macros in C expressions.
9163 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9164 (scan_macro_expansion, scanning_macro_expansion,
9165 finished_macro_expansion): New function declarations.
9166 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9167 variable declarations.
9168 * parser-defs.h (expression_context_pc): New declaration.
9169 * parse.c (expression_context_pc): New variable.
9170 (parse_exp_1): Set expression_context_pc, as well as
9171 expression_context_block.
9172 * c-exp.y (yylex): If we're not already reading the result of a
9173 macro expansion, try to macro-expand the next token. When we're
9174 done scanning a macro expansion, switch back to the mainline text.
9175 Commas and `if's in a macro's expansion don't terminate the input.
9176 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9177 (macro_original_text, macro_expanded_text,
9178 expression_macro_lookup_func, expression_macro_lookup_baton): New
9180 (scan_macro_expansion, scanning_macro_expansion,
9181 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9182 c_preprocess_and_parse): New functions.
9183 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9184 c_preprocess_and_parse, instead of c_parse.
9185 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9186 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9188 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9190 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9191 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9192 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9194 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9196 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9198 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9200 * Makefile.in (sh_tdep_h): Define and use.
9201 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9202 register enum): Move to...
9203 * * sh-tdep.h: ...here.
9204 * sh-tdep.c: Include sh-tdep.h.
9205 * sh3-rom.c: Likewise.
9206 * shnbsd-tdep.c: Likewise.
9208 2002-05-16 Michael Snyder <msnyder@redhat.com>
9210 * arm-tdep.c: Spelling fix in comment.
9212 2002-05-16 Jim Blandy <jimb@redhat.com>
9214 Add commands for manually expanding macros and showing their
9216 * macrocmd.c, macroscope.c, macroscope.h: New files.
9217 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9218 (macroscope_h): New variable.
9219 (HFILES_NO_SRCDIR): Add macroscope.h.
9220 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9221 (macroscope.o, macrocmd.o): New rules.
9223 Teach the Dwarf 2 reader to read macro information.
9224 * dwarf2read.c: #include "macrotab.h".
9225 (dwarf_macinfo_buffer): New variable.
9226 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9228 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9229 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9230 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9231 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9232 dwarf2_macro_spaces_in_definition): New complaints.
9233 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9234 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9235 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9236 the partial symbol table.
9237 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9238 from what's recorded in the partial symbol table.
9239 (read_file_scope): If the compilation unit has a
9240 `DW_AT_macro_info' attribute, read its macro information.
9241 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9243 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9246 * ser-tcp.c: Don't include <netinet/udp.h>.
9248 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9250 * MAINTAINERS: Update my email address.
9252 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9254 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9255 include file of the same name.
9257 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9259 * configure.tgt: Mark v850 as multi-arched.
9260 * config/v850/tm-v850.h: Remove file.
9261 * config/v850/v850.mt: Eliminate TM_FILE.
9263 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9265 * v850-tdep.c: Full multi-arch.
9266 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9267 Define GDB_MULTI_ARCH to 2.
9269 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9271 * p-exp.y (current_type): New static variable.
9272 Carries the type of the expression at the position that is parsed.
9273 (push_current_type, pop_current_type): Two new functions. Used
9274 to store/restore current_type in expression on specific tokens.
9275 (search_field): New static variable. Set to one after parsing a point
9276 as at that point only a FIELDNAME token should be searched.
9277 (FIELDNAME): New token. After a point only a token belonging to
9278 current_type type definition is allowed.
9279 (all over token rules): reset and change current_type according
9281 (exp '[' rule): insert implicit array index field if
9282 exp is a pascal string type.
9284 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9286 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9287 frame info. Use frame_info's saved_regs instead of matching member
9288 in extra_frame_info throughout.
9289 (v850_frame_init_saved_regs): New function.
9290 (v850_init_extra_frame_info): Move most functionality into
9291 v850_frame_init_saved_regs().
9292 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9293 (v850_frame_find_saved_regs): Remove declaration.
9294 (FRAME_FIND_SAVED_REGS): Remove definition.
9295 (v850_frame_init_saved_regs): Add declaration.
9296 (FRAME_INIT_SAVED_REGS): Add definition.
9298 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9300 * v850-tdep.c: Begin multi-arch'ing v850.
9301 (v850_target_architecture_hook): Remove function.
9302 (v850_gdbarch_init): New function. Add code previously in
9303 v850_target_architecture_hook().
9304 (_initialize_v850_tdep): Don't set target_architecture_hook.
9305 Call register_gdbarch_init() instead.
9307 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9309 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9310 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9311 (fixup_class_method_type): Likewise.
9313 2002-05-15 Jim Blandy <jimb@redhat.com>
9315 Add macro structures to GDB's symbol tables. Nobody puts anything
9317 * symtab.h (struct symtab): New member: `macro_table'.
9318 * buildsym.h (pending_macros): New global variable.
9319 * buildsym.c: #include "macrotab.h".
9320 (buildsym_init): Initialize `pending_macros'.
9321 (end_symtab): If we found macro information while reading a CU's
9322 debugging info, do build a symtab structure for it. Make the
9323 symtab point to the macro information, and clear the
9324 `pending_macros' pointer which held it while we were reading the
9326 (really_free_pendings): Free any pending macro table.
9327 * objfiles.h (struct objfile): New member: `macro_cache'.
9328 * objfiles.c (allocate_objfile): Set allocate and free functions
9329 for the macro cache's objstack.
9330 (free_objfile): Empty the macro cache's obstack.
9331 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9332 set new allocate and free functions for it.
9333 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9334 free functions for the macro cache's objstack. (Why is this
9335 function building its own objfile?)
9336 * symmisc.c (print_objfile_statistics): Print statistics on the
9338 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9340 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9342 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9343 (REGISTER_U_ADDR): Delete definition.
9344 (arm_register_u_addr): Delete declaration.
9346 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9348 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9349 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9351 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9353 * regcache.c (register_valid): Revise comments refering to "Not
9354 available" and "unavailable".
9355 * frame.c (frame_register_read): Ditto.
9356 * findvar.c (value_of_register): Ditto.
9358 2002-05-15 Andrew Cagney <cagney@redhat.com>
9360 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9361 (remote-sim.o): Update dependencies.
9362 (d10v-tdep.o): Specify dependencies.
9363 (sim_d10v_h): Define.
9365 2002-05-14 Jim Blandy <jimb@redhat.com>
9367 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9368 * macrotab.c (macro_lookup_inclusion, find_definition,
9369 new_macro_table): Same.
9371 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9372 not `! strcmp ()'. This is a dubious improvement.
9373 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9375 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9376 although it's not necessary, to avoid a warning.
9378 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9380 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9381 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9382 TYPE_INSTANCE_FLAGS.
9383 (struct main_type): New.
9384 (struct type): Move most members to struct main_type. Change
9385 cv_type and as_type to new type_chain member. Add instance_flags.
9386 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9387 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9388 (finish_cv_type): Remove prototype.
9389 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9391 (alloc_type_instance): New function.
9392 (smash_type): New function.
9393 (make_pointer_type, make_reference_type, make_function_type)
9394 (smash_to_member_type, smash_to_method_type): Call smash_type.
9395 (make_qualified_type): New function.
9396 (make_type_with_address_space): Call make_qualified_type.
9397 (make_cv_type): Likewise.
9398 (finish_cv_type): Remove unnecessary function.
9399 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9400 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9401 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9402 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9403 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9404 * hpread.c (hpread_read_struct_type): Likewise.
9405 * stabsread.c (read_struct_type): Likewise.
9407 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9409 * configure.tgt: Add a catch all sh* target, for cases like
9410 sh[2,3,4]-elf and sh-hms.
9412 2002-05-14 Keith Seitz <keiths@redhat.com>
9414 * event-loop.c (create_file_handler): Don't do anything but
9415 update data when we are given a fd which we are already
9418 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9420 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9421 (update_context): Use __func__ in warnings.
9423 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9425 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9426 and tcp_close to net_open and net_close.
9427 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9428 using UDP if requested. Don't try to disable Nagle on UDP
9430 * remote.c (remote_serial_open): New function. Warn about UDP.
9431 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9433 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9435 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9437 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9439 * configure.tgt: Remove sh-hms target.
9440 * MAINTAINERS: Don't list sh-hms as a separate target.
9442 2002-05-13 Jim Blandy <jimb@redhat.com>
9444 Add first preprocessor macro-expansion files.
9445 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9446 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9447 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9448 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9449 (COMMON_OBS): Add macrotab.o, macroexp.o.
9450 (macroexp.o, macrotab.o): New rules.
9452 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9454 * config/m88k/tm-m88k.h: Update copyright.
9455 (m88k_target_write_pc): Declare
9456 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9457 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9458 (SHIFT_INST_REGS): Update definition.
9459 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9460 using old definition of TARGET_WRITE_PC.
9461 * regcache.c (generic_target_write_pc): Delete code handling
9463 * gdbarch.sh (NNPC_REGNUM): Delete.
9464 * gdbarch.h, gdbarch.c: Regenerate.
9466 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9468 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9471 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9473 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9474 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9475 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9477 * c-typeprint.c (cp_type_print_method_args): Likewise.
9478 (c_type_print_args): Likewise.
9479 * d10v-tdep.c (d10v_push_arguments): Likewise.
9480 (d10v_extract_return_value): Likewise.
9481 * expprint.c (print_subexp): Likewise.
9482 * gdbtypes.c (lookup_primitive_typename): Likewise.
9483 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9484 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9485 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9486 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9487 (TYPE_VECTOR): Likewise.
9488 * hpread.c (hpread_read_struct_type)
9489 (fix_static_member_physnames, fixup_class_method_type)
9490 (hpread_type_lookup): Likewise.
9491 * mdebugread.c (parse_symbol, parse_type): Likewise.
9492 * p-lang.c (is_pascal_string_type): Likewise.
9493 * valops.c (hand_function_call): Likewise.
9494 * x86-64-tdep.c (classify_argument): Likewise.
9496 * hpread.c (hpread_read_function_type)
9497 (hpread_read_doc_function_type): Call replace_type.
9498 * dstread.c (create_new_type): Delete.
9499 (decode_dst_structure, process_dst_function): Call alloc_type.
9500 Use type access macros.
9502 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9504 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9505 the're not supported by the current architecture.
9506 (i387_fill_fxsave): Likewise.
9508 2002-05-12 Fred Fish <fnf@redhat.com>
9510 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9511 sect_index_xxx members to index the first slot in section_offsets
9512 if all of the section_offsets are zero.
9514 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9516 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9517 checked in with last change.
9519 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9521 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9522 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9525 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9527 * Makefile.in: Update dependencies.
9529 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9531 * language.c (local_hex_string_custom): Simplify. Do not depend
9532 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9534 * memattr.c (mem_info_command): Replace calls to
9535 longest_local_hex_string and longest_local_hex_string_custom.
9536 * buildsym.c (make_blockvector): Ditto.
9537 * solib.c (info_sharedlibrary_command): Ditto.
9538 * tracepoint.c (tracepoints_info): Ditto.
9539 * symtab.c (print_msymbol_info): Ditto.
9541 * language.c (local_hex_string): Delete.
9542 (local_hex_string_custom): Delete.
9543 (longest_local_hex_string): Rename to local_hex_string.
9544 (longest_local_hex_string_custom): Rename to
9545 local_hex_string_custom.
9546 * language.h (local_hex_string): Change parameter type to LONGEST.
9547 (local_hex_string_custom): Ditto.
9548 (longest_local_hex_string): Delete declaration.
9549 (longest_local_hex_string_custom): Ditto.
9551 * solib.c: Update copyright.
9552 * memattr.c: Update copyright.
9554 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9556 * arch-utils.h (legacy_register_to_value): Declare.
9557 (legacy_value_to_register): Declare.
9558 (legacy_convert_register_p): Declare.
9559 * arch-utils.c (legacy_register_to_value): New function.
9560 (legacy_value_to_register): New function.
9561 (legacy_convert_register_p): New function.
9563 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9564 (VALUE_TO_REGISTER): Define.
9565 (CONVERT_REGISTER_P): Define.
9566 * gdbarch.h, gdbarch.c: Regenerate.
9568 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9570 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9573 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9574 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9576 * Makefile.in: Update dependencies for valops.c.
9577 * valops.c: Include "gdb_assert.h".
9578 (typecmp): Skip THIS parameter to methods.
9579 (find_method_list): Remove static_memfuncp argument,
9580 update callers. Check for stub methods.
9581 (find_value_oload_method_list): Don't set *static_memfuncp.
9582 (find_overload_match): Don't check for stub methods. Assert
9583 that methods are not stubbed. Handle static methods.
9584 (value_find_oload_method_list): Remove static_memfuncp argument.
9585 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9586 to the argument list for static stub methods.
9587 * value.h (value_find_oload_method_list): Update prototype.
9589 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9591 * arch-utils.h (generic_register_size): Declare.
9592 (generic_register_raw_size, generic_register_virtual_size): Delete
9594 * arch-utils.c (generic_register_raw_size): Delete.
9595 (generic_register_size): New function.
9596 (generic_register_virtual_size): Delete.
9598 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9599 default generic_register_size.
9600 * gdbarch.h, gdbarch.c: Re-generate.
9602 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9603 register_virtual_size.
9604 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9605 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9607 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9609 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9610 * gdbarch.h, gdbarch.c: Regenerate.
9611 * gnu-v3-abi.c: Update copyright.
9612 (vtable_address_point_offset): Update.
9613 (gnuv3_rtti_type): Update.
9614 (gnuv3_baseclass_offset): Update.
9615 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9616 (init_fetch_link_map_offsets): Update.
9617 * remote.c (get_remote_state): Update.
9619 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9621 * TODO: Remove value_headof/value_from_vtable_info comment.
9622 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9623 * values.c (value_headof, value_from_vtable_info): Delete.
9624 * value.h (value_from_vtable_info): Delete prototype.
9626 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9628 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9629 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9631 (gdb_assert_h): Define.
9632 (gdb_wait_h): Define.
9633 (gdb_regex_h): Define.
9635 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9637 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9638 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9640 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9642 * nbsd-tdep.c: Fix comment.
9644 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9646 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9647 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9648 (nbsd-tdep.o): New dependency list.
9649 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9651 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9652 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9653 * nbsd-tdep.c: New file.
9654 * nbsd-tdep.h: New file.
9655 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9657 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9658 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9659 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9660 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9662 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9664 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9665 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9666 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9667 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9668 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9669 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9671 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9673 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9674 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9675 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9676 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9677 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9678 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9679 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9681 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9683 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9684 fetch_elfcore_registers to...
9685 * i386nbsd-tdep.c: ...here.
9686 (i386nbsd_use_struct_convention): Rename to...
9687 (i386nbsd_aout_use_struct_convention): ...this.
9688 (i386nbsd_supply_reg): New function.
9689 (i386nbsd_fill_reg): New function.
9690 (fetch_core_registers): Use i386nbsd_supply_reg.
9691 (fetch_elfcore_registers): Likewise.
9692 (_initialize_i386nbsd_tdep): New function.
9693 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9694 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9695 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9696 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9697 (i386nbsd_aout_use_struct_convention): ...this.
9699 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9701 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9702 (store_inferior_registers): Use shnbsd_fill_reg.
9703 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9704 sh_nbsd_supply_register): Collapse into...
9705 (shnbsd_supply_reg): ...this.
9706 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9707 (shnbsd_fill_reg): ...this.
9708 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9709 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9710 (fetch_core_registers): Use shnbsd_supply_reg.
9711 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9712 (sh_nbsd_core_fns): Rename to...
9713 (shnbsd_core_fns): ...this.
9714 (sh_nbsd_elfcore_fns): Rename to...
9715 (shnbsd_elfcore_fns): ...this.
9716 (sh_nbsd_init_abi): Rename to...
9717 (shnbsd_init_abi): ...this.
9718 (_initialize_sh_nbsd_tdep): Rename to...
9719 (_initialize_shnbsd_tdep): ...this.
9720 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9721 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9722 sh_nbsd_fill_register): Remove prototypes.
9723 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9725 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9727 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9728 (i387-nat.o): Delete dependency list.
9729 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9730 (x86-64-linux-nat.o): Likewise.
9731 * i387-nat.c: Delete file, moving contents to...
9732 * i387-tdep.c: ...here.
9733 * i387-nat.h: Rename...
9734 * i387-tdep.h: ...to this.
9735 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9736 * i386-linux-nat.c: Likewise.
9737 * i386bsd-nat.c: Likewise.
9738 * i386gnu-nat.c: Likewise.
9739 * i386nbsd-nat.c: Likewise.
9740 * i386v4-nat.c: Likewise.
9741 * x86-64-linux-nat.c: Likewise.
9742 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9743 * config/i386/go32.mh (NATDEPFILES): Likewise.
9744 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9745 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9746 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9747 * config/i386/linux.mh (NATDEPFILES): Likewise.
9748 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9749 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9750 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9751 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9753 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9755 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9756 (alphanbsd-nat.o): Remove dependency list.
9757 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9758 * alphanbsd-nat.c: Delete. Contents moved to...
9759 * alphanbsd-tdep.c: ...here.
9760 (_initialize_alphanbsd_tdep): Register core functions.
9761 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9763 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9765 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9766 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9767 (alphanbsd-nat.o): Likewise.
9768 (alphabsd-tdep.o): New dependency list.
9769 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9770 (fill_gregset): Use alphabsd_fill_reg.
9771 (supply_fpregset): Use alphabsd_supply_fpreg.
9772 (fill_fpregset): Use alphabsd_fill_fpreg.
9773 (fetch_inferior_registers): Use struct reg and struct fpreg
9774 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9775 and alphabsd_supply_fpreg.
9776 (store_inferior_registers): Use struct reg and struct fpreg
9777 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9778 and alphabsd_fill_fpreg.
9779 * alphabsd-tdep.c: New file.
9780 * alphabsd-tdep.h: New file.
9781 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9782 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9783 alphabsd_supply_fpreg.
9784 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9785 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9787 2002-05-11 Eric Christopher <echristo@redhat.com>
9789 * mips-tdep.c (mips_double_register_type): Fix thinko.
9790 (mips_single_register_type): Ditto.
9791 * MAINTAINERS: Add self.
9793 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9795 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9796 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9797 right thing on architectures with different endianness and/or
9800 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9802 From Christian Limpach <chris@Pin.LU>
9803 * configure.in: Change sed expression which comments out
9804 NATDEPFILES to also comment out continuation lines.
9805 * configure: Regenerate.
9807 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9809 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9812 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9814 * sh-tdep.c: Include correct file.
9816 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9818 New support for sh64-elf (sh5) target.
9820 * configure.tgt: For sh64-elf target, default to sh-elf.
9822 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9823 (struct gdbarch_tdep): Add new fields for new registers and ABI
9826 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9827 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9828 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9829 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9830 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9831 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9832 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9833 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9834 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9835 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9836 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9837 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9838 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9839 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9840 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9841 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9842 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9843 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9844 sign_extend, sh64_nofp_frame_init_saved_regs,
9845 sh64_init_extra_frame_info, sh64_get_saved_register,
9846 sh64_extract_struct_value_address, sh64_pop_frame,
9847 sh64_push_arguments, sh64_extract_return_value,
9848 sh64_store_return_value, sh64_show_media_regs,
9849 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9850 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9851 sh_sh64_register_virtual_type,
9852 sh_sh64_register_convert_to_virtual,
9853 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9854 sh64_register_read, sh64_pseudo_register_write,
9855 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9856 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9857 sh64_do_pseudo_register, sh_compact_do_registers_info,
9858 sh64_do_registers_info, sh_gdbarch_init): New functions.
9860 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9862 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9864 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9866 * linespec.c (decode_line_1): Check for a double quote after
9867 a filename correctly.
9869 2002-05-10 Jim Blandy <jimb@redhat.com>
9871 Properly track the size of the current objfile's .debug_line section.
9872 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9873 (DWARF_LINE_SIZE): New macro.
9874 (dwarf2_build_psymtabs_hard): Record the line section's size in
9875 the partial symbol table.
9876 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9879 2002-05-10 Petr Sorfa <petrs@caldera.com>
9881 * ia64-tdep.c: Handle breakpoints on L instruction type
9882 in MLX instruction bundle by moving the breakpoint to
9883 the third slot (X instruction type) as L holds only data.
9885 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9887 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9888 (process_one_symbol): Complain about discarding local symbols
9889 due to a misplaced N_LBRAC entry.
9891 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9893 From Daniel Berlin <dan@cgsoftware.com>
9894 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9895 decrease the depth we are at, in the case of templates.
9897 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9899 * mips-tdep.c (mips_float_register_type): New function.
9900 (mips_double_register_type): New function.
9901 (mips_print_register): Use them.
9902 (do_fp_register_row): Likewise.
9904 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9906 * signals/signals.c (signals): Remove conditional compilation around
9907 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9908 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9910 2002-05-09 Michael Snyder <msnyder@redhat.com>
9912 * remote-rdp.c (remote_rdp_can_run): Remove.
9914 2002-05-09 Tom Tromey <tromey@redhat.com>
9916 * jv-valprint.c (java_val_print): Handle `char' as a special case
9919 2002-05-09 Michael Snyder <msnyder@redhat.com>
9921 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9922 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9923 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9924 str r(0123),[sp,#nn].
9925 (arm_skip_prologue): Ditto. Also make disassembly
9926 order-independent by placing it in a loop.
9928 2002-05-06 Michael Snyder <msnyder@redhat.com>
9930 * stabsread.c (read_type): Add recognition for new attribute:
9931 "@V;" means that an array type is actually a vector.
9932 This is analogous to the vector flag that's been added to dwarf2.
9934 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9936 * i386-tdep.h (i386_abi): New enum.
9937 (struct gdbarch_tdep): Replace os_ident member with abi.
9938 (i386_gdbarch_register_os_abi): New prototype.
9939 * i386-tdep.c (i386_abi_names): New array.
9940 (process_note_abi_tag_sections): Removed.
9941 (process_note_sections): New function.
9942 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9943 (struct i386_abi_handler): New struct.
9944 (i386_abi_handler_list): New variable.
9945 (i386_gdbarch_register_os_abi): New function.
9946 (i386_gdbarch_init): Adapt for the changes given above.
9948 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9950 * gregset.h: Say "GNU/Linux".
9952 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9954 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9955 (build_gdbtypes): Build builtin_type_v2_float.
9956 (_initialize_gdbtypes): Register new builtin type.
9958 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9960 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9961 (clear_gdbarch_swap): New function.
9962 (initialize_non_multiarch): Call.
9963 (gdbarch_update_p): Before calling init(), swap out and clear the
9964 existing architecture.
9965 * gdbarch.c: Regenerate.
9967 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9969 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9972 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9974 * sh-nbsd-nat.c: Rename to...
9975 * shnbsd-nat.c: ...this.
9976 * sh-nbsd-tdep.c: Rename to...
9977 * shnbsd-tdep.c: ...this.
9978 * sh-nbsd-tdep.h: Rename to...
9979 * shnbsd-tdep.h: ...this.
9980 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9981 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9983 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9985 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9986 concatenation for command help messages.
9988 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9990 * NEWS: Note new sh*-*-netbsdelf* configuration.
9991 * configure.host: Set gdb_host_cpu to sh for all sh*.
9992 (sh*-*-netbsdelf*): New host.
9993 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9994 (sh*-*-netbsdelf*): New target.
9995 * sh-nbsd-nat.c: New file.
9996 * sh-nbsd-tdep.c: New file.
9997 * sh-nbsd-tdep.h: New file.
9998 * config/sh/nbsd.mh: New file.
9999 * config/sh/nbsd.mt: New file.
10000 * config/sh/nm-nbsd.h: New file.
10001 * config/sh/tm-nbsd.h: New file.
10003 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10005 * sh-tdep.c (sh_osabi_names): Declare.
10006 (process_note_abi_tag_sections): New function.
10007 (get_elfosabi): Ditto.
10008 (sh_gdbarch_register_os_abi): Ditto.
10009 (sh_dump_tdep): Ditto.
10010 _initialize_sh_tdep): Use gdbarch_register to register
10011 sh_gdbarch_init and sh_dump_tdep.
10012 * config/sh/tm-sh.h (sh_osabi): Declare.
10013 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10015 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10017 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10018 (thumb_scan_prologue): Ditto.
10019 (arm_find_callers_reg): Ditto.
10020 (arm_frame_chain): Ditto.
10021 (arm_init_extra_frame_info): Ditto.
10022 (arm_frame_saved_pc): Ditto.
10023 (arm_pop_frame): Ditto.
10024 (arm_push_return_address): New function.
10025 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10026 call_dummy_location, call_dummy_breakpoint_offset_p,
10027 call_dummy_breakpoint_offset, call_dummy_p,
10028 call_dummy_stack_adjust_p, call_dummy_words,
10029 sizeof_call_dummy_words, call_dummy_start_offset,
10030 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10031 call_dummy_address, push_return_address and push_dummy_frame for
10032 generic dummy frames.
10034 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10036 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10037 size computation for alloca.
10038 (sh_fp_frame_init_saved_regs): Likewise.
10040 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10042 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10043 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10044 * arm-tdep.c (arm_store_return_value): Use them.
10045 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10046 * remote-rdp.c (remote_rdp_fetch_register): Use
10047 ARM_MAX_REGISTER_RAW_SIZE.
10048 (remote_rdp_store_register): Likewise.
10050 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10052 * dwarf2cfi.c: Code cleanup, removed unused variables,
10053 added default labels to switch {} statements.
10054 * x86-64-tdep.c: Ditto.
10055 * x86-64-linux-nat.c: Ditto.
10057 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10059 * solib.h: Protect against multiple inclusion.
10061 2002-05-06 Jim Blandy <jimb@redhat.com>
10063 Add first preprocessor macro-expansion files.
10064 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10065 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10066 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10067 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10068 (COMMON_OBS): Add macrotab.o, macroexp.o.
10069 (macroexp.o, macrotab.o): New rules.
10071 Separate the job of reading the line number info statement program
10072 header (...expialidocious) out into its own function.
10073 * dwarf2read.c (struct line_head, struct filenames, struct
10074 directories): Replace with...
10075 (struct line_header): New structure, containing the full
10076 contents of the statement program header, including the
10077 include directory and file name tables.
10078 (read_file_scope): If we have line number info, instead of just
10079 calling dwarf_decode_lines to do all the work, call
10080 dwarf_decode_line_header first to get a `struct line_header'
10081 containing the data in the statement program header, and then
10082 pass that to dwarf_decode_lines, which will pick up where that
10083 left off. Be sure to clean up the `struct line_header' object.
10084 (dwarf_decode_line_header, free_line_header, add_include_dir,
10085 add_file_name): New functions.
10086 (dwarf_decode_lines): Move all the code to read the statement
10087 program header into dwarf_decode_line_header. Take the line
10088 header it built as the first argument, instead of the offset to
10089 the compilation unit's line number info. Use the new `struct
10090 line_header' type instead of the old structures. No need to do
10091 cleanups here now, since we don't allocate anything.
10092 (dwarf2_statement_list_fits_in_line_number_section,
10093 dwarf2_line_header_too_long): New complaints.
10095 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10097 * gdbtypes.c (init_vector_type): New function.
10098 (build_builtin_type_vec128): Simplify the representation of SIMD
10100 (build_gdbtypes): Initialize new builtin vector types.
10101 (_initialize_gdbtypes): Register new vector types with gdbarch.
10102 (builtin_type_v4_float, builtin_type_v4_int32,
10103 builtin_type_v8_int16, builtin_type_v16_int8,
10104 builtin_type_v2_int32, builtin_type_v4_int16,
10105 builtin_type_v8_int8): New (renamed) SIMD types.
10107 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10109 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10110 (i387_fill_fxsave): Likewise.
10112 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10114 * alpha-tdep.c (alpha_extract_return_value): Don't use
10115 non-constant array size in prototype.
10117 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10119 From Brian Taylor <briant at model dot com>:
10120 * ui-out.c (ui_out_field_core_addr): Use the function
10121 longest_local_hex_string_custom'to format addresses > 32 bits
10124 * ui-out.c (ui_out_field_core_addr): Update comment.
10126 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10128 * stack.c (select_and_print_frame): Make static. Delete the
10130 (func_command): Update call.
10131 (select_frame_command): Delete code computing the frame level.
10132 * frame.h (select_and_print_frame): Delete declaration.
10134 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10136 * sparc-tdep.c (sparc_get_saved_register): Comment why
10137 get_prev_frame call is safe.
10139 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10141 * frame.h (select_frame): Delete level parameter.
10142 * stack.c (select_frame): Update. Use frame_relative_level to
10143 obtain the frame's level.
10144 (select_and_print_frame): Update call.
10145 (select_frame_command): Ditto.
10146 (up_silently_base): Ditto.
10147 (down_silently_base): Ditto.
10148 * ocd.c (ocd_start_remote): Ditto.
10149 * remote-rdp.c (remote_rdp_open): Ditto.
10150 * remote-mips.c (mips_initialize): Ditto.
10151 (common_open): Ditto.
10152 * remote-e7000.c (e7000_start_remote): Ditto.
10153 * m3-nat.c (select_thread): Ditto.
10154 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10155 (child_get_current_exception_event): Ditto.
10156 * varobj.c (varobj_create): Ditto.
10157 (varobj_update): Ditto.
10158 (c_value_of_root): Ditto.
10159 * tracepoint.c (finish_tfind_command): Ditto.
10160 * corelow.c (core_open): Ditto.
10161 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10162 * thread.c (info_threads_command): Ditto.
10163 (switch_to_thread): Ditto.
10164 * infrun.c (normal_stop): Ditto.
10165 (restore_selected_frame): Ditto.
10166 (restore_inferior_status): Ditto.
10167 * breakpoint.c (insert_breakpoints): Ditto.
10168 (watchpoint_check): Ditto.
10169 (bpstat_stop_status): Ditto.
10170 (do_enable_breakpoint): Ditto.
10171 * blockframe.c (flush_cached_frames): Ditto.
10172 (reinit_frame_cache): Ditto.
10174 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10176 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10179 2002-05-04 Jim Blandy <jimb@redhat.com>
10181 * gdbtypes.c (replace_type): Doc fix.
10183 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10185 * valprint.c (strcat_longest): Delete commented out function.
10188 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10190 * MAINTAINERS: Mark a29k as deleted.
10191 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10192 Move new configurations to the top.
10193 * configure.tgt: Remove a29k.
10194 * config/a29k/tm-vx29k.h: Delete.
10195 * config/a29k/vx29k.mt: Delete.
10196 * config/a29k/tm-a29k.h: Delete.
10197 * config/a29k/a29k-udi.mt: Delete.
10198 * config/a29k/a29k.mt: Delete.
10199 * a29k-tdep.c: Delete.
10200 * remote-udi.c: Delete.
10201 * remote-mm.c: Delete.
10202 * remote-eb.c: Delete.
10203 * remote-adapt.c: Delete.
10204 * Makefile.in: Remove obsolete code.
10205 * config/s390/s390x.mt: Ditto.
10206 * config/s390/s390.mt: Ditto.
10207 * config/sparc/sparclynx.mh: Ditto.
10208 * config/sparc/linux.mh: Ditto.
10209 * config/pa/hppaosf.mh: Ditto.
10210 * config/pa/hppabsd.mh: Ditto.
10211 * config/ns32k/nbsd.mt: Ditto.
10212 * config/mips/vr5000.mt: Ditto.
10213 * config/m68k/sun3os4.mh: Ditto.
10214 * config/m68k/nbsd.mt: Ditto.
10215 * config/m68k/m68klynx.mh: Ditto.
10216 * config/m32r/m32r.mt: Ditto.
10217 * config/i386/x86-64linux.mt: Ditto.
10218 * config/i386/nbsdelf.mt: Ditto.
10219 * config/i386/nbsd.mt: Ditto.
10220 * config/i386/i386lynx.mh: Ditto.
10222 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10224 * target.c (debug_print_register): New function. Handle oversize
10226 (debug_to_fetch_registers): Call.
10227 (debug_to_store_registers): Call.
10229 2002-05-03 Jim Blandy <jimb@redhat.com>
10231 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10232 (read_type): Doc fix.
10233 * gdbtypes.c (replace_type): Doc fix.
10235 * stabsread.c (multiply_defined_struct): New complaint.
10236 (read_struct_type): If the type we were passed isn't empty, or
10237 incomplete, don't read the new struct type into it; complain,
10238 and return the original type unchanged. Take a new `type_code'
10239 argument, which is the type code for the new type.
10240 (read_type): Rather than storing the type's type code here, pass
10241 it as an argument to read_struct_type, and let that take care of
10242 storing it. That way, we don't overwrite the original type code,
10243 so read_struct_type can use it to decide whether we're overwriting
10244 something we shouldn't.
10245 (complain_about_struct_wipeout): New function.
10247 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10249 * gdbarch.sh: Assert that gdbarch is non-NULL.
10250 * gdbarch.c: Regenerate.
10252 2002-05-03 Jason Merrill <jason@redhat.com>
10254 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10257 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10259 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10260 (x86_64_dwarf2gdb_regno_map_length),
10261 (x86_64_dwarf2_reg_to_regnum): Added.
10262 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10263 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10264 (_initialize_x86_64_tdep): Synced with the change above.
10265 (x86_64_skip_prologue): Reformulated message.
10267 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10269 * f-exp.y: Also use new prev_lexptr variable
10270 to improve error reporting. Based on Michael Snyder
10271 2002-04-24 dated patch to c-exp.y.
10272 * jv-exp.y: Likewise.
10273 * m2-exp.y: Likewise.
10275 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10277 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10278 we are dealing with vectors.
10280 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10282 * config/m68k/tm-nbsd.h: Obvious fix,
10283 correct machine name.
10285 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10287 * p-typeprint.c (pascal_type_print_base): Add support
10288 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10290 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10292 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10293 for fondamental pascal 'char' type.
10295 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10297 * p-lang.h (is_pascal_string_type): Declaration changed,
10298 new sixth argument of type char ** added.
10299 * p-lang.c (is_pascal_string_type): Implementation
10300 changed. Args length_pos, length_size, string_pos, char_size
10301 can now be NULL. New argument arrayname set to the field
10302 name of the char array. Return value set to char array
10303 field index plus one.
10304 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10305 is_pascal_string_type function.
10307 2002-05-02 Andrew Cagney <cagney@redhat.com>
10309 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10310 <cagney@redhat.com> change.
10311 * gdbarch.c: Regenerate.
10313 2002-05-02 Andrew Cagney <cagney@redhat.com>
10315 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10316 before probing for a new one. Detect errorenous gdbarch_init
10318 * gdbarch.c: Regenerate.
10320 2002-05-01 Andrew Cagney <cagney@redhat.com>
10322 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10323 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10324 * config/v850/tm-v850.h: Ditto. Update copyright.
10326 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10328 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10331 2002-04-30 Michael Snyder <msnyder@redhat.com>
10333 * arm-tdep.c: Whitespace clean-ups.
10334 (arm_skip_prologue): Fix thinko; two lines
10335 should have been removed as part of 4/24 change.
10337 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10339 * rs6000-tdep.c: Added comment describing how fpscr register
10340 numbers were chosen.
10342 2002-04-30 Michael Snyder <msnyder@redhat.com>
10344 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10346 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10348 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10349 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10350 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10352 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10354 From Louis Hamilton <hamilton@redhat.com>:
10355 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10356 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10358 not bfd-private xcoff data, to determine wordsize.
10359 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10361 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10363 GDB 5.2 released from 5.2 branch.
10365 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10367 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10368 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10369 (x86_64_register_info_table): Added comments with register numbers.
10371 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10373 * rs6000-tdep.c (rs6000_extract_return_value,
10374 rs6000_store_return_value): Handle returning vectors.
10375 (rs6000_gdbarch_init): Use
10376 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10377 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10379 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10381 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10382 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10384 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10386 * hpread.c (hpread_psymtab_to_symtab_1,
10387 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10388 with fprintf_unfiltered (gdb_stderr,...).
10390 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10392 * remote-array.c (printf_monitor, write_monitor,
10393 array_insert_breakpoint, array_remove_breakpoint ):
10394 Replace fprintf (stderr,...
10395 with fprintf_unfiltered (gdb_stderr,....
10396 * remote-es.c: Likewise.
10397 * remote-os9k.c: Likewise.
10398 * remote-st.c: Likewise.
10400 2002-04-28 Andreas Schwab <schwab@suse.de>
10402 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10403 linux-proc.o and gcore.o.
10405 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10407 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10408 code without frame pointers.
10410 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10412 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10413 ON_STACK is needed.
10415 2002-04-26 Ben Elliston <bje@redhat.com>
10417 * target.c (do_xfer_memory): Correct reference to the new option
10418 "trust-readonly-sections".
10420 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10422 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10423 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10424 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10426 (read_array_type): Record the fact that this array type is really a
10427 vector (i.e. are passed in by value).
10429 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10431 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10432 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10433 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10434 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10435 * alpha-linux-tdep.c: Include frame.h.
10436 (alpha_linux_sigcontext_addr): New function.
10437 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10438 alpha_linux_sigcontext_addr.
10439 * alpha-osf1-tdep.c: Include gdbcore.h.
10440 (alpha_osf1_sigcontext_addr): New function.
10441 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10442 alpha_osf1_sigcontext_addr.
10443 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10444 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10446 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10448 * stack.c (selected_frame_level):
10449 (select_frame): Do not set selected_frame_level.
10450 * frame.h (selected_frame_level): Delete declaration.
10452 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10454 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10455 convert_from_func_ptr-addr when AIX / PowerOpen.
10457 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10459 * valops.c (hand_function_call): Call
10460 generic_save_call_dummy_addr.
10461 * frame.h (generic_save_call_dummy_addr): Declare.
10462 * blockframe.c (struct dummy_frame): Add fields call_lo and
10464 (generic_find_dummy_frame): Check for PC in range call_lo to
10465 call_hi instead of entry_point_address.
10466 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10467 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10468 (generic_save_call_dummy_addr): New function.
10470 2002-04-24 David S. Miller <davem@redhat.com>
10472 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10473 sparc_skip_prologue.
10474 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10475 information to find prologue when possible.
10476 (sparc_prologue_frameless_p): Call examine_prologue directly.
10477 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10478 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10480 (SKIP_PROLOGUE): Likewise.
10482 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10484 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10485 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10486 indicate that the condition it was testing is always true.
10487 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10488 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10489 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10491 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10493 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10494 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10495 tdep->jb_pc and tdep->jb_elt_size.
10496 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10497 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10498 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10499 * alpha-nat.c (get_longjmp_target): Remove.
10500 (JB_ELEMENT_SIZE): Ditto.
10502 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10503 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10504 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10505 to alpha_get_longjmp_target.
10506 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10507 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10508 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10510 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10512 * README: Update to GDB 5.2.
10514 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10516 * gdbarch.sh (LC_ALL): Set to `c'.
10518 2002-04-25 Theodore A. Roth <troth@verinet.com>
10520 * avr-tdep.c: Ran through gdb_indent.sh.
10522 2002-04-25 Theodore A. Roth <troth@verinet.com>
10524 * MAINTAINERS: Add myself as AVR maintainer.
10525 * NEWS: Note new target avr.
10527 2002-04-25 Theodore A. Roth <troth@verinet.com>
10529 * Makefile.in: Add support for AVR target.
10530 * configure.tgt: Add support for AVR target.
10531 * avr-tdep.c: New file
10532 * config/avr/avr.mt: New file.
10534 2002-04-25 Theodore A. Roth <troth@verinet.com>
10536 * MAINTAINERS: Add myself to write-after-approval.
10538 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10540 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10541 with fprintf_unfiltered (gdb_stderr,....
10543 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10546 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10548 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10550 * p-exp.y: Also use new prev_lexptr variable
10551 to improve error reporting. Based on Michael Snyder
10552 2002-04-24 dated patch to c-exp.y.
10554 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10556 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10557 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10558 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10560 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10562 (FUNCTION_START_OFFSET): Remove.
10563 (BREAKPOINT): Ditto.
10565 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10567 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10570 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10572 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10573 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10574 alpha_linux_pc_in_sigtramp.
10575 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10576 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10577 alpha_osf1_pc_in_sigtramp.
10578 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10579 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10580 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10581 alphafbsd_pc_in_sigtramp.
10582 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10583 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10584 alphanbsd_pc_in_sigtramp.
10585 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10586 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10588 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10590 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10592 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10594 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10596 (alphanbsd-nat.o): New dependency list.
10597 (alphanbsd-tdep.o): Ditto.
10598 * NEWS: Note new native NetBSD/alpha configuration.
10599 * alphanbsd-nat.c: New file.
10600 * alphanbsd-tdep.c: Ditto.
10601 * configure.host (alpha*-*-netbsd*): New host.
10602 * configure.tgt (alpha*-*-netbsd*): New target.
10603 * config/alpha/nbsd.mh: New file.
10604 * config/alpha/nbsd.mt: Ditto.
10605 * config/alpha/nm-nbsd.h: Ditto.
10606 * config/alpha/tm-nbsd.h: Ditto.
10608 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10610 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10611 (alpha-osf1-tdep.o): New dependency list.
10612 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10613 and skip_sigtramp_frame members.
10614 * alpha-linux-tdep.c: Include gdbcore.h.
10615 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10616 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10617 * alpha-osf1-tdep.c: New file.
10618 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10620 (alpha_frame_past_sigtramp_frame): New function.
10621 (alpha_dynamic_sigtramp_offset): Ditto.
10622 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10623 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10624 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10625 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10626 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10627 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10628 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10629 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10630 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10631 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10632 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10633 to find_solib_trampoline_target.
10634 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10635 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10636 (SKIP_TRAMPOLINE_CODE): Remove.
10637 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10638 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10639 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10640 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10641 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10642 (PROC_SIGTRAMP_MAGIC): Ditto.
10643 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10644 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10645 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10646 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10647 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10649 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10651 * NEWS: Note that Alpha targets are now multi-arch.
10653 2002-04-24 Michael Snyder <msnyder@redhat.com>
10655 * parser-defs.h (prev_lexptr): New external variable.
10656 * parse.c (parse_exp_1): Set prev_lexptr to null before
10657 calling the language-specific parser.
10658 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10659 (yyerror): Use prev_lexptr in error reporting.
10661 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10663 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10664 * gregset.h: If FILL_FPXREGSET is defined, provide
10665 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10666 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10667 is defined, call fill_fpxregset.
10669 2002-04-24 Roland McGrath <roland@frob.com>
10671 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10672 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10673 (supply_gregset, supply_fpregset): New functions.
10675 * gnu-nat.c (gnu_find_memory_regions): New function.
10676 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10677 (gnu_xfer_memory): Add a cast.
10679 2002-04-24 Michael Snyder <msnyder@redhat.com>
10681 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10682 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10683 of argument regs ("str r(0123), [r11, #-nn"]).
10684 (arm_skip_prologue): Better handling for frameless functions.
10685 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10686 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10688 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10690 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10691 NUM_PSEUDO_REGS can be used.
10693 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10695 * arch-utils.h: Update copyright.
10697 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10698 * gdbarch.h, gdbarch.c: Re-generate.
10700 * inferior.h (IN_SIGTRAMP): Delete definition.
10701 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10702 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10704 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10705 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10706 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10707 (find_proc_framesize): Ditto.
10708 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10709 (alpha_init_extra_frame_info): Ditto.
10710 * infrun.c (handle_inferior_event): Ditto.
10711 (handle_inferior_event): Ditto.
10712 (check_sigtramp2): Ditto.
10713 * blockframe.c (create_new_frame): Ditto.
10714 (get_prev_frame): Ditto.
10715 * ppc-linux-tdep.c: Update comments.
10716 * i386-linux-tdep.c: Update comments.
10717 * breakpoint.c (bpstat_what): Update comment.
10719 2002-04-24 David S. Miller <davem@redhat.com>
10721 * i960-tdep.c (register_in_window_p): New function.
10722 (i960_find_saved_register): Use it instead of
10723 REGISTER_IN_WINDOW_P.
10724 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10726 * symtab.h (find_stab_function_addr): Kill extern.
10727 * minsyms.c (find_stab_function_addr): Remove from here...
10728 * dbxread.c: ... to here, and mark it static.
10730 2002-04-20 David S. Miller <davem@redhat.com>
10732 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10733 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10735 2002-04-21 David S. Miller <davem@redhat.com>
10737 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10738 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10739 (vx_write_register): Likewise.
10741 2002-04-23 J. Brobecker <brobecker@gnat.com>
10743 * source.c (is_regular_file): New function.
10744 (openp): Check wether file to open is a regular file
10745 to avoid opening directories.
10747 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10749 * findvar.c (extract_signed_integer): Cast printf argument
10750 to suppress format warning.
10751 (extract_unsigned_integer): Likewise.
10752 * infcmd.c (registers_info): Likewise.
10753 * top.c (get_prompt_1): Likewise.
10754 * valops.c (value_assign): Likewise.
10755 * valprint.c (print_decimal): Likewise.
10757 2002-04-22 H.J. Lu (hjl@gnu.org)
10759 * c-exp.y (typebase): Support
10761 [long|long long|short] [signed|unsigned] [int|]
10765 signed [long|long long|short] int
10767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10769 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10771 * vax-tdep.h: New file.
10772 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10773 Make several routines static.
10774 (vax_get_saved_register): New function.
10775 (vax_gdbarch_init): New function.
10776 (_initialize_vax_tdep): Register vax_gdbarch_init.
10777 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10778 Remove macros now under the control of gdbarch.
10780 2002-04-22 Michael Snyder <msnyder@redhat.com>
10782 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10783 Some whitespace and coding standards tweaks.
10785 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10787 * vax-tdep.c: Include regcache.h.
10788 (vax_call_dummy_words): New.
10789 (sizeof_vax_call_dummy_words): New.
10790 (vax_fix_call_dummy): New function.
10791 (vax_saved_pc_after_call): Ditto.
10792 * config/vax/tm-vax.h: Don't include regcache.h.
10793 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10794 (CALL_DUMMY): Remove.
10795 (CALL_DUMMY_WORDS): Define.
10796 (SIZEOF_CALL_DUMMY_WORDS): Define.
10797 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10799 2002-04-18 Michael Snyder <msnyder@redhat.com>
10801 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10803 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10805 * vax-tdep.c (vax_frame_chain): New function.
10806 (vax_push_dummy_frame): Ditto.
10807 (vax_pop_frame): Ditto.
10808 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10809 (FRAMELESS_FUNCTION_INVOCATION): Use
10810 generic_frameless_function_invocation_not.
10811 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10812 (POP_FRAME): Use vax_pop_frame.
10814 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10816 * vax-tdep.c (vax_store_struct_return): New function.
10817 (vax_extract_return_value): Ditto.
10818 (vax_store_return_value): Ditto.
10819 (vax_extract_struct_value_address): Ditto.
10820 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10821 vax_store_struct_return.
10822 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10823 (STORE_RETURN_VALUE): Use vax_store_return_value.
10824 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10826 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10828 * vax-tdep.c (vax_frame_saved_pc): New function.
10829 (vax_frame_args_address_correct): Ditto.
10830 (vax_frame_args_address): Ditto.
10831 (vax_frame_locals_address): Ditto.
10832 (vax_frame_num_args): Move code to be in proximity to
10833 other frame-related functions.
10834 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10835 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10836 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10837 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10838 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10840 2002-04-22 H.J. Lu (hjl@gnu.org)
10842 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10845 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10847 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10848 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10849 (FRAME_INIT_SAVED_REGS): New macro.
10851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10853 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10855 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10857 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10859 (fetch_osf_core_registers): Likewise.
10860 (supply_gregset): Likewise.
10862 2002-04-22 J. Brobecker <brobecker@gnat.com>
10864 * symfile.h (get_section_index): Define.
10865 * symfile.c (get_section_index): New function.
10866 * mdebugread.c (SC_IS_SBSS): New macro.
10867 (SC_IS_BSS): Return true for the scBss storage class only, as
10868 the scSBss storage class refers to the .sbss section.
10869 (parse_partial_symbols): Discard the symbols which associated
10870 section does not exist.
10871 Make sure to use the .sbss section index for symbols which
10872 storage class is scBss, rather than using the .bss section index.
10874 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10876 * vax-tdep.c: Update copyright years.
10877 (vax_register_name): New function.
10878 (vax_register_byte): Ditto.
10879 (vax_register_raw_size): Ditto.
10880 (vax_register_virtual_size): Ditto.
10881 (vax_register_virtual_type): Ditto.
10882 * config/vax/tm-vax.h: Update copyright years.
10883 (REGISTER_NAMES): Remove.
10884 (REGISTER_NAME): Define.
10885 (REGISTER_BYTE): Use vax_register_byte.
10886 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10887 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10888 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10890 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10892 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10894 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10896 2002-04-21 David S. Miller <davem@redhat.com>
10898 * arch-utils.c (generic_prologue_frameless_p): Kill
10899 SKIP_PROLOGUE_FRAMELESS_P code.
10900 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10902 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10903 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10904 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10906 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10907 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10908 (sparc_gdbarch_init): Pass it to
10909 set_gdbarch_prologue_frameless_p.
10911 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10913 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10914 (alphabsd-nat.o): New dependency list.
10916 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10918 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10920 (alpha-linux-tdep.o): New dependency list.
10921 (alphafbsd-tdep.o): Likewise.
10923 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10925 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10927 * alpha-tdep.c: ...from here.
10928 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10930 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10932 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10933 prototype from here...
10934 * alpha-tdep.h: ...to here.
10936 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10938 * frame.h (selected_frame_level): Document as deprecated.
10939 (frame_relative_level): Declare.
10940 * stack.c (frame_relative_level): New function.
10941 (selected_frame_level): Document as deprecated.
10942 (select_frame): Do not set the selected_frame_level.
10944 * stack.c (frame_info, record_selected_frame): Update.
10945 (frame_command, current_frame_command): Update.
10946 (up_silently_base, up_command, down_silently_base): Update.
10947 (down_command): Update.
10948 * inflow.c (kill_command): Update.
10949 * tracepoint.c (finish_tfind_command): Update.
10950 * corelow.c (core_open): Update.
10951 * thread.c (info_threads_command): Update.
10952 (do_captured_thread_select): Update.
10953 * infcmd.c (finish_command): Update.
10954 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10956 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10958 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10960 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10962 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10965 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10967 * alphafbsd-tdep.c: Update copyright years. Include
10969 (alphafbsd_use_struct_convention): Make static.
10970 (alphafbsd_init_abi): New function.
10971 (_initialize_alphafbsd_tdep): New function.
10972 * config/alpha/tm-fbsd.h: Update copyright years.
10973 (USE_STRUCT_CONVENTION): Remove.
10975 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10977 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10978 an Alpha ABI variant.
10979 (alpha_abi_handler_list): Declare.
10980 (alpha_gdbarch_register_os_abi): New function.
10981 (alpha_gdbarch_init): Give registered ABI variant handlers a
10982 chance to tweak the gdbarch once we have set up defaults.
10983 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10985 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10987 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10988 to standard_coerce_float_to_double.
10989 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10991 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10993 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10994 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10995 from gdbarch_tdep rather than a constant.
10996 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10997 the default text address for all Alpha Unix ABIs.
10998 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10999 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11001 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11003 * alpha-tdep.h: New file. Includes several Alpha target constants
11005 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11006 let gdbarch deal with.
11007 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11008 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11009 to dependency list.
11010 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11011 Alpha target register names.
11012 * alphabsd-nat.c: Likewise.
11013 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11014 Alpha target register names. Make serveral routines static.
11015 (alpha_get_saved_register): New function.
11016 (alpha_abi_names): New.
11017 (process_note_abi_tag_sections): New function.
11018 (get_elfosabi): New function.
11019 (alpha_gdbarch_init): New function.
11020 (alpha_dump_tdep): New function.
11021 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11023 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11025 * frame.c (find_saved_register): Delete #ifdef
11026 HAVE_REGISTER_WINDOWS code.
11027 * config/sparc/tm-sparc.h: Update comments.
11028 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11030 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11032 * i960-tdep.c (i960_find_saved_register): New function.
11033 (i960_get_saved_register): New function.
11034 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11035 (i960_get_saved_register): Declare.
11036 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11038 2002-04-20 David S. Miller <davem@redhat.com>
11040 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11042 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11044 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11045 instead of NUM_PSEUDO_REGS.
11047 2002-04-20 David S. Miller <davem@redhat.com>
11049 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11050 GDB_MULTI_ARCH_PARTIAL
11051 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11052 define, let tm-sp64.h do it.
11054 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11056 * frame.c (find_saved_register): Avoid a NULL pointer
11057 dereference and actually walk the frame list.
11059 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11061 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11062 sorted in most most-recent-used order. Document.
11063 * gdbarch.h, gdbarch.c: Regenerate.
11065 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11067 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11069 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11070 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11071 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11074 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11077 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11078 (build_builtin_type_vec128): Ditto.
11079 (append_composite_type_field): Fix calculation of type length in
11082 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11084 * config/djgpp/README: Update.
11086 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11089 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11091 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11092 (alpha_setup_arbitrary_frame): ...to this.
11093 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11094 for alpha_setup_arbitrary_frame.
11096 2002-04-18 Andrew Cagney <cagney@redhat.com>
11098 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11099 * gdbarch.h, gdbarch.c: Regenerate.
11101 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11102 * target.h (memory_breakpoint_from_pc): Update declaration.
11103 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11105 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11106 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11107 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11108 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11109 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11110 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11111 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11112 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11113 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11114 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11115 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11116 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11118 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11120 * monitor.c (monitor_insert_breakpoint): Ditto.
11121 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11123 * config/mcore/tm-mcore.h: Update copyright.
11124 * mem-break.c: Ditto.
11125 * xstormy16-tdep.c: Ditto.
11127 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11129 * p-exp.y: Add precedence rule for '^' token.
11130 This removes the shift/reduce conflicts.
11131 Remove the comment concerning these shift/reduce conflicts.
11133 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11135 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11136 (registers_powerpc_nofp): New register set for processors
11137 without floating point unit.
11139 2002-04-18 David S. Miller <davem@redhat.com>
11141 * MAINTAINERS: Add myself to write-after-approval.
11143 2002-04-17 Michael Snyder <msnyder@redhat.com>
11145 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11147 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11149 * rs6000-tdep.c (frame_initial_stack_address): Use
11150 frame_register_read to read the alloca_reg.
11152 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11154 * frame.c (find_saved_register): Find saved registers in the next
11158 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11160 * gdbarch.sh (LANG): Set to ``c''.
11162 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11164 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11166 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11168 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11171 * hpread.c (hpread_get_lntt): Add declaration.
11172 Also fix PR gdb/391.
11174 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11176 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11177 * aclocal.m4, configure: Re-generate.
11180 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11182 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11183 instead of tm_print_insn.
11185 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11187 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11189 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11191 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11192 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11193 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11195 2002-04-12 Don Howard <dhoward@redhat.com>
11197 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11198 max_user_call_depth.
11199 (init_cmd_lists): Initialize the new value;
11200 * cli/cli-script.c (execute_user_command): Limit the call depth of
11201 user defined commands. This avoids a core-dump when user commands
11202 are infinitly recursive.
11204 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11206 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11207 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11208 from tdep struct instead of DEFAULT_LR_SAVE.
11209 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11210 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11211 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11213 2002-04-12 Michael Snyder <msnyder@redhat.com>
11215 * Remote.c: Spelling fix.
11216 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11217 If no symbol found for "sbrk", try "_sbrk".
11218 (make_output_phdrs): Use bfd_section_name.
11219 (gcore_copy_callback): Use bfd_section_name.
11220 * eval.c: Indentation fix-ups.
11221 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11222 in case it gets applied to an address that is already
11223 in the instruction space.
11224 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11225 * symfile.c: Fix indentation, long lines.
11226 * source.c: White space fix-up.
11228 2002-04-12 Andrew Cagney <cagney@redhat.com>
11230 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11231 * frame.c (frame_register_read): New function. Return non-zero on
11233 (read_relative_register_raw_bytes_for_frame): Delete.
11234 (read_relative_register_raw_bytes): Delete.
11235 * frame.h (frame_register_read): Declare.
11236 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11237 * sh-tdep.c: Ditto.
11238 * infcmd.c (do_registers_info): Ditto.
11239 * hppa-tdep.c: Ditto.
11240 * rs6000-tdep.c: Ditto.
11241 * h8500-tdep.c: Ditto.
11242 * mips-tdep.c: Ditto.
11243 * h8300-tdep.c: Ditto.
11244 * z8k-tdep.c: Ditto.
11246 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11248 From Jimi X <jimix@watson.ibm.com>:
11249 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11252 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11254 From Jimi X <jimix@watson.ibm.com>:
11255 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11258 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11260 From Jimi X <jimix@watson.ibm.com>:
11261 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11262 register sets for these processor variants.
11264 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11266 * regformats/reg-ppc.dat: Support FPSCR.
11268 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11270 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11271 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11272 Add fpscr as an invalid/unfetchable register.
11273 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11274 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11275 (fill_fpregset): Add support for register fpscr.
11276 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11277 (fill_gregset): Account for the fact that register ``mq'' might
11279 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11280 (registers_power): Add fpscr to register set at slot 71.
11281 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11282 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11284 2002-04-11 Michael Snyder <msnyder@redhat.com>
11286 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11287 * configure: Regenerate.
11288 * config.in: Regenerate.
11289 * acconfig.h: Add define for _SYSCALL32.
11290 * core-sol2.c: Remove #define _SYSCALL32.
11291 * solib-legacy.c: Remove #define _SYSCALL32.
11293 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11295 * stack.c (select_frame): Cleanup internal error message, do not
11298 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11300 * stack.c (select_frame): Check that selected_frame and the
11301 specified level are as expected.
11302 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11304 * frame.h (struct frame_info): Add field `level'. Update
11306 Work-in-progress PR gdb/464.
11308 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11310 * maint.c (maint_print_section_info): Rename print_section_info.
11311 (print_bfd_section_info, print_objfile_section_info): Update.
11312 * inferior.h (struct gdbarch): Add opaque declaration.
11313 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11314 * gdbarch.h: Regenerate.
11316 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11318 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11319 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11320 (kernel_u_size): Added.
11321 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11322 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11324 2002-04-04 Jim Ingham <jingham@apple.com>
11326 * valarith.c (find_size_for_pointer_math): New function, either returns
11327 the size for a pointer's target, returns 1 for void *, or errors for
11329 (value_add, value_sub): use find_size_for_pointer_math.
11331 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11333 * linux-low.c (linux_look_up_symbols): New hook.
11334 (linux_target_ops): Add linux_look_up_symbols.
11335 * remote-utils.c (decode_address): New function.
11336 (look_up_one_symbol): New function.
11337 * server.c (handle_query): Call target look_up_symbols hook.
11338 * server.h (look_up_one_symbol): Add prototype.
11339 * target.h (struct target_ops): Add look_up_symbols hook.
11341 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11343 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11344 override FP_REGNUM with frame->fp. Update copyright.
11345 * parse.c (num_std_regs, std_regs): Delete.
11346 (target_map_name_to_register): Do not search std_regs. Update
11347 function description.
11348 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11349 declarations. Update copyright.
11352 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11354 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11355 after the last symbol in a block.
11357 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11359 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11360 is non zero as a found symbol.
11362 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11364 * findvar.c: Include "builtin-regs.h".
11365 (value_of_register): Call value_of_builtin_reg when applicable.
11366 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11367 (target_map_name_to_register): Call
11368 builtin_reg_map_name_to_regnum.
11369 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11370 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11371 (builtin_regs_h): Define.
11372 (builtin-regs.o): New target.
11373 (findvar.o): Add $(builtin_regs_h).
11374 * builtin-regs.c, builtin-regs.h: New files.
11375 * std-regs.c: New file.
11376 Partial fix for PR gdb/251.
11378 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11380 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11381 it's no longer required.
11383 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11385 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11387 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11389 From Jimi X <jimix@watson.ibm.com>:
11390 * rs6000-tdep.c (rs6000_software_single_step): Use
11391 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11392 and size. Use target_insert_breakpoint() and
11393 target_remove_breakpoint() to insert and remove breakpoints
11394 instead of explicit memory reads and writes.
11396 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11398 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11399 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11400 ELF_OBJECT_FORMAT ifdef.
11402 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11404 From Jimi X <jimix@watson.ibm.com>:
11405 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11407 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11409 From Jimi X <jimix@watson.ibm.com>:
11410 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11411 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11413 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11415 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11416 s/asprintf/xasprintf/.
11417 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11419 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11421 I believe Jeff Law denies responsability for this one:
11422 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11423 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11424 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11425 Work-around for PR gdb/366.
11427 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11429 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11430 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11431 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11433 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11435 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11436 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11439 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11441 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11444 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11446 * README (Reporting Bugs in GDB): Document the bug web page as the
11447 prefered way of submitting bugs.
11450 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11452 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11453 -1. Update comment.
11454 * gdbarch.h, gdbarch.c: Re-generate.
11456 2002-04-07 Andreas Schwab <schwab@suse.de>
11458 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11459 buffer to regcache_collect.
11461 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11463 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11464 * gdbarch.c, gdbarch.h: Re-generate.
11466 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11468 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11469 declaration. Fix -Werror.
11471 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11473 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11474 * gdbarch.c: Regenerate.
11476 2002-04-05 Michael Snyder <msnyder@redhat.com>
11478 * breakpoint.c (clear_command): Rewrite middle section to
11479 combine two loops with identical control conditions.
11480 Add a cleanup to eliminate a memory leak.
11481 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11483 2002-04-05 H.J. Lu (hjl@gnu.org)
11485 * solib-svr4.c (bkpt_names): Add "__start".
11487 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11489 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11490 as test for 64 bit target.
11492 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11494 * h8500-tdep.c (h8500_write_fp): Delete function.
11495 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11496 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11497 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11499 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11500 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11502 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11503 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11504 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11505 (d10v_write_fp): Delete function.
11506 * inferior.h (write_fp, generic_target_write_fp): Delete
11508 * regcache.c (generic_target_write_fp): Delete function.
11509 (write_fp): Delete function.
11510 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11511 * gdbarch.h, gdbarch.c: Regenerate.
11512 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11513 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11514 (sparc64_write_fp): Delete declaration.
11515 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11516 (h8500_write_fp): Delete declaration.
11518 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11520 * sparc-tdep.c (sparc64_write_fp): Delete.
11521 (sparc_push_dummy_frame): Replace write_fp call with code to store
11523 (sparc_gdbarch_init): Do not initialize write_fp.
11525 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11527 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11530 2002-03-29 Jim Blandy <jimb@redhat.com>
11532 * stack.c (get_selected_block): Add new argument `addr_in_block',
11533 used to return the exact code address we used to select the block,
11534 not just the block.
11535 * blockframe.c (get_frame_block, get_current_block): Same.
11536 * frame.h (get_frame_block, get_current_block,
11537 get_selected_block): Update declarations.
11538 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11539 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11541 2002-04-05 Michael Snyder <msnyder@redhat.com>
11543 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11546 2002-04-05 J. Brobecker <brobecker@gnat.com>
11548 * utils.c (xfullpath): New function.
11549 * defs.h (xfullpath): Add declaration.
11550 * source.c (openp): Use xfullpath in place of gdb_realpath to
11551 avoid resolving the basename part of filenames when the
11552 associated file is a symbolic link. This fixes a potential
11553 inconsistency between the filenames known to GDB and the
11554 filenames it prints in the annotations.
11555 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11556 to be able to match a filename with either the real filename, or
11557 the name of any symbolic link to this file.
11558 (lookup_partial_symtab): Ditto.
11560 2002-04-04 Michael Snyder <msnyder@redhat.com>
11562 * breakpoint.c: Add support for hardware breakpoints in overlays.
11563 (overlay_events_enabled): New state variable.
11564 (insert_breakpoints): Use overlay_events_enabled to decide
11565 whether to attempt to set a breakpoint at the overlay load addr.
11566 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11567 (remove_breakpoint): Use overlay_events_enabled to decide
11568 whether breakpoints need to be removed from overlay load addr.
11569 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11570 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11571 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11572 disable_overlay_breakpoints): Update overlay_events_enabled.
11574 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11576 * dwarf2read.c (struct function_range): New.
11577 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11578 (check_cu_functions): New.
11579 (read_file_scope): Initialize global function lists.
11580 Call dwarf_decode_line after processing children.
11581 (read_func_scope): Add to global function list.
11582 (dwarf_decode_lines): Call check_cu_functions everywhere
11583 record_line is called. Call record_line with a linenumber
11584 of 0 to mark sequence ends.
11586 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11588 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11589 change sync with glibc.
11591 2002-04-03 Jim Blandy <jimb@redhat.com>
11593 * configure.in: Call AC_C_INLINE.
11594 * configure: Regenerated.
11596 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11598 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11599 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11601 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11603 * NEWS: Mention gcore support on FreeBSD/i386.
11605 * fbsd-proc.c: New file.
11606 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11607 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11609 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11612 2002-03-29 Jim Blandy <jimb@redhat.com>
11614 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11615 unescaped newlines in string literals, but newer ones don't. So
11618 2002-03-26 Michael Snyder <msnyder@redhat.com>
11619 Andrew Cagney <cagney@redhat.com>
11621 * cli/cli-dump.c: New file. Dump memory to file,
11622 restore file to memory.
11623 * cli/cli-dump.h: New file.
11624 * Makefile.in: Add rules, dependencies for cli-dump.o.
11625 * NEWS: Mention new commands.
11627 2002-03-28 Michael Snyder <msnyder@redhat.com>
11629 * symfile.c (symbol_file_add): Move test for null symbols to later.
11631 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11633 From veksler at il.ibm.com:
11634 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11635 the xstrduped original path.
11638 2002-03-27 Michael Snyder <msnyder@redhat.com>
11640 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11641 * infcmd.c (_initialize_infcmd): Ditto.
11642 * language.c (_initialize_language): Ditto.
11643 * symfile.c (_initialize_symfile): Ditto.
11644 * top.c (_init_main): Ditto.
11645 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11647 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11649 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11650 vector registers handling.
11651 (skip_prologue): Handle new AltiVec instructions. Fill in new
11652 fields of frame data.
11653 (frame_get_saved_regs): Fill in information for AltiVec registers.
11655 2002-03-27 Jim Blandy <jimb@redhat.com>
11657 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11658 a function; leave this macro here to invoke that function.
11659 (symbol_init_mangled_name): Declaration for that function.
11660 * symtab.c (symbol_init_mangled_name): New function.
11662 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11664 * valarith.c: Replace strerror with safe_strerror.
11665 * tracepoint.c: Ditto.
11666 * lin-lwp.c: Ditto.
11667 * go32-nat.c: Ditto.
11669 * gnu-nat.c: Ditto.
11671 2002-03-27 Andreas Schwab <schwab@suse.de>
11673 * event-top.c (command_line_handler): Remove useless if.
11675 2002-03-27 Andreas Jaeger <aj@suse.de>
11677 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11680 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11682 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11683 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11684 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11685 (x86_64_linux_dr_get_status, supply_gregset),
11686 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11687 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11688 (x86_64_register_info_table): Add.
11689 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11690 (x86_64_register_raw_size, x86_64_register_virtual_type),
11691 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11692 general x86_64_register_info_table.
11693 (i386_gdbarch_init): gdbarch_register_bytes is now set
11694 dynamicaly during initialization.
11695 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11696 * gdbserver/linux-x86-64-low.c: Ditto.
11698 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11700 * gdbserver/server.c (main): Call target_signal_to_host_p
11701 and target_signal_to_host on signals received from the remote.
11702 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11703 target_signal_from_host on signals sent to the remote.
11704 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11705 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11707 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11709 * signals/signals.c: Include "server.h" in gdbserver build.
11710 (target_signal_from_name): Don't use STREQ.
11711 (_initialize_signals): Likewise. Don't include function in
11714 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11716 * signals.c: Moved to...
11717 * signals/signals.c: Here.
11718 * Makefile (signals.o): Update.
11720 2002-03-26 Jeff Law (law@redhat.com)
11722 * somread.c (som_symtab_read): Remove some commented out code and
11723 updated related comments. Do not set the minimal symbol table to
11724 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11725 in a dynamic executable.
11726 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11727 where we are unable to find the minimal symbol for the given
11730 2002-03-25 Jeff Law (law@redhat.com)
11732 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11734 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11736 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11738 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11740 * command.h: Update copyright.
11741 (struct cmd_list_element): Replace definition with opaque
11743 (enum cmd_types): Document that it will eventually be moved to
11745 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11746 (MALLOCED_REPLACEMENT): Delete macro.
11747 * Makefile.in (cli_decode_h): Add $(command_h).
11748 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11749 * top.c: Include "cli/cli-decode.h".
11750 * completer.c: Include "cli/cli-decode.h".
11751 * maint.c: Include "cli/cli-decode.h".
11752 * cli/cli-decode.h: Include "command.h".
11753 (enum command_class): Delete.
11754 (enum cmd_types): Comment out.
11755 (enum cmd_auto_boolean): Delete.
11756 (enum var_types): Delete.
11758 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11760 * cli/cli-decode.c: Include "gdb_assert.h".
11761 (add_set_or_show_cmd): New static function.
11762 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11763 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11764 all fields, such as func, from the set command.
11766 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11768 * MAINTAINERS (sh-elf): Change warning flag to -w.
11770 2002-03-23 Andrew Cagney <cagney@redhat.com>
11772 * defs.h (error): Add printf format attribute.
11773 * thread-db.c (thread_from_lwp): Fix error format string.
11774 * stack.c (parse_frame_specification): Ditto.
11775 * cli/cli-decode.c (undef_cmd_error): Ditto.
11776 * scm-lang.c (scm_lookup_name): Ditto.
11777 * tracepoint.c (trace_error): Ditto.
11778 * remote-utils.c (usage): Ditto.
11779 * remote.c (compare_sections_command): Ditto.
11782 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11784 * gdbtypes.c (append_composite_type_field): New function.
11785 (init_composite_type): New function.
11786 * gdbtypes.h (append_composite_type_field): Declare.
11787 (init_composite_type): Ditto.
11789 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11791 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11793 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11794 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11795 structure returning convention for SYSV ABI case, but not
11796 for GNU/Linux, FreeBSD, or NetBSD.
11798 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11800 * symtab.h (lookup_block_symbol): Add mangled_name argument
11803 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11804 with new mangled_name argument.
11805 * linespec.c (decode_line_1): Likewise.
11806 * valops (value_of_this): Likewise.
11807 * symtab.c (lookup_transparent_type): Likewise.
11808 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11809 (lookup_symbol): If we are given a mangled name, pass it down
11810 to lookup_symbol_aux.
11811 (lookup_block_symbol): If we are given a mangled name to check
11812 against, only return symbols which match it.
11814 2002-03-22 Christopher Faylor <cgf@redhat.com>
11816 * win32-nat.c (child_create_inferior): Check for proper shell to use
11817 here, in case the user changes it on the fly.
11818 (_initialize_inftarg): Remove shell path considerations.
11820 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11822 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11823 for gdbarch_max_register_raw_size and max_register_virtual_size.
11824 Adjust copyright year.
11826 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11828 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11829 in a function to cover the entire beginning of the function
11830 as well if it does not already.
11832 2002-03-21 Tom Rix <trix@redhat.com>
11834 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11835 (rs6000_ptrace64): Renamed from ptrace64.
11837 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11839 * gdbserver/remote-utils.c (remote_open): Don't call
11840 getprotobyname, we're all using TCP here so just use
11842 * gdbserver/gdbreplay.c (remote_open): Ditto.
11844 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11846 * regcache.c (_initialize_regcache): No need to call
11847 build_regcache() at this time; it gets called whenever
11848 the gdbarch changes.
11850 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11852 * sparc-nat.c: Include sys/param.h where possible.
11854 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11857 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11858 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11859 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11861 * stabsread.c (rs6000_builtin_type): Likewise.
11862 (read_sun_floating_type): Likewise.
11864 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11866 * stabsread.c (read_member_functions): Remove skip code for duplicate
11867 constructor/destructor methods. Use standard parsing for these
11868 methods and just do not chain them to the list of methods after
11871 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11873 * coffread.c: Remove redundant static declarations. Replace
11874 occurrences of `PTR' with `void *'.
11875 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11876 * top.h (quit_cover): Likewise.
11877 * defs.h (catch_errors): Likewise.
11879 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11881 * defs.h (XMALLOC): Define.
11882 * gdb-events.sh (XMALLOC): Delete macro.
11883 * gdb-events.c, gdb-events.h: Regenerate.
11884 * gdbarch.sh (XMALLOC): Delete macro.
11885 * gdbarch.c: Regenerate.
11886 * serial.c (XMALLOC): Delete macro.
11887 * ui-file.c (XMALLOC): Ditto.
11888 * ser-unix.h (XMALLOC): Ditto.
11889 * sh-tdep.c (XMALLOC): Ditto.
11890 * ui-out.c (XMALLOC): Ditto.
11891 * utils.c (XMALLOC): Ditto.
11892 * i386-tdep.c (XMALLOC): Ditto.
11893 * gdb-events.c (XMALLOC): Ditto.
11894 * d10v-tdep.c (XMALLOC): Ditto.
11895 * cli-out.c (XMALLOC): Ditto.
11897 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11898 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11899 * ui-file.c, ui-out.c: Ditto.
11901 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11903 * command.h (struct cmd_list_element): Add field context.
11904 (set_cmd_context, get_cmd_context): Declare.
11905 * cli/cli-decode.h: Ditto.
11906 * cli/cli-decode.c (get_cmd_context): New function.
11907 (set_cmd_context): New function.
11908 (add_cmd): Initialize context.
11909 Part of fixing PR gdb/145 and PR gdb/146.
11911 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11913 * cli/cli-decode.c (cmd_type): New function.
11914 * command.h (cmd_type): Declare.
11915 * infrun.c (set_schedlock_func): Call function cmd_type.
11916 * kod.c (kod_set_os): Call cmd_type.
11917 * cris-tdep.c (cris_version_update): Use function cmd_type.
11918 (cris_mode_update, cris_abi_update): Ditto.
11920 * command.h: (execute_cmd_post_hook): Declare.
11921 (execute_cmd_pre_hook): Declare.
11922 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11923 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11924 functions. Execute pre/post hook while ensuring that afterwords
11925 hook_in is cleared.
11926 * top.c (execute_command): Use execute_cmd_post_hook, and
11927 execute_cmd_pre_hook to execute pre/post commands.
11928 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11930 (hook_stop_stub): Call execute_cmd_pre_hook.
11932 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11934 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11935 set'' and this leads to a core dump. Move xstrdup of
11936 operating_system to after check that it is not NULL.
11938 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11940 * kod.c (kod_set_os): Remove unnecessary check that
11941 ``command->type'' is set_cmd.
11943 * valprint.c (set_input_radix): Use input_radix.
11944 (set_output_radix): Use output_radix.
11945 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11948 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11950 * value.h (struct value): Delete field ``substring_addr''. Change
11951 aligner fields to force_doublest_align, force_longest_align,
11952 force_core_addr_align and force_pointer_aligh.
11954 * value.h (struct value): Fix typo in above change.
11956 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11958 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11959 to fix internal_error from ``maintenance print architecture''.
11961 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11963 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11964 for gcc versions after gcc-2.8.1.
11966 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11968 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11969 for method resolution. Restore adjustment of ``this'' pointer after
11970 calling value_struct_elt, which was accidentally removed during the
11973 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11975 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11977 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11978 get_saved_register.
11979 * value.h (value_of_register): Update.
11981 2002-03-14 Richard Henderson <rth@redhat.com>
11983 * configure.in: Detect declaration for canonicalize_file_name.
11984 * utils.c (canonicalize_file_name): Declare, if needed.
11985 (gdb_realpath): Prefer realpath if available and usable.
11986 * config.in, configure: Rebuild.
11988 2002-03-14 Richard Henderson <rth@redhat.com>
11990 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11991 a constant array bound.
11993 * MAINTAINERS: Add myself to write-after-approval.
11995 2002-03-14 Michael Snyder <msnyder@redhat.com>
11997 * symfile.c (syms_from_objfile): Return immediately if no syms.
11998 (symbol_file_add): Return immediately if no syms.
11999 (find_sym_fns): Return immediately if no syms.
12001 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12003 * gdbserver/remote-util.c (remote_open): Print remote-side's
12004 IP address when remote debugging over the network.
12006 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12008 * config/sparc/fbsd.mh: Fix copyright.
12009 * config/sparc/fbsd.mt: Likewise.
12011 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12013 * MAINTAINERS: Fix typo in name of gdb warnings option.
12014 (x86-64): Fix formating so that this can be parsed by awk.
12016 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12018 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12019 * defs.h: Include "gdb/signals.h".
12020 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12022 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12024 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12025 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12028 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12029 Don Howard <dhoward@redhat.com>
12031 * mips-tdep.c (ST0_FR): Define.
12032 (mips2_fp_compat): New function, temporarily disabled.
12033 (mips_read_fp_register_single): New function.
12034 (mips_read_fp_register_double): New function.
12035 (mips_print_register): Use them.
12036 (do_fp_register_row): Likewise.
12038 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12040 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12043 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12045 * stabsread.c (read_member_functions): Fix is_stub test for
12046 static member functions, improve comment.
12048 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12050 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12051 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12052 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12053 commands that set boolean values.
12054 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12055 (arm_rdi_resume): Always initialize PC.
12056 (arm_rdi_open): Don't use rslt as a boolean.
12057 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12058 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12059 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12060 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12062 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12064 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12065 * configure: Rebuilt.
12067 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12069 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12070 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12072 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12074 * cli/cli-decode.c (set_cmd_completer): New function.
12075 * command.h (set_cmd_completer): Declare.
12076 * cli/cli-decode.h (set_cmd_completer): Ditto.
12078 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12079 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12080 * win32-nat.c (_initialize_inftarg): Ditto.
12081 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12082 * proc-api.c (_initialize_proc_api): Ditto.
12083 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12084 * source.c (_initialize_source): Ditto.
12085 * exec.c (_initialize_exec): Ditto.
12086 * solib.c (_initialize_solib): Ditto.
12087 * top.c (init_main): Ditto.
12088 * tracepoint.c (_initialize_tracepoint): Ditto.
12089 * symfile.c (_initialize_symfile): Ditto.
12090 * printcmd.c (_initialize_printcmd): Ditto.
12091 * infcmd.c (_initialize_infcmd): Ditto.
12092 * corefile.c (_initialize_core): Ditto.
12094 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12096 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12098 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12100 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12102 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12104 * NEWS: Update headings, 5.2 has branched.
12106 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12108 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12109 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12110 (register_addr, REGISTER_RAW_SIZE): Likewise.
12111 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12112 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12114 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12116 * MAINTAINERS (x86-64): Add myself.
12117 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12118 changed value_ptr -> struct value *
12120 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12122 * configure.host (sparc64-*-freebsd): Add.
12123 * configure.tgt: Likewise.
12124 * config/sparc/fbsd.mh: New file.
12125 * config/sparc/fbsd.mt: Likewise.
12126 * config/sparc/nm-fbsd.h: Likewise.
12127 * config/sparc/tm-fbsd.h: Likewise.
12129 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12131 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12132 regformats/reg-s390x.dat.
12134 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12136 * utils.c: Add FIXME explaining true/false problem.
12138 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12140 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12142 2002-02-28 Michael Chastain <mec@shout.net>
12144 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12146 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12148 * gdbserver/linux-s390-low.c: New file.
12149 * regformats/reg-s390.dat: New file.
12150 * regformats/reg-s390x.dat: New file.
12151 * gdbserver/configure.srv: Add S/390.
12152 * gdbserver/Makefile.in: Add S/390.
12153 * configure.tgt: Enable gdbserver for S/390.
12155 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12157 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12158 first line of the doc string for "info dos", except at the end of
12159 the sentence, since the short help stops at the first period.
12161 2002-02-28 Jason Merrill <jason@redhat.com>
12163 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12165 2002-02-27 Fred Fish <fnf@redhat.com>
12167 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12168 comment (dumy -> dummy).
12170 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12172 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12174 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12176 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12178 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12180 * gdbserver/acconfig.h: New file.
12181 * gdbserver/i387-fp.c: New file.
12182 * gdbserver/i387-fp.h: New file.
12183 * gdbserver/linux-x86-64.c: New file.
12184 * regformats/reg-x86-64.dat: New file.
12185 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12186 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12187 * gdbserver/configure.in: Add support for regsets.
12188 * gdbserver/config.in: Regenerate.
12189 * gdbserver/configure: Regenerate.
12190 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12191 * gdbserver/linux-low.h: New file.
12192 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12194 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12195 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12196 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12197 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12198 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12199 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12200 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12201 "i387-fp.h". Add PTRACE_GETREGS and friends.
12202 * gdbserver/regcache.c (supply_register): New function.
12203 (supply_register_by_name): New function.
12204 (collect_register): New function.
12205 (collect_register_by_name): New function.
12207 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12209 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12210 (config.status): Add configure.srv dependency.
12211 (server_h): Add config.h dependency.
12213 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12215 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12216 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12217 * gdbserver/configure.srv: Change i386-*-linux* to use
12220 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12222 * x86-64-tdep.c: Re-indent. Update copyright date.
12224 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12226 From Michal Ludvig <mludvig@suse.cz>:
12227 * x86-64-tdep.c (value.h): Delete.
12228 (gdb_assert.h): Include.
12229 (x86_64_register_convert_to_virtual,
12230 x86_64_register_convert_to_raw ): Add check which lets only
12231 floating-point values to be converted.
12232 (value_push): Delete.
12233 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12234 (i386_gdbarch_init): Number of register_bytes fixed.
12236 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12238 * MAINTAINERS: Add x86-64 target.
12240 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12242 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12243 * osfsolib.c (solib_map_sections): Ditto.
12244 * irix5-nat.c (solib_map_sections): Ditto.
12245 * corelow.c (gdb_check_format): Ditto.
12246 * symfile.c (symfile_bfd_open): Ditto.
12247 * solib.c (solib_map_sections): Ditto.
12250 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12252 * remote.c (_initialize_remote): By default, disable ``e'' and
12253 ``E'' step out-of-range packets.
12255 2002-02-26 Andreas Schwab <schwab@suse.de>
12257 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12258 m68k_linux_frame_saved_pc.
12259 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12261 (SIGCONTEXT_PC_OFFSET): Remove.
12262 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12263 m68k_linux_sigtramp_saved_pc): New functions.
12264 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12265 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12266 (UCONTEXT_PC_OFFSET): Define.
12267 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12268 non-RT and RT signal trampolines.
12270 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12272 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12273 (TARGET_NBPG, STACK_END_ADDR): Delete
12274 (VARIABLES_INSIDE_BLOCK): Delete.
12276 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12278 * utils.c (perror_with_name): Make string parameter constant.
12279 (print_sys_errmsg): Ditto.
12281 * defs.h (perror_with_name): Update.
12282 (print_sys_errmsg): Update.
12285 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12287 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12288 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12290 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12292 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12293 if it already matches the current architecture from the exec file.
12294 Include arch-utils.h for gdbarch_info_init prototype.
12295 * Makefile.in (rs6000-nat.o): Update dependencies.
12297 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12299 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12300 list of exported variables.
12302 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12304 * gdbserver/configure.srv: New file.
12305 * gdbserver/configure.in: Use configure.srv instead
12306 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12308 * gdbserver/configure: Regenerated.
12309 * gdbserver/terminal.h: New file.
12310 * gdbserver/Makefile.in: Update for configure changes. Remove
12311 more unneeded include paths.
12313 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12315 From wiz at danbala:
12316 * config/sparc/tm-sp64.h: Fix grammar and typos.
12319 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12321 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12322 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12323 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12324 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12325 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12326 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12327 * s390-tdep.c: Ditto.
12328 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12329 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12330 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12331 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12332 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12333 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12334 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12335 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12336 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12337 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12340 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12342 * lin-thread.c: Delete file.
12343 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12344 to gdb_proc_service.h.
12345 * configure: Re-generate.
12347 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12348 * serial.c (serial_open): Delete check for "ocd".
12351 * Makefile.in (linux-thread.o): Delete target.
12352 * linux-thread.c: Delete file.
12354 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12355 renamed SH files to be consistent.
12357 * symtab.c (sort_search_symbols): Use xfree.
12359 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12361 * arm-linux-tdep.c (arm_linux_init_abi): Register
12362 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12363 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12364 definition with undef, since we don't want the sysvr4 definition.
12365 (SKIP_TRAMPOLINE_CODE): Likewise.
12367 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12369 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12371 * configure.in: (AC_CHECK_FUNCS) Added test for
12372 canonicalize_file_name Regenerated.
12373 * config.in, configure: Regenerated.
12374 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12375 defined use canonicalize_file_name.
12377 2002-02-23 Michael Chastain <mec@shout.net>
12379 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12381 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12383 * README: Remove references to cygnus.com.
12384 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12385 dot com'' form. Remove references to cygnus.com and sourceware.
12387 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12389 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12390 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12391 1003.1-2001 no longer allows "head -1".
12392 * gdb/Makefile.in (version.c): Likewise.
12393 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12394 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12395 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12397 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12399 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12400 * command.h (cmd_cfunc_eq): Declare.
12401 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12403 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12404 ``struct cmd_list_element *''.
12405 * cli/cli-cmds.c (is_complete_command): Update. Use
12407 * top.c (execute_command): Pass the command to
12408 is_complete_command.
12409 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12411 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12413 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12414 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12415 architecture defines.
12416 * s390-tdep.c (s390_gdbarch_init): Likewise.
12418 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12420 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12421 (arm_linux_push_arguments): Likewise.
12422 (arm_linux_init_abi): Register them. Also register linux-specific
12424 (find_minsym_and_objfile): Use strcmp, not STREQ.
12425 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12426 (arm_linux_call_dummy_words): Delete declaration.
12427 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12428 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12430 (LOWEST_PC): Delete.
12432 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12434 * maint.c (print_section_info): Do not prepend `0x' to filepos
12435 output, it will be handled by local_hex_string_custom.
12437 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12439 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12440 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12441 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12443 2002-02-22 Jim Blandy <jimb@redhat.com>
12445 Indicate that the bcache functions don't change the strings
12447 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12448 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12450 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12452 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12454 2002-02-21 Christopher Faylor <cgf@redhat.com>
12456 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12457 find the complete path to a loaded DLL.
12459 2002-02-21 Fred Fish <fnf@redhat.com>
12461 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12462 that marks the end of the range of a function, enter a line number
12463 entry that has a line number of zero and a PC offset that matches
12464 the end of the function. This starts a range of PC's for which no
12465 line number information is known.
12466 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12467 PC's for which no line number info is found (line number is zero)
12468 then we didn't find any valid line information.
12469 * symtab.h: Document use of zero line number entry.
12471 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12473 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12474 (have_ptrace_getvrregs): Define for run time checks.
12475 (gdb_vrregset_t): New type for Altivec register handling.
12476 (fetch_register, store_register): Fetch/store altivec register
12478 (fetch_altivec_register, store_altivec_register): New functions.
12479 (supply_vrregset, fill_vrregset): New functions.
12480 (fetch_altivec_registers, store_altivec_registers): New functions.
12481 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12484 2002-02-21 Jiri Smid <smid@suse.cz>
12486 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12488 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12490 * Makefile.in (armnbsd-nat.o): Update dependencies.
12491 * armnbsd-nat.c (supply_gregset): New function. Common code to
12492 supply the integer register set.
12493 (supply_fparegset): New function. Similar for FPA registers.
12494 (fetch_regs, fetch_fp_regs): Use them.
12495 (fetch_core_registers): Likewise.
12496 (fetch_elfcore_registers): New function.
12497 (arm_netbsd_elfcore_fns): New core-file type specification.
12498 (_initialize_arm_netbsd_nat): Register it.
12500 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12502 * armnbsd-nat.c: Include gdbcore.h.
12503 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12504 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12505 'void' to declaration, to shut up ARI.
12506 (fetch_core_registers): Make static. Rewrite using supply_register.
12507 (arm_netbsd_core_fns): New core-file type specification.
12508 (_initialize_arm_netbsd_nat): New function.
12510 2002-02-21 Christopher Faylor <cgf@redhat.com>
12512 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12515 2002-02-20 Christopher Faylor <cgf@redhat.com>
12517 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12520 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12522 * jv-exp.y (parse_number): Change type of implicit longs
12523 to builtin_type_uint64.
12525 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12527 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12528 to be an integer instead of a `union wait'.
12530 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12532 * mips-linux-nat.c: Call the operating system GNU/Linux.
12533 * mips-linux-tdep.c: Likewise.
12534 * mips-tdep.c: Likewise.
12536 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12539 * jv-exp.y (parse_number): Handle 64-bit integers.
12541 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12543 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12544 AC_STDC_HEADERS to AC_HEADER_STDC.
12545 * gdbserver/configure: Regenerated.
12547 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12549 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12551 * sparc-tdep.c (get_longjmp_target): Likewise.
12553 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12555 * News: Add news about ARM and Multi-arch. Mention the new target
12558 2002-02-19 Jim Blandy <jimb@redhat.com>
12560 * stabsread.c (error_type_complaint): Improve error message.
12562 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12564 * gdbserver/README: Update documentation.
12565 * gdbserver/configure.in: Update configury to match documentation.
12566 * gdbserver/Makefile.in: Likewise.
12567 * gdbserver/configure: Regenerated.
12568 * gdbserver/aclocal.m4: New file, generated by aclocal.
12569 * gdbserver/config.in: New file, generated by autoheader.
12571 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12573 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12576 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12578 * arm-tdep.h (enum arm_float_model): New enum.
12579 (struct gdbarch_tdep): Add fp_model.
12580 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12581 up floating-point conversions until we know the floating-point model
12582 in use by the inferior. Don't complain about being unable to
12583 determine the ABI of the inferior when we don't have one.
12584 (arm_extract_return_value): Support different floating-point models.
12585 (arm_store_return_value): Likewise.
12586 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12588 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12590 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12592 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12593 of ``current_gdbarch''.
12595 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12597 * armnbsd-nat.c : ANSIfy all function declarations.
12598 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12599 (fetch_inferior_registers): Re-implement in terms of above.
12600 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12601 (store_inferior_registers): Re-implement in terms of above.
12603 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12605 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12607 * arm-linux-tdep.c: Likewise.
12608 * config/arm/tm-linux.h: Likewise.
12610 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12612 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12613 * config/arm/nbsd.mt (TM_FILE): Delete.
12614 * config/arm/tm-nbsd.h: Delete.
12616 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12618 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12619 Initialize CALL_DUMMY_LENGTH.
12621 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12623 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12625 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12626 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12627 defines one thing and that is incorrect for this port.
12628 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12630 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12632 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12634 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12636 * win32-nat.c (display_selector): New function. Displays information
12637 about the information returned by GetThreadSelectorEntry API function.
12638 (display_selectors): New function. Displays the infomation of
12639 the selector given as argument, or of CS, DS ans FS selectors
12640 if no argument is given.
12641 ( _initialize_inftarg): Add "w32" as info prefix command.
12642 Add "info w32 selector" as command calling display_selectors.
12644 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12646 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12647 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12650 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12652 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12654 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12656 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12657 (arm_fix_call_dummy): Call it.
12658 (arm_call_dummy_breakpoint_offset): Delete.
12659 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12660 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12662 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12664 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12665 Default to func_frame_chain_valid.
12666 * gdbarch.h, gdbarch.c: Re-generate.
12667 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12669 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12671 * ppc-linux-nat.c: Update copyright.
12672 (fetch_register, store_register): Add tid parameter, don't compute
12674 (fetch_ppc_registers, store_ppc_registers): Add tid
12675 parameter. Pass it along to callees.
12676 (fetch_inferior_registers, store_inferior_registers): Compute tid
12677 here, and pass it to calleed functions.
12678 (fill_gregset, supply_fpregset): Clean up formatting.
12680 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12682 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12683 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12685 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12687 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12688 * gdbarch.c gdbarch.h: Regenerate.
12689 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12691 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12692 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12693 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12695 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12696 * arm-tdep.c (arm_get_longjmp_target): New function.
12697 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12698 this to a positive value register arm_get_longjmp_target as the
12700 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12701 (arm_linux_init_abi): Set up longjmp description in tdep.
12702 * armnbsd-nat.c (get_longjmp_target): Delete.
12703 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12704 description in tdep.
12705 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12706 (get_longjmp_target): Delete declaration.
12707 (GET_LONGJMP_TARGET): Delete.
12708 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12709 (GET_LONGJMP_TARGET): Delete.
12711 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12713 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12714 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12715 of ``current_gdbarch''.
12717 2002-02-17 Tom Tromey <tromey@redhat.com>
12719 * cli/cli-cmds.c (compare_strings): New function.
12720 (complete_command): Only print each unique item once.
12721 * completer.h (complete_line): Declare.
12722 * completer.c (complete_line): New function.
12723 (line_completion_function): Use it.
12725 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12727 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12728 * gdbarch.h, gdbarch.c: Re-generate.
12730 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12732 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12734 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12736 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12737 * valops.c (value_arg_coerce): Don't take the address of a reference
12738 to convert an argument to a reference.
12740 2002-02-15 Christopher Faylor <cgf@redhat.com>
12742 * win32-nat.c (get_image_name): New function.
12743 (handle_load_dll): Use get_image_name function.
12744 (get_child_debug_event): Avoid registering debug events until possibly
12745 execed process is started.
12746 (child_create_inferior): Allow invocation via shell so that command
12747 line redirection, etc. works ok.
12748 (_initialize_inftarg): Add new command: "set shell" to control whether
12749 a shell is used to start a process.
12751 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12753 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12754 instead of find_register_by_number.
12755 (cannot_store_register): Likewise.
12757 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12759 * dwarf2read.c: Replace fprintf (stderr, ...) by
12760 fprintf_unfiltered (gdb_stderr, ...).
12762 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12764 * gdbserver/gdbserver.1: Document --attach.
12766 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12768 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12770 * arm-tdep.c (arm_default_arm_le_breakpoint)
12771 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12772 (arm_default_thumb_be_breakpoint): New. Initialize them from
12773 traditional breakpoint defines.
12774 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12775 (arm_gdbarch_init): Initialize new breakpoint variables.
12776 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12777 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12778 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12779 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12781 (arm_netbsd_init_abi_common): ... here; new function.
12782 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12783 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12784 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12785 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12787 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12789 * arm-tdep.h (enum arm_abi): New enum.
12790 (struct gdbarch_tdep): New structure.
12791 (LOWEST_PC): Provide a default.
12792 (arm_gdbarch_register_os_abi): Declare new function.
12793 * arm-tdep.c (arm_abi_names): New array.
12794 (process_note_abi_tag_sections): New function.
12795 (get_elfosabi): New function.
12796 (arm_gdbarch_register_os_abi): New function.
12797 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12798 support for that ABI has been built in, then call the appropriate
12799 configuration routine. Use gdbarch_num_regs() to get the number
12801 (arm_dump_tdep): New function.
12802 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12803 place-holder functions.
12804 (_initialize_arm_tdep): Register them.
12805 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12807 * armnbsd-tdep.c: New file.
12808 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12809 * config/arm/nbsd.mt (TDEPFILES): Add it.
12810 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12812 * armnbsd-nat.c: Include regcache.h.
12813 * Makefile.in (armnbsd-nat.o): Update dependency list.
12815 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12817 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12819 * gdbserver/Makefile.in: Fix typos in target rules.
12821 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12823 Fix part of PR gdb/267.
12824 * linespec.c (find_methods): Handle constructors specially for now.
12826 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12828 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12830 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12831 standard_coerce_float_to_double().
12833 2002-02-14 Christopher Faylor <cgf@redhat.com>
12835 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12838 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12840 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12841 find_variant_by_name, because it confuses the multiarch
12842 framework. Return NULL if there isn't an architecture with the
12843 user supplied name, instead of forcing a different one without
12844 recording the change with the multiarch machinery.
12845 (find_variant_by_name): Delete.
12847 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12849 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12850 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12852 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12854 * stack.c (print_frame_info_base): When calling
12855 print_frame_info_listing_hook, set current_source_symtab.
12857 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12859 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12860 and remove unused $(INCLUDE_DIR).
12861 Add regcache.c to OBS.
12862 Add generated register protocol files to clean target.
12863 Update dependencies for new objects, obsolete old target code.
12865 * gdbserver/linux-low.c: Remove all platform-specific code to
12866 new files. Remove various dead code. Update to use regcache
12868 * gdbserver/remote-utils.c (fromhex): Add return statement
12870 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12872 (input_interrupt): Add integer parameter to match prototype
12873 of a signal handler.
12874 (outreg): Use register_data ().
12875 (prepare_resume_reply): Use gdbserver_expedite_regs.
12876 * gdbserver/server.c (main): Dynamically allocate own_buf because
12877 PBUFSIZ is no longer constant. Use registers_to_string () and
12878 registers_from_string ().
12879 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12880 for error (), fatal (), and warning (). Update definition of
12881 PBUFSIZ to use regcache functionality. Add include guard.
12882 * gdbserver/utils.c (fatal): Add missing ``const''.
12883 (warning): New function.
12885 * regformats/regdat.sh: Include "regcache.h" in generated files.
12886 Provide init_registers () function.
12887 * regformats/regdef.h: Add prototype for set_register_cache ().
12890 * gdbserver/linux-arm-low.c: New file.
12891 * gdbserver/linux-i386-low.c: New file.
12892 * gdbserver/linux-ia64-low.c: New file.
12893 * gdbserver/linux-m68k-low.c: New file.
12894 * gdbserver/linux-mips-low.c: New file.
12895 * gdbserver/linux-ppc-low.c: New file.
12896 * gdbserver/linux-sh-low.c: New file.
12898 * gdbserver/regcache.c: New file.
12899 * gdbserver/regcache.h: New file.
12901 * gdbserver/low-linux.c: Removed obsolete file.
12903 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12905 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12906 * config/i386/linux.mt: Likewise.
12907 * config/ia64/linux.mt: Likewise.
12908 * config/m68k/linux.mh: Likewise.
12909 * config/powerpc/linux.mh: Likewise.
12910 * config/mips/linux.mt: Likewise.
12912 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12914 * config/i386/i386lynx.mh: Mark gdbserver variables
12915 as (currently) obsolete for this target.
12916 * config/i386/nbsd.mt: Likewise.
12917 * config/i386/nbsdelf.mt: Likewise.
12918 * config/m32r/m32r.mt: Likewise.
12919 * config/m68k/m68klynx.mh: Likewise.
12920 * config/m68k/nbsd.mt: Likewise.
12921 * config/m68k/sun3os4.mh: Likewise.
12922 * config/mips/vr5000.mt: Likewise.
12923 * config/ns32k/nbsd.mt: Likewise.
12924 * config/pa/hppabsd.mh: Likewise.
12925 * config/pa/hppaosf.mh: Likewise.
12926 * config/powerpc/nbsd.mt: Likewise.
12927 * config/rs6000/rs6000lynx.mh: Likewise.
12928 * config/s390/s390.mt: Likewise.
12929 * config/s390/s390x.mt: Likewise.
12930 * config/sparc/sparclynx.mh: Likewise.
12931 * config/sparc/sun4os4.mh: Likewise.
12932 * config/i386/x86-64linux.mt: Likewise.
12933 * config/sparc/linux.mh: Likewise.
12935 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12937 * configure.tgt: Configure gdbserver only for known working
12938 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12939 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12940 SUBDIRS if it is configured. Update comment for ${nativefile}.
12941 * configure: Regenerated.
12943 2002-02-13 Michael Snyder <msnyder@redhat.com>
12945 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12947 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12948 (default_gcore_mach): Just return 0, work around a problem in bfd.
12949 (default_gcore_target): OK to return NULL if exec_bfd is null.
12950 (make_mem_sec): Use a cast, avoid a warning.
12952 * procfs.c (find_memory_regions_callback): Use a cast instead of
12953 calling host_pointer_to_address (which complains if
12954 sizeof (host pointer) != sizeof (target pointer)).
12955 (procfs_make_note_section): Avoid overflow in psargs string.
12957 * procfs.c (procfs_make_note_section): Make the default
12958 implementation return an error.
12960 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12962 * procfs.c (procfs_make_note_section): Provide a default definition
12963 (for alpha-dec-osf4.0f). Fix typos.
12965 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12967 * linux-proc.c: Add include of regcache.h.
12968 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12970 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12972 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12973 * memattr.c (create_mem_region): Disallow useless empty region.
12974 Regions are half-open intervals, so allow [A..B) [B..C) as
12977 2002-02-13 Michael Chastain <mec@shout.net>
12979 * defs.h: Kill CONST_PTR.
12980 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12981 * c-lang.c (c_builtin_types): Likewise.
12982 * ch-lang.c (ch_builtin_types): Likewise.
12983 * f-lang.c (f_builtin_types): Likewise.
12984 * language.c (unknown_builtin_types): Likewise.
12985 * m2-lang.c (m2_builtin_types): Likewise.
12986 * p-lang.c (pascal_builtin_types): Likewise.
12987 * scm-lang.c (c_builtin_types): Likewise.
12989 2002-02-13 Keith Seitz <keiths@redhat.com>
12991 * arm-tdep.h (arm_get_next_pc): Add declaration.
12993 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12995 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12996 with other related struct-returning functions.
12997 (arm_extract_struct_value_address): New function.
12998 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12999 initialize float_format, double_format and long_double_format as
13000 appropriate to the endianness of the target.
13001 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13002 (arm_use_struct_convention): Delete declaration.
13003 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13005 2002-02-13 Keith Seitz <keiths@redhat.com>
13007 * defs.h (core_addr_to_string_nz): New function.
13009 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13011 Apply missing bits of 2002-01-15 patch.
13012 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13013 (fill_fpregset): Use i387_fill_fsave.
13015 2002-02-12 Keith Seitz <keiths@redhat.com>
13017 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13018 (core_addr_to_string_nz): New function.
13020 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13022 * arm-linux-nat.c: Really include arm-tdep.h.
13023 * config/arm/tm-linux.h (struct type, struct value): Declare.
13025 2002-02-11 Michael Snyder <msnyder@redhat.com>
13027 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13028 (gcore section): Ifdef for Solaris and Unixware only.
13029 (procfs_do_thread_registers): Unixware needs one lwpstatus
13030 per thread (not one prstatus or pstatus).
13031 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13032 not over all gdb threads. For unixware, call elfcore_write_pstatus
13033 once before iterating over threads.
13035 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13037 * arm-tdep.h: New file.
13038 * arm-tdep.c: Include arm-tdep.h.
13039 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13040 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13041 (arm_print_float_info, arm_register_type, convert_to_extended)
13042 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13043 (arm_extract_return_value, arm_register_name): Make static.
13044 (arm_software_single_step): Similarly. Fix types in declaration.
13045 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13046 (arm_store_return_value, arm_store_struct_return): New functions.
13047 (arm_gdbarch_init): Register the above functions. Also register
13048 call_dummy_start_offset, sizeof_call_dummy_words,
13049 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13050 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13051 max_register_virtual_size, register_size. Set up
13052 prologue_cache.saved_regs here, rather than ...
13053 (_initialize_arm_tdep): ... here.
13054 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13056 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13057 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13058 (arm_print_float_info, arm_register_type, convert_to_extended)
13059 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13060 (arm_extract_return_value, arm_register_name): Delete declarations.
13061 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13062 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13063 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13064 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13065 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13066 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13067 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13068 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13069 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13070 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13071 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13072 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13074 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13075 * remote-rdi.c remote-rdp.c: Likewise.
13076 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13077 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13078 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13081 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13082 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13083 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13084 from non-ARM_ prefixed definitions.
13085 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13087 * remote-rdi.c remote-rdp.c: Likewise.
13088 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13090 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13092 * arm-tdep.c (arm_frameless_function_invocation)
13093 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13094 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13095 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13096 (arm_pop_frame, arm_get_next_pc): Make static.
13097 (arm_gdbarch_init): Register above in gdbarch structure.
13098 (arm_read_fp): Renamed from arm_target_read_fp.
13099 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13100 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13101 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13102 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13103 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13104 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13105 (arm_pc_is_thumb_dummy): Delete declarations.
13106 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13107 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13108 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13109 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13111 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13113 * symtab.c (compare_search_syms): New function.
13114 (sort_search_symbols): New function.
13115 (search_symbols): Sort symbols after searching rather than
13118 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13120 * NEWS: Linux -> GNU/Linux.
13122 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13124 * gdbarch.sh: For for level one methods, disallow a definition
13125 when partially multi-arched. Add comments explaining rationale.
13126 * gdbarch.h: Re-generate.
13128 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13130 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13131 multi-arch partial.
13133 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13135 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13136 field. Use diff -u.
13137 * gdbarch.c: Re-generate.
13139 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13141 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13142 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13145 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13147 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13148 multi-arch partial.
13149 (PUSH_ARGUMENTS): Switch to using predefault.
13150 * gdbarch.c: Regenerate.
13152 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13154 * valops.c (PUSH_ARGUMENTS): Delete definition.
13155 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13156 partial. Default to default_push_arguments.
13157 * gdbarch.h, gdbarch.c: Regenerate.
13159 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13161 * defs.h (throw_exception): Rename return_to_top_level. Update
13163 * utils.c (error_stream, internal_verror, quit): Ditto.
13164 * top.c (throw_exception, catcher): Ditto.
13165 * sparclet-rom.c (sparclet_load): Ditto.
13166 * remote.c (interrupt_query, minitelnet): Ditto.
13167 * remote-sds.c (interrupt_query): Ditto.
13168 * remote-mips.c (mips_error, mips_kill): Ditto.
13169 * ocd.c (interrupt_query): Ditto.
13170 * monitor.c (monitor_interrupt_query): Ditto.
13171 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13172 * target.h: Update comment.
13174 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13176 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13178 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13179 default_double_format.
13180 * gdbarch.h, gdbarch.c: Re-generate.
13181 * findvar.c (floatformat_unknown): Delete variable definition.
13182 * doublest.h (floatformat_unknown): Delete variable declaration.
13184 2002-02-09 Jim Blandy <jimb@redhat.com>
13186 * stabsread.c (read_type): Add code to parse Sun's syntax for
13187 prototyped function types.
13189 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13191 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13192 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13194 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13196 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13197 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13198 now _initialize_xcoffsolib gets called again and overrides the
13199 commands from solib.c in a native configuration.
13201 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13203 * doublest.c (store_typed_floating): Don't try to return a value.
13206 2002-02-08 Jim Blandy <jimb@redhat.com>
13208 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13209 is prototyped and has no arguments, print its argument list as
13212 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13214 * MAINTAINERS (write-after-approval): Add myself.
13215 (paper-trail): I've escaped!
13217 2002-02-08 Christopher Faylor <cgf@redhat.com>
13219 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13221 (_initialize_check_for_gdb_ini): Ditto.
13223 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13225 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13226 xaprintf -> xasprintf.
13228 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13230 * win32-nat.c: Remove use of printf and sprintf functions.
13232 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13234 * arm-tdep.c (arm_frame_chain_valid): Make static.
13235 (arm_push_arguments): Likewise.
13236 (arm_gdbarch_init): New function.
13237 (_initialize_arm_tdep): Call it.
13238 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13239 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13240 (FRAME_CHAIN_VALID): Delete.
13241 (arm_frame_chain_valid): Delete declaration.
13242 (PUSH_ARGUMENTS): Delete.
13243 (arm_push_arguments): Delete declaration.
13244 (CALL_DUMMY_P): Delete.
13246 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13247 Corinna Vinschen <vinschen@redhat.com>
13249 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13250 on builtin float types.
13252 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13254 * utils.c: Include <curses.h> before "bfd.h".
13255 * tui/tui-hooks.c: Likewise.
13256 * tui/tui.c: Likewise.
13257 * tui/tuiCommand.c: Likewise.
13258 * tui/tuiData.c: Likewise.
13259 * tui/tuiDataWin.c: Likewise.
13260 * tui/tuiDisassem.c: Likewise.
13261 * tui/tuiGeneralWin.c: Likewise.
13262 * tui/tuiIO.c: Likewise.
13263 * tui/tuiLayout.c: Likewise.
13264 * tui/tuiRegs.c: Likewise.
13265 * tui/tuiSource.c: Likewise.
13266 * tui/tuiSourceWin.c: Likewise.
13267 * tui/tuiStack.c: Likewise.
13268 * tui/tuiWin.c: Likewise.
13270 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13272 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13273 to include space for pseudoregs as well. Update loops accordingly.
13274 (sh_fp_frame_init_saved_regs): Ditto.
13275 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13277 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13279 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13280 Add Richard Earnshaw to Arm maintainers.
13282 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13284 * defs.h (warning_begin): Delete declaration.
13286 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13289 2002-02-07 Michael Snyder <msnyder@redhat.com>
13291 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13292 Logic bug, remove misplaced else.
13294 2002-02-07 Klee Dienes <klee@apple.com>
13296 * fork-inferior.c (fork_inferior): Add '!' to the list of
13297 characters that need to be quoted when building a string for the
13298 shell. Quote '!' specifically with a backslash, since CSH chokes
13299 when trying to evaluate "str!str".
13301 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13303 * rdi-share/host.h: Only provide a typedef for bool if it is not
13306 2002-02-04 Michael Snyder <msnyder@redhat.com>
13308 * breakpoint.h (enum bptype): Add new overlay event bp type.
13309 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13311 * breakpoint.c (create_internal_breakpoint): New function.
13312 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13313 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13314 (create_thread_event_breakpoint): Ditto.
13315 (create_solib_event_breakpoint): Ditto.
13316 (create_overlay_event_breakpoint): New function.
13317 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13318 (update_breakpoints_after_exec): Delete and re-initialize
13319 overlay event breakpoints after an exec. Add FIXME comment
13320 about longjmp breakpoint.
13321 (print_it_typical): Ignore overlay event breakpoints.
13322 (print_one_breakpoint): Ditto.
13324 (bpstat_what): Do not stop for overlay event breakpoints.
13325 (delete_breakpoint): Don't delete overlay event breakpoints.
13326 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13327 (breakpoint_re_set): Re-create overlay event breakpoint.
13329 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13330 (overlay_manual_command): Disable overlay breakpoints.
13331 (overlay_off_command): Disable overlay breakpoints.
13333 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13335 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13336 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13337 to here from config/tm-arm.h.
13338 (coff_sym_is_thumb): Make static.
13339 (arm_elf_make_msymbol_special): New function.
13340 (arm_coff_make_msymbol_special): New function.
13341 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13342 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13343 (coff_sym_is_thumb): Delete declaration.
13344 (arm_elf_make_msymbol_special): Declare.
13345 (arm_coff_make_msymbol_special): Declare.
13346 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13347 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13349 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13351 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13353 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13355 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13356 * gdbarch.c gdbarch.h: Regenerate.
13357 * arch-utils.c (default_print_float_info): New function.
13358 * arch-utils.h (default_print_float_info): Prototype it.
13359 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13360 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13361 (PRINT_FLOAT_INFO): Document it.
13363 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13364 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13365 (PRINT_FLOAT_INFO): Define.
13367 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13369 * win32-nat.c (_initialize_check_for_gdb_ini):
13370 Add typecast to sprintf argument to suppress a warning.
13372 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13374 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13375 to allow easier handling of pass state.
13376 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13377 that gives exception name and address.
13378 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13379 and set last_sig value to ourstatus->value.sig. Some missing
13381 (child_continue): Correctly report continue_status.
13382 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13383 TARGET_SIGNAL_0 (new default value).
13384 (child_resume): consider sig argument passed to decide if
13385 the exception should be passed to debuggee or not.
13387 2002-02-05 Michael Snyder <msnyder@redhat.com>
13389 * regcache.c (fetch_register): Call target_fetch_register
13390 only if we don't call FETCH_PSEUDO_REGISTER.
13391 (store_register): Call target_store_register only if we
13392 don't call STORE_PSEUDO_REGISTER.
13394 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13396 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13397 ELF_MAKE_MSYMBOL_SPECIAL.
13398 * gdbarch.c, gdbarch.h: Regenerate.
13399 * arch-utils.c (default_make_msymbol_special): New function.
13400 * arch-utils.h (default_make_msymbol_special): Export.
13401 * elfread.c (elf_symtab_read): Compile use of
13402 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13404 * coffread.c (coff_symtab_read): Ditto, for
13405 COFF_MAKE_MSYMBOL_SPECIAL.
13407 2002-02-05 Jim Blandy <jimb@redhat.com>
13409 * solib-svr4.c (svr4_truncate_ptr): New function.
13410 (svr4_relocate_section_addresses): Do the address arithmetic with
13411 the appropriate truncation for target addresses, even when
13412 CORE_ADDR is larger than a target address.
13414 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13416 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13419 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13421 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13424 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13426 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13428 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13430 * gdbserver/linux-low.c: Remove unused include files.
13432 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13434 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13435 (read_inferior_memory): Use it.
13436 (write_inferior_memory): Likewise.
13438 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13440 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13441 grubbing through sys_errlist.
13443 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13445 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13447 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13448 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13450 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13452 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13453 (do_sfunc, set_cmd_sfunc): New functions.
13455 * command.h (struct cmd_list_element): Add field func.
13456 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13457 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13458 * cli/cli-decode.h: Ditto.
13460 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13461 (help_all, help_cmd_list): Ditto.
13462 (find_cmd, complete_on_cmdlist): Ditto.
13463 * top.c (execute_command): Ditto.
13465 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13468 * infcmd.c (notice_args_read): Fix function signature.
13470 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13471 * cli/cli-decode.c (add_set_cmd): Ditto.
13472 * utils.c (initialize_utils): Ditto.
13473 * maint.c (_initialize_maint_cmds): Ditto.
13474 * infrun.c (_initialize_infrun): Ditto.
13475 * demangle.c (_initialize_demangler): Ditto.
13476 * remote.c (add_packet_config_cmd): Ditto.
13477 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13478 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13479 * proc-api.c (_initialize_proc_api): Ditto.
13480 * kod.c (_initialize_kod): Ditto.
13481 * valprint.c (_initialize_valprint): Ditto.
13482 * top.c (init_main): Ditto.
13483 * infcmd.c (_initialize_infcmd): Ditto.
13484 * corefile.c (_initialize_core): Ditto.
13485 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13486 * arch-utils.c (initialize_current_architecture): Ditto.
13487 (_initialize_gdbarch_utils): Ditto.
13488 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13490 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13491 * wince.c (_initialize_inftarg): Ditto.
13492 * symfile.c (_initialize_symfile): Ditto.
13493 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13494 * language.c (_initialize_language): Ditto.
13495 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13497 2002-02-04 Michael Snyder <msnyder@redhat.com>
13499 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13501 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13503 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13504 Add rules for building the register data files.
13506 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13508 * regformats/regdat.sh: Add braces to the definition of
13509 expedite_regs_${arch}.
13511 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13513 * regformats/regdef.h (struct reg): Add comment describing the
13514 requirements for offset and size fields.
13516 2002-02-04 Andreas Schwab <schwab@suse.de>
13518 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13519 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13521 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13523 * gdbarch.sh (copyright): Update years in generated header.
13524 (SMASH_TEXT_ADDRESS): Add rule.
13525 * gdbarch.h, gdbarch.c: Re-generate.
13526 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13527 * dbxread.c: Likewise.
13528 * dwarfread.c: Likewise.
13529 * elfread.c: Likewise.
13530 * somread.c: Likewise.
13532 * arm-tdep.c (arm_smash_text_address): New function.
13533 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13535 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13537 Add support for hardware watchpoints on win32 native.
13538 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13539 CONTEXT_DEBUG_REGISTERS.
13540 (dr variable): New variable. Static array containing a local copy
13541 of debug registers.
13542 (debug_registers_changed): New variable. Reflects when debug registers
13543 are changed and need to be written to inferior.
13544 (debug_registers_used): New variable. Reflects when any debug register
13545 was set, used when new threads are created.
13546 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13548 (thread_rec): Set dr array if id is the thread of current_event .
13549 (child_continue, child_resume): Change the debug registers for all
13550 threads if debug_registers_changed.
13551 (child_add_thread): Change the debug registers if debug_registers_used.
13552 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13553 Link nm.h to new nm-cygwin.h file.
13554 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13555 of hardware registers.
13557 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13559 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13560 Restore behavour broken by 2002-01-20 Andrew Cagney
13561 <ac131313@redhat.com> IEEE_FLOAT removal.
13563 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13565 * c-valprint.c (c_val_print): Pass a proper valaddr to
13566 cp_print_class_method.
13567 * valops.c (search_struct_method): If there is only one method
13568 and args is NULL, return that method.
13570 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13572 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13573 accessing tag_name directly.
13575 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13577 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13578 of accessing tag_name directly.
13580 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13583 * gdbtypes.c (replace_type): New function.
13584 * gdbtypes.h (replace_type): Add prototype.
13585 * stabsread.c (read_type): Use replace_type.
13587 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13589 * Makefile.in (memattr.o): Add missing dependencies rule.
13591 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13593 * breakpoint.c (break_at_finish_command): Really export.
13594 (break_at_finish_at_depth_command): Ditto.
13595 (tbreak_at_finish_command): Ditto.
13596 * hppa-tdep.c: Include completer.h.
13597 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13598 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13600 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13602 * utils.c (do_write): New function.
13603 (error_stream): Rewrite combining the code from error_begin and
13605 (verror): Rewrite using error_stream.
13606 (error_begin): Delete function.
13608 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13610 * utils.c (error_begin): Make static.
13611 * defs.h (error_begin): Delete declaration.
13613 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13614 (decode_line_1): Use cplusplus_error instead of error_begin,
13615 cplusplus_hint and return_to_top_level.
13616 * coffread.c (coff_symfile_read): Use error instead of error_begin
13617 and return_to_top_level.
13618 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13620 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13622 * language.h (type_error, range_error): Make string parameter
13624 * language.c (warning_pre_print): Delete extern declaration.
13625 * dwarfread.c (warning_pre_print): Ditto.
13626 * language.c (type_error, range_error): Rewrite to use verror and
13627 vwarning instead of warning_begin.
13629 2002-02-01 Michael Snyder <msnyder@redhat.com>
13631 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13632 (set_ignore_count): Move misplaced comment back where it belongs.
13634 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13636 * command.h (NO_FUNCTION): Delete macro.
13637 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13638 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13639 * tracepoint.c (_initialize_tracepoint): Ditto.
13640 * cli/cli-decode.c (add_set_cmd): Ditto.
13641 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13643 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13645 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13646 Update ``this'' pointer when calling virtual functions.
13648 2002-02-01 Michael Snyder <msnyder@redhat.com>
13650 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13651 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13653 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13655 * regformats/reg-arm.dat: New file.
13656 * regformats/reg-i386.dat: New file.
13657 * regformats/reg-ia64.dat: New file.
13658 * regformats/reg-m68k.dat: New file.
13659 * regformats/reg-mips.dat: New file.
13660 * regformats/reg-ppc.dat: New file.
13661 * regformats/reg-sh.dat: New file.
13662 * regformats/regdef.h: New file.
13663 * regformats/regdat.sh: New file.
13665 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13667 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13668 (arm_frame_args_address, arm_frame_locals_address): New functions.
13669 (arm_frame_num_args): New function.
13670 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13671 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13672 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13674 2002-01-31 Michael Snyder <msnyder@redhat.com>
13676 * breakpoint.c (break_at_finish_command): Export.
13677 (break_at_finish_at_depth_command): Export.
13678 (tbreak_at_finish_command): Export.
13679 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13680 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13681 "txbreak" commands, which are HPPA specific.
13683 * printcmd.c (disassemble_command): Remove an ancient
13684 artifact of an old merge.
13686 * symfile.h (enum overlay_debugging_state):
13687 Define enum constant values for overlay mode.
13688 * symfile.c (overlay_debugging): Use enums instead of literals.
13689 (overlay_is_mapped, overlay_auto_command,
13690 overlay_manual_command): Ditto.
13692 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13693 breakpoint_here_p, breakpoint_inserted_here_p,
13694 breakpoint_thread_match, bpstat_stop_status,
13695 describe_other_breakpoints, check_duplicates, clear_command):
13696 Coding standard fixes.
13698 * target.c (target_xfer_memory): Add spaces, coding standard.
13699 (do_xfer_memory): Add missing line to trust-readonly
13700 code: check bfd SEC_READONLY flag for section.
13702 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13704 * PROBLEMS: Fix typo, 5.1->5.1.1.
13706 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13708 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13709 data symbols, since we search based on textlow and texthigh.
13710 (find_pc_sect_symtab): Likewise.
13712 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13714 * defs.h (vwarning): Declare.
13715 * utils.c (vwarning): New function.
13716 (warning): Call vwarning.
13717 (warning_begin): Delete function.
13719 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13720 the warning message.
13721 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13724 2002-01-30 Michael Snyder <msnyder@redhat.com>
13726 * NEWS: Mention "set trust-readonly-sections" command.
13727 Mention generate-core-file command.
13729 2002-01-15 Michael Snyder <msnyder@redhat.com>
13731 * target.c: New command, "set trust-readonly-sections on".
13732 (do_xfer_memory): Honor the suggestion to trust readonly sections
13733 by reading them from the object file instead of from the target.
13734 (initialize_targets): Register command "set trust-readonly-sections".
13736 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13738 * parse.c (target_map_name_to_register): Simplify, search regs and
13739 pseudo-regs using a single loop.
13741 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13743 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13745 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13747 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13748 * config/i386/i386v42mp.mh: Add i387-nat.o .
13749 * i386v4-nat.c: Include i387-nat.h.
13750 (supply_fpregset): Use i387_supply_fsave.
13751 (fill_fpregset): Use i387_fill_fsave.
13753 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13755 * arm-tdep.c (arm_call_dummy_words): Define.
13756 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13757 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13758 (CALL_DUMMY_WORDS): Define.
13759 (arm_call_dummy_words): Declare.
13760 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13761 (arm_linux_call_dummy_words): Declare.
13763 2002-01-30 Andreas Schwab <schwab@suse.de>
13765 * m68klinux-nat.c: Fix last change to use regcache_collect
13766 instead of referencing registers[] directly.
13768 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13770 * parse.c (target_map_name_to_register): Delete code wrapped in
13771 #ifdef REGISTER_NAME_ALIAS_HOOK.
13773 2002-01-28 Michael Snyder <msnyder@redhat.com>
13775 * regcache.c (legacy_read_register_gen): Need to be able to
13776 read pseudo-register as well as real register.
13777 (legacy_write_register_gen): Ditto.
13779 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13781 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13782 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13783 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13784 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13785 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13786 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13787 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13788 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13789 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13790 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13791 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13792 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13793 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13794 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13795 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13796 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13797 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13798 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13799 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13800 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13802 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13804 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13805 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13806 (initialize_current_architecture): Update target_byte_order using
13807 information from BFD.
13808 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13809 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13811 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13813 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13814 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13816 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13817 #ifdef INVALID_FLOAT.
13818 * infcmd.c (do_registers_info): Ditto.
13819 * values.c (unpack_double): Ditto. Add comment.
13821 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13822 already commented out.
13824 2002-01-26 Andreas Schwab <schwab@suse.de>
13826 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13827 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13828 registers and add support for PTRACE_GETREGS.
13830 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13832 GDB 5.1.1 released from 5.1 branch.
13833 * NEWS: Add 5.1.1 news.
13834 * README: Sync with 5.1 branch.
13836 2002-01-23 Fred Fish <fnf@redhat.com>
13838 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13839 stabstring on initial malloc. Reallocing will copy it for us,
13842 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13844 * Makefile.in (hpread_h): Delete.
13845 (HFILES_NO_SRCDIR): Remove hpread.h.
13846 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13847 (hpread.o): Update dependencies.
13848 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13850 * hp-psymtab-read.c: Remove file.
13851 * hp-symtab-read.c: Remove file.
13852 * hpread.h: Remove file.
13854 * hpread.c: Merge all contents of hp-psymtab-read.c,
13855 hp-symtab-read.c and hpread.h into this file, as it was prior to
13858 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13859 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13860 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13861 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13863 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13865 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13866 fill_gregset): Call gdbarch_tdep() just once, assign result to
13867 variable and use that, instead of calling the function several
13870 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13872 * configure.host: Accept sparcv9 as alias for sparc64.
13873 * configure.tgt: Likewise.
13875 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13877 * solib-aix5.c (build_so_list_from_mapfile)
13878 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13879 arguments is not reversed.
13880 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13881 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13883 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13885 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13886 modified version of obsolete sh_fetch_pseudo_register.
13887 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13888 (sh4_register_read): New function.
13889 (sh_pseudo_register_write): New function. Renamed and modified
13890 version of obsolete sh_store_pseudo_register.
13891 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13892 (sh4_register_write): New function.
13893 (sh_gdbarch_init): Remove setting of gdbarch function
13894 fetch_pseudo_register and store_pseudo_register. Remove setting of
13895 register_convert_to_raw, register_convert_to_virtual,
13896 register_convertible.
13897 (sh_sh4_register_convertible): Delete. No longer needed. All is
13898 taken care by architecture specific functions
13899 register_read/register_write.
13900 (sh_sh4_register_convert_to_virtual): Make static.
13901 (sh_sh4_register_convert_to_raw): Ditto.
13903 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13905 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13906 (floatformat_is_nan, floatformat_mantissa): Ditto.
13908 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13909 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13910 builtin_type_ieee_double_little,
13911 builtin_type_ieee_double_littlebyte_bigword,
13912 builtin_type_m68881_ext, builtin_type_i960_ext,
13913 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13914 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13915 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13916 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13918 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13920 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13921 parameter. Set frameless flag if it exists and depended of
13922 whether the scanned function is frameless or not.
13923 (xstormy16_skip_prologue): If function is frameless, return
13924 result of xstormy16_scan_prologue().
13925 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13928 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13930 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13931 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13932 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13933 sh_sh4_register_byte, sh_sh4_register_raw_size,
13934 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13935 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13936 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13937 sh_store_pseudo_register, sh_do_pseudo_register): Call
13938 gdbarch_tdep() just once, assign result to variable and use that,
13939 instead of calling the function several times.
13941 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13943 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13944 macros instead of LAST_FPU_CTRL_REGNUM.
13945 (store_register): Likewise.
13947 2002-01-21 Jim Blandy <jimb@redhat.com>
13949 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13950 is up-to-date before running the program, not just when a program
13953 2002-01-21 Fred Fish <fnf@redhat.com>
13955 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13956 when we have found all instructions we are looking for.
13958 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13960 * arm-tdep.c (arm_register_name): New function.
13961 (arm_registers_names): Make static.
13962 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13963 (arm_register_name): Declare.
13964 (REGISTER_NAME): Use it.
13966 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13967 Kevin Buettner <kevinb@redhat.com>
13969 Convert arm targets to new FRAME interface.
13970 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13971 (arm_frame_find_save_regs): Delete.
13972 (arm_frame_init_saved_regs): New.
13973 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13974 Allocate extra_info as required. Convert all uses of fsr.regs
13975 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13977 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13978 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13979 (check_prologue_cache, save_prologue_cache): Likewise.
13980 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13981 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13982 (FRAME_FIND_SAVED_REGS): Delete.
13983 (arm_frame_find_saved_regs): Delete prototype.
13984 (arm_frame_init_saved_regs): New prototype.
13985 (FRAME_INIT_SAVED_REGS): Define.
13987 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13989 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13991 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13993 From Jeff Law <law@redhat.com>:
13994 * infttrace.c: Include <sys/pstat.h>.
13995 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13996 exec file if the ttrace equivalent fails.
13998 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14000 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14001 (closeLogFile): Ditto.
14003 2002-01-20 Michael Chastain <mec@shout.net>
14005 * top.c (print_gdb_version): Bump copyright year to 2002.
14007 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14009 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14010 Zannoni and Eli Zaretskii.
14012 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14014 * buildsym.c: Update copyright years.
14015 * c-typeprint.c: Likewise.
14016 * dwarf2read.c: Likewise.
14017 * f-typeprint.c: Likewise.
14018 * gdbtypes.c: Likewise.
14019 * gdbtypes.h: Likewise.
14020 * hp-symtab-read.c: Likewise.
14021 * hpread.c: Likewise.
14022 * mdebugread.c: Likewise.
14023 * p-typeprint.c: Likewise.
14025 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14027 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14028 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14029 byte-order selectable.
14030 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14031 * arch-utils.c: Ditto.
14032 (set_endian): Ditto.
14033 (set_endian_from_file): Ditto.
14034 * gdbserver/low-sim.c (create_inferior): Ditto.
14035 * gdbarch.sh: Ditto.
14036 * gdbarch.h: Re-generate.
14037 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14038 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14039 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14040 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14041 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14042 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14043 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14044 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14046 * config/mips/tm-wince.h: Remove #undef of macro
14047 TARGET_BYTE_ORDER_SELECTABLE.
14048 * config/sh/tm-wince.h: Ditto.
14050 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14052 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14053 member function fields. Add accessor macro
14054 TYPE_FN_FIELD_ARTIFICIAL.
14055 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14056 * c-typeprint.c (c_type_print_base): Skip artificial member
14059 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14061 * f-typeprint.c: Delete unused function f_type_print_args.
14062 * p-typeprint.c: Delete unused function pascal_type_print_args.
14064 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14066 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14067 comment. Add ``artificial'' to ``union field_location''.
14069 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14071 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14072 * mdebugread.c (parse_symbol): Likewise.
14073 * stabsread.c (define_symbol): Likewise.
14074 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14075 initializing TYPE_FIELD_BITPOS to n (obsolete).
14076 (hpread_doc_function_type): Likewise.
14077 * hpread.c (hpread_function_type): Likewise.
14079 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14081 * configure.in (host_makefile_frag): Only require a host makefile
14082 fragment when a native build.
14083 * configure: Re-generate.
14085 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14087 * doublest.h (floatformat_from_type): Declare.
14088 * doublest.c (floatformat_from_type): New function.
14089 (convert_typed_floating): Use.
14091 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14092 call to function floatformat_from_type.
14094 * gdbarch.sh (IEEE_FLOAT): Delete.
14095 * gdbarch.h, gdbarch.c: Re-generate.
14096 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14097 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14098 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14099 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14100 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14101 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14102 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14103 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14104 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14105 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14106 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14107 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14109 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14110 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14111 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14112 * sh-tdep.c (sh_gdbarch_init): Ditto.
14113 * mips-tdep.c (mips_gdbarch_init): Ditto.
14114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14115 * cris-tdep.c (cris_gdbarch_init): Ditto.
14117 2002-01-20 Jiri Smid <smid@suse.cz>
14119 * configure.host, configure.tgt: Support x86-64.
14120 * NEWS: Note new target x86-64.
14122 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14123 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14124 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14125 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14126 x86-64-linux-nat.o): Fix dependencies.
14128 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14130 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14131 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14132 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14133 * config/sparc/xm-sun4os4.h: Delete file.
14134 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14136 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14138 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14139 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14140 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14141 * config/i386/i386lynx.mh (XM_FILE): Delete.
14142 * config/rs6000/xm-rs6000ly.h: Delete file.
14143 * config/sparc/xm-sparclynx.h: Delete file.
14144 * config/m68k/xm-m68klynx.h: Delete file.
14145 * config/i386/xm-i386lynx.h: Delete file.
14146 * config/xm-lynx.h: Delete file.
14147 * config/djgpp/fnchange.lst: Update.
14149 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14151 * alpha-tdep.c (alpha_register_byte): New function.
14152 (alpha_register_raw_size): Ditto.
14153 (alpha_register_virtual_size): Ditto.
14154 (alpha_skip_prologue_internal): Renamed from
14155 alpha_skip_prologue.
14156 (alpha_skip_prologue): New version that calls
14157 alpha_skip_prologue_internal.
14158 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14159 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14160 second argument from alpha_skip_prologue.
14161 (REGISTER_BYTE): Use alpha_register_byte.
14162 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14163 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14164 (FRAMELESS_FUNCTION_INVOCATION): Use
14165 generic_frameless_function_invocation_not.
14166 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14167 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14169 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14171 * config/mips/xm-news-mips.h: Delete file.
14172 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14174 * config/m88k/xm-m88k.h: Delete file.
14175 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14176 * config/m88k/xm-delta88v4.h: Ditto.
14177 * config/m88k/xm-delta88.h: Ditto.
14179 * config/alpha/xm-fbsd.h: Delete file.
14180 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14182 * config/sparc/xm-sparc.h: Delete file.
14183 * Makefile.in (xm-sun4os4.h): Delete dependency.
14184 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14185 * config/sparc/xm-sun4os4.h: Ditto.
14186 * config/sparc/xm-linux.h: Ditto.
14188 * config/i386/xm-windows.h: Delete file.
14190 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14192 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14193 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14195 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14197 * alpha-tdep.c (alpha_call_dummy_words): New.
14198 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14199 (CALL_DUMMY_P): Define.
14200 (CALL_DUMMY_WORDS): Define.
14201 (SIZEOF_CALL_DUMMY_WORDS): Define.
14203 2002-01-19 Per Bothner <per@bothner.com>
14205 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14206 isn't NULL, which can happen with some gcj-3.x-produced code.
14208 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14210 * alpha-tdep.c (alpha_register_virtual_type): New function.
14211 (alpha_init_frame_pc_first): Ditto.
14212 (alpha_fix_call_dummy): Ditto.
14213 (alpha_store_struct_return): Ditto.
14214 (alpha_extract_struct_value_address): Ditto.
14215 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14216 alpha_register_virtual_type.
14217 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14218 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14219 alpha_extract_struct_value_address.
14220 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14221 (INIT_FRAME_PC): Use init_frame_pc_noop.
14222 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14224 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14226 * i386gnu-nat.c: Include "i386-tdep.h".
14227 (fetch_fpregs): Simplify code dealing with uninitialized floating
14228 point states such that it doesn't require FP7_REGNUM.
14230 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14232 * alpha-tdep.c (frame_extra_info): New.
14233 (alpha_find_saved_regs): Make static. Use
14235 (alpha_frame_init_saved_regs): New function.
14236 (alpha_frame_saved_pc): Use frame->extra_info.
14237 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14238 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14239 (init_extra_frame_info): Rename to...
14240 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14241 (alpha_print_extra_frame_info): New function.
14242 (alpha_frame_locals_address): Ditto.
14243 (alpha_frame_args_address): Ditto.
14244 (alpha_pop_frame): Use frame->extra_info.
14245 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14246 alpha_frame_args_address.
14247 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14248 (alpha_find_saved_regs): Remove prototype.
14249 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14250 (EXTRA_FRAME_INFO): Remove.
14251 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14252 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14254 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14256 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14257 (alpha_cannot_fetch_register): Ditto.
14258 (alpha_cannot_store_register): Ditto.
14259 (alpha_register_convertible): Ditto.
14260 (alpha_use_struct_convention): Ditto.
14261 * config/alpha/tm-alpha.h: Update copyright years.
14262 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14263 (INNER_THAN): Use core_addr_lessthan.
14264 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14265 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14266 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14267 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14268 (FRAME_CHAIN): Remove unnecessary cast.
14270 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14272 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14275 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14277 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14278 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14279 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14280 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14281 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14282 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14283 * x86-64-linux-nat.c: Ditto.
14285 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14287 * alpha-tdep.c (alpha_register_name): New function.
14288 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14289 (REGISTER_NAME): Define.
14291 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14293 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14295 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14297 * alpha-tdep.c: Update copyright years.
14298 (alpha_next_pc): New function.
14299 (alpha_software_single_step): Ditto.
14300 * config/alpha/tm-alpha.h: Add prototype for
14301 alpha_software_single_step.
14303 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14305 * alphabsd-nat.c: Update copyright years.
14306 (fill_gregset): Use regcache_collect.
14307 (fill_fpregset): Likewise.
14308 (fetch_inferior_registers): Only fetch integer registers
14309 if requested to do so.
14310 (store_inferior_registers): Only store integer registers
14311 if requested to do so.
14313 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14315 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14316 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14317 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14318 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14319 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14320 * config/arm/linux.mh (XDEPFILES): Delete.
14321 * config/arm/nbsd.mh (XDEPFILES): Delete.
14322 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14323 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14324 * config/i386/i386m3.mh (XDEPFILES): Delete.
14325 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14326 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14327 * config/i386/fbsd.mh (XDEPFILES): Delete.
14328 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14329 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14330 * config/i386/i386v4.mh (XDEPFILES): Delete.
14331 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14332 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14333 * config/i386/i386aix.mh (XDEPFILES): Delete.
14334 * config/i386/go32.mh (XDEPFILES): Delete.
14335 * config/i386/cygwin.mh (XDEPFILES): Delete.
14336 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14337 * config/i386/i386mach.mh (XDEPFILES): Delete.
14338 * config/i386/i386v32.mh (XDEPFILES): Delete.
14339 * config/i386/linux.mh (XDEPFILES): Delete.
14340 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14341 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14342 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14343 * config/i386/i386sco.mh (XDEPFILES): Delete.
14344 * config/i386/i386v.mh (XDEPFILES): Delete.
14345 * config/i386/nbsd.mh (XDEPFILES): Delete.
14346 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14347 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14348 * config/i386/symmetry.mh (XDEPFILES): Delete.
14349 * config/i386/obsd.mh (XDEPFILES): Delete.
14350 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14351 * config/ia64/linux.mh (XDEPFILES): Delete.
14352 * config/ia64/aix.mh (XDEPFILES): Delete.
14353 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14354 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14355 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14356 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14357 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14358 * config/m68k/linux.mh (XDEPFILES): Delete.
14359 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14360 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14361 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14362 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14363 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14364 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14365 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14366 * config/m88k/delta88.mh (XDEPFILES): Delete.
14367 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14368 * config/m88k/m88k.mh (XDEPFILES): Delete.
14369 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14370 * config/mips/linux.mh (XDEPFILES): Delete.
14371 * config/mips/irix6.mh (XDEPFILES): Delete.
14372 * config/mips/irix5.mh (XDEPFILES): Delete.
14373 * config/mips/irix4.mh (XDEPFILES): Delete.
14374 * config/mips/irix3.mh (XDEPFILES): Delete.
14375 * config/mips/decstation.mh (XDEPFILES): Delete.
14376 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14377 (NATDEPFILES): Move core-aout.o to here.
14378 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14379 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14380 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14381 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14382 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14383 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14384 * config/pa/hpux11.mh (XDEPFILES): Delete.
14385 * config/powerpc/aix.mh (XDEPFILES): Delete.
14386 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14387 * config/powerpc/linux.mh (XDEPFILES): Delete.
14388 * config/romp/rtbsd.mh: Rename XDEPFILES.
14389 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14390 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14391 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14392 * config/s390/s390.mh (XDEPFILES): Delete.
14393 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14394 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14395 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14396 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14397 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14398 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14399 * config/sparc/linux.mh (XDEPFILES): Delete.
14400 * config/vax/vaxult.mh (XDEPFILES): Delete.
14401 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14402 * Makefile.in (DEPFILES): Remove XDEPFILES.
14404 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14406 * utils.c (internal_verror): Fix comments, default is yes not no.
14407 Update queries to match. Default to quit and dump core.
14409 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14411 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14413 * defs.h, event-top.c, gdbcmd.h: Ditto.
14414 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14415 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14416 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14417 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14418 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14419 * mi/mi-main.c:Ditto.
14421 * stack.c, symfile.c: Update copyright.
14423 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14425 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14426 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14427 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14428 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14430 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14432 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14433 * gdbserver/low-lynx.c (myattach): Likewise.
14434 * gdbserver/low-nbsd.c (myattach): Likewise.
14435 * gdbserver/low-sim.c (myattach): Likewise.
14436 * gdbserver/low-sparc.c (myattach): Likewise.
14437 * gdbserver/low-sun3.c (myattach): Likewise.
14439 * gdbserver/low-linux.c (myattach): New function.
14441 * gdbserver/server.c (attach_inferior): New function.
14442 (main): Handle "--attach".
14444 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14446 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14449 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14451 * c-typeprint.c (is_type_conversion_operator): Add additional
14452 check for non-conversion operators.
14454 2002-01-15 Michael Snyder <msnyder@redhat.com>
14456 * linux-proc.c: Add "info proc" command, a la procfs.c.
14457 (read_mapping): New function, abstract and re-use code.
14458 (linux_find_memory_regions): Use new func read_mapping.
14459 (linux_info_proc_cmd): New function, implement "info proc".
14460 (_initialize_linux_proc): Add new command "info proc".
14462 2002-01-15 Michael Snyder <msnyder@redhat.com>
14464 * symfile.c (generic_load): Use bfd_map_over_sections method
14465 instead of manipulating bfd structure members directly.
14466 (add_section_size_callback): New function, bfd sections callback
14467 used by generic_load.
14468 (load_sections_callback): New function, bfd sections callback
14469 used by generic_load.
14471 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14473 [Based on work by Jim Blandy]
14474 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14475 (builtin_type_vec128): Export.
14476 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14478 (builtin_type_vec128): New builtin type for 128 bit vector
14480 (build_gdbtypes): Initialize builtin_type_v16qi and
14481 builtin_type_v8hi. Create the vec128 register builtin type
14483 (build_builtin_type_vec128): New function.
14484 (_initialize_gdbtypes): Register builtin_type_v16qi and
14485 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14486 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14487 AltiVec register to new builtin type.
14489 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14491 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14494 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14496 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14497 CLEAN_UP_REGISTER_VALUE.
14498 * regcache.c (supply_register): Update only call.
14500 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14502 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14503 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14504 a29k-*-vxworks* targets as obsolete.
14506 2002-01-14 Michael Snyder <msnyder@redhat.com>
14508 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14509 until we can resolve portability issues.
14510 * gregset.h: Remove references to fpxregs.
14511 * gcore.c (gcore_command): Initialize note_sec to NULL.
14513 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14515 * signals.c (target_signal_to_name): Rewrite. Only use
14516 signals[].name when in bounds and non-NULL.
14518 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14520 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14521 * signals.c (target_signal_to_name): Verify that SIG is within the
14522 bounds of the signals array.
14524 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14526 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14528 2002-01-13 Keith Seitz <keiths@redhat.com>
14530 * stack.c (print_frame_info_base): Print the frame's pc
14531 only if when print_frame_info_listing_hook is not defined.
14533 2002-01-13 Keith Seitz <keiths@redhat.com>
14535 * varobj.c (varobj_set_value): Make sure that there were no
14536 errors evaluating the object before attempting to set its
14538 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14539 so this offset adjustment is no longer necessary.
14540 (create_child): Don't set the error flag if the child is
14541 a CPLUS_FAKE_CHILD.
14542 (value_of_child): If value_fetch_lazy fails, return NULL
14543 so that callers will be notified that an error occurred.
14544 (c_value_of_variable): Delay check of variable's validity
14545 until later. We actually want all structs and unions to have
14547 Do not return "???" for variables which could not be evaluated.
14548 This error condition must be returned to the caller so that it
14549 can get the error condition from gdb.
14550 (cplus_name_of_child): Adjust index for vptr before figuring
14551 out the name of the child.
14552 (cplus_value_of_child): If a child's (real) parent is not valid,
14553 don't even bother trying to give a value for it. Just return
14554 an error. Change all instances in this function.
14555 (cplus_type_of_child): If our parent is one of the "fake"
14556 parents, we need to get at the type of the real parent, and
14557 derive the child's true type using this information.
14559 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14561 From 2002-01-09 John Marshall <johnm@falch.net>:
14562 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14563 sources.redhat.com, and tweak some related URLs which had
14564 suffered from linkrot.
14566 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14569 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14570 structures passed in registers.
14572 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14574 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14575 white space which prevented compilation. Reported by DSK
14576 <dsk@student.unsw.edu.au>.
14578 2002-01-11 Michael Snyder <msnyder@redhat.com>
14580 * symfile.c (build_section_addr_info_from_section_tab):
14581 Use bfd access method instead of manipulating bfd directly.
14582 (syms_from_objfile): Ditto.
14583 (simple_overlay_update_1): Ditto.
14584 (simple_overlay_update): Ditto.
14585 (generic_load): Ditto.
14586 (overlay_unmapped_address): FIXME comment, bfd access methods.
14587 (sections_overlap): FIXME comment, bfd access methods.
14588 (pc_in_mapped_range): FIXME comment, bfd access methods.
14589 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14590 (section_is_mapped): FIXME comment, bfd access methods.
14591 (section_is_overlay): FIXME comment, bfd access methods.
14593 * symfile.c (generic_load): Whitespace and long line cleanups.
14594 Remove duplicate variable, change several local variables to
14595 more appropriate data types.
14596 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14598 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14600 From Peter Schauer:
14601 * language.c (longest_local_hex_string_custom): Use phex_nz to
14602 convert NUM to a hex string.
14604 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14606 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14608 Update Copyright year.
14610 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14612 * language.c (longest_raw_hex_string): Delete unused function.
14614 2002-01-11 Petr Sorfa <petrs@caldera.com>
14616 * MAINTAINERS (write-after-approval): Add myself.
14617 * dwarf2read.c (read_tag_string_type): Handling of
14619 (read_tag_string_type): FORTRAN fix to prevent propagation of
14621 (set_cu_language): Handling of DW_LANG_Fortran95
14623 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14625 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14626 GETPID(inferior_ptid).
14627 (store_inferior_registers): Likewise.
14629 2002-01-10 Jason Merrill <jason@redhat.com>
14631 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14634 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14636 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14637 and bfd/elf32-sh-nbsd.c.
14639 2002-01-10 Michael Snyder <msnyder@redhat.com>
14641 * NEWS: Mention --pid and corefile/proc-id behavior change.
14643 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14644 * gcore.c: Include cli/cli-decode.h instead of command.h.
14646 * main.c (captured_main): Add new command line option "--pid".
14647 If the second command line argument (following the symbol-file)
14648 begins with a digit, try to attach to it before trying to open
14650 (print_gdb_help): Document the "--pid" argument.
14652 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14654 * completer.c (command_completer): New function.
14656 * completer.h <command_completer>: Add prototype.
14658 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14659 completer for the "help" command.
14661 2002-01-09 Jason Merrill <jason@redhat.com>
14663 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14665 2002-01-09 Michael Snyder <msnyder@redhat.com>
14667 * i386-linux-nat.c (fill_fpxregset): Make global.
14668 (store_fpxregset): Ditto.
14670 * gregset.h (gdb_fpxregset_t): Define.
14671 (supply_fpxregset): Prototype.
14672 (fill_fpxregset): Prototype.
14674 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14676 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14678 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14679 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14680 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14682 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14684 * MAINTAINERS: Update target maintainer rules so that any
14685 Maintainer can approve a tested patch for a maintenance-only
14688 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14690 * MAINTAINERS (write-after-approval): Add myself.
14692 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14695 2002-01-08 Michael Snyder <msnyder@redhat.com>
14697 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14698 real name of the executable, rather than the /proc name.
14700 2002-01-03 Michael Snyder <msnyder@redhat.com>
14702 Implement a "generate-core-file" command in gdb, save target state.
14703 * gcore.c: New file. Implement new command 'generate-core-file'.
14704 Save a corefile image of the current state of the inferior.
14705 * linux-proc.c: Add linux-specific code for saving corefiles.
14706 * target.h (struct target_ops): Add new target vectors for saving
14707 corefiles; to_find_memory_regions and to_make_corefile_notes.
14708 (target_find_memory_regions): New macro.
14709 (target_make_corefile_notes): New macro.
14710 * target.c (update_current_target): Inherit new target methods.
14711 (dummy_find_memory_regions): New place-holder method.
14712 (dummy_make_corefile_notes): New place-holder method.
14713 (init_dummy_target): Initialize new dummy target vectors.
14714 * exec.c (exec_set_find_memory_regions): New function.
14715 Allow the exec_ops vector for memory regions to be taken over.
14716 (exec_make_note_section): New function, target vector method.
14717 * defs.h (exec_set_find_memory_regions): Export prototype.
14718 * procfs.c (proc_find_memory_regions): New function, corefile method.
14719 (procfs_make_note_section): New function, corefile method.
14720 (init_procfs_ops): Set new target vector pointers.
14721 (find_memory_regions_callback): New function.
14722 (procfs_do_thread_registers): New function.
14723 (procfs_corefile_thread_callback): New function.
14724 * sol-thread.c (sol_find_memory_regions): New function.
14725 (sol_make_note_section): New function.
14726 (init_sol_thread_ops): Initialize new target vectors.
14727 * inftarg.c (inftarg_set_find_memory_regions): New function.
14728 Allow to_find_memory_regions vector to be taken over.
14729 (inftarg_set_make_corefile_notes): New function.
14730 Allow to_make_corefile_notes vector to be taken over.
14731 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14732 interface layer if not target_has_execution (may be a corefile).
14733 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14734 * config/sparc/sun4sol2.mh: Ditto.
14735 * config/alpha/alpha-linux.mh: Ditto.
14736 * config/arm/linux.mh: Ditto.
14737 * config/i386/x86-64linux.mh: Ditto.
14738 * config/ia64/linux.mh: Ditto.
14739 * config/m68k/linux.mh: Ditto.
14740 * config/mips/linux.mh: Ditto.
14741 * config/powerpc/linux.mh: Ditto.
14742 * config/sparc/linux.mh: Ditto.
14744 2002-01-07 Michael Snyder <msnyder@redhat.com>
14746 * arm-linux-nat.c: Remove references to regcache.c internal data
14747 (registers[] and register_valid[]).
14749 2002-01-07 Michael Snyder <msnyder@redhat.com>
14751 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14752 so that attaching to a pid will automatically read the process's
14753 symbol file and shlibs.
14754 * Makefile.in: Add rule for linux-proc.o.
14755 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14756 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14757 * config/arm/linux.mh: Ditto.
14758 * config/i386/linux.mh: Ditto.
14759 * config/i386/x86-64linux.mh: Ditto.
14760 * config/ia64/linux.mh: Ditto.
14761 * config/m68k/linux.mh: Ditto.
14762 * config/mips/linux.mh: Ditto.
14763 * config/powerpc/linux.mh: Ditto.
14764 * config/sparc/linux.mh: Ditto.
14766 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14768 * win32-nat.c: Add i386-tdep.h dependency.
14770 2002-01-07 Michael Snyder <msnyder@redhat.com>
14772 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14773 instead of bfd_get_arch_size. Don't bail out just because
14774 there's no exec_bfd.
14776 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14777 * p-valprint.c (pascal_object_print_value): Ditto.
14778 * somread.c (som_symtab_read): Ditto.
14779 * symfile.c (simple_free_overlay_region_table): Ditto.
14780 * valops.c (value_assign): Ditto.
14782 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14783 use tilde_expand and strerror for opening save-tracepoints file.
14785 * thread-db.c (thread_db_new_objfile): Indendation fix.
14787 * infptrace.c (GDB_MAX_ALLOCA): New define.
14788 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14789 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14790 can be overridden with whatever value is appropriate to the host).
14791 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14792 alloca to allocate potentially large buffer.
14793 * rs6000-nat.c (child_xfer_memory): Ditto.
14794 * symm-nat.c (child_xfer_memory): Ditto.
14795 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14797 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14799 From Nick Clifton <nickc@redhat.com>
14800 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14802 2002-01-07 Michael Snyder <msnyder@redhat.com>
14804 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14805 Don't use exec_bfd if it's NULL.
14807 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14809 * valops.c (value_arg_coerce): Fix formatting.
14811 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14813 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14814 * gnu-nat.c: Ditto.
14816 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14818 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14819 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14820 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14821 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14822 z8k-coff have not been multi-arched. Update z8k-coff build
14825 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14827 * MAINTAINERS: Mark a29k target as obsolete.
14828 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14829 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14831 * NEWS: Note that a29k targets are obsolete.
14832 * a29k-tdep.c: Mark as obsolete.
14833 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14834 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14835 a29k-*-vxworks* targets as obsolete.
14836 * remote-adapt.c: Obsolete.
14837 * remote-eb.c: Obsolete.
14838 * remote-mm.c: Obsolete.
14839 * remote-udi.c: Obsolete.
14840 * config/a29k/a29k-udi.mt: Obsolete.
14841 * config/a29k/a29k.mt: Obsolete.
14842 * config/a29k/tm-a29k.h: Obsolete.
14843 * config/a29k/tm-vx29k.h: Obsolete.
14844 * config/a29k/vx29k.mt: Obsolete.
14846 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14848 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14849 with BFD_ENDIAN_BIG.
14851 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14853 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14854 * configure, config.in: Re-generate.
14855 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14856 * defs.h: Do not include <endian.h>.
14858 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14860 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14861 * config.in: Regenerate.
14862 * configure.in: Update copyright years.
14863 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14864 * configure: Regenerate.
14865 * i386bsd-nat.c: Update copyright years.
14866 (fill_gregset): Use regcache_collect.
14867 (fetch_inferior_registers): Only fetch integer registers
14868 if requested to do so. Add support for XMM registers
14869 using PT_GETXMMREGS.
14870 (store_inferior_registers): Only store integer registers
14871 if requested to do so. Add support for XMM registers
14872 using PT_SETXMMREGS.
14873 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14874 (store_inferior_registers): Remove.
14875 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14876 (fetch_elfcore_registers): New function.
14877 (i386nbsd_elfcore_fns): New.
14878 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14879 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14881 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14882 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14883 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14884 * config/i386/tm-nbsd.h: Update copyright years.
14885 (HAVE_SSE_REGS): Define.
14886 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14887 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14888 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14889 (SIGCONTEXT_PC_OFFSET): Remove.
14890 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14892 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14894 * configure.tgt: Remove powerpc-*-macos* target.
14895 * config/m68k/xm-mpw.h: Delete file.
14896 * config/xm-mpw.h: Delete file.
14897 * ser-mac.c: Delete file.
14898 * mpw-make.sed: Delete file.
14899 * mpw-config.in: Delete file.
14900 * mac-xdep.c: Delete file.
14901 * mac-gdb.r: Delete file.
14902 * mac-defs.h: Delete file.
14903 * mac-nat.c: Delete file.
14904 * config/powerpc/macos.mh: Delete file.
14905 * config/powerpc/macos.mt: Delete file.
14906 * config/powerpc/nm-macos.h: Delete file.
14907 * config/powerpc/tm-macos.h: Delete file.
14908 * source.c (openp, open_source_file): Remove obsolete code.
14909 * top.c (gdb_readline): Ditto.
14910 * utils.c (query): Ditto.
14911 * event-top.c (display_gdb_prompt): Ditto.
14912 * Makefile.in (ser-mac.o): Delete obsolete target.
14915 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14917 * defs.h (BIG_ENDIAN): Delete macro definition.
14918 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14919 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14920 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14921 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14922 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14923 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14924 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14925 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14926 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14927 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14928 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14929 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14930 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14931 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14932 * gdbarch.c: Re-generate.
14934 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14936 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14939 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14941 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14943 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14945 * value.h (value_ptr): Delete typedef.
14947 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14949 * i386nbsd-nat.c: Update copyright years.
14950 Include i386-tdep.h.
14952 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14954 * stabsread.c: Update copyright years.
14956 From Debashis Mahata <debashis.mahata@wipro.com>:
14957 (read_struct_fields): Deal with Sun C compiler erroneous stab
14958 output for structs and unions.
14961 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14963 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14966 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14968 * cp-abi.c: Fix whitespace.
14969 (baseclass_offset): New wrapper function.
14970 * cp-abi.h (baseclass_offset): Add prototype.
14971 (struct cp_abi_ops): Add baseclass_offset pointer.
14973 * valops.c (vb_match): Move to...
14974 * gnu-v2-abi.c (vb_match): here.
14975 * valops.c (baseclass_offset): Move to...
14976 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14978 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14980 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14981 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14982 * hpacc-abi.c (init_hpacc_ops): Likewise.
14984 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14986 * valops.c (find_overload_match): Accept obj as a
14987 reference parameter. Update it before returning.
14988 * value.h (find_overload_match): Update prototype.
14989 * eval.c (evaluate_subexp_standard): Pass object to
14990 find_overload_match by reference.
14992 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14994 * valarith.c: Replace value_ptr with struct value pointer. Remove
14995 register attribute from value declarations.
14998 * scm-lang.c (scm_lookup_name): Ditto.
15000 2002-01-03 Michael Snyder <msnyder@redhat.com>
15002 Abstract the functionality of iterating over mapped memory
15003 regions into a general purpose iterator function.
15004 * procfs.c (iterate_over_mappings): New function, general purpose
15005 iterator for memory sections.
15006 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15007 (solib_mappings_callback): New function, callback for above.
15008 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15009 (info_mappings_callback): New function, callback for above.
15011 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15013 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15015 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15016 * i386-tdep.c: Include "elf-bfd.h".
15017 (process_note_abi_tag_sections): New function.
15018 (i386_gdbarch_init): Add code to recognize various OS/ABI
15021 * maint.c (_initialize_maint_cmds): Add missing \ in
15024 For older changes see ChangeLog-2001
15030 version-control: never