1 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3 * MAINTAINERS: Mention gdb_mbuild.sh.
4 * gdb_mbuild.sh: Rewrite.
6 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8 * configure.in: Fix typo in last change.
9 * config.in, configure: Regenerated.
11 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13 * valarith.c (value_binop): Delete obsolete code and comments.
14 * configure.host: Ditto.
15 * buildsym.h (make_blockvector): Ditto.
16 * buildsym.c (make_blockvector): Ditto.
17 * defs.h (enum language): Ditto.
18 (chill_demangle): Ditto.
19 * elfread.c (elf_symtab_read): Ditto.
20 * dwarfread.c (CHILL_PRODUCER): Ditto.
21 (set_cu_language): Ditto.
22 (handle_producer): Ditto.
23 * expprint.c (print_subexp): Ditto.
24 * gdbtypes.c (chill_varying_type): Ditto.
25 * gdbtypes.h (builtin_type_chill_bool): Ditto.
26 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
27 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
28 (chill_varying_type): Ditto.
29 * language.h (_LANG_chill): Ditto.
30 * language.c (binop_result_type, integral_type): Ditto.
31 (character_type, string_type, structured_type): Ditto.
32 (lang_bool_type, binop_type_check): Ditto.
33 * stabsread.h (os9k_stabs): Ditto.
34 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
35 (define_symbol, read_type, read_struct_fields): Ditto.
36 (read_array_type, read_enum_type, read_huge_number): Ditto.
37 (read_range_type, start_stabs): Ditto.
38 * symfile.c (init_filename_language_table): Ditto.
39 (add_psymbol_with_dem_name_to_list): Ditto.
40 * symtab.c (symbol_init_language_specific): Ditto.
41 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
42 * symtab.h (struct general_symbol_info): Ditto.
43 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
44 * typeprint.c (typedef_print): Ditto.
45 * utils.c (fprintf_symbol_filtered): Ditto.
46 * valops.c (value_cast, search_struct_field, value_slice): Delete
48 (varying_to_slice): Delete function.
49 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
50 (varying_to_slice): Delete declaration.
51 * MAINTAINERS: Update.
53 2003-01-02 Mark Kettenis <kettenis@gnu.org>
55 * configure.in: Reorganize "Checks for library functions section"
56 a bit. Remove check for `btowc' and `isascii' functions.
57 * configure: Regenerated.
59 * acconfig.h (_MSE_INT_H): Remove.
60 * configure.in: Create "Checks for header files" section, and move
61 appropriate tests there. Don't check for objlist.h, wchar.h,
62 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
63 misdetection fix. Also add "Checks for types", "Checks for
64 compiler characteristics" and "Checks for library functions"
66 * config.in, configure: Regenerated.
68 * configure.in: Create "Checks for programs" section, and move
69 appropriate tests there.
71 2003-01-01 Mark Kettenis <kettenis@gnu.org>
73 * configure.in: Create "Checks for libraries" section, and move
74 appropriate tests there. Cleanup check for wctype in libw. Use
75 AC_SEARCH_LIBS to see whether we need libsocket.
76 * configure: Regenerated.
78 2002-12-31 Mark Kettenis <kettenis@gnu.org>
80 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
81 * config.in, configure: Regenerated.
83 2002-12-31 Mark Kettenis <kettenis@gnu.org>
85 * gdb_dirent.h: Cleanup and update code to match the example in
87 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
88 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
89 * configure: Regenerated.
91 2002-12-30 Adam Fedor <fedor@gnu.org>
93 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
94 (yylex): Initialize c to avoid uninitialized warning.
96 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
98 * doc/fdl.texi: Revert the last change.
100 2002-12-29 Mark Kettenis <kettenis@gnu.org>
102 * tracepoint.c (ISATTY): Removed.
104 2002-12-26 J. Brobecker <brobecker@gnat.com>
106 Continuing work to convert the hppa targets to multiarch partil.
108 * hppa-tdep.c: Add some missing forward declarations.
109 (frameless_function_invocation): Prefix the function name
110 by "hppa_" to avoid polluting the namespace. Update all calls
111 to use the new function name.
112 (saved_pc_after_call): Ditto.
113 (init_extra_frame_info): Ditto.
114 (frame_chain): Ditto.
115 (push_dummy_frame): Ditto.
116 (target_read_pc): Ditto.
117 (target_write_pc): Ditto.
118 (in_solib_call_trampoline): Ditto.
119 (in_solib_return_trampoline): Ditto.
120 (skip_trampoline_code): Ditto.
121 (hppa_read_fp): New function, renamed from target_read_fp.
122 (hppa_target_read_fp): New function, using hppa_read_fp.
123 This function conforms to the function profile for the
124 READ_FP gdbarch method.
125 (hppa_extract_struct_value_address): New function, extracted
126 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
128 (hppa_frame_num_args): New function.
129 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
131 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
132 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
133 for the switch to multiarch partial.
134 Update some of the macros definitions to match some changes
135 described above in the name of the function they are calling.
136 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
137 not be straightforward to convert. Do now wrap it inside
138 "#if !... #endif" to remember that this macro has still not
140 (FIX_CALL_DUMMY): Likewise.
142 2002-12-26 J. Brobecker <brobecker@gnat.com>
144 Continuing work to convert the hppa targets to multiarch partial.
146 * hppa-tdep.c (hppa_register_raw_size): New function replacing
147 the body of macro REGISTER_RAW_SIZE.
148 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
149 config/pa/tm-hppah.h. These functions will be used to initialize
150 the gdbarch structure.
151 (hppa_hpux_pc_in_sigtramp): New function.
152 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
153 (hppa_hpux_frame_base_before_sigtramp): New function.
154 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
155 Add gdbcore.h #include.
156 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
157 of this gdbarch-eligible macro to a call to the new associated
159 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
160 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
161 into a call to the new associated function.
162 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
163 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
164 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
166 2002-12-24 David Carlton <carlton@math.stanford.edu>
168 * config/sparc/tm-sparc.h: Delete duplicate definition of
169 DEPRECATED_PC_IN_CALL_DUMMY.
171 2002-12-24 Kevin Buettner <kevinb@redhat.com>
173 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
175 * configure.tgt: Recognize mips64*-*-linux*.
176 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
177 (supply_32_bit_reg): New function.
178 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
179 (fill_gregset): Use regcache_collect() instead of
180 deprecated_registers[].
181 (register_addr): Change name to mips_linux_register_addr().
182 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
183 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
184 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
185 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
186 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
187 (MIPS64_LINUX_JB_PC): New defines.
188 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
189 (mips64_elf_fpregset_t): New typedefs.
190 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
191 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
192 (mips64_linux_register_addr, set_mips_linux_register_addr)
193 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
194 (init_register_addr_data)
196 (fetch_core_registers): Add support for core file formats with 64-bit
198 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
199 (register_addr_data): New static global variable.
200 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
201 gdbarch_register_osabi() for each MIPS machine.
202 * config/mips/linux64.mt: New file.
203 * config/mips/tm-linux64.h: New file.
205 2002-12-23 Adam Fedor <fedor@gnu.org>
207 * maint.c (maintenance_demangle): Add switch to demangle
208 ObjC language symbols as well.
210 2002-12-23 Adam Fedor <fedor@gnu.org>
212 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
213 last argument from complaint function call.
215 2002-12-23 Kevin Buettner <kevinb@redhat.com>
217 * exec.c (print_section_info): Add FIXME comments regarding format
220 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
222 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
223 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
225 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
227 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
229 2002-12-23 David Carlton <carlton@math.stanford.edu>
231 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
232 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
233 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
234 information associated to a minsym, not lookup_symbol.
236 2002-12-21 Mark Kettenis <kettenis@gnu.org>
238 * x86-64-tdep.h (x86_64_init_abi): New prototype.
239 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
240 (x86_64_init_abi): Make non-static. Set number of pseudo
242 (x86_64_gdbarch_init): Remove function.
243 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
244 Remove code dealing with dissambly.
245 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
246 (_initialize_x86_64_linux_tdep): New function.
247 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
250 2002-12-14 Mark Kettenis <kettenis@gnu.org>
252 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
253 (struct gdb_osabi_handler): Remove member `arch'. Add member
255 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
256 construct a `struct bfd_arch_info' and store it in the `struct
257 gdb_osabi_handler' that is created.
258 (gdbarch_init_osabi): Check for compatibility based on machine
259 type and architecture.
260 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
262 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
263 second argument in call to gdbarch_register_osabi.
264 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
265 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
266 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
267 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
268 * arm-tdep.c (_initialize_arm_tdep): Likewise.
269 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
270 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
271 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
272 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
273 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
274 * i386-tdep.c (_initialize_i386_tdep): Likewise.
275 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
276 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
277 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
278 _initialize_i386bsd_tdep and updated likewise.
279 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
280 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
281 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
282 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
283 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
284 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
285 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
286 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
287 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
288 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
290 2002-12-20 Kevin Buettner <kevinb@redhat.com>
292 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
293 DT_MIPS_RLD_MAP case for 64-bit targets.
295 2002-12-20 Kevin Buettner <kevinb@redhat.com>
297 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
298 ``temp_saved_regs'', not the pointer or other storage contiguous
301 2002-12-20 Kevin Buettner <kevinb@redhat.com>
303 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
304 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
305 (mips_linux_get_longjmp_target): Delete declarations.
306 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
307 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
308 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
309 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
310 (mips_linux_get_longjmp_target)
311 (mips_linux_svr4_fetch_link_map_offsets): Make static.
312 (mips_linux_init_abi): New function.
313 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
315 2002-12-19 Keith Seitz <keiths@redhat.com>
317 patch committed by Elena Zannoni <ezannoni@redhat.com>
318 * thread.c (do_captured_list_thread_ids): Call prune_threads and
319 target_find_new_threads. Fix for PR mi/669.
321 2002-12-19 David Carlton <carlton@math.stanford.edu>
323 * linespec.c (decode_line_1): Move code into decode_all_digits.
324 (decode_all_digits): New function.
326 2002-12-19 Kevin Buettner <kevinb@redhat.com>
328 * exec.c (print_section_info): Select a format string to use with
329 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
331 2002-12-18 Andrew Cagney <ac131313@redhat.com>
333 * frame.c (deprecated_update_current_frame_pc_hack): Replace
334 deprecated_update_current_frame_pc_hack.
335 (deprecated_update_frame_base_hack): New function.
336 * frame.h (deprecated_update_frame_pc_hack): Replace
337 (deprecated_update_frame_base_hack): Declare.
338 * infrun.c (normal_stop): Update.
340 2002-12-18 Andrew Cagney <ac131313@redhat.com>
342 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
343 frame_extra_info_zalloc.
344 (rs6000_frame_args_address): Use get_frame_extra_info.
345 (frame_get_saved_regs): Use get_frame_saved_regs.
346 (frame_initial_stack_address): Use get_frame_saved_regs and
347 get_frame_extra_info.
348 (frame_initial_stack_address): Use get_frame_extra_info.
350 2002-12-17 Kevin Buettner <kevinb@redhat.com>
352 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
354 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
355 checks for r3900_regnames[].
357 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
359 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
361 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
363 2002-12-17 David Carlton <carlton@math.stanford.edu>
365 * symtab.c (lookup_partial_symbol): Don't search past the end of
368 2002-12-17 Andrew Cagney <ac131313@redhat.com>
370 * stack.c (frame_info): Use get_frame_saved_regs.
371 * breakpoint.c (until_break_command): Use get_frame_pc.
373 2002-12-16 Kevin Buettner <kevinb@redhat.com>
375 * buildsym.c (block_end_complaint, anon_block_end_complaint)
376 (innerblock_complaint, innerblock_anon_complaint)
377 (blockvector_complaint): Delete deprecated complaint structs.
378 (finish_block, make_blockvector, end_symtab): Replace calls
379 to complain() with calls to complaint().
380 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
381 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
382 (unexpected_type_complaint, bad_sclass_complaint)
383 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
384 Delete deprecated complaint structs.
385 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
386 Replace calls to complain() with calls to complaint().
387 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
388 (unknown_symtype_complaint, unknown_symchar_complaint)
389 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
390 (lbrac_mismatch_complaint, repeated_header_complaint)
391 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
392 Delete deprecated complaint structs.
393 (unknown_symtype_complaint, lbrac_mismatch_complaint)
394 (repeated_header_complaint)
395 (function_outside_compiliation_unit_complaint): New functions.
396 (add_old_header_file, find_corresponding_bincl_psymtab)
397 (set_namestring, find_stab_function_addr, read_dbx_symtab)
398 (process_one_symbol): Replace calls to complain() with, possibly
399 indirect, calls to complaint().
400 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
401 (unknown_attribute_form, unknown_attribute_length)
402 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
403 (const_ignored, botched_modified_type, op_deref2, op_deref4)
404 (basereg_not_handled, dup_user_type_allocation)
405 (dup_user_type_definition, missing_tag, bad_array_element_type)
406 (subscript_data_items, unhandled_array_subscript_format)
407 (unknown_array_subscript_format, not_row_major)
408 (missing_at_name): Delete deprecated complaint structs.
409 (bad_die_ref_complaint, unknown_attribute_form_complaint)
410 (dup_user_type_definition_complaint)
411 (bad_array_element_type_complaint): New functions.
412 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
413 (decode_subscript_data_item, dwarf_read_array_type)
414 (read_tag_string_type, read_subroutine_type, read_func_scope)
415 (locval, scan_partial_symbols, decode_modified_type)
416 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
417 (attribute_size): Replace calls to complain() with, possibly
418 indirect, calls to complaint().
419 * elfread.c (section_info_complaint, section_info_dup_complaint)
420 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
421 Delete deprecated complaint structs.
422 (elf_symtab_read, elfstab_offset_sections): Replace calls to
423 complain() with calls to complaint().
424 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
426 (stub_noname_complaint): New function.
427 (check_typedef, add_mangled_type): Replace calls to complain()
428 with calls to complaint().
429 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
430 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
431 (hpread_unhandled_type_complaint, hpread_struct_complaint)
432 (hpread_array_complaint, hpread_type_lookup_complaint)
433 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
434 (hpread_unhandled_common_complaint)
435 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
436 struct definitions and declarations.
437 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
438 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
439 Replace calls to complain() with, possibly indirect, calls to
441 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
443 * mdebugread.c (bad_file_number_complaint, index_complaint)
444 (aux_index_complaint, block_index_complaint)
445 (unknown_ext_complaint, unknown_sym_complaint)
446 (unknown_st_complaint, block_overflow_complaint)
447 (basic_type_complaint, unknown_type_qual_complaint)
448 (array_index_type_complaint, bad_tag_guess_complaint)
449 (block_member_complaint, stEnd_complaint)
450 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
451 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
452 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
453 (bad_continued_complaint, bad_rfd_entry_complaint)
454 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
455 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
456 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
457 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
459 (index_complaint, unknown_ext_complaint, basic_type_complaint)
460 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
461 (unexpected_type_code_complaint)
462 (function_outside_compilation_unit_complaint): New functions.
463 (parse_symbol, parse_type, upgrade_type, parse_procedure)
464 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
465 Replace calls to complain() with, possibly indirect calls to
467 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
468 Delete deprecated complaint structs.
469 (lookup__objc_class, lookup_child_selector): Replace complain()
471 * remote-vx.c (cant_contact_target): Delete deprecated complaint
473 (vx_lookup_symbol): Replace complain() with complaint().
474 * stabsread.c (invalid_cpp_abbrev_complaint)
475 (invalid_cpp_type_complaint, member_fn_complaint)
476 (const_vol_complaint, error_type_complaint)
477 (invalid_member_complaint, range_type_base_complaint)
478 (reg_value_complaint, vtbl_notfound_complaint)
479 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
480 (unresolved_sym_chain_complaint, stabs_general_complaint)
481 (lrs_general_complaint, multiply_defined_struct): Delete
482 deprecated complaint structs.
483 (invalid_cpp_abbrev_complaint, ref_value_complaint)
484 (stabs_general_complaint, lrs_general_complaint)
485 (msg_unknown_complaint): New functions.
486 (dbx_lookup_type, read_cfront_baseclasses)
487 (read_cfront_member_functions, resolve_symbol_reference)
488 (define_symbol, resolve_live_range, add_live_range, read_type)
489 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
490 (read_one_struct_field, read_baseclasses, read_tilde_fields)
491 (read_cfront_static_fields, attach_fields_to_type)
492 (complain_about_struct_wipeout, read_range_type)
493 (common_block_start, common_block_end, cleanup_undefined_types)
494 (scan_file_globals): Replace complain() with complaint().
495 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
496 Delete deprecated complaint struct declarations.
497 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
498 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
499 (bf_not_found_complaint, ef_complaint, eb_complaint)
500 (function_outside_compilation_unit_complaint): New functions.
501 (record_include_begin, record_include_end, enter_line_range)
502 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
503 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
504 complain() with complaint().
506 2002-12-16 Andrew Cagney <ac131313@redhat.com>
508 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
509 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
510 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
511 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
512 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
513 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
514 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
515 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
516 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
517 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
518 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
519 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
520 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
521 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
522 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
523 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
524 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
525 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
526 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
527 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
528 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
529 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
530 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
531 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
532 * config/m88k/xm-dgux.h: Delete.
533 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
534 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
535 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
536 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
537 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
538 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
539 * ch-valprint.c: Delete.
541 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
543 * infrun.c (handle_inferior_event): Rearrange code to resume if
544 no catchpoint triggers for an event.
546 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
548 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
549 and TARGET_WAITKIND_VFORKED cases.
551 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
553 * infrun.c (handle_inferior_event): Assume that catchpoints
554 are not affected by DECR_PC_AFTER_BREAK.
556 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
558 * target.c (update_current_target): Don't inherit DONT_USE.
559 * target.h (struct target_ops): Remove DONT_USE.
560 (target_next): Remove macro.
562 2002-12-15 Mark Kettenis <kettenis@gnu.org>
564 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
566 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
568 * arm-tdep.c (convert_from_extended): New argument to hold the
569 type of floating point result we want to convert to. Make input
570 argument const. Fix all callers.
571 (convert_to_extended): Similarly.
572 (arm_extract_return_value): Now takes a regcache argument. Change
573 code to use regcache accessor functions. Correctly extract
574 smaller-than-word results on big-endian machines.
575 (arm_store_return_value): Now takes a regcache argument. Change
576 code to use regcache accessor functions. Correctly zero/sign extend
577 smaller than word results before storing into r0.
578 (arm_gdbarch_init): Register new-style extract_return_value and
579 store_return_value functions.
581 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
583 * thread-db.c (thread_from_lwp): Uniquify error msg.
584 (lwp_from_thread): Ditto.
585 (check_event): Ditto.
586 (find_new_threads_callback): Ditto.
587 (thread_db_pid_to_str): Ditto.
589 2002-12-13 Andrew Cagney <ac131313@redhat.com>
591 * frame.h (get_frame_saved_regs): Declare.
592 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
594 * frame.c (get_frame_saved_regs): New function.
595 (frame_saved_regs_zalloc): Return the allocated saved_regs.
597 2002-12-13 Andrew Cagney <ac131313@redhat.com>
599 * frame.c (deprecated_update_current_frame_pc_hack): New
601 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
602 * infrun.c (normal_stop): Use said function instead of directly
603 modifying the frame's PC.
605 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
607 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
609 2002-12-13 Kevin Buettner <kevinb@redhat.com>
611 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
612 config/mips/tm-irix6.h (NUM_REGS): Delete.
613 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
614 (temp_saved_regs): Declare as a pointer rather than an array.
615 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
616 that ``temp_saved_regs'' has storage allocated to it and that
617 it's the correct size.
619 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
621 * defs.h (init_last_source_visited): New prototype.
623 * source.c (add_path): New function that adds to a specified path.
624 (mod_path): Change to call add_path.
625 (init_last_source_visited): New function to allow interfaces to
626 initialize static variable: last_source_visited. Part of fix
628 * Makefile.in: Add support for mi/mi-cmd-env.c.
630 2002-12-13 Andrew Cagney <ac131313@redhat.com>
632 * frame.h (frame_id_unwind): Declare.
633 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
635 (frame_id_unwind_ftype): Declare.
636 * frame.c (frame_id_unwind): New function.
637 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
638 (create_new_frame, get_prev_frame): Pass id_unwind to
640 (frame_saved_regs_id_unwind): New function.
641 (frame_saved_regs_id_unwind): New function.
642 * dummy-frame.c (dummy_frame_id_unwind): New function.
643 (struct dummy_frame): Add field id.
644 (generic_push_dummy_frame): Initialize `id'.
645 * dummy-frame.h (dummy_frame_id_unwind): Declare.
647 2002-12-13 Andrew Cagney <ac131313@redhat.com>
649 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
650 pass that to set_momentary_breakpoint. Move comments to where they
652 * frame.h (set_current_frame): Delete declaration.
653 * frame.c (set_current_frame): Delete function.
655 2002-12-13 Andrew Cagney <ac131313@redhat.com>
657 * frame.c (frame_extra_info_zalloc): New function.
658 * frame.h (frame_extra_info_zalloc): Declare.
660 2002-12-13 Joel Brobecker <brobecker@gnat.com>
662 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
663 in the previous prototype change to set_momentary_breakpoint.
665 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
667 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
669 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
670 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
671 (stop_stepping): Remove outdated check for child vfork events.
673 2002-12-12 Andrew Cagney <ac131313@redhat.com>
675 * GDB 5.3 released from gdb_5_3-branch.
677 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
679 * corelow.c (init_core_ops): Delete references to to_require_attach
680 and to_require_detach.
681 * exec.c (init_exec_ops): Likewise.
682 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
683 hppa_require_detach directly.
684 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
685 * inftarg.c (child_detach): Remove.
686 (child_detach_from_process): Rename to child_detach, remove
688 (child_attach): Remove.
689 (child_attach_to_process): Rename to child_attach, remove after_fork
691 (init_child_ops): Delete references to to_require_attach
692 and to_require_detach.
693 * infttrace.c (hppa_require_attach): Update comment.
694 * target.c (cleanup_target, update_current_target)
695 (init_dummy_target, setup_target_debug): Delete references to
696 to_require_attach and to_require_detach.
697 (find_default_require_detach, find_default_require_attach)
698 (debug_to_require_attach, debug_to_require_detach): Remove
700 * target.h (struct target_ops): Remove to_require_attach
701 and to_require_detach.
702 (target_require_attach, target_require_detach): Delete macros.
703 (find_default_require_detach, find_default_require_attach): Delete
705 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
707 2002-12-11 Andrew Cagney <ac131313@redhat.com>
709 * frame.c (get_frame_extra_info): New function.
710 * frame.h (get_frame_extra_info): Declare.
712 2002-12-11 Andrew Cagney <ac131313@redhat.com>
714 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
715 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
716 with `struct frame_id'.
717 (set_longjmp_resume_breakpoint): Ditto.
718 * infrun.c (handle_inferior_event): Update.
719 * breakpoint.c (watch_command_1, until_break_command): Update.
720 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
721 (handle_inferior_event, step_over_function): Update.
722 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
723 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
724 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
725 * infcmd.c (finish_command, run_stack_dummy): Update.
727 2002-12-11 Kevin Buettner <kevinb@redhat.com>
729 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
730 (dwarf2_non_const_array_bound_ignored)
731 (dwarf2_missing_line_number_section)
732 (dwarf2_statement_list_fits_in_line_number_section)
733 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
734 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
735 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
736 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
737 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
738 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
739 (dwarf2_missing_member_fn_type_complaint)
740 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
741 (dwarf2_const_value_length_mismatch)
742 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
743 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
744 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
745 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
746 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
747 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
748 complaints using deprecated struct..
749 (dwarf2_non_const_array_bound_ignored_complaint)
750 (dwarf2_complex_location_expr_complaint)
751 (dwarf2_unsupported_at_frame_base_complaint)
752 (dwarf2_const_value_length_mismatch_complaint)
753 (dwarf2_macros_too_long_complaint)
754 (dwarf2_macro_malformed_definition_complaint)
755 (dwarf2_invalid_attrib_class_complaint): New functions.
756 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
757 (read_structure_scope, read_array_type, read_common_block)
758 (read_tag_pointer_type, read_base_type, read_partial_die)
759 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
760 (new_symbol, dwarf2_const_value, read_type_die)
761 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
762 (parse_macro_definition, dwarf_decode_macros): Replace calls to
763 complain() with, possibly indirect, calls to complaint().
765 2002-12-11 Andrew Cagney <cagney@redhat.com>
767 * frame.c (deprecated_get_frame_saved_regs): Rename
768 get_frame_saved_regs.
769 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
770 * sparc-tdep.c: Update.
771 * hppa-tdep.c: Update.
772 * h8500-tdep.c: Update.
774 2002-12-11 Kevin Buettner <kevinb@redhat.com>
776 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
777 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
778 ``char *'' for return and parameter types.
779 * gdbarch.h, gdbarch.c: Regenerate.
780 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
781 return type from ``char *'' to ``const char *''.
782 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
785 2002-12-11 Mark Kettenis <kettenis@gnu.org>
787 * i386-tdep.c: Include "dummy-frame.h".
788 (i386_frame_chain, i386_frame_saved_pc): Replace
789 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
790 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
792 2002-12-10 Andrew Cagney <cagney@redhat.com>
794 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
795 Change to a function with predicate.
796 * gdbarch.h, gdbarch.c: Re-generate.
797 * frame.c (get_prev_frame): Update. Test
798 DEPRECATED_INIT_FRAME_PC_P.
799 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
800 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
801 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
802 * alpha-tdep.c (alpha_gdbarch_init): Update.
803 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
804 * mips-tdep.c (mips_gdbarch_init): Update.
805 * i386-interix-tdep.c (i386_interix_init_abi): Update.
806 * arm-tdep.c: Update comments.
807 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
808 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
809 * frv-tdep.c (frv_gdbarch_init): Ditto.
810 * x86-64-tdep.c (x86_64_init_abi): Ditto.
811 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
812 * s390-tdep.c (s390_gdbarch_init): Ditto.
813 * v850-tdep.c (v850_gdbarch_init): Ditto.
814 * vax-tdep.c (vax_gdbarch_init): Ditto.
815 * sh-tdep.c (sh_gdbarch_init): Ditto.
816 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
818 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
819 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
820 * i386-tdep.c (i386_gdbarch_init): Ditto.
821 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
822 * cris-tdep.c (cris_gdbarch_init): Ditto.
823 * avr-tdep.c (avr_gdbarch_init): Ditto.
824 * arm-tdep.c (arm_gdbarch_init): Ditto.
825 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
826 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
828 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
830 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
832 * hppah-nat.c (saved_vfork_pid): Add.
833 (child_post_follow_vfork): Remove.
834 (child_follow_fork): New function.
835 (child_wait): Call detach_breakpoints after receiving the child vfork.
836 Call child_resume directly instead of going through resume ().
837 Make sure we have the exec before reporting the vfork.
838 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
839 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
840 (follow_fork): New function. Call target_follow_fork.
841 (follow_inferior_reset_breakpoints): New function broken out from
842 old follow_inferior_fork.
843 (resume): Remove hack to follow exec after vfork.
844 * inftarg.c (child_post_follow_vfork): Remove.
845 (child_follow_fork): New function.
846 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
847 * target.c (cleanup_target): Replace to_post_follow_vfork with
849 (update_current_target): Likewise.
850 (setup_target_debug): Likewise.
851 (debug_to_post_follow_vfork): Remove.
852 (debug_to_follow_fork): New function.
853 * target.h (struct target_ops): Replace to_post_folow_vfork with
855 (child_post_follow_vfork): Remove prototype.
856 (child_follow_fork): Add prototype.
857 (target_post_follow_vfork): Remove macro.
858 (target_follow_fork): Add macro.
860 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
862 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
863 (child_post_follow_vfork): Cancel pending exec event if we follow
865 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
866 events have been processed. Return a fake TARGET_WAITKIND_EXECD
867 event at the following wait call if necessary.
868 * infrun.c (follow_vfork): Don't follow_exec here.
869 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
870 case about HP/UX 10.20. Remove code pushed down to
871 hppah-nat.c:child_wait.
872 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
873 vfork_in_flight is set.
875 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
877 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
878 for the parent's fork event.
879 * infrun.c (handle_inferior_event): Only expect one fork event.
880 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
881 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
883 2002-12-10 Andrew Cagney <ac131313@redhat.com>
885 * PROBLEMS: Delete reference to PR gdb/725.
887 * MAINTAINERS (gdb.c++): Add David Carlton.
889 2002-12-09 David Carlton <carlton@math.stanford.edu>
891 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
892 * cli/cli-cmds.c: Ditto.
894 2002-12-09 Andrew Cagney <cagney@redhat.com>
896 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
897 function address in <>.
898 * gdbarch.c: Re-generate.
900 2002-12-09 David Carlton <carlton@math.stanford.edu>
902 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
904 2002-12-09 David Carlton <carlton@math.stanford.edu>
906 * linespec.c (symtab_from_filename): New function.
907 (decode_line_1): Move code into symtab_from_filename.
909 2002-12-09 Kevin Buettner <kevinb@redhat.com>
911 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
913 2002-12-07 Andrew Cagney <ac131313@redhat.com>
915 * f-valprint.c (info_common_command): Use get_frame_pc.
916 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
917 * ax-gdb.c (agent_command): Ditto.
918 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
919 (rs6000_pop_frame): Ditto.
920 (rs6000_frameless_function_invocation): Ditto.
921 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
922 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
923 * macroscope.c (default_macro_scope): Ditto.
924 * stack.c (print_frame_info_base): Ditto.
925 (print_frame, frame_info, print_frame_label_vars): Ditto.
926 (return_command, func_command, get_frame_language): Ditto.
927 * infcmd.c (finish_command): Ditto.
928 * dummy-frame.c (cached_find_dummy_frame): Ditto.
929 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
930 (break_at_finish_at_depth_command_1): Ditto.
931 (break_at_finish_command_1): Ditto.
932 (until_break_command, get_catch_sals): Ditto.
933 * blockframe.c (func_frame_chain_valid): Ditto.
934 (frameless_look_for_prologue): Ditto.
935 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
937 2002-12-08 Andrew Cagney <ac131313@redhat.com>
939 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
940 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
942 2002-12-08 Andrew Cagney <ac131313@redhat.com>
944 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
946 * gdbarch.h, gdbarch.c: Re-generate.
947 * frame.c (get_prev_frame): Explictly assign prev's pc with value
948 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
950 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
951 declaration to a function returning a CORE_ADDR.
952 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
953 * arch-utils.c (init_frame_pc_noop): Return the PC value.
954 (init_frame_pc_default): Ditto.
955 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
956 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
957 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
958 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
959 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
960 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
962 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
963 to init_frame_pc_noop.
964 (i386_interix_init_frame_pc): Delete function.
965 * z8k-tdep.c (init_frame_pc): Delete function.
966 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
967 (INIT_FRAME_PC_FIRST): Ditto.
968 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
969 (INIT_FRAME_PC_FIRST): Ditto.
970 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
971 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
973 (INIT_FRAME_PC_FIRST): Convert to an expression.
974 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
976 2002-12-08 Andrew Cagney <ac131313@redhat.com>
978 * blockframe.c: Use get_frame_base instead of directly accessing
979 the `struct frame_info' member frame.
980 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
981 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
983 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
985 * Makefile.in (readline_h): Define.
986 (completer.o): Depend on readline_h.
988 (event-top.o): Ditto.
995 (tracepoint.o): Ditto.
998 (tui-hooks.o): Ditto.
1001 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1003 More cleanup from import of readline 4.3.
1004 * completer.h (complete_line, readline_line_completion_function):
1006 (line_completion_function): Removed, not used outside of completer.c.
1007 * completer.c (readline_line_completion_function,
1008 complete_function, line_completion_function): Use const for first
1010 (line_completion_function): Make static.
1011 (filename_completer): filename_completion_function is now called
1012 rl_filename_completion_function
1013 * corelow.c: Include <readline/readline.h>.
1019 * top.c (init_main): No need to coerce
1020 readline_line_completion_function anymore.
1021 * cli/cli-dump.c: Include <readline/readline.h>.
1023 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1025 * stack.c (frame_info): Use get_prev_frame.
1026 * blockframe.c (frame_address_in_block): Ditto.
1027 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1028 (rs6000_frameless_function_invocation): Ditto.
1029 (rs6000_frame_saved_pc): Ditto.
1030 (rs6000_frame_chain): Ditto.
1031 * arch-utils.c (init_frame_pc_default): Ditto.
1033 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1035 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1036 Delete redundant definition.
1038 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1040 Import of readline 4.3:
1041 * cli/cli-cmds.c: Include readline/tilde.h.
1042 * cli/cli-setshow.c: Ditto.
1043 * defs.h: Don't declare tilde_expand anymore, since readline
1046 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1048 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1049 -Werror on this file.
1051 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1053 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1055 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1056 * gdbarch.c: Regenerate.
1058 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1060 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1061 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1062 provide a default value.
1063 * gdbarch.h, gdbarch.c: Regenerate.
1064 * frame.c (get_prev_frame): Update. Check
1065 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1066 * s390-tdep.c (s390_gdbarch_init): Update.
1067 * mips-tdep.c (mips_gdbarch_init): Update.
1068 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1069 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1070 * alpha-tdep.c (alpha_gdbarch_init): Update.
1072 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1074 * ia64-linux-nat.c: Include gdb_string.h.
1075 * alpha-nat.c: Ditto.
1076 * ppc-linux-nat.c: Ditto.
1077 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1078 Update dependencies.
1080 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1082 * gdbthread.h: Include "frame.h".
1083 (struct thread_info): Replace step_frame_address with
1085 * inferior.h: Include "frame.h".
1086 (step_frame_id): Replace external variable step_frame_address.
1087 * gdbthread.h (save_infrun_state): Replace step_frame_address
1088 parameter with step_frame_id parameter.
1089 (load_infrun_state): Ditto.
1090 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1091 * infcmd.c (step_frame_id, step_1, step_once): Update.
1092 * thread.c (load_infrun_state, save_infrun_state): Update.
1093 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1094 (handle_inferior_event, step_over_function): Update.
1095 (normal_stop, context_switch, restore_inferior_status): Update.
1096 (struct inferior_status): Replace step_frame_address with
1099 2002-12-05 David Carlton <carlton@math.stanford.edu>
1101 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1102 DW_TAG_member as well as a declaration as being a C++ static data
1104 (read_structure_scope): Combine tests for DW_TAG_member and
1107 2002-12-05 David Carlton <carlton@math.stanford.edu>
1109 * linespec.c (decode_compound): New function.
1110 (decode_line_1): Move code into decode_compound.
1112 2002-12-05 David Carlton <carlton@math.stanford.edu>
1114 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1116 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1117 the static block. See PR gdb/804.
1119 2002-12-05 David Carlton <carlton@math.stanford.edu>
1121 * symtab.c (lookup_symbol_aux_block): New function.
1122 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1124 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1126 * gdbarch.sh: Dump the predicate function and macro values.
1127 (read): Print error on standard error.
1128 * gdbarch.c: Regenerate.
1130 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1132 * Makefile.in (mips_tdep_h): Define.
1133 (mips-tdep.o): Add mips_tdep_h to dependency list.
1134 * mips-tdep.h: New file.
1135 * mips-tdep.c (mips-tdep.h): Include.
1136 (enum mips_abi): Move to mips-tdep.h.
1137 (mips_abi): New function.
1139 2002-12-04 David Carlton <carlton@math.stanford.edu>
1141 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1143 2002-12-04 David Carlton <carlton@math.stanford.edu>
1145 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1147 (lookup_symbol_aux_minsyms): New function.
1149 2002-12-04 J. Brobecker <brobecker@gnat.com>
1151 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1153 2002-12-04 J. Brobecker <brobecker@gnat.com>
1155 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1156 which is an obsolete macro name.
1158 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1160 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1161 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1163 2002-12-03 H.J. Lu (hjl@gnu.org)
1165 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1166 (create_breakpoints): Make sure the addr_string field is not
1169 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1171 * sparc-nat.c (fetch_inferior_registers)
1172 (store_inferior_registers): Add comment on problem of LWP vs
1175 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1176 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1177 (lin_lwp_store_registers): Remove.
1178 (init_lin_lwp_ops): Use fetch_inferior_registers
1179 and store_inferior_registers directly.
1180 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1181 (store_inferior_registers): Likewise.
1184 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1186 * frame.h (get_frame_id): Convert to a function.
1187 (null_frame_id, frame_id_p): Declare.
1188 (frame_id_eq, frame_id_inner): Declare.
1189 (frame_id_build): New function.
1190 * frame.c (get_frame_id): Update. Use null_frame_id.
1191 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1193 (null_frame_id, frame_id_p): Define.
1194 (frame_id_eq, frame_id_inner): Define.
1195 (frame_id_build): New function.
1196 * varobj.c (varobj_create): Update.
1197 (varobj_update): Update.
1198 * valops.c (value_assign): Update.
1199 (new_root_variable): Update.
1200 * infrun.c (save_inferior_status): Update.
1201 * breakpoint.c (watch_command_1): Update.
1203 2002-12-03 J. Brobecker <brobecker@gnat.com>
1205 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1208 2002-12-03 Andrew Cagney <cagney@redhat.com>
1210 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1213 * PROBLEMS: Mention PR gdb/725.
1215 2002-12-03 Andreas Schwab <schwab@suse.de>
1217 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1219 2002-12-02 Adam Fedor <fedor@gnu.org>
1220 Klee Dienes <kdienes@apple.com>
1222 * objc-lang.c (objc_printstr): Add width arg to match
1224 (compare_selectors): Add 'const' to arg types.
1225 (compare_classes): Likewise.
1226 (find_imps): Cast msym pointer to avoid compiler warning.
1227 (print_object_command): Validate the address before
1228 passing it to the print routine.
1229 (find_objc_msgcall_submethod): Change function argument to
1231 * objc-lang.h: Add 'extern' to all function declarations.
1232 (value_nsstring): Add declaration.
1234 2002-12-02 J. Brobecker <brobecker@gnat.com>
1236 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1237 Fixes a build failure on HP/UX.
1239 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1241 (hpread_has_name): Advance declaration to avoid a compilation warning.
1242 (pst_syms_count): Add missing variable type. By change, the compiler
1243 was defaulting to int, which seems a good choice. Fixes a compilation
1245 (pst_syms_size): Likewise.
1247 2002-12-02 J. Brobecker <brobecker@gnat.com>
1249 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1250 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1251 later to set the proper gdbarch methods depending on the osabi.
1252 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1254 2002-12-02 J. Brobecker <brobecker@gnat.com>
1256 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1257 * osabi.c (gdb_osabi_name): Add strings images for the two new
1259 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1261 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1263 * MAINTAINERS (Java): Global maintainers are responible for Java.
1264 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1265 part Java maintainers.
1267 2002-12-02 J. Brobecker <brobecker@gnat.com>
1269 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1270 Fixes a compilation failure on AiX.
1272 2002-12-02 J. Brobecker <brobecker@gnat.com>
1274 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1275 why aix-thread.o is not listed.
1277 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1279 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1280 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1281 * gdbarch.h, gdbarch.c: Re-generate.
1282 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1283 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1284 * config/pa/tm-hppa.h, frame.h: Update.
1285 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1286 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1287 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1288 * cris-tdep.c, alpha-tdep.c: Update.
1289 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1290 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1291 (get_prev_frame): Ditto.
1293 2002-11-30 Andrew Cagney <cagney@redhat.com>
1295 * exec.c (xfer_memory): Replace boolean with int.
1296 * p-exp.y: Use 0 instead of false.
1297 * corelow.c (gdb_check_format): Change return type to int from
1299 * utils.c: Don't include <curses.h> or <term.h> first.
1301 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1303 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1304 (m68hc11_register_byte): Remove.
1305 (m68hc11_gdbarch_init): Don't set the above.
1307 2002-11-29 Andrew Cagney <cagney@redhat.com>
1309 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1310 by calling get_selected_frame.
1311 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1312 set_current_frame, create_new_frame, select_frame and
1314 * remote-e7000.c (e7000_start_remote): Ditto.
1315 * remote-mips.c (common_open): Ditto
1316 * remote-rdp.c (remote_rdp_open): Ditto.
1318 2002-11-29 Andreas Schwab <schwab@suse.de>
1320 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1321 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1322 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1323 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1324 read_memory_unsigned_integer instead of read_memory_integer when
1325 dealing with addresses and instruction opcodes.
1326 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1327 (m68k_linux_frame_saved_pc): Likewise.
1329 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1331 * stack.c (selected_frame, select_frame): Move from here ...
1332 * frame.c (selected_frame, select_frame): ... to here. Include
1334 * Makefile.in (frame.o): Update dependencies.
1335 * frame.c (get_selected_frame): New function.
1336 * frame.h (get_selected_frame): Declare.
1337 (deprecated_selected_frame): Rename selected_frame.
1338 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1339 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1340 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1341 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1342 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1343 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1344 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1345 * z8k-tdep.c, cli/cli-cmds.c: Update.
1347 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1349 * frame.h (get_selected_block): Add comments.
1351 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1353 * frame.c (pc_notcurrent): New function.
1354 (find_frame_sal): New function.
1355 * frame.h (find_frame_sal): Declare.
1356 (struct symtab_and_line): Add opaque declaration.
1357 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1359 (frame_info): Ditto.
1360 * ada-lang.c (find_printable_frame): Ditto.
1362 2002-11-28 J. Brobecker <brobecker@gnat.com>
1364 * configure.in: Check that the pthdebug library is recent enough
1365 before enabling thread support on native AiX.
1366 * configure: Regenerate.
1368 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1369 from the list of object files as it is now appended by configure
1370 if thread support is enabled.
1371 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1372 if thread support is enabled.
1374 2002-11-28 Andrew Cagney <cagney@redhat.com>
1376 * stack.c (get_selected_block): In-line get_current_block.
1377 * frame.h (get_current_block): Delete declaration.
1378 * blockframe.c (get_current_block): Delete function.
1380 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1382 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1383 USE_GENERIC_DUMMY_FRAMES.
1384 * gdbarch.h, gdbarch.c: Regenerate.
1385 * valops.c, frame.c: Update.
1386 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1387 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1388 * config/pa/tm-hppa.h, blockframe.c: Update.
1389 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1390 * m68k-tdep.c, alpha-tdep.c: Ditto.
1392 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1393 * mips-tdep.c: Ditto.
1395 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1397 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1398 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1399 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1400 * gdbarch.c, gdbarch.h: Re-generate.
1401 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1402 (CALL_DUMMY_LOCATION): Delete macro definition.
1403 (PC_IN_CALL_DUMMY): Delete macro definitions.
1405 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1406 default is already generic_pc_in_call_dummy.
1407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1408 * v850-tdep.c (v850_gdbarch_init): Ditto.
1409 * sh-tdep.c (sh_gdbarch_init): Ditto.
1410 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1411 * mips-tdep.c (mips_gdbarch_init): Ditto.
1412 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1415 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1416 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1417 * avr-tdep.c (avr_gdbarch_init): Ditto.
1419 * arm-tdep.c (arm_gdbarch_init): Do not set
1420 use_generic_dummy_frames, default is already 1.
1421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1422 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1423 * v850-tdep.c (v850_gdbarch_init): Ditto.
1424 * sh-tdep.c (sh_gdbarch_init): Ditto.
1425 * s390-tdep.c (s390_gdbarch_init): Ditto.
1426 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1427 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1428 * mips-tdep.c (mips_gdbarch_init): Ditto.
1429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1431 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1432 * i386-tdep.c (i386_gdbarch_init): Ditto.
1433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1434 * frv-tdep.c (frv_gdbarch_init): Ditto.
1435 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1436 * cris-tdep.c (cris_gdbarch_init): Ditto.
1437 * avr-tdep.c (avr_gdbarch_init): Ditto.
1439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1440 call_dummy_location, default is already AT_ENTRY_POINT.
1441 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1442 * v850-tdep.c (v850_gdbarch_init): Ditto.
1443 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1444 * sh-tdep.c (sh_gdbarch_init): Ditto.
1445 * s390-tdep.c (s390_gdbarch_init): Ditto.
1446 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1447 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1448 * mips-tdep.c (mips_gdbarch_init): Ditto.
1449 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1451 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1452 * i386-tdep.c (i386_gdbarch_init): Ditto.
1453 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1454 * frv-tdep.c (frv_gdbarch_init): Ditto.
1455 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1456 * cris-tdep.c (cris_gdbarch_init): Ditto.
1457 * avr-tdep.c (avr_gdbarch_init): Ditto.
1458 * arm-tdep.c (arm_gdbarch_init): Ditto.
1459 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1461 2002-11-28 Andrew Cagney <cagney@redhat.com>
1463 * frame.h: Update comments on set_current_frame, create_new_frame,
1464 flush_cached_frames, reinit_frame_cache, select_frame and
1467 2002-11-27 Andrew Cagney <cagney@redhat.com>
1469 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1470 deprecated pc_in_call_dummy function.
1471 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1472 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1473 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1474 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1475 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1477 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1479 * Makefile.in: Remove Tix dependencies.
1480 * acinclude.m4: Ditto.
1481 * aclocal.m4: Ditto.
1482 * configure.in: Ditto.
1483 * configure: Regenerated.
1485 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1487 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1488 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1489 * gdbarch.c: Re-generate.
1491 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1493 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1494 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1495 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1496 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1497 pc_in_call_dummy_at_entry_point.
1498 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1499 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1500 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1501 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1502 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1503 pc_in_call_dummy_on_stack.
1504 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1505 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1506 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1507 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1508 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1510 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1512 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1513 pc_in_call_dummy_before_text_end
1514 (deprecated_pc_in_call_dummy_after_text_end): Rename
1515 pc_in_call_dummy_after_text_end.
1516 (deprecated_pc_in_call_dummy_on_stack): Rename
1517 pc_in_call_dummy_on_stack.
1518 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1519 pc_in_call_dummy_at_entry_point.
1520 * m68k-tdep.c (m68k_gdbarch_init): Update.
1521 * s390-tdep.c (s390_gdbarch_init): Update.
1522 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1523 * vax-tdep.c (vax_gdbarch_init): Update.
1524 * sparc-tdep.c (sparc_gdbarch_init): Update.
1525 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1526 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1527 * i386-tdep.c (i386_gdbarch_init): Update.
1528 * frv-tdep.c (frv_gdbarch_init): Update.
1529 * cris-tdep.c (cris_gdbarch_init): Update.
1530 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1531 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1532 (deprecated_pc_in_call_dummy_after_text_end)
1533 (deprecated_pc_in_call_dummy_on_stack)
1534 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1535 * alpha-tdep.c (alpha_gdbarch_init): Update.
1537 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1539 * acconfig.h (HAVE_PREAD64): Add.
1540 * configure.in: Check for pread64.
1541 * config.in: Regenerated.
1542 * configure: Regenerated.
1543 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1544 * linux-proc.c (linux_proc_xfer_memory): New function.
1545 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1547 2002-11-25 David Carlton <carlton@math.stanford.edu>
1549 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1552 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1554 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1555 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1557 2002-11-25 Jim Blandy <jimb@redhat.com>
1559 * symfile.c (init_objfile_sect_indices): New function.
1560 (default_symfile_offsets): Move the section-index-initializing
1561 stuff into init_objfile_sect_indices, and call that.
1563 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1564 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1566 * symfile.c (syms_from_objfile): Adjust indentation.
1568 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1569 || info_verbose isn't true.
1571 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1573 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1574 default to get_frame_base.
1575 * gdbarch.h, gdbarch.c: Regenerate.
1576 * arch-utils.c (default_frame_address): Delete function.
1577 * arch-utils.h (default_frame_address): Delete declaration
1579 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1581 * varobj.c (find_frame_addr_in_frame_chain):
1582 Use get_frame_base instead of FRAME_FP,
1585 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1587 * frame.h (FRAME_FP): Delete macro.
1588 (get_frame_base): New function declaration.
1589 * frame.c (get_frame_base): New function.
1590 (get_frame_id): Use ->frame.
1591 (frame_find_by_id): Rewrite to use get_frame_id.
1592 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1593 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1594 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1595 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1596 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1597 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1598 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1600 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1602 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1604 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1606 * frame.c (set_unwind_by_pc): Revert change below, use
1608 (get_prev_frame): Ditto.
1610 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1612 * dummy-frame.c (pc_in_dummy_frame): New function.
1613 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1614 (find_dummy_frame): Update comment.
1615 (generic_pop_current_frame): Use get_frame_type.
1616 * dummy-frame.h (pc_in_dummy_frame): Declare.
1617 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1618 (create_new_frame): Use pc_in_dummy_frame.
1619 (get_prev_frame): Use pc_in_dummy_frame.
1620 (frame_saved_regs_register_unwind): Use get_prev_frame.
1621 (deprecated_generic_get_saved_register): Use get_prev_frame.
1623 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1625 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1627 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1628 (varobj_create): Note that frame ID should be used.
1629 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1631 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1633 * breakpoint.c: Include "gdb_assert.h".
1634 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1636 * Makefile.in (breakpoint.o): Update dependencies.
1637 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1638 deprecated_frame_in_dummy.
1639 * stack.c (print_frame_info_base): Ditto.
1640 (frame_info): Ditto.
1641 (print_frame_info_base): Ditto. Delete dead code.
1643 2002-11-23 Andreas Schwab <schwab@suse.de>
1645 * Makefile.in (m68k_tdep_h): Define.
1646 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1647 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1648 * m68k-tdep.c: Move register number enum ...
1649 * m68k-tdep.h: ... to this new file and rename the constants from
1650 E_* to M68K_*. All uses changed.
1651 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1652 * abug-rom.c: Include "m68k-tdep.h". Use
1653 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1654 * cpu32bug-rom.c: Likewise.
1655 * dbug-rom.c: Likewise.
1656 * m68k-tdep.c: Likewise.
1657 * m68klinux-nat.c: Likewise.
1658 * remote-est.c: Likewise.
1659 * rom68k-rom.c: Likewise.
1660 * config/m68k/tm-linux.h: Likewise.
1662 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1664 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1665 dummy frame initialization code.
1666 * mips-tdep.c (mips_gdbarch_init): Ditto.
1668 2002-11-22 Christopher Faylor <cgf@redhat.com>
1670 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1673 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1675 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1676 to default_frame_address.
1677 * gdbarch.h, gdbarch.c: Re-generate.
1679 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1680 or frame_locals_address to default_frame_address.
1681 * m68k-tdep.c (m68k_gdbarch_init): Update.
1682 * i386-tdep.c (i386_gdbarch_init): Update.
1683 * frv-tdep.c (frv_gdbarch_init): Update.
1684 * sh-tdep.c (sh_gdbarch_init): Update.
1685 * v850-tdep.c (v850_gdbarch_init): Update.
1686 * sparc-tdep.c (sparc_gdbarch_init): Update.
1687 * mips-tdep.c (mips_gdbarch_init): Update.
1688 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1689 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1692 * cris-tdep.c (cris_frame_args_address): Delete function.
1693 (cris_frame_locals_address): Delete function.
1694 (cris_gdbarch_init): Do not set frame_args_address or
1695 frame_locals_address.
1697 2002-11-22 Michael Snyder <msnyder@redhat.com>
1699 * thread-db.c (thread_db_load): Tell the user what's going on
1700 if dlopen fails on libthread_db.
1702 2002-11-23 Andreas Schwab <schwab@suse.de>
1704 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1705 invariant return values.
1707 2002-11-22 Andreas Schwab <schwab@suse.de>
1709 * valops.c (value_slice): Move declaration of `offset' to avoid
1712 2002-11-22 Christopher Faylor <cgf@redhat.com>
1714 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1715 (struct so_stuff): Add end_addr field.
1716 (register_loaded_dll): Calculate and store end address of loaded dll.
1717 (solib_address): New function.
1718 (child_solib_loaded_library_pathname): Pass carefully constructed
1719 section info to safe_symbol_file_add rather than ignoring it.
1720 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1722 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1723 (child_create_inferior): Fix a compiler warning.
1724 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1725 (solib_address): Declare new function.
1727 2002-11-22 Andreas Schwab <schwab@suse.de>
1729 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1732 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1734 * maint.c (_initialize_maint_cmds): Fix typo. From
1735 Francesco Potorti` <pot@gnu.org>.
1737 2002-11-21 Andrew Cagney <cagney@redhat.com>
1739 * mips-tdep.c (mips_dump_tdep): Delete references to
1740 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1741 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1742 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1743 * printcmd.c (build_address_symbolic): Delete calls to
1744 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1745 (address_info): Ditto.
1748 2002-11-19 Klee Dienes <kdienes@apple.com>
1749 Adam Fedor <fedor@gnu.org>
1751 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1752 the ability to explicitly specify the quote characters and word
1753 break characters; if NULL is specified for either, use the old
1754 behavior of using the characters used by the completer.
1755 (skip_chars): New function. Convenience wrapper around
1756 skip_quoted_chars to provide the original skip_chars behavior.
1757 * completer.h (skip_quoted_chars): Add prototype.
1759 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1761 Problems reported by Paul Eggert.
1762 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1764 2002-11-19 Andreas Schwab <schwab@suse.de>
1766 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1767 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1768 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1769 (m68k_linux_frame_saved_pc): Move to ...
1770 * m68klinux-tdep.c: ... here. New file.
1771 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1772 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1774 2002-11-19 Adam Fedor <fedor@gnu.org>
1776 * objc-exp.y: Revert to old skip_quoted usage.
1778 2002-11-19 Adam Fedor <fedor@gnu.org>
1780 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1781 (objc_lang_h): Define.
1782 (YYFILES): Add objc-exp.tab.c.
1783 (local-maintainer-clean): Remove objc-exp.tab.c.
1784 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1786 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1788 * p-exp.y (typecast rule): Add automatic dereference of
1789 pascal classes if needed.
1790 (THIS): Set current_type.
1791 Automatically dereference pascal classes.
1792 (typebase rule): Add ^typebase recognition.
1794 2002-11-18 Adam Fedor <fedor@gnu.org>
1796 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1797 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1798 (op_name): Handle OP_OBJC_SELF.
1799 * Makefile.in (expprint.o): Add additional depends.
1801 2002-11-18 Adam Fedor <fedor@gnu.org>
1803 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1804 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1805 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1806 * objc-exp.y: Likewise.
1808 2002-11-18 Adam Fedor <fedor@gnu.org>
1810 * gdb/parser-defs.h: (struct objc_class_str): New structure
1811 for parsing ObjC classes.
1813 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1815 * stack.c (frame_relative_level): Copy function from here ...
1816 * frame.c (frame_relative_level): ...to here.
1818 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1820 * frame.h (enum frame_type): Define.
1821 (get_frame_type): Declare.
1822 (struct frame_info): Add field `type'. Delete field
1823 signal_handler_caller.
1824 (deprecated_set_frame_signal_handler_caller): Declare.
1825 * frame.c (get_frame_type): New function.
1826 (deprecated_set_frame_type): New function.
1827 (create_new_frame): Set the frame's type.
1828 (get_prev_frame): Similar.
1829 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1830 * s390-tdep.c: Ditto.
1831 * m68klinux-nat.c: Ditto.
1832 * ns32k-tdep.c: Ditto.
1833 * x86-64-linux-tdep.c: Ditto.
1834 * vax-tdep.c: Ditto.
1835 * rs6000-tdep.c: Ditto.
1836 * ppc-linux-tdep.c: Ditto.
1837 * i386-interix-tdep.c: Ditto.
1838 * mips-tdep.c: Ditto.
1839 * m68k-tdep.c: Ditto.
1840 * hppa-tdep.c: Ditto.
1841 * ia64-tdep.c: Ditto.
1842 * cris-tdep.c: Ditto.
1843 * arm-tdep.c: Ditto.
1844 * alpha-tdep.c: Ditto.
1845 * i386-tdep.c: Ditto.
1847 * ada-lang.c: Ditto.
1848 * blockframe.c: Update.
1849 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1850 deprecated_set_frame_type instead of signal_handler_caller.
1851 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1852 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1853 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1855 2002-11-18 Klee Dienes <kdienes@apple.com>
1857 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1859 2002-11-18 Klee Dienes <kdienes@apple.com>
1861 * buildsym.c (pop_context): Add comment.
1863 2002-11-18 Klee Dienes <kdienes@apple.com>
1865 * buildsym.h (pop_context): Convert to function, defined in
1867 * buildsym.c: Include gdb_assert.h.
1868 (pop_context): Implement as C function. Add check for stack
1870 * dbxread.c (process_one_symbol): Complain and stop processing
1871 that symbol if we are already at the top of the context stack for
1872 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1873 when processing N_RBRAC.
1875 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1877 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1879 (struct target_waitstatus): Add opaque definition.
1880 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1881 * exec.c (init_exec_ops): Likewise.
1882 * fork-child.c (clone_and_follow_inferior): Remove.
1883 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1884 * inferior.h (clone_and_follow_inferior): Remove prototype.
1885 * infrun.c (follow_fork_mode_both): Remove.
1886 (follow_fork_mode_kind_names): Remove commented out "both".
1887 (follow_inferior_fork): Remove follow_fork_mode_both support.
1888 * inftarg.c (child_clone_and_follow_inferior): Remove.
1889 (child_post_follow_inferior_by_clone): Remove.
1890 (init_child_ops): Don't set to_clone_and_follow_inferior
1891 or to_post_follow_inferior_by_clone.
1892 * target.c (default_clone_and_follow_inferior): Remove.
1893 (cleanup_target): Don't set to_clone_and_follow_inferior
1894 or to_post_follow_inferior_by_clone.
1895 (find_default_clone_and_follow_inferior): Remove.
1896 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1897 (debug_to_clone_and_follow_inferior): Remove.
1898 (debug_to_post_follow_inferior_by_clone): Remove.
1899 (setup_target_debug): Don't set to_clone_and_follow_inferior
1900 or to_post_follow_inferior_by_clone.
1901 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1902 and to_post_follow_inferior_by_clone.
1903 (child_clone_and_follow_inferior): Remove prototype.
1904 (child_post_follow_inferior_by_clone): Remove prototype.
1905 (target_clone_and_follow_inferior): Remove macro.
1906 (target_post_follow_inferior_by_clone): Remove macro.
1907 (find_default_clone_and_follow_inferior): Remove prototype.
1909 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1911 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1912 inferior_has_vforked, and inferior_has_execd instead of
1913 target_has_forked, target_has_vforked, and target_has_execd.
1914 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1915 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1916 (CHILD_WAIT): Define.
1917 (child_wait): Add prototype.
1918 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1920 (hpux_has_vforked): Likewise, from child_has_vforked.
1921 (hpux_has_execd): Likewise, from child_has_execd.
1922 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1923 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1924 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1925 and hpux_has_syscall_event instead of the target hooks.
1926 * infrun.c (inferior_has_forked, inferior_has_vforked)
1927 (inferior_has_execd): New functions.
1928 * inftarg.c (not_same_real_pid): Remove.
1929 (child_wait): Remove references to not_same_real_pid,
1930 target_has_forked, target_has_vforked, target_has_execd,
1931 and target_has_syscall_event.
1932 (child_has_forked, child_has_vforked, child_has_execd)
1933 (child_has_syscall_event): Remove.
1934 (init_child_ops): Remove references to child_has_forked,
1935 child_has_vforked, child_has_execd, and child_has_syscall_event.
1936 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1937 (hpux_has_vforked): Likewise, from child_has_vforked.
1938 (hpux_has_execd): Likewise, from child_has_execd.
1939 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1940 * target.c (cleanup_target): Remove references to
1941 to_has_forked, to_has_vforked, to_has_execd, and
1942 to_has_syscall_event.
1943 (update_current_target): Likewise.
1944 (setup_target_debug): Likewise.
1945 (debug_to_has_forked): Remove.
1946 (debug_to_has_vforked): Remove.
1947 (debug_to_has_execd): Remove.
1948 (debug_to_has_syscall_event): Remove.
1949 * target.h (struct target_ops): Remove to_has_forked.
1950 to_has_vforked, to_has_execd, and to_has_syscall_event.
1951 (child_has_forked, child_has_vforked, child_has_execd)
1952 (child_has_syscall_event): Remove prototypes.
1953 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1955 (target_has_forked, target_has_vforked, target_has_execd)
1956 (target_has_syscall_event): Remove macros.
1958 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1960 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1961 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1962 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1963 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1964 * target.c (cleanup_target): Remove reference to
1965 to_can_follow_vfork_prior_to_exec.
1966 (update_current_target): Likewise.
1967 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1968 (setup_target_debug): Remove reference to
1969 to_can_follow_vfork_prior_to_exec.
1970 * target.h (struct target_ops): Remove
1971 to_can_follow_vfork_prior_to_exec.
1972 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1973 (target_can_follow_vfork_prior_to_exec): Remove definition.
1974 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1976 * infrun.c (follow_vfork_when_exec): Remove.
1977 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1978 (follow_exec): Likewise.
1979 (handle_inferior_event): Likewise.
1980 (keep_going): Likewise.
1982 2002-11-15 Andrew Cagney <cagney@redhat.com>
1984 * frame.c (generic_unwind_get_saved_register): Make static.
1985 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1986 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1987 defaults to generic_unwind_get_saved_register.
1988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1990 * frv-tdep.c (frv_gdbarch_init): Ditto.
1991 * i386-tdep.c (i386_gdbarch_init): Ditto.
1992 * s390-tdep.c (s390_gdbarch_init): Ditto.
1993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1994 * v850-tdep.c (v850_gdbarch_init): Ditto.
1995 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1996 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1997 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1999 2002-11-15 Andrew Cagney <cagney@redhat.com>
2001 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2004 2002-11-15 Andrew Cagney <cagney@redhat.com>
2006 * frame.h (sigtramp_saved_pc): Delete declaration.
2007 * blockframe.c (sigtramp_saved_pc): Delete function.
2008 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2009 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2010 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2011 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2013 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2015 * frame.c (frame_pc_unwind): New function.
2016 (frame_saved_regs_pc_unwind): New function.
2017 (frame_register_unwind): Pass unwind_cache instead of
2018 register_unwind_cache.
2019 (set_unwind_by_pc): Add unwind_pc parameter, set.
2020 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2021 (get_prev_frame): Ditto.
2022 * frame.h (frame_pc_unwind_ftype): Declare.
2023 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2024 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2025 (frame_pc_unwind): Declare.
2026 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2027 (struct dummy_frame): Add comment mentioning that values are for
2029 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2030 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2031 (generic_file_frame_chain_valid): Ditto.
2032 * stack.c (frame_info): Ditto.
2034 2002-11-15 David Carlton <carlton@math.stanford.edu>
2036 * linespec.c (locate_first_half): New function.
2037 (decode_line_1): Move code into locate_first_half.
2039 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2041 * complaints.h: Add comment explaining how to eliminate a
2042 deprecated_complain call.
2043 * complaints.h: Fix spelling errors.
2045 2002-11-15 David Carlton <carlton@math.stanford.edu>
2047 * printcmd.c: Remove #include "disasm.h".
2049 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2051 * frame.h: Move the most relevant interface functions to the start
2054 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2056 * regcache.h (deprecated_registers): Rename registers.
2057 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2058 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2059 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2060 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2061 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2062 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2063 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2064 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2065 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2066 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2067 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2068 * v850ice.c: Update.
2070 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2072 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2075 2002-11-13 Andrew Cagney <cagney@redhat.com>
2077 * regcache.h (deprecated_read_register_bytes): Rename
2078 read_register_bytes.
2079 (deprecated_write_register_bytes): Rename write_register_bytes.
2080 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2081 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2082 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2083 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2084 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2085 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2086 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2087 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2088 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2089 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2090 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2091 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2092 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2093 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2095 2002-11-13 Jim Blandy <jimb@redhat.com>
2097 * findvar.c (read_var_value): Doc fix.
2099 2002-11-13 Andrew Cagney <cagney@redhat.com>
2101 * regcache.c (struct regcache): Replace passthough_p with
2103 (regcache_xmalloc): Initialize readonly_p.
2104 (build_regcache): Initialize readonly_p.
2105 (regcache_save): New function.
2106 (regcache_restore): New function.
2107 (regcache_cpy): Re-implement using regcache_save and
2109 (regcache_raw_read): Update.
2110 (regcache_cooked_read): When a read-only cache, checked for cached
2111 pseudo register values.
2112 (regcache_raw_write): Assert that the cache is not read-only.
2113 Remove code handling a non-passthrough cache.
2114 * regcache.h (regcache_save): Declare.
2115 (regcache_restore): Declare.
2117 2002-11-13 Andrew Cagney <cagney@redhat.com>
2119 * regcache.c (struct regcache_descr): Add fields
2120 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2121 (init_legacy_regcache_descr): Compute the size of a cooked
2122 register cache and then assign that to sizeof_raw_registers. Set
2123 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2124 (init_legacy_regcache_descr): Ditto.
2126 2002-11-13 Andrew Cagney <cagney@redhat.com>
2128 * regcache.c (register_buffer): Move to near start of file, update
2130 (regcache_raw_read): Use.
2131 (regcache_raw_write): Use.
2132 (struct regcache): Rename raw_registers to registers and
2133 raw_register_valid_p to register_valid_p.
2134 (regcache_xmalloc): Update.
2135 (regcache_xfree): Update.
2136 (register_buffer): Update.
2137 (regcache_cpy): Update.
2138 (regcache_cpy_no_passthrough): Update.
2139 (regcache_valid_p): Update.
2140 (deprecated_grub_regcache_for_registers): Update.
2141 (deprecated_grub_regcache_for_register_valid): Update.
2142 (set_register_cached): Update.
2143 (regcache_raw_write): Update.
2145 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2147 * p-exp.y (name_not_typename): Use copy_name to
2148 set current_type variable for fields of THIS.
2150 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2152 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2153 * monitor.c (init_base_monitor_ops): Likewise.
2154 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2155 * remote-array.c (init_array_ops): Likewise.
2156 * remote-e7000.c (init_e7000_ops): Likewise.
2157 * remote-es.c (init_es1800_ops): Likewise.
2158 (init_es1800_child_ops): Likewise.
2159 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2160 * remote-sim.c (init_gdbsim_ops): Likewise.
2161 * remote-st.c (init_st2000_ops): Likewise.
2162 * sol-thread.c (init_sol_core_ops): Likewise.
2163 (init_sol_thread_ops): Likewise.
2164 * v850ice.c (init_850ice_ops): Likewise.
2165 * win32-nat.c (init_child_ops): Likewise.
2166 * wince.c (init_child_ops): Likewise.
2168 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2170 * utils.c (gdb_realpath): Make rp a constant pointer.
2172 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2174 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2175 a constant buffer; cannonicalize_file_name(); realpath() with a
2176 pathconf() defined buffer, xstrdup().
2178 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2180 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2181 to hang2.C; hang3.c to hang3.C.
2183 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2185 * findvar.c (read_var_value): Reenable TLS code.
2187 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2188 Jim Blandy <jimb@redhat.com>
2190 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2191 * target.c (update_current_target): Add
2192 to_get_thread_local_address.
2193 * target.h (to_get_thread_local_address): Export.
2194 (target_get_thread_local_address): Define.
2195 (target_get_thread_local_address_p): Define.
2196 * thread-db.c: Include solib-svr4.h.
2197 (td_thr_tls_get_addr_p): Define.
2198 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2199 (thread_db_get_thread_local_address): New function.
2200 (init_thread_db_ops): Initialize to_get_thread_local_address.
2201 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2202 * configure: Regenerate.
2203 * config.in: Regenerate.
2205 2002-11-11 David Carlton <carlton@math.stanford.edu>
2207 * linespec.c (set_flags): New function.
2208 (decode_line_1): Move code into set_flags.
2210 2002-11-11 David Carlton <carlton@math.stanford.edu>
2212 * linespec.c (decode_line_1): Move chunks of code to separate
2214 (initialize_defaults): New function.
2215 (decode_indirect): New function.
2217 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2219 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2220 instead of void_code_ptr.
2221 (sigtramp_saved_pc): Ditto.
2223 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2226 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2228 * gdbtypes.h (struct main_type): Move artificial flag out of
2229 loc. New member of ``struct field'' named static_kind. Reduce
2230 overloaded meaning of bitsize.
2231 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2232 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2233 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2235 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2237 (template_to_fixed_record_type, template_to_static_fixed_type)
2238 (to_record_with_fixed_variant_part): Likewise.
2239 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2240 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2241 * dwarfread.c (struct_type, enum_type): Likewise.
2242 * hpread.c (hpread_read_enum_type)
2243 (hpread_read_function_type, hpread_read_doc_function_type)
2244 (hpread_read_struct_type): Likewise.
2245 * mdebugread.c (parse_symbol): Likewise.
2247 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2249 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2250 * stack.c (print_frame_info_base): Update.
2251 (print_frame_info_base, frame_info): Update.
2252 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2253 (sparc_frame_saved_pc): Update.
2254 * ada-lang.c (find_printable_frame): Update.
2255 * breakpoint.c (deprecated_frame_in_dummy): Update.
2257 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2259 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2261 (regmap): Extend to cover all registers.
2262 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2263 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2265 (fetch_register, sore_register): Simplify.
2266 (old_fetch_inferior_registers, old_store_inferior_registers):
2268 (cannot_fetch_register, cannot_store_register): Change
2269 implementation to use regmap array to decide which registers
2270 cannot be fetched/stored. This removes $orig_eax from the
2271 registers that cannot be fetched/stored.
2272 (fetch_inferior_registers): Call fetch_register directly instead
2273 of calling old_fetch_inferior_registers.
2274 (store_inferior_registers): Call store_register directly instead
2275 of calling old_store_inferior_registers.
2276 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2277 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2278 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2280 2002-11-09 Klee Dienes <kdienes@apple.com>
2282 * i387-tdep.c (i387_supply_register): When called with NULL as a
2283 buffer, mark the register as not provided (to mirror the behavior
2284 of supply_register).
2285 (i387_supply_fxsave): Ditto.
2286 (i387_supply_fsave): Ditto (inherits the behavior from
2287 i387_supply_register).
2289 2002-11-09 Klee Dienes <kdienes@apple.com>
2291 * blockframe.c (sigtramp_saved_pc): Use
2292 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2293 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2294 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2296 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2298 * frame.c (get_prev_frame): Test prev_p to identify a previously
2299 unwound frame. Initialize prev_p.
2300 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2303 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2305 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2306 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2307 more comments. Zap dead code.
2309 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2311 * infcmd.c (print_vector_info, print_float_info): Move code that
2312 checks whether the target has any registers and whether there is a
2313 selected frame up, such that it is also used if a target provides
2314 multi-arch definitions of these functions.
2316 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2318 * Makefile.in (DESTDIR): Define.
2319 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2322 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2323 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2325 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2327 * i386-linux-tdep.c: Include "reggroups.h".
2328 (i386_linux_register_reggroup_p): New function.
2329 (i386_linux_init_abi): Set register_reggroup_p to
2330 i386_linux_register_reggroup_p.
2331 * i386-tdep.h (i386_register_reggroup_p): Declare.
2332 * i386-tdep.c: Include "reggroups.h".
2333 (i386_init_reggroups): New function.
2334 (i386_add_reggroups): New function.
2335 (i386_register_reggroup_p): New function.
2336 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2337 (_initialize_i386_tdep): Call i386_init_reggroups.
2338 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2341 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2343 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2344 request that's available in *BSD.
2346 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2348 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2351 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2353 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2354 * dummy-frame.c (find_dummy_frame): Rename
2355 generic_find_dummy_frame, make static. Return the dummy frame
2356 instead of the regcache.
2357 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2358 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2359 (dummy_frame_register_unwind): Rename
2360 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2361 * dummy-frame.h (dummy_frame_register_unwind): Rename
2362 generic_call_dummy_register_unwind.
2364 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2366 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2367 except the inclusion of "i386/tm-i386.h", to...
2368 * config/i386/nm-i386v42mp.h: ...here.
2369 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2371 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2373 * Makefile.in (frame.o): Update dependencies.
2374 * blockframe.c (current_frame, frame_obstack_alloc)
2375 (frame_saved_regs_zalloc, get_current_frame)
2376 (set_current_frame, create_new_frame)
2377 (set_unwind_by_pc, get_next_frame)
2378 (flush_cached_frames, reinit_frame_cache)
2379 (frame_saved_regs_register_unwind)
2380 (deprecated_generic_get_saved_register)
2381 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2382 (_initialize_blockframe): Move frame code from here...
2383 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2384 "annotate.h" and "dummy-frame.h".
2385 (_initialize_frame): New function.
2387 2002-11-08 Jim Blandy <jimb@redhat.com>
2389 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2390 when we finish a function a context.
2391 * buildsym.h (outermost_context_p): New macro.
2392 (Bug analyzed by David Edelsohn.)
2394 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2396 * blockframe.c: Include "dummy-frame.h".
2397 (struct dummy_frame, dummy_frame_stack)
2398 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2399 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2400 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2401 (generic_save_call_dummy_addr, generic_pop_current_frame)
2402 (generic_pop_dummy_frame, generic_fix_call_dummy)
2403 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2404 dummy frame code from here...
2405 * dummy-frame.c: ...to here. New file.
2406 * dummy-frame.h: New file.
2407 (generic_call_dummy_register_unwind): Declare.
2408 (generic_find_dummy_frame): Declare.
2409 * Makefile.in (SFILES): Add dummy-frame.c.
2410 (dummy-frame.o): Specify dependencies.
2411 (dummy_frame_h): Define.
2412 (COMMON_OBS): Add dummy-frame.o.
2413 (blockframe.o): Update dependencies.
2415 2002-11-08 Jim Blandy <jimb@redhat.com>
2417 * dwarf2read.c (read_func_scope): Restore local_symbols and
2418 param_symbols after we finish the function context. (Based on a
2419 patch from David Edelsohn.)
2421 2002-11-08 David Carlton <carlton@math.stanford.edu>
2423 * linespec.c (symbol_found): New function.
2424 (minsym_found): New function.
2425 (decode_line_1): Separate out some code into separate functions.
2427 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2429 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2430 the benefit of the interix target.
2431 * i386-tdep.h (i386_frameless_signal_p): Declare.
2433 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2435 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2436 declaration that snuck in from change below.
2438 2002-11-06 Andrew Cagney <cagney@redhat.com>
2440 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2442 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2443 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2444 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2445 (i386_mxcsr_regnum_p): new function. Use instead of
2447 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2448 (i386_sse_regnum_p): Declare.
2449 (i386_mxcsr_regnum_p): Declare.
2450 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2451 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2452 (IS_FP_REGNUM): Update definition.
2453 (IS_FPU_CTRL_REGNUM): Update definition..
2454 (IS_SSE_REGNUM): Update definition..
2455 * i386v-nat.c (register_u_addr): Update.
2456 * go32-nat.c (fetch_register): Update.
2457 (store_register): Update.
2459 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2461 Preparation work to convert the hppa targets to multiarch partial.
2463 * hppa-tdep.c: Add new functions replacing macro bodies from
2464 config/pa/tm-hppa.h. These function will be used to initialize
2465 the gdbarch structure. Import some comments from tm-hppa.h,
2466 and place them where appropriate, to avoid loosing them when
2467 we cleanup this file.
2468 (hppa_reg_struct_has_addr): New function.
2469 (hppa_inner_than): New function.
2470 (hppa_stack_align): New function.
2471 (hppa_pc_requires_run_before_use): New function.
2472 (hppa_instruction_nullified): New function.
2473 (hppa_register_byte): New function.
2474 (hppa_register_virtual_type): New function.
2475 (hppa_store_struct_return): New function.
2476 (hppa_cannot_store_register): New function.
2477 (hppa_frame_args_address): New function.
2478 (hppa_frame_locals_address): New function.
2479 (hppa_smash_text_address): New function.
2480 (hppa_coerce_float_to_double): New function. Requires the inclusion
2483 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2485 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2486 gdbarch-eligible macro to a call to the new associated function
2487 created in hppa-tdep.c.
2488 (INNER_THAN): Likewise.
2489 (STACK_ALIGN): Likewise.
2490 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2491 (INSTRUCTION_NULLIFIED): Likewise.
2492 (REGISTER_BYTE): Likewise.
2493 (REGISTER_VIRTUAL_TYPE): Likewise.
2494 (STORE_STRUCT_RETURN): Likewise.
2495 (CANNOT_STORE_REGISTER): Likewise.
2496 (FRAME_ARGS_ADDRESS): Likewise.
2497 (FRAME_LOCALS_ADDRESS): Likewise.
2498 (SMASH_TEXT_ADDRESS): Likewise.
2499 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2500 (ABOUT_TO_RETURN): Delete, as no longer used.
2502 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2504 * printcmd.c (disassemble_command): Remove obsolete function.
2505 (_initialize_printcmd): Do not create disassemble command here.
2506 * cli/cli-cmds.c (disassemble_command): New function. Implements
2507 disassemble command.
2508 (init_cli_cmds): Create disassemble command here instead.
2510 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2512 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2514 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2516 * regcache.h (regcache_cooked_read_using_offset_hack)
2517 (regcache_cooked_write_using_offset_hack): Delete declarations.
2518 (register_changed): Delete declaration.
2519 * regcache.c (regcache_cooked_read_using_offset_hack)
2520 (regcache_cooked_write_using_offset_hack): Delete functions.
2521 (cooked_xfer_using_offset_hack): Delete function.
2522 (register_changed): Delete function.
2524 2002-11-07 Jim Blandy <jimb@redhat.com>
2526 * macroscope.c: #include "complaints.h".
2527 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2528 but not in the macro table.
2529 * Makefile.in (macroscope.o): Record dependency.
2531 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2533 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2535 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2537 * regcache.c (deprecated_registers_fetched): Update.
2538 * regcache.h (deprecated_registers_fetched): Rename
2540 * remote-vxsparc.c (vx_read_register): Update.
2541 * remote-vxmips.c (vx_read_register): Update.
2542 * remote-vx68.c (vx_read_register): Update.
2543 * irix5-nat.c (fetch_core_registers): Update.
2544 * mipsm3-nat.c (fetch_inferior_registers): Update.
2545 * sun3-nat.c (fetch_inferior_registers): Update.
2546 * symm-nat.c (fetch_inferior_registers): Update.
2547 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2548 (fetch_core_registers): Update.
2549 (fetch_kcore_registers): Update.
2550 * mips-nat.c (fetch_inferior_registers): Update.
2551 * corelow.c (get_core_registers): Update.
2552 * a68v-nat.c (fetch_inferior_registers): Update.
2554 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2556 Put in place the framework necessary for multiarching the hppa targets.
2557 * hppa-tdep.c (hppa_gdbarch_init): New function.
2558 (hppa_dump_tdep): New function.
2559 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2560 tdep structure dumper.
2561 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2562 until the multi-arching conversion has partially been completed.
2564 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2566 * valops.c (value_assign): Merge lval_register case into
2567 lval_reg_frame_relative. Use frame_register and
2568 regcache_cooked_write instead of get_saved_register and
2569 write_register_bytes. After flushing the register cache, try to
2570 re-select the selected frame.
2572 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2574 * regcache.h (deprecated_register_valid): Rename register_valid.
2575 * regcache.c: Update.
2576 * ia64-aix-nat.c: Update.
2577 * i386gnu-nat.c: Update.
2578 * alpha-nat.c: Update.
2579 * sparc-nat.c: Update.
2580 * lynx-nat.c: Update.
2581 * remote-mips.c: Update.
2583 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2585 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2586 to end of file, to be more consistent with the pratice followed
2589 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2591 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2592 (print_float_info): Print registers in float_reggroup.
2593 (print_vector_info): Print registers in vector_reggroup.
2594 (default_print_registers_info): When all, print registers in
2595 all_reggroup. Otherwize, print registers in general_reggroup.
2596 (registers_info): Rewrite. Add support for register groups.
2599 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2601 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2603 (symtab_symbol_info): Remove eons old ifdeffed out code.
2604 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2607 2002-11-06 Theodore A. Roth <troth@openavr.org>
2609 * c-exp.y: Add missing semi-colons.
2610 * f-exp.y: Add missing semi-colons.
2611 * m2-exp.y: Add missing semi-colons.
2612 * p-exp.y: Add missing semi-colons.
2613 Add empty action to start rule to avoid a type clash error when
2614 building with bison >= 1.50.
2616 2002-11-06 Jim Blandy <jimb@redhat.com>
2618 * macrotab.h (struct macro_source_file): Doc fix.
2620 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2622 * varobj.c (child_exists, cplus_number_of_children): Change
2623 STREQ macro references to strcmp.
2624 (cplus_name_of_child): Change code to handle the fact that
2625 fields are not necessarily contiguous with regards to their
2626 access control. This is a fix for PR gdb/792.
2628 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2630 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2631 * gdbarch.h, gdbarch.c: Regnerate.
2632 * frame.h (frame_register): Declare.
2633 * frame.c (frame_register): New function.
2634 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2635 GET_SAVED_REGISTER, otherwize call
2636 generic_unwind_get_saved_register.
2637 (frame_register_read): Use frame_register instead of
2640 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2642 From Jim Ingham <jingham@apple.com>:
2643 * event-top.c (gdb_disable_readline): New function.
2644 (_initialize_event_loop): Move comment.
2646 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2648 * event-loop.c (start_event_loop): Add comment.
2651 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2653 * infcmd.c (default_print_registers_info): Do not call
2654 PRINT_REGISTER_HOOK.
2656 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2658 * sparc-tdep.c (sparc_print_register_hook): Make static.
2659 (sparc_print_registers_info): New function.
2660 (sparc_do_registers_info): New function.
2661 (sparclet_print_registers_info): New function.
2662 (sparclet_do_registers_info): New function.
2663 (do_sparc_print_registers_info): New function.
2664 (sparc_print_registers): New static function, clone of infcmd.c's
2665 default_print_registers_info.
2666 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2667 (sparclet_do_registers_info): Declare.
2668 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2669 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2671 (sparc_do_registers_info): Declare.
2672 (PRINT_REGISTER_HOOK): Delete macro.
2673 (sparc_print_register_hook): Delete declaration.
2675 2002-11-05 David Carlton <carlton@math.stanford.edu>
2677 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2679 (lookup_symbol_aux_local): New function.
2680 (lookup_symbol_aux_symtabs): New function.
2681 (lookup_symbol_aux_psymtabs): New function.
2683 2002-11-05 David Carlton <carlton@math.stanford.edu>
2685 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2686 previous values of 'objfile' and 'block'.
2688 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2690 * values.c (value_change_enclosing_type): Set
2691 enclosing_type field correctly also for the case where
2692 more memory needs to be allocated.
2694 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2696 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2699 * i387-tdep.c (i387_print_float_info): Replace calls to
2700 register_read and deprecated_read_register_gen with calls to
2701 frame_register_read, and make the necessary adjustments to the
2704 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2706 * gdbarch.sh (register_reggroup_p): Allow default value.
2707 * gdbarch.h, gdbarch.c: Regenerate.
2709 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2711 * regcache.h: Add coment indicating replacements for deprecated
2714 2002-11-02 Andrew Cagney <cagney@redhat.com>
2716 * reggroups.h, reggroups.c: New files.
2717 * regcache.c: Include "reggroups.h".
2718 (enum regcache_dump_what): Add `regcache_dump_groups'.
2719 (regcache_dump): Contract size of the "Type" column. When
2720 specified, dump the register's groups.
2721 (maintenance_print_register_groups): New function.
2722 (_initialize_regcache): Add command `maint print register-groups'.
2723 * Makefile.in (COMMON_OBS): Add reggroups.o
2724 (SFILES): Add reggroups.c.
2725 (reggroups_h): Define.
2726 (regcache.o, gdbarch.o): Update dependencies.
2727 (reggroups.o): Specify dependencies.
2728 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2729 Add opaque declaration for `struct reggroup' in generated .h file.
2730 Include "reggroups.h" in generated .c file.
2731 gdbarch.h, gdbarch.c: Re-generate.
2733 2002-11-02 Andrew Cagney <cagney@redhat.com>
2735 * regcache.h (deprecated_read_register_gen): Rename
2737 (deprecated_write_register_gen): Rename write_register_gen.
2738 * i387-tdep.c: Update.
2739 * x86-64-linux-nat.c: Update
2741 * thread-db.c: Update.
2742 * win32-nat.c: Update.
2743 * mips-tdep.c: Update.
2744 * d10v-tdep.c: Update.
2745 * cris-tdep.c: Update.
2746 * remote-sim.c: Update.
2747 * remote-rdi.c: Update.
2748 * remote-rdp.c: Update.
2751 * blockframe.c: Update.
2752 * x86-64-tdep.c: Update.
2753 * xstormy16-tdep.c: Update.
2754 * sh-tdep.c: Update.
2755 * s390-tdep.c: Update.
2756 * rs6000-tdep.c: Update.
2757 * sparc-tdep.c: Update.
2758 * i386-tdep.c: Update.
2759 * dwarf2cfi.c: Update.
2760 * regcache.c: Update.
2762 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2764 New interix-specific files:
2765 * config/i386/nm-interix.h: New file.
2766 * config/i386/interix.mh: New file.
2767 * config/i386/interix.mt: New file.
2768 * i386-interix-nat.c: New file.
2769 * i386-interix-tdep.c: New file.
2771 2002-11-01 Andrew Cagney <cagney@redhat.com>
2773 * frame.h (deprecated_generic_get_saved_register): Rename
2774 generic_get_saved_register.
2775 * blockframe.c (deprecated_generic_get_saved_register): Update.
2776 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2777 (xstormy16_frame_saved_register): Update.
2778 * sh-tdep.c (sh_gdbarch_init): Update.
2779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2780 * ia64-tdep.c (ia64_get_saved_register): Update.
2781 * cris-tdep.c (cris_gdbarch_init): Update.
2782 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2783 * arm-tdep.c (arm_gdbarch_init): Update.
2785 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2787 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2789 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2791 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2792 trampolines in sigaction.
2794 2002-10-31 Andrew Cagney <cagney@redhat.com>
2796 * h8300-tdep.c: Include "gdb_assert.h".
2797 (h8300_print_register): Add gdbarch, file and frame parameters.
2798 Use frame_read_unsigned_register to read the register's value.
2799 Use fprintf_filtered to display output.
2800 (h8300_print_registers_info): Replace h8300_do_registers_info.
2801 (h8300_gdbarch_init): Set print_registers_info.
2803 2002-10-31 Andrew Cagney <cagney@redhat.com>
2805 * frame.c (frame_read_unsigned_register): New function.
2806 (frame_read_signed_register): New function.
2807 * frame.h (frame_read_unsigned_register): Declare.
2808 (frame_read_signed_register): Declare.
2810 2002-10-31 Andrew Cagney <cagney@redhat.com>
2812 * h8500-tdep.c (h8500_print_registers_info): New static function,
2813 clone of infcmd.c's default_print_registers_info.
2814 (h8500_do_registers_info): New funtion.
2815 (h8500_print_register_hook): Rename print_register_hook, make
2818 * config/h8500/tm-h8500.h: Update copyright.
2819 (DEPRECATED_DO_REGISTERS_INFO): Define.
2820 (h8500_do_registers_info: Declare.
2821 (PRINT_REGISTER_HOOK): Delete macro.
2822 (print_register_hook): Delete function.
2824 2002-10-31 Andrew Cagney <cagney@redhat.com>
2826 * z8k-tdep.c (z8k_print_register_hook): Make static.
2827 (z8k_print_registers_info): New static function, clone of
2828 infcmd.c's default_print_registers_info.
2829 (z8k_do_registers_info): New function. Wrap
2830 z8k_print_registers_info.
2831 * config/z8k/tm-z8k.h: Update copyright.
2832 (PRINT_REGISTER_HOOK): Delete macro.
2833 (z8k_print_register_hook): Delete declaration.
2834 (DEPRECATED_DO_REGISTERS_INFO): Define.
2835 (z8k_do_registers_info): Declare.
2837 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2839 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2840 as this is already provided by value.h, and was actually causing
2841 a compilation error because of a conflict in parameter type
2842 declaration due to a missing const keyword.
2843 (low_text_segment_addres): Fix a compilation warning.
2845 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2847 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2848 registers without a name.
2849 (mips_linux_cannot_store_register): Don't store registers without
2852 2002-10-28 David Carlton <carlton@math.stanford.edu>
2854 * symtab.c (find_addr_symbol): Delete. (It was already commented
2856 * symtab.h: Delete prototype for find_addr_symbol.
2858 2002-10-26 Andrew Cagney <cagney@redhat.com>
2860 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2862 gdbarch.h, gdbarch.c: Re-generate.
2863 * infcmd.c (default_print_registers_info): Update reference.
2864 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2865 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2866 * sh-tdep.c (sh_gdbarch_init): Ditto.
2867 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2870 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2872 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2873 cfi_init_extra_frame_info.
2874 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2875 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2877 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2878 target where necessary. Add more comments and remove the ones
2879 that don't provide any useful information.
2881 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2882 deprecated_read_register_dummy with
2883 frame_unwind_unsigned_register.
2885 * i386-tdep.c (i386_extract_struct_value_address): Use
2886 regcache_raw_read_unsigned instead of
2887 regcache_cooked_read_unsigned since we know that the register
2888 we're reading isn't a pseudo register. Rename variable 'val' into
2889 the more descriptive 'addr'.
2891 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2892 (x86_64_push_return_address): Add comment.
2893 (x86_64_pop_frame): Make static.
2894 (examine_argument): Clarify comment.
2895 (x86_64_skip_prologue): Make prolog_expact variable static.
2897 * dwarf2cfi.c: Fix some formatting problems.
2898 (context_cpy, read_encoded_pointer): Clarify comments.
2900 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2901 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2902 i386 target back into x86_64_gdbarch_init. Add some comments and
2903 remove meaningless ones.
2905 2002-10-25 Andrew Cagney <cagney@redhat.com>
2907 * complaints.h (struct deprecated_complaint): Rename `struct
2909 * complaints.c (complain): Update.
2910 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2911 incorrect comment indicating that "symfile.h" was being included
2912 for the `struct complaint' definition.
2913 * remote-vx.c: Update.
2914 * objc-lang.c: Update.
2915 * xcoffread.c: Update.
2917 * mdebugread.c: Update.
2918 * stabsread.c: Update.
2919 * dwarf2read.c: Update.
2920 * dwarfread.c: Update.
2921 * elfread.c: Update.
2922 * coffread.c: Update.
2923 * stabsread.h: Update.
2924 * dbxread.c: Update.
2925 * buildsym.c: Update.
2926 * gdbtypes.c: Update.
2927 * macrotab.c: Update.
2929 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2931 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2932 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2933 (x86_64_init_abi): ...new function.
2935 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2936 * i386v-nat.c: Include "i386-tdep.h".
2938 2002-10-25 Andrew Cagney <cagney@redhat.com>
2940 * gdbtypes.c (address_space_name_to_int): Update.
2941 (address_space_int_to_name): Update.
2942 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2943 multi-arch predicate.
2944 (address_class_name_to_type_flags): Ditto.
2945 * gdbarch.h, gdbarch.c: Re-generate.
2947 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2949 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2951 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2953 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2955 * symtab.h (INIT_SAL): Delete macro.
2957 * symtab.c (init_sal): New function.
2959 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2960 to init_sal function call.
2961 (find_sal_from_funcs_and_line): Ditto.
2962 (all_sals_for_line): Ditto.
2963 * breakpoint.c (create_internal_breakpoint): Ditto.
2964 (create_fork_vfork_event_catchpoint): Ditto.
2965 (create_exec_event_catchpoint): Ditto.
2966 (parse_breakpoint_sals): Ditto.
2967 (watch_command_1): Ditto.
2968 (handle_gnu_4_16_catch_command): Ditto.
2969 (clear_command): Ditto.
2970 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2971 * infcmd.c (run_stack_dummy): Ditto.
2972 * infrun.c (process_event_stop_test): Ditto.
2973 (check_sigtramp2): Ditto.
2974 (step_over_function): Ditto.
2975 * linespec.c (decode_line_2): Ditto.
2976 (decode_line_1): Ditto.
2977 * source.c (line_info): Ditto.
2978 * symtab.c (find_pc_sect_line): Ditto.
2980 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2982 * dwarf2cfi.c (struct context)
2983 (struct context_reg): Moved to dwarf2cfi.h
2984 (context_alloc, frame_state_alloc, context_cpy):
2985 Made extern instead of static, removed prototypes.
2986 * dwarf2cfi.h (struct context)
2987 (struct context_reg): New, moved from dwarf2cfi.c
2988 (context_alloc, frame_state_alloc, context_cpy):
2990 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2991 Changed from static to extern.
2992 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2993 (LINUX_SIGCONTEXT_FP_OFFSET)
2994 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2995 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2996 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2997 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2998 set_gdbarch_*() calls now use x86-64 specific functions
2999 instead of DWARF2 CFI ones.
3000 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3001 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3002 (x86_64_init_extra_frame_info): New prototypes.
3004 2002-10-23 David Carlton <carlton@math.stanford.edu>
3006 * linespec.c: #include "parser-defs.h".
3007 Delete prototype for find_template_name_end.
3008 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3010 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3012 * NEWS: add recent mi fixes.
3013 * varobj.c (struct varobj): Add new "updated" flag.
3014 (new_variable): Default "updated" flag to 0.
3015 (varobj_set_value): Set "updated" flag to 1 if value
3017 (varobj_update): Check varobj "updated" flag before
3018 comparing old and refreshed values. Fix for
3021 2002-10-23 David Carlton <carlton@math.stanford.edu>
3023 * parse.c (parse_exp_1): Use BLOCK_START.
3024 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3026 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3028 2002-10-23 David Carlton <carlton@math.stanford.edu>
3030 * symtab.c: Delete cplusplus_hint.
3031 Delete prototype for find_template_name_end.
3033 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3035 * symtab.h: Update comment.
3037 2002-10-23 Michael Snyder <msnyder@redhat.com>
3039 * printcmd.c (address_info): Restore quotes in output.
3040 * valops.c (value_of_local): Restore quotes in error message.
3042 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3044 * symtab.c (symbol_demangled_name): New function.
3045 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3046 turning most of it into a function.
3047 (symbol_demangled_name): Export.
3049 2002-10-23 Michael Snyder <msnyder@redhat.com>
3051 * valops.c (value_of_local): Restore quotes in error message.
3053 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3055 * symtab.c (symbol_init_language_specific): New function.
3056 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3057 turning most of it into a function.
3058 (symbol_init_language_specific): Export.
3060 2002-10-23 David Carlton <carlton@math.stanford.edu>
3062 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3063 (dwarf_attr_name): Ditto.
3064 (dwarf_type_encoding_name): Ditto.
3065 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3066 (process_die): Handle DW_TAG_namespace,
3067 DW_TAG_imported_declaration, DW_TAG_imported_module.
3068 (read_namespace): New function.
3070 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3072 * configure.in: Define NEW_PROC_API on Interix too.
3073 * configure: Regenerate.
3075 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3077 * configure: Regenerate using the proper version of autoconf.
3079 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3081 * findvar.c (read_var_value): Temporarily disable TLS code, until
3082 complete TLS support is added.
3084 2002-10-21 Jim Blandy <jimb@redhat.com>
3085 Elena Zannoni <ezannoni@redhat.com>
3087 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3088 for thread local storage locations.
3089 (struct symbol): Add objfile field.
3090 (SYMBOL_OBJFILE): Define.
3091 * dwarf2read.c (is_thread_local): New static variable.
3092 (new_symbol): If variable is in thread local fill in address class
3093 and objfile appropriately.
3094 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3096 * printcmd.c (address_info): Print the information for thread
3097 local storage variable.
3098 * findvar.c (read_var_value): In case of thread local variable,
3099 defer to the target vector code to compute address.
3101 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3103 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3104 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3106 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3108 * symtab.h (address_class): Rename
3109 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3110 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3111 * printcmd.c (address_info): Ditto.
3112 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3114 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3116 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3117 DBREG_DRX macro to acces debug registers.
3119 * Makefile.in (i386obsd-tdep.o): New target.
3121 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3122 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3124 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3125 * config/i386/obsd.mt: New file.
3126 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3127 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3128 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3129 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3130 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3131 * i386obsd-tdep.c: New file.
3133 2002-10-19 Adam Fedor <fedor@gnu.org>
3135 * objc-exp.y (name_not_typename): Fix invalid comment.
3137 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3139 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3140 to allocate partial syms and macro byte caches.
3142 2002-10-18 David Carlton <carlton@math.stanford.edu>
3144 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3146 2002-10-18 Adam Fedor <fedor@gnu.org>
3148 * stabsread.c (find_name_end): New function.
3149 (define_symbol): Use it.
3151 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3153 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3154 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3155 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3156 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3158 2002-10-17 David Carlton <carlton@math.stanford.edu>
3160 * symfile.h: Add opaque declaration for struct obstack.
3161 Declare obsavestring to take a const char *.
3162 * symfile.c (obsavestring): Make first argument a const char *.
3164 2002-10-16 Adam Fedor <fedor@gnu.org>
3166 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3167 names when matching breakpoints in current file.
3169 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3171 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3172 (read_tag_pointer_type): Add address class support.
3173 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3174 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3176 * gdbarch.h, gdbarch.c: Regenerate.
3177 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3178 (make_type_with_address_space, recursive_type_dump): Add address
3180 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3181 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3182 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3184 2002-10-16 Klee Dienes <kdienes@apple.com>
3186 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3187 to get the last character of a char[] buffer, not
3188 name[sizeof(vptr_name)-1].
3190 2002-10-14 Adam Fedor <fedor@gnu.org>
3192 * symtab.h: New objc_specific struct.
3193 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3194 (SYMBOL_DEMANGLED_NAME): Likewise.
3196 2002-10-14 Adam Fedor <fedor@gnu.org>
3198 * symfile.c (init_filename_language_table): Add ObjC file extension.
3200 2002-10-14 Adam Fedor <fedor@gnu.org>
3202 * utils.c (puts_filtered_tabular): New function.
3203 (fprintf_symbol_filtered): Get ObjC demangled name.
3204 * defs.h (puts_filtered_tabular): Declared.
3206 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3208 * c-lang.h (c_type_print_varspec_prefix): Delete.
3209 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3210 ``need_post_space'' parameter. Adjust all callers.
3212 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3214 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3215 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3216 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3217 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3219 2002-10-13 Adam Fedor <fedor@gnu.org>
3221 * source.c (print_source_lines): Update comments.
3223 2002-10-13 Adam Fedor <fedor@gnu.org>
3225 * valops.c (value_of_local): New function.
3226 (value_of_this): Use it.
3227 * value.h (value_of_local): Declared.
3229 2002-10-13 Adam Fedor <fedor@gnu.org>
3231 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3232 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3234 2002-10-12 Adam Fedor <fedor@gnu.org>
3236 * language.c (binop_result_type): Add language_objc to case.
3237 (integral_type): Likewise.
3238 (character_type): Likewise.
3239 (string_type): Likewise.
3240 (boolean_type): Likewise.
3241 (structured_type): Likewise.
3242 (binop_type_check): Likewise.
3244 2002-10-11 Adam Fedor <fedor@gnu.org>
3246 * printcmd.c (address_info): Print 'self' for ObjC.
3248 2002-10-11 Adam Fedor <fedor@gnu.org>
3250 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3253 2002-10-11 Adam Fedor <fedor@gnu.org>
3255 * language.h (CAST_IS_CONVERSION): Add language_objc.
3257 2002-10-11 Adam Fedor <fedor@gnu.org>
3259 * defs.h (enum language): Add language_objc.
3261 2002-10-11 Klee Dienes <kdienes@apple.com>
3263 * corefile.c (read_memory_typed_address): New function.
3264 * gdbcore.h (read_memory_typed_address): Add prototype.
3265 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3266 to read a value destined for a CORE_ADDR, not read_memory_integer.
3267 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3268 (f77_get_dynamic_lowerbound): Ditto.
3270 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3272 * utils.c (string_to_core_addr): After turning string into
3273 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3274 which will do necessary sign-extension, etc.
3276 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3278 * c-exp.y (THIS): Delete token and grammar rule.
3279 (yylex): Don't return THIS.
3280 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3281 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3282 * demangle.c (cplus_markers): Update comment. Put '$'
3283 first. Remove CPLUS_MARKER.
3284 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3285 * jv-exp.y (THIS): Delete token and grammar rule.
3286 (yylex): Don't return THIS.
3287 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3288 * objc-exp.y (THIS): Delete token and grammar rule.
3289 (yylex): Don't return THIS.
3290 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3291 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3292 (read_member_functions): Likewise for opname.
3293 (read_tilde_fields): Use is_cplus_marker.
3295 * defs.h (CPLUS_MARKER): Don't define.
3296 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3297 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3298 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3299 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3300 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3302 * config/i386/tm-i386v4.h: Delete file.
3303 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3304 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3305 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3306 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3307 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3308 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3309 * config/i386/i386v4.mt (TM_FILE): Likewise.
3310 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3312 2002-10-10 Marko Mlinar <markom@opencores.org>
3314 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3315 accidentially not commited 2002-10-09
3316 * gdbarch.h, gdbarch.c: Re-generate.
3318 2002-10-09 Marko Mlinar <markom@opencores.org>
3320 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3321 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3322 * gdbarch.h, gdbarch.c: Re-generate.
3324 2002-10-08 Petr Sorfa <petrs@caldera.com>
3326 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3328 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3329 so we can work on more than one compilation unit at a time. This
3330 helps prepare GDB to handle inter-CU die references.
3331 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3332 the code to be defined before struct comp_unit_head.
3333 (comp_unit_head): Added new members - offset, cu_head,
3334 begin_die, next and dwarf2_abbrevs.
3335 (dwarf2_abbrevs): Removed single static var; now member of
3336 struct comp_unit_head.
3337 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3339 (psymtab_to_symtab_1): Changed to work with the new
3340 struct comp_unit_head.
3341 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3342 constructs the dwarf2_abbrevs[] inside the cu_header.
3343 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3344 dwarf2_abbrev table to clean up.
3345 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3346 handling of dwarf2_abbrevs inside the cu_header.
3347 (read_partial_die): Now supports the call to the new
3348 dwarf2_lookup_abbrev.
3349 (read_full_die): Now supports the call to the new
3350 dwarf2_lookup_abbrev.
3352 2002-10-06 Christopher Faylor <cgf@redhat.com>
3354 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3355 insure that shell variables, such as "transformed_name" are propagated
3356 to later shell statements in rule.
3358 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3360 * config/i386/nm-i386sco.h: Add protection against
3361 multiple-inclusion. Include "i386/nm-i386v.h".
3362 (REGISTER_U_ADDR): Remove define.
3363 (i386_register_u_addr): Remove prototype.
3365 2002-10-04 Michael Snyder <msnyder@redhat.com>
3367 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3368 before treating it as a single-step event.
3370 2002-10-03 Adam Fedor <fedor@gnu.org>
3372 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3373 (objc_demangle): Remove assignment in if statements, Replace
3375 (add_msglist): Likewise.
3376 (end_msglist): Likewise.
3377 (complare_selectors): Likewise.
3378 (selectors_info): Likewise.
3379 (compare_classes): Likewise.
3380 (classes_info): Likewise.
3381 (print_object_command): Likewise.
3382 (find_objc_msgcall_submethod): Replace PTR with void *.
3383 * objc-lang.h: Remove check for __STDC__.
3385 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3387 * ui-out.h (ui_out_field_fmt_int): New prototype.
3388 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3389 of field width and alignment.
3390 * stack.c (print_frame_info_base): When printing frame level, use
3391 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3394 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3396 * MAINTAINERS: Add self to Write After Approval list.
3398 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3400 * infcmd.c (interrupt_target_command_wrapper): Delete.
3401 (interrupt_target_command): Make non static.
3402 (nofp_registers_info): Make static.
3403 * stack.c (return_command_wrapper): Delete.
3404 (return_command): Make non static.
3406 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3408 * event-top.c (gdb_setup_readline): New function. Code moved from
3409 _initialize_event_loop().
3410 (_initialize_event_loop): Call gdb_setup_readline().
3412 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3414 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3415 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3416 * gdbarch.h, gdbarch.c: Re-generate.
3418 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3421 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3423 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3424 of fill_in_vptr_fieldno.
3426 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3428 * inferior.h (registers_info, stepi_command, nexti_command,
3429 continue_command, interrupt_target_command): Export from infcmd.c.
3430 * frame.h (args_info, selected_frame_level_changed_hook,
3431 return_command): Export from stack.c.
3432 * v850ice.c (stepi_command, nexti_command, continue_command): use
3433 prototypes from inferior.h.
3434 * tracepoint.c (registers_info, args_info, locals_info): Use
3435 prototypes from frame.h and inferior.h.
3436 * Makefile.in (mi-main.o): Add dependency on frame.h.
3438 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3440 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3441 value in register 3 adjusted by ppc_gp0_regnum.
3443 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3445 2002-10-02 Marko Mlinar <markom@opencores.org>
3447 * MAINTAINERS: Add myself to the Write After Approval list.
3449 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3451 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3452 of the section for the N64 ABI, fixed.
3454 * config/mips/tm-irix6.h: Include solib.h.
3456 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3458 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3461 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3463 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3464 and that "mi0" syntax has been removed.
3466 2002-09-30 David Carlton <carlton@math.stanford.edu>
3468 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3469 * ppc-sysv-tdep.c: #include "gdb_string.h".
3470 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3473 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3475 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3476 "vrsave"'s register number.
3478 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3480 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3481 use frame_unwind_signed_register to obtain the PC.
3482 (mips_frame_chain): Handle a generic dummy frame.
3483 (mips_init_extra_frame_info): When a generic dummy frame, don't
3484 re-compute the frame base.
3485 (mips_pop_frame): Handle generic dummy frames.
3486 (mips_gdbarch_init): When generic dummy frames, set
3487 use_generic_dummy_frames, push_dummy_frame to
3488 generic_push_dummy_frame, pc_in_call_dummy to
3489 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3490 generic_save_dummy_frame_tos.
3492 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3494 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3495 against TOP when TOP was explictly set.
3496 (generic_push_dummy_frame): Set TOP to zero.
3498 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3500 * event-loop.c (start_event_loop): Rename variable 'result' to
3501 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3503 2002-09-30 Keith Seitz <keiths@redhat.com>
3505 * gdb-events.sh (selected_thread_changed): New event.
3506 * gdb-events.c: Regenerated.
3507 * gdb-events.h: Regenerated.
3509 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3511 * MAINTAINERS: Add self to Write After Approval list.
3513 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3515 * disasm.c: New file.
3516 * disasm.h: New file.
3517 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3518 (compare_lines): Ditto.
3519 (dump_insns): Ditto.
3520 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3522 (do_assembly_only): Ditto.
3523 (do_disassembly): Renamed to gdb_disassembly and moved to
3524 disasm.c. Sdded uiout argument.
3525 * Makefile.in: Add new files. Reorder SFILES list. Update
3526 dependencies. Include libgdb.a later in the insight executable.
3528 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3530 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3531 bfd/elf64-alpha-fbsd.c.
3533 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3535 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3538 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3540 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3542 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3544 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3545 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3546 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3547 (S_msg_sig_post_reply): Ditto.
3549 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3551 * sh-tdep.c (sh_use_struct_convention): Use definition according
3553 (sh_push_arguments): Store in register with correct endianess.
3554 (sh_default_store_return_value): Ditto.
3555 (sh_gdbarch_init): Set sizeof long double to 8.
3557 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3559 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3560 Fix some whitespace problems.
3562 2002-09-27 David Carlton <carlton@math.stanford.edu>
3564 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3565 (mcore-tdep.o): Ditto.
3566 (ns32k-tdep.o): Ditto.
3567 (ns32knbsd-tdep.o): Ditto.
3569 (vax-tdep.o): Ditto.
3570 * cris-tdep.c: #include "gdb_string.h"
3571 * mcore-tdep.c: Ditto.
3572 * ns32k-tdep.c: Ditto.
3573 * ns32knbsd-tdep.c: Ditto.
3575 * vax-tdep.c: Ditto.
3577 2002-09-27 David Carlton <carlton@math.stanford.edu>
3579 * config/djgpp/fnchange.lst: Add entries for
3580 gdb/testsuite/gdb.c++/m-static files.
3582 2002-09-27 Jim Wilson <wilson@redhat.com>
3584 * MAINTAINERS: Add myself to the Write After Approval list.
3586 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3588 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3591 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3593 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3596 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3598 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3599 (rs6000_struct_return_address): Delete variable.
3600 (rs6000_store_struct_return): Update.
3601 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3602 deprecated_extract_struct_value_address.
3603 (rs6000_frame_align): New function.
3604 (rs6000_gdbarch_init): Set frame_align.
3606 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3608 From Grace Sainsbury <graces@redhat.com>:
3609 * Makefile.in (gdbtk-main.o): New target.
3610 (gdb.o): New target.
3612 (main.o): Update dependencies.
3613 (gdb$(EXEEXT)): Add gdb.o.
3614 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3615 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3616 (SUBDIR_GDBTK_CLEAN): Set.
3617 (install-gdbtk): Install the insight binary.
3618 (uninstall-gdbtk): New target.
3619 (all-gdbtk, clean-gdbtk): New rule.
3620 * top.c (use_windows): Default to zero.
3621 * main.c: Include "main.h".
3623 (struct captured_main_args): Delete.
3624 (gdb_main): New function.
3628 2002-09-25 Andrew Cagney <cagney@redhat.com>
3630 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3631 (frame_map_regnum_to_name): New function.
3632 (frame_map_name_to_regnum): New function.
3633 * frame.h (frame_map_name_to_regnum): Declare.
3634 (frame_map_regnum_to_name): Declare.
3635 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3636 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3637 * parse.c: Do not include "builtin-regs.h".
3638 (target_map_name_to_register): Delete function.
3639 (write_dollar_variable): Use frame_map_name_to_regnum.
3640 * parser-defs.h (target_map_name_to_register): Delete declaration.
3641 * expprint.c: Include "frame.h".
3642 (print_subexp): Use frame_map_regnum_to_name.
3643 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3644 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3646 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3648 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3649 wasn't saved, and the next innermost frame is a dummy, return the
3650 dummy frame's link register.
3652 2002-09-24 Jim Blandy <jimb@redhat.com>
3654 Fix from Paul Breed:
3655 * main.c (captured_main): Add a `break' after the case for 'b'.
3657 2002-09-24 Keith Seitz <keiths@redhat.com>
3659 * varobj.c (c_type_of_child): Use get_target_type instead
3660 of TYPE_TARGET_TYPE.
3662 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3664 * source.c (get_current_or_default_source_symtab_and_line): Remove
3666 (set_default_source_symtab_and_line): New function. Attempts to
3667 determine a source file to list lines from if one is not currently
3669 (get_current_source_symtab_and_line): Initialize sal.pc and
3671 (set_current_source_symtab_and_line): Mark argument as const.
3672 * source.h: Update declarations and comments.
3673 * linespec.c (decode_line_1): Replace call to removed routine above.
3674 * stack.c (print_frame_info_base): Ditto.
3675 * cli/cli-cmds.c (edit_command): Ditto.
3676 (list_command): Ditto.
3678 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3680 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3681 sal.pc and sal.end fields.
3682 (get_current_or_default_source_symtab_and_line): Ditto.
3683 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3684 so we do not cause a new source symtab to be searched for (reverting an
3685 unintentional change from the 2002-09-20 patch).
3686 * scm-lang.c (scm_unpac): Ditto.
3688 2002-09-21 Andrew Cagney <cagney@redhat.com>
3690 * complaints.c (symfile_explanations): Remove new-line from
3691 ``isolated_message''.
3692 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3693 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3695 2002-09-20 Nick Clifton <nickc@redhat.com>
3697 * NEWS: Announce that V850EA ISA is no longer supported.
3698 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3700 2002-09-20 David Carlton <carlton@math.stanford.edu>
3702 * Makefile.in (c-lang.o): Correct dependencies.
3703 (utils.o): Gather dependencies.
3705 * c-lang.c: #include "gdb_string.h"
3707 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3709 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3710 * cli/cli-cmds.c (list_command): New function. Implements the new
3712 (_init_cli_cmds): Add new command definition.
3713 * gdb.1: Document edit command.
3714 * doc/gdb.texinfo: Document edit command.
3716 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3718 * source.c: Make global variables current_source_symtab and
3719 current_source_line static.
3720 (list_command): Moved to cli/cli-cmds.c.
3721 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3722 (get_first_line_listed): New accessor function.
3723 (get_lines_to_list): New accessor function.
3724 (get_current_source_symtab_and_line): New function. Retrieves the
3725 position in the source code that we consider current.
3726 (get_current_or_default_source_symtab_and_line): New function.
3727 Like the above but attempts to determine a default position if one
3728 is not currently defined.
3729 (set_current_source_symtab_and_line): New function. Sets the source
3730 code position considered current and returns the previously set one.
3731 (clear_current_source_symtab_and_line): Reset stored information about
3732 a current source line.
3733 (_initialize_source): Remove registration for the "list" command and
3735 * source.h: Add declarations for the new functions above.
3736 * symtab.h: Remove declarations for the global variables mentioned
3738 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3739 obtain current source line.
3740 * linespec.c (decode_line_1): Ditto.
3741 * macroscope.c (default_macro_scope): Ditto.
3742 * scm-lang.c (scm_unpac): Ditto.
3743 * stack.c (print_frame_info_base): Ditto.
3744 * symfile.c (clear_symtab_users): Ditto.
3745 * symtab.c (decode_line_spec): Ditto.
3746 * cli/cli-cmds.c (list_command): Moved here from source.c.
3747 (ambiguous_line_spec): Moved here from source.c.
3748 (_init_cli_cmds): Add definition for "list" and its alias.
3749 * Makefile.in: Update dependencies.
3751 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3753 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3754 with what gcc thinks is correct.
3756 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3758 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3759 multiple register push instruction.
3761 2002-09-19 Jim Blandy <jimb@redhat.com>
3763 Add support for distinct host and target character sets.
3764 * charset.c, charset.h: New files.
3765 * c-exp.y: #include "charset.h".
3766 (yylex): Convert character and string literals to the target
3767 character set, before returning them as the semantic value of the
3769 * c-lang.c: #include "charset.h".
3770 (c_emit_char): Use charset-specific methods to recognize
3771 characters with backslash escape forms, to decide which characters
3772 to print literally and which to print using numeric escape
3773 sequences, and to convert target characters to host characters
3775 * utils.c: #include "charset.h".
3776 (no_control_char_error): New function.
3777 (parse_escape): Use charset-specific methods to recognize
3778 backslash escapes, parse `control character' notation, and convert
3779 characters from the host character set to the target character set.
3780 * configure.in: Set the default host character set.
3781 Check where to find iconv, and what its argument types might be.
3782 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3783 * Makefile.in (SFILES): List charset.c.
3784 (COMMON_OBS): List charset.o.
3785 (charset.o): New rule.
3786 (charset_h): New header dependency variable.
3787 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3788 (LIBICONV): New variable, set by configure.
3789 (CLIBS): Include $(LIBICONV) here.
3790 * aclocal.m4, config.in, configure: Regenerated.
3792 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3794 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3797 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3799 * gdb_mbuild.sh: New file.
3801 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3803 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3805 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3807 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3808 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3809 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3810 valops.c, value.h: Revert previous change.
3812 2002-09-18 Michael Snyder <msnyder@redhat.com>
3814 Preliminary support for Objective-C:
3815 * defs.h (language_objc): New enum value.
3816 (puts_filtered_tabular): Declaration only, exported from utils.c.
3817 (skip_quoted): Delete, declared in completer.h.
3818 * c-exp.y: Include completer.h.
3821 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3822 New operator enum values.
3823 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3824 * language.c (binop_result_type): Handle language_objc case.
3825 (integral_type, character_type, string_type, boolean_type,
3826 structured_type, binop_type_check): Ditto.
3827 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3828 (struct objc_specific): Add to general_symbol_info.
3829 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3830 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3831 * parser-defs.h (struct objc_class_str): New struct type.
3832 (start_msglist, end_msglist, add_msglist): Declaration only,
3833 exported from objc-lang.c.
3834 * value.h (value_of_local, value_nsstring,
3835 call_function_by_hand_expecting_type): Exported from valops.c.
3836 * valops.c (find_function_addr): Export.
3837 (call_function_by_hand_expecting_type): New function.
3838 (value_of_local): New function.
3839 * symfile.c (init_filename_language_table): Add ".m" extension
3841 * utils.c (puts_filtered_tabular): New function.
3842 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3843 (set/show demangle): Extend help-string to refer to ObjC.
3844 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3845 * stabsread.c (symbol_reference_defined): Objective-C symbols
3846 may contain colons: make allowances when scanning stabs strings
3848 (objc_find_colon): New function.
3849 * printcmd.c (address_info): If language == objc then print
3850 "self" instead of "this".
3851 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3852 OP_NSSTRING, and OP_SELF.
3853 (prefixify_subexp): Ditto.
3854 * source.c (print_source_lines): Mention objc in comment.
3855 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3858 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3860 * complaints.h: Update copyright.
3861 (struct complaints): Declare.
3862 (struct complaint): Make `message' constant.
3863 (internal_complaint): Declare.
3864 (complaint): Declare.
3865 (complaint_root): Delete declaration.
3866 (symfile_complaints): Delete declaration.
3867 (struct complaints): Add opaque declaration.
3868 (clear_complaints): Add a complaints parameter.
3869 * complaints.c: Update copyright.
3870 (enum complaint_series): Define.
3871 (complaint_root): Delete.
3872 (struct complaints): Define.
3873 (complaint_sentinel, symfile_complaint_book): New variables.
3874 (symfile_explanations, symfile_complaints): New variables.
3876 (get_complaints): New function.
3877 (vcomplaint): New function.
3878 (complaint): New function.
3879 (internal_complaint): New function.
3880 (complain): Call vcomplain with symfile_complaint.
3881 (clear_complaints): Rewrite.
3882 (_initialize_complaints): Use add_setshow_command.
3883 * Makefile.in (complaints.o): Update dependencies.
3884 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3885 to call to clear_complaints.
3886 (new_symfile_objfile, reread_symbols): Ditto.
3887 (oldsyms_complaint): Delete.
3888 (empty_symtab_complaint, unknown_option_complaint): Delete.
3889 (free_named_symtabs): Use complaint instead of complain.
3891 2002-09-18 Michael Snyder <msnyder@redhat.com>
3893 Contributed by Apple Computer, Inc. Merged with current sources
3894 by Adam Fedor <fedor@doc.com> [cagney].
3896 * objc-lang.c: First clean-up round: comments, indentation.
3897 * objc-lang.h: Ditto.
3898 * objc-lang.y: Ditto.
3900 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3902 * maint.c (maintenance_internal_error): Print the parameter as the
3904 (maintenance_internal_warning): New function.
3905 (_initialize_maint_cmds): Add command `maint internal-warning'.
3907 * defs.h (internal_warning, internal_vwarning): Declare.
3908 * utils.c (struct internal_problem): Define.
3909 (internal_vproblem): New function.
3910 (internal_warning): New function.
3911 (internal_vwarning): New function.
3912 (internal_warning_problem, internal_error_problem): New variables.
3913 (internal_verror): Just call internal_vproblem.
3915 2002-09-18 Michael Snyder <msnyder@redhat.com>
3917 * objc-lang.c: New file, support for Objective-C.
3918 Preliminary check-in, not yet integrated into gdb.
3919 * objc-lang.h: New file.
3920 * objc-exp.y: New file.
3922 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3924 * infrun.c (signal_stop_update): Convert definition to ISO C.
3925 (signal_print_update): Ditto.
3926 (signal_pass_update): Ditto.
3927 * inflow.c (terminal_save_ours): Ditto.
3929 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3932 * config/djgpp/fnchange.lst: Handle name clashes between
3933 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3936 * i386-linux-tdep.h: Fix tipo.
3938 2002-09-18 Adam Fedor <fedor@gnu.org>
3940 * MAINTAINERS: Add myself to the Write After Approval list.
3942 2002-09-18 Jim Blandy <jimb@redhat.com>
3944 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3945 texthigh and textlow to reader-specific structs caused
3946 objfile_relocate to miss them. This is fixable, but the work that
3947 the change was supposed to prepare GDB for never got done anyway.
3949 2002-09-18 David Carlton <carlton@math.stanford.edu>
3951 * MAINTAINERS: Alphabetize Write After Approval list.
3953 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3956 * values.c (value_static_field): Call read_var_value.
3958 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3960 * valops.c (hand_function_call): Align the initial stack pointer
3961 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3962 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3964 * mips-tdep.c (mips_frame_align): New function.
3965 (mips_gdbarch_init): Set frame_align.
3966 * gdbarch.sh (FRAME_ALIGN): New method.
3967 * gdbarch.h, gdbarch.c: Re-generate.
3969 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3971 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3974 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3976 * NEWS: Mention that MIPS $fp behavior changed.
3977 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3978 reference to FP_REGNUM.
3979 (mipsnbsd_cannot_store_register): Ditto.
3980 * mips-linux-nat.c: Update copyright.
3981 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3982 (mips_linux_cannot_store_register): Ditto.
3983 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3984 * config/mips/tm-mips.h: Update copyright.
3985 (FP_REGNUM): Delete macro.
3986 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3987 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3988 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3989 (mips_r3041_reg_names, mips_r3051_reg_names)
3990 (mips_r3081_reg_names): Replace "fp" with "".
3993 2002-09-17 Theodore A. Roth <troth@verinet.com>
3995 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3996 generic_read_register_dummy() (PR gdb/703).
3997 (avr_push_return_address): #if 0 out unused vars.
3998 (avr_gdbarch_init): Enable use of avr_push_return_address().
4000 2002-09-17 Michael Snyder <msnyder@redhat.com>
4002 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4003 RTE will take care of it.
4005 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4007 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4008 invalid, return SP_REGNUM.
4010 2002-09-17 Michael Snyder <msnyder@redhat.com>
4012 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4013 point registers without sign extension.
4015 2002-09-17 Andrew Cagney <cagney@redhat.com>
4017 * blockframe.c (deprecated_read_register_dummy): Rename
4018 generic_read_register_dummy.
4019 * frame.c (frame_unwind_signed_register): New function.
4020 (frame_unwind_unsigned_register): New function.
4021 * frame.h (frame_unwind_signed_register): Declare.
4022 (frame_unwind_unsigned_register): Declare.
4023 (deprecated_read_register_dummy): Rename
4024 generic_read_register_dummy.
4026 * h8300-tdep.c (h8300_frame_chain): Update.
4027 (h8300_frame_saved_pc): Update.
4028 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4029 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4030 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4031 (s390_frame_chain): Update.
4032 * v850-tdep.c (v850_find_callers_reg): Update.
4033 (v850_frame_saved_pc): Update.
4034 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4035 (m32r_find_callers_reg): Update.
4036 (m32r_frame_saved_pc): Update.
4037 * sh-tdep.c (sh_find_callers_reg): Update.
4038 (sh64_get_saved_pr): Update.
4039 (sh_init_extra_frame_info): Update.
4040 (sh_init_extra_frame_info): Update.
4041 (sh64_init_extra_frame_info): Update.
4042 (sh64_init_extra_frame_info): Update.
4043 * mcore-tdep.c (mcore_find_callers_reg): Update.
4044 (mcore_frame_saved_pc): Update.
4045 (mcore_init_extra_frame_info): Update.
4046 * i386-tdep.c (i386_frame_saved_pc): Update.
4047 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4048 (ia64_init_extra_frame_info): Update.
4049 (ia64_init_extra_frame_info): Update.
4050 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4051 * cris-tdep.c (cris_init_extra_frame_info): Update.
4052 * avr-tdep.c (avr_frame_chain): Update.
4053 (avr_init_extra_frame_info): Update.
4054 (avr_frame_saved_pc): Update.
4055 * arm-tdep.c (arm_find_callers_reg): Update.
4056 (arm_init_extra_frame_info): Update.
4057 (arm_frame_saved_pc): Update.
4059 2002-09-17 Tom Tromey <tromey@redhat.com>
4061 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4064 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4066 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4067 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4069 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4072 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4074 * osfsolib.c: Remove file, replaced by solib-osf.c.
4075 * Makefile.in: Remove compilation rules for osfsolib.c.
4077 2002-09-16 David Carlton <carlton@math.stanford.edu>
4079 * cp-valprint.c (cp_print_class_method): Correct args to
4080 check_stub_method_group.
4082 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4084 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4085 `set architecture'. Unify naming convention of functions.
4086 (h8300_skip_prologue): Improve prologue analysis.
4087 (h8300_push_arguments): Rewritten to more closely match GCC's
4088 bizarre argument-passing behavior, along with the comment describing
4090 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4091 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4092 sim, remote-e7000.c, remote-hms.c and remote.c
4094 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4096 * i386-tdep.c (gdb_print_insn_i386): Removed.
4097 (i386_print_insn): New function.
4098 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4099 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4102 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4104 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4107 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4109 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4110 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4111 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4113 2002-09-13 Christopher Faylor <cgf@redhat.com>
4115 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4117 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4119 * gdbtypes.c (check_stub_method): Make static.
4120 (check_stub_method_group): New function.
4121 * gdbtypes.h: Update prototypes.
4122 * cp-support.c: New file.
4123 * cp-support.h: New file.
4125 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4126 (update_method_name_from_physname): New function.
4127 (read_member_functions): Correct method names for operators
4128 and v3 constructors/destructors. Separate v2 constructors and
4130 * Makefile.in (stabsread.o): Update dependencies.
4131 (SFILES): Add cp-support.c.
4132 (COMMON_OBS): Add cp-support.o.
4133 (cp_support_h, cp-support.o): Add.
4135 * cp-valprint.c (cp_print_class_method): Call
4136 check_stub_method_group instead of check_stub_method. Remove
4138 * p-valprint.c (pascal_object_print_class_method): Likewise.
4139 * valops.c (search_struct_method): Likewise.
4140 (find_method_list, value_struct_elt_for_reference): Likewise.
4142 2002-09-13 Andrew Cagney <cagney@redhat.com>
4144 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4145 * gdbarch.h, gdbarch.c: Regenerate.
4147 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4149 * frame.c (find_saved_register): Delete function.
4150 * frame.h (find_saved_register): Delete declaration.
4153 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4155 * mips-tdep.c (read_next_frame_reg): Re-hack using
4156 frame_register_unwind.
4158 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4160 * mips-tdep.c (mips_get_saved_register): Re-hack using
4161 frame_register_unwind.
4163 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4165 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4166 vector. Will be useful for Interix.
4167 * gdbarch.h, gdbarch.c: Regenerate.
4169 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4170 name of the malloc function by NAME_OF_MALLOC.
4172 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4174 * value.h (find_function_in_inferior): Add const keyword to
4175 one of the parameters. Allows us to invoke this function with
4177 * valops.c (find_function_in_inferior): Likewise.
4179 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4181 * exec.c (xfer_memory): Fix compilation warning with old versions
4183 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4185 2002-09-12 David Carlton <carlton@math.stanford.edu>
4187 * symtab.h: Run through gdb_indent.h.
4188 Add 2002 to Copyright year list.
4190 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4192 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4194 * MAINTAINERS: Add myself to write after approval list.
4196 2002-09-11 J. Brobecker <brobecker@gnat.com>
4198 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4200 2002-09-11 J. Brobecker <brobecker@gnat.com>
4202 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4205 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4207 * procfs.c (do_detach): Clear current signal, not just fault.
4208 Corrects problem with breakpoint trap signal leaking to detached
4211 2002-09-10 Michael Snyder <msnyder@redhat.com>
4213 * buildsym.c (finish_block): Protect against null pointer.
4215 2002-09-10 Andrew Cagney <cagney@redhat.com>
4217 * infcmd.c (default_print_registers_info): Send all output to
4218 ``file'' instead of ``gdb_stdout''.
4220 2002-09-10 Michael Snyder <msnyder@redhat.com>
4222 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4223 LONGEST, and use signed register read (addresses are sign-
4226 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4228 * event-loop.c (gdb_do_one_event): Make public.
4229 * event-loop.h (gdb_do_one_event): Declare.
4231 2002-09-10 Jeff Law <law@redhat.com>
4233 * infttrace.c (child_resume): Simplify and rework to avoid
4236 2002-09-09 Fred Fish <fnf@intrinsity.com>
4238 * printcmd.c (print_scalar_formatted): "len" is the number of
4239 target bytes, NOT the number of target bits.
4241 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4243 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4244 * top.c (init_main): Set rl_terminal_name.
4246 2002-09-08 Aidan Skinner <aidan@velvet.net>
4248 * ada-lang.c (ada_array_bound, ada_type_match,
4249 _initialize_ada_language): Fix K&R definitions.
4250 * ada-tasks.c (get_current_task): Fix K&R definitions.
4251 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4253 2002-09-07 Christopher Faylor <cgf@redhat.com>
4255 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4258 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4260 * i386-tdep.c (i386_register_virtual_type,
4261 i386_register_convertible, i386_register_convert_to_virtual,
4262 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4263 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4264 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4265 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4266 Don't set push_arguments twice.
4268 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4269 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4270 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4271 sigtramp_end to NULL.
4272 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4274 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4276 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4279 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4280 * gdbarch.h, gdbarch.c: Re-generate.
4281 * blockframe.c (find_pc_sect_partial_function): Convert to use
4282 SIGTRAMP_START_P predicate.
4284 2002-09-05 Michael Snyder <msnyder@redhat.com>
4286 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4287 generic_dummy_frame method and old method. Also distinguish
4288 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4289 (arm_extract_return_value): Use new regcache method.
4291 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4292 adjustment that doesn't conform to the ABI.
4293 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4294 saved regcache, not from current regcache.
4296 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4298 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4301 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4303 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4304 if arm_apcs_32 is false.
4306 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4308 GDB 5.3 branch created.
4310 2002-09-03 Theodore A. Roth <troth@verinet.com>
4312 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4313 generic_unwind_get_saved_register.
4315 2002-09-03 David Carlton <carlton@math.stanford.edu>
4317 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4318 argument (PR gdb/653). Update call to smash_to_method_type.
4319 (read_structure_scope): Update call to dwarf2_add_member_fn.
4321 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4323 * x86-64-linux-tdep.c: Include gdb_string.h
4324 * x86-64-linux-nat.c: Ditto.
4326 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4328 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4329 when YYDEBUG is set to 1.
4330 * c-exp.y: Likewise.
4331 * f-exp.y: Likewise.
4332 * jv-exp.y: Likewise.
4333 * m2-exp.y: Likewise.
4334 * p-exp.y: Likewise.
4336 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4338 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4340 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4341 solib_svr4_fetch_link_map_offsets to
4342 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4343 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4344 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4345 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4346 solib-svr4.o, and solib-legacy.o.
4347 * config/i386/tm-nbsd.h: Include solib.h.
4349 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4351 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4352 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4353 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4354 comment noting that this needs its own target configuration.
4355 * config/i386/nbsd.mt: New file.
4356 * config/i386/nbsdaout.mt: Remove.
4357 * config/i386/nbsdelf.mt: Ditto.
4358 * config/i386/tm-nbsdaout.h: Ditto.
4360 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4362 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4363 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4364 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4366 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4367 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4368 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4370 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4372 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4373 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4374 * i386-tdep.h (i386bsd_init_abi): New prototype.
4375 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4376 function declaration.
4377 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4378 for NetBSD-a.out or NetBSD-ELF.
4379 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4380 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4381 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4382 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4384 (i386nbsd_pc_in_sigtramp): New function.
4385 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4386 i386nbsd_pc_in_sigtramp.
4387 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4388 and i386nbsdelf_init_abi OS ABI handlers.
4389 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4390 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4392 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4394 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4395 registers if the target really has them.
4397 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4399 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4402 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4404 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4406 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4407 (alphanbsd_skip_sigtramp_frame): New functions.
4408 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4409 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4410 to alphanbsd_sigcontext_addr.
4412 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4414 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4416 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4417 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4418 nbsd_pc_in_sigtramp.
4419 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4420 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4421 * nbsd-tdep.c: Include gdb_string.h.
4422 (nbsd_pc_in_sigtramp): New function.
4423 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4424 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4425 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4426 ppcnbsd_pc_in_sigtramp.
4427 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4428 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4429 shnbsd_pc_in_sigtramp.
4430 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4431 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4432 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4434 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4436 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4437 watchpoints to NULL.
4438 (insert_breakpoints): set val field of watchpoints if NULL.
4441 2002-08-29 Jim Blandy <jimb@redhat.com>
4443 * symtab.c (lookup_symbol_aux): In the cases where we find a
4444 minimal symbol of an appropriate name and use its address to
4445 select a symtab to read and search, use `name' (as passed to us)
4446 as the demangled name when searching the symtab's global and
4447 static blocks, not the minsym's name.
4449 2002-08-29 Keith Seitz <keiths@redhat.com>
4451 * stack.c (print_frame_info_base): Always set current_source_symtab
4452 and current_source_line.
4454 2002-08-29 Donn Terry <donnte@microsoft.com>
4456 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4458 2002-08-28 Keith Seitz <keiths@redhat.com>
4460 * stack.c (select_frame): Add FIXME concerning selected-frame
4462 (select_frame_command): Send selected-frame-level-changed
4463 event notification, but only if the level actually changed.
4464 (up_silently_base): Add selected-frame-level-changed event
4466 (down_silently_base): Likewise.
4468 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4470 * Makefile.in: Update dependencies for all gdb/*.c files.
4472 2002-08-27 Tom Tromey <tromey@redhat.com>
4474 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4475 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4476 Update dependencies.
4477 * i387-tdep.c: Include gdb_string.h.
4478 * osabi.c: Likewise.
4479 * i386-linux-nat.c: Likewise.
4480 * lin-lwp.c: Likewise.
4481 * ax-gdb.c: Likewise.
4482 * signals/signals.c: Likewise.
4483 * jv-valprint.c: Likewise.
4484 * p-lang.c: Likewise.
4485 * c-valprint.c: Likewise.
4486 * cp-abi.c: Likewise.
4488 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4490 * cli/cli-script.h (copy_command_lines): Export.
4491 * breakpoint.c: Include cli/cli-script.h.
4492 * Makefile.in (breakpoint.o): Update dependencies.
4494 2002-08-26 Michael Snyder <msnyder@redhat.com>
4496 * breakpoint.c (insert_breakpoints): Protect all references
4497 to 'process_warning'. Shorten long lines.
4499 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4501 * cli/cli-script.c (copy_command_lines): New function.
4502 * defs.h (copy_command_lines): Export.
4503 * testsuite/gdb.base/commands.exp: New tests for commands
4504 attached to a temporary breakpoint, and for commands that
4505 delete the breakpoint they are attached to.
4507 2002-08-26 Michael Snyder <msnyder@redhat.com>
4509 * breakpoint.c (bpstat_stop_status): Instead of copying the
4510 pointer to the breakpoint commands struct, make a new copy
4511 of the struct and point to that.
4512 (bpstat_clear): Free the commands struct.
4513 (bpstat_clear_actions): Free the commands struct.
4514 (bpstat_do_actions): Free the command actions. Also execute
4515 the local cleanups, instead of deleting them.
4516 (delete_breakpoint): Leave the commands field of the bpstat
4517 chain alone -- it will be freed later.
4519 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4521 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4522 deleted in 2002-08-20 commit. This function is still used by
4525 2002-08-26 Keith Seitz <keiths@redhat.com>
4527 * gdb-events.sh: Add selected-frame-level-changed event.
4528 * gdb-events.c: Regenerated.
4529 * gdb-events.h: Regenerated.
4531 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4534 * inflow.c (terminal_save_ours): New function to save terminal
4536 * inferior.h (terminal_save_ours): Declare.
4537 * target.c (debug_to_terminal_save_ours): New function.
4538 (cleanup_target): Defaults to_terminal_save_ours.
4539 (update_current_target): Inherit to_terminal_save_ours.
4540 (setup_target_debug): Set to_terminal_save_ours.
4541 * target.h (target_terminal_save_ours): New to save terminal settings.
4542 (target_ops): New member to_terminal_save_ours.
4543 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4544 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4545 * inftarg.c (init_child_ops): Likewise.
4546 * m3-nat.c (init_m3_ops): Likewise.
4547 * procfs.c (init_procfs_ops): Likewise.
4548 * wince.c (init_child_ops): Likewise.
4549 * win32-nat.c (init_child_ops): Likewise.
4550 * sol-thread.c (init_sol_thread_ops): Likewise.
4552 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4554 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4555 use regcache_* functions.
4556 (i386_gdbarch_init): Set store_return_value instead of
4557 deprecated_store_return_value.
4559 * regcache.c (regcache_raw_write_signed,
4560 regcache_raw_write_unsigned): New functions.
4561 * regcache.h (regcache_raw_write_signed,
4562 regcache_raw_write_unsigned): New prototypes.
4564 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4566 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4567 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4568 source file dependencies. Cleanup corresponding generator rules.
4570 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4572 * regcache.h (register_offset_hack): Declare.
4573 (regcache_cooked_read_using_offset_hack): Declare.
4574 (regcache_cooked_write_using_offset_hack): Declare.
4576 * regcache.c (register_offset_hack): New function.
4577 (regcache_cooked_read_using_offset_hack): New function.
4578 (regcache_cooked_write_using_offset_hack): New function.
4579 (regcache_dump): Check that the registers, according to their
4580 offset, are packed hard against each other.
4581 (cooked_xfer_using_offset_hack): New function.
4583 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4585 * regcache.c (struct regcache_descr): Add field register_type.
4586 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4588 (init_regcache_descr): Initialize register_type. Pass the descr
4589 to init_legacy_regcache_descr. Use register_type instead of
4590 REGISTER_VIRTUAL_TYPE.
4591 (register_type): New function.
4592 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4593 * regcache.h (register_type): Declare.
4595 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4597 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4598 instead of deprecated_store_return_value. Fix fallout from
4599 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4601 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4603 * regcache.c (max_register_size): New function.
4604 (init_legacy_regcache_descr): Ensure that max_register_size is
4605 large enough for REGISTER_VIRTUAL_SIZE.
4606 * regcache.h (max_register_size): Declare.
4608 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4610 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4612 (e500_extract_return_value): Change type of valbuf pointer to
4615 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4617 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4620 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4621 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4622 long long) to prevent compiler warning on 64-bit systems.
4624 2002-08-23 Andrew Cagney <cagney@redhat.com>
4626 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4627 (DEPRECATED_STORE_RETURN_VALUE): New method.
4628 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4629 * gdbarch.h, gdbarch.c: Re-generate.
4631 * values.c (set_return_value): Pass current_regcache to
4633 * arch-utils.h (legacy_store_return_value): Declare.
4634 * arch-utils.c (legacy_store_return_value): New function.
4635 (legacy_extract_return_value): Update parameters.
4637 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4639 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4640 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4641 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4642 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4643 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4644 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4645 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4646 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4647 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4648 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4651 * i386-tdep.c (i386_extract_return_value): Update.
4652 * arch-utils.c (legacy_extract_return_value): Update.
4653 * frv-tdep.c (frv_gdbarch_init): Update.
4654 * cris-tdep.c (cris_gdbarch_init): Update.
4655 * d10v-tdep.c (d10v_gdbarch_init): Update.
4656 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4657 * m68k-tdep.c (m68k_gdbarch_init): Update.
4658 * mcore-tdep.c (mcore_gdbarch_init): Update.
4659 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4660 * s390-tdep.c (s390_gdbarch_init): Update.
4661 * sparc-tdep.c (sparc_gdbarch_init): Update.
4662 * sh-tdep.c (sh_gdbarch_init): Update.
4663 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4664 * v850-tdep.c (v850_gdbarch_init): Update.
4665 * avr-tdep.c (avr_gdbarch_init): Update.
4666 * ia64-tdep.c (ia64_gdbarch_init): Update.
4667 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4668 * vax-tdep.c (vax_gdbarch_init): Update.
4669 * alpha-tdep.c (alpha_gdbarch_init): Update.
4670 * arm-tdep.c (arm_gdbarch_init): Update.
4671 * mips-tdep.c (mips_gdbarch_init): Update.
4672 * i386-tdep.c (i386_gdbarch_init): Update.
4674 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4676 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4677 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4679 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4681 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4684 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4686 * infrun.c (handle_inferior_event): Move a comment outside of a
4687 function call, in order to avoid indent reformatting this part
4688 of the code in an unreadable way.
4690 2002-08-23 Grace Sainsbury <graces@redhat.com>
4692 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4693 when breakpoints fail. Move general breakpoint error messages to
4695 * breakpoint.c (insert_breakpoints): Change warnings when
4696 breakpoints are nto inserted to specify the type. Remove call to
4697 memory_error when hardware breakpoints can't be inserted. Remove
4698 multiple calls to warning so all messages are sent to the user at
4700 (delete_breakpoints): Make insert error messsages more explicit.
4702 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4704 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4705 gdbserver/ChangeLog.
4707 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4709 * i386-tdep.c: Include "objfiles.h".
4710 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4711 skip_trampoline_code.
4712 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4713 (CPLUS_MARKER): Define to '.'.
4715 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4717 (linux_corefile_thread_callback): Increase args->num_notes.
4718 (linux_make_note_section): Initialize thread_args.num_notes, and
4719 use it to determine whether notes for any threads were created.
4721 2002-08-23 Donn Terry <donnte@microsoft.com>
4723 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4724 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4726 (write_with_trace): Conditionalize out the switch branch handling
4727 PCSHOLD if the corresponding macro is not defined. Likewise for
4728 PRSABORT and PRSTOP.
4729 This change will be needed by the Interix port.
4731 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4733 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4734 write_register wherever possible instead of manipulating the
4735 register bytes directly.
4736 Assign VALUE_CONTENTS to a variable and use that.
4737 The GPR numbers are now dependent on the architecture.
4739 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4741 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4743 (skip_prologue): Add support for BookE/e500 instructions.
4744 (e500_extract_return_value): New function.
4745 (frame_get_saved_regs): Add support for saving ev registers and
4747 (e500_store_return_value): New function.
4748 (rs6000_gdbarch_init): Move up default intializations of
4749 deprecated_extract_return_value and store_return_value. Overwrite
4750 init of store_return_value with e500 specific version.
4751 Set extract_return_value for e500.
4753 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4755 * blockframe.c (generic_call_dummy_register_unwind): Use
4756 regcache_cooked_read to catch cases in which the variable is
4757 stored in a pseudo register.
4759 2002-08-22 Andrew Cagney <cagney@redhat.com>
4761 * NEWS: Mention that the i960 has been made obsolete.
4762 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4764 (remote-nrom.o): Obsolete target.
4765 (remote-nindy.o, i960-tdep.o): Ditto.
4766 * remote-nrom.c: Make file obsolete.
4767 * remote-nindy.c, remote-vx960.c: Ditto.
4768 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4769 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4770 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4771 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4772 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4773 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4774 i960-*-vxworks* obsolete.
4775 * MAINTAINERS: Note that the i960 is obsolete.
4777 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4779 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4780 detach to allow reinitialization.
4782 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4784 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4787 2002-08-22 Jim Blandy <jimb@redhat.com>
4789 * coffread.c (coff_symfile_read): Don't try to read the line
4790 number table from disk if the image file doesn't have a symbol
4791 table; we'll never actually look at the info anyway, and Windows
4792 ships DLL's with bogus file offsets for the line number data.
4794 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4796 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4799 2002-08-21 Michael Snyder <msnyder@redhat.com>
4801 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4802 (MSYMBOL_SIZE): Replace macro with function.
4803 (DEFAULT_MIPS_TYPE): Delete unused macro.
4804 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4805 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4807 2002-08-21 Jim Blandy <jimb@redhat.com>
4809 * valops.c (value_cast): Simplify and correct logic for doing a
4810 static cast from a pointer to a base class to a pointer to a
4813 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4815 * infcmd.c (default_print_registers_info): Replace
4817 (registers_info): Use gdbarch_print_registers_info instead of
4819 * inferior.h (default_print_registers_info): Replace
4821 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4822 (DO_REGISTERS_INFO): Change to a predicate function.
4823 * gdbarch.h, gdbarch.c: Regenerate.
4825 2002-08-21 Keith Seitz <keiths@redhat.com>
4827 * gdb-events.sh: Add target-changed event.
4828 * gdb-events.c: Regenerated.
4829 * gdb-events.c: Regenerated.
4830 * valops.c (value_assign): Add target-changed event notification
4831 to inlval_register, lval_memory, and lval_reg_frame_relative.
4833 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4835 * NEWS: Add an entry regarding the improvement of the next/step
4836 operation on Alpha Tru64 multi-processor machines.
4838 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4840 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4842 * Makefile.in: Update all _h macro definitions.
4843 * Makefile.in (install-gdbtk): Move to install section.
4844 (rdi-share/libangsd.a): Move to end of file.
4846 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4848 * frame.c (frame_register_unwind): When a register, set addrp to
4849 the register's byte.
4851 2002-08-20 Michael Snyder <msnyder@redhat.com>
4853 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4854 used locally, so move them from the target machine header to here.
4855 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4856 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4858 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4860 2002-08-20 Andrew Cagney <cagney@redhat.com>
4862 * NEWS: Mention that the Apollo line was made obsolete.
4863 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4864 m68*-hp-hpux* obsolete.
4865 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4866 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4867 * buildsym.c (make_blockvector): Make static.
4868 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4869 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4870 (ALLDEPFILES): Remove dstread.c.
4871 (dstread.o): Obsolete make rule.
4872 * dstread.c: Makefile obsolete.
4874 * config/m68k/hp300hpux.mt: Ditto.
4875 * config/m68k/hp300hpux.mh: Ditto.
4876 * config/m68k/hp300bsd.mt: Ditto.
4877 * config/m68k/hp300bsd.mh: Ditto.
4878 * config/m68k/apollo68b.mt: Ditto.
4879 * config/m68k/apollo68v.mh: Ditto.
4880 * config/m68k/apollo68b.mh: Ditto.
4882 2002-08-20 Michael Snyder <msnyder@redhat.com>
4884 * mips-tdep.c (mips_in_return_stub): Make static.
4885 (mips_gdbarch_init): Set in_solib_return_trampoline.
4886 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4888 2002-08-20 Michael Snyder <msnyder@redhat.com>
4890 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4891 * gdbarch.c, gdbarch.h: Regenerate.
4892 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4894 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4896 2002-08-20 Michael Snyder <msnyder@redhat.com>
4898 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4899 (mips_gdbarch_init): Set skip_trampoline_code,
4900 in_solib_call_trampoline.
4901 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4902 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4904 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4906 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4908 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4909 vector type for ev registers.
4910 (e500_pseudo_register_read): New function.
4911 (e500_pseudo_register_write): New function.
4912 (e500_dwarf2_reg_to_regnum): New function.
4913 (PPC_UISA_NOFP_SPRS): New macro.
4914 (PPC_EV_REGS): New macro.
4915 (PPC_GPRS_PSEUDO_REGS): New macro.
4916 (registers_e500): New register set for e500.
4917 (variants): Add e500 variant.
4918 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4919 before setting architectural dependent variations. Initialize ev
4920 registers numbers. Add case for e500 architecture. Set the
4921 number of pseudo registers.
4923 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4925 * rs6000-tdep.c: Clean up comments.
4927 2002-08-20 Andrew Cagney <cagney@redhat.com>
4929 * h8300-tdep.c: Re-indent file.
4931 2002-08-20 Jim Blandy <jimb@redhat.com>
4933 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4936 2002-08-20 Keith Seitz <keiths@redhat.com>
4938 * breakpoints.c (watch_command_1): Use internal breakpoint
4939 when setting a watchpoint_scope breakpoint.
4941 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4943 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4944 (build_builtin_type_vec64i): Ditto.
4945 (build_builtin_type_vec128): Ditto.
4946 (build_builtin_type_vec128i): Ditto.
4948 2002-08-19 Michael Snyder <msnyder@redhat.com>
4950 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4951 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4952 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4953 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4954 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4955 CALL_DUMMY_ADDRESS): Delete.
4956 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4957 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4958 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4959 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4960 push_return_address.
4961 (mips_register_raw_size, mips_eabi_use_struct_convention,
4962 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4963 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4964 mips_init_extra_frame_info, mips_eabi_push_arguments,
4965 mips_n32n64_push_arguments, mips_push_return_address,
4966 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4967 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4969 2002-08-19 Michael Snyder <msnyder@redhat.com>
4971 * mips-tdep.c (mips_frame_num_args): New function.
4972 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4973 frame_saved_pc, frame_args_address, frame_locals_address,
4974 frame_num_args, and frame_args_skip.
4975 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4976 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4977 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4978 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4980 2002-08-20 Michael Snyder <msnyder@redhat.com>
4982 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4983 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4984 * mips-tdep.c (mips_store_struct_return): New function.
4985 (mips_extract_struct_value_address): New function.
4986 (mips_gdbarch_init): Set store_struct_return and
4987 extract_struct_value_address.
4989 2002-08-20 David Carlton <carlton@math.stanford.edu>
4991 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4992 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4993 (read_file_scope): Check that line_header is nonzero before
4994 decoding macro information.
4996 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4998 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4999 flag the general-purpose registers as floating-point on targets
5000 that don't support the floating-point registers.
5002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5004 * rs6000-tdep.c (altivec_register_p): Delete.
5005 (rs6000_do_altivec_registers): Delete.
5006 (rs6000_altivec_registers_info): Delete.
5007 (rs6000_do_registers_info): Delete.
5008 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5009 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5011 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5013 * infcmd.c (do_registers_info): Print vector registers in hex
5015 (print_vector_info): Check that printing registers
5017 (print_float_info): Ditto.
5019 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5021 * mips-tdep.c (mips_gdbarch_init): Update.
5022 (mips_o32_extract_return_value): Rewrite.
5023 (mips_o32_store_return_value): Rewrite.
5024 (mips_o32_xfer_return_value): New function.
5025 (mips_xfer_register): Tweak debug print message. Allow for
5026 buf_offset when dumping the value transfered.
5028 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5030 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5031 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5032 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5033 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5034 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5036 2002-08-14 Michael Snyder <msnyder@redhat.com>
5038 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5040 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5042 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5044 (P): New macro to define a register as a pseudo register.
5045 (R, R4, R8, R16, FR32, R64, R0): Updated.
5046 (struct variant): Add new fields for number of pseudo registers
5047 and number of total registers.
5048 (tot_num_registers): New macro replacing....
5049 (num_registers): ...deleted macro.
5050 (num_registers): New function.
5051 (num_pseudo_registers): New function.
5052 (variants): Update all variants to intialize new fields correctly.
5053 Postpone initialization of number of pseudo regs and real regs.
5054 (init_variants): New function.
5055 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5058 2002-08-19 David Carlton <carlton@math.stanford.edu>
5060 * valops.c (search_struct_field): Change error message to treat
5061 return value of 0 from value_static_field as meaning that field is
5063 (value_struct_elt_for_reference): Ditto.
5064 * values.c (value_static_field): Treat an unresolved location the
5065 same as a nonexistent symbol. Fix PR gdb/635.
5066 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5067 enclosed. Fix PR gdb/574.
5068 * MAINTAINERS: Add self to Write After Approval list.
5070 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5072 * mips-tdep.c (mips_xfer_register): New function.
5073 (mips_n32n64_extract_return_value): Rewrite.
5074 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5075 instead of deprecated_extract_return_value.
5077 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5079 * rs6000-tdep.c (TDEP): Delete macro.
5080 (branch_dest): Replace use of TDEP macro with its body.
5081 (rs6000_pop_frame): Ditto.
5082 (rs6000_push_arguments): Ditto.
5083 (rs6000_skip_trampoline_code): Ditto.
5084 (rs6000_frame_saved_pc): Ditto.
5085 (rs6000_frame_chain): Ditto.
5086 (rs6000_register_name): Ditto.
5087 (rs6000_register_byte): Ditto.
5088 (rs6000_register_raw_size): Ditto.
5089 (rs6000_register_virtual_type): Ditto.
5090 (rs6000_register_convertible): Ditto.
5091 (rs6000_convert_from_func_ptr_addr): Ditto.
5093 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5095 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5097 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5098 MIPS_LINUX_JB_ELEMENT_SIZE.
5099 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5100 for MAX_REGISTER_RAW_SIZE arrays.
5101 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5102 MIPS_LINUX_JB_ELEMENT_SIZE.
5104 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5106 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5108 2002-08-19 Aidan Skinner <aidan@velvet.net>
5110 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5111 ada-valprint.c ada-tasks.c.
5112 (YYFILES): Add ada-exp.y.
5113 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5114 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5115 (ada-exp.tab.o): New target.
5117 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5119 * regcache.c (regcache_xfer_part): New function.
5120 (regcache_raw_read_part): New function.
5121 (regcache_raw_write_part): New function.
5122 (regcache_cooked_read_part): New function.
5123 (regcache_cooked_write_part): New function.
5124 * regcache.h (regcache_raw_read_part): Declare.
5125 (regcache_raw_write_part): Declare.
5126 (regcache_cooked_read_part): Declare.
5127 (regcache_cooked_write_part): Declare.
5129 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5131 * remote.c (remote_open_1): Add async_p.
5132 (remote_async_open_1): Delete.
5133 (open_remote_target): Delete.
5134 (remote_open, extended_remote_open): Update calls to remote_open_1.
5135 (remote_async_open, extended_remote_async_open): Call
5136 remote_open_1 instead of remote_async_open_1.
5138 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5140 * blockframe.c: Fix a few coding standard violations.
5142 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5144 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5146 * config/i386/tm-i386sco5.h: ... here. File removed.
5147 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5149 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5150 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5151 (TM_FILE): Set to tm-i386.h.
5152 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5153 * config/i386/tm-i386v.h: Remove file.
5154 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5155 instead of "i386/tm-i386v.h".
5156 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5157 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5159 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5160 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5163 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5165 * config/i386/nm-i386v.h: Add protection against
5167 (i386_register_u_addr): Remove prototype.
5168 (register_u_addr): New prototype.
5169 (REGISTER_U_ADDR): Redefine accordingly.
5170 * i386v-nat.c: Improve several comments.
5171 (i386_register_u_addr): Change signature and rename to
5172 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5175 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5177 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5178 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5179 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5180 deprecated_extract_return_value.
5181 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5182 rename mips_o32o64_push_arguments.
5183 (mips_gdbarch_init): Update.
5184 (mips_extract_return_value): Delete.
5185 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5186 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5187 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5188 (mips_n32n64_extract_return_value): Clone
5189 mips_extract_return_value.
5190 (mips_store_return_value): Delete.
5191 (mips_o32_store_return_value): Clone mips_store_return_value.
5192 (mips_o64_store_return_value): Clone mips_store_return_value.
5193 (mips_eabi_store_return_value): Clone mips_store_return_value.
5194 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5196 2002-08-18 Aidan Skinner <aidan@velvet.net>
5198 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5199 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5201 2002-08-18 Aidan Skinner <aidan@velvet.net>
5203 * ada-lang.c: Run through gdb_indent.sh.
5204 * ada-lang.h: Run through gdb_indent.sh.
5205 * ada-tasks.c: Run through gdb_indent.sh.
5206 * ada-typeprint.c: Run through gdb_indent.sh.
5207 * ada-valprint.c: Run through gdb_indent.sh.
5209 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5211 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5214 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5216 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5218 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5219 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5221 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5222 write_register_gen instead of write_register_bytes.
5224 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5225 i[3456]-*-osf1mk* configurations have been made obsolete.
5226 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5227 i[3456]86-*-osf1mk* hosts obsolete.
5228 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5230 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5231 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5232 config/i386/i386m3.mt, config/i386/nm-m3.h,
5233 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5234 config/i386/i386mk.mh, config/i386/i386mk.mt,
5235 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5237 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5238 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5239 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5241 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5243 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5244 (hppa_value_returned_from_stack): Declare.
5245 (hppa_extract_return_value): Declare.
5246 * config/pa/hppa.mt: New file.
5247 * configure.tgt: Recognize hppa*-*-*.
5248 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5250 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5252 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5255 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5257 * top.c (gdb_rl_operate_and_get_next): Make sure
5258 operate-and-get-next functions correctly even when the history
5259 list is completely filled.
5261 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5263 * MAINTAINERS (Target Instruction Set Architectures): Rename
5264 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5265 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5266 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5267 already listed under Host/Native.
5269 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5270 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5273 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5275 * config/ia64/ia64.mt: New file.
5276 * config/alpha/alpha.mt: New file.
5277 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5278 ia64-linux-gnu. Mention that ia64-elf is broken.
5279 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5281 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5283 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5284 generic_func_frame_valid instead of func_frame_valid.
5286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5288 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5289 procfs appears to be broken when debugging on multi-processor
5290 machines. So enable software single stepping in order to avoid
5291 using the procfs interface to do next/step operations, using
5292 internal breakpoints instead.
5294 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5295 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5296 make this pc address equal to the value it would have if the
5297 system stepping capability was used. Also set a new flag used
5298 to ensure that we don't readjust the PC one more time later.
5300 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5301 address by DECR_PC_AFTER_BREAK when software single step is
5302 in use for this architecture, as this has already been taken
5303 care of in handle_inferior_event().
5305 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5307 * infrun.c (handle_inferior_event): Minor reformatting, to make
5308 a rather long condition expression easier to read.
5310 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5312 * Makefile.in (gdbtk.o): Move to end of file.
5313 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5314 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5315 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5316 (gdbtk-wrapper.o, gdbres.o): Ditto.
5318 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5320 * Makefile.in (copying.o): Separate out compile rule.
5321 (hpux-thread.o, procfs.o, signals.o): Ditto.
5322 (v850ice.o, z8k-tdep.o): Ditto.
5323 (tui-file.o): Move to TUI section.
5324 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5325 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5327 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5329 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5330 skip_trampoline_code, for better namespace-proofing.
5332 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5334 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5336 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5338 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5340 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5341 signal, check whether we hit a breakpoint before checking for a
5342 single step breakpoint. Otherwise, GDB fails to notice that a
5343 breakpoint has been hit when stepping onto a breakpoint.
5345 2002-08-16 Keith Seitz <keiths@redhat.com>
5347 * gdb-events.sh (clear_gdb_event_hooks): New function.
5348 * gdb-events.c: Regenerate.
5349 * gdb-events.h: Regenerate.
5351 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5353 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5354 not_a_sw_breakpoint.
5355 * breakpoint.h (bpstat_stop_status): Add parameter names.
5357 2002-08-16 Grace Sainsbury <graces@redhat.com>
5359 * remote.c (remote_insert_hw_breakpoint)
5360 (remote_remove_hw_breakpoint): Fix calculation of length field
5363 2002-08-15 Michael Snyder <msnyder@redhat.com>
5365 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5366 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5367 (supply_fpregset): Ditto.
5369 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5370 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5371 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5372 (TARGET_READ_SP): Delete.
5373 (DO_REGISTERS_INFO): Delete.
5374 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5376 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5377 from macros to functions.
5379 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5380 (mips_register_convertible, mips_register_convert_to_virtual,
5381 mips_register_convert_to_raw): Make static.
5382 (mips_read_sp): New function.
5383 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5384 (mips_do_registers_info): Make static.
5385 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5386 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5387 (mips_register_convert_from_type, mips_register_convert_to_type):
5389 (mips_gdbarch_init): Set up function_start_offset,
5390 register_virtual_size, pc_in_sigtramp.
5392 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5394 * infcmd.c (vector_info): New function.
5395 (_initialize_infcmd): Add command "info vector".
5396 (print_vector_info): New function.
5398 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5399 * gdbarch.h, gdbarch.c: Regenerate.
5401 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5403 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5404 ``print_all''. Only print vector registers when ``print_all''.
5406 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5408 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5409 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5411 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5412 Add `args' parameter.
5413 * gdbarch.h, gdbarch.c: Regenerate.
5415 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5417 * infcmd.c (float_info): Call print_float_info.
5418 (print_float_info): New function. By default, print the
5419 floating-point registers.
5421 * arch-utils.h (default_print_float_info): Delete declaration.
5422 * arch-utils.c (default_print_float_info): Delete function.
5424 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5426 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5429 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5432 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5433 * configure.host: Make i[3456]86-*-aix host obsolete.
5434 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5435 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5436 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5437 config/i386/xm-i386aix.h: Make files obsolete.
5438 * i386aix-nat.c: Make file obsolete.
5439 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5440 (i386aix-nat.o): Make target obsolete.
5442 * config/i386/nm-gnu.h: Removed.
5443 * config/i386/nm-i386gnu.h: New file.
5444 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5445 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5447 * config/i386/tm-i386gnu.h: ... here. Removed.
5448 * config/i386/xm-i386gnu.h: Removed.
5449 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5450 (NAT_FILE): Set to nm-i386gnu.h.
5451 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5452 * i386-tdep.c: New file.
5453 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5454 (i386gnu-tdep.o): Specify dependencies.
5456 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5458 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5459 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5460 Adjust a few comments to reflect reality a bit closer.
5461 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5462 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5463 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5464 target_insert_watchpoint, target_remove_watchpoint):
5466 * config/i386/nm-i386sco5.h: ... here.
5467 (kernel_u_size): Add prototype. Improve a few comments and add
5468 protection against multiple inclusion.
5470 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5473 * uw-thread.c (SP_ARG0): Define if not already defined.
5474 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5476 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5478 * config/i386/tm-i386.h: Don't include "regcache.h".
5480 * i387-tdep.h (i387_print_float_info): New prototype.
5481 * i387-tdep.c (print_i387_value, print_i387_ext,
5482 print_i387_status_word, print_i387_control_word): Add `struct
5483 ui_file *' argument and use it for output.
5484 (i387_print_float_info): Renamed from i387_float_info. Add
5485 `struct gdbarch *' and `struct ui_file *' arguments and use the
5487 * i386-tdep.c: Include "i387-tdep.h".
5488 (i386_gdbarch_init): Set print_float_info.
5489 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5490 (FLOAT_INFO): Remove define.
5492 2002-08-13 Michael Snyder <msnyder@redhat.com>
5494 * mips-tdep.c (mips_push_arguments): Rename to
5495 mips_eabi_push_arguments, and tune for EABI.
5496 (MIPS_REGS_HAVE_HOME_P): Delete.
5497 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5498 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5499 Delete references to mips_regs_have_home_p.
5501 2002-08-14 Keith Seitz <keiths@redhat.com>
5503 * Makefile.in (install-gdbtk): Create insight plugin directory.
5504 Install plugins.tcl file.
5506 2002-08-14 Keith Seitz <keiths@redhat.com>
5508 * configure.in: Move SUBDIRS to near top of the file so that
5509 --enable options may add things to it.
5510 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5511 * configure: Regenerate.
5513 2002-08-13 Michael Snyder <msnyder@redhat.com>
5515 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5516 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5517 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5519 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5521 * vax-tdep.c (vax_get_saved_register): Delete function.
5522 (vax_gdbarch_init): Update.
5523 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5524 (ns32k_gdbarch_init): Update.
5525 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5526 (alpha_gdbarch_init): Update.
5528 2002-08-13 Andrew Cagney <cagney@redhat.com>
5530 * regcache.c (init_regcache_descr): Overallocate the
5531 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5532 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5534 (set_register_cached): Add range checking assertions. Use
5537 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5539 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5540 numbers for MMX registers.
5542 2002-08-13 Andrew Cagney <cagney@redhat.com>
5544 * i386-tdep.c (i386_gdbarch_init): Use
5545 generic_unwind_get_saved_register.
5547 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5549 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5550 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5552 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5553 Delete. Add comment regarding this now-deleted target method.
5555 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5557 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5558 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5559 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5560 real PC and the page number (if it's within the memory bank window).
5561 (m68hc11_pseudo_register_write): Likewise when saving.
5562 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5563 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5564 (m68hc11_register_raw_size): And use 32-bit for it.
5565 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5566 16K memory bank is used by the prog; also use the virtual pc.
5568 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5570 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5571 (m68hc11_gdbarch_init): Install it in gdbarch.
5572 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5573 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5574 (MSYMBOL_SIZE): New for documentation.
5575 (insn_return_kind): Enum to specify how a function returns.
5576 (frame_extra_info): Cleanup and record the return mode.
5577 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5578 register in address computation.
5579 (m68hc11_get_return_insn): New to obtain the return instruction used
5581 (m68hc11_frame_init_saved_regs): Take into account the return
5582 instruction used by the function for far and interrupt functions.
5583 (m68hc11_init_extra_frame_info): Take into account page register.
5584 (m68hc11_frame_args_address): Adjust according to the return mode.
5585 (show_regs): Print page register only when it's used.
5587 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5589 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5590 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5591 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5593 (m68hc11_register_raw_size): Likewise.
5595 2002-08-13 Andrew Cagney <cagney@redhat.com>
5597 * i386-tdep.c (i386_register_name): Handle mmx registers.
5598 (mmx_regnum_p): New function.
5599 (i386_mmx_names): New array.
5600 (mmx_num_regs): New variable.
5601 (i386_pseudo_register_read): New function.
5602 (i386_pseudo_register_write): New function.
5603 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5605 * regcache.c (regcache_raw_read_unsigned): New function.
5606 (regcache_raw_read_signed): New function.
5607 * regcache.h (regcache_raw_read_unsigned): Declare.
5608 (regcache_raw_read_signed): Declare.
5610 2002-08-13 Andrew Cagney <cagney@redhat.com>
5612 * regcache.c (regcache_raw_read_as_address): Delete function.
5613 (regcache_cooked_read_signed): New function.
5614 (regcache_cooked_read_unsigned): New function.
5615 * regcache.h (regcache_cooked_read_signed): Declare.
5616 (regcache_cooked_read_unsigned): Declare.
5617 (regcache_raw_read_as_address): Delete declaration.
5619 * blockframe.c (generic_read_register_dummy): Use
5620 regcache_cooked_read_unsigned.
5621 * i386-tdep.c (i386_extract_struct_value_address): Use
5622 regcache_cooked_read_unsigned.
5624 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5627 double sizes according to ELF ABI flags.
5628 (gdbarch_tdep): Record elf_flags.
5630 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5632 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5633 (m6812_prolog): They can appear in 68HC12 function prologue.
5634 (m68hc11_frame_chain): Cleanup.
5636 2002-08-12 Andrew Cagney <cagney@redhat.com>
5638 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5640 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5641 (i386_linux_register_raw_size): Delete function.
5642 (i386_linux_init_abi): Update.
5643 * i386-tdep.c (i386_register_raw_size): Delete function.
5644 (i386_register_byte): Delete function.
5645 (i386_gdbarch_init): Update.
5646 (i386_register_size): Delete array.
5647 (i386_register_offset): Delete array.
5649 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5650 (REGISTER_RAW_SIZE): Delete macro.
5651 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5652 (REGISTER_BYTE): Delete macro.
5654 2002-08-11 Aidan Skinner <aidan@velvet.net>
5656 * ada-lang.c (ada_lookup_partial_symbol)
5657 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5658 prototype names so that grep ^func works properly.
5660 * ada-lang.c (ada_array_element_type)
5661 (ada_lookup_partial_symbol): Fix typos in parameter list.
5663 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5664 Fix prototype names so that grep ^func works properly.
5666 2002-08-10 Andrew Cagney <cagney@redhat.com>
5667 Elena Zannoni <ezannoni@redhat.com>
5668 Martin M. Hunt <hunt@redhat.com>
5670 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5671 (build_builtin_type_vec128i): Set the vector bit.
5672 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5673 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5674 (build_builtin_type_vec64): New function.
5675 (build_builtin_type_vec64i): New function.
5676 (build_gdbtypes): Initialize builtin_type_vec64 and
5677 builtin_type_vec64i.
5679 2002-08-09 Andrew Cagney <cagney@redhat.com>
5681 * regcache.c (regcache_dump): Compare the register offset
5683 * arch-utils.c (generic_register_byte): New function.
5684 * arch-utils.h (generic_register_byte): Declare.
5685 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5686 * gdbarch.h, gdbarch.c: Regenerate.
5688 2002-08-09 Andrew Cagney <cagney@redhat.com>
5690 * regcache.c: Include "gdbcmd.h"
5691 (_initialize_regcache): Add commands "maintenance print
5692 registers", "maintenance print raw-registers" and "maintenance
5693 print cooked-registers".
5694 (enum regcache_dump_what): Define.
5695 (dump_endian_bytes): New function.
5696 (regcache_dump): New function.
5697 (regcache_print): New function.
5698 (maintenance_print_registers): New function.
5699 (maintenance_print_raw_registers): New function.
5700 (maintenance_print_cooked_registers): New function.
5701 * Makefile.in (regcache.o): Update dependencies.
5703 2002-08-09 Michael Snyder <msnyder@redhat.com>
5705 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5706 (mips_push_arguments): Correct some comments. Use paddr_nz
5707 for printing addresses in debug output. Replace static
5708 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5709 (mips_n32n64_push_arguments): New function, cloned from
5710 mips_push_arguments and tuned for the n32/n64 ABI.
5711 (mips_push_register): Buffer needs dynamic allocation.
5712 (mips_print_register): Ditto.
5713 (do_gp_register_row): Ditto.
5714 (mips_store_return_value): Ditto.
5715 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5717 2002-08-09 Don Howard <dhoward@redhat.com>
5719 * memattr.c (mem_info_command): Print special case of upper bound
5720 as max CORE_ADDR + 1.
5722 2002-08-08 Michael Snyder <msnyder@redhat.com>
5724 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5725 returns structs by ref if they're too big to fit in two registers.
5727 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5729 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5731 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5732 mips_find_saved_regs().
5733 (mips_pop_frame): Likewise.
5735 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5737 * blockframe.c (frame_saved_regs_register_unwind): Revise
5738 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5741 2002-08-09 Grace Sainsbury <graces@redhat.com>
5743 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5744 T-packets; the 'a' is not taken as a register number.
5745 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5746 (remote_stopped_data_address): New functions; add to target
5748 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5749 prototypes to match other implementations of this
5750 function. replace integer argument with pointer -- the length
5751 field in the Z-packet is the length of what is pointed to or 1 if
5752 pointer is null. Add to target vector.
5753 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5757 * remote.c (remote_wait): Add support to extract optional
5758 watchpoint information from T-packet. Ignore unrecognized
5759 optional info in T-packet.
5760 (remote_async_wait): Ditto.
5762 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5764 * cli/cli-dump.c: Change fopen modes to use binary open modes
5765 as defined in include/fopen-bin.h throughout.
5767 2002-08-08 Michael Snyder <msnyder@redhat.com>
5769 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5771 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5773 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5774 assertion failure by returning early after a warning.
5776 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5778 * mips-tdep.c (mips_find_saved_regs): Make static.
5779 (mips_frame_init_saved_regs): New function.
5780 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5781 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5782 (mips_find_saved_regs): Delete declaration.
5784 2002-08-08 Grace Sainsbury <graces@redhat.com>
5786 * remote.c (remote_wait, remote_async_wait): Change
5787 thread_num from int to ULONGEST.
5788 (unpack_varlen_hex): Change result parameter from
5789 int * to ULONGEST *.
5791 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5793 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5794 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5796 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5798 2002-08-08 Andrew Cagney <cagney@redhat.com>
5800 * gcore.c (override_derive_stack_segment): Delete variable.
5801 (preempt_derive_stack_segment): Delete function.
5802 (derive_stack_segment): Delete function.
5803 (default_derive_stack_segment): Renamed to derive_stack_segment.
5804 (override_derive_heap_segment): Delete variable.
5805 (preempt_derive_heap_segment): Delete function.
5806 (derive_heap_segment): Delete function.
5807 (default_derive_heap_segment): Rename to derive_heap_segment.
5809 2002-08-06 Michael Snyder <msnyder@redhat.com>
5811 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5812 * mips-tdep.c (mips_EABI_use_struct_convention,
5813 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5814 New functions. (mips_use_struct_convention): Delete.
5815 (mips_gdbarch_init): set use_gdbarch_convention.
5817 2002-08-06 Michael Snyder <msnyder@redhat.com>
5819 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5820 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5821 mips_o32_reg_struct_has_addr): New functions.
5822 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5824 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5826 * regcache.c (pseudo_register): Delete function.
5827 (fetch_register): Delete function.
5828 (store_register): Delete function.
5829 (regcache_raw_read, legacy_read_register_gen): Use
5830 target_fetch_registers instead of fetch_register.
5831 (legacy_write_register_gen, regcache_raw_write): Use
5832 target_store_register instead of store_register.
5833 (write_register_bytes): Ditto.
5835 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5836 (STORE_PSEUDO_REGISTER): Delete.
5837 * gdbarch.h, gdbarch.c: Regenerate.
5839 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5841 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5842 write dump file binary.
5844 2002-08-05 Michael Snyder <msnyder@redhat.com>
5846 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5847 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5848 (mips_gdbarch_init): Set N32 target to be mips64.
5850 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5852 * frame.c (find_saved_register): Break out of loop once saved
5853 register address is found. Don't mention sparc in loop comment
5856 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5858 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5859 mips_default_saved_regsize to 8.
5861 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5863 * gcore.c: Do not include <sys/procfs.h>.
5864 * Makefile.in (gcore.o): Update dependencies.
5866 2002-08-06 Andrew Cagney <cagney@redhat.com>
5868 * configure.tgt: Make arc-*-* obsolete.
5869 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5870 * MAINTAINERS: Make arc-elf obsolete.
5871 * arc-tdep.c: Make file obsolete.
5872 * config/arc/arc.mt: Ditto.
5873 * config/arc/tm-arc.h: Ditto.
5875 2002-08-05 Theodore A. Roth <troth@verinet.com>
5877 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5879 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5881 * mcore-tdep.c (mcore_gdbarch_init): Use
5882 generic_unwind_get_saved_register instead of
5883 generic_get_saved_register.
5884 * v850-tdep.c (v850_gdbarch_init): Ditto.
5885 * frv-tdep.c (frv_gdbarch_init): Ditto.
5886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5887 * s390-tdep.c (s390_gdbarch_init): Ditto.
5888 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5889 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5890 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5892 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5894 * objfiles.h: Add missing #include "symfile.h"
5896 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5898 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5900 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5901 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5904 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5906 * NEWS: Cleanup and nitpick.
5908 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5910 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5912 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5914 * Makefile.in (gdbtk-bp.o): Update dependencies.
5915 (gdbtk-register.o): Ditto.
5916 (gdbtk-varobj.o): Ditto.
5918 2002-08-03 Andrew Cagney <cagney@redhat.com>
5920 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5921 m68hc11_fetch_pseudo_register.
5922 (m68hc11_pseudo_register_write): Replace
5923 m68hc11_store_pseudo_register.
5924 (m68hc11_gdbarch_init): Update.
5926 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5928 * gdbarch.sh: Include "gdb_string.h".
5929 * gdbarch.c: Regenerate.
5931 * regcache.c: Include "gdb_string.h".
5932 * ax-general.c: Ditto.
5934 * std-regs.c: Ditto.
5935 * fbsd-proc.c: Ditto.
5938 * Makefile.in (regcache.o): Update dependencies.
5939 (thread.o, gdbarch.o): Ditto.
5940 (ax-general.o, gdbarch.o): Ditto.
5941 (varobj.o, std-regs.o): Ditto.
5942 (fbsd-proc.o): Specify dependencies.
5944 2002-08-02 Andrew Cagney <cagney@redhat.com>
5946 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5948 (regcache_cooked_write): Ditto.
5950 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5952 * regcache.c (regcache_cooked_read): New function.
5953 (regcache_cooked_write): New function.
5954 (read_register_gen): Rewrite using regcache_cooked_read.
5955 (write_register_gen): Rewrite using regcache_cooked_write.
5957 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5960 2002-08-02 Andrew Cagney <cagney@redhat.com>
5962 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5963 Replace the architecture methods register_read and register_write.
5964 * gdbarch.h, gdbarch.c: Regenerate.
5965 * regcache.c (init_regcache_descr): Update.
5966 (read_register_gen): Update.
5967 (write_register_gen): Update.
5968 (supply_register): Update comment.
5970 * sh-tdep.c (sh_gdbarch_init): Update.
5971 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5972 `regcache' and `gdbarch' parameters. Make `buffer' a void
5973 pointer. Update code.
5974 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5975 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5976 void pointer. Update code.
5977 (sh64_register_write): Delete.
5978 (sh4_register_read): Delete.
5979 (sh64_register_read): Delete.
5980 (sh4_register_write): Delete.
5981 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5982 void pointer, `to' parameter a void pointer.
5983 (sh_sh64_register_convert_to_raw): Ditto.
5985 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5987 * mips-tdep.c (mips_register_virtual_type): Use architecture
5988 invariant return values.
5990 2002-08-01 Andrew Cagney <cagney@redhat.com>
5992 * linux-proc.c: Include "gdb_string.h".
5993 * Makefile.in (linux-proc.o): Update dependency list.
5995 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5997 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6000 2002-08-01 Grace Sainsbury <graces@redhat.com>
6002 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6003 to_insert_watchpoint, to_remove_watchpoint,
6004 to_stopped_by_watchpoint, to_stopped_data_address,
6005 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6006 target vecctor. Define their corresponding macros so they call
6009 * target.c: Add default and debug versions of for
6010 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6011 to_insert_watchpoint, to_remove_watchpoint,
6012 to_stopped_by_watchpoint, to_stopped_data_address,
6013 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6015 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6017 * mips-tdep.c (mips_register_virtual_type): New function.
6018 (mips_gdbarch_init): Register mips_register_virtual_type()
6019 with gdbarch machinery.
6020 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6021 this file instead of tm-bigmips.h.
6022 (MIPS_REGSIZE): Delete this macro.
6023 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6024 multiarch version in mips-tdep.c will be found.
6026 2002-08-01 Andrew Cagney <cagney@redhat.com>
6028 * NEWS: Menion that CHILL has been made obsolete.
6030 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6031 * stabsread.c (read_range_type): Ditto.
6032 * gdbtypes.h: Ditto.
6033 * language.c (binop_type_check): Ditto.
6034 (binop_result_type): Ditto.
6035 (integral_type): Ditto.
6036 (character_type): Ditto.
6037 (string_type): Ditto.
6038 (boolean_type): Ditto.
6039 (structured_type): Ditto.
6040 (lang_bool_type): Ditto.
6041 (binop_type_check): Ditto.
6042 * language.h (_LANG_chill): Ditto.
6043 * dwarfread.c (set_cu_language): Ditto.
6044 * dwarfread.c (CHILL_PRODUCER): Ditto.
6045 * dwarfread.c (handle_producer): Ditto.
6046 * expression.h (enum exp_opcode): Ditto.
6047 * eval.c: Ditto for comments.
6048 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6049 * expprint.c (print_subexp): Ditto.
6050 (print_subexp): Ditto.
6051 * valops.c (value_cast): Ditto.
6052 (search_struct_field): Ditto.
6053 * value.h (COERCE_VARYING_ARRAY): Ditto.
6054 * symfile.c (init_filename_language_table): Ditto.
6055 (add_psymbol_with_dem_name_to_list): Ditto.
6056 * valarith.c (value_binop): Ditto.
6058 * valops.c (value_slice): Ditto.
6059 * symtab.h (union language_specific): Ditto.
6060 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6061 (SYMBOL_DEMANGLED_NAME): Ditto.
6062 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6063 * defs.h (enum language): Ditto.
6064 * symtab.c (got_symtab): Ditto.
6065 * utils.c (fprintf_symbol_filtered): Ditto.
6067 * ch-typeprint.c: Make file obsolete.
6068 * ch-valprint.c: Make file obsolete.
6069 * ch-lang.h: Make file obsolete.
6070 * ch-exp.c: Make file obsolete.
6071 * ch-lang.c: Make file obsolete.
6073 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6075 (TARGET_FLAGS_TO_PASS): Ditto.
6076 (CHILLFLAGS): Obsolete.
6078 (CHILL_FOR_TARGET): Obsolete.
6079 (CHILL_LIB): Obsolete.
6080 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6082 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6083 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6085 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6088 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6090 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6091 This does not change anything at the moment, but will be helpful
6092 later when full Ada support is integrated.
6094 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6096 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6099 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6101 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6102 and save it in a local variable. Use variable in later test.
6104 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6106 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6107 test. (Thanks to Daniel Jacobowitz.)
6109 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6111 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6112 (mips_abi_strings): Add "n64".
6113 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6115 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6117 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6118 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6120 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6122 * utils.c (host_pointer_to_address, address_to_host_pointer):
6123 Use gdb_assert() instead of explicit call to internal_error().
6125 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6127 * Makefile.in (rs6000-nat.o): Update dependencies.
6129 From Nicholas Duffek:
6130 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6131 (aix-thread.o): New rule.
6132 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6133 * config/powerpc/aix432.mh: New file.
6135 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6137 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6138 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6139 (fetch_core_registers, ppc_linux_supply_gregset)
6140 (ppc_linux_supply_fpregset): New functions.
6141 (ppc_linux_regset_core_fns): New.
6142 (_initialize_ppc_linux_tdep): Call add_core_fns.
6143 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6144 and ppc_linux_supply_gregset.
6145 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6146 (supply_fpregset): Call ppc_linux_supply_fpregset.
6147 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6149 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6151 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6153 * symtab.c (lookup_symbol): Demangle before lowercasing.
6155 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6157 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6159 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6160 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6161 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6162 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6164 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6165 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6166 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6167 (avr-tdep.o, mon960-rom.o): Ditto.
6168 (aout_stabs_gnu_h): Define.
6169 (symtab_h): Remove $(gdb_obstack_h).
6171 2002-07-30 Jim Blandy <jimb@redhat.com>
6173 Patch from David Carlton <carlton@math.stanford.edu>:
6174 * gdbinit.in: Move the `dir' commands that add GDB's own source
6175 directory to the search path to the end, so that the `gdb' source
6176 directory will be searched first.
6178 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6180 * gdb_obstack.h: New file.
6181 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6182 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6183 * objfiles.h: Include "gdb_obstack.h".
6184 * Makefile.in (gdb_obstack_h): Define.
6185 (symtab_h): Add $(gdb_obstack_h).
6186 (objfiles_h): Add $(gdb_obstack_h).
6188 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6189 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6190 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6191 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6192 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6193 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6194 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6195 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6197 * Makefile.in (bcache.o): Update dependencies.
6198 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6199 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6200 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6201 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6202 (stabsread.o, symfile.o, symmisc.o): Ditto.
6203 (symtab.o, typeprint.o, macroexp.o): Ditto.
6204 (macrotab.o, mdebugread.o): Ditto.
6205 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6206 (coff_ecoff_h, aout_aout64_h): Define.
6207 (aout_stabs_gnu_h, libaout_h): Define.
6209 2002-07-29 Andrew Cagney <cagney@redhat.com>
6211 * regcache.c (struct regcache_descr): Rename nr_registers to
6212 nr_cooked_registers. Revise comments describing the structure
6214 (init_regcache_descr): Update.
6215 (init_legacy_regcache_descr): Update.
6216 (read_register_gen, write_register_gen): When a cooked register in
6217 the raw register range, directly access the value from the raw
6220 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6222 * z8k-tdep.c: Do not include "obstack.h".
6223 * h8300-tdep.c, h8500-tdep.c: Ditto.
6224 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6225 * valprint.c, v850-tdep.c: Ditto.
6226 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6227 * mn10200-tdep.c: Ditto.
6229 * Makefile.in (z8k-tdep.o): Update dependencies.
6230 (m68hc11-tdep.o, valprint.o): Ditto.
6231 (v850-tdep.o, d10v-tdep.o): Ditto.
6232 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6233 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6234 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6235 (sh_opc_h, gdb_sim_sh_h): Define.
6236 (elf_sh_h, elf_bfd_h): Define.
6237 (opcode_m68hc11_h): Define.
6238 (OPCODES_SRC, OPCODES_DIR): define.
6239 (OPCODES): Use $(OPCODES_DIR).
6240 (gdb_sim_d10v_h): Rename sim_d10v_h.
6241 (gdb_sim_arm_h): Rename sim_arm_h.
6243 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6245 * utils.c (host_pointer_to_address, address_to_host_pointer):
6246 Change internal_error() message to indicate function responsible
6249 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6251 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6252 calls to local_hex_string_custom().
6254 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6256 * irix5-nat.c: Move IRIX shared library support from here...
6257 * solib-irix.c: ...to here. Revised substantially to work with
6258 generic solib framework.
6260 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6261 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6262 * mips-irix-tdep.c: New file.
6264 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6265 (mips-irix-tdep.o, solib-irix.o): New rules.
6266 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6268 * config/mips/irix6.mt (TDEPFILES): Likewise.
6269 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6271 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6273 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6274 disabled (via ``#if 0'') includes.
6276 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6278 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6279 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6280 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6281 Add support for the fpscr register.
6282 * rs6000-nat.c (regmap, fetch_inferior_registers)
6283 (store_inferior_registers, fetch_core_registers): Likewise.
6285 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6287 * rs6000-nat.c (language.h): Include.
6288 (special_regs): Delete this array.
6289 (regmap): New function.
6290 (fetch_register, store_register): Use regmap() to map gdb
6291 register numbers to ptrace register numbers. Also, use
6292 outputs from regmap() to make decisions regarding type of
6293 ptrace() call to make. In particular, don't compare against
6294 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6295 (fetch_inferior_registers, store_inferior_registers): Where
6296 possible, obtain register numbers from tdep struct. Don't
6297 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6298 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6299 (LAST_UISA_SP_REGNUM): Delete.
6301 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6303 * rs6000-nat.c (ppc-tdep.h): Include.
6304 (fetch_registers, store_register, fetch_core_registers): Don't
6305 access registers[] directly. Instead, use supply_register() or
6306 regcache_collect() as appropriate.
6307 (find_toc_address): Format hex address with local_hex_string().
6309 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6311 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6314 2002-07-24 Tom Tromey <tromey@redhat.com>
6316 * jv-exp.y: Marked all strings with _().
6317 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6319 (MethodInvocation, CastExpression, parse_number, yyerror,
6320 java_type_from_name, push_expression_name, yylex): Typo fixes.
6322 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6324 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6325 (tee_file_flush, tee_file_write, tee_file_fputs)
6326 (tee_file_isatty): New.
6327 * ui-file.h (tee_file_new): Add prototype.
6329 2002-07-24 Aidan Skinner <aidan@velvet.net>
6331 * ada-lang.c: Change k&r style function definitions to prototyped
6333 * ada-typeprint.c: Change k&r style function definitions to prototyped
6335 * ada-valprint.c: Change k&r style function definitions to prototyped
6338 2002-07-24 Andrew Cagney <cagney@redhat.com>
6340 * README: Remove reference to remote-bug.
6341 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6343 (m88k-nat.o): Delete rule.
6344 (m88k-tdep.o): Delete rule.
6345 (remote-bug.o): Delete rule.
6346 * MAINTAINERS: Mark as obsolete.
6347 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6348 * m88k-tdep.c: Make file obsolete.
6349 * config/m88k/m88k.mh: Ditto.
6350 * config/m88k/delta88v4.mh: Ditto.
6351 * config/m88k/delta88v4.mt: Ditto.
6352 * config/m88k/delta88.mt: Ditto.
6353 * config/m88k/delta88.mh: Ditto.
6354 * remote-bug.c: Ditto.
6355 * config/m88k/tm-delta88.h: Ditto.
6356 * config/m88k/nm-delta88v4.h: Ditto.
6357 * config/m88k/xm-delta88.h: Ditto.
6358 * config/m88k/xm-dgux.h: Ditto.
6359 * config/m88k/tm-m88k.h: Ditto.
6360 * config/m88k/nm-m88k.h: Ditto.
6361 * config/m88k/tm-delta88v4.h: Ditto.
6362 * m88k-nat.c: Ditto.
6363 * cxux-nat.c: Ditto.
6364 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6365 and m88*-*-* obsolete.
6366 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6369 2002-07-24 Andrew Cagney <cagney@redhat.com>
6371 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6372 constant. Same for local pointer variables.
6373 (extract_signed_integer): Ditto.
6374 * defs.h (extract_unsigned_integer): Update.
6375 (extract_signed_integer): Update.
6377 2002-07-24 Andrew Cagney <cagney@redhat.com>
6379 * regcache.c (regcache_raw_write): Change buf parameter to a
6380 constant void pointer.
6381 (regcache_raw_read): Change buf parameter to a void pointer.
6382 (legacy_write_register_gen): Change myaddr parameter a constant
6384 (supply_register): Change val parameter to a const void pointer.
6385 * regcache.h (regcache_raw_write): Update declaration.
6386 (regcache_raw_read): Update declaration.
6387 (supply_register): Update declaration.
6389 2002-07-24 Tom Tromey <tromey@redhat.com>
6391 * defs.h (gdb_readline_wrapper): Declare.
6392 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6393 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6394 * top.c (gdb_readline_wrapper): New function.
6395 (command_line_input): Use it.
6397 2002-07-24 Andrew Cagney <cagney@redhat.com>
6399 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6400 regcache_read and regcache_write.
6401 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6402 * regcache.c: Update.
6403 * sh-tdep.c (sh64_push_arguments): Update comment.
6404 (sh_pseudo_register_read): Update.
6405 (sh_pseudo_register_write): Update.
6406 (sh4_register_read): Update.
6407 (sh4_register_write): Update.
6408 (sh64_pseudo_register_read): Update.
6409 (sh64_pseudo_register_write): Update.
6410 (sh64_register_read): Update.
6411 (sh64_register_write): Update.
6412 * i386-tdep.c (i386_extract_return_value): Update.
6413 (i386_extract_struct_value_address): Update.
6414 (i386_extract_return_value): Update.
6415 * blockframe.c (generic_read_register_dummy): Update.
6416 (generic_call_dummy_register_unwind): Update
6417 * infrun.c (write_inferior_status_register): Update.
6419 2002-07-23 Jim Blandy <jimb@redhat.com>
6421 * parser-defs.h (expression_context_pc): Make this extern.
6422 (Thanks to Michael Snyder.)
6424 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6426 GDB 5.2.1 released from 5.2 branch.
6427 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6428 * README: Update to mention 5.2.1.
6430 2002-07-23 Mark Salter <msalter@redhat.com>
6432 * remote.c (remote_read_bytes): Fix check for error.
6434 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6436 * aix-thread.c (language.h): Include.
6437 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6438 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6439 Print newlines at end of debug messages.
6440 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6441 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6443 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6445 * aix-thread.c (ppc-tdep.h): Include.
6446 (special_register_p): New function.
6447 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6448 (store_regs_user_thread): Use register number information from
6449 gdbarch_tdep struct instead of hardcoded offsets relative to
6450 FIRST_UISA_SP_REGNUM.
6451 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6452 special_register_p() instead of using FPLAST_REGNUM and
6453 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6454 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6455 will be MQ's register number.
6457 2002-07-22 Michael Snyder <msnyder@redhat.com>
6459 * aix-thread.c (ops): Rename to aix_thread_ops.
6460 (base_ops): Rename to base_target.
6461 (ops_attach): Rename to aix_thread_attach.
6462 (ops_detach): Rename to aix_thread_detach.
6463 (ops_resume): Rename to aix_thread_detach.
6464 (ops_wait): Rename to aix_thread_wait.
6465 (ops_kill): Rename to aix_thread_kill.
6466 (init_ops): Rename to init_aix_thread_ops.
6467 (ops_fetch_register): Rename to aix_thread_fetch_register.
6468 (ops_store_register): Rename to aix_thread_store_register.
6469 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6470 (ops_thread_alive): Rename to aix_thread_thread_alive.
6471 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6472 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6473 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6474 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6475 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6476 (store_regs_lib): Rename to store_regs_user_thread.
6477 (store_regs_kern): Rename to store_regs_kernel_thread.
6479 2002-07-22 Michael Snyder <msnyder@redhat.com>
6481 * aix-thread.c (ops_prepare_to_store): Eliminate.
6482 (init_ops): Don't initialize ops.prepare_to_store.
6483 (store_regs_kern): Pre-fetch register buffers from child,
6484 because some registers may not be in the cache. Copy
6485 regs from register cache only if they are cached.
6486 (store_regs_lib): Copy regs from register cache only
6488 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6489 fill_gprs64): Ditto.
6491 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6493 * aix-thread.c (gdb_assert.h): Include.
6494 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6495 register sizes (from register cache) match size of buffer holding
6497 (fill_sprs32): Change parameter types to match those in the ptrace()
6499 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6500 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6502 2002-07-22 Michael Snyder <msnyder@redhat.com>
6504 * aix-thread.c (supply_sprs64): Cosmetic change.
6505 (supply_sprs32): Cosmetic change.
6506 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6507 (fill_sprs64): Use regcache_collect instead of read_register.
6508 (store_regs_lib): Use regcache_collect instead of
6509 read_register. Use fill_sprs32 instead of fill_sprs64,
6510 if debugging a 32-bit architecture.
6511 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6512 out of the register cache, instead of passing a pointer into
6513 the register cache directly to ptrace. Use regcache_collect
6514 insteaad of read_register.
6515 (ops_prepare_to_store): Use target_read_registers instead
6516 of read_register_bytes.
6518 2002-07-20 Aidan Skinner <aidan@velvet.net>
6520 * MAINTAINERS: Add self under write after approval.
6522 2002-07-20 Aidan Skinner <aidan@velvet.net>
6524 * ada-tasks.c: Change k&r style function definitions to prototyped
6527 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6529 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6530 * x86-64-tdep.c: Include "objfiles.h".
6531 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6532 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6534 2002-07-17 Michal Ludvig <michal@suse.cz>
6536 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6537 (update_context): Initialise cfa variable.
6539 2002-07-17 Michael Snyder <msnyder@redhat.com>
6541 * aix-thread.c: Shorten some long lines.
6542 Bring comments into line with code spec.
6544 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6546 * infrun.c: Re-indent using gdb_indent.sh.
6548 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6550 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6551 Leave the indentation temporarily untouched, to minimize the diffs.
6553 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6555 * stabsread.c: Make os9k sections of the code obsolete,
6557 * stabsread.h: Make os9k sections of the code obsolete.
6559 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6561 * linux-low.c (regsets_store_inferior_registers): Add free()
6562 at the end of a loop to prevent memory leak.
6563 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6564 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6565 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6567 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6569 2002-07-17 Jim Blandy <jimb@redhat.com>
6571 * macrocmd.c (info_macro_command): Remove newline from error
6574 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6576 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6577 (sh_gdbarch_init): Use it for sh-dsp.
6579 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6581 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6582 64-bit DWARF2 format.
6584 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6586 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6587 <sys/proc.h> when not available.
6589 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6591 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6592 * stabsread.c: Make os9k sections of the code obsolete.
6593 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6594 * config/i386/i386os9k.mt: Make file obsolete.
6595 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6596 (COMMON_OBS): Remove os9kread.o
6597 (SFILES): Remove os9kread.c.
6598 (os9kread.o, remote-os9k.o): Make target obsolete.
6599 * remote-os9k.c: Make file obsolete.
6600 * os9kread.c: Make file obsolete.
6603 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6605 * NEWS: Mention that the FR30 has been made obsolete.
6606 * fr30-tdep.c: Make file obsolete.
6607 * config/fr30/tm-fr30.h: Ditto.
6608 * config/fr30/fr30.mt: Ditto.
6609 * configure.tgt: Make fr30-*-elf obsolete.
6610 * MAINTAINERS: Make fr30-elf obsolete.
6612 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6614 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6615 found is not inside a section.
6617 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6619 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6621 (pdc_realloc): Use xrealloc() instead of realloc().
6623 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6625 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6626 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6627 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6630 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6632 * aix-thread.c (ptrace_check): Eliminate goto.
6633 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6636 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6638 * aix-thread.c (gdbcmd.h): Include.
6639 (DEBUG, DBG, DBG2, dbg): Eliminate.
6640 (debug_aix_thread): New static global.
6641 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6642 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6643 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6644 invocations to DBG and DBG2 macros to test against
6645 ``debug_aix_thread'' and call fprintf_unfiltered().
6646 (_initialize_aix_thread): Add new command "set debug aix-thread".
6648 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6650 From Gerhard Tonn <TON@de.ibm.com>:
6651 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6652 instead of supply_register.
6654 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6656 * dwarf2cfi.c: Include "gdb_assert.h".
6657 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6659 (update_context): Do not use __func__. Add missing ``break''.
6660 (update_context): Do not use __func__.
6662 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6664 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6665 and its setting. Set gdbarch instruction printing functions
6666 directly. For non-rs6000 case use new function
6667 gdb_print_insn_powerpc.
6668 (gdb_print_insn_powerpc): New function.
6670 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6672 * NEWS: Mention that the d30v has been marked obsolete.
6673 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6674 * configure.tgt: Mark d30v-*-* as obsolete.
6675 * d30v-tdep.c: Mark file as obsolete.
6676 * config/d30v/d30v.mt: Ditto.
6677 * config/d30v/tm-d30v.h: Ditto.
6679 2002-07-13 Aidan Skinner <aidan@velvet.net>
6681 * ada-tasks.c (add_task_entry): replace calls to
6682 malloc() with xmalloc
6683 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6685 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6686 ada_finish_decode_line_1, all_sals_for_line
6687 ada_breakpoint_rewrite): replace calls to free() with xfree()
6689 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6691 From Nicholas Duffek (with minor changes by Martin Hunt,
6692 Louis Hamilton, and Kevin Buettner):
6693 * aix-thread.c: New file.
6695 2002-07-12 Petr Sorfa <petrs@caldera.com>
6697 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6698 complaint for invalid attribute class or form.
6699 (read_func_scope): DW_AT_frame_base
6700 better handling of DW_AT_block*.
6701 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6702 better handling of DW_AT_block*.
6703 (read_common_block): DW_AT_location
6704 better handling of DW_AT_block*.
6705 (read_partial_die): DW_AT_location better handling
6707 (new_symbol): DW_AT_external better handling of
6708 DW_AT_block*. Proper initialization of variable
6710 (attr_form_is_block): New function that returns true
6711 if the attribute's form is of DW_FORM_block*.
6713 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6715 * valops.c (find_method_list): Remove comment about
6716 removed STATIC_MEMFUNCP argument.
6717 (value_find_oload_method_list): Likewise.
6719 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6721 From Nicholas Duffek:
6722 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6723 target_new_objfile_hook.
6725 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6727 From Nicholas Duffek:
6728 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6731 2002-07-12 Andrew Cagney <cagney@redhat.com>
6733 * MAINTAINERS: Mention --enable-sim-build-warnings.
6734 (m68hc11-elf): Disable sim build warnings.
6735 (m32r-elf): Mark as broken obsolete candidate.
6736 (x86_64-linux-gnu): Mark as buildable with -Werror.
6737 (arm-elf): Change -w to ``,'' which enables warnings but not
6740 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6742 * bcache.h: Update copyright.
6743 (struct bstring, struct bcache): Move definition to "bcache.c".
6744 Replaced by opaque declaration.
6745 (bcache_xfree): Replace free_bcache.
6746 (bcache_xmalloc, bcache_memory_used): Declare.
6748 * bcache.c: Update copyright.
6749 (struct bstring, struct bcache): Moved to here from "bcache.h".
6751 (bcache_xmalloc, bcache_memory_used): New functions.
6752 (bcache_xfree): Replace function free_bcache.
6754 * Makefile.in (objfiles.o): Add $(bcache_h).
6755 (objfiles_h): Remove $(bcache_h).
6756 (symfile.o): Add $(bcache_h).
6758 * symmisc.c: Update copyright.
6759 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6760 (print_objfile_statistics): Use bcache_memory_used.
6762 * symfile.c: Include "bcache.h".
6763 (reread_symbols): Use bcache_xfree.
6764 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6765 (add_psymbol_to_list): Pass psymbol_cache by value.
6766 (add_psymbol_with_dem_name_to_list): Ditto.
6768 * objfiles.h: Update copyright.
6769 (struct bcache): Declare opaque. Do not include "bcache.h".
6770 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6772 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6774 * objfiles.c: Include "bcache.h". Update copyright.
6775 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6777 (free_objfile): Use bcache_xfree.
6779 2002-07-11 Grace Sainsbury <graces@redhat.com>
6781 * monitor.c (monitor_fetch_register): Make name a constant.
6782 (monitor_store_register): Same.
6784 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6786 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6787 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6788 (finish_block) For non-function blocks, hash the symbol table. For
6789 function blocks, mark the symbol table as unhashed.
6790 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6791 (msymbol_hash_iw): Likewise.
6792 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6794 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6795 (lookup_minimal_symbol): Likewise for both.
6796 * symtab.h (struct block): Add `hashtable' flag. Comment the
6798 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6799 (ALL_BLOCK_SYMBOLS): Update.
6800 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6801 (struct symbol): Add `hash_next' pointer.
6802 * symtab.c (lookup_block_symbol): Search using the hash table when
6804 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6805 (search_symbols, find_addr_symbol): Likewise.
6807 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6808 (read_dst_symtab): Likewise.
6809 * jv-lang.c (get_java_class_symtab): Likewise.
6810 * mdebugread.c: Include "gdb_assert.h".
6811 (shrink_block): Assert that the block being modified is not hashed.
6812 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6813 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6815 (dump_symtab): Recognize hashed blocks.
6816 * printcmd.c (print_frame_args): Assert that function blocks do not
6817 have hashed symbol tables.
6818 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6819 (fill_in_ada_prototype, debug_print_block): Likewise.
6820 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6822 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6824 * stack.c (print_frame): Use result of frame_address_in_block()
6825 instead of fi->pc when evaluating symbols.
6826 (backtrace_command_1): Ditto.
6828 2002-07-11 Andrew Cagney <cagney@redhat.com>
6830 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6833 * arm-tdep.c (arm_register_name): Make return type constant.
6835 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6837 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6839 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6840 * s390-tdep.c (s390_fp_regnum): Ditto.
6841 (s390_read_fp): Ditto.
6842 (s390_pop_frame): Ditto.
6843 (_initialize_s390_tdep): Ditto.
6844 * remote.c (get_remote_state): Ditto.
6845 * procfs.c (mappingflags): Ditto.
6846 * memattr.c (_initialize_mem): Ditto.
6847 * mcore-tdep.c (mcore_pop_frame): Ditto.
6848 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6849 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6850 * language.c (set_case_str): Ditto.
6851 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6852 * frv-tdep.c (new_variant): Ditto.
6853 (frv_stopped_data_address): Ditto.
6854 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6855 (context_alloc): Ditto.
6856 (frame_state_alloc): Ditto.
6857 (unwind_tmp_obstack_init): Ditto.
6858 (unwind_tmp_obstack_free): Ditto.
6859 (cfi_read_fp): Ditto.
6860 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6861 (cris_pop_frame): Ditto.
6862 * c-lang.c (scanning_macro_expansion): Ditto.
6863 (finished_macro_expansion): Ditto.
6864 (c_preprocess_and_parse): Ditto.
6865 * gdbarch.sh: Ditto.
6866 * gdbarch.h, gdbarch.c: Regenerate.
6867 * config/mn10200/tm-mn10200.h: Adjust indentation.
6868 * target.c: Adjust indentation.
6869 * symtab.h: Adjust indentation.
6870 * stabsread.h: Adjust indentation.
6871 * remote-es.c: Adjust indentation.
6872 * os9kread.c: Adjust indentation.
6874 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6876 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6877 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6879 2002-07-10 Grace Sainsbury <graces@redhat.com>
6881 * NEWS: Mention m68k, mcore multi-arching.
6882 * MAINTAINERS: Change status of m68k, mcore to reflect
6885 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6887 * valops.c (find_overload_match): Free oload_syms.
6889 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6891 Define HAVE_SYS_PROC_H if sys/proc.h exists
6892 * configure.in: Add check for sys/proc.h
6893 * config.in: Regenerate.
6894 * configure: Regenerate.
6896 2002-07-09 Grace Sainsbury <graces@redhat.com>
6898 * config/m68k/tm-m68k.h: Remove macros wrapped in
6899 #if !GDB_MULTI_ARCH.
6901 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6903 * config.in, configure: Regenerate.
6905 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6907 * dwarf2cfi.c: Include "gcore.h".
6908 (execute_stack_op): Fix implementation of the
6909 DW_OP_deref and DW_OP_deref_size operators by letting do their
6910 lookup in the target.
6912 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6914 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6915 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6918 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6920 Fix PR gdb/595, gdb/602
6921 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6922 Don't call value_cast, just read the vtable pointer; update comments
6925 2002-07-05 Grace Sainsbury <graces@redhat.com>
6927 * config/mcore/tm-mcore.h: Remove file.
6928 * config/mcore/mcore.mt: Remove definition of TM_FILE
6929 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6931 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6933 * i386bsd-tdep.c: Include "gdb_string.h".
6935 2002-07-04 Grace Sainsbury <graces@redhat.com>
6937 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6938 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6940 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6941 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6942 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6943 (RETVAL_REGNUM): Move macros from tm-mcore.h
6944 (mcore_reg_struct_has_addr): New function.
6945 (mcore_gdbarch_init): Added initializations for the macros removed
6948 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6950 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6951 traditonal string branding within the ELF header.
6953 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6955 * symtab.c (remove_params): New function.
6956 (make_symbol_overload_list): Use it instead of cplus_demangle.
6957 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6959 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6961 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6963 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6965 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6966 and tdep->sigtramp_end.
6967 * i386obsd-nat.c: New file.
6968 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6970 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6971 Don't call get_current_frame().
6973 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6975 * i386-nat.c (child_post_startup_inferior): New function
6976 calling i386_cleanup_dregs if
6977 I386_USE_GENERIC_WATCHPOINTS is defined.
6978 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6979 conditional to acknowledge that i386-nat.c has its
6980 own child_post_startup_inferior function.
6982 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6984 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6985 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6986 instead of MAX_REGISTER_RAW_SIZE.
6987 (i386_extract_return_value, i386_extract_struct_value_address):
6988 Convert to use regcache.
6989 (i386_gdbarch_init): Set max_register_raw_size and
6990 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6991 Set extract_return_value and extract_struct_value_address instead
6992 of their deprecated variants.
6994 Convert i386 target to generic dummy frames.
6995 * i386-tdep.c: Include "symfile.h".
6996 (i386_frameless_signal_p): Consider a function to be frameless if
6997 the pc points at the first instruction of the function.
6998 (i386_frame_chain): Handle (generic) call dummies.
6999 (i386_frame_saved_pc): Likewise.
7000 (i386_frame_init_saved_regs): Remove code dealing with call
7001 dummies on the stack.
7002 (i386_push_dummy_frame): Removed.
7003 (i386_call_dummy_words): Removed.
7004 (i386_fix_call_dummy): Removed.
7005 (i386_push_return_address): New function.
7006 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7007 parameter, and don't call get_current_frame.
7008 (i386_pop_frame): New function.
7009 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7010 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7011 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7012 call_dummy_length to 0, set call_dummy_words to NULL, set
7013 sizeof_call_dummy_words to 0, set fix_call_dummy to
7014 generic_fix_call_dummy, set pc_in_call_dummy to
7015 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7016 generic_push_dummy_frame, set push_return_address to
7017 i386_push_return_address and set frame_chain_valid to
7018 generic_file_frame_chain_valid.
7020 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7022 * gdbarch.sh (struct regcache): Add opaque declaration.
7023 (EXTRACT_RETURN_VALUE): New architecture method.
7024 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7025 * gdbarch.h, gdbarch.c: Regenerate.
7026 * arch-utils.c (legacy_extract_return_value): New function.
7027 * arch-utils.h (legacy_extract_return_value): Declare.
7028 * values.c (value_being_returned): Re-enable code handling
7029 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7030 deprecated_grub_regcache_for_registers call to block handling
7031 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7032 (EXTRACT_RETURN_VALUE): Do not define.
7034 2002-07-03 Grace Sainsbury <graces@redhat.com>
7036 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7037 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7038 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7039 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7040 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7041 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7042 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7043 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7044 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7045 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7046 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7047 argument so the function fits the prototype in the architecture
7049 (mcore_pop_frame): Remove argument so the function fits the
7050 prototype. Use get_current_frame instead of the argument.
7051 (mcore_push_arguments): Change type of struct_return so the
7052 function can be used in the architecture vector.
7053 (mcore_store_struct_return): Add.
7054 (mcore_frame_init_saved_regs): Add.
7055 (mcore_gdbarch_init): Add function calls to replace the macros
7056 removed from tm-mcore.h
7058 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7060 * infcmd.c (print_return_value): Remove compatibility code calling
7061 deprecated_grub_regcache_for_registers.
7063 * values.c: Include "regcache.h".
7064 (value_being_returned): Update. Use
7065 deprecated_grub_regcache_for_registers to extract the register
7067 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7068 ``struct regcache''.
7069 * Makefile.in (values.o): Add dependency on $(regcache_h).
7071 * inferior.h (run_stack_dummy): Change type of second parameter to
7072 a ``struct regcache''.
7073 * valops.c (hand_function_call): Change type of retbuf to ``struct
7074 regcache''. Allocate using regcache_xmalloc, clean using
7075 make_cleanup_regcache_xfree.
7076 * infcmd.c (run_stack_dummy): Update. Use
7077 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7079 * regcache.c (do_regcache_xfree): New function.
7080 (make_cleanup_regcache_xfree): New function.
7081 * regcache.h (make_cleanup_regcache_xfree): Declare.
7083 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7085 * event-top.c (command_line_handler): Don't read past
7086 beginning of buffer.
7088 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7090 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7092 (varobj_create): Store frame_id for root.
7093 (varobj_gen_name): Use xasprintf.
7094 (varobj_update): Save and restore frame using get_frame_id() and
7096 (create_child): Use xasprintf.
7097 (new_root_variable): Initialize frame_id.
7098 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7099 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7100 to prevent memory leak.
7102 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7104 * valops.c (hand_function_call): Move declaration of retbuf to
7105 start of function, allocate using malloc, add a cleanup but before
7106 the inf_status cleanup, cleanup the buffer. Rename local variable
7107 old_chain to inf_status_cleanup.
7109 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7111 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7113 * cli/cli-decode.c (cmd_func_p): New function.
7114 (cmd_func): New function.
7116 * command.h: Add cmd_func() and cmd_func_p().
7118 2002-07-03 Grace Sainsbury <graces@redhat.com>
7120 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7121 (REGISTER_SIZE): Remove.
7122 (MAX_REGISTER_RAW_SIZE): Remove.
7123 (REGISTER_VIRTUAL_TYPE): Remove.
7124 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7125 (REGISTER_NAME): Remove.
7126 (USE_GENERIC_DUMMY_FRAMES): Remove.
7127 (CALL_DUMMY): Remove.
7128 (CALL_DUMMY_START_OFFSET): Remove.
7129 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7130 (CALL_DUMMY_LOCATION): Remove.
7131 (FIX_CALL_DUMMY): Remove.
7132 (CALL_DUMMY_ADDRESS): Remove.
7133 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7134 (SAVE_DUMMY_FRAME_TOS): Remove.
7135 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7136 (mcore_register_virtual_type): New function.
7137 (mcore_register_byte): New function.
7138 (mcore_register_size): New function.
7139 (mcore_register_name): New function.
7140 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7141 macros removed from tm-mcore.h.
7142 (mcore_dump_tdep): Add.
7143 (_initialize_mcore_tdep): Add gdbarch_register call.
7145 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7147 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7148 frameless_look_for_prologue, such that we actually call this
7151 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7153 * frame.h (frame_address_in_block): New function.
7155 * blockframe.c (frame_address_in_block): New function extracted
7156 from get_frame_block().
7157 (get_frame_block): Use frame_address_in_block().
7158 (block_innermost_frame): Use frame_address_in_block() to match
7159 the frame pc address against the block boundaries rather than
7160 the frame pc directly. This prevents a failure when a frame pc
7161 is actually a return-address pointing immediately after the end
7164 2002-07-02 Grace Sainsbury <graces@redhat.com>
7166 * MAINTAINERS: Add self under write after approval.
7168 2002-07-02 Grace Sainsbury <graces@redhat.com>
7170 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7171 used in architecture vector. The default is
7172 m68k_local_breakpoint_from_pc.
7173 (m68k_local_breakpoint_from_pc): Add.
7174 (enum): Add register numbers from tm-m68k.h.
7175 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7177 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7178 GDB_MULTI_ARCH_PARTIAL.
7179 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7180 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7182 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7183 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7184 to enum in m68k-tdep.c
7186 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7188 * solib-osf.c (open_map): Compute the list of shared libraries
7189 loaded by the inferior, rather than the list of libraries loaded
7190 by GDB itself. Otherwise, GDB ends up reading the symbols from
7191 the wrong shared libraries...
7193 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7195 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7196 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7198 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7200 (FRAMELESS_SIGNAL): Remove function.
7201 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7202 i386_linux_saved_pc_after_call): Removed.
7203 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7204 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7205 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7207 * i386-tdep.c (i386_frameless_signal_p): New function.
7208 (i386_frame_chain): Deal with frameless signals.
7209 (i386_sigtramp_saved_sp): New function.
7210 (i386_frame_saved_pc): Deal with frameless signals.
7211 (i386_saved_pc_after_call): Make sure the correct value is
7212 returned just after entry into a sigtramp.
7213 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7214 i386fbsd4_sc_sp_offset): New variables.
7215 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7216 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7217 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7218 similiar to what we already did for sc_pc_offset.
7219 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7222 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7224 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7226 * config/i386/tm-x86-64linux.h: New.
7227 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7229 * config/i386/nm-x86-64.h: Rename to ...
7230 * config/i386/nm-x86-64linux.h: ... this one.
7231 * config/i386/x86-64linux.mh: Reflect the above change.
7233 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7235 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7236 with sigcontext_addr. Add sc_sp_offset.
7237 (i386bsd_sigtramp_saved_pc): Remove prototype.
7238 (i386bsd_sicontext_addr): Add prototype.
7239 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7240 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7241 (i386_svr4_sigtramp_saved_pc): Removed.
7242 (i386_svr4_sigcontext_addr): New function.
7243 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7244 Initialize tdep->sigcontext_addr instead. Initialize
7245 tdep->sc_pc_offset and tdep->sc_sp_offset.
7246 (i386_gdbarch_init): Likewise.
7247 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7249 (i386bsd_sigtramp_saved_pc): Remove function.
7250 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7251 Initialize tdep->sigcontext_addr instead. Initialize
7253 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7254 of tdep->sigtramp_saved_pc.
7255 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7256 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7259 * i386-tdep.c (i386_frameless_function_invocation,
7260 i386_frame_num_args, i386_frame_init_saved_regs,
7261 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7262 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7263 i386_extract_return_value, i386_store_return_value,
7264 i386_extract_struct_value_address, i386_register_virtual_type,
7265 i386_register_convertible, i386_register_convert_to_virtual,
7266 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7267 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7270 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7272 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7274 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7275 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7276 this macro. Include "value.h".
7278 2002-06-30 Aidan Skinner <aidan@velvet.net>
7280 * ada-exp.tab.c: remove as it's a generated file
7281 * ada-lex.c: remove as it's a generated file
7283 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7285 * config/i386/tm-i386.h (struct frame_info, struct
7286 frame_saved_regs, struct value, struct type): Remove forward
7289 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7290 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7291 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7292 (FILL_FPXREGSET): Define.
7294 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7296 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7297 i[3456]86-*-netbsd* case.
7298 * config/i386/tm-obsd.h: Removed.
7299 * config/i386/obsd.mt: Removed.
7300 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7302 (MH_CFLAGS): Add -DYYDEBUG=0.
7304 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7305 i386nbsd_sc_pc_offset on OpenBSD too.
7307 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7308 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7309 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7311 * i386bsd-tdep.c: Include "arch-utils.h".
7312 (i386bsd_aout_in_solib_call_trampoline): New function.
7313 (i386bsd_init_abi): Set in_solib_call_trampoline to
7314 i386bsd_aout_in_solib_call_trampoline.
7315 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7316 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7318 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7320 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7321 (struct obstack, struct bcache): Add opaque declarations.
7322 * Makefile.in (macrotab_h): Update
7324 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7326 * blockframe.c (generic_find_dummy_frame): Change return type to
7327 ``struct regcache''.
7328 (struct dummy_frame): Replace field ``registers'' with regcache, a
7329 struct regcache object.
7330 (generic_find_dummy_frame): Update.
7331 (generic_push_dummy_frame): Update. Use regcache_xfree,
7332 regcache_xmalloc and regcache_cpy.
7333 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7335 (deprecated_generic_find_dummy_frame): Update.
7336 (generic_read_register_dummy): Update. Use
7337 regcache_read_as_address.
7338 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7339 (generic_get_saved_register): Update. Use regcache_read.
7341 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7343 * Makefile.in (objfiles_h): Add $(bcache_h).
7344 * objfiles.h: Include "bcache.h".
7346 * Makefile.in (symtab_h): Remove $(bcache_h).
7347 * symtab.h: Do not include "bcache.h".
7349 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7351 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7352 generic_func_frame_chain_valid.
7354 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7356 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7357 * config/i386/tm-fbsd.h: Likewise.
7359 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7361 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7362 generic_unwind_get_saved_register.
7364 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7366 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7367 * regcache.c (supply_register): Add missing argument to
7368 register_buffer call.
7370 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7372 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7373 Solaris /bin/grep does not not like it. From Peter Schauer.
7375 2002-06-26 Tom Tromey <tromey@redhat.com>
7377 * command.h (add_setshow_cmd): Declare.
7378 (add_setshow_cmd_full): Declare.
7379 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7380 returns void. Use add_setshow_cmd_full.
7381 (add_setshow_cmd_full): New function.
7382 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7383 (add_setshow_boolean_cmd): Likewise.
7385 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7387 * config/vax/tm-vax.h: Protect from multiple inclusion.
7388 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7389 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7390 * config/vax/tm-vaxbsd.h: ...here. New file.
7391 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7393 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7395 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7396 (BELIEVE_PCC_PROMOTION): Remove.
7397 (AP_REGNUM): Move to...
7398 * config/vax/nm-vax.h: ...here.
7399 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7400 (vax_breakpoint_from_pc): New function.
7401 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7402 and gdbarch_believe_pcc_promotion.
7404 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7406 * Makefile.in (vax_tdep_h): Define.
7407 (vax-tdep.o): Use $(vax_tdep_h).
7408 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7409 (vax_dump_tdep): New function.
7410 (_initialize_vax_tdep): Register vax_dump_tdep.
7411 * vax-tdep.h: Include osabi.h.
7412 (struct gdbarch_tdep): New.
7414 2002-06-26 Andrew Cagney <cagney@redhat.com>
7416 * frame.h (deprecated_generic_find_dummy_frame): Rename
7417 generic_find_dummy_frame.
7418 * blockframe.c (generic_find_dummy_frame): Make static.
7419 (deprecated_generic_find_dummy_frame): New function.
7420 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7421 generic_find_dummy_frame with deprecated_find_dummy_frame.
7422 (sh64_nofp_frame_init_saved_regs): Ditto.
7423 (sh_fp_frame_init_saved_regs): Ditto.
7424 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7425 (s390_frame_chain): Ditto.
7426 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7428 2002-06-26 Grace Sainsbury <graces@redhat.com>
7430 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7431 gdbarch vector are at the top.
7433 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7434 (FRAME_ARGS_ADDRESS): Remove.
7435 (FRAME_LOCALS_ADDRESS): Remove.
7436 (FRAME_NUM_ARGS): Remove.
7437 (FRAME_ARGS_SKIP): Remove.
7438 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7439 (m68k_gdbarch_init): Add gdbarch initializations for macros
7440 undefined in tm-m68k.h
7442 2002-06-26 Grace Sainsbury <graces@redhat.com>
7444 * monitor.h: Add the function regname to monitor_ops
7445 structure. This way NUM_REGS does not have to be a constant.
7446 * monitor.c (monitor_fetch_register): Added support for regname
7447 function. The function is called if the array regnames is NULL.
7448 (monitor_store_register): Same.
7449 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7451 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7452 cpu32bug_cmds.regname to point to new function.
7453 * abug-rom.c (abug_regname): Same as above.
7454 (init_abug_cmds): Same.
7455 * dbug-rom.c (dbug_regname): Same as above.
7456 (init_dbug_cmds): Same.
7457 * remote-est.c (est_regname): Same.
7458 (init_est_cmds): Same.
7459 * rom68k-rom.c (rom68k_regname): Same.
7460 (init_rom68k_cmds): Same.
7462 2002-06-25 Tom Tromey <tromey@redhat.com>
7464 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7466 2002-06-25 Andrew Cagney <cagney@redhat.com>
7468 * infrun.c (stop_registers): Change variable's type to ``struct
7470 (xmalloc_inferior_status): Delete function.
7471 (free_inferior_status): Delete function.
7472 (normal_stop): Use regcache_cpy.
7473 (struct inferior_status): Change type of fields ``stop_registers''
7474 and ``registers'' to ``struct regcache''.
7475 (write_inferior_status_register): Use regcache_write.
7476 (save_inferior_status): Instead of calling
7477 xmalloc_inferior_status, allocate the inf_status buffer directly.
7478 Use regcache_dup_no_passthrough and regcache_dup to save the
7480 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7481 Replace the stop_registers regcache instead of overriding it. Use
7482 regcache_xfree. Instead of calling free_inferior_status, xfree
7483 the buffer directly.
7484 (discard_inferior_status): Use regcache_xfree. Instead of calling
7485 free_inferior_status, xfree the buffer directly.
7486 (build_infrun): Use regcache_xmalloc.
7487 (_initialize_infrun): Delete redundant call to build_infrun.
7489 * Makefile.in (infcmd.o): Add $(regcache_h).
7491 * infcmd.c: Include "regcache.h".
7492 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7493 obtain the address of `stop_registers' register buffer.
7494 (print_return_value): Ditto.
7496 * inferior.h (struct regcache): Add opaque declaration.
7497 (stop_registers): Change variable's declared type to ``struct
7500 2002-06-24 Tom Tromey <tromey@redhat.com>
7502 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7503 * target.c (initialize_targets): Fixed typo in
7504 trust-readonly-sections `show' documentation.
7506 * main.c: Marked all strings with _().
7508 2002-06-24 Don Howard <dhoward@redhat.com>
7510 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7511 that means max CORE_ADDR+1.
7512 (lookup_mem_region): Ditto.
7513 (mem_info_command): Ditto.
7515 2002-06-24 Grace Sainsbury <graces@redhat.com>
7517 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7518 (REGISTER_BYTES_OK): Remove.
7519 (REGISTER_BYTES): Remove.
7520 (STORE_STRUCT_RETURN): Remove.
7521 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7522 (STORE_RETURN_VALUE): Remove.
7523 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7524 (FRAME_CHAIN): Remove.
7525 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7526 (FRAME_SAVED_PC): Remove.
7527 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7528 (m68k_store_struct_return): Add.
7529 (m68k_deprecated_extract_return_value): Add.
7530 (m68k_deprecated_extract_struct_value_address): Add.
7531 (m68k_store_return_value): Add.
7532 (m68k_frame_chain): Add.
7533 (m68k_frameless_function_invocation): Add.
7534 (m68k_frame_saved_pc): Add.
7535 (m68k_gdbarch_init): added set_gdbarch calls for new
7536 functions and deleted macros.
7538 2002-06-23 Tom Tromey <tromey@redhat.com>
7540 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7541 (ALLDEPFILES): Likewise.
7542 (udiheaders): Removed.
7543 (udip2soc.o): Likewise.
7544 (udi2go32.o): Likewise.
7546 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7548 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7550 * infrun.c (_initialize_infrun): Delete unnecessary call to
7553 * regcache.h: Update comments describing the regcache_cpy family
7555 (regcache_save, regcache_restore): Delete declaration.
7556 (regcache_save_no_passthrough): Delete declaration.
7557 (regcache_restore_no_passthrough): Delete declaration.
7558 * regcache.c (regcache_save): Delete function.
7559 (regcache_save_no_passthrough): Delete function.
7560 (regcache_restore): Delete function.
7561 (regcache_restore_no_passthrough): Delete function.
7563 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7565 * config/m68k/tm-m68k.h: Fix typo.
7566 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7567 (m68k_frame_init_saved_regs): Declare.
7569 2002-06-21 Jim Blandy <jimb@redhat.com>
7571 Remove some vestiges of Harris 88k support.
7572 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7573 register numbering quirk.
7574 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7575 odd symbols occurring in Harris 88k ELF targets.
7577 2002-06-21 Tom Tromey <tromey@redhat.com>
7579 * gdb_locale.h: New file.
7580 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7581 (defs_h): Added gdb_locale.h.
7582 * configure, config.in: Rebuilt.
7583 * configure.in (PACKAGE): Define.
7584 * defs.h: Include gdb_locale.h.
7585 * main.c (captured_main): Call setlocale, bindtextdomain,
7588 2002-06-21 Dave Brolley <brolley@redhat.com>
7590 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7591 * config/frv/frv.mt: New file.
7592 * config/frv/tm-frv.h: New file.
7593 * configure.tgt: Support frv-*-*.
7594 * Makefile.in (frv-tdep.o): New target.
7595 * frv-tdep.c: New file.
7596 * NEWS: Mention frv.
7598 2002-06-21 Dave Brolley <brolley@redhat.com>
7600 * MAINTAINERS: Add self to "Write After Approval" list.
7602 2002-06-21 Grace Sainsbury <graces@redhat.com>
7604 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7605 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7606 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7607 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7608 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7610 * m68k-tdep.c: Include arch-utils.h
7611 (m68k_register_raw_size): Add.
7612 (m68k_register_virtual_size): Add.
7613 (m68k_register_virtual_type): Add.
7614 (m68k_register_name): Add.
7615 (m68k_stack_align): Add.
7616 (m68k_register_byte): Add.
7617 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7620 2002-06-21 Grace Sainsbury <graces@redhat.com>
7622 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7623 m68k_find_saved_regs.
7624 (m68k_pop_frame): Removed saved_regs structure, and replaced
7625 references to it with frame->saved_regs.
7626 (m68k_gdbarch_init): Added function calls to initialize the
7628 (m68k_fix_call_dummy): Add.
7629 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7630 (CALL_DUMMY): Remove.
7631 (CALL_DUMMY_LENGTH): Remove.
7632 (CALL_DUMMY_START_OFFSET): Remove.
7633 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7634 (FIX_CALL_DUMMY): Remove.
7635 (PUSH_DUMMY_FRAME): Remove.
7636 (POP_FRAME): Remove.
7638 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7640 * parse.c (parse_fprintf): New function used to avoid calls to
7641 fprintf in bison parser generated debug code.
7642 * parser-defs.h: Declaration of new parse_fprintf function.
7643 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7644 Set YYDEBUG to 1 by default.
7645 Set YYFPRINTF as parse_fprintf.
7647 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7649 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7651 (pointer_encoding, enum ptr_encoding): New.
7652 (execute_cfa_program): Take care about pointer encoding.
7653 (dwarf2_build_frame_info): Only call parse_frame_info for
7654 .debug_frame and .eh_frame.
7655 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7656 fixed augmentation handling, added relative addressing,
7657 ignore duplicate FDEs. Added comments.
7658 * dwarf2cfi.c: Reindented.
7660 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7662 * event-top.c (command_handler): Don't use space_at_cmd_start
7663 unless there is sbrk() on the host. Assign time and space data
7664 to union fields of the appropriate length.
7666 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7668 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7669 x86_64_register_name. Return type changed to 'const char *'.
7670 (x86_64_register_name2nr): Rename to x86_64_register_number.
7671 (x86_64_gdbarch_init): Update to reflect the change.
7672 * x86-64-tdep.h: Ditto.
7673 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7674 (supply_fpregset): Ditto.
7676 2002-06-19 Andrew Cagney <cagney@redhat.com>
7678 * regcache.h: Update copyright.
7679 (struct regcache, struct gdbarch): Add opaque declarations.
7680 (current_regcache): Declare global variable.
7681 (regcache_read, regcache_write): Add gdbarch parameter.
7682 (regcache_save, regcache_save_no_passthrough)
7683 (regcache_restore, regcache_restore_no_passthrough)
7684 (regcache_dup, regcache_dup_no_passthrough)
7685 (regcache_cpy, regcache_cpy_no_passthrough)
7686 (deprecated_grub_regcache_for_registers)
7687 (deprecated_grub_regcache_for_register_valid)
7688 (regcache_valid_p): Add function declarations.
7690 * regcache.c: Update copyright.
7691 (regcache_descr_handle): New global variable.
7692 (struct regcache_descr): Define.
7693 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7694 (regcache_descr, xfree_regcache_descr): New functions.
7695 (struct regcache): Define.
7696 (regcache_xmalloc, regcache_xfree): New functions.
7697 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7698 (regcache_dup, regcache_dup_no_passthrough): New functions.
7699 (regcache_valid_p, regcache_read_as_address): New functions.
7700 (deprecated_grub_regcache_for_registers): New function.
7701 (deprecated_grub_regcache_for_register_valid): New function.
7702 (current_regcache): New global variable.
7703 (register_buffer): Add regcache parameter. Update calls.
7704 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7705 (read_register_gen, write_register_gen): Update register_buffer
7706 call. Test for legacy_p instead of gdbarch_register_read_p or
7707 gdbarch_register_write_p.
7708 (regcache_collect): Update register_buffer call.
7709 (build_regcache): Rewrite. Use deprecated grub functions.
7710 (regcache_save, regcache_save_no_passthrough): New functions.
7711 (regcache_restore, regcache_restore_no_passthrough): New
7713 (_initialize_regcache): Create the regcache_data_handle. Swap
7714 current_regcache global variable.
7716 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7717 parameter to regcache_read and regcache_write calls.
7718 (sh4_register_read): Ditto.
7719 (sh64_pseudo_register_read): Ditto.
7720 (sh64_register_read): Ditto.
7721 (sh_pseudo_register_write): Ditto.
7722 (sh4_register_write): Ditto.
7723 (sh64_pseudo_register_write): Ditto.
7724 (sh64_register_write): Ditto.
7726 * defs.h (XCALLOC): Define.
7728 2002-06-19 Grace Sainsbury <graces@redhat.com>
7730 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7731 * m68k-tdep.c (m68k_gdbarch_init): Added.
7732 (m68k_dump_tdep): Added.
7734 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7736 * ada-lang.c (fill_in_ada_prototype): Update comment.
7738 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7740 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7742 (mips_abi_string, mips_abi_strings): New.
7743 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7744 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7745 tdep->mips_abi_string. Honor mips_abi_string. Default to
7746 O32 if no ABI is found.
7747 (mips_dump_tdep): Use mips_abi_strings.
7748 (mips_abi_update): New function.
7749 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7750 ``set mips abi'' and ``show mips abi''. Check the size of
7753 2002-06-19 Andrew Cagney <cagney@redhat.com>
7755 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7758 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7760 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7761 current frame using only the first stack size adjustment. All
7762 subsequent size adjustments are not considered to be part of
7763 the "static" part of the current frame.
7764 Compute the address of the saved registers relative to the
7765 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7766 in use in this frame.
7768 2002-06-18 Don Howard <dhoward@redhat.com>
7770 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7771 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7772 suggesting this solution.
7774 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7776 * config/romp/xm-rtbsd.h: Delete file.
7777 * config/romp/rtbsd.mh: Delete file.
7779 2002-06-18 Keith Seitz <keiths@redhat.com>
7781 * breakpoint.c (condition_command): Post breakpoint_modify
7782 when a condition is added to an existing breakpoint.
7783 (commands_command): Likewise for commands.
7784 (set_ignore_count): Likewise for ignore counts.
7785 If no tty, do not simply return, still need to send event
7787 (ignore_command): Only print a newline if the command came
7789 Don't call breakpoints_changed, since this is now properly
7790 handled by set_ignore_count.
7792 2002-06-18 Andrew Cagney <cagney@redhat.com>
7794 * MAINTAINERS: Note that cris-elf target can be compiled with
7796 * cris-tdep.c (cris_register_name): Make return type constant.
7797 (cris_breakpoint_from_pc): Ditto.
7799 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7801 * frame.h (struct frame_info): Change type of context to
7804 2002-06-17 Andrew Cagney <cagney@redhat.com>
7806 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7808 * gdbarch.h, gdbarch.c: Regenerate.
7809 * config/mips/tm-mips.h (mips_register_name): Update.
7810 * i386-tdep.h (i386_register_name): Update.
7811 * mips-tdep.c (mips_register_name): Update
7812 * alpha-tdep.c (alpha_register_name): Update.
7813 * arch-utils.c (legacy_register_name): Update.
7814 * arch-utils.h (legacy_register_name): Update.
7815 * avr-tdep.c (avr_register_name): Update.
7816 * ia64-tdep.c (ia64_register_name): Update.
7817 * i386-tdep.c (i386_register_name): Update.
7818 * sparc-tdep.c (sparc32_register_name): Update.
7819 (sparc64_register_name): Update.
7820 (sparclite_register_name): Update.
7821 (sparclet_register_name): Update.
7822 * sh-tdep.c (sh_generic_register_name): Update.
7823 (sh_sh_register_name): Update.
7824 (sh_sh3_register_name): Update.
7825 (sh_sh3e_register_name): Update.
7826 (sh_sh_dsp_register_name): Update.
7827 (sh_sh3_dsp_register_name): Update.
7828 (sh_sh4_register_name): Update.
7829 (sh_sh64_register_name): Update.
7830 * s390-tdep.c (s390_register_name): Update.
7831 * rs6000-tdep.c (rs6000_register_name): Update.
7832 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7833 (ns32k_register_name_32382): Update.
7834 * d10v-tdep.c (d10v_ts2_register_name): Update.
7835 (d10v_ts3_register_name): Update.
7836 * xstormy16-tdep.c (xstormy16_register_name): Update.
7837 * vax-tdep.c (vax_register_name): Update.
7838 * v850-tdep.c (v850_register_name): Update.
7839 * m68hc11-tdep.c (m68hc11_register_name): Update.
7840 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7841 (am33_register_name): Update.
7843 2002-06-17 Grace Sainsbury <graces@redhat.com>
7845 * m68k-tdep.c: Reindented.
7847 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7849 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7850 list of predefined types.
7852 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7854 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7855 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7856 REGISTER_CONVERT_TO_RAW): Remove defines.
7857 (i386_register_virtual_type, i386_register_convertible,
7858 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7861 macros mentioned above.
7863 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7864 (i386lynx_saved_pc_after_call): Remove prototype.
7865 * i386ly-tdep.c: Include "i386-tdep.h".
7866 (i386lynx_saved_pc_after_call): Make static. Use
7867 read_memory_nobpt instead of read_memory. Use
7868 read_memory_unsigned_integer instead of read_memory_integer.
7869 (i386lynx_init_abi): New function.
7870 (i386lynx_coff_osabi_sniffer): New function.
7871 (_initialize_i386bsd_tdep): New function.
7873 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7874 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7875 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7876 (i386_fix_call_dummy): Remove prototype.
7877 * i386-tdep.c (i386_call_dummy_words): New variable.
7878 (i386_gdbarch_init): Adjust for removal of the
7879 macros mentioned above.
7881 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7883 * command.h (add_setshow_auto_boolean_cmd): Replace
7884 add_set_auto_boolean_cmd.
7885 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7886 add_set_auto_boolean_cmd.
7887 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7888 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7889 mask-address'' command.
7890 (show_mask_address): Add cmd parameter.
7891 * remote.c (add_packet_config_cmd): Update. Change type of
7892 set_func and show_func to cmd_sfunc_ftype.
7893 (_initialize_remote): Update `set remote Z-packet'
7894 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7895 (show_remote_protocol_e_packet_cmd): Ditto.
7896 (show_remote_protocol_E_packet_cmd): Ditto.
7897 (show_remote_protocol_P_packet_cmd): Ditto.
7898 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7899 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7900 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7901 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7902 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7903 (show_remote_protocol_Z_packet_cmd): Ditto.
7904 (show_remote_protocol_binary_download_cmd): Ditto.
7905 (show_remote_cmd): Pass NULL to all of above.
7907 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7909 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7910 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7911 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7912 POP_FRAME): Remove defines.
7913 (i386_push_arguments, i386_store_struct_return,
7914 i386_extract_return_value, i386_store_return_value,
7915 i386_extract_struct_value_address, i386_push_dummy_frame,
7916 i386_pop_frame): Renove prototypes.
7917 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7918 macros mentioned above.
7920 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7922 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7923 add_set_boolean_cmd.
7924 (add_setshow_cmd): New function.
7925 * command.h (add_setshow_boolean_cmd): Replace
7926 add_set_boolean_cmd.
7927 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7928 and ``set rdiromatzero''.
7929 * maint.c (_initialize_maint_cmds): Update commented out code.
7930 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7931 * target.c (initialize_targets): Update `set
7932 trust-readonly-sections'.
7933 * remote.c (_initialize_remote): Update `set remotebreak'.
7935 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7937 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7938 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7939 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7940 fit into multi-arch framework.
7941 (i386_breakpoint_from_pc): New function.
7942 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7945 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7946 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7947 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7948 (i386_frameless_function_invocation, i386_frame_num_args,
7949 i386_frame_init_saved_regs): Remove prototypes.
7950 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7951 macros mentioned above.
7953 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7955 * cli/cli-decode.c (set_cmd_cfunc): Update.
7956 (set_cmd_sfunc): Update.
7957 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7958 (set_cmd_sfunc, set_cmd_cfunc): Update.
7959 * cli/cli-decode.h: Update.
7961 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7963 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7964 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7966 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7968 * defs.h (auto_boolean): Declare enum.
7969 * command.h (cmd_auto_boolean): Delete enum.
7970 * mips-tdep.c (mask_address_var): Update.
7971 (mips_mask_address_p): Update.
7972 (show_mask_address): Update.
7973 * remote.c (struct packet_config): Update.
7974 (update_packet_config): Update.
7975 (show_packet_config_cmd): Update.
7976 (packet_ok): Update.
7977 (add_packet_config_cmd): Update.
7978 (_initialize_remote):
7979 * command.h: Update.
7980 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7981 (do_setshow_command): Update.
7982 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7983 * cli/cli-decode.h: Update.
7985 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7987 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7988 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7989 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7990 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7991 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7992 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7994 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7995 list of DJGPP COFF targets.
7997 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7998 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7999 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8000 (FP0_REGNUM): Remove define.
8001 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8002 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8003 (i386_register_virtual_size): Remove protoype.
8004 * i386-tdep.c (i386_register_virtual_size): Removed.
8005 (i386_extract_return_value, i386_store_return_value): Use
8006 FP0_REGNUM instead of NUM_FREGS to determine whether the
8007 floating-point registers are available.
8008 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8009 Adjust for removal of macros mentioned above.
8011 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8013 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8015 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8017 (supply_gregset, fill_gregset): Remove use of register keyword and
8018 remove declaration for regmap. Use I386_NUM_GREGS instead of
8019 NUM_REGS and NUM_FREGS.
8020 (FPREGSET_FSAVE_OFFSET): Remove.
8021 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8022 NUM_FREGS to determine whether the floating-point registers are
8025 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8026 gnu_store_registers): Replace usage of NUM_GREGS with
8029 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8030 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8031 usage of NUM_GREGS with I386_NUM_GREGS.
8033 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8035 * i386bsd-nat.c: Include "i386-tdep.h".
8036 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8039 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8040 and associated comment. They no longer make any sense, since we
8041 don't use this file anymore on Linux.
8043 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8044 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8045 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8046 elements in these arrays.
8047 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8050 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8052 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8053 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8055 2002-06-14 Andrew Cagney <cagney@redhat.com>
8057 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8058 EXTRACT_RETURN_VALUE.
8059 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8060 EXTRACT_STRUCT_VALUE_ADDRESS.
8061 * gdbarch.h, gdbarch.c: Regenerate.
8063 * values.c (value_being_returned): Handle
8064 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8065 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8067 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8068 * arm-tdep.c (arm_gdbarch_init): Update.
8069 * avr-tdep.c (avr_gdbarch_init): Update.
8070 * cris-tdep.c (cris_gdbarch_init): Update.
8071 * d10v-tdep.c (d10v_gdbarch_init): Update.
8072 * ia64-tdep.c (ia64_gdbarch_init): Update.
8073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8075 * s390-tdep.c (s390_gdbarch_init): Update.
8076 * sh-tdep.c (sh_gdbarch_init): Update.
8077 * s390-tdep.c (s390_gdbarch_init): Update.
8078 * sparc-tdep.c (sparc_gdbarch_init): Update.
8079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8080 * v850-tdep.c (v850_gdbarch_init): Update.
8081 * vax-tdep.c (vax_gdbarch_init): Update.
8082 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8085 * config/arc/tm-arc.h: Update.
8086 * config/d30v/tm-d30v.h: Update.
8087 * config/fr30/tm-fr30.h: Update.
8088 * config/h8300/tm-h8300.h: Update.
8089 * config/h8500/tm-h8500.h: Update.
8090 * config/i386/tm-i386.h: Update.
8091 * config/i386/tm-ptx.h: Update.
8092 * config/i386/tm-symmetry.h: Update.
8093 * config/i960/tm-i960.h: Update.
8094 * config/m32r/tm-m32r.h: Update.
8095 * config/m68k/tm-delta68.h: Update.
8096 * config/m68k/tm-linux.h: Update.
8097 * config/m68k/tm-m68k.h: Update.
8098 * config/m88k/tm-m88k.h: Update.
8099 * config/mcore/tm-mcore.h: Update.
8100 * config/mips/tm-mips.h: Update.
8101 * config/mn10200/tm-mn10200.h: Update.
8102 * config/pa/tm-hppa.h: Update.
8103 * config/pa/tm-hppa64.h: Update.
8104 * config/sparc/tm-sp64.h: Update.
8105 * config/sparc/tm-sparc.h: Update.
8106 * config/sparc/tm-sparclet.h: Update.
8107 * config/z8k/tm-z8k.h: Update.
8109 2002-06-14 Andrew Cagney <cagney@redhat.com>
8111 * Makefile.in (i386_linux_tdep_h): Define.
8112 (i386_tdep_h, i387_tdep_h): Define.
8113 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8114 $(i386_tdep_h) and $(i387_tdep_h).
8115 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8117 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8119 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8120 Already covered by the default.
8122 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8123 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8124 (i386_gdbarch_init): Initialize long_double_format and long_double
8127 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8128 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8130 * config/i386/i386sol2.mh: ... here.
8131 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8132 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8133 (SIGCONTEXT_PC_OFFSET): Remove define.
8134 (IN_SIGTRAMP): Remove define.
8135 * i386-sol2-tdep.c: New file.
8137 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8138 * config/i386/tm-i386nw.h: Removed.
8140 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8141 USE_STRUCT_CONVENTION): Remove defines.
8142 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8143 (get_longjmp_target): Remove prototype.
8144 (IN_SIGTRAMP): Remove define.
8145 (i386bsd_in_sigtramp): Remove prototype.
8146 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8147 function. Update comment accordingly
8148 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8149 (FRAME_SAVED_PC): Remove define.
8150 (i386bsd_frame_saved_pc): Remove prototype.
8151 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8152 GET_LONGJMP_TARGET): Remove defines.
8153 (get_longjmp_target): Remove prototype.
8154 (IN_SIGTRAMP): Remove define.
8155 (i386bsd_in_sigtramp): Remove prototype.
8156 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8157 function. Update comment accordingly
8158 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8159 (FRAME_SAVED_PC): Remove define.
8160 (i386bsd_frame_saved_pc): Remove prototype.
8161 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8163 (USE_STRUCT_CONVENTION): Remove prototype.
8164 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8166 (_initialize_i386bsd_nat): Revise logic to determine some
8167 constants at compile time when compiling a native GDB. Warn if
8168 things don't match up with what we expect.
8169 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8171 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8172 to use date stored in `struct gdbarch_tdep'.
8173 (i386bsd_sigcontext_offset): Remove varaible.
8174 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8175 stored in `struct gdbarch_tdep'.
8176 (i386bsd_frame_saved_pc): Make static.
8177 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8178 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8179 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8180 i386fbsd4_sc_pc_offset): New variables.
8181 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8182 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8184 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8186 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8187 Modify the value of i386fbsd_sigtramp_start and
8188 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8189 i386fbsd_sigtramp_end.
8190 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8193 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8194 define to i386-linux-tdep.h.
8195 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8196 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8198 (i386_linux_register_name, i386_linux_register_byte,
8199 i386_linux_register_raw_size): Remove prototypes.
8200 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8201 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8202 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8203 TARGET_WRITE_PC): Remove defines.
8204 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8205 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8206 i386_linux_write_pc): Remove prototypes.
8207 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8208 (get_longjmp_target): Remove prototype.
8209 * i386-linux-tdep.h: New file.
8210 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8211 * i386-linux-tdep.c: Include "i386-tdep.h" and
8212 "i386-linux-tdep.h".
8213 (i386_linux_register_name, i386_linux_register_byte,
8214 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8215 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8217 (i386_linux_init_abi): New function.
8218 (_initialize_i386_linux_tdep): New function.
8220 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8221 (i386_saved_pc_after_call): Remove prototype.
8222 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8223 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8224 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8225 (i386_register_name, i386_stab_reg_to_regnum,
8226 i386_dwarf_reg_to_regnum): Remove prototypes.
8227 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8228 SIZEOF_SSE_REGS): Remove defines.
8229 (REGISTER_BYTES): Remove define.
8230 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8231 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8232 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8233 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8234 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8235 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8236 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8237 (get_longjmp_target): Remove prototype.
8238 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8239 (sigtramp_saved_pc): Remove define.
8240 (i386v4_sigtramp_saved_pc): Remove prototype.
8241 * config/i386/tm-go32.h (FRAME_CHAIN,
8242 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8243 (i386go32_frame_saved_pc): Remove prototype.
8244 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8245 (get_longjmp_target): Remove prototype.
8246 * i386-tdep.h: Include "osabi.h".
8247 (enum i386_abi): Removed.
8248 (enum struct_return): New enum.
8249 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8250 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8251 sc_pc_offset members.
8252 (i386_gdbarch_register_os_abi): Remove prototype.
8253 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8254 I386_SSE_NUM_REGS): New defines.
8255 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8256 I386_SSE_SIZEOF_REGS): New defines.
8257 (i386_register_name, i386_register_byte, i386_register_raw_size):
8259 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8260 (i386bsd_sigtramp_saved_pc): New prototype.
8261 * i386-tdep.c: Don't include "elf-bfd.h".
8262 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8263 i386_frame_chain, i386_saved_pc_after_call): Make static.
8264 (i386_frame_saved_pc): Rewrite to call architecture dependent
8265 function to deal with signal handlers. Make static.
8266 (i386go32_frame_saved_pc): Removed.
8267 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8269 (i386_get_longjmp_target): New function.
8270 (default_struct_convention, pcc_struct_convention,
8271 reg_struct_convention, valid_conventions, struct_convention): New
8273 (i386_use_struct_convention): New function.
8274 (i386v4_sigtramp_saved_pc): Renamed to
8275 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8276 (i386_pc_in_sigtramp): New function.
8277 (i386_abi_names): Removed.
8278 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8279 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8281 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8282 i386_gdbarch_register_os_abi): Removed.
8283 (struct i386_abi_handler): Removed.
8284 (i386_abi_handler_list): Removed.
8285 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8287 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8288 i386_nw_init_abi): New functions.
8289 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8290 Use set_gdbarch_xxx() calls instead of relying on macros for a
8292 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8293 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8294 Register the various architecture variants defined in this file.
8296 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8298 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8299 (struct main_type): Remove arg_types member. Update comments for
8301 (TYPE_ARG_TYPES): Remove.
8302 (TYPE_FN_FIELD_ARGS): Update.
8303 (smash_to_method_type): Update prototype.
8305 * c-typeprint.c (cp_type_print_method_args): Take method type
8306 instead of argument list. Use new argument layout. Simplify.
8307 (c_type_print_args): Use new argument layout. Simplify.
8308 (c_type_print_base): Update call to cp_type_print_method_args.
8309 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8310 argument; use die->type instead. Update call to
8311 smash_to_method_type.
8312 (read_structure_scope): Update call to dwarf2_add_member_fn.
8313 * gdbtypes.c (allocate_stub_method): Update comment.
8314 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8315 Use new argument layout.
8316 (check_stub_method): Use new argument layout. Don't count
8317 void as an argument.
8318 (print_arg_types): Update comments. Use new argument layout.
8319 (recursive_dump_type): Don't print arg_types member.
8320 * hpread.c (hpread_read_struct_type): Use new argument layout.
8321 (fixup_class_method_type): Likewise.
8322 (hpread_type_lookup): Likewise.
8323 * stabsread.c (read_type): Update calls to read_args and
8324 smash_to_method_type.
8325 (read_args): Use new argument layout. Simplify.
8326 * valops.c (typecmp): Use new argument layout. Update parameters
8327 and comments. Simplify.
8328 (hand_function_call): Use new argument layout.
8329 (search_struct_method): Update call to typecmp.
8330 (find_overload_match): Use new argument layout.
8332 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8334 * NEWS: Mention multithreaded debug support for gdbserver.
8336 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8338 * MAINTAINERS: Mention NEWS.
8340 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8342 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8343 (struct mips_objfile_private, compare_pdr_entries): New.
8344 (non_heuristic_proc_desc): Read the ".pdr" section if it
8347 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8349 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8350 (arm_debug): New static variable.
8351 (_initialize_arm_tdep): Add ``set debug arm'' command.
8353 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8355 * Makefile.in (sim_arm_h): Define.
8356 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8357 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8358 (arm_register_sim_regno): New function, map an internal REGNUM
8359 onto a simulator register number.
8360 (arm_gdbarch_init): Set register_sim_regno.
8362 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8364 * MAINTAINERS: Add self.
8366 2002-06-11 Jim Blandy <jimb@redhat.com>
8368 * source.c (source_info): Mention whether the symtab has
8369 information about preprocessor macros.
8371 Call the command `info macro', not `show macro'.
8372 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8374 (_initialize_macrocmd): Register `info_macro_command' in
8375 `infolist', not `showlist'.
8377 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8379 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8380 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8381 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8382 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8383 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8385 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8386 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8387 (_initialize_mips_tdep): Remove dead code.
8388 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8389 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8390 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8391 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8392 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8393 MIPS_LAST_FP_ARG_REGNUM): Remove.
8395 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8397 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8398 (unwind_tmp_obstack_free, parse_frame_info)
8399 (update_context, cfi_read_fp, cfi_write_fp)
8400 (cfi_frame_chain, cfi_init_extra_frame_info)
8401 (cfi_virtual_frame_pointer): Use the above function.
8402 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8404 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8406 * v850-tdep.c (v850_type_is_scalar): New function.
8407 (v850_use_struct_convention): Match current gcc implementation
8408 as close as possible.
8409 (v850_push_arguments): Fix stack_offset handling. Don't write
8410 struct_addr into register. This is done by v850_store_struct_return.
8411 (v850_extract_return_value): Care for structs.
8412 (v850_store_return_value): Ditto.
8413 (v850_store_struct_return): Actually write address.
8415 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8417 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8418 without debug information too.
8420 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8422 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8423 Make multi-arch pure.
8424 * gdbarch.h, gdbarch.c: Re-generate.
8425 * arm-tdep.c (arm_print_float_info): Update.
8426 * arch-utils.h (default_print_float_info): Update.
8427 * arch-utils.c (default_print_float_info): Update.
8428 * infcmd.c (float_info): Update call.
8430 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8432 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8433 the front of the initialize list.
8435 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8437 * infrun.c (struct inferior_status): Replace fields
8438 selected_frame_address and selected_level with field
8440 (save_inferior_status): Update. Use get_frame_id.
8441 (struct restore_selected_frame_args): Delete.
8442 (restore_selected_frame): Update. Use frame_find_by_id.
8443 (restore_inferior_status): Update.
8445 * breakpoint.h (struct breakpoint): Change type of
8446 watchpoint_frame to frame_id.
8447 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8448 call to get_current_frame.
8449 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8451 (watchpoint_check): Use frame_find_by_id.
8453 * frame.h (record_selected_frame): Delete declaration.
8454 * stack.c (record_selected_frame): Delete function.
8456 * frame.h (struct frame_id): Define.
8457 (get_frame_id): Declare.
8458 (frame_find_by_id): Declare.
8459 * frame.c (frame_find_by_id): New function.
8460 (get_frame_id): New function.
8462 2002-06-10 Andrey Volkov <avolkov@transas.com>
8464 * ser-e7kpc.c: Fix duplicated define and call of
8465 _initialize_ser_e7000pc
8467 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8469 * signals/signals.c (target_signal_from_host): Fix #ifdef
8471 (do_target_signal_to_host): Likewise.
8473 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8475 * mips-tdep.c (mips_find_abi_section): New function.
8476 (mips_gdbarch_init): Call it.
8478 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8480 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8481 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8482 after Andrew's 2002-06-08 gdbarch change.
8484 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8486 * i386-linux-nat.c (suppy_gregset): Don't supply
8487 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8489 (fill_gregset): Don't fetch it under the same circumstances.
8491 2002-06-09 Andrew Cagney <cagney@redhat.com>
8493 * Makefile.in (callback_h): Define.
8494 (remote_sim_h): Update path to remote-sim.h.
8495 (remote-rdp.o): Add $(callback_h).
8496 (remote-sim.o): Use $(callback_h).
8497 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8498 * remote-rdp.c: Include "gdb/callback.h".
8500 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8502 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8503 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8505 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8507 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8508 * rdi-share/serpardr.c: Ditto.
8509 * rdi-share/unixcomm.c: Ditto.
8510 * rdi-share/serdrv.c: Ditto.
8511 * rdi-share/hostchan.h: Ditto.
8512 * rdi-share/hostchan.c: Ditto.
8513 * rdi-share/host.h: Ditto.
8514 * rdi-share/devsw.c: Ditto.
8516 * objfiles.h: Change type of obj_private to void pointer.
8517 * pa64solib.c: Update copyright. Don't include "assert.h", use
8518 strcmp instead of STREQ, use LONGEST, do not use PTR
8519 * somsolib.c: Ditto.
8521 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8522 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8523 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8525 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8527 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8528 (default_get_saved_register): Delete function.
8529 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8530 generic_unwind_get_saved_register.
8531 * gdbarch.h, gdbarch.c: Re-generate.
8533 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8535 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8536 generic_func_frame_chain_valid.
8537 * gdbarch.h, gdbarch.c: Re-generate.
8538 * blockframe.c (generic_func_frame_chain_valid): Only check
8539 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8540 passing FP to PC_IN_CALL_DUMMY.
8543 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8545 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8546 (register_gdbarch_data): Initialize init_p.
8547 (gdbarch_data): Initialize data pointer using the init function.
8548 (init_gdbarch_data): Delete function.
8549 (gdbarch_update_p): Update.
8550 (initialize_non_multiarch): Update.
8551 (struct gdbarch): Add field initialized_p.
8552 * gdbarch.h, gdbarch.c: Re-generate.
8554 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8556 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8557 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8558 better do the things actually here.
8559 * x86-64-tdep.c (x86_64_register_name2nr): New.
8560 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8561 (x86_64_gdbarch_init): Respect the above change.
8562 * x86-64-tdep.h (x86_64_register_name2nr)
8563 (x86_64_register_nr2name): Add prototypes.
8564 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8566 2002-06-06 Michael Snyder <msnyder@redhat.com>
8568 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8569 Delete extra braces and re-indent.
8570 (d10v_store_return_value): Char return values
8571 must be shifted over by one byte in R0.
8572 (d10v_extract_return_value): Delete extra braces, re-indent.
8574 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8576 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8577 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8578 (d10v_integer_to_address): Rewrite.
8579 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8580 the d10v specific functions which take care of converting to the
8583 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8585 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8586 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8588 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8590 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8592 * config/tm-linux.h: Ditto.
8593 * config/alpha/tm-alphalinux.h: Ditto.
8594 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8595 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8596 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8597 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8598 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8599 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8600 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8601 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8602 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8603 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8604 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8605 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8606 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8607 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8608 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8609 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8610 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8611 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8612 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8613 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8614 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8615 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8616 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8617 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8618 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8619 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8620 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8621 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8622 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8623 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8624 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8625 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8626 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8627 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8628 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8629 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8630 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8632 2002-05-04 Aidan Skinner <aidan@velvet.net>
8634 * ada-exp.tab.c: New file
8635 * ada-exp.y: New file
8636 * ada-lang.c: New file
8637 * ada-lang.h: New file
8638 * ada-lex.c: New file
8639 * ada-lex.l: New file
8640 * ada-tasks.c: New file
8641 * ada-typeprint.c: New file
8642 * ada-valprint.c: New file
8644 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8646 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8647 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8649 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8651 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8652 insetead of ppc-linux-tdep.o.
8653 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8654 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8656 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8658 2002-05-07 Christian Groessler <chris@groessler.org>
8659 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8660 bit register contents for little endian hosts.
8662 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8664 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8667 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8669 * gdbarch.h: Regenerate.
8671 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8673 * MAINTAINERS: Add everyone to write-after-approval list.
8675 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8677 * stack.c (frame_info): Use frame_register_unwind instead of
8678 saved_regs. Mention when the SP is on the stack or in a register.
8680 * frame.h (frame_register_unwind_ftype): Define. Document.
8681 (struct frame_info): Add field register_unwind and
8682 register_unwind_cache.
8683 (frame_register_unwind): Declare.
8684 (generic_unwind_get_saved_register): Declare.
8686 * frame.c (frame_register_unwind): New function.
8687 (generic_unwind_get_saved_register): New function.
8689 * blockframe.c (generic_call_dummy_register_unwind): New function.
8690 (frame_saved_regs_register_unwind): New function.
8691 (set_unwind_by_pc): New function.
8692 (create_new_frame): New function.
8693 (get_prev_frame): New function.
8695 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8697 * a29k-share/: Delete directory.
8698 * remote-vx29k.c: Delete file.
8700 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8702 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8703 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8705 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8707 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8708 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8711 (sparcnbsd-tdep.o): New dependency lists.
8712 * NEWS: Note new UltraSPARC NetBSD native configuration.
8713 * configure.host (sparc64-*-netbsd*): New host.
8714 * configure.tgt (sparc-*-netbsdelf*)
8715 (sparc-*-netbsd*): Set gdb_target to nbsd.
8716 (sparc64-*-netbsd*): New target.
8717 * sparc64nbsd-nat.c: New file.
8718 * sparcnbsd-nat.c: New file.
8719 * sparcnbsd-tdep.c: New file.
8720 * sparcnbsd-tdep.h: New file.
8721 * config/sparc/nbsd.mt: New file.
8722 * config/sparc/nbsd64.mh: New file.
8723 * config/sparc/nbsd64.mt: New file.
8724 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8725 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8727 * config/sparc/nbsdaout.mt: Remove.
8728 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8729 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8731 * config/sparc/nbsdelf.mt: Remove.
8732 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8733 sparc-nat.c compatiblity defines.
8734 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8735 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8736 * config/sparc/tm-nbsd64.h: New file.
8737 * config/sparc/tm-nbsdaout.h: Remove.
8738 * config/sparc/xm-nbsd.h: Remove.
8740 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8742 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8743 * sparc-tdep.c: Include osabi.h.
8744 (gdbarch_tdep): Add osabi member.
8745 (_initialize_sparc_tdep): Use gdbarch_register.
8746 (sparc_gdbarch_init): Use generic OS ABI framework.
8747 (sparc_dump_tdep): New function.
8749 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8751 * corefile.c (do_captured_read_memory_integer): Return non-zero
8753 (safe_read_memory_integer): Copy result of memory read when
8754 status is non-zero. Also, add comments.
8756 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8758 * Makefile.in (ppc_tdep_h): Define.
8761 (rs6000-tdep.o): Use $(ppc_tdep_h).
8764 (ppcnbsd-tdep.o): New dependency lists.
8765 * ppc-tdep.h: Use generic OS ABI framework.
8766 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8767 (ppc_linux_init_abi): New functions.
8768 (ppc_sysv_abi_broken_use_struct_convention)
8769 (ppc_sysv_abi_use_struct_convention)
8770 (ppc_sysv_abi_push_arguments): Move to...
8771 * ppc-sysv-tdep.c: ...here.
8772 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8773 * rs6000-tdep.c (process_note_abi_tag_sections)
8774 (get_elfosabi): Remove.
8775 (rs6000_gdbarch_init): Use generic OS ABI framework.
8776 (rs6000_dump_tdep): New function.
8777 (_initialize_rs6000_tdep): Use gdbarch_register.
8778 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8779 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8780 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8781 of ppc-linux-tdep.o.
8782 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8783 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8784 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8785 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8786 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8787 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8789 2002-05-29 Jim Blandy <jimb@redhat.com>
8791 * macroscope.c (default_macro_scope): Put `void' in empty argument
8794 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8796 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8797 * arch-utils.c: Include "sim-regno.h".
8798 * gdbarch.sh: Don't include "sim-regno.h".
8799 * gdbarch.h, gdbarch.c: Regenerate.
8800 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8802 * arch-utils.h (legacy_register_sim_regno): To here.
8803 * remote-sim.c (legacy_register_sim_regno): Move function from
8805 * arch-utils.c (legacy_register_sim_regno): To here.
8807 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8809 * sim-regno.h: New file.
8810 * Makefile.in (sim_regno_h): Define.
8811 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8812 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8813 (legacy_register_sim_regno): New function.
8814 (one2one_register_sim_regno): New function.
8815 (gdbsim_fetch_register): Rewrite.
8816 (gdbsim_store_register): Only store a register when
8817 REGISTER_SIM_REGNO is valid.
8818 * d10v-tdep.c: Include "sim-regno.h".
8819 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8820 (d10v_ts3_register_sim_regno): Ditto.
8821 * gdbarch.sh: Include "sim-regno.h".
8822 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8823 * gdbarch.h, gdbarch.c: Regenerate.
8824 * arch-utils.h (default_register_sim_regno): Delete declaration.
8825 * arch-utils.c (default_register_sim_regno): Delete function.
8827 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8829 * ppcnbsd-nat.c: Rewrite.
8830 * ppcnbsd-tdep.c: New file.
8831 * ppcnbsd-tdep.h: New file.
8832 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8833 solib.o, and solib-svr4.o.
8834 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8835 nbsd-tdep.o, and corelow.o.
8837 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8839 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8840 `tr' and `sed'. Mention that `broken' targets are not expected to
8843 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8845 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8846 Let PC point right after the prologue before looking up symbols.
8848 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8850 * i386-tdep.c (i386_register_virtual_type): Return
8851 builtin_type_vec128i for SSE registers.
8853 * gdbtypes.h (builtin_type_vec128i): Declare.
8855 * gdbtypes.c (build_builtin_type_vec128i): New function.
8856 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8857 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8858 (build_gdbtypes): Initialize new builtin vector types.
8859 (_initialize_gdbtypes): Register new vector types with gdbarch.
8861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8863 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8864 since it has been multi-arch'd.
8865 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8866 Move Alpha and VAX multi-arch news entries to same section
8867 as other multi-arch news.
8869 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8871 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8872 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8873 static. Rename some register numbers to put them in ns32k-tdep
8875 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8876 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8878 (_initialize_ns32k_tdep): Use gdbarch_register.
8879 * ns32k-tdep.h: New file.
8880 * ns32knbsd-tdep.c: New file.
8881 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8882 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8883 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8884 REGISTER_BYTES, REGISTER_BYTE): Remove.
8885 * config/ns32k/tm-ns32k.h: New file.
8886 * config/ns32k/tm-umax.h: Remove.
8888 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8890 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8891 ns32k_store_struct_return, ns32k_extract_return_value,
8892 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8894 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8895 ns32k_saved_pc_after_call.
8896 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8897 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8898 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8899 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8900 ns32k_extract_struct_value_address.
8902 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8904 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8905 ns32k_fix_call_dummy): New.
8906 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8907 ns32k_call_dummy_words.
8908 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8909 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8910 CALL_DUMMY_NARGS): Remove.
8911 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8913 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8915 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8916 ns32k_frame_saved_pc, ns32k_frame_args_address,
8917 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8918 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8919 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8920 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8921 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8922 (BREAKPOINT): Remove..
8923 (FRAME_CHAIN): Define as ns32k_frame_chain.
8924 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8925 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8926 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8927 (FRAME_FIND_SAVED_REGS): Remove.
8928 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8929 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8930 (POP_FRAME): Define as ns32k_pop_frame.
8932 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8934 * ns32k-tdep.c (ns32k_register_byte_32082,
8935 ns32k_register_byte_32382, ns32k_register_raw_size,
8936 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8938 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8939 ns32k_register_byte_32382.
8940 * config/ns32k/tm-umax.h: Update copyright years.
8941 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8942 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8943 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8944 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8945 (ns32k_get_enter_addr): Fix prototype.
8947 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8949 * ns32k-tdep.c: Update copyright years.
8950 (ns32k_register_name_32082): New function.
8951 (ns32k_register_name_32382): Ditto.
8952 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8953 (REGISTER_NAME): Define as ns32k_register_name_32382.
8954 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8955 (REGISTER_NAME): Define as ns32k_register_name_32082.
8957 2002-05-24 Jim Blandy <jimb@redhat.com>
8959 * dwarf2read.c (free_line_header): Use xfree, not free.
8961 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8963 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8964 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8966 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8968 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8970 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8972 From Ross Alexander at NEC Europe:
8973 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8975 2002-05-23 Michael Snyder <msnyder@redhat.com>
8977 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8978 for input, rather than parse_and_eval_address.
8980 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8982 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8983 * Makefile.in (sim_d10v_h): Update definition.
8985 2002-05-24 Andrew Cagney <cagney@redhat.com>
8987 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8988 change `2002-05-22 Michael Snyder' below.
8989 (d10v_push_arguments): Ditto.
8990 (d10v_extract_return_value): Ditto.
8992 2002-05-23 Jim Blandy <jimb@redhat.com>
8994 * macrotab.c (check_for_redefinition): Don't complain if the new
8995 definition is the same as the previous one. Take more arguments
8996 to allow the comparison.
8997 (macro_define_object, macro_define_function): Pass more arguments
8998 to check_for_redefinition.
9000 2002-05-22 Michael Snyder <msnyder@redhat.com>
9002 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9003 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9004 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9005 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9006 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9007 Add a temp variable to save a call (and a memory read).
9008 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9009 if possible (so that PC_IN_CALL_DUMMY will work).
9011 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9013 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9015 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9017 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9019 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9020 (dwarf2_build_frame_info): Add offset to fde->initial_location
9021 so that frames of shared libraries are mapped correctly.
9022 (execute_stack_op): Change type of 'result' from ULONGEST to
9025 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9027 * config/alpha/tm-nbsd.h: Include solib.h.
9029 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9031 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9032 assumptions about the host's byte order.
9034 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9036 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9038 * alphanbsd-tdep.c: Include solib-svr4.h.
9039 * shnbsd-tdep.c: Ditto.
9041 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9043 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9044 nbsd-tdep.h to dependency list.
9045 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9046 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9047 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9048 nbsdaout.mh and nbsdelf.mh consistently.
9049 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9050 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9051 nbsdaout.mt and nbsdelf.mh consistently.
9052 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9053 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9054 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9055 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9056 a.out shared library stuff from here...
9057 * config/nm-nbsdaout.h: ...to here.
9058 * config/tm-nbsd.h: Remove.
9059 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9060 * config/arm/nbsd.mh: Remove.
9061 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9063 * config/arm/nbsdaout.mh: New file.
9064 * config/arm/nbsdelf.mh: New file.
9065 * config/arm/nm-nbsdaout.h: New file.
9066 * config/i386/nbsd.mh: Remove.
9067 * config/i386/nbsd.mt: Remove.
9068 * config/i386/nbsdaout.mh: New file.
9069 * config/i386/nbsdaout.mt: New file.
9070 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9071 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9072 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9073 i386_register_u_addr): Remove.
9074 * config/i386/nm-nbsdaout.h: New file.
9075 * config/i386/nm-nbsdelf.h: Remove.
9076 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9077 (USE_STRUCT_CONVENTION): Remove.
9078 * config/i386/tm-nbsdaout.h: New file.
9079 * config/i386/tm-nbsdelf.h: Remove.
9080 * config/m68k/nbsd.mh: Remove.
9081 * config/m68k/nbsd.mt: Remove.
9082 * config/m68k/nbsdaout.mh: New file.
9083 * config/m68k/nbsdaout.mt: New file.
9084 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9085 * config/m68k/nm-nbsdaout.h: New file.
9086 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9087 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9088 * config/ns32k/nbsd.mh: Remove.
9089 * config/ns32k/nbsd.mt: Remove.
9090 * config/ns32k/nbsdaout.mh: New file.
9091 * config/ns32k/nbsdaout.mt: New file.
9092 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9093 * config/ns32k/nm-nbsdaout.h: New file.
9094 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9095 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9096 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9097 (SVR4_SHARED_LIBS): Remove.
9098 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9099 * config/sparc/nbsd.mh: Remove.
9100 * config/sparc/nbsd.mt: Remove.
9101 * config/sparc/nbsdaout.mh: New file.
9102 * config/sparc/nbsdaout.mt: New file.
9103 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9104 * config/sparc/nbsdelf.mt: New file.
9105 * config/sparc/nm-nbsdaout.h: New file.
9106 * config/sparc/nm-nbsdelf.h: Remove.
9107 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9108 * config/sparc/tm-nbsdaout.h: New file.
9110 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9112 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9114 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9116 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9118 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9120 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9122 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9124 * NEWS: Note new MIPS NetBSD native configuration.
9125 * configure.host (mips*-*-netbsd*): New host.
9126 * configure.tgt (mips*-*-netbsd*): New target.
9127 * mipsnbsd-nat.c: New file.
9128 * mipsnbsd-tdep.c: New file.
9129 * mipsnbsd-tdep.h: New file.
9130 * config/mips/nbsd.mh: New file.
9131 * config/mips/nbsd.mt: New file.
9132 * config/mips/nm-nbsd.h: New file.
9133 * config/mips/tm-nbsd.h: New file.
9135 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9137 * Makefile.in (SFILES): Add osabi.c.
9138 (COMMON_OBS): Add osabi.o.
9139 (osabi.o): New dependency list.
9140 * osabi.c: New file.
9141 * osabi.h: New file.
9142 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9144 * Makefile.in (alpha_tdep_h): Define and use instead of
9146 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9147 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9149 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9150 * alpha-tdep.h: Include osabi.h.
9151 (alpha_abi): Remove.
9152 (gdbarch_tdep): Use generic OS ABI framework.
9153 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9154 gdbarch_register_osabi.
9155 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9156 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9157 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9159 * Makefile.in (sh_tdep_h): Add osabi.h.
9160 * sh-tdep.h (sh_osabi): Remove.
9161 (gdbarch_tdep): Use generic OS ABI framework.
9162 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9163 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9164 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9165 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9167 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9168 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9169 gdbarch_register_osabi.
9170 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9171 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9172 (get_elfosabi): Rename to...
9173 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9174 ABI framework support routines.
9175 (arm_gdbarch_init): Use generic OS ABI framework.
9176 (arm_dump_tdep): Likewise.
9177 (_initialize_arm_tdep): Likewise.
9178 * arm-tdep.h: Include osabi.h.
9180 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9182 (arm_gdbarch_register_os_abi): Remove prototype.
9183 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9184 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9186 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9187 * mips-tdep.c: Include osabi.h.
9188 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9191 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9193 * h8300-tdep.c: Fix formatting.
9195 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9197 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9198 printing vector registers.
9200 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9202 From Fernando Nasser:
9203 * remote.c (remote_async_open_1): Re-throw the exception when the
9205 (remote_cisco_open): Ditto.
9206 (remote_open_1): Ditto.
9208 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9210 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9211 (remote_start_remote): Add uiout parameter. Pass through to
9212 remote_start_remote_dummy.
9213 (remote_open_1): Use catch_exception instead of catch_errors.
9214 (remote_async_open_1): Ditto.
9215 (remote_cisco_open): Ditto.
9217 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9219 * remote.c (remote_start_remote): Replace PTR with void pointer.
9220 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9223 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9225 * gdb_indent.sh: Allow the script to be run in the sim directory.
9227 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9229 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9230 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9232 * corelow.c (core_open): Only call set_gdbarch_from_file if
9235 2002-05-17 Andrey Volkov <avolkov@transas.com>
9237 * h8300-tdep.c: Add support of EXR register
9238 * config/h8300/tm-h8300.h: Ditto.
9240 2002-05-17 Andrey Volkov <avolkov@transas.com>
9242 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9244 2002-05-17 Andrey Volkov <avolkov@transas.com>
9246 * h8300-tdep.c: Change literal regnums to REGNO.
9248 2002-05-17 Jim Blandy <jimb@redhat.com>
9250 * NEWS: Note addition of macro support.
9252 Expand preprocessor macros in C expressions.
9253 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9254 (scan_macro_expansion, scanning_macro_expansion,
9255 finished_macro_expansion): New function declarations.
9256 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9257 variable declarations.
9258 * parser-defs.h (expression_context_pc): New declaration.
9259 * parse.c (expression_context_pc): New variable.
9260 (parse_exp_1): Set expression_context_pc, as well as
9261 expression_context_block.
9262 * c-exp.y (yylex): If we're not already reading the result of a
9263 macro expansion, try to macro-expand the next token. When we're
9264 done scanning a macro expansion, switch back to the mainline text.
9265 Commas and `if's in a macro's expansion don't terminate the input.
9266 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9267 (macro_original_text, macro_expanded_text,
9268 expression_macro_lookup_func, expression_macro_lookup_baton): New
9270 (scan_macro_expansion, scanning_macro_expansion,
9271 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9272 c_preprocess_and_parse): New functions.
9273 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9274 c_preprocess_and_parse, instead of c_parse.
9275 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9276 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9278 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9280 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9281 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9282 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9284 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9286 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9288 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9290 * Makefile.in (sh_tdep_h): Define and use.
9291 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9292 register enum): Move to...
9293 * * sh-tdep.h: ...here.
9294 * sh-tdep.c: Include sh-tdep.h.
9295 * sh3-rom.c: Likewise.
9296 * shnbsd-tdep.c: Likewise.
9298 2002-05-16 Michael Snyder <msnyder@redhat.com>
9300 * arm-tdep.c: Spelling fix in comment.
9302 2002-05-16 Jim Blandy <jimb@redhat.com>
9304 Add commands for manually expanding macros and showing their
9306 * macrocmd.c, macroscope.c, macroscope.h: New files.
9307 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9308 (macroscope_h): New variable.
9309 (HFILES_NO_SRCDIR): Add macroscope.h.
9310 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9311 (macroscope.o, macrocmd.o): New rules.
9313 Teach the Dwarf 2 reader to read macro information.
9314 * dwarf2read.c: #include "macrotab.h".
9315 (dwarf_macinfo_buffer): New variable.
9316 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9318 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9319 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9320 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9321 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9322 dwarf2_macro_spaces_in_definition): New complaints.
9323 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9324 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9325 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9326 the partial symbol table.
9327 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9328 from what's recorded in the partial symbol table.
9329 (read_file_scope): If the compilation unit has a
9330 `DW_AT_macro_info' attribute, read its macro information.
9331 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9333 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9336 * ser-tcp.c: Don't include <netinet/udp.h>.
9338 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9340 * MAINTAINERS: Update my email address.
9342 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9344 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9345 include file of the same name.
9347 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9349 * configure.tgt: Mark v850 as multi-arched.
9350 * config/v850/tm-v850.h: Remove file.
9351 * config/v850/v850.mt: Eliminate TM_FILE.
9353 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9355 * v850-tdep.c: Full multi-arch.
9356 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9357 Define GDB_MULTI_ARCH to 2.
9359 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9361 * p-exp.y (current_type): New static variable.
9362 Carries the type of the expression at the position that is parsed.
9363 (push_current_type, pop_current_type): Two new functions. Used
9364 to store/restore current_type in expression on specific tokens.
9365 (search_field): New static variable. Set to one after parsing a point
9366 as at that point only a FIELDNAME token should be searched.
9367 (FIELDNAME): New token. After a point only a token belonging to
9368 current_type type definition is allowed.
9369 (all over token rules): reset and change current_type according
9371 (exp '[' rule): insert implicit array index field if
9372 exp is a pascal string type.
9374 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9376 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9377 frame info. Use frame_info's saved_regs instead of matching member
9378 in extra_frame_info throughout.
9379 (v850_frame_init_saved_regs): New function.
9380 (v850_init_extra_frame_info): Move most functionality into
9381 v850_frame_init_saved_regs().
9382 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9383 (v850_frame_find_saved_regs): Remove declaration.
9384 (FRAME_FIND_SAVED_REGS): Remove definition.
9385 (v850_frame_init_saved_regs): Add declaration.
9386 (FRAME_INIT_SAVED_REGS): Add definition.
9388 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9390 * v850-tdep.c: Begin multi-arch'ing v850.
9391 (v850_target_architecture_hook): Remove function.
9392 (v850_gdbarch_init): New function. Add code previously in
9393 v850_target_architecture_hook().
9394 (_initialize_v850_tdep): Don't set target_architecture_hook.
9395 Call register_gdbarch_init() instead.
9397 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9399 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9400 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9401 (fixup_class_method_type): Likewise.
9403 2002-05-15 Jim Blandy <jimb@redhat.com>
9405 Add macro structures to GDB's symbol tables. Nobody puts anything
9407 * symtab.h (struct symtab): New member: `macro_table'.
9408 * buildsym.h (pending_macros): New global variable.
9409 * buildsym.c: #include "macrotab.h".
9410 (buildsym_init): Initialize `pending_macros'.
9411 (end_symtab): If we found macro information while reading a CU's
9412 debugging info, do build a symtab structure for it. Make the
9413 symtab point to the macro information, and clear the
9414 `pending_macros' pointer which held it while we were reading the
9416 (really_free_pendings): Free any pending macro table.
9417 * objfiles.h (struct objfile): New member: `macro_cache'.
9418 * objfiles.c (allocate_objfile): Set allocate and free functions
9419 for the macro cache's objstack.
9420 (free_objfile): Empty the macro cache's obstack.
9421 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9422 set new allocate and free functions for it.
9423 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9424 free functions for the macro cache's objstack. (Why is this
9425 function building its own objfile?)
9426 * symmisc.c (print_objfile_statistics): Print statistics on the
9428 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9430 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9432 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9433 (REGISTER_U_ADDR): Delete definition.
9434 (arm_register_u_addr): Delete declaration.
9436 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9438 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9439 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9441 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9443 * regcache.c (register_valid): Revise comments refering to "Not
9444 available" and "unavailable".
9445 * frame.c (frame_register_read): Ditto.
9446 * findvar.c (value_of_register): Ditto.
9448 2002-05-15 Andrew Cagney <cagney@redhat.com>
9450 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9451 (remote-sim.o): Update dependencies.
9452 (d10v-tdep.o): Specify dependencies.
9453 (sim_d10v_h): Define.
9455 2002-05-14 Jim Blandy <jimb@redhat.com>
9457 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9458 * macrotab.c (macro_lookup_inclusion, find_definition,
9459 new_macro_table): Same.
9461 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9462 not `! strcmp ()'. This is a dubious improvement.
9463 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9465 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9466 although it's not necessary, to avoid a warning.
9468 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9470 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9471 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9472 TYPE_INSTANCE_FLAGS.
9473 (struct main_type): New.
9474 (struct type): Move most members to struct main_type. Change
9475 cv_type and as_type to new type_chain member. Add instance_flags.
9476 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9477 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9478 (finish_cv_type): Remove prototype.
9479 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9481 (alloc_type_instance): New function.
9482 (smash_type): New function.
9483 (make_pointer_type, make_reference_type, make_function_type)
9484 (smash_to_member_type, smash_to_method_type): Call smash_type.
9485 (make_qualified_type): New function.
9486 (make_type_with_address_space): Call make_qualified_type.
9487 (make_cv_type): Likewise.
9488 (finish_cv_type): Remove unnecessary function.
9489 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9490 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9491 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9492 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9493 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9494 * hpread.c (hpread_read_struct_type): Likewise.
9495 * stabsread.c (read_struct_type): Likewise.
9497 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9499 * configure.tgt: Add a catch all sh* target, for cases like
9500 sh[2,3,4]-elf and sh-hms.
9502 2002-05-14 Keith Seitz <keiths@redhat.com>
9504 * event-loop.c (create_file_handler): Don't do anything but
9505 update data when we are given a fd which we are already
9508 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9510 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9511 (update_context): Use __func__ in warnings.
9513 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9515 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9516 and tcp_close to net_open and net_close.
9517 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9518 using UDP if requested. Don't try to disable Nagle on UDP
9520 * remote.c (remote_serial_open): New function. Warn about UDP.
9521 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9523 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9525 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9527 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9529 * configure.tgt: Remove sh-hms target.
9530 * MAINTAINERS: Don't list sh-hms as a separate target.
9532 2002-05-13 Jim Blandy <jimb@redhat.com>
9534 Add first preprocessor macro-expansion files.
9535 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9536 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9537 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9538 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9539 (COMMON_OBS): Add macrotab.o, macroexp.o.
9540 (macroexp.o, macrotab.o): New rules.
9542 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9544 * config/m88k/tm-m88k.h: Update copyright.
9545 (m88k_target_write_pc): Declare
9546 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9547 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9548 (SHIFT_INST_REGS): Update definition.
9549 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9550 using old definition of TARGET_WRITE_PC.
9551 * regcache.c (generic_target_write_pc): Delete code handling
9553 * gdbarch.sh (NNPC_REGNUM): Delete.
9554 * gdbarch.h, gdbarch.c: Regenerate.
9556 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9558 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9561 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9563 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9564 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9565 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9567 * c-typeprint.c (cp_type_print_method_args): Likewise.
9568 (c_type_print_args): Likewise.
9569 * d10v-tdep.c (d10v_push_arguments): Likewise.
9570 (d10v_extract_return_value): Likewise.
9571 * expprint.c (print_subexp): Likewise.
9572 * gdbtypes.c (lookup_primitive_typename): Likewise.
9573 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9574 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9575 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9576 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9577 (TYPE_VECTOR): Likewise.
9578 * hpread.c (hpread_read_struct_type)
9579 (fix_static_member_physnames, fixup_class_method_type)
9580 (hpread_type_lookup): Likewise.
9581 * mdebugread.c (parse_symbol, parse_type): Likewise.
9582 * p-lang.c (is_pascal_string_type): Likewise.
9583 * valops.c (hand_function_call): Likewise.
9584 * x86-64-tdep.c (classify_argument): Likewise.
9586 * hpread.c (hpread_read_function_type)
9587 (hpread_read_doc_function_type): Call replace_type.
9588 * dstread.c (create_new_type): Delete.
9589 (decode_dst_structure, process_dst_function): Call alloc_type.
9590 Use type access macros.
9592 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9594 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9595 the're not supported by the current architecture.
9596 (i387_fill_fxsave): Likewise.
9598 2002-05-12 Fred Fish <fnf@redhat.com>
9600 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9601 sect_index_xxx members to index the first slot in section_offsets
9602 if all of the section_offsets are zero.
9604 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9606 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9607 checked in with last change.
9609 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9611 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9612 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9615 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9617 * Makefile.in: Update dependencies.
9619 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9621 * language.c (local_hex_string_custom): Simplify. Do not depend
9622 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9624 * memattr.c (mem_info_command): Replace calls to
9625 longest_local_hex_string and longest_local_hex_string_custom.
9626 * buildsym.c (make_blockvector): Ditto.
9627 * solib.c (info_sharedlibrary_command): Ditto.
9628 * tracepoint.c (tracepoints_info): Ditto.
9629 * symtab.c (print_msymbol_info): Ditto.
9631 * language.c (local_hex_string): Delete.
9632 (local_hex_string_custom): Delete.
9633 (longest_local_hex_string): Rename to local_hex_string.
9634 (longest_local_hex_string_custom): Rename to
9635 local_hex_string_custom.
9636 * language.h (local_hex_string): Change parameter type to LONGEST.
9637 (local_hex_string_custom): Ditto.
9638 (longest_local_hex_string): Delete declaration.
9639 (longest_local_hex_string_custom): Ditto.
9641 * solib.c: Update copyright.
9642 * memattr.c: Update copyright.
9644 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9646 * arch-utils.h (legacy_register_to_value): Declare.
9647 (legacy_value_to_register): Declare.
9648 (legacy_convert_register_p): Declare.
9649 * arch-utils.c (legacy_register_to_value): New function.
9650 (legacy_value_to_register): New function.
9651 (legacy_convert_register_p): New function.
9653 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9654 (VALUE_TO_REGISTER): Define.
9655 (CONVERT_REGISTER_P): Define.
9656 * gdbarch.h, gdbarch.c: Regenerate.
9658 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9660 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9663 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9664 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9666 * Makefile.in: Update dependencies for valops.c.
9667 * valops.c: Include "gdb_assert.h".
9668 (typecmp): Skip THIS parameter to methods.
9669 (find_method_list): Remove static_memfuncp argument,
9670 update callers. Check for stub methods.
9671 (find_value_oload_method_list): Don't set *static_memfuncp.
9672 (find_overload_match): Don't check for stub methods. Assert
9673 that methods are not stubbed. Handle static methods.
9674 (value_find_oload_method_list): Remove static_memfuncp argument.
9675 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9676 to the argument list for static stub methods.
9677 * value.h (value_find_oload_method_list): Update prototype.
9679 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9681 * arch-utils.h (generic_register_size): Declare.
9682 (generic_register_raw_size, generic_register_virtual_size): Delete
9684 * arch-utils.c (generic_register_raw_size): Delete.
9685 (generic_register_size): New function.
9686 (generic_register_virtual_size): Delete.
9688 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9689 default generic_register_size.
9690 * gdbarch.h, gdbarch.c: Re-generate.
9692 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9693 register_virtual_size.
9694 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9697 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9699 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9700 * gdbarch.h, gdbarch.c: Regenerate.
9701 * gnu-v3-abi.c: Update copyright.
9702 (vtable_address_point_offset): Update.
9703 (gnuv3_rtti_type): Update.
9704 (gnuv3_baseclass_offset): Update.
9705 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9706 (init_fetch_link_map_offsets): Update.
9707 * remote.c (get_remote_state): Update.
9709 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9711 * TODO: Remove value_headof/value_from_vtable_info comment.
9712 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9713 * values.c (value_headof, value_from_vtable_info): Delete.
9714 * value.h (value_from_vtable_info): Delete prototype.
9716 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9718 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9719 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9721 (gdb_assert_h): Define.
9722 (gdb_wait_h): Define.
9723 (gdb_regex_h): Define.
9725 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9727 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9728 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9730 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9732 * nbsd-tdep.c: Fix comment.
9734 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9736 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9737 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9738 (nbsd-tdep.o): New dependency list.
9739 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9741 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9742 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9743 * nbsd-tdep.c: New file.
9744 * nbsd-tdep.h: New file.
9745 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9747 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9748 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9749 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9750 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9752 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9754 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9755 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9756 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9757 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9758 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9759 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9761 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9763 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9764 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9765 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9766 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9767 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9768 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9769 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9771 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9773 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9774 fetch_elfcore_registers to...
9775 * i386nbsd-tdep.c: ...here.
9776 (i386nbsd_use_struct_convention): Rename to...
9777 (i386nbsd_aout_use_struct_convention): ...this.
9778 (i386nbsd_supply_reg): New function.
9779 (i386nbsd_fill_reg): New function.
9780 (fetch_core_registers): Use i386nbsd_supply_reg.
9781 (fetch_elfcore_registers): Likewise.
9782 (_initialize_i386nbsd_tdep): New function.
9783 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9784 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9785 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9786 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9787 (i386nbsd_aout_use_struct_convention): ...this.
9789 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9791 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9792 (store_inferior_registers): Use shnbsd_fill_reg.
9793 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9794 sh_nbsd_supply_register): Collapse into...
9795 (shnbsd_supply_reg): ...this.
9796 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9797 (shnbsd_fill_reg): ...this.
9798 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9799 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9800 (fetch_core_registers): Use shnbsd_supply_reg.
9801 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9802 (sh_nbsd_core_fns): Rename to...
9803 (shnbsd_core_fns): ...this.
9804 (sh_nbsd_elfcore_fns): Rename to...
9805 (shnbsd_elfcore_fns): ...this.
9806 (sh_nbsd_init_abi): Rename to...
9807 (shnbsd_init_abi): ...this.
9808 (_initialize_sh_nbsd_tdep): Rename to...
9809 (_initialize_shnbsd_tdep): ...this.
9810 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9811 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9812 sh_nbsd_fill_register): Remove prototypes.
9813 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9815 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9817 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9818 (i387-nat.o): Delete dependency list.
9819 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9820 (x86-64-linux-nat.o): Likewise.
9821 * i387-nat.c: Delete file, moving contents to...
9822 * i387-tdep.c: ...here.
9823 * i387-nat.h: Rename...
9824 * i387-tdep.h: ...to this.
9825 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9826 * i386-linux-nat.c: Likewise.
9827 * i386bsd-nat.c: Likewise.
9828 * i386gnu-nat.c: Likewise.
9829 * i386nbsd-nat.c: Likewise.
9830 * i386v4-nat.c: Likewise.
9831 * x86-64-linux-nat.c: Likewise.
9832 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9833 * config/i386/go32.mh (NATDEPFILES): Likewise.
9834 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9835 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9836 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9837 * config/i386/linux.mh (NATDEPFILES): Likewise.
9838 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9839 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9840 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9841 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9843 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9845 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9846 (alphanbsd-nat.o): Remove dependency list.
9847 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9848 * alphanbsd-nat.c: Delete. Contents moved to...
9849 * alphanbsd-tdep.c: ...here.
9850 (_initialize_alphanbsd_tdep): Register core functions.
9851 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9853 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9855 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9856 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9857 (alphanbsd-nat.o): Likewise.
9858 (alphabsd-tdep.o): New dependency list.
9859 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9860 (fill_gregset): Use alphabsd_fill_reg.
9861 (supply_fpregset): Use alphabsd_supply_fpreg.
9862 (fill_fpregset): Use alphabsd_fill_fpreg.
9863 (fetch_inferior_registers): Use struct reg and struct fpreg
9864 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9865 and alphabsd_supply_fpreg.
9866 (store_inferior_registers): Use struct reg and struct fpreg
9867 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9868 and alphabsd_fill_fpreg.
9869 * alphabsd-tdep.c: New file.
9870 * alphabsd-tdep.h: New file.
9871 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9872 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9873 alphabsd_supply_fpreg.
9874 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9875 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9877 2002-05-11 Eric Christopher <echristo@redhat.com>
9879 * mips-tdep.c (mips_double_register_type): Fix thinko.
9880 (mips_single_register_type): Ditto.
9881 * MAINTAINERS: Add self.
9883 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9885 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9886 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9887 right thing on architectures with different endianness and/or
9890 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9892 From Christian Limpach <chris@Pin.LU>
9893 * configure.in: Change sed expression which comments out
9894 NATDEPFILES to also comment out continuation lines.
9895 * configure: Regenerate.
9897 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9899 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9902 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9904 * sh-tdep.c: Include correct file.
9906 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9908 New support for sh64-elf (sh5) target.
9910 * configure.tgt: For sh64-elf target, default to sh-elf.
9912 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9913 (struct gdbarch_tdep): Add new fields for new registers and ABI
9916 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9917 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9918 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9919 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9920 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9921 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9922 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9923 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9924 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9925 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9926 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9927 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9928 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9929 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9930 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9931 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9932 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9933 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9934 sign_extend, sh64_nofp_frame_init_saved_regs,
9935 sh64_init_extra_frame_info, sh64_get_saved_register,
9936 sh64_extract_struct_value_address, sh64_pop_frame,
9937 sh64_push_arguments, sh64_extract_return_value,
9938 sh64_store_return_value, sh64_show_media_regs,
9939 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9940 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9941 sh_sh64_register_virtual_type,
9942 sh_sh64_register_convert_to_virtual,
9943 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9944 sh64_register_read, sh64_pseudo_register_write,
9945 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9946 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9947 sh64_do_pseudo_register, sh_compact_do_registers_info,
9948 sh64_do_registers_info, sh_gdbarch_init): New functions.
9950 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9952 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9954 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9956 * linespec.c (decode_line_1): Check for a double quote after
9957 a filename correctly.
9959 2002-05-10 Jim Blandy <jimb@redhat.com>
9961 Properly track the size of the current objfile's .debug_line section.
9962 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9963 (DWARF_LINE_SIZE): New macro.
9964 (dwarf2_build_psymtabs_hard): Record the line section's size in
9965 the partial symbol table.
9966 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9969 2002-05-10 Petr Sorfa <petrs@caldera.com>
9971 * ia64-tdep.c: Handle breakpoints on L instruction type
9972 in MLX instruction bundle by moving the breakpoint to
9973 the third slot (X instruction type) as L holds only data.
9975 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9977 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9978 (process_one_symbol): Complain about discarding local symbols
9979 due to a misplaced N_LBRAC entry.
9981 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9983 From Daniel Berlin <dan@cgsoftware.com>
9984 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9985 decrease the depth we are at, in the case of templates.
9987 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9989 * mips-tdep.c (mips_float_register_type): New function.
9990 (mips_double_register_type): New function.
9991 (mips_print_register): Use them.
9992 (do_fp_register_row): Likewise.
9994 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9996 * signals/signals.c (signals): Remove conditional compilation around
9997 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9998 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10000 2002-05-09 Michael Snyder <msnyder@redhat.com>
10002 * remote-rdp.c (remote_rdp_can_run): Remove.
10004 2002-05-09 Tom Tromey <tromey@redhat.com>
10006 * jv-valprint.c (java_val_print): Handle `char' as a special case
10009 2002-05-09 Michael Snyder <msnyder@redhat.com>
10011 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10012 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10013 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10014 str r(0123),[sp,#nn].
10015 (arm_skip_prologue): Ditto. Also make disassembly
10016 order-independent by placing it in a loop.
10018 2002-05-06 Michael Snyder <msnyder@redhat.com>
10020 * stabsread.c (read_type): Add recognition for new attribute:
10021 "@V;" means that an array type is actually a vector.
10022 This is analogous to the vector flag that's been added to dwarf2.
10024 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10026 * i386-tdep.h (i386_abi): New enum.
10027 (struct gdbarch_tdep): Replace os_ident member with abi.
10028 (i386_gdbarch_register_os_abi): New prototype.
10029 * i386-tdep.c (i386_abi_names): New array.
10030 (process_note_abi_tag_sections): Removed.
10031 (process_note_sections): New function.
10032 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10033 (struct i386_abi_handler): New struct.
10034 (i386_abi_handler_list): New variable.
10035 (i386_gdbarch_register_os_abi): New function.
10036 (i386_gdbarch_init): Adapt for the changes given above.
10038 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10040 * gregset.h: Say "GNU/Linux".
10042 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10044 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10045 (build_gdbtypes): Build builtin_type_v2_float.
10046 (_initialize_gdbtypes): Register new builtin type.
10048 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10050 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10051 (clear_gdbarch_swap): New function.
10052 (initialize_non_multiarch): Call.
10053 (gdbarch_update_p): Before calling init(), swap out and clear the
10054 existing architecture.
10055 * gdbarch.c: Regenerate.
10057 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10059 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10062 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10064 * sh-nbsd-nat.c: Rename to...
10065 * shnbsd-nat.c: ...this.
10066 * sh-nbsd-tdep.c: Rename to...
10067 * shnbsd-tdep.c: ...this.
10068 * sh-nbsd-tdep.h: Rename to...
10069 * shnbsd-tdep.h: ...this.
10070 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10071 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10073 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10075 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10076 concatenation for command help messages.
10078 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10080 * NEWS: Note new sh*-*-netbsdelf* configuration.
10081 * configure.host: Set gdb_host_cpu to sh for all sh*.
10082 (sh*-*-netbsdelf*): New host.
10083 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10084 (sh*-*-netbsdelf*): New target.
10085 * sh-nbsd-nat.c: New file.
10086 * sh-nbsd-tdep.c: New file.
10087 * sh-nbsd-tdep.h: New file.
10088 * config/sh/nbsd.mh: New file.
10089 * config/sh/nbsd.mt: New file.
10090 * config/sh/nm-nbsd.h: New file.
10091 * config/sh/tm-nbsd.h: New file.
10093 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10095 * sh-tdep.c (sh_osabi_names): Declare.
10096 (process_note_abi_tag_sections): New function.
10097 (get_elfosabi): Ditto.
10098 (sh_gdbarch_register_os_abi): Ditto.
10099 (sh_dump_tdep): Ditto.
10100 _initialize_sh_tdep): Use gdbarch_register to register
10101 sh_gdbarch_init and sh_dump_tdep.
10102 * config/sh/tm-sh.h (sh_osabi): Declare.
10103 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10105 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10107 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10108 (thumb_scan_prologue): Ditto.
10109 (arm_find_callers_reg): Ditto.
10110 (arm_frame_chain): Ditto.
10111 (arm_init_extra_frame_info): Ditto.
10112 (arm_frame_saved_pc): Ditto.
10113 (arm_pop_frame): Ditto.
10114 (arm_push_return_address): New function.
10115 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10116 call_dummy_location, call_dummy_breakpoint_offset_p,
10117 call_dummy_breakpoint_offset, call_dummy_p,
10118 call_dummy_stack_adjust_p, call_dummy_words,
10119 sizeof_call_dummy_words, call_dummy_start_offset,
10120 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10121 call_dummy_address, push_return_address and push_dummy_frame for
10122 generic dummy frames.
10124 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10126 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10127 size computation for alloca.
10128 (sh_fp_frame_init_saved_regs): Likewise.
10130 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10132 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10133 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10134 * arm-tdep.c (arm_store_return_value): Use them.
10135 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10136 * remote-rdp.c (remote_rdp_fetch_register): Use
10137 ARM_MAX_REGISTER_RAW_SIZE.
10138 (remote_rdp_store_register): Likewise.
10140 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10142 * dwarf2cfi.c: Code cleanup, removed unused variables,
10143 added default labels to switch {} statements.
10144 * x86-64-tdep.c: Ditto.
10145 * x86-64-linux-nat.c: Ditto.
10147 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10149 * solib.h: Protect against multiple inclusion.
10151 2002-05-06 Jim Blandy <jimb@redhat.com>
10153 Add first preprocessor macro-expansion files.
10154 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10155 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10156 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10157 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10158 (COMMON_OBS): Add macrotab.o, macroexp.o.
10159 (macroexp.o, macrotab.o): New rules.
10161 Separate the job of reading the line number info statement program
10162 header (...expialidocious) out into its own function.
10163 * dwarf2read.c (struct line_head, struct filenames, struct
10164 directories): Replace with...
10165 (struct line_header): New structure, containing the full
10166 contents of the statement program header, including the
10167 include directory and file name tables.
10168 (read_file_scope): If we have line number info, instead of just
10169 calling dwarf_decode_lines to do all the work, call
10170 dwarf_decode_line_header first to get a `struct line_header'
10171 containing the data in the statement program header, and then
10172 pass that to dwarf_decode_lines, which will pick up where that
10173 left off. Be sure to clean up the `struct line_header' object.
10174 (dwarf_decode_line_header, free_line_header, add_include_dir,
10175 add_file_name): New functions.
10176 (dwarf_decode_lines): Move all the code to read the statement
10177 program header into dwarf_decode_line_header. Take the line
10178 header it built as the first argument, instead of the offset to
10179 the compilation unit's line number info. Use the new `struct
10180 line_header' type instead of the old structures. No need to do
10181 cleanups here now, since we don't allocate anything.
10182 (dwarf2_statement_list_fits_in_line_number_section,
10183 dwarf2_line_header_too_long): New complaints.
10185 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10187 * gdbtypes.c (init_vector_type): New function.
10188 (build_builtin_type_vec128): Simplify the representation of SIMD
10190 (build_gdbtypes): Initialize new builtin vector types.
10191 (_initialize_gdbtypes): Register new vector types with gdbarch.
10192 (builtin_type_v4_float, builtin_type_v4_int32,
10193 builtin_type_v8_int16, builtin_type_v16_int8,
10194 builtin_type_v2_int32, builtin_type_v4_int16,
10195 builtin_type_v8_int8): New (renamed) SIMD types.
10197 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10199 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10200 (i387_fill_fxsave): Likewise.
10202 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10204 * alpha-tdep.c (alpha_extract_return_value): Don't use
10205 non-constant array size in prototype.
10207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10209 From Brian Taylor <briant at model dot com>:
10210 * ui-out.c (ui_out_field_core_addr): Use the function
10211 longest_local_hex_string_custom'to format addresses > 32 bits
10214 * ui-out.c (ui_out_field_core_addr): Update comment.
10216 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10218 * stack.c (select_and_print_frame): Make static. Delete the
10220 (func_command): Update call.
10221 (select_frame_command): Delete code computing the frame level.
10222 * frame.h (select_and_print_frame): Delete declaration.
10224 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10226 * sparc-tdep.c (sparc_get_saved_register): Comment why
10227 get_prev_frame call is safe.
10229 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10231 * frame.h (select_frame): Delete level parameter.
10232 * stack.c (select_frame): Update. Use frame_relative_level to
10233 obtain the frame's level.
10234 (select_and_print_frame): Update call.
10235 (select_frame_command): Ditto.
10236 (up_silently_base): Ditto.
10237 (down_silently_base): Ditto.
10238 * ocd.c (ocd_start_remote): Ditto.
10239 * remote-rdp.c (remote_rdp_open): Ditto.
10240 * remote-mips.c (mips_initialize): Ditto.
10241 (common_open): Ditto.
10242 * remote-e7000.c (e7000_start_remote): Ditto.
10243 * m3-nat.c (select_thread): Ditto.
10244 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10245 (child_get_current_exception_event): Ditto.
10246 * varobj.c (varobj_create): Ditto.
10247 (varobj_update): Ditto.
10248 (c_value_of_root): Ditto.
10249 * tracepoint.c (finish_tfind_command): Ditto.
10250 * corelow.c (core_open): Ditto.
10251 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10252 * thread.c (info_threads_command): Ditto.
10253 (switch_to_thread): Ditto.
10254 * infrun.c (normal_stop): Ditto.
10255 (restore_selected_frame): Ditto.
10256 (restore_inferior_status): Ditto.
10257 * breakpoint.c (insert_breakpoints): Ditto.
10258 (watchpoint_check): Ditto.
10259 (bpstat_stop_status): Ditto.
10260 (do_enable_breakpoint): Ditto.
10261 * blockframe.c (flush_cached_frames): Ditto.
10262 (reinit_frame_cache): Ditto.
10264 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10266 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10269 2002-05-04 Jim Blandy <jimb@redhat.com>
10271 * gdbtypes.c (replace_type): Doc fix.
10273 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10275 * valprint.c (strcat_longest): Delete commented out function.
10278 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10280 * MAINTAINERS: Mark a29k as deleted.
10281 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10282 Move new configurations to the top.
10283 * configure.tgt: Remove a29k.
10284 * config/a29k/tm-vx29k.h: Delete.
10285 * config/a29k/vx29k.mt: Delete.
10286 * config/a29k/tm-a29k.h: Delete.
10287 * config/a29k/a29k-udi.mt: Delete.
10288 * config/a29k/a29k.mt: Delete.
10289 * a29k-tdep.c: Delete.
10290 * remote-udi.c: Delete.
10291 * remote-mm.c: Delete.
10292 * remote-eb.c: Delete.
10293 * remote-adapt.c: Delete.
10294 * Makefile.in: Remove obsolete code.
10295 * config/s390/s390x.mt: Ditto.
10296 * config/s390/s390.mt: Ditto.
10297 * config/sparc/sparclynx.mh: Ditto.
10298 * config/sparc/linux.mh: Ditto.
10299 * config/pa/hppaosf.mh: Ditto.
10300 * config/pa/hppabsd.mh: Ditto.
10301 * config/ns32k/nbsd.mt: Ditto.
10302 * config/mips/vr5000.mt: Ditto.
10303 * config/m68k/sun3os4.mh: Ditto.
10304 * config/m68k/nbsd.mt: Ditto.
10305 * config/m68k/m68klynx.mh: Ditto.
10306 * config/m32r/m32r.mt: Ditto.
10307 * config/i386/x86-64linux.mt: Ditto.
10308 * config/i386/nbsdelf.mt: Ditto.
10309 * config/i386/nbsd.mt: Ditto.
10310 * config/i386/i386lynx.mh: Ditto.
10312 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10314 * target.c (debug_print_register): New function. Handle oversize
10316 (debug_to_fetch_registers): Call.
10317 (debug_to_store_registers): Call.
10319 2002-05-03 Jim Blandy <jimb@redhat.com>
10321 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10322 (read_type): Doc fix.
10323 * gdbtypes.c (replace_type): Doc fix.
10325 * stabsread.c (multiply_defined_struct): New complaint.
10326 (read_struct_type): If the type we were passed isn't empty, or
10327 incomplete, don't read the new struct type into it; complain,
10328 and return the original type unchanged. Take a new `type_code'
10329 argument, which is the type code for the new type.
10330 (read_type): Rather than storing the type's type code here, pass
10331 it as an argument to read_struct_type, and let that take care of
10332 storing it. That way, we don't overwrite the original type code,
10333 so read_struct_type can use it to decide whether we're overwriting
10334 something we shouldn't.
10335 (complain_about_struct_wipeout): New function.
10337 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10339 * gdbarch.sh: Assert that gdbarch is non-NULL.
10340 * gdbarch.c: Regenerate.
10342 2002-05-03 Jason Merrill <jason@redhat.com>
10344 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10347 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10349 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10350 (x86_64_dwarf2gdb_regno_map_length),
10351 (x86_64_dwarf2_reg_to_regnum): Added.
10352 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10353 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10354 (_initialize_x86_64_tdep): Synced with the change above.
10355 (x86_64_skip_prologue): Reformulated message.
10357 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10359 * f-exp.y: Also use new prev_lexptr variable
10360 to improve error reporting. Based on Michael Snyder
10361 2002-04-24 dated patch to c-exp.y.
10362 * jv-exp.y: Likewise.
10363 * m2-exp.y: Likewise.
10365 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10367 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10368 we are dealing with vectors.
10370 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10372 * config/m68k/tm-nbsd.h: Obvious fix,
10373 correct machine name.
10375 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10377 * p-typeprint.c (pascal_type_print_base): Add support
10378 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10380 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10382 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10383 for fondamental pascal 'char' type.
10385 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10387 * p-lang.h (is_pascal_string_type): Declaration changed,
10388 new sixth argument of type char ** added.
10389 * p-lang.c (is_pascal_string_type): Implementation
10390 changed. Args length_pos, length_size, string_pos, char_size
10391 can now be NULL. New argument arrayname set to the field
10392 name of the char array. Return value set to char array
10393 field index plus one.
10394 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10395 is_pascal_string_type function.
10397 2002-05-02 Andrew Cagney <cagney@redhat.com>
10399 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10400 <cagney@redhat.com> change.
10401 * gdbarch.c: Regenerate.
10403 2002-05-02 Andrew Cagney <cagney@redhat.com>
10405 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10406 before probing for a new one. Detect errorenous gdbarch_init
10408 * gdbarch.c: Regenerate.
10410 2002-05-01 Andrew Cagney <cagney@redhat.com>
10412 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10413 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10414 * config/v850/tm-v850.h: Ditto. Update copyright.
10416 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10418 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10421 2002-04-30 Michael Snyder <msnyder@redhat.com>
10423 * arm-tdep.c: Whitespace clean-ups.
10424 (arm_skip_prologue): Fix thinko; two lines
10425 should have been removed as part of 4/24 change.
10427 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10429 * rs6000-tdep.c: Added comment describing how fpscr register
10430 numbers were chosen.
10432 2002-04-30 Michael Snyder <msnyder@redhat.com>
10434 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10436 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10438 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10439 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10440 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10442 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10444 From Louis Hamilton <hamilton@redhat.com>:
10445 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10446 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10447 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10448 not bfd-private xcoff data, to determine wordsize.
10449 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10451 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10453 GDB 5.2 released from 5.2 branch.
10455 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10457 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10458 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10459 (x86_64_register_info_table): Added comments with register numbers.
10461 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10463 * rs6000-tdep.c (rs6000_extract_return_value,
10464 rs6000_store_return_value): Handle returning vectors.
10465 (rs6000_gdbarch_init): Use
10466 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10467 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10469 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10471 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10472 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10474 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10476 * hpread.c (hpread_psymtab_to_symtab_1,
10477 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10478 with fprintf_unfiltered (gdb_stderr,...).
10480 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10482 * remote-array.c (printf_monitor, write_monitor,
10483 array_insert_breakpoint, array_remove_breakpoint ):
10484 Replace fprintf (stderr,...
10485 with fprintf_unfiltered (gdb_stderr,....
10486 * remote-es.c: Likewise.
10487 * remote-os9k.c: Likewise.
10488 * remote-st.c: Likewise.
10490 2002-04-28 Andreas Schwab <schwab@suse.de>
10492 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10493 linux-proc.o and gcore.o.
10495 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10497 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10498 code without frame pointers.
10500 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10502 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10503 ON_STACK is needed.
10505 2002-04-26 Ben Elliston <bje@redhat.com>
10507 * target.c (do_xfer_memory): Correct reference to the new option
10508 "trust-readonly-sections".
10510 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10512 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10513 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10514 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10516 (read_array_type): Record the fact that this array type is really a
10517 vector (i.e. are passed in by value).
10519 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10521 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10522 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10523 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10524 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10525 * alpha-linux-tdep.c: Include frame.h.
10526 (alpha_linux_sigcontext_addr): New function.
10527 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10528 alpha_linux_sigcontext_addr.
10529 * alpha-osf1-tdep.c: Include gdbcore.h.
10530 (alpha_osf1_sigcontext_addr): New function.
10531 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10532 alpha_osf1_sigcontext_addr.
10533 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10534 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10536 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10538 * stack.c (selected_frame_level):
10539 (select_frame): Do not set selected_frame_level.
10540 * frame.h (selected_frame_level): Delete declaration.
10542 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10544 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10545 convert_from_func_ptr-addr when AIX / PowerOpen.
10547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10549 * valops.c (hand_function_call): Call
10550 generic_save_call_dummy_addr.
10551 * frame.h (generic_save_call_dummy_addr): Declare.
10552 * blockframe.c (struct dummy_frame): Add fields call_lo and
10554 (generic_find_dummy_frame): Check for PC in range call_lo to
10555 call_hi instead of entry_point_address.
10556 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10557 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10558 (generic_save_call_dummy_addr): New function.
10560 2002-04-24 David S. Miller <davem@redhat.com>
10562 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10563 sparc_skip_prologue.
10564 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10565 information to find prologue when possible.
10566 (sparc_prologue_frameless_p): Call examine_prologue directly.
10567 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10568 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10570 (SKIP_PROLOGUE): Likewise.
10572 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10574 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10575 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10576 indicate that the condition it was testing is always true.
10577 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10578 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10579 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10581 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10583 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10584 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10585 tdep->jb_pc and tdep->jb_elt_size.
10586 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10587 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10588 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10589 * alpha-nat.c (get_longjmp_target): Remove.
10590 (JB_ELEMENT_SIZE): Ditto.
10592 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10593 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10594 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10595 to alpha_get_longjmp_target.
10596 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10597 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10598 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10600 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10602 * README: Update to GDB 5.2.
10604 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10606 * gdbarch.sh (LC_ALL): Set to `c'.
10608 2002-04-25 Theodore A. Roth <troth@verinet.com>
10610 * avr-tdep.c: Ran through gdb_indent.sh.
10612 2002-04-25 Theodore A. Roth <troth@verinet.com>
10614 * MAINTAINERS: Add myself as AVR maintainer.
10615 * NEWS: Note new target avr.
10617 2002-04-25 Theodore A. Roth <troth@verinet.com>
10619 * Makefile.in: Add support for AVR target.
10620 * configure.tgt: Add support for AVR target.
10621 * avr-tdep.c: New file
10622 * config/avr/avr.mt: New file.
10624 2002-04-25 Theodore A. Roth <troth@verinet.com>
10626 * MAINTAINERS: Add myself to write-after-approval.
10628 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10630 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10631 with fprintf_unfiltered (gdb_stderr,....
10633 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10636 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10638 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10640 * p-exp.y: Also use new prev_lexptr variable
10641 to improve error reporting. Based on Michael Snyder
10642 2002-04-24 dated patch to c-exp.y.
10644 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10646 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10647 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10648 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10650 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10652 (FUNCTION_START_OFFSET): Remove.
10653 (BREAKPOINT): Ditto.
10655 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10657 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10660 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10662 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10663 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10664 alpha_linux_pc_in_sigtramp.
10665 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10666 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10667 alpha_osf1_pc_in_sigtramp.
10668 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10669 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10670 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10671 alphafbsd_pc_in_sigtramp.
10672 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10673 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10674 alphanbsd_pc_in_sigtramp.
10675 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10676 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10678 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10680 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10682 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10684 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10686 (alphanbsd-nat.o): New dependency list.
10687 (alphanbsd-tdep.o): Ditto.
10688 * NEWS: Note new native NetBSD/alpha configuration.
10689 * alphanbsd-nat.c: New file.
10690 * alphanbsd-tdep.c: Ditto.
10691 * configure.host (alpha*-*-netbsd*): New host.
10692 * configure.tgt (alpha*-*-netbsd*): New target.
10693 * config/alpha/nbsd.mh: New file.
10694 * config/alpha/nbsd.mt: Ditto.
10695 * config/alpha/nm-nbsd.h: Ditto.
10696 * config/alpha/tm-nbsd.h: Ditto.
10698 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10700 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10701 (alpha-osf1-tdep.o): New dependency list.
10702 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10703 and skip_sigtramp_frame members.
10704 * alpha-linux-tdep.c: Include gdbcore.h.
10705 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10706 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10707 * alpha-osf1-tdep.c: New file.
10708 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10710 (alpha_frame_past_sigtramp_frame): New function.
10711 (alpha_dynamic_sigtramp_offset): Ditto.
10712 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10713 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10714 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10715 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10716 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10717 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10718 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10719 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10720 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10721 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10722 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10723 to find_solib_trampoline_target.
10724 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10725 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10726 (SKIP_TRAMPOLINE_CODE): Remove.
10727 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10728 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10729 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10730 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10731 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10732 (PROC_SIGTRAMP_MAGIC): Ditto.
10733 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10734 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10735 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10736 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10737 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10741 * NEWS: Note that Alpha targets are now multi-arch.
10743 2002-04-24 Michael Snyder <msnyder@redhat.com>
10745 * parser-defs.h (prev_lexptr): New external variable.
10746 * parse.c (parse_exp_1): Set prev_lexptr to null before
10747 calling the language-specific parser.
10748 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10749 (yyerror): Use prev_lexptr in error reporting.
10751 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10753 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10754 * gregset.h: If FILL_FPXREGSET is defined, provide
10755 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10756 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10757 is defined, call fill_fpxregset.
10759 2002-04-24 Roland McGrath <roland@frob.com>
10761 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10762 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10763 (supply_gregset, supply_fpregset): New functions.
10765 * gnu-nat.c (gnu_find_memory_regions): New function.
10766 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10767 (gnu_xfer_memory): Add a cast.
10769 2002-04-24 Michael Snyder <msnyder@redhat.com>
10771 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10772 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10773 of argument regs ("str r(0123), [r11, #-nn"]).
10774 (arm_skip_prologue): Better handling for frameless functions.
10775 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10776 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10778 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10780 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10781 NUM_PSEUDO_REGS can be used.
10783 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10785 * arch-utils.h: Update copyright.
10787 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10788 * gdbarch.h, gdbarch.c: Re-generate.
10790 * inferior.h (IN_SIGTRAMP): Delete definition.
10791 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10792 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10794 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10795 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10796 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10797 (find_proc_framesize): Ditto.
10798 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10799 (alpha_init_extra_frame_info): Ditto.
10800 * infrun.c (handle_inferior_event): Ditto.
10801 (handle_inferior_event): Ditto.
10802 (check_sigtramp2): Ditto.
10803 * blockframe.c (create_new_frame): Ditto.
10804 (get_prev_frame): Ditto.
10805 * ppc-linux-tdep.c: Update comments.
10806 * i386-linux-tdep.c: Update comments.
10807 * breakpoint.c (bpstat_what): Update comment.
10809 2002-04-24 David S. Miller <davem@redhat.com>
10811 * i960-tdep.c (register_in_window_p): New function.
10812 (i960_find_saved_register): Use it instead of
10813 REGISTER_IN_WINDOW_P.
10814 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10816 * symtab.h (find_stab_function_addr): Kill extern.
10817 * minsyms.c (find_stab_function_addr): Remove from here...
10818 * dbxread.c: ... to here, and mark it static.
10820 2002-04-20 David S. Miller <davem@redhat.com>
10822 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10823 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10825 2002-04-21 David S. Miller <davem@redhat.com>
10827 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10828 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10829 (vx_write_register): Likewise.
10831 2002-04-23 J. Brobecker <brobecker@gnat.com>
10833 * source.c (is_regular_file): New function.
10834 (openp): Check wether file to open is a regular file
10835 to avoid opening directories.
10837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10839 * findvar.c (extract_signed_integer): Cast printf argument
10840 to suppress format warning.
10841 (extract_unsigned_integer): Likewise.
10842 * infcmd.c (registers_info): Likewise.
10843 * top.c (get_prompt_1): Likewise.
10844 * valops.c (value_assign): Likewise.
10845 * valprint.c (print_decimal): Likewise.
10847 2002-04-22 H.J. Lu (hjl@gnu.org)
10849 * c-exp.y (typebase): Support
10851 [long|long long|short] [signed|unsigned] [int|]
10855 signed [long|long long|short] int
10857 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10859 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10861 * vax-tdep.h: New file.
10862 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10863 Make several routines static.
10864 (vax_get_saved_register): New function.
10865 (vax_gdbarch_init): New function.
10866 (_initialize_vax_tdep): Register vax_gdbarch_init.
10867 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10868 Remove macros now under the control of gdbarch.
10870 2002-04-22 Michael Snyder <msnyder@redhat.com>
10872 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10873 Some whitespace and coding standards tweaks.
10875 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10877 * vax-tdep.c: Include regcache.h.
10878 (vax_call_dummy_words): New.
10879 (sizeof_vax_call_dummy_words): New.
10880 (vax_fix_call_dummy): New function.
10881 (vax_saved_pc_after_call): Ditto.
10882 * config/vax/tm-vax.h: Don't include regcache.h.
10883 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10884 (CALL_DUMMY): Remove.
10885 (CALL_DUMMY_WORDS): Define.
10886 (SIZEOF_CALL_DUMMY_WORDS): Define.
10887 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10889 2002-04-18 Michael Snyder <msnyder@redhat.com>
10891 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10895 * vax-tdep.c (vax_frame_chain): New function.
10896 (vax_push_dummy_frame): Ditto.
10897 (vax_pop_frame): Ditto.
10898 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10899 (FRAMELESS_FUNCTION_INVOCATION): Use
10900 generic_frameless_function_invocation_not.
10901 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10902 (POP_FRAME): Use vax_pop_frame.
10904 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10906 * vax-tdep.c (vax_store_struct_return): New function.
10907 (vax_extract_return_value): Ditto.
10908 (vax_store_return_value): Ditto.
10909 (vax_extract_struct_value_address): Ditto.
10910 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10911 vax_store_struct_return.
10912 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10913 (STORE_RETURN_VALUE): Use vax_store_return_value.
10914 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10918 * vax-tdep.c (vax_frame_saved_pc): New function.
10919 (vax_frame_args_address_correct): Ditto.
10920 (vax_frame_args_address): Ditto.
10921 (vax_frame_locals_address): Ditto.
10922 (vax_frame_num_args): Move code to be in proximity to
10923 other frame-related functions.
10924 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10925 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10926 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10927 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10928 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10930 2002-04-22 H.J. Lu (hjl@gnu.org)
10932 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10935 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10937 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10938 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10939 (FRAME_INIT_SAVED_REGS): New macro.
10941 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10943 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10945 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10947 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10949 (fetch_osf_core_registers): Likewise.
10950 (supply_gregset): Likewise.
10952 2002-04-22 J. Brobecker <brobecker@gnat.com>
10954 * symfile.h (get_section_index): Define.
10955 * symfile.c (get_section_index): New function.
10956 * mdebugread.c (SC_IS_SBSS): New macro.
10957 (SC_IS_BSS): Return true for the scBss storage class only, as
10958 the scSBss storage class refers to the .sbss section.
10959 (parse_partial_symbols): Discard the symbols which associated
10960 section does not exist.
10961 Make sure to use the .sbss section index for symbols which
10962 storage class is scBss, rather than using the .bss section index.
10964 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10966 * vax-tdep.c: Update copyright years.
10967 (vax_register_name): New function.
10968 (vax_register_byte): Ditto.
10969 (vax_register_raw_size): Ditto.
10970 (vax_register_virtual_size): Ditto.
10971 (vax_register_virtual_type): Ditto.
10972 * config/vax/tm-vax.h: Update copyright years.
10973 (REGISTER_NAMES): Remove.
10974 (REGISTER_NAME): Define.
10975 (REGISTER_BYTE): Use vax_register_byte.
10976 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10977 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10978 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10980 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10982 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10984 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10986 2002-04-21 David S. Miller <davem@redhat.com>
10988 * arch-utils.c (generic_prologue_frameless_p): Kill
10989 SKIP_PROLOGUE_FRAMELESS_P code.
10990 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10992 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10993 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10994 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10996 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10997 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10998 (sparc_gdbarch_init): Pass it to
10999 set_gdbarch_prologue_frameless_p.
11001 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11003 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11004 (alphabsd-nat.o): New dependency list.
11006 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11008 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11010 (alpha-linux-tdep.o): New dependency list.
11011 (alphafbsd-tdep.o): Likewise.
11013 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11015 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11017 * alpha-tdep.c: ...from here.
11018 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11022 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11023 prototype from here...
11024 * alpha-tdep.h: ...to here.
11026 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11028 * frame.h (selected_frame_level): Document as deprecated.
11029 (frame_relative_level): Declare.
11030 * stack.c (frame_relative_level): New function.
11031 (selected_frame_level): Document as deprecated.
11032 (select_frame): Do not set the selected_frame_level.
11034 * stack.c (frame_info, record_selected_frame): Update.
11035 (frame_command, current_frame_command): Update.
11036 (up_silently_base, up_command, down_silently_base): Update.
11037 (down_command): Update.
11038 * inflow.c (kill_command): Update.
11039 * tracepoint.c (finish_tfind_command): Update.
11040 * corelow.c (core_open): Update.
11041 * thread.c (info_threads_command): Update.
11042 (do_captured_thread_select): Update.
11043 * infcmd.c (finish_command): Update.
11044 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11046 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11048 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11050 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11052 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11055 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11057 * alphafbsd-tdep.c: Update copyright years. Include
11059 (alphafbsd_use_struct_convention): Make static.
11060 (alphafbsd_init_abi): New function.
11061 (_initialize_alphafbsd_tdep): New function.
11062 * config/alpha/tm-fbsd.h: Update copyright years.
11063 (USE_STRUCT_CONVENTION): Remove.
11065 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11067 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11068 an Alpha ABI variant.
11069 (alpha_abi_handler_list): Declare.
11070 (alpha_gdbarch_register_os_abi): New function.
11071 (alpha_gdbarch_init): Give registered ABI variant handlers a
11072 chance to tweak the gdbarch once we have set up defaults.
11073 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11075 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11077 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11078 to standard_coerce_float_to_double.
11079 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11081 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11083 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11084 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11085 from gdbarch_tdep rather than a constant.
11086 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11087 the default text address for all Alpha Unix ABIs.
11088 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11089 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11091 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11093 * alpha-tdep.h: New file. Includes several Alpha target constants
11095 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11096 let gdbarch deal with.
11097 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11098 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11099 to dependency list.
11100 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11101 Alpha target register names.
11102 * alphabsd-nat.c: Likewise.
11103 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11104 Alpha target register names. Make serveral routines static.
11105 (alpha_get_saved_register): New function.
11106 (alpha_abi_names): New.
11107 (process_note_abi_tag_sections): New function.
11108 (get_elfosabi): New function.
11109 (alpha_gdbarch_init): New function.
11110 (alpha_dump_tdep): New function.
11111 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11113 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11115 * frame.c (find_saved_register): Delete #ifdef
11116 HAVE_REGISTER_WINDOWS code.
11117 * config/sparc/tm-sparc.h: Update comments.
11118 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11120 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11122 * i960-tdep.c (i960_find_saved_register): New function.
11123 (i960_get_saved_register): New function.
11124 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11125 (i960_get_saved_register): Declare.
11126 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11128 2002-04-20 David S. Miller <davem@redhat.com>
11130 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11132 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11134 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11135 instead of NUM_PSEUDO_REGS.
11137 2002-04-20 David S. Miller <davem@redhat.com>
11139 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11140 GDB_MULTI_ARCH_PARTIAL
11141 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11142 define, let tm-sp64.h do it.
11144 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11146 * frame.c (find_saved_register): Avoid a NULL pointer
11147 dereference and actually walk the frame list.
11149 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11151 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11152 sorted in most most-recent-used order. Document.
11153 * gdbarch.h, gdbarch.c: Regenerate.
11155 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11157 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11159 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11160 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11161 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11164 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11167 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11168 (build_builtin_type_vec128): Ditto.
11169 (append_composite_type_field): Fix calculation of type length in
11172 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11174 * config/djgpp/README: Update.
11176 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11179 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11181 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11182 (alpha_setup_arbitrary_frame): ...to this.
11183 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11184 for alpha_setup_arbitrary_frame.
11186 2002-04-18 Andrew Cagney <cagney@redhat.com>
11188 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11189 * gdbarch.h, gdbarch.c: Regenerate.
11191 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11192 * target.h (memory_breakpoint_from_pc): Update declaration.
11193 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11195 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11196 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11197 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11198 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11199 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11200 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11201 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11202 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11203 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11204 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11205 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11206 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11208 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11210 * monitor.c (monitor_insert_breakpoint): Ditto.
11211 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11213 * config/mcore/tm-mcore.h: Update copyright.
11214 * mem-break.c: Ditto.
11215 * xstormy16-tdep.c: Ditto.
11217 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11219 * p-exp.y: Add precedence rule for '^' token.
11220 This removes the shift/reduce conflicts.
11221 Remove the comment concerning these shift/reduce conflicts.
11223 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11225 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11226 (registers_powerpc_nofp): New register set for processors
11227 without floating point unit.
11229 2002-04-18 David S. Miller <davem@redhat.com>
11231 * MAINTAINERS: Add myself to write-after-approval.
11233 2002-04-17 Michael Snyder <msnyder@redhat.com>
11235 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11237 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11239 * rs6000-tdep.c (frame_initial_stack_address): Use
11240 frame_register_read to read the alloca_reg.
11242 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11244 * frame.c (find_saved_register): Find saved registers in the next
11248 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11250 * gdbarch.sh (LANG): Set to ``c''.
11252 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11254 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11256 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11258 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11261 * hpread.c (hpread_get_lntt): Add declaration.
11262 Also fix PR gdb/391.
11264 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11266 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11267 * aclocal.m4, configure: Re-generate.
11270 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11272 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11273 instead of tm_print_insn.
11275 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11277 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11279 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11281 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11282 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11283 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11285 2002-04-12 Don Howard <dhoward@redhat.com>
11287 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11288 max_user_call_depth.
11289 (init_cmd_lists): Initialize the new value;
11290 * cli/cli-script.c (execute_user_command): Limit the call depth of
11291 user defined commands. This avoids a core-dump when user commands
11292 are infinitly recursive.
11294 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11296 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11297 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11298 from tdep struct instead of DEFAULT_LR_SAVE.
11299 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11300 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11301 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11303 2002-04-12 Michael Snyder <msnyder@redhat.com>
11305 * Remote.c: Spelling fix.
11306 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11307 If no symbol found for "sbrk", try "_sbrk".
11308 (make_output_phdrs): Use bfd_section_name.
11309 (gcore_copy_callback): Use bfd_section_name.
11310 * eval.c: Indentation fix-ups.
11311 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11312 in case it gets applied to an address that is already
11313 in the instruction space.
11314 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11315 * symfile.c: Fix indentation, long lines.
11316 * source.c: White space fix-up.
11318 2002-04-12 Andrew Cagney <cagney@redhat.com>
11320 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11321 * frame.c (frame_register_read): New function. Return non-zero on
11323 (read_relative_register_raw_bytes_for_frame): Delete.
11324 (read_relative_register_raw_bytes): Delete.
11325 * frame.h (frame_register_read): Declare.
11326 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11327 * sh-tdep.c: Ditto.
11328 * infcmd.c (do_registers_info): Ditto.
11329 * hppa-tdep.c: Ditto.
11330 * rs6000-tdep.c: Ditto.
11331 * h8500-tdep.c: Ditto.
11332 * mips-tdep.c: Ditto.
11333 * h8300-tdep.c: Ditto.
11334 * z8k-tdep.c: Ditto.
11336 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11338 From Jimi X <jimix@watson.ibm.com>:
11339 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11342 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11344 From Jimi X <jimix@watson.ibm.com>:
11345 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11348 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11350 From Jimi X <jimix@watson.ibm.com>:
11351 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11352 register sets for these processor variants.
11354 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11356 * regformats/reg-ppc.dat: Support FPSCR.
11358 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11360 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11361 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11362 Add fpscr as an invalid/unfetchable register.
11363 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11364 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11365 (fill_fpregset): Add support for register fpscr.
11366 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11367 (fill_gregset): Account for the fact that register ``mq'' might
11369 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11370 (registers_power): Add fpscr to register set at slot 71.
11371 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11372 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11374 2002-04-11 Michael Snyder <msnyder@redhat.com>
11376 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11377 * configure: Regenerate.
11378 * config.in: Regenerate.
11379 * acconfig.h: Add define for _SYSCALL32.
11380 * core-sol2.c: Remove #define _SYSCALL32.
11381 * solib-legacy.c: Remove #define _SYSCALL32.
11383 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11385 * stack.c (select_frame): Cleanup internal error message, do not
11388 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11390 * stack.c (select_frame): Check that selected_frame and the
11391 specified level are as expected.
11392 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11394 * frame.h (struct frame_info): Add field `level'. Update
11396 Work-in-progress PR gdb/464.
11398 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11400 * maint.c (maint_print_section_info): Rename print_section_info.
11401 (print_bfd_section_info, print_objfile_section_info): Update.
11402 * inferior.h (struct gdbarch): Add opaque declaration.
11403 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11404 * gdbarch.h: Regenerate.
11406 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11408 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11409 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11410 (kernel_u_size): Added.
11411 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11412 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11414 2002-04-04 Jim Ingham <jingham@apple.com>
11416 * valarith.c (find_size_for_pointer_math): New function, either returns
11417 the size for a pointer's target, returns 1 for void *, or errors for
11419 (value_add, value_sub): use find_size_for_pointer_math.
11421 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11423 * linux-low.c (linux_look_up_symbols): New hook.
11424 (linux_target_ops): Add linux_look_up_symbols.
11425 * remote-utils.c (decode_address): New function.
11426 (look_up_one_symbol): New function.
11427 * server.c (handle_query): Call target look_up_symbols hook.
11428 * server.h (look_up_one_symbol): Add prototype.
11429 * target.h (struct target_ops): Add look_up_symbols hook.
11431 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11433 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11434 override FP_REGNUM with frame->fp. Update copyright.
11435 * parse.c (num_std_regs, std_regs): Delete.
11436 (target_map_name_to_register): Do not search std_regs. Update
11437 function description.
11438 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11439 declarations. Update copyright.
11442 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11444 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11445 after the last symbol in a block.
11447 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11449 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11450 is non zero as a found symbol.
11452 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11454 * findvar.c: Include "builtin-regs.h".
11455 (value_of_register): Call value_of_builtin_reg when applicable.
11456 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11457 (target_map_name_to_register): Call
11458 builtin_reg_map_name_to_regnum.
11459 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11460 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11461 (builtin_regs_h): Define.
11462 (builtin-regs.o): New target.
11463 (findvar.o): Add $(builtin_regs_h).
11464 * builtin-regs.c, builtin-regs.h: New files.
11465 * std-regs.c: New file.
11466 Partial fix for PR gdb/251.
11468 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11470 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11471 it's no longer required.
11473 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11475 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11477 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11479 From Jimi X <jimix@watson.ibm.com>:
11480 * rs6000-tdep.c (rs6000_software_single_step): Use
11481 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11482 and size. Use target_insert_breakpoint() and
11483 target_remove_breakpoint() to insert and remove breakpoints
11484 instead of explicit memory reads and writes.
11486 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11488 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11489 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11490 ELF_OBJECT_FORMAT ifdef.
11492 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11494 From Jimi X <jimix@watson.ibm.com>:
11495 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11497 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11499 From Jimi X <jimix@watson.ibm.com>:
11500 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11501 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11503 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11505 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11506 s/asprintf/xasprintf/.
11507 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11509 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11511 I believe Jeff Law denies responsability for this one:
11512 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11513 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11514 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11515 Work-around for PR gdb/366.
11517 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11519 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11520 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11521 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11523 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11525 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11526 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11529 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11531 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11534 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11536 * README (Reporting Bugs in GDB): Document the bug web page as the
11537 prefered way of submitting bugs.
11540 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11542 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11543 -1. Update comment.
11544 * gdbarch.h, gdbarch.c: Re-generate.
11546 2002-04-07 Andreas Schwab <schwab@suse.de>
11548 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11549 buffer to regcache_collect.
11551 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11553 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11554 * gdbarch.c, gdbarch.h: Re-generate.
11556 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11558 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11559 declaration. Fix -Werror.
11561 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11563 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11564 * gdbarch.c: Regenerate.
11566 2002-04-05 Michael Snyder <msnyder@redhat.com>
11568 * breakpoint.c (clear_command): Rewrite middle section to
11569 combine two loops with identical control conditions.
11570 Add a cleanup to eliminate a memory leak.
11571 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11573 2002-04-05 H.J. Lu (hjl@gnu.org)
11575 * solib-svr4.c (bkpt_names): Add "__start".
11577 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11579 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11580 as test for 64 bit target.
11582 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11584 * h8500-tdep.c (h8500_write_fp): Delete function.
11585 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11586 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11587 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11589 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11590 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11592 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11593 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11594 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11595 (d10v_write_fp): Delete function.
11596 * inferior.h (write_fp, generic_target_write_fp): Delete
11598 * regcache.c (generic_target_write_fp): Delete function.
11599 (write_fp): Delete function.
11600 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11601 * gdbarch.h, gdbarch.c: Regenerate.
11602 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11603 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11604 (sparc64_write_fp): Delete declaration.
11605 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11606 (h8500_write_fp): Delete declaration.
11608 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11610 * sparc-tdep.c (sparc64_write_fp): Delete.
11611 (sparc_push_dummy_frame): Replace write_fp call with code to store
11613 (sparc_gdbarch_init): Do not initialize write_fp.
11615 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11617 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11620 2002-03-29 Jim Blandy <jimb@redhat.com>
11622 * stack.c (get_selected_block): Add new argument `addr_in_block',
11623 used to return the exact code address we used to select the block,
11624 not just the block.
11625 * blockframe.c (get_frame_block, get_current_block): Same.
11626 * frame.h (get_frame_block, get_current_block,
11627 get_selected_block): Update declarations.
11628 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11629 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11631 2002-04-05 Michael Snyder <msnyder@redhat.com>
11633 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11636 2002-04-05 J. Brobecker <brobecker@gnat.com>
11638 * utils.c (xfullpath): New function.
11639 * defs.h (xfullpath): Add declaration.
11640 * source.c (openp): Use xfullpath in place of gdb_realpath to
11641 avoid resolving the basename part of filenames when the
11642 associated file is a symbolic link. This fixes a potential
11643 inconsistency between the filenames known to GDB and the
11644 filenames it prints in the annotations.
11645 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11646 to be able to match a filename with either the real filename, or
11647 the name of any symbolic link to this file.
11648 (lookup_partial_symtab): Ditto.
11650 2002-04-04 Michael Snyder <msnyder@redhat.com>
11652 * breakpoint.c: Add support for hardware breakpoints in overlays.
11653 (overlay_events_enabled): New state variable.
11654 (insert_breakpoints): Use overlay_events_enabled to decide
11655 whether to attempt to set a breakpoint at the overlay load addr.
11656 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11657 (remove_breakpoint): Use overlay_events_enabled to decide
11658 whether breakpoints need to be removed from overlay load addr.
11659 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11660 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11661 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11662 disable_overlay_breakpoints): Update overlay_events_enabled.
11664 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11666 * dwarf2read.c (struct function_range): New.
11667 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11668 (check_cu_functions): New.
11669 (read_file_scope): Initialize global function lists.
11670 Call dwarf_decode_line after processing children.
11671 (read_func_scope): Add to global function list.
11672 (dwarf_decode_lines): Call check_cu_functions everywhere
11673 record_line is called. Call record_line with a linenumber
11674 of 0 to mark sequence ends.
11676 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11678 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11679 change sync with glibc.
11681 2002-04-03 Jim Blandy <jimb@redhat.com>
11683 * configure.in: Call AC_C_INLINE.
11684 * configure: Regenerated.
11686 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11688 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11689 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11691 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11693 * NEWS: Mention gcore support on FreeBSD/i386.
11695 * fbsd-proc.c: New file.
11696 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11697 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11699 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11702 2002-03-29 Jim Blandy <jimb@redhat.com>
11704 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11705 unescaped newlines in string literals, but newer ones don't. So
11708 2002-03-26 Michael Snyder <msnyder@redhat.com>
11709 Andrew Cagney <cagney@redhat.com>
11711 * cli/cli-dump.c: New file. Dump memory to file,
11712 restore file to memory.
11713 * cli/cli-dump.h: New file.
11714 * Makefile.in: Add rules, dependencies for cli-dump.o.
11715 * NEWS: Mention new commands.
11717 2002-03-28 Michael Snyder <msnyder@redhat.com>
11719 * symfile.c (symbol_file_add): Move test for null symbols to later.
11721 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11723 From veksler at il.ibm.com:
11724 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11725 the xstrduped original path.
11728 2002-03-27 Michael Snyder <msnyder@redhat.com>
11730 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11731 * infcmd.c (_initialize_infcmd): Ditto.
11732 * language.c (_initialize_language): Ditto.
11733 * symfile.c (_initialize_symfile): Ditto.
11734 * top.c (_init_main): Ditto.
11735 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11737 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11739 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11740 vector registers handling.
11741 (skip_prologue): Handle new AltiVec instructions. Fill in new
11742 fields of frame data.
11743 (frame_get_saved_regs): Fill in information for AltiVec registers.
11745 2002-03-27 Jim Blandy <jimb@redhat.com>
11747 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11748 a function; leave this macro here to invoke that function.
11749 (symbol_init_mangled_name): Declaration for that function.
11750 * symtab.c (symbol_init_mangled_name): New function.
11752 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11754 * valarith.c: Replace strerror with safe_strerror.
11755 * tracepoint.c: Ditto.
11756 * lin-lwp.c: Ditto.
11757 * go32-nat.c: Ditto.
11759 * gnu-nat.c: Ditto.
11761 2002-03-27 Andreas Schwab <schwab@suse.de>
11763 * event-top.c (command_line_handler): Remove useless if.
11765 2002-03-27 Andreas Jaeger <aj@suse.de>
11767 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11770 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11772 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11773 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11774 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11775 (x86_64_linux_dr_get_status, supply_gregset),
11776 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11777 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11778 (x86_64_register_info_table): Add.
11779 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11780 (x86_64_register_raw_size, x86_64_register_virtual_type),
11781 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11782 general x86_64_register_info_table.
11783 (i386_gdbarch_init): gdbarch_register_bytes is now set
11784 dynamicaly during initialization.
11785 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11786 * gdbserver/linux-x86-64-low.c: Ditto.
11788 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11790 * gdbserver/server.c (main): Call target_signal_to_host_p
11791 and target_signal_to_host on signals received from the remote.
11792 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11793 target_signal_from_host on signals sent to the remote.
11794 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11795 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11797 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11799 * signals/signals.c: Include "server.h" in gdbserver build.
11800 (target_signal_from_name): Don't use STREQ.
11801 (_initialize_signals): Likewise. Don't include function in
11804 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11806 * signals.c: Moved to...
11807 * signals/signals.c: Here.
11808 * Makefile (signals.o): Update.
11810 2002-03-26 Jeff Law (law@redhat.com)
11812 * somread.c (som_symtab_read): Remove some commented out code and
11813 updated related comments. Do not set the minimal symbol table to
11814 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11815 in a dynamic executable.
11816 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11817 where we are unable to find the minimal symbol for the given
11820 2002-03-25 Jeff Law (law@redhat.com)
11822 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11824 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11826 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11828 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11830 * command.h: Update copyright.
11831 (struct cmd_list_element): Replace definition with opaque
11833 (enum cmd_types): Document that it will eventually be moved to
11835 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11836 (MALLOCED_REPLACEMENT): Delete macro.
11837 * Makefile.in (cli_decode_h): Add $(command_h).
11838 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11839 * top.c: Include "cli/cli-decode.h".
11840 * completer.c: Include "cli/cli-decode.h".
11841 * maint.c: Include "cli/cli-decode.h".
11842 * cli/cli-decode.h: Include "command.h".
11843 (enum command_class): Delete.
11844 (enum cmd_types): Comment out.
11845 (enum cmd_auto_boolean): Delete.
11846 (enum var_types): Delete.
11848 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11850 * cli/cli-decode.c: Include "gdb_assert.h".
11851 (add_set_or_show_cmd): New static function.
11852 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11853 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11854 all fields, such as func, from the set command.
11856 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11858 * MAINTAINERS (sh-elf): Change warning flag to -w.
11860 2002-03-23 Andrew Cagney <cagney@redhat.com>
11862 * defs.h (error): Add printf format attribute.
11863 * thread-db.c (thread_from_lwp): Fix error format string.
11864 * stack.c (parse_frame_specification): Ditto.
11865 * cli/cli-decode.c (undef_cmd_error): Ditto.
11866 * scm-lang.c (scm_lookup_name): Ditto.
11867 * tracepoint.c (trace_error): Ditto.
11868 * remote-utils.c (usage): Ditto.
11869 * remote.c (compare_sections_command): Ditto.
11872 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11874 * gdbtypes.c (append_composite_type_field): New function.
11875 (init_composite_type): New function.
11876 * gdbtypes.h (append_composite_type_field): Declare.
11877 (init_composite_type): Ditto.
11879 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11881 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11883 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11884 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11885 structure returning convention for SYSV ABI case, but not
11886 for GNU/Linux, FreeBSD, or NetBSD.
11888 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11890 * symtab.h (lookup_block_symbol): Add mangled_name argument
11893 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11894 with new mangled_name argument.
11895 * linespec.c (decode_line_1): Likewise.
11896 * valops (value_of_this): Likewise.
11897 * symtab.c (lookup_transparent_type): Likewise.
11898 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11899 (lookup_symbol): If we are given a mangled name, pass it down
11900 to lookup_symbol_aux.
11901 (lookup_block_symbol): If we are given a mangled name to check
11902 against, only return symbols which match it.
11904 2002-03-22 Christopher Faylor <cgf@redhat.com>
11906 * win32-nat.c (child_create_inferior): Check for proper shell to use
11907 here, in case the user changes it on the fly.
11908 (_initialize_inftarg): Remove shell path considerations.
11910 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11912 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11913 for gdbarch_max_register_raw_size and max_register_virtual_size.
11914 Adjust copyright year.
11916 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11918 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11919 in a function to cover the entire beginning of the function
11920 as well if it does not already.
11922 2002-03-21 Tom Rix <trix@redhat.com>
11924 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11925 (rs6000_ptrace64): Renamed from ptrace64.
11927 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11929 * gdbserver/remote-utils.c (remote_open): Don't call
11930 getprotobyname, we're all using TCP here so just use
11932 * gdbserver/gdbreplay.c (remote_open): Ditto.
11934 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11936 * regcache.c (_initialize_regcache): No need to call
11937 build_regcache() at this time; it gets called whenever
11938 the gdbarch changes.
11940 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11942 * sparc-nat.c: Include sys/param.h where possible.
11944 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11947 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11948 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11949 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11951 * stabsread.c (rs6000_builtin_type): Likewise.
11952 (read_sun_floating_type): Likewise.
11954 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11956 * stabsread.c (read_member_functions): Remove skip code for duplicate
11957 constructor/destructor methods. Use standard parsing for these
11958 methods and just do not chain them to the list of methods after
11961 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11963 * coffread.c: Remove redundant static declarations. Replace
11964 occurrences of `PTR' with `void *'.
11965 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11966 * top.h (quit_cover): Likewise.
11967 * defs.h (catch_errors): Likewise.
11969 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11971 * defs.h (XMALLOC): Define.
11972 * gdb-events.sh (XMALLOC): Delete macro.
11973 * gdb-events.c, gdb-events.h: Regenerate.
11974 * gdbarch.sh (XMALLOC): Delete macro.
11975 * gdbarch.c: Regenerate.
11976 * serial.c (XMALLOC): Delete macro.
11977 * ui-file.c (XMALLOC): Ditto.
11978 * ser-unix.h (XMALLOC): Ditto.
11979 * sh-tdep.c (XMALLOC): Ditto.
11980 * ui-out.c (XMALLOC): Ditto.
11981 * utils.c (XMALLOC): Ditto.
11982 * i386-tdep.c (XMALLOC): Ditto.
11983 * gdb-events.c (XMALLOC): Ditto.
11984 * d10v-tdep.c (XMALLOC): Ditto.
11985 * cli-out.c (XMALLOC): Ditto.
11987 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11988 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11989 * ui-file.c, ui-out.c: Ditto.
11991 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11993 * command.h (struct cmd_list_element): Add field context.
11994 (set_cmd_context, get_cmd_context): Declare.
11995 * cli/cli-decode.h: Ditto.
11996 * cli/cli-decode.c (get_cmd_context): New function.
11997 (set_cmd_context): New function.
11998 (add_cmd): Initialize context.
11999 Part of fixing PR gdb/145 and PR gdb/146.
12001 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12003 * cli/cli-decode.c (cmd_type): New function.
12004 * command.h (cmd_type): Declare.
12005 * infrun.c (set_schedlock_func): Call function cmd_type.
12006 * kod.c (kod_set_os): Call cmd_type.
12007 * cris-tdep.c (cris_version_update): Use function cmd_type.
12008 (cris_mode_update, cris_abi_update): Ditto.
12010 * command.h: (execute_cmd_post_hook): Declare.
12011 (execute_cmd_pre_hook): Declare.
12012 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12013 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12014 functions. Execute pre/post hook while ensuring that afterwords
12015 hook_in is cleared.
12016 * top.c (execute_command): Use execute_cmd_post_hook, and
12017 execute_cmd_pre_hook to execute pre/post commands.
12018 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12020 (hook_stop_stub): Call execute_cmd_pre_hook.
12022 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12024 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12025 set'' and this leads to a core dump. Move xstrdup of
12026 operating_system to after check that it is not NULL.
12028 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12030 * kod.c (kod_set_os): Remove unnecessary check that
12031 ``command->type'' is set_cmd.
12033 * valprint.c (set_input_radix): Use input_radix.
12034 (set_output_radix): Use output_radix.
12035 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12038 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12040 * value.h (struct value): Delete field ``substring_addr''. Change
12041 aligner fields to force_doublest_align, force_longest_align,
12042 force_core_addr_align and force_pointer_aligh.
12044 * value.h (struct value): Fix typo in above change.
12046 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12048 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12049 to fix internal_error from ``maintenance print architecture''.
12051 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12053 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12054 for gcc versions after gcc-2.8.1.
12056 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12058 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12059 for method resolution. Restore adjustment of ``this'' pointer after
12060 calling value_struct_elt, which was accidentally removed during the
12063 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12065 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12067 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12068 get_saved_register.
12069 * value.h (value_of_register): Update.
12071 2002-03-14 Richard Henderson <rth@redhat.com>
12073 * configure.in: Detect declaration for canonicalize_file_name.
12074 * utils.c (canonicalize_file_name): Declare, if needed.
12075 (gdb_realpath): Prefer realpath if available and usable.
12076 * config.in, configure: Rebuild.
12078 2002-03-14 Richard Henderson <rth@redhat.com>
12080 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12081 a constant array bound.
12083 * MAINTAINERS: Add myself to write-after-approval.
12085 2002-03-14 Michael Snyder <msnyder@redhat.com>
12087 * symfile.c (syms_from_objfile): Return immediately if no syms.
12088 (symbol_file_add): Return immediately if no syms.
12089 (find_sym_fns): Return immediately if no syms.
12091 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12093 * gdbserver/remote-util.c (remote_open): Print remote-side's
12094 IP address when remote debugging over the network.
12096 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12098 * config/sparc/fbsd.mh: Fix copyright.
12099 * config/sparc/fbsd.mt: Likewise.
12101 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12103 * MAINTAINERS: Fix typo in name of gdb warnings option.
12104 (x86-64): Fix formating so that this can be parsed by awk.
12106 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12108 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12109 * defs.h: Include "gdb/signals.h".
12110 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12112 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12114 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12115 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12118 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12119 Don Howard <dhoward@redhat.com>
12121 * mips-tdep.c (ST0_FR): Define.
12122 (mips2_fp_compat): New function, temporarily disabled.
12123 (mips_read_fp_register_single): New function.
12124 (mips_read_fp_register_double): New function.
12125 (mips_print_register): Use them.
12126 (do_fp_register_row): Likewise.
12128 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12130 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12133 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12135 * stabsread.c (read_member_functions): Fix is_stub test for
12136 static member functions, improve comment.
12138 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12140 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12141 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12142 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12143 commands that set boolean values.
12144 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12145 (arm_rdi_resume): Always initialize PC.
12146 (arm_rdi_open): Don't use rslt as a boolean.
12147 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12148 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12149 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12150 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12152 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12154 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12155 * configure: Rebuilt.
12157 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12159 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12160 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12162 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12164 * cli/cli-decode.c (set_cmd_completer): New function.
12165 * command.h (set_cmd_completer): Declare.
12166 * cli/cli-decode.h (set_cmd_completer): Ditto.
12168 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12169 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12170 * win32-nat.c (_initialize_inftarg): Ditto.
12171 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12172 * proc-api.c (_initialize_proc_api): Ditto.
12173 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12174 * source.c (_initialize_source): Ditto.
12175 * exec.c (_initialize_exec): Ditto.
12176 * solib.c (_initialize_solib): Ditto.
12177 * top.c (init_main): Ditto.
12178 * tracepoint.c (_initialize_tracepoint): Ditto.
12179 * symfile.c (_initialize_symfile): Ditto.
12180 * printcmd.c (_initialize_printcmd): Ditto.
12181 * infcmd.c (_initialize_infcmd): Ditto.
12182 * corefile.c (_initialize_core): Ditto.
12184 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12186 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12188 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12190 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12192 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12194 * NEWS: Update headings, 5.2 has branched.
12196 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12198 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12199 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12200 (register_addr, REGISTER_RAW_SIZE): Likewise.
12201 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12202 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12204 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12206 * MAINTAINERS (x86-64): Add myself.
12207 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12208 changed value_ptr -> struct value *
12210 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12212 * configure.host (sparc64-*-freebsd): Add.
12213 * configure.tgt: Likewise.
12214 * config/sparc/fbsd.mh: New file.
12215 * config/sparc/fbsd.mt: Likewise.
12216 * config/sparc/nm-fbsd.h: Likewise.
12217 * config/sparc/tm-fbsd.h: Likewise.
12219 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12221 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12222 regformats/reg-s390x.dat.
12224 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12226 * utils.c: Add FIXME explaining true/false problem.
12228 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12230 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12232 2002-02-28 Michael Chastain <mec@shout.net>
12234 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12236 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12238 * gdbserver/linux-s390-low.c: New file.
12239 * regformats/reg-s390.dat: New file.
12240 * regformats/reg-s390x.dat: New file.
12241 * gdbserver/configure.srv: Add S/390.
12242 * gdbserver/Makefile.in: Add S/390.
12243 * configure.tgt: Enable gdbserver for S/390.
12245 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12247 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12248 first line of the doc string for "info dos", except at the end of
12249 the sentence, since the short help stops at the first period.
12251 2002-02-28 Jason Merrill <jason@redhat.com>
12253 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12255 2002-02-27 Fred Fish <fnf@redhat.com>
12257 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12258 comment (dumy -> dummy).
12260 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12262 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12264 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12266 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12268 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12270 * gdbserver/acconfig.h: New file.
12271 * gdbserver/i387-fp.c: New file.
12272 * gdbserver/i387-fp.h: New file.
12273 * gdbserver/linux-x86-64.c: New file.
12274 * regformats/reg-x86-64.dat: New file.
12275 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12276 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12277 * gdbserver/configure.in: Add support for regsets.
12278 * gdbserver/config.in: Regenerate.
12279 * gdbserver/configure: Regenerate.
12280 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12281 * gdbserver/linux-low.h: New file.
12282 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12284 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12285 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12286 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12287 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12288 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12289 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12290 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12291 "i387-fp.h". Add PTRACE_GETREGS and friends.
12292 * gdbserver/regcache.c (supply_register): New function.
12293 (supply_register_by_name): New function.
12294 (collect_register): New function.
12295 (collect_register_by_name): New function.
12297 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12299 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12300 (config.status): Add configure.srv dependency.
12301 (server_h): Add config.h dependency.
12303 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12305 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12306 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12307 * gdbserver/configure.srv: Change i386-*-linux* to use
12310 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12312 * x86-64-tdep.c: Re-indent. Update copyright date.
12314 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12316 From Michal Ludvig <mludvig@suse.cz>:
12317 * x86-64-tdep.c (value.h): Delete.
12318 (gdb_assert.h): Include.
12319 (x86_64_register_convert_to_virtual,
12320 x86_64_register_convert_to_raw ): Add check which lets only
12321 floating-point values to be converted.
12322 (value_push): Delete.
12323 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12324 (i386_gdbarch_init): Number of register_bytes fixed.
12326 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12328 * MAINTAINERS: Add x86-64 target.
12330 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12332 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12333 * osfsolib.c (solib_map_sections): Ditto.
12334 * irix5-nat.c (solib_map_sections): Ditto.
12335 * corelow.c (gdb_check_format): Ditto.
12336 * symfile.c (symfile_bfd_open): Ditto.
12337 * solib.c (solib_map_sections): Ditto.
12340 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12342 * remote.c (_initialize_remote): By default, disable ``e'' and
12343 ``E'' step out-of-range packets.
12345 2002-02-26 Andreas Schwab <schwab@suse.de>
12347 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12348 m68k_linux_frame_saved_pc.
12349 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12351 (SIGCONTEXT_PC_OFFSET): Remove.
12352 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12353 m68k_linux_sigtramp_saved_pc): New functions.
12354 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12355 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12356 (UCONTEXT_PC_OFFSET): Define.
12357 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12358 non-RT and RT signal trampolines.
12360 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12362 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12363 (TARGET_NBPG, STACK_END_ADDR): Delete
12364 (VARIABLES_INSIDE_BLOCK): Delete.
12366 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12368 * utils.c (perror_with_name): Make string parameter constant.
12369 (print_sys_errmsg): Ditto.
12371 * defs.h (perror_with_name): Update.
12372 (print_sys_errmsg): Update.
12375 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12377 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12378 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12380 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12382 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12383 if it already matches the current architecture from the exec file.
12384 Include arch-utils.h for gdbarch_info_init prototype.
12385 * Makefile.in (rs6000-nat.o): Update dependencies.
12387 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12389 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12390 list of exported variables.
12392 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12394 * gdbserver/configure.srv: New file.
12395 * gdbserver/configure.in: Use configure.srv instead
12396 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12398 * gdbserver/configure: Regenerated.
12399 * gdbserver/terminal.h: New file.
12400 * gdbserver/Makefile.in: Update for configure changes. Remove
12401 more unneeded include paths.
12403 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12405 From wiz at danbala:
12406 * config/sparc/tm-sp64.h: Fix grammar and typos.
12409 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12411 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12412 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12413 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12414 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12415 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12416 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12417 * s390-tdep.c: Ditto.
12418 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12419 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12420 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12421 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12422 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12423 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12424 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12425 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12426 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12427 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12432 * lin-thread.c: Delete file.
12433 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12434 to gdb_proc_service.h.
12435 * configure: Re-generate.
12437 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12438 * serial.c (serial_open): Delete check for "ocd".
12441 * Makefile.in (linux-thread.o): Delete target.
12442 * linux-thread.c: Delete file.
12444 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12445 renamed SH files to be consistent.
12447 * symtab.c (sort_search_symbols): Use xfree.
12449 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12451 * arm-linux-tdep.c (arm_linux_init_abi): Register
12452 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12453 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12454 definition with undef, since we don't want the sysvr4 definition.
12455 (SKIP_TRAMPOLINE_CODE): Likewise.
12457 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12459 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12461 * configure.in: (AC_CHECK_FUNCS) Added test for
12462 canonicalize_file_name Regenerated.
12463 * config.in, configure: Regenerated.
12464 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12465 defined use canonicalize_file_name.
12467 2002-02-23 Michael Chastain <mec@shout.net>
12469 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12471 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12473 * README: Remove references to cygnus.com.
12474 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12475 dot com'' form. Remove references to cygnus.com and sourceware.
12477 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12479 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12480 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12481 1003.1-2001 no longer allows "head -1".
12482 * gdb/Makefile.in (version.c): Likewise.
12483 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12484 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12485 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12487 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12489 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12490 * command.h (cmd_cfunc_eq): Declare.
12491 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12493 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12494 ``struct cmd_list_element *''.
12495 * cli/cli-cmds.c (is_complete_command): Update. Use
12497 * top.c (execute_command): Pass the command to
12498 is_complete_command.
12499 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12501 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12503 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12504 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12505 architecture defines.
12506 * s390-tdep.c (s390_gdbarch_init): Likewise.
12508 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12510 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12511 (arm_linux_push_arguments): Likewise.
12512 (arm_linux_init_abi): Register them. Also register linux-specific
12514 (find_minsym_and_objfile): Use strcmp, not STREQ.
12515 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12516 (arm_linux_call_dummy_words): Delete declaration.
12517 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12518 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12520 (LOWEST_PC): Delete.
12522 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12524 * maint.c (print_section_info): Do not prepend `0x' to filepos
12525 output, it will be handled by local_hex_string_custom.
12527 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12529 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12530 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12531 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12533 2002-02-22 Jim Blandy <jimb@redhat.com>
12535 Indicate that the bcache functions don't change the strings
12537 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12538 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12540 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12542 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12544 2002-02-21 Christopher Faylor <cgf@redhat.com>
12546 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12547 find the complete path to a loaded DLL.
12549 2002-02-21 Fred Fish <fnf@redhat.com>
12551 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12552 that marks the end of the range of a function, enter a line number
12553 entry that has a line number of zero and a PC offset that matches
12554 the end of the function. This starts a range of PC's for which no
12555 line number information is known.
12556 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12557 PC's for which no line number info is found (line number is zero)
12558 then we didn't find any valid line information.
12559 * symtab.h: Document use of zero line number entry.
12561 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12563 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12564 (have_ptrace_getvrregs): Define for run time checks.
12565 (gdb_vrregset_t): New type for Altivec register handling.
12566 (fetch_register, store_register): Fetch/store altivec register
12568 (fetch_altivec_register, store_altivec_register): New functions.
12569 (supply_vrregset, fill_vrregset): New functions.
12570 (fetch_altivec_registers, store_altivec_registers): New functions.
12571 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12574 2002-02-21 Jiri Smid <smid@suse.cz>
12576 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12578 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12580 * Makefile.in (armnbsd-nat.o): Update dependencies.
12581 * armnbsd-nat.c (supply_gregset): New function. Common code to
12582 supply the integer register set.
12583 (supply_fparegset): New function. Similar for FPA registers.
12584 (fetch_regs, fetch_fp_regs): Use them.
12585 (fetch_core_registers): Likewise.
12586 (fetch_elfcore_registers): New function.
12587 (arm_netbsd_elfcore_fns): New core-file type specification.
12588 (_initialize_arm_netbsd_nat): Register it.
12590 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12592 * armnbsd-nat.c: Include gdbcore.h.
12593 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12594 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12595 'void' to declaration, to shut up ARI.
12596 (fetch_core_registers): Make static. Rewrite using supply_register.
12597 (arm_netbsd_core_fns): New core-file type specification.
12598 (_initialize_arm_netbsd_nat): New function.
12600 2002-02-21 Christopher Faylor <cgf@redhat.com>
12602 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12605 2002-02-20 Christopher Faylor <cgf@redhat.com>
12607 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12610 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12612 * jv-exp.y (parse_number): Change type of implicit longs
12613 to builtin_type_uint64.
12615 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12617 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12618 to be an integer instead of a `union wait'.
12620 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12622 * mips-linux-nat.c: Call the operating system GNU/Linux.
12623 * mips-linux-tdep.c: Likewise.
12624 * mips-tdep.c: Likewise.
12626 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12629 * jv-exp.y (parse_number): Handle 64-bit integers.
12631 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12633 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12634 AC_STDC_HEADERS to AC_HEADER_STDC.
12635 * gdbserver/configure: Regenerated.
12637 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12639 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12641 * sparc-tdep.c (get_longjmp_target): Likewise.
12643 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12645 * News: Add news about ARM and Multi-arch. Mention the new target
12648 2002-02-19 Jim Blandy <jimb@redhat.com>
12650 * stabsread.c (error_type_complaint): Improve error message.
12652 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12654 * gdbserver/README: Update documentation.
12655 * gdbserver/configure.in: Update configury to match documentation.
12656 * gdbserver/Makefile.in: Likewise.
12657 * gdbserver/configure: Regenerated.
12658 * gdbserver/aclocal.m4: New file, generated by aclocal.
12659 * gdbserver/config.in: New file, generated by autoheader.
12661 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12663 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12666 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12668 * arm-tdep.h (enum arm_float_model): New enum.
12669 (struct gdbarch_tdep): Add fp_model.
12670 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12671 up floating-point conversions until we know the floating-point model
12672 in use by the inferior. Don't complain about being unable to
12673 determine the ABI of the inferior when we don't have one.
12674 (arm_extract_return_value): Support different floating-point models.
12675 (arm_store_return_value): Likewise.
12676 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12678 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12680 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12682 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12683 of ``current_gdbarch''.
12685 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12687 * armnbsd-nat.c : ANSIfy all function declarations.
12688 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12689 (fetch_inferior_registers): Re-implement in terms of above.
12690 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12691 (store_inferior_registers): Re-implement in terms of above.
12693 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12695 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12697 * arm-linux-tdep.c: Likewise.
12698 * config/arm/tm-linux.h: Likewise.
12700 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12702 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12703 * config/arm/nbsd.mt (TM_FILE): Delete.
12704 * config/arm/tm-nbsd.h: Delete.
12706 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12708 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12709 Initialize CALL_DUMMY_LENGTH.
12711 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12713 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12715 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12716 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12717 defines one thing and that is incorrect for this port.
12718 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12720 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12722 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12724 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12726 * win32-nat.c (display_selector): New function. Displays information
12727 about the information returned by GetThreadSelectorEntry API function.
12728 (display_selectors): New function. Displays the infomation of
12729 the selector given as argument, or of CS, DS ans FS selectors
12730 if no argument is given.
12731 ( _initialize_inftarg): Add "w32" as info prefix command.
12732 Add "info w32 selector" as command calling display_selectors.
12734 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12736 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12737 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12740 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12742 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12744 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12746 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12747 (arm_fix_call_dummy): Call it.
12748 (arm_call_dummy_breakpoint_offset): Delete.
12749 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12750 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12752 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12754 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12755 Default to func_frame_chain_valid.
12756 * gdbarch.h, gdbarch.c: Re-generate.
12757 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12759 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12761 * ppc-linux-nat.c: Update copyright.
12762 (fetch_register, store_register): Add tid parameter, don't compute
12764 (fetch_ppc_registers, store_ppc_registers): Add tid
12765 parameter. Pass it along to callees.
12766 (fetch_inferior_registers, store_inferior_registers): Compute tid
12767 here, and pass it to calleed functions.
12768 (fill_gregset, supply_fpregset): Clean up formatting.
12770 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12772 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12773 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12775 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12777 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12778 * gdbarch.c gdbarch.h: Regenerate.
12779 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12781 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12782 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12783 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12785 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12786 * arm-tdep.c (arm_get_longjmp_target): New function.
12787 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12788 this to a positive value register arm_get_longjmp_target as the
12790 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12791 (arm_linux_init_abi): Set up longjmp description in tdep.
12792 * armnbsd-nat.c (get_longjmp_target): Delete.
12793 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12794 description in tdep.
12795 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12796 (get_longjmp_target): Delete declaration.
12797 (GET_LONGJMP_TARGET): Delete.
12798 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12799 (GET_LONGJMP_TARGET): Delete.
12801 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12803 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12804 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12805 of ``current_gdbarch''.
12807 2002-02-17 Tom Tromey <tromey@redhat.com>
12809 * cli/cli-cmds.c (compare_strings): New function.
12810 (complete_command): Only print each unique item once.
12811 * completer.h (complete_line): Declare.
12812 * completer.c (complete_line): New function.
12813 (line_completion_function): Use it.
12815 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12817 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12818 * gdbarch.h, gdbarch.c: Re-generate.
12820 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12822 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12824 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12826 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12827 * valops.c (value_arg_coerce): Don't take the address of a reference
12828 to convert an argument to a reference.
12830 2002-02-15 Christopher Faylor <cgf@redhat.com>
12832 * win32-nat.c (get_image_name): New function.
12833 (handle_load_dll): Use get_image_name function.
12834 (get_child_debug_event): Avoid registering debug events until possibly
12835 execed process is started.
12836 (child_create_inferior): Allow invocation via shell so that command
12837 line redirection, etc. works ok.
12838 (_initialize_inftarg): Add new command: "set shell" to control whether
12839 a shell is used to start a process.
12841 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12843 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12844 instead of find_register_by_number.
12845 (cannot_store_register): Likewise.
12847 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12849 * dwarf2read.c: Replace fprintf (stderr, ...) by
12850 fprintf_unfiltered (gdb_stderr, ...).
12852 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12854 * gdbserver/gdbserver.1: Document --attach.
12856 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12858 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12860 * arm-tdep.c (arm_default_arm_le_breakpoint)
12861 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12862 (arm_default_thumb_be_breakpoint): New. Initialize them from
12863 traditional breakpoint defines.
12864 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12865 (arm_gdbarch_init): Initialize new breakpoint variables.
12866 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12867 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12868 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12869 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12871 (arm_netbsd_init_abi_common): ... here; new function.
12872 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12873 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12874 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12875 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12877 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12879 * arm-tdep.h (enum arm_abi): New enum.
12880 (struct gdbarch_tdep): New structure.
12881 (LOWEST_PC): Provide a default.
12882 (arm_gdbarch_register_os_abi): Declare new function.
12883 * arm-tdep.c (arm_abi_names): New array.
12884 (process_note_abi_tag_sections): New function.
12885 (get_elfosabi): New function.
12886 (arm_gdbarch_register_os_abi): New function.
12887 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12888 support for that ABI has been built in, then call the appropriate
12889 configuration routine. Use gdbarch_num_regs() to get the number
12891 (arm_dump_tdep): New function.
12892 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12893 place-holder functions.
12894 (_initialize_arm_tdep): Register them.
12895 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12897 * armnbsd-tdep.c: New file.
12898 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12899 * config/arm/nbsd.mt (TDEPFILES): Add it.
12900 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12902 * armnbsd-nat.c: Include regcache.h.
12903 * Makefile.in (armnbsd-nat.o): Update dependency list.
12905 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12907 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12909 * gdbserver/Makefile.in: Fix typos in target rules.
12911 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12913 Fix part of PR gdb/267.
12914 * linespec.c (find_methods): Handle constructors specially for now.
12916 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12918 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12920 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12921 standard_coerce_float_to_double().
12923 2002-02-14 Christopher Faylor <cgf@redhat.com>
12925 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12928 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12930 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12931 find_variant_by_name, because it confuses the multiarch
12932 framework. Return NULL if there isn't an architecture with the
12933 user supplied name, instead of forcing a different one without
12934 recording the change with the multiarch machinery.
12935 (find_variant_by_name): Delete.
12937 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12939 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12940 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12942 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12944 * stack.c (print_frame_info_base): When calling
12945 print_frame_info_listing_hook, set current_source_symtab.
12947 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12949 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12950 and remove unused $(INCLUDE_DIR).
12951 Add regcache.c to OBS.
12952 Add generated register protocol files to clean target.
12953 Update dependencies for new objects, obsolete old target code.
12955 * gdbserver/linux-low.c: Remove all platform-specific code to
12956 new files. Remove various dead code. Update to use regcache
12958 * gdbserver/remote-utils.c (fromhex): Add return statement
12960 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12962 (input_interrupt): Add integer parameter to match prototype
12963 of a signal handler.
12964 (outreg): Use register_data ().
12965 (prepare_resume_reply): Use gdbserver_expedite_regs.
12966 * gdbserver/server.c (main): Dynamically allocate own_buf because
12967 PBUFSIZ is no longer constant. Use registers_to_string () and
12968 registers_from_string ().
12969 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12970 for error (), fatal (), and warning (). Update definition of
12971 PBUFSIZ to use regcache functionality. Add include guard.
12972 * gdbserver/utils.c (fatal): Add missing ``const''.
12973 (warning): New function.
12975 * regformats/regdat.sh: Include "regcache.h" in generated files.
12976 Provide init_registers () function.
12977 * regformats/regdef.h: Add prototype for set_register_cache ().
12980 * gdbserver/linux-arm-low.c: New file.
12981 * gdbserver/linux-i386-low.c: New file.
12982 * gdbserver/linux-ia64-low.c: New file.
12983 * gdbserver/linux-m68k-low.c: New file.
12984 * gdbserver/linux-mips-low.c: New file.
12985 * gdbserver/linux-ppc-low.c: New file.
12986 * gdbserver/linux-sh-low.c: New file.
12988 * gdbserver/regcache.c: New file.
12989 * gdbserver/regcache.h: New file.
12991 * gdbserver/low-linux.c: Removed obsolete file.
12993 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12995 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12996 * config/i386/linux.mt: Likewise.
12997 * config/ia64/linux.mt: Likewise.
12998 * config/m68k/linux.mh: Likewise.
12999 * config/powerpc/linux.mh: Likewise.
13000 * config/mips/linux.mt: Likewise.
13002 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13004 * config/i386/i386lynx.mh: Mark gdbserver variables
13005 as (currently) obsolete for this target.
13006 * config/i386/nbsd.mt: Likewise.
13007 * config/i386/nbsdelf.mt: Likewise.
13008 * config/m32r/m32r.mt: Likewise.
13009 * config/m68k/m68klynx.mh: Likewise.
13010 * config/m68k/nbsd.mt: Likewise.
13011 * config/m68k/sun3os4.mh: Likewise.
13012 * config/mips/vr5000.mt: Likewise.
13013 * config/ns32k/nbsd.mt: Likewise.
13014 * config/pa/hppabsd.mh: Likewise.
13015 * config/pa/hppaosf.mh: Likewise.
13016 * config/powerpc/nbsd.mt: Likewise.
13017 * config/rs6000/rs6000lynx.mh: Likewise.
13018 * config/s390/s390.mt: Likewise.
13019 * config/s390/s390x.mt: Likewise.
13020 * config/sparc/sparclynx.mh: Likewise.
13021 * config/sparc/sun4os4.mh: Likewise.
13022 * config/i386/x86-64linux.mt: Likewise.
13023 * config/sparc/linux.mh: Likewise.
13025 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13027 * configure.tgt: Configure gdbserver only for known working
13028 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13029 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13030 SUBDIRS if it is configured. Update comment for ${nativefile}.
13031 * configure: Regenerated.
13033 2002-02-13 Michael Snyder <msnyder@redhat.com>
13035 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13037 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13038 (default_gcore_mach): Just return 0, work around a problem in bfd.
13039 (default_gcore_target): OK to return NULL if exec_bfd is null.
13040 (make_mem_sec): Use a cast, avoid a warning.
13042 * procfs.c (find_memory_regions_callback): Use a cast instead of
13043 calling host_pointer_to_address (which complains if
13044 sizeof (host pointer) != sizeof (target pointer)).
13045 (procfs_make_note_section): Avoid overflow in psargs string.
13047 * procfs.c (procfs_make_note_section): Make the default
13048 implementation return an error.
13050 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13052 * procfs.c (procfs_make_note_section): Provide a default definition
13053 (for alpha-dec-osf4.0f). Fix typos.
13055 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13057 * linux-proc.c: Add include of regcache.h.
13058 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13060 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13062 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13063 * memattr.c (create_mem_region): Disallow useless empty region.
13064 Regions are half-open intervals, so allow [A..B) [B..C) as
13067 2002-02-13 Michael Chastain <mec@shout.net>
13069 * defs.h: Kill CONST_PTR.
13070 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13071 * c-lang.c (c_builtin_types): Likewise.
13072 * ch-lang.c (ch_builtin_types): Likewise.
13073 * f-lang.c (f_builtin_types): Likewise.
13074 * language.c (unknown_builtin_types): Likewise.
13075 * m2-lang.c (m2_builtin_types): Likewise.
13076 * p-lang.c (pascal_builtin_types): Likewise.
13077 * scm-lang.c (c_builtin_types): Likewise.
13079 2002-02-13 Keith Seitz <keiths@redhat.com>
13081 * arm-tdep.h (arm_get_next_pc): Add declaration.
13083 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13085 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13086 with other related struct-returning functions.
13087 (arm_extract_struct_value_address): New function.
13088 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13089 initialize float_format, double_format and long_double_format as
13090 appropriate to the endianness of the target.
13091 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13092 (arm_use_struct_convention): Delete declaration.
13093 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13095 2002-02-13 Keith Seitz <keiths@redhat.com>
13097 * defs.h (core_addr_to_string_nz): New function.
13099 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13101 Apply missing bits of 2002-01-15 patch.
13102 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13103 (fill_fpregset): Use i387_fill_fsave.
13105 2002-02-12 Keith Seitz <keiths@redhat.com>
13107 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13108 (core_addr_to_string_nz): New function.
13110 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13112 * arm-linux-nat.c: Really include arm-tdep.h.
13113 * config/arm/tm-linux.h (struct type, struct value): Declare.
13115 2002-02-11 Michael Snyder <msnyder@redhat.com>
13117 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13118 (gcore section): Ifdef for Solaris and Unixware only.
13119 (procfs_do_thread_registers): Unixware needs one lwpstatus
13120 per thread (not one prstatus or pstatus).
13121 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13122 not over all gdb threads. For unixware, call elfcore_write_pstatus
13123 once before iterating over threads.
13125 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13127 * arm-tdep.h: New file.
13128 * arm-tdep.c: Include arm-tdep.h.
13129 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13130 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13131 (arm_print_float_info, arm_register_type, convert_to_extended)
13132 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13133 (arm_extract_return_value, arm_register_name): Make static.
13134 (arm_software_single_step): Similarly. Fix types in declaration.
13135 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13136 (arm_store_return_value, arm_store_struct_return): New functions.
13137 (arm_gdbarch_init): Register the above functions. Also register
13138 call_dummy_start_offset, sizeof_call_dummy_words,
13139 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13140 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13141 max_register_virtual_size, register_size. Set up
13142 prologue_cache.saved_regs here, rather than ...
13143 (_initialize_arm_tdep): ... here.
13144 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13146 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13147 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13148 (arm_print_float_info, arm_register_type, convert_to_extended)
13149 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13150 (arm_extract_return_value, arm_register_name): Delete declarations.
13151 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13152 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13153 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13154 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13155 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13156 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13157 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13158 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13159 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13160 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13161 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13162 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13164 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13165 * remote-rdi.c remote-rdp.c: Likewise.
13166 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13167 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13168 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13171 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13172 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13173 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13174 from non-ARM_ prefixed definitions.
13175 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13177 * remote-rdi.c remote-rdp.c: Likewise.
13178 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13180 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13182 * arm-tdep.c (arm_frameless_function_invocation)
13183 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13184 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13185 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13186 (arm_pop_frame, arm_get_next_pc): Make static.
13187 (arm_gdbarch_init): Register above in gdbarch structure.
13188 (arm_read_fp): Renamed from arm_target_read_fp.
13189 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13190 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13191 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13192 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13193 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13194 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13195 (arm_pc_is_thumb_dummy): Delete declarations.
13196 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13197 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13198 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13199 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13201 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13203 * symtab.c (compare_search_syms): New function.
13204 (sort_search_symbols): New function.
13205 (search_symbols): Sort symbols after searching rather than
13208 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13210 * NEWS: Linux -> GNU/Linux.
13212 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13214 * gdbarch.sh: For for level one methods, disallow a definition
13215 when partially multi-arched. Add comments explaining rationale.
13216 * gdbarch.h: Re-generate.
13218 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13220 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13221 multi-arch partial.
13223 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13225 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13226 field. Use diff -u.
13227 * gdbarch.c: Re-generate.
13229 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13231 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13232 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13235 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13237 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13238 multi-arch partial.
13239 (PUSH_ARGUMENTS): Switch to using predefault.
13240 * gdbarch.c: Regenerate.
13242 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13244 * valops.c (PUSH_ARGUMENTS): Delete definition.
13245 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13246 partial. Default to default_push_arguments.
13247 * gdbarch.h, gdbarch.c: Regenerate.
13249 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13251 * defs.h (throw_exception): Rename return_to_top_level. Update
13253 * utils.c (error_stream, internal_verror, quit): Ditto.
13254 * top.c (throw_exception, catcher): Ditto.
13255 * sparclet-rom.c (sparclet_load): Ditto.
13256 * remote.c (interrupt_query, minitelnet): Ditto.
13257 * remote-sds.c (interrupt_query): Ditto.
13258 * remote-mips.c (mips_error, mips_kill): Ditto.
13259 * ocd.c (interrupt_query): Ditto.
13260 * monitor.c (monitor_interrupt_query): Ditto.
13261 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13262 * target.h: Update comment.
13264 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13266 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13268 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13269 default_double_format.
13270 * gdbarch.h, gdbarch.c: Re-generate.
13271 * findvar.c (floatformat_unknown): Delete variable definition.
13272 * doublest.h (floatformat_unknown): Delete variable declaration.
13274 2002-02-09 Jim Blandy <jimb@redhat.com>
13276 * stabsread.c (read_type): Add code to parse Sun's syntax for
13277 prototyped function types.
13279 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13281 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13282 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13284 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13286 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13287 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13288 now _initialize_xcoffsolib gets called again and overrides the
13289 commands from solib.c in a native configuration.
13291 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13293 * doublest.c (store_typed_floating): Don't try to return a value.
13296 2002-02-08 Jim Blandy <jimb@redhat.com>
13298 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13299 is prototyped and has no arguments, print its argument list as
13302 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13304 * MAINTAINERS (write-after-approval): Add myself.
13305 (paper-trail): I've escaped!
13307 2002-02-08 Christopher Faylor <cgf@redhat.com>
13309 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13311 (_initialize_check_for_gdb_ini): Ditto.
13313 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13315 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13316 xaprintf -> xasprintf.
13318 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13320 * win32-nat.c: Remove use of printf and sprintf functions.
13322 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13324 * arm-tdep.c (arm_frame_chain_valid): Make static.
13325 (arm_push_arguments): Likewise.
13326 (arm_gdbarch_init): New function.
13327 (_initialize_arm_tdep): Call it.
13328 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13329 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13330 (FRAME_CHAIN_VALID): Delete.
13331 (arm_frame_chain_valid): Delete declaration.
13332 (PUSH_ARGUMENTS): Delete.
13333 (arm_push_arguments): Delete declaration.
13334 (CALL_DUMMY_P): Delete.
13336 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13337 Corinna Vinschen <vinschen@redhat.com>
13339 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13340 on builtin float types.
13342 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13344 * utils.c: Include <curses.h> before "bfd.h".
13345 * tui/tui-hooks.c: Likewise.
13346 * tui/tui.c: Likewise.
13347 * tui/tuiCommand.c: Likewise.
13348 * tui/tuiData.c: Likewise.
13349 * tui/tuiDataWin.c: Likewise.
13350 * tui/tuiDisassem.c: Likewise.
13351 * tui/tuiGeneralWin.c: Likewise.
13352 * tui/tuiIO.c: Likewise.
13353 * tui/tuiLayout.c: Likewise.
13354 * tui/tuiRegs.c: Likewise.
13355 * tui/tuiSource.c: Likewise.
13356 * tui/tuiSourceWin.c: Likewise.
13357 * tui/tuiStack.c: Likewise.
13358 * tui/tuiWin.c: Likewise.
13360 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13362 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13363 to include space for pseudoregs as well. Update loops accordingly.
13364 (sh_fp_frame_init_saved_regs): Ditto.
13365 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13367 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13369 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13370 Add Richard Earnshaw to Arm maintainers.
13372 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13374 * defs.h (warning_begin): Delete declaration.
13376 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13379 2002-02-07 Michael Snyder <msnyder@redhat.com>
13381 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13382 Logic bug, remove misplaced else.
13384 2002-02-07 Klee Dienes <klee@apple.com>
13386 * fork-inferior.c (fork_inferior): Add '!' to the list of
13387 characters that need to be quoted when building a string for the
13388 shell. Quote '!' specifically with a backslash, since CSH chokes
13389 when trying to evaluate "str!str".
13391 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13393 * rdi-share/host.h: Only provide a typedef for bool if it is not
13396 2002-02-04 Michael Snyder <msnyder@redhat.com>
13398 * breakpoint.h (enum bptype): Add new overlay event bp type.
13399 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13401 * breakpoint.c (create_internal_breakpoint): New function.
13402 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13403 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13404 (create_thread_event_breakpoint): Ditto.
13405 (create_solib_event_breakpoint): Ditto.
13406 (create_overlay_event_breakpoint): New function.
13407 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13408 (update_breakpoints_after_exec): Delete and re-initialize
13409 overlay event breakpoints after an exec. Add FIXME comment
13410 about longjmp breakpoint.
13411 (print_it_typical): Ignore overlay event breakpoints.
13412 (print_one_breakpoint): Ditto.
13414 (bpstat_what): Do not stop for overlay event breakpoints.
13415 (delete_breakpoint): Don't delete overlay event breakpoints.
13416 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13417 (breakpoint_re_set): Re-create overlay event breakpoint.
13419 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13420 (overlay_manual_command): Disable overlay breakpoints.
13421 (overlay_off_command): Disable overlay breakpoints.
13423 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13425 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13426 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13427 to here from config/tm-arm.h.
13428 (coff_sym_is_thumb): Make static.
13429 (arm_elf_make_msymbol_special): New function.
13430 (arm_coff_make_msymbol_special): New function.
13431 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13432 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13433 (coff_sym_is_thumb): Delete declaration.
13434 (arm_elf_make_msymbol_special): Declare.
13435 (arm_coff_make_msymbol_special): Declare.
13436 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13437 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13439 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13441 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13443 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13445 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13446 * gdbarch.c gdbarch.h: Regenerate.
13447 * arch-utils.c (default_print_float_info): New function.
13448 * arch-utils.h (default_print_float_info): Prototype it.
13449 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13450 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13451 (PRINT_FLOAT_INFO): Document it.
13453 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13454 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13455 (PRINT_FLOAT_INFO): Define.
13457 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13459 * win32-nat.c (_initialize_check_for_gdb_ini):
13460 Add typecast to sprintf argument to suppress a warning.
13462 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13464 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13465 to allow easier handling of pass state.
13466 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13467 that gives exception name and address.
13468 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13469 and set last_sig value to ourstatus->value.sig. Some missing
13471 (child_continue): Correctly report continue_status.
13472 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13473 TARGET_SIGNAL_0 (new default value).
13474 (child_resume): consider sig argument passed to decide if
13475 the exception should be passed to debuggee or not.
13477 2002-02-05 Michael Snyder <msnyder@redhat.com>
13479 * regcache.c (fetch_register): Call target_fetch_register
13480 only if we don't call FETCH_PSEUDO_REGISTER.
13481 (store_register): Call target_store_register only if we
13482 don't call STORE_PSEUDO_REGISTER.
13484 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13486 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13487 ELF_MAKE_MSYMBOL_SPECIAL.
13488 * gdbarch.c, gdbarch.h: Regenerate.
13489 * arch-utils.c (default_make_msymbol_special): New function.
13490 * arch-utils.h (default_make_msymbol_special): Export.
13491 * elfread.c (elf_symtab_read): Compile use of
13492 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13494 * coffread.c (coff_symtab_read): Ditto, for
13495 COFF_MAKE_MSYMBOL_SPECIAL.
13497 2002-02-05 Jim Blandy <jimb@redhat.com>
13499 * solib-svr4.c (svr4_truncate_ptr): New function.
13500 (svr4_relocate_section_addresses): Do the address arithmetic with
13501 the appropriate truncation for target addresses, even when
13502 CORE_ADDR is larger than a target address.
13504 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13506 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13509 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13511 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13514 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13516 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13518 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13520 * gdbserver/linux-low.c: Remove unused include files.
13522 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13524 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13525 (read_inferior_memory): Use it.
13526 (write_inferior_memory): Likewise.
13528 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13530 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13531 grubbing through sys_errlist.
13533 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13535 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13537 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13538 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13540 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13542 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13543 (do_sfunc, set_cmd_sfunc): New functions.
13545 * command.h (struct cmd_list_element): Add field func.
13546 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13547 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13548 * cli/cli-decode.h: Ditto.
13550 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13551 (help_all, help_cmd_list): Ditto.
13552 (find_cmd, complete_on_cmdlist): Ditto.
13553 * top.c (execute_command): Ditto.
13555 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13558 * infcmd.c (notice_args_read): Fix function signature.
13560 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13561 * cli/cli-decode.c (add_set_cmd): Ditto.
13562 * utils.c (initialize_utils): Ditto.
13563 * maint.c (_initialize_maint_cmds): Ditto.
13564 * infrun.c (_initialize_infrun): Ditto.
13565 * demangle.c (_initialize_demangler): Ditto.
13566 * remote.c (add_packet_config_cmd): Ditto.
13567 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13568 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13569 * proc-api.c (_initialize_proc_api): Ditto.
13570 * kod.c (_initialize_kod): Ditto.
13571 * valprint.c (_initialize_valprint): Ditto.
13572 * top.c (init_main): Ditto.
13573 * infcmd.c (_initialize_infcmd): Ditto.
13574 * corefile.c (_initialize_core): Ditto.
13575 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13576 * arch-utils.c (initialize_current_architecture): Ditto.
13577 (_initialize_gdbarch_utils): Ditto.
13578 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13580 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13581 * wince.c (_initialize_inftarg): Ditto.
13582 * symfile.c (_initialize_symfile): Ditto.
13583 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13584 * language.c (_initialize_language): Ditto.
13585 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13587 2002-02-04 Michael Snyder <msnyder@redhat.com>
13589 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13591 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13593 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13594 Add rules for building the register data files.
13596 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13598 * regformats/regdat.sh: Add braces to the definition of
13599 expedite_regs_${arch}.
13601 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13603 * regformats/regdef.h (struct reg): Add comment describing the
13604 requirements for offset and size fields.
13606 2002-02-04 Andreas Schwab <schwab@suse.de>
13608 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13609 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13611 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13613 * gdbarch.sh (copyright): Update years in generated header.
13614 (SMASH_TEXT_ADDRESS): Add rule.
13615 * gdbarch.h, gdbarch.c: Re-generate.
13616 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13617 * dbxread.c: Likewise.
13618 * dwarfread.c: Likewise.
13619 * elfread.c: Likewise.
13620 * somread.c: Likewise.
13622 * arm-tdep.c (arm_smash_text_address): New function.
13623 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13625 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13627 Add support for hardware watchpoints on win32 native.
13628 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13629 CONTEXT_DEBUG_REGISTERS.
13630 (dr variable): New variable. Static array containing a local copy
13631 of debug registers.
13632 (debug_registers_changed): New variable. Reflects when debug registers
13633 are changed and need to be written to inferior.
13634 (debug_registers_used): New variable. Reflects when any debug register
13635 was set, used when new threads are created.
13636 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13638 (thread_rec): Set dr array if id is the thread of current_event .
13639 (child_continue, child_resume): Change the debug registers for all
13640 threads if debug_registers_changed.
13641 (child_add_thread): Change the debug registers if debug_registers_used.
13642 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13643 Link nm.h to new nm-cygwin.h file.
13644 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13645 of hardware registers.
13647 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13649 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13650 Restore behavour broken by 2002-01-20 Andrew Cagney
13651 <ac131313@redhat.com> IEEE_FLOAT removal.
13653 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13655 * c-valprint.c (c_val_print): Pass a proper valaddr to
13656 cp_print_class_method.
13657 * valops.c (search_struct_method): If there is only one method
13658 and args is NULL, return that method.
13660 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13662 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13663 accessing tag_name directly.
13665 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13667 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13668 of accessing tag_name directly.
13670 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13673 * gdbtypes.c (replace_type): New function.
13674 * gdbtypes.h (replace_type): Add prototype.
13675 * stabsread.c (read_type): Use replace_type.
13677 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13679 * Makefile.in (memattr.o): Add missing dependencies rule.
13681 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13683 * breakpoint.c (break_at_finish_command): Really export.
13684 (break_at_finish_at_depth_command): Ditto.
13685 (tbreak_at_finish_command): Ditto.
13686 * hppa-tdep.c: Include completer.h.
13687 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13688 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13690 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13692 * utils.c (do_write): New function.
13693 (error_stream): Rewrite combining the code from error_begin and
13695 (verror): Rewrite using error_stream.
13696 (error_begin): Delete function.
13698 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13700 * utils.c (error_begin): Make static.
13701 * defs.h (error_begin): Delete declaration.
13703 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13704 (decode_line_1): Use cplusplus_error instead of error_begin,
13705 cplusplus_hint and return_to_top_level.
13706 * coffread.c (coff_symfile_read): Use error instead of error_begin
13707 and return_to_top_level.
13708 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13710 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13712 * language.h (type_error, range_error): Make string parameter
13714 * language.c (warning_pre_print): Delete extern declaration.
13715 * dwarfread.c (warning_pre_print): Ditto.
13716 * language.c (type_error, range_error): Rewrite to use verror and
13717 vwarning instead of warning_begin.
13719 2002-02-01 Michael Snyder <msnyder@redhat.com>
13721 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13722 (set_ignore_count): Move misplaced comment back where it belongs.
13724 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13726 * command.h (NO_FUNCTION): Delete macro.
13727 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13728 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13729 * tracepoint.c (_initialize_tracepoint): Ditto.
13730 * cli/cli-decode.c (add_set_cmd): Ditto.
13731 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13733 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13735 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13736 Update ``this'' pointer when calling virtual functions.
13738 2002-02-01 Michael Snyder <msnyder@redhat.com>
13740 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13741 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13743 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13745 * regformats/reg-arm.dat: New file.
13746 * regformats/reg-i386.dat: New file.
13747 * regformats/reg-ia64.dat: New file.
13748 * regformats/reg-m68k.dat: New file.
13749 * regformats/reg-mips.dat: New file.
13750 * regformats/reg-ppc.dat: New file.
13751 * regformats/reg-sh.dat: New file.
13752 * regformats/regdef.h: New file.
13753 * regformats/regdat.sh: New file.
13755 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13757 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13758 (arm_frame_args_address, arm_frame_locals_address): New functions.
13759 (arm_frame_num_args): New function.
13760 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13761 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13762 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13764 2002-01-31 Michael Snyder <msnyder@redhat.com>
13766 * breakpoint.c (break_at_finish_command): Export.
13767 (break_at_finish_at_depth_command): Export.
13768 (tbreak_at_finish_command): Export.
13769 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13770 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13771 "txbreak" commands, which are HPPA specific.
13773 * printcmd.c (disassemble_command): Remove an ancient
13774 artifact of an old merge.
13776 * symfile.h (enum overlay_debugging_state):
13777 Define enum constant values for overlay mode.
13778 * symfile.c (overlay_debugging): Use enums instead of literals.
13779 (overlay_is_mapped, overlay_auto_command,
13780 overlay_manual_command): Ditto.
13782 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13783 breakpoint_here_p, breakpoint_inserted_here_p,
13784 breakpoint_thread_match, bpstat_stop_status,
13785 describe_other_breakpoints, check_duplicates, clear_command):
13786 Coding standard fixes.
13788 * target.c (target_xfer_memory): Add spaces, coding standard.
13789 (do_xfer_memory): Add missing line to trust-readonly
13790 code: check bfd SEC_READONLY flag for section.
13792 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13794 * PROBLEMS: Fix typo, 5.1->5.1.1.
13796 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13798 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13799 data symbols, since we search based on textlow and texthigh.
13800 (find_pc_sect_symtab): Likewise.
13802 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13804 * defs.h (vwarning): Declare.
13805 * utils.c (vwarning): New function.
13806 (warning): Call vwarning.
13807 (warning_begin): Delete function.
13809 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13810 the warning message.
13811 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13814 2002-01-30 Michael Snyder <msnyder@redhat.com>
13816 * NEWS: Mention "set trust-readonly-sections" command.
13817 Mention generate-core-file command.
13819 2002-01-15 Michael Snyder <msnyder@redhat.com>
13821 * target.c: New command, "set trust-readonly-sections on".
13822 (do_xfer_memory): Honor the suggestion to trust readonly sections
13823 by reading them from the object file instead of from the target.
13824 (initialize_targets): Register command "set trust-readonly-sections".
13826 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13828 * parse.c (target_map_name_to_register): Simplify, search regs and
13829 pseudo-regs using a single loop.
13831 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13833 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13835 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13837 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13838 * config/i386/i386v42mp.mh: Add i387-nat.o .
13839 * i386v4-nat.c: Include i387-nat.h.
13840 (supply_fpregset): Use i387_supply_fsave.
13841 (fill_fpregset): Use i387_fill_fsave.
13843 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13845 * arm-tdep.c (arm_call_dummy_words): Define.
13846 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13847 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13848 (CALL_DUMMY_WORDS): Define.
13849 (arm_call_dummy_words): Declare.
13850 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13851 (arm_linux_call_dummy_words): Declare.
13853 2002-01-30 Andreas Schwab <schwab@suse.de>
13855 * m68klinux-nat.c: Fix last change to use regcache_collect
13856 instead of referencing registers[] directly.
13858 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13860 * parse.c (target_map_name_to_register): Delete code wrapped in
13861 #ifdef REGISTER_NAME_ALIAS_HOOK.
13863 2002-01-28 Michael Snyder <msnyder@redhat.com>
13865 * regcache.c (legacy_read_register_gen): Need to be able to
13866 read pseudo-register as well as real register.
13867 (legacy_write_register_gen): Ditto.
13869 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13871 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13872 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13873 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13874 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13875 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13876 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13877 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13878 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13879 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13880 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13881 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13882 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13883 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13884 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13885 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13886 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13887 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13888 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13889 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13890 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13892 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13894 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13895 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13896 (initialize_current_architecture): Update target_byte_order using
13897 information from BFD.
13898 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13899 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13901 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13903 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13904 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13906 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13907 #ifdef INVALID_FLOAT.
13908 * infcmd.c (do_registers_info): Ditto.
13909 * values.c (unpack_double): Ditto. Add comment.
13911 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13912 already commented out.
13914 2002-01-26 Andreas Schwab <schwab@suse.de>
13916 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13917 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13918 registers and add support for PTRACE_GETREGS.
13920 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13922 GDB 5.1.1 released from 5.1 branch.
13923 * NEWS: Add 5.1.1 news.
13924 * README: Sync with 5.1 branch.
13926 2002-01-23 Fred Fish <fnf@redhat.com>
13928 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13929 stabstring on initial malloc. Reallocing will copy it for us,
13932 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13934 * Makefile.in (hpread_h): Delete.
13935 (HFILES_NO_SRCDIR): Remove hpread.h.
13936 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13937 (hpread.o): Update dependencies.
13938 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13940 * hp-psymtab-read.c: Remove file.
13941 * hp-symtab-read.c: Remove file.
13942 * hpread.h: Remove file.
13944 * hpread.c: Merge all contents of hp-psymtab-read.c,
13945 hp-symtab-read.c and hpread.h into this file, as it was prior to
13948 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13949 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13950 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13951 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13953 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13955 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13956 fill_gregset): Call gdbarch_tdep() just once, assign result to
13957 variable and use that, instead of calling the function several
13960 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13962 * configure.host: Accept sparcv9 as alias for sparc64.
13963 * configure.tgt: Likewise.
13965 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13967 * solib-aix5.c (build_so_list_from_mapfile)
13968 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13969 arguments is not reversed.
13970 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13971 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13973 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13975 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13976 modified version of obsolete sh_fetch_pseudo_register.
13977 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13978 (sh4_register_read): New function.
13979 (sh_pseudo_register_write): New function. Renamed and modified
13980 version of obsolete sh_store_pseudo_register.
13981 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13982 (sh4_register_write): New function.
13983 (sh_gdbarch_init): Remove setting of gdbarch function
13984 fetch_pseudo_register and store_pseudo_register. Remove setting of
13985 register_convert_to_raw, register_convert_to_virtual,
13986 register_convertible.
13987 (sh_sh4_register_convertible): Delete. No longer needed. All is
13988 taken care by architecture specific functions
13989 register_read/register_write.
13990 (sh_sh4_register_convert_to_virtual): Make static.
13991 (sh_sh4_register_convert_to_raw): Ditto.
13993 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13995 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13996 (floatformat_is_nan, floatformat_mantissa): Ditto.
13998 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13999 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14000 builtin_type_ieee_double_little,
14001 builtin_type_ieee_double_littlebyte_bigword,
14002 builtin_type_m68881_ext, builtin_type_i960_ext,
14003 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14004 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14005 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14006 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14008 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14010 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14011 parameter. Set frameless flag if it exists and depended of
14012 whether the scanned function is frameless or not.
14013 (xstormy16_skip_prologue): If function is frameless, return
14014 result of xstormy16_scan_prologue().
14015 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14018 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14020 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14021 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14022 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14023 sh_sh4_register_byte, sh_sh4_register_raw_size,
14024 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14025 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14026 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14027 sh_store_pseudo_register, sh_do_pseudo_register): Call
14028 gdbarch_tdep() just once, assign result to variable and use that,
14029 instead of calling the function several times.
14031 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14033 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14034 macros instead of LAST_FPU_CTRL_REGNUM.
14035 (store_register): Likewise.
14037 2002-01-21 Jim Blandy <jimb@redhat.com>
14039 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14040 is up-to-date before running the program, not just when a program
14043 2002-01-21 Fred Fish <fnf@redhat.com>
14045 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14046 when we have found all instructions we are looking for.
14048 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14050 * arm-tdep.c (arm_register_name): New function.
14051 (arm_registers_names): Make static.
14052 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14053 (arm_register_name): Declare.
14054 (REGISTER_NAME): Use it.
14056 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14057 Kevin Buettner <kevinb@redhat.com>
14059 Convert arm targets to new FRAME interface.
14060 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14061 (arm_frame_find_save_regs): Delete.
14062 (arm_frame_init_saved_regs): New.
14063 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14064 Allocate extra_info as required. Convert all uses of fsr.regs
14065 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14067 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14068 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14069 (check_prologue_cache, save_prologue_cache): Likewise.
14070 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14071 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14072 (FRAME_FIND_SAVED_REGS): Delete.
14073 (arm_frame_find_saved_regs): Delete prototype.
14074 (arm_frame_init_saved_regs): New prototype.
14075 (FRAME_INIT_SAVED_REGS): Define.
14077 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14079 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14081 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14083 From Jeff Law <law@redhat.com>:
14084 * infttrace.c: Include <sys/pstat.h>.
14085 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14086 exec file if the ttrace equivalent fails.
14088 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14090 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14091 (closeLogFile): Ditto.
14093 2002-01-20 Michael Chastain <mec@shout.net>
14095 * top.c (print_gdb_version): Bump copyright year to 2002.
14097 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14099 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14100 Zannoni and Eli Zaretskii.
14102 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14104 * buildsym.c: Update copyright years.
14105 * c-typeprint.c: Likewise.
14106 * dwarf2read.c: Likewise.
14107 * f-typeprint.c: Likewise.
14108 * gdbtypes.c: Likewise.
14109 * gdbtypes.h: Likewise.
14110 * hp-symtab-read.c: Likewise.
14111 * hpread.c: Likewise.
14112 * mdebugread.c: Likewise.
14113 * p-typeprint.c: Likewise.
14115 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14117 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14118 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14119 byte-order selectable.
14120 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14121 * arch-utils.c: Ditto.
14122 (set_endian): Ditto.
14123 (set_endian_from_file): Ditto.
14124 * gdbserver/low-sim.c (create_inferior): Ditto.
14125 * gdbarch.sh: Ditto.
14126 * gdbarch.h: Re-generate.
14127 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14128 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14129 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14130 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14131 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14132 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14133 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14134 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14136 * config/mips/tm-wince.h: Remove #undef of macro
14137 TARGET_BYTE_ORDER_SELECTABLE.
14138 * config/sh/tm-wince.h: Ditto.
14140 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14142 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14143 member function fields. Add accessor macro
14144 TYPE_FN_FIELD_ARTIFICIAL.
14145 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14146 * c-typeprint.c (c_type_print_base): Skip artificial member
14149 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14151 * f-typeprint.c: Delete unused function f_type_print_args.
14152 * p-typeprint.c: Delete unused function pascal_type_print_args.
14154 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14156 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14157 comment. Add ``artificial'' to ``union field_location''.
14159 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14161 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14162 * mdebugread.c (parse_symbol): Likewise.
14163 * stabsread.c (define_symbol): Likewise.
14164 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14165 initializing TYPE_FIELD_BITPOS to n (obsolete).
14166 (hpread_doc_function_type): Likewise.
14167 * hpread.c (hpread_function_type): Likewise.
14169 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14171 * configure.in (host_makefile_frag): Only require a host makefile
14172 fragment when a native build.
14173 * configure: Re-generate.
14175 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14177 * doublest.h (floatformat_from_type): Declare.
14178 * doublest.c (floatformat_from_type): New function.
14179 (convert_typed_floating): Use.
14181 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14182 call to function floatformat_from_type.
14184 * gdbarch.sh (IEEE_FLOAT): Delete.
14185 * gdbarch.h, gdbarch.c: Re-generate.
14186 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14187 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14188 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14189 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14190 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14191 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14192 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14193 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14194 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14195 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14196 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14197 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14199 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14200 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14201 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14202 * sh-tdep.c (sh_gdbarch_init): Ditto.
14203 * mips-tdep.c (mips_gdbarch_init): Ditto.
14204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14205 * cris-tdep.c (cris_gdbarch_init): Ditto.
14207 2002-01-20 Jiri Smid <smid@suse.cz>
14209 * configure.host, configure.tgt: Support x86-64.
14210 * NEWS: Note new target x86-64.
14212 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14213 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14214 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14215 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14216 x86-64-linux-nat.o): Fix dependencies.
14218 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14220 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14221 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14222 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14223 * config/sparc/xm-sun4os4.h: Delete file.
14224 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14226 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14228 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14229 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14230 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14231 * config/i386/i386lynx.mh (XM_FILE): Delete.
14232 * config/rs6000/xm-rs6000ly.h: Delete file.
14233 * config/sparc/xm-sparclynx.h: Delete file.
14234 * config/m68k/xm-m68klynx.h: Delete file.
14235 * config/i386/xm-i386lynx.h: Delete file.
14236 * config/xm-lynx.h: Delete file.
14237 * config/djgpp/fnchange.lst: Update.
14239 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14241 * alpha-tdep.c (alpha_register_byte): New function.
14242 (alpha_register_raw_size): Ditto.
14243 (alpha_register_virtual_size): Ditto.
14244 (alpha_skip_prologue_internal): Renamed from
14245 alpha_skip_prologue.
14246 (alpha_skip_prologue): New version that calls
14247 alpha_skip_prologue_internal.
14248 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14249 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14250 second argument from alpha_skip_prologue.
14251 (REGISTER_BYTE): Use alpha_register_byte.
14252 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14253 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14254 (FRAMELESS_FUNCTION_INVOCATION): Use
14255 generic_frameless_function_invocation_not.
14256 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14257 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14259 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14261 * config/mips/xm-news-mips.h: Delete file.
14262 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14264 * config/m88k/xm-m88k.h: Delete file.
14265 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14266 * config/m88k/xm-delta88v4.h: Ditto.
14267 * config/m88k/xm-delta88.h: Ditto.
14269 * config/alpha/xm-fbsd.h: Delete file.
14270 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14272 * config/sparc/xm-sparc.h: Delete file.
14273 * Makefile.in (xm-sun4os4.h): Delete dependency.
14274 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14275 * config/sparc/xm-sun4os4.h: Ditto.
14276 * config/sparc/xm-linux.h: Ditto.
14278 * config/i386/xm-windows.h: Delete file.
14280 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14282 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14283 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14285 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14287 * alpha-tdep.c (alpha_call_dummy_words): New.
14288 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14289 (CALL_DUMMY_P): Define.
14290 (CALL_DUMMY_WORDS): Define.
14291 (SIZEOF_CALL_DUMMY_WORDS): Define.
14293 2002-01-19 Per Bothner <per@bothner.com>
14295 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14296 isn't NULL, which can happen with some gcj-3.x-produced code.
14298 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14300 * alpha-tdep.c (alpha_register_virtual_type): New function.
14301 (alpha_init_frame_pc_first): Ditto.
14302 (alpha_fix_call_dummy): Ditto.
14303 (alpha_store_struct_return): Ditto.
14304 (alpha_extract_struct_value_address): Ditto.
14305 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14306 alpha_register_virtual_type.
14307 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14308 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14309 alpha_extract_struct_value_address.
14310 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14311 (INIT_FRAME_PC): Use init_frame_pc_noop.
14312 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14314 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14316 * i386gnu-nat.c: Include "i386-tdep.h".
14317 (fetch_fpregs): Simplify code dealing with uninitialized floating
14318 point states such that it doesn't require FP7_REGNUM.
14320 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14322 * alpha-tdep.c (frame_extra_info): New.
14323 (alpha_find_saved_regs): Make static. Use
14325 (alpha_frame_init_saved_regs): New function.
14326 (alpha_frame_saved_pc): Use frame->extra_info.
14327 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14328 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14329 (init_extra_frame_info): Rename to...
14330 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14331 (alpha_print_extra_frame_info): New function.
14332 (alpha_frame_locals_address): Ditto.
14333 (alpha_frame_args_address): Ditto.
14334 (alpha_pop_frame): Use frame->extra_info.
14335 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14336 alpha_frame_args_address.
14337 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14338 (alpha_find_saved_regs): Remove prototype.
14339 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14340 (EXTRA_FRAME_INFO): Remove.
14341 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14342 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14344 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14346 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14347 (alpha_cannot_fetch_register): Ditto.
14348 (alpha_cannot_store_register): Ditto.
14349 (alpha_register_convertible): Ditto.
14350 (alpha_use_struct_convention): Ditto.
14351 * config/alpha/tm-alpha.h: Update copyright years.
14352 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14353 (INNER_THAN): Use core_addr_lessthan.
14354 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14355 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14356 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14357 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14358 (FRAME_CHAIN): Remove unnecessary cast.
14360 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14362 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14365 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14367 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14368 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14369 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14370 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14371 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14372 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14373 * x86-64-linux-nat.c: Ditto.
14375 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14377 * alpha-tdep.c (alpha_register_name): New function.
14378 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14379 (REGISTER_NAME): Define.
14381 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14383 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14385 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14387 * alpha-tdep.c: Update copyright years.
14388 (alpha_next_pc): New function.
14389 (alpha_software_single_step): Ditto.
14390 * config/alpha/tm-alpha.h: Add prototype for
14391 alpha_software_single_step.
14393 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14395 * alphabsd-nat.c: Update copyright years.
14396 (fill_gregset): Use regcache_collect.
14397 (fill_fpregset): Likewise.
14398 (fetch_inferior_registers): Only fetch integer registers
14399 if requested to do so.
14400 (store_inferior_registers): Only store integer registers
14401 if requested to do so.
14403 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14405 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14406 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14407 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14408 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14409 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14410 * config/arm/linux.mh (XDEPFILES): Delete.
14411 * config/arm/nbsd.mh (XDEPFILES): Delete.
14412 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14413 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14414 * config/i386/i386m3.mh (XDEPFILES): Delete.
14415 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14416 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14417 * config/i386/fbsd.mh (XDEPFILES): Delete.
14418 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14419 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14420 * config/i386/i386v4.mh (XDEPFILES): Delete.
14421 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14422 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14423 * config/i386/i386aix.mh (XDEPFILES): Delete.
14424 * config/i386/go32.mh (XDEPFILES): Delete.
14425 * config/i386/cygwin.mh (XDEPFILES): Delete.
14426 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14427 * config/i386/i386mach.mh (XDEPFILES): Delete.
14428 * config/i386/i386v32.mh (XDEPFILES): Delete.
14429 * config/i386/linux.mh (XDEPFILES): Delete.
14430 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14431 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14432 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14433 * config/i386/i386sco.mh (XDEPFILES): Delete.
14434 * config/i386/i386v.mh (XDEPFILES): Delete.
14435 * config/i386/nbsd.mh (XDEPFILES): Delete.
14436 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14437 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14438 * config/i386/symmetry.mh (XDEPFILES): Delete.
14439 * config/i386/obsd.mh (XDEPFILES): Delete.
14440 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14441 * config/ia64/linux.mh (XDEPFILES): Delete.
14442 * config/ia64/aix.mh (XDEPFILES): Delete.
14443 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14444 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14445 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14446 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14447 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14448 * config/m68k/linux.mh (XDEPFILES): Delete.
14449 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14450 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14451 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14452 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14453 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14454 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14455 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14456 * config/m88k/delta88.mh (XDEPFILES): Delete.
14457 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14458 * config/m88k/m88k.mh (XDEPFILES): Delete.
14459 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14460 * config/mips/linux.mh (XDEPFILES): Delete.
14461 * config/mips/irix6.mh (XDEPFILES): Delete.
14462 * config/mips/irix5.mh (XDEPFILES): Delete.
14463 * config/mips/irix4.mh (XDEPFILES): Delete.
14464 * config/mips/irix3.mh (XDEPFILES): Delete.
14465 * config/mips/decstation.mh (XDEPFILES): Delete.
14466 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14467 (NATDEPFILES): Move core-aout.o to here.
14468 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14469 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14470 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14471 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14472 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14473 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14474 * config/pa/hpux11.mh (XDEPFILES): Delete.
14475 * config/powerpc/aix.mh (XDEPFILES): Delete.
14476 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14477 * config/powerpc/linux.mh (XDEPFILES): Delete.
14478 * config/romp/rtbsd.mh: Rename XDEPFILES.
14479 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14480 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14481 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14482 * config/s390/s390.mh (XDEPFILES): Delete.
14483 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14484 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14485 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14486 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14487 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14488 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14489 * config/sparc/linux.mh (XDEPFILES): Delete.
14490 * config/vax/vaxult.mh (XDEPFILES): Delete.
14491 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14492 * Makefile.in (DEPFILES): Remove XDEPFILES.
14494 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14496 * utils.c (internal_verror): Fix comments, default is yes not no.
14497 Update queries to match. Default to quit and dump core.
14499 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14501 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14503 * defs.h, event-top.c, gdbcmd.h: Ditto.
14504 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14505 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14506 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14507 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14508 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14509 * mi/mi-main.c:Ditto.
14511 * stack.c, symfile.c: Update copyright.
14513 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14515 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14516 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14517 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14518 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14520 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14522 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14523 * gdbserver/low-lynx.c (myattach): Likewise.
14524 * gdbserver/low-nbsd.c (myattach): Likewise.
14525 * gdbserver/low-sim.c (myattach): Likewise.
14526 * gdbserver/low-sparc.c (myattach): Likewise.
14527 * gdbserver/low-sun3.c (myattach): Likewise.
14529 * gdbserver/low-linux.c (myattach): New function.
14531 * gdbserver/server.c (attach_inferior): New function.
14532 (main): Handle "--attach".
14534 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14536 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14539 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14541 * c-typeprint.c (is_type_conversion_operator): Add additional
14542 check for non-conversion operators.
14544 2002-01-15 Michael Snyder <msnyder@redhat.com>
14546 * linux-proc.c: Add "info proc" command, a la procfs.c.
14547 (read_mapping): New function, abstract and re-use code.
14548 (linux_find_memory_regions): Use new func read_mapping.
14549 (linux_info_proc_cmd): New function, implement "info proc".
14550 (_initialize_linux_proc): Add new command "info proc".
14552 2002-01-15 Michael Snyder <msnyder@redhat.com>
14554 * symfile.c (generic_load): Use bfd_map_over_sections method
14555 instead of manipulating bfd structure members directly.
14556 (add_section_size_callback): New function, bfd sections callback
14557 used by generic_load.
14558 (load_sections_callback): New function, bfd sections callback
14559 used by generic_load.
14561 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14563 [Based on work by Jim Blandy]
14564 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14565 (builtin_type_vec128): Export.
14566 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14568 (builtin_type_vec128): New builtin type for 128 bit vector
14570 (build_gdbtypes): Initialize builtin_type_v16qi and
14571 builtin_type_v8hi. Create the vec128 register builtin type
14573 (build_builtin_type_vec128): New function.
14574 (_initialize_gdbtypes): Register builtin_type_v16qi and
14575 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14576 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14577 AltiVec register to new builtin type.
14579 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14581 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14584 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14586 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14587 CLEAN_UP_REGISTER_VALUE.
14588 * regcache.c (supply_register): Update only call.
14590 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14592 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14593 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14594 a29k-*-vxworks* targets as obsolete.
14596 2002-01-14 Michael Snyder <msnyder@redhat.com>
14598 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14599 until we can resolve portability issues.
14600 * gregset.h: Remove references to fpxregs.
14601 * gcore.c (gcore_command): Initialize note_sec to NULL.
14603 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14605 * signals.c (target_signal_to_name): Rewrite. Only use
14606 signals[].name when in bounds and non-NULL.
14608 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14610 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14611 * signals.c (target_signal_to_name): Verify that SIG is within the
14612 bounds of the signals array.
14614 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14616 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14618 2002-01-13 Keith Seitz <keiths@redhat.com>
14620 * stack.c (print_frame_info_base): Print the frame's pc
14621 only if when print_frame_info_listing_hook is not defined.
14623 2002-01-13 Keith Seitz <keiths@redhat.com>
14625 * varobj.c (varobj_set_value): Make sure that there were no
14626 errors evaluating the object before attempting to set its
14628 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14629 so this offset adjustment is no longer necessary.
14630 (create_child): Don't set the error flag if the child is
14631 a CPLUS_FAKE_CHILD.
14632 (value_of_child): If value_fetch_lazy fails, return NULL
14633 so that callers will be notified that an error occurred.
14634 (c_value_of_variable): Delay check of variable's validity
14635 until later. We actually want all structs and unions to have
14637 Do not return "???" for variables which could not be evaluated.
14638 This error condition must be returned to the caller so that it
14639 can get the error condition from gdb.
14640 (cplus_name_of_child): Adjust index for vptr before figuring
14641 out the name of the child.
14642 (cplus_value_of_child): If a child's (real) parent is not valid,
14643 don't even bother trying to give a value for it. Just return
14644 an error. Change all instances in this function.
14645 (cplus_type_of_child): If our parent is one of the "fake"
14646 parents, we need to get at the type of the real parent, and
14647 derive the child's true type using this information.
14649 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14651 From 2002-01-09 John Marshall <johnm@falch.net>:
14652 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14653 sources.redhat.com, and tweak some related URLs which had
14654 suffered from linkrot.
14656 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14659 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14660 structures passed in registers.
14662 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14664 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14665 white space which prevented compilation. Reported by DSK
14666 <dsk@student.unsw.edu.au>.
14668 2002-01-11 Michael Snyder <msnyder@redhat.com>
14670 * symfile.c (build_section_addr_info_from_section_tab):
14671 Use bfd access method instead of manipulating bfd directly.
14672 (syms_from_objfile): Ditto.
14673 (simple_overlay_update_1): Ditto.
14674 (simple_overlay_update): Ditto.
14675 (generic_load): Ditto.
14676 (overlay_unmapped_address): FIXME comment, bfd access methods.
14677 (sections_overlap): FIXME comment, bfd access methods.
14678 (pc_in_mapped_range): FIXME comment, bfd access methods.
14679 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14680 (section_is_mapped): FIXME comment, bfd access methods.
14681 (section_is_overlay): FIXME comment, bfd access methods.
14683 * symfile.c (generic_load): Whitespace and long line cleanups.
14684 Remove duplicate variable, change several local variables to
14685 more appropriate data types.
14686 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14688 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14690 From Peter Schauer:
14691 * language.c (longest_local_hex_string_custom): Use phex_nz to
14692 convert NUM to a hex string.
14694 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14696 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14698 Update Copyright year.
14700 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14702 * language.c (longest_raw_hex_string): Delete unused function.
14704 2002-01-11 Petr Sorfa <petrs@caldera.com>
14706 * MAINTAINERS (write-after-approval): Add myself.
14707 * dwarf2read.c (read_tag_string_type): Handling of
14709 (read_tag_string_type): FORTRAN fix to prevent propagation of
14711 (set_cu_language): Handling of DW_LANG_Fortran95
14713 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14715 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14716 GETPID(inferior_ptid).
14717 (store_inferior_registers): Likewise.
14719 2002-01-10 Jason Merrill <jason@redhat.com>
14721 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14724 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14726 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14727 and bfd/elf32-sh-nbsd.c.
14729 2002-01-10 Michael Snyder <msnyder@redhat.com>
14731 * NEWS: Mention --pid and corefile/proc-id behavior change.
14733 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14734 * gcore.c: Include cli/cli-decode.h instead of command.h.
14736 * main.c (captured_main): Add new command line option "--pid".
14737 If the second command line argument (following the symbol-file)
14738 begins with a digit, try to attach to it before trying to open
14740 (print_gdb_help): Document the "--pid" argument.
14742 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14744 * completer.c (command_completer): New function.
14746 * completer.h <command_completer>: Add prototype.
14748 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14749 completer for the "help" command.
14751 2002-01-09 Jason Merrill <jason@redhat.com>
14753 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14755 2002-01-09 Michael Snyder <msnyder@redhat.com>
14757 * i386-linux-nat.c (fill_fpxregset): Make global.
14758 (store_fpxregset): Ditto.
14760 * gregset.h (gdb_fpxregset_t): Define.
14761 (supply_fpxregset): Prototype.
14762 (fill_fpxregset): Prototype.
14764 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14766 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14768 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14769 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14770 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14772 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14774 * MAINTAINERS: Update target maintainer rules so that any
14775 Maintainer can approve a tested patch for a maintenance-only
14778 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14780 * MAINTAINERS (write-after-approval): Add myself.
14782 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14785 2002-01-08 Michael Snyder <msnyder@redhat.com>
14787 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14788 real name of the executable, rather than the /proc name.
14790 2002-01-03 Michael Snyder <msnyder@redhat.com>
14792 Implement a "generate-core-file" command in gdb, save target state.
14793 * gcore.c: New file. Implement new command 'generate-core-file'.
14794 Save a corefile image of the current state of the inferior.
14795 * linux-proc.c: Add linux-specific code for saving corefiles.
14796 * target.h (struct target_ops): Add new target vectors for saving
14797 corefiles; to_find_memory_regions and to_make_corefile_notes.
14798 (target_find_memory_regions): New macro.
14799 (target_make_corefile_notes): New macro.
14800 * target.c (update_current_target): Inherit new target methods.
14801 (dummy_find_memory_regions): New place-holder method.
14802 (dummy_make_corefile_notes): New place-holder method.
14803 (init_dummy_target): Initialize new dummy target vectors.
14804 * exec.c (exec_set_find_memory_regions): New function.
14805 Allow the exec_ops vector for memory regions to be taken over.
14806 (exec_make_note_section): New function, target vector method.
14807 * defs.h (exec_set_find_memory_regions): Export prototype.
14808 * procfs.c (proc_find_memory_regions): New function, corefile method.
14809 (procfs_make_note_section): New function, corefile method.
14810 (init_procfs_ops): Set new target vector pointers.
14811 (find_memory_regions_callback): New function.
14812 (procfs_do_thread_registers): New function.
14813 (procfs_corefile_thread_callback): New function.
14814 * sol-thread.c (sol_find_memory_regions): New function.
14815 (sol_make_note_section): New function.
14816 (init_sol_thread_ops): Initialize new target vectors.
14817 * inftarg.c (inftarg_set_find_memory_regions): New function.
14818 Allow to_find_memory_regions vector to be taken over.
14819 (inftarg_set_make_corefile_notes): New function.
14820 Allow to_make_corefile_notes vector to be taken over.
14821 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14822 interface layer if not target_has_execution (may be a corefile).
14823 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14824 * config/sparc/sun4sol2.mh: Ditto.
14825 * config/alpha/alpha-linux.mh: Ditto.
14826 * config/arm/linux.mh: Ditto.
14827 * config/i386/x86-64linux.mh: Ditto.
14828 * config/ia64/linux.mh: Ditto.
14829 * config/m68k/linux.mh: Ditto.
14830 * config/mips/linux.mh: Ditto.
14831 * config/powerpc/linux.mh: Ditto.
14832 * config/sparc/linux.mh: Ditto.
14834 2002-01-07 Michael Snyder <msnyder@redhat.com>
14836 * arm-linux-nat.c: Remove references to regcache.c internal data
14837 (registers[] and register_valid[]).
14839 2002-01-07 Michael Snyder <msnyder@redhat.com>
14841 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14842 so that attaching to a pid will automatically read the process's
14843 symbol file and shlibs.
14844 * Makefile.in: Add rule for linux-proc.o.
14845 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14846 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14847 * config/arm/linux.mh: Ditto.
14848 * config/i386/linux.mh: Ditto.
14849 * config/i386/x86-64linux.mh: Ditto.
14850 * config/ia64/linux.mh: Ditto.
14851 * config/m68k/linux.mh: Ditto.
14852 * config/mips/linux.mh: Ditto.
14853 * config/powerpc/linux.mh: Ditto.
14854 * config/sparc/linux.mh: Ditto.
14856 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14858 * win32-nat.c: Add i386-tdep.h dependency.
14860 2002-01-07 Michael Snyder <msnyder@redhat.com>
14862 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14863 instead of bfd_get_arch_size. Don't bail out just because
14864 there's no exec_bfd.
14866 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14867 * p-valprint.c (pascal_object_print_value): Ditto.
14868 * somread.c (som_symtab_read): Ditto.
14869 * symfile.c (simple_free_overlay_region_table): Ditto.
14870 * valops.c (value_assign): Ditto.
14872 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14873 use tilde_expand and strerror for opening save-tracepoints file.
14875 * thread-db.c (thread_db_new_objfile): Indendation fix.
14877 * infptrace.c (GDB_MAX_ALLOCA): New define.
14878 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14879 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14880 can be overridden with whatever value is appropriate to the host).
14881 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14882 alloca to allocate potentially large buffer.
14883 * rs6000-nat.c (child_xfer_memory): Ditto.
14884 * symm-nat.c (child_xfer_memory): Ditto.
14885 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14887 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14889 From Nick Clifton <nickc@redhat.com>
14890 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14892 2002-01-07 Michael Snyder <msnyder@redhat.com>
14894 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14895 Don't use exec_bfd if it's NULL.
14897 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14899 * valops.c (value_arg_coerce): Fix formatting.
14901 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14903 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14904 * gnu-nat.c: Ditto.
14906 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14908 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14909 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14910 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14911 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14912 z8k-coff have not been multi-arched. Update z8k-coff build
14915 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14917 * MAINTAINERS: Mark a29k target as obsolete.
14918 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14919 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14921 * NEWS: Note that a29k targets are obsolete.
14922 * a29k-tdep.c: Mark as obsolete.
14923 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14924 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14925 a29k-*-vxworks* targets as obsolete.
14926 * remote-adapt.c: Obsolete.
14927 * remote-eb.c: Obsolete.
14928 * remote-mm.c: Obsolete.
14929 * remote-udi.c: Obsolete.
14930 * config/a29k/a29k-udi.mt: Obsolete.
14931 * config/a29k/a29k.mt: Obsolete.
14932 * config/a29k/tm-a29k.h: Obsolete.
14933 * config/a29k/tm-vx29k.h: Obsolete.
14934 * config/a29k/vx29k.mt: Obsolete.
14936 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14938 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14939 with BFD_ENDIAN_BIG.
14941 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14943 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14944 * configure, config.in: Re-generate.
14945 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14946 * defs.h: Do not include <endian.h>.
14948 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14950 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14951 * config.in: Regenerate.
14952 * configure.in: Update copyright years.
14953 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14954 * configure: Regenerate.
14955 * i386bsd-nat.c: Update copyright years.
14956 (fill_gregset): Use regcache_collect.
14957 (fetch_inferior_registers): Only fetch integer registers
14958 if requested to do so. Add support for XMM registers
14959 using PT_GETXMMREGS.
14960 (store_inferior_registers): Only store integer registers
14961 if requested to do so. Add support for XMM registers
14962 using PT_SETXMMREGS.
14963 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14964 (store_inferior_registers): Remove.
14965 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14966 (fetch_elfcore_registers): New function.
14967 (i386nbsd_elfcore_fns): New.
14968 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14969 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14971 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14972 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14973 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14974 * config/i386/tm-nbsd.h: Update copyright years.
14975 (HAVE_SSE_REGS): Define.
14976 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14977 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14978 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14979 (SIGCONTEXT_PC_OFFSET): Remove.
14980 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14982 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14984 * configure.tgt: Remove powerpc-*-macos* target.
14985 * config/m68k/xm-mpw.h: Delete file.
14986 * config/xm-mpw.h: Delete file.
14987 * ser-mac.c: Delete file.
14988 * mpw-make.sed: Delete file.
14989 * mpw-config.in: Delete file.
14990 * mac-xdep.c: Delete file.
14991 * mac-gdb.r: Delete file.
14992 * mac-defs.h: Delete file.
14993 * mac-nat.c: Delete file.
14994 * config/powerpc/macos.mh: Delete file.
14995 * config/powerpc/macos.mt: Delete file.
14996 * config/powerpc/nm-macos.h: Delete file.
14997 * config/powerpc/tm-macos.h: Delete file.
14998 * source.c (openp, open_source_file): Remove obsolete code.
14999 * top.c (gdb_readline): Ditto.
15000 * utils.c (query): Ditto.
15001 * event-top.c (display_gdb_prompt): Ditto.
15002 * Makefile.in (ser-mac.o): Delete obsolete target.
15005 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15007 * defs.h (BIG_ENDIAN): Delete macro definition.
15008 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15009 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15010 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15011 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15012 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15013 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15014 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15015 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15016 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15017 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15018 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15019 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15020 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15021 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15022 * gdbarch.c: Re-generate.
15024 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15026 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15029 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15031 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15033 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15035 * value.h (value_ptr): Delete typedef.
15037 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15039 * i386nbsd-nat.c: Update copyright years.
15040 Include i386-tdep.h.
15042 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15044 * stabsread.c: Update copyright years.
15046 From Debashis Mahata <debashis.mahata@wipro.com>:
15047 (read_struct_fields): Deal with Sun C compiler erroneous stab
15048 output for structs and unions.
15051 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15053 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15056 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15058 * cp-abi.c: Fix whitespace.
15059 (baseclass_offset): New wrapper function.
15060 * cp-abi.h (baseclass_offset): Add prototype.
15061 (struct cp_abi_ops): Add baseclass_offset pointer.
15063 * valops.c (vb_match): Move to...
15064 * gnu-v2-abi.c (vb_match): here.
15065 * valops.c (baseclass_offset): Move to...
15066 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15068 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15070 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15071 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15072 * hpacc-abi.c (init_hpacc_ops): Likewise.
15074 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15076 * valops.c (find_overload_match): Accept obj as a
15077 reference parameter. Update it before returning.
15078 * value.h (find_overload_match): Update prototype.
15079 * eval.c (evaluate_subexp_standard): Pass object to
15080 find_overload_match by reference.
15082 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15084 * valarith.c: Replace value_ptr with struct value pointer. Remove
15085 register attribute from value declarations.
15088 * scm-lang.c (scm_lookup_name): Ditto.
15090 2002-01-03 Michael Snyder <msnyder@redhat.com>
15092 Abstract the functionality of iterating over mapped memory
15093 regions into a general purpose iterator function.
15094 * procfs.c (iterate_over_mappings): New function, general purpose
15095 iterator for memory sections.
15096 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15097 (solib_mappings_callback): New function, callback for above.
15098 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15099 (info_mappings_callback): New function, callback for above.
15101 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15103 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15105 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15106 * i386-tdep.c: Include "elf-bfd.h".
15107 (process_note_abi_tag_sections): New function.
15108 (i386_gdbarch_init): Add code to recognize various OS/ABI
15111 * maint.c (_initialize_maint_cmds): Add missing \ in
15114 For older changes see ChangeLog-2001
15120 version-control: never