1 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Remove UI_OUT configuration code.
4 * ada-lang.c: Update assuming UI_OUT is always true.
5 * Makefile.in (UIOUT_CFLAGS): Remove.
6 * configure: Regenerated.
7 * TODO: Remove blurb about elimination of -DUI_OUT.
9 * configure.in: Move code that provides the --enable-gdbcli,
10 --enable-gdbmi options right before the code that handles the
11 --enable-tui option. Polish a bit.
12 * configure: Regenerated.
14 * configure.in: Rewrite check for GNU regex and the
15 --without-included regex option, and move it into the "Checks for
16 library functions" section. This makes us use the system regex
17 again by default on systems with version 2 of the GNU C library.
18 This was apparently broken.
19 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
20 * acconfig.h (USE_INCLUDED_REGEX): Remove.
21 * config.in, configure: Regenerated.
23 * configure.in: Move code that provides the --enable-tui option
24 before the "Checks for libraries" section. Polish the code
25 somewhat and set need_curses to yes if we build the TUI. Rewrite
26 code that looks for a library providing termcap functionality to
27 match more closely what's done in the Readline library, and move
28 it into to the "Checks for libraries" section.
29 * configure: Regenerated.
30 * Makefile.in (TERMCAP): Remove variable.
31 * config/i386/go32.mh (TERMCAP): Remove variable.
33 2003-01-02 Andrew Cagney <ac131313@redhat.com>
35 * MAINTAINERS: Mention gdb_mbuild.sh.
36 * gdb_mbuild.sh: Rewrite.
38 2003-01-02 Mark Kettenis <kettenis@gnu.org>
40 * configure.in: Fix typo in last change.
41 * config.in, configure: Regenerated.
43 2003-01-02 Andrew Cagney <ac131313@redhat.com>
45 * valarith.c (value_binop): Delete obsolete code and comments.
46 * configure.host: Ditto.
47 * buildsym.h (make_blockvector): Ditto.
48 * buildsym.c (make_blockvector): Ditto.
49 * defs.h (enum language): Ditto.
50 (chill_demangle): Ditto.
51 * elfread.c (elf_symtab_read): Ditto.
52 * dwarfread.c (CHILL_PRODUCER): Ditto.
53 (set_cu_language): Ditto.
54 (handle_producer): Ditto.
55 * expprint.c (print_subexp): Ditto.
56 * gdbtypes.c (chill_varying_type): Ditto.
57 * gdbtypes.h (builtin_type_chill_bool): Ditto.
58 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
59 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
60 (chill_varying_type): Ditto.
61 * language.h (_LANG_chill): Ditto.
62 * language.c (binop_result_type, integral_type): Ditto.
63 (character_type, string_type, structured_type): Ditto.
64 (lang_bool_type, binop_type_check): Ditto.
65 * stabsread.h (os9k_stabs): Ditto.
66 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
67 (define_symbol, read_type, read_struct_fields): Ditto.
68 (read_array_type, read_enum_type, read_huge_number): Ditto.
69 (read_range_type, start_stabs): Ditto.
70 * symfile.c (init_filename_language_table): Ditto.
71 (add_psymbol_with_dem_name_to_list): Ditto.
72 * symtab.c (symbol_init_language_specific): Ditto.
73 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
74 * symtab.h (struct general_symbol_info): Ditto.
75 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
76 * typeprint.c (typedef_print): Ditto.
77 * utils.c (fprintf_symbol_filtered): Ditto.
78 * valops.c (value_cast, search_struct_field, value_slice): Delete
80 (varying_to_slice): Delete function.
81 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
82 (varying_to_slice): Delete declaration.
83 * MAINTAINERS: Update.
85 2003-01-02 Mark Kettenis <kettenis@gnu.org>
87 * configure.in: Reorganize "Checks for library functions section"
88 a bit. Remove check for `btowc' and `isascii' functions.
89 * configure: Regenerated.
91 * acconfig.h (_MSE_INT_H): Remove.
92 * configure.in: Create "Checks for header files" section, and move
93 appropriate tests there. Don't check for objlist.h, wchar.h,
94 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
95 misdetection fix. Also add "Checks for types", "Checks for
96 compiler characteristics" and "Checks for library functions"
98 * config.in, configure: Regenerated.
100 * configure.in: Create "Checks for programs" section, and move
101 appropriate tests there.
103 2003-01-01 Mark Kettenis <kettenis@gnu.org>
105 * configure.in: Create "Checks for libraries" section, and move
106 appropriate tests there. Cleanup check for wctype in libw. Use
107 AC_SEARCH_LIBS to see whether we need libsocket.
108 * configure: Regenerated.
110 2002-12-31 Mark Kettenis <kettenis@gnu.org>
112 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
113 * config.in, configure: Regenerated.
115 2002-12-31 Mark Kettenis <kettenis@gnu.org>
117 * gdb_dirent.h: Cleanup and update code to match the example in
119 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
120 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
121 * configure: Regenerated.
123 2002-12-30 Adam Fedor <fedor@gnu.org>
125 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
126 (yylex): Initialize c to avoid uninitialized warning.
128 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
130 * doc/fdl.texi: Revert the last change.
132 2002-12-29 Mark Kettenis <kettenis@gnu.org>
134 * tracepoint.c (ISATTY): Removed.
136 2002-12-26 J. Brobecker <brobecker@gnat.com>
138 Continuing work to convert the hppa targets to multiarch partil.
140 * hppa-tdep.c: Add some missing forward declarations.
141 (frameless_function_invocation): Prefix the function name
142 by "hppa_" to avoid polluting the namespace. Update all calls
143 to use the new function name.
144 (saved_pc_after_call): Ditto.
145 (init_extra_frame_info): Ditto.
146 (frame_chain): Ditto.
147 (push_dummy_frame): Ditto.
148 (target_read_pc): Ditto.
149 (target_write_pc): Ditto.
150 (in_solib_call_trampoline): Ditto.
151 (in_solib_return_trampoline): Ditto.
152 (skip_trampoline_code): Ditto.
153 (hppa_read_fp): New function, renamed from target_read_fp.
154 (hppa_target_read_fp): New function, using hppa_read_fp.
155 This function conforms to the function profile for the
156 READ_FP gdbarch method.
157 (hppa_extract_struct_value_address): New function, extracted
158 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
160 (hppa_frame_num_args): New function.
161 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
163 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
164 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
165 for the switch to multiarch partial.
166 Update some of the macros definitions to match some changes
167 described above in the name of the function they are calling.
168 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
169 not be straightforward to convert. Do now wrap it inside
170 "#if !... #endif" to remember that this macro has still not
172 (FIX_CALL_DUMMY): Likewise.
174 2002-12-26 J. Brobecker <brobecker@gnat.com>
176 Continuing work to convert the hppa targets to multiarch partial.
178 * hppa-tdep.c (hppa_register_raw_size): New function replacing
179 the body of macro REGISTER_RAW_SIZE.
180 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
181 config/pa/tm-hppah.h. These functions will be used to initialize
182 the gdbarch structure.
183 (hppa_hpux_pc_in_sigtramp): New function.
184 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
185 (hppa_hpux_frame_base_before_sigtramp): New function.
186 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
187 Add gdbcore.h #include.
188 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
189 of this gdbarch-eligible macro to a call to the new associated
191 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
192 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
193 into a call to the new associated function.
194 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
195 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
196 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
198 2002-12-24 David Carlton <carlton@math.stanford.edu>
200 * config/sparc/tm-sparc.h: Delete duplicate definition of
201 DEPRECATED_PC_IN_CALL_DUMMY.
203 2002-12-24 Kevin Buettner <kevinb@redhat.com>
205 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
207 * configure.tgt: Recognize mips64*-*-linux*.
208 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
209 (supply_32_bit_reg): New function.
210 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
211 (fill_gregset): Use regcache_collect() instead of
212 deprecated_registers[].
213 (register_addr): Change name to mips_linux_register_addr().
214 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
215 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
216 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
217 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
218 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
219 (MIPS64_LINUX_JB_PC): New defines.
220 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
221 (mips64_elf_fpregset_t): New typedefs.
222 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
223 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
224 (mips64_linux_register_addr, set_mips_linux_register_addr)
225 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
226 (init_register_addr_data)
228 (fetch_core_registers): Add support for core file formats with 64-bit
230 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
231 (register_addr_data): New static global variable.
232 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
233 gdbarch_register_osabi() for each MIPS machine.
234 * config/mips/linux64.mt: New file.
235 * config/mips/tm-linux64.h: New file.
237 2002-12-23 Adam Fedor <fedor@gnu.org>
239 * maint.c (maintenance_demangle): Add switch to demangle
240 ObjC language symbols as well.
242 2002-12-23 Adam Fedor <fedor@gnu.org>
244 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
245 last argument from complaint function call.
247 2002-12-23 Kevin Buettner <kevinb@redhat.com>
249 * exec.c (print_section_info): Add FIXME comments regarding format
252 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
254 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
255 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
257 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
259 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
261 2002-12-23 David Carlton <carlton@math.stanford.edu>
263 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
264 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
265 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
266 information associated to a minsym, not lookup_symbol.
268 2002-12-21 Mark Kettenis <kettenis@gnu.org>
270 * x86-64-tdep.h (x86_64_init_abi): New prototype.
271 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
272 (x86_64_init_abi): Make non-static. Set number of pseudo
274 (x86_64_gdbarch_init): Remove function.
275 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
276 Remove code dealing with dissambly.
277 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
278 (_initialize_x86_64_linux_tdep): New function.
279 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
282 2002-12-14 Mark Kettenis <kettenis@gnu.org>
284 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
285 (struct gdb_osabi_handler): Remove member `arch'. Add member
287 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
288 construct a `struct bfd_arch_info' and store it in the `struct
289 gdb_osabi_handler' that is created.
290 (gdbarch_init_osabi): Check for compatibility based on machine
291 type and architecture.
292 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
294 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
295 second argument in call to gdbarch_register_osabi.
296 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
297 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
298 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
299 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
300 * arm-tdep.c (_initialize_arm_tdep): Likewise.
301 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
302 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
303 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
304 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
305 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
306 * i386-tdep.c (_initialize_i386_tdep): Likewise.
307 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
308 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
309 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
310 _initialize_i386bsd_tdep and updated likewise.
311 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
312 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
313 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
314 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
315 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
316 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
317 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
318 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
319 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
320 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
322 2002-12-20 Kevin Buettner <kevinb@redhat.com>
324 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
325 DT_MIPS_RLD_MAP case for 64-bit targets.
327 2002-12-20 Kevin Buettner <kevinb@redhat.com>
329 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
330 ``temp_saved_regs'', not the pointer or other storage contiguous
333 2002-12-20 Kevin Buettner <kevinb@redhat.com>
335 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
336 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
337 (mips_linux_get_longjmp_target): Delete declarations.
338 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
339 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
340 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
341 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
342 (mips_linux_get_longjmp_target)
343 (mips_linux_svr4_fetch_link_map_offsets): Make static.
344 (mips_linux_init_abi): New function.
345 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
347 2002-12-19 Keith Seitz <keiths@redhat.com>
349 patch committed by Elena Zannoni <ezannoni@redhat.com>
350 * thread.c (do_captured_list_thread_ids): Call prune_threads and
351 target_find_new_threads. Fix for PR mi/669.
353 2002-12-19 David Carlton <carlton@math.stanford.edu>
355 * linespec.c (decode_line_1): Move code into decode_all_digits.
356 (decode_all_digits): New function.
358 2002-12-19 Kevin Buettner <kevinb@redhat.com>
360 * exec.c (print_section_info): Select a format string to use with
361 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
363 2002-12-18 Andrew Cagney <ac131313@redhat.com>
365 * frame.c (deprecated_update_current_frame_pc_hack): Replace
366 deprecated_update_current_frame_pc_hack.
367 (deprecated_update_frame_base_hack): New function.
368 * frame.h (deprecated_update_frame_pc_hack): Replace
369 (deprecated_update_frame_base_hack): Declare.
370 * infrun.c (normal_stop): Update.
372 2002-12-18 Andrew Cagney <ac131313@redhat.com>
374 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
375 frame_extra_info_zalloc.
376 (rs6000_frame_args_address): Use get_frame_extra_info.
377 (frame_get_saved_regs): Use get_frame_saved_regs.
378 (frame_initial_stack_address): Use get_frame_saved_regs and
379 get_frame_extra_info.
380 (frame_initial_stack_address): Use get_frame_extra_info.
382 2002-12-17 Kevin Buettner <kevinb@redhat.com>
384 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
386 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
387 checks for r3900_regnames[].
389 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
391 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
393 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
395 2002-12-17 David Carlton <carlton@math.stanford.edu>
397 * symtab.c (lookup_partial_symbol): Don't search past the end of
400 2002-12-17 Andrew Cagney <ac131313@redhat.com>
402 * stack.c (frame_info): Use get_frame_saved_regs.
403 * breakpoint.c (until_break_command): Use get_frame_pc.
405 2002-12-16 Kevin Buettner <kevinb@redhat.com>
407 * buildsym.c (block_end_complaint, anon_block_end_complaint)
408 (innerblock_complaint, innerblock_anon_complaint)
409 (blockvector_complaint): Delete deprecated complaint structs.
410 (finish_block, make_blockvector, end_symtab): Replace calls
411 to complain() with calls to complaint().
412 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
413 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
414 (unexpected_type_complaint, bad_sclass_complaint)
415 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
416 Delete deprecated complaint structs.
417 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
418 Replace calls to complain() with calls to complaint().
419 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
420 (unknown_symtype_complaint, unknown_symchar_complaint)
421 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
422 (lbrac_mismatch_complaint, repeated_header_complaint)
423 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
424 Delete deprecated complaint structs.
425 (unknown_symtype_complaint, lbrac_mismatch_complaint)
426 (repeated_header_complaint)
427 (function_outside_compiliation_unit_complaint): New functions.
428 (add_old_header_file, find_corresponding_bincl_psymtab)
429 (set_namestring, find_stab_function_addr, read_dbx_symtab)
430 (process_one_symbol): Replace calls to complain() with, possibly
431 indirect, calls to complaint().
432 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
433 (unknown_attribute_form, unknown_attribute_length)
434 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
435 (const_ignored, botched_modified_type, op_deref2, op_deref4)
436 (basereg_not_handled, dup_user_type_allocation)
437 (dup_user_type_definition, missing_tag, bad_array_element_type)
438 (subscript_data_items, unhandled_array_subscript_format)
439 (unknown_array_subscript_format, not_row_major)
440 (missing_at_name): Delete deprecated complaint structs.
441 (bad_die_ref_complaint, unknown_attribute_form_complaint)
442 (dup_user_type_definition_complaint)
443 (bad_array_element_type_complaint): New functions.
444 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
445 (decode_subscript_data_item, dwarf_read_array_type)
446 (read_tag_string_type, read_subroutine_type, read_func_scope)
447 (locval, scan_partial_symbols, decode_modified_type)
448 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
449 (attribute_size): Replace calls to complain() with, possibly
450 indirect, calls to complaint().
451 * elfread.c (section_info_complaint, section_info_dup_complaint)
452 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
453 Delete deprecated complaint structs.
454 (elf_symtab_read, elfstab_offset_sections): Replace calls to
455 complain() with calls to complaint().
456 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
458 (stub_noname_complaint): New function.
459 (check_typedef, add_mangled_type): Replace calls to complain()
460 with calls to complaint().
461 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
462 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
463 (hpread_unhandled_type_complaint, hpread_struct_complaint)
464 (hpread_array_complaint, hpread_type_lookup_complaint)
465 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
466 (hpread_unhandled_common_complaint)
467 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
468 struct definitions and declarations.
469 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
470 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
471 Replace calls to complain() with, possibly indirect, calls to
473 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
475 * mdebugread.c (bad_file_number_complaint, index_complaint)
476 (aux_index_complaint, block_index_complaint)
477 (unknown_ext_complaint, unknown_sym_complaint)
478 (unknown_st_complaint, block_overflow_complaint)
479 (basic_type_complaint, unknown_type_qual_complaint)
480 (array_index_type_complaint, bad_tag_guess_complaint)
481 (block_member_complaint, stEnd_complaint)
482 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
483 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
484 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
485 (bad_continued_complaint, bad_rfd_entry_complaint)
486 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
487 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
488 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
489 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
491 (index_complaint, unknown_ext_complaint, basic_type_complaint)
492 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
493 (unexpected_type_code_complaint)
494 (function_outside_compilation_unit_complaint): New functions.
495 (parse_symbol, parse_type, upgrade_type, parse_procedure)
496 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
497 Replace calls to complain() with, possibly indirect calls to
499 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
500 Delete deprecated complaint structs.
501 (lookup__objc_class, lookup_child_selector): Replace complain()
503 * remote-vx.c (cant_contact_target): Delete deprecated complaint
505 (vx_lookup_symbol): Replace complain() with complaint().
506 * stabsread.c (invalid_cpp_abbrev_complaint)
507 (invalid_cpp_type_complaint, member_fn_complaint)
508 (const_vol_complaint, error_type_complaint)
509 (invalid_member_complaint, range_type_base_complaint)
510 (reg_value_complaint, vtbl_notfound_complaint)
511 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
512 (unresolved_sym_chain_complaint, stabs_general_complaint)
513 (lrs_general_complaint, multiply_defined_struct): Delete
514 deprecated complaint structs.
515 (invalid_cpp_abbrev_complaint, ref_value_complaint)
516 (stabs_general_complaint, lrs_general_complaint)
517 (msg_unknown_complaint): New functions.
518 (dbx_lookup_type, read_cfront_baseclasses)
519 (read_cfront_member_functions, resolve_symbol_reference)
520 (define_symbol, resolve_live_range, add_live_range, read_type)
521 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
522 (read_one_struct_field, read_baseclasses, read_tilde_fields)
523 (read_cfront_static_fields, attach_fields_to_type)
524 (complain_about_struct_wipeout, read_range_type)
525 (common_block_start, common_block_end, cleanup_undefined_types)
526 (scan_file_globals): Replace complain() with complaint().
527 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
528 Delete deprecated complaint struct declarations.
529 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
530 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
531 (bf_not_found_complaint, ef_complaint, eb_complaint)
532 (function_outside_compilation_unit_complaint): New functions.
533 (record_include_begin, record_include_end, enter_line_range)
534 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
535 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
536 complain() with complaint().
538 2002-12-16 Andrew Cagney <ac131313@redhat.com>
540 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
541 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
542 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
543 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
544 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
545 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
546 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
547 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
548 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
549 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
550 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
551 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
552 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
553 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
554 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
555 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
556 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
557 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
558 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
559 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
560 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
561 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
562 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
563 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
564 * config/m88k/xm-dgux.h: Delete.
565 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
566 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
567 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
568 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
569 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
570 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
571 * ch-valprint.c: Delete.
573 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
575 * infrun.c (handle_inferior_event): Rearrange code to resume if
576 no catchpoint triggers for an event.
578 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
580 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
581 and TARGET_WAITKIND_VFORKED cases.
583 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
585 * infrun.c (handle_inferior_event): Assume that catchpoints
586 are not affected by DECR_PC_AFTER_BREAK.
588 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
590 * target.c (update_current_target): Don't inherit DONT_USE.
591 * target.h (struct target_ops): Remove DONT_USE.
592 (target_next): Remove macro.
594 2002-12-15 Mark Kettenis <kettenis@gnu.org>
596 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
598 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
600 * arm-tdep.c (convert_from_extended): New argument to hold the
601 type of floating point result we want to convert to. Make input
602 argument const. Fix all callers.
603 (convert_to_extended): Similarly.
604 (arm_extract_return_value): Now takes a regcache argument. Change
605 code to use regcache accessor functions. Correctly extract
606 smaller-than-word results on big-endian machines.
607 (arm_store_return_value): Now takes a regcache argument. Change
608 code to use regcache accessor functions. Correctly zero/sign extend
609 smaller than word results before storing into r0.
610 (arm_gdbarch_init): Register new-style extract_return_value and
611 store_return_value functions.
613 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
615 * thread-db.c (thread_from_lwp): Uniquify error msg.
616 (lwp_from_thread): Ditto.
617 (check_event): Ditto.
618 (find_new_threads_callback): Ditto.
619 (thread_db_pid_to_str): Ditto.
621 2002-12-13 Andrew Cagney <ac131313@redhat.com>
623 * frame.h (get_frame_saved_regs): Declare.
624 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
626 * frame.c (get_frame_saved_regs): New function.
627 (frame_saved_regs_zalloc): Return the allocated saved_regs.
629 2002-12-13 Andrew Cagney <ac131313@redhat.com>
631 * frame.c (deprecated_update_current_frame_pc_hack): New
633 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
634 * infrun.c (normal_stop): Use said function instead of directly
635 modifying the frame's PC.
637 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
639 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
641 2002-12-13 Kevin Buettner <kevinb@redhat.com>
643 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
644 config/mips/tm-irix6.h (NUM_REGS): Delete.
645 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
646 (temp_saved_regs): Declare as a pointer rather than an array.
647 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
648 that ``temp_saved_regs'' has storage allocated to it and that
649 it's the correct size.
651 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
653 * defs.h (init_last_source_visited): New prototype.
655 * source.c (add_path): New function that adds to a specified path.
656 (mod_path): Change to call add_path.
657 (init_last_source_visited): New function to allow interfaces to
658 initialize static variable: last_source_visited. Part of fix
660 * Makefile.in: Add support for mi/mi-cmd-env.c.
662 2002-12-13 Andrew Cagney <ac131313@redhat.com>
664 * frame.h (frame_id_unwind): Declare.
665 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
667 (frame_id_unwind_ftype): Declare.
668 * frame.c (frame_id_unwind): New function.
669 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
670 (create_new_frame, get_prev_frame): Pass id_unwind to
672 (frame_saved_regs_id_unwind): New function.
673 (frame_saved_regs_id_unwind): New function.
674 * dummy-frame.c (dummy_frame_id_unwind): New function.
675 (struct dummy_frame): Add field id.
676 (generic_push_dummy_frame): Initialize `id'.
677 * dummy-frame.h (dummy_frame_id_unwind): Declare.
679 2002-12-13 Andrew Cagney <ac131313@redhat.com>
681 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
682 pass that to set_momentary_breakpoint. Move comments to where they
684 * frame.h (set_current_frame): Delete declaration.
685 * frame.c (set_current_frame): Delete function.
687 2002-12-13 Andrew Cagney <ac131313@redhat.com>
689 * frame.c (frame_extra_info_zalloc): New function.
690 * frame.h (frame_extra_info_zalloc): Declare.
692 2002-12-13 Joel Brobecker <brobecker@gnat.com>
694 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
695 in the previous prototype change to set_momentary_breakpoint.
697 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
699 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
701 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
702 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
703 (stop_stepping): Remove outdated check for child vfork events.
705 2002-12-12 Andrew Cagney <ac131313@redhat.com>
707 * GDB 5.3 released from gdb_5_3-branch.
709 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
711 * corelow.c (init_core_ops): Delete references to to_require_attach
712 and to_require_detach.
713 * exec.c (init_exec_ops): Likewise.
714 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
715 hppa_require_detach directly.
716 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
717 * inftarg.c (child_detach): Remove.
718 (child_detach_from_process): Rename to child_detach, remove
720 (child_attach): Remove.
721 (child_attach_to_process): Rename to child_attach, remove after_fork
723 (init_child_ops): Delete references to to_require_attach
724 and to_require_detach.
725 * infttrace.c (hppa_require_attach): Update comment.
726 * target.c (cleanup_target, update_current_target)
727 (init_dummy_target, setup_target_debug): Delete references to
728 to_require_attach and to_require_detach.
729 (find_default_require_detach, find_default_require_attach)
730 (debug_to_require_attach, debug_to_require_detach): Remove
732 * target.h (struct target_ops): Remove to_require_attach
733 and to_require_detach.
734 (target_require_attach, target_require_detach): Delete macros.
735 (find_default_require_detach, find_default_require_attach): Delete
737 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
739 2002-12-11 Andrew Cagney <ac131313@redhat.com>
741 * frame.c (get_frame_extra_info): New function.
742 * frame.h (get_frame_extra_info): Declare.
744 2002-12-11 Andrew Cagney <ac131313@redhat.com>
746 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
747 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
748 with `struct frame_id'.
749 (set_longjmp_resume_breakpoint): Ditto.
750 * infrun.c (handle_inferior_event): Update.
751 * breakpoint.c (watch_command_1, until_break_command): Update.
752 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
753 (handle_inferior_event, step_over_function): Update.
754 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
755 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
756 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
757 * infcmd.c (finish_command, run_stack_dummy): Update.
759 2002-12-11 Kevin Buettner <kevinb@redhat.com>
761 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
762 (dwarf2_non_const_array_bound_ignored)
763 (dwarf2_missing_line_number_section)
764 (dwarf2_statement_list_fits_in_line_number_section)
765 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
766 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
767 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
768 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
769 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
770 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
771 (dwarf2_missing_member_fn_type_complaint)
772 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
773 (dwarf2_const_value_length_mismatch)
774 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
775 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
776 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
777 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
778 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
779 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
780 complaints using deprecated struct..
781 (dwarf2_non_const_array_bound_ignored_complaint)
782 (dwarf2_complex_location_expr_complaint)
783 (dwarf2_unsupported_at_frame_base_complaint)
784 (dwarf2_const_value_length_mismatch_complaint)
785 (dwarf2_macros_too_long_complaint)
786 (dwarf2_macro_malformed_definition_complaint)
787 (dwarf2_invalid_attrib_class_complaint): New functions.
788 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
789 (read_structure_scope, read_array_type, read_common_block)
790 (read_tag_pointer_type, read_base_type, read_partial_die)
791 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
792 (new_symbol, dwarf2_const_value, read_type_die)
793 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
794 (parse_macro_definition, dwarf_decode_macros): Replace calls to
795 complain() with, possibly indirect, calls to complaint().
797 2002-12-11 Andrew Cagney <cagney@redhat.com>
799 * frame.c (deprecated_get_frame_saved_regs): Rename
800 get_frame_saved_regs.
801 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
802 * sparc-tdep.c: Update.
803 * hppa-tdep.c: Update.
804 * h8500-tdep.c: Update.
806 2002-12-11 Kevin Buettner <kevinb@redhat.com>
808 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
809 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
810 ``char *'' for return and parameter types.
811 * gdbarch.h, gdbarch.c: Regenerate.
812 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
813 return type from ``char *'' to ``const char *''.
814 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
817 2002-12-11 Mark Kettenis <kettenis@gnu.org>
819 * i386-tdep.c: Include "dummy-frame.h".
820 (i386_frame_chain, i386_frame_saved_pc): Replace
821 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
822 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
824 2002-12-10 Andrew Cagney <cagney@redhat.com>
826 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
827 Change to a function with predicate.
828 * gdbarch.h, gdbarch.c: Re-generate.
829 * frame.c (get_prev_frame): Update. Test
830 DEPRECATED_INIT_FRAME_PC_P.
831 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
832 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
833 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
834 * alpha-tdep.c (alpha_gdbarch_init): Update.
835 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
836 * mips-tdep.c (mips_gdbarch_init): Update.
837 * i386-interix-tdep.c (i386_interix_init_abi): Update.
838 * arm-tdep.c: Update comments.
839 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
840 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
841 * frv-tdep.c (frv_gdbarch_init): Ditto.
842 * x86-64-tdep.c (x86_64_init_abi): Ditto.
843 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
844 * s390-tdep.c (s390_gdbarch_init): Ditto.
845 * v850-tdep.c (v850_gdbarch_init): Ditto.
846 * vax-tdep.c (vax_gdbarch_init): Ditto.
847 * sh-tdep.c (sh_gdbarch_init): Ditto.
848 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
849 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
850 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
852 * i386-tdep.c (i386_gdbarch_init): Ditto.
853 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
854 * cris-tdep.c (cris_gdbarch_init): Ditto.
855 * avr-tdep.c (avr_gdbarch_init): Ditto.
856 * arm-tdep.c (arm_gdbarch_init): Ditto.
857 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
858 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
860 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
862 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
864 * hppah-nat.c (saved_vfork_pid): Add.
865 (child_post_follow_vfork): Remove.
866 (child_follow_fork): New function.
867 (child_wait): Call detach_breakpoints after receiving the child vfork.
868 Call child_resume directly instead of going through resume ().
869 Make sure we have the exec before reporting the vfork.
870 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
871 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
872 (follow_fork): New function. Call target_follow_fork.
873 (follow_inferior_reset_breakpoints): New function broken out from
874 old follow_inferior_fork.
875 (resume): Remove hack to follow exec after vfork.
876 * inftarg.c (child_post_follow_vfork): Remove.
877 (child_follow_fork): New function.
878 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
879 * target.c (cleanup_target): Replace to_post_follow_vfork with
881 (update_current_target): Likewise.
882 (setup_target_debug): Likewise.
883 (debug_to_post_follow_vfork): Remove.
884 (debug_to_follow_fork): New function.
885 * target.h (struct target_ops): Replace to_post_folow_vfork with
887 (child_post_follow_vfork): Remove prototype.
888 (child_follow_fork): Add prototype.
889 (target_post_follow_vfork): Remove macro.
890 (target_follow_fork): Add macro.
892 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
894 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
895 (child_post_follow_vfork): Cancel pending exec event if we follow
897 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
898 events have been processed. Return a fake TARGET_WAITKIND_EXECD
899 event at the following wait call if necessary.
900 * infrun.c (follow_vfork): Don't follow_exec here.
901 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
902 case about HP/UX 10.20. Remove code pushed down to
903 hppah-nat.c:child_wait.
904 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
905 vfork_in_flight is set.
907 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
909 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
910 for the parent's fork event.
911 * infrun.c (handle_inferior_event): Only expect one fork event.
912 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
913 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
915 2002-12-10 Andrew Cagney <ac131313@redhat.com>
917 * PROBLEMS: Delete reference to PR gdb/725.
919 * MAINTAINERS (gdb.c++): Add David Carlton.
921 2002-12-09 David Carlton <carlton@math.stanford.edu>
923 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
924 * cli/cli-cmds.c: Ditto.
926 2002-12-09 Andrew Cagney <cagney@redhat.com>
928 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
929 function address in <>.
930 * gdbarch.c: Re-generate.
932 2002-12-09 David Carlton <carlton@math.stanford.edu>
934 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
936 2002-12-09 David Carlton <carlton@math.stanford.edu>
938 * linespec.c (symtab_from_filename): New function.
939 (decode_line_1): Move code into symtab_from_filename.
941 2002-12-09 Kevin Buettner <kevinb@redhat.com>
943 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
945 2002-12-07 Andrew Cagney <ac131313@redhat.com>
947 * f-valprint.c (info_common_command): Use get_frame_pc.
948 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
949 * ax-gdb.c (agent_command): Ditto.
950 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
951 (rs6000_pop_frame): Ditto.
952 (rs6000_frameless_function_invocation): Ditto.
953 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
954 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
955 * macroscope.c (default_macro_scope): Ditto.
956 * stack.c (print_frame_info_base): Ditto.
957 (print_frame, frame_info, print_frame_label_vars): Ditto.
958 (return_command, func_command, get_frame_language): Ditto.
959 * infcmd.c (finish_command): Ditto.
960 * dummy-frame.c (cached_find_dummy_frame): Ditto.
961 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
962 (break_at_finish_at_depth_command_1): Ditto.
963 (break_at_finish_command_1): Ditto.
964 (until_break_command, get_catch_sals): Ditto.
965 * blockframe.c (func_frame_chain_valid): Ditto.
966 (frameless_look_for_prologue): Ditto.
967 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
969 2002-12-08 Andrew Cagney <ac131313@redhat.com>
971 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
972 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
974 2002-12-08 Andrew Cagney <ac131313@redhat.com>
976 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
978 * gdbarch.h, gdbarch.c: Re-generate.
979 * frame.c (get_prev_frame): Explictly assign prev's pc with value
980 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
982 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
983 declaration to a function returning a CORE_ADDR.
984 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
985 * arch-utils.c (init_frame_pc_noop): Return the PC value.
986 (init_frame_pc_default): Ditto.
987 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
988 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
989 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
990 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
991 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
992 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
994 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
995 to init_frame_pc_noop.
996 (i386_interix_init_frame_pc): Delete function.
997 * z8k-tdep.c (init_frame_pc): Delete function.
998 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
999 (INIT_FRAME_PC_FIRST): Ditto.
1000 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1001 (INIT_FRAME_PC_FIRST): Ditto.
1002 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1003 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1005 (INIT_FRAME_PC_FIRST): Convert to an expression.
1006 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1008 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1010 * blockframe.c: Use get_frame_base instead of directly accessing
1011 the `struct frame_info' member frame.
1012 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1013 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1015 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1017 * Makefile.in (readline_h): Define.
1018 (completer.o): Depend on readline_h.
1020 (event-top.o): Ditto.
1027 (tracepoint.o): Ditto.
1029 (cli-dump.o): Ditto.
1030 (tui-hooks.o): Ditto.
1033 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1035 More cleanup from import of readline 4.3.
1036 * completer.h (complete_line, readline_line_completion_function):
1038 (line_completion_function): Removed, not used outside of completer.c.
1039 * completer.c (readline_line_completion_function,
1040 complete_function, line_completion_function): Use const for first
1042 (line_completion_function): Make static.
1043 (filename_completer): filename_completion_function is now called
1044 rl_filename_completion_function
1045 * corelow.c: Include <readline/readline.h>.
1051 * top.c (init_main): No need to coerce
1052 readline_line_completion_function anymore.
1053 * cli/cli-dump.c: Include <readline/readline.h>.
1055 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1057 * stack.c (frame_info): Use get_prev_frame.
1058 * blockframe.c (frame_address_in_block): Ditto.
1059 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1060 (rs6000_frameless_function_invocation): Ditto.
1061 (rs6000_frame_saved_pc): Ditto.
1062 (rs6000_frame_chain): Ditto.
1063 * arch-utils.c (init_frame_pc_default): Ditto.
1065 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1067 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1068 Delete redundant definition.
1070 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1072 Import of readline 4.3:
1073 * cli/cli-cmds.c: Include readline/tilde.h.
1074 * cli/cli-setshow.c: Ditto.
1075 * defs.h: Don't declare tilde_expand anymore, since readline
1078 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1080 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1081 -Werror on this file.
1083 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1085 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1087 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1088 * gdbarch.c: Regenerate.
1090 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1092 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1093 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1094 provide a default value.
1095 * gdbarch.h, gdbarch.c: Regenerate.
1096 * frame.c (get_prev_frame): Update. Check
1097 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1098 * s390-tdep.c (s390_gdbarch_init): Update.
1099 * mips-tdep.c (mips_gdbarch_init): Update.
1100 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1101 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1102 * alpha-tdep.c (alpha_gdbarch_init): Update.
1104 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1106 * ia64-linux-nat.c: Include gdb_string.h.
1107 * alpha-nat.c: Ditto.
1108 * ppc-linux-nat.c: Ditto.
1109 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1110 Update dependencies.
1112 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1114 * gdbthread.h: Include "frame.h".
1115 (struct thread_info): Replace step_frame_address with
1117 * inferior.h: Include "frame.h".
1118 (step_frame_id): Replace external variable step_frame_address.
1119 * gdbthread.h (save_infrun_state): Replace step_frame_address
1120 parameter with step_frame_id parameter.
1121 (load_infrun_state): Ditto.
1122 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1123 * infcmd.c (step_frame_id, step_1, step_once): Update.
1124 * thread.c (load_infrun_state, save_infrun_state): Update.
1125 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1126 (handle_inferior_event, step_over_function): Update.
1127 (normal_stop, context_switch, restore_inferior_status): Update.
1128 (struct inferior_status): Replace step_frame_address with
1131 2002-12-05 David Carlton <carlton@math.stanford.edu>
1133 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1134 DW_TAG_member as well as a declaration as being a C++ static data
1136 (read_structure_scope): Combine tests for DW_TAG_member and
1139 2002-12-05 David Carlton <carlton@math.stanford.edu>
1141 * linespec.c (decode_compound): New function.
1142 (decode_line_1): Move code into decode_compound.
1144 2002-12-05 David Carlton <carlton@math.stanford.edu>
1146 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1148 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1149 the static block. See PR gdb/804.
1151 2002-12-05 David Carlton <carlton@math.stanford.edu>
1153 * symtab.c (lookup_symbol_aux_block): New function.
1154 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1156 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1158 * gdbarch.sh: Dump the predicate function and macro values.
1159 (read): Print error on standard error.
1160 * gdbarch.c: Regenerate.
1162 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1164 * Makefile.in (mips_tdep_h): Define.
1165 (mips-tdep.o): Add mips_tdep_h to dependency list.
1166 * mips-tdep.h: New file.
1167 * mips-tdep.c (mips-tdep.h): Include.
1168 (enum mips_abi): Move to mips-tdep.h.
1169 (mips_abi): New function.
1171 2002-12-04 David Carlton <carlton@math.stanford.edu>
1173 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1175 2002-12-04 David Carlton <carlton@math.stanford.edu>
1177 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1179 (lookup_symbol_aux_minsyms): New function.
1181 2002-12-04 J. Brobecker <brobecker@gnat.com>
1183 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1185 2002-12-04 J. Brobecker <brobecker@gnat.com>
1187 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1188 which is an obsolete macro name.
1190 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1192 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1193 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1195 2002-12-03 H.J. Lu (hjl@gnu.org)
1197 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1198 (create_breakpoints): Make sure the addr_string field is not
1201 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1203 * sparc-nat.c (fetch_inferior_registers)
1204 (store_inferior_registers): Add comment on problem of LWP vs
1207 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1208 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1209 (lin_lwp_store_registers): Remove.
1210 (init_lin_lwp_ops): Use fetch_inferior_registers
1211 and store_inferior_registers directly.
1212 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1213 (store_inferior_registers): Likewise.
1216 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1218 * frame.h (get_frame_id): Convert to a function.
1219 (null_frame_id, frame_id_p): Declare.
1220 (frame_id_eq, frame_id_inner): Declare.
1221 (frame_id_build): New function.
1222 * frame.c (get_frame_id): Update. Use null_frame_id.
1223 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1225 (null_frame_id, frame_id_p): Define.
1226 (frame_id_eq, frame_id_inner): Define.
1227 (frame_id_build): New function.
1228 * varobj.c (varobj_create): Update.
1229 (varobj_update): Update.
1230 * valops.c (value_assign): Update.
1231 (new_root_variable): Update.
1232 * infrun.c (save_inferior_status): Update.
1233 * breakpoint.c (watch_command_1): Update.
1235 2002-12-03 J. Brobecker <brobecker@gnat.com>
1237 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1240 2002-12-03 Andrew Cagney <cagney@redhat.com>
1242 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1245 * PROBLEMS: Mention PR gdb/725.
1247 2002-12-03 Andreas Schwab <schwab@suse.de>
1249 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1251 2002-12-02 Adam Fedor <fedor@gnu.org>
1252 Klee Dienes <kdienes@apple.com>
1254 * objc-lang.c (objc_printstr): Add width arg to match
1256 (compare_selectors): Add 'const' to arg types.
1257 (compare_classes): Likewise.
1258 (find_imps): Cast msym pointer to avoid compiler warning.
1259 (print_object_command): Validate the address before
1260 passing it to the print routine.
1261 (find_objc_msgcall_submethod): Change function argument to
1263 * objc-lang.h: Add 'extern' to all function declarations.
1264 (value_nsstring): Add declaration.
1266 2002-12-02 J. Brobecker <brobecker@gnat.com>
1268 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1269 Fixes a build failure on HP/UX.
1271 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1273 (hpread_has_name): Advance declaration to avoid a compilation warning.
1274 (pst_syms_count): Add missing variable type. By change, the compiler
1275 was defaulting to int, which seems a good choice. Fixes a compilation
1277 (pst_syms_size): Likewise.
1279 2002-12-02 J. Brobecker <brobecker@gnat.com>
1281 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1282 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1283 later to set the proper gdbarch methods depending on the osabi.
1284 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1286 2002-12-02 J. Brobecker <brobecker@gnat.com>
1288 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1289 * osabi.c (gdb_osabi_name): Add strings images for the two new
1291 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1293 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1295 * MAINTAINERS (Java): Global maintainers are responible for Java.
1296 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1297 part Java maintainers.
1299 2002-12-02 J. Brobecker <brobecker@gnat.com>
1301 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1302 Fixes a compilation failure on AiX.
1304 2002-12-02 J. Brobecker <brobecker@gnat.com>
1306 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1307 why aix-thread.o is not listed.
1309 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1311 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1312 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1313 * gdbarch.h, gdbarch.c: Re-generate.
1314 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1315 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1316 * config/pa/tm-hppa.h, frame.h: Update.
1317 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1318 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1319 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1320 * cris-tdep.c, alpha-tdep.c: Update.
1321 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1322 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1323 (get_prev_frame): Ditto.
1325 2002-11-30 Andrew Cagney <cagney@redhat.com>
1327 * exec.c (xfer_memory): Replace boolean with int.
1328 * p-exp.y: Use 0 instead of false.
1329 * corelow.c (gdb_check_format): Change return type to int from
1331 * utils.c: Don't include <curses.h> or <term.h> first.
1333 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1335 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1336 (m68hc11_register_byte): Remove.
1337 (m68hc11_gdbarch_init): Don't set the above.
1339 2002-11-29 Andrew Cagney <cagney@redhat.com>
1341 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1342 by calling get_selected_frame.
1343 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1344 set_current_frame, create_new_frame, select_frame and
1346 * remote-e7000.c (e7000_start_remote): Ditto.
1347 * remote-mips.c (common_open): Ditto
1348 * remote-rdp.c (remote_rdp_open): Ditto.
1350 2002-11-29 Andreas Schwab <schwab@suse.de>
1352 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1353 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1354 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1355 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1356 read_memory_unsigned_integer instead of read_memory_integer when
1357 dealing with addresses and instruction opcodes.
1358 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1359 (m68k_linux_frame_saved_pc): Likewise.
1361 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1363 * stack.c (selected_frame, select_frame): Move from here ...
1364 * frame.c (selected_frame, select_frame): ... to here. Include
1366 * Makefile.in (frame.o): Update dependencies.
1367 * frame.c (get_selected_frame): New function.
1368 * frame.h (get_selected_frame): Declare.
1369 (deprecated_selected_frame): Rename selected_frame.
1370 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1371 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1372 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1373 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1374 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1375 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1376 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1377 * z8k-tdep.c, cli/cli-cmds.c: Update.
1379 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1381 * frame.h (get_selected_block): Add comments.
1383 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1385 * frame.c (pc_notcurrent): New function.
1386 (find_frame_sal): New function.
1387 * frame.h (find_frame_sal): Declare.
1388 (struct symtab_and_line): Add opaque declaration.
1389 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1391 (frame_info): Ditto.
1392 * ada-lang.c (find_printable_frame): Ditto.
1394 2002-11-28 J. Brobecker <brobecker@gnat.com>
1396 * configure.in: Check that the pthdebug library is recent enough
1397 before enabling thread support on native AiX.
1398 * configure: Regenerate.
1400 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1401 from the list of object files as it is now appended by configure
1402 if thread support is enabled.
1403 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1404 if thread support is enabled.
1406 2002-11-28 Andrew Cagney <cagney@redhat.com>
1408 * stack.c (get_selected_block): In-line get_current_block.
1409 * frame.h (get_current_block): Delete declaration.
1410 * blockframe.c (get_current_block): Delete function.
1412 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1414 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1415 USE_GENERIC_DUMMY_FRAMES.
1416 * gdbarch.h, gdbarch.c: Regenerate.
1417 * valops.c, frame.c: Update.
1418 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1419 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1420 * config/pa/tm-hppa.h, blockframe.c: Update.
1421 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1422 * m68k-tdep.c, alpha-tdep.c: Ditto.
1424 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1425 * mips-tdep.c: Ditto.
1427 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1429 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1430 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1431 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1432 * gdbarch.c, gdbarch.h: Re-generate.
1433 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1434 (CALL_DUMMY_LOCATION): Delete macro definition.
1435 (PC_IN_CALL_DUMMY): Delete macro definitions.
1437 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1438 default is already generic_pc_in_call_dummy.
1439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1440 * v850-tdep.c (v850_gdbarch_init): Ditto.
1441 * sh-tdep.c (sh_gdbarch_init): Ditto.
1442 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1443 * mips-tdep.c (mips_gdbarch_init): Ditto.
1444 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1446 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1449 * avr-tdep.c (avr_gdbarch_init): Ditto.
1451 * arm-tdep.c (arm_gdbarch_init): Do not set
1452 use_generic_dummy_frames, default is already 1.
1453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1454 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1455 * v850-tdep.c (v850_gdbarch_init): Ditto.
1456 * sh-tdep.c (sh_gdbarch_init): Ditto.
1457 * s390-tdep.c (s390_gdbarch_init): Ditto.
1458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1460 * mips-tdep.c (mips_gdbarch_init): Ditto.
1461 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1464 * i386-tdep.c (i386_gdbarch_init): Ditto.
1465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1466 * frv-tdep.c (frv_gdbarch_init): Ditto.
1467 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1468 * cris-tdep.c (cris_gdbarch_init): Ditto.
1469 * avr-tdep.c (avr_gdbarch_init): Ditto.
1471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1472 call_dummy_location, default is already AT_ENTRY_POINT.
1473 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1474 * v850-tdep.c (v850_gdbarch_init): Ditto.
1475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1476 * sh-tdep.c (sh_gdbarch_init): Ditto.
1477 * s390-tdep.c (s390_gdbarch_init): Ditto.
1478 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1479 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1480 * mips-tdep.c (mips_gdbarch_init): Ditto.
1481 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1483 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1484 * i386-tdep.c (i386_gdbarch_init): Ditto.
1485 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1486 * frv-tdep.c (frv_gdbarch_init): Ditto.
1487 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1488 * cris-tdep.c (cris_gdbarch_init): Ditto.
1489 * avr-tdep.c (avr_gdbarch_init): Ditto.
1490 * arm-tdep.c (arm_gdbarch_init): Ditto.
1491 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1493 2002-11-28 Andrew Cagney <cagney@redhat.com>
1495 * frame.h: Update comments on set_current_frame, create_new_frame,
1496 flush_cached_frames, reinit_frame_cache, select_frame and
1499 2002-11-27 Andrew Cagney <cagney@redhat.com>
1501 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1502 deprecated pc_in_call_dummy function.
1503 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1504 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1505 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1506 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1507 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1509 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1511 * Makefile.in: Remove Tix dependencies.
1512 * acinclude.m4: Ditto.
1513 * aclocal.m4: Ditto.
1514 * configure.in: Ditto.
1515 * configure: Regenerated.
1517 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1519 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1520 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1521 * gdbarch.c: Re-generate.
1523 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1525 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1526 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1527 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1528 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1529 pc_in_call_dummy_at_entry_point.
1530 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1531 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1532 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1533 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1534 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1535 pc_in_call_dummy_on_stack.
1536 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1537 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1538 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1539 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1540 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1542 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1544 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1545 pc_in_call_dummy_before_text_end
1546 (deprecated_pc_in_call_dummy_after_text_end): Rename
1547 pc_in_call_dummy_after_text_end.
1548 (deprecated_pc_in_call_dummy_on_stack): Rename
1549 pc_in_call_dummy_on_stack.
1550 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1551 pc_in_call_dummy_at_entry_point.
1552 * m68k-tdep.c (m68k_gdbarch_init): Update.
1553 * s390-tdep.c (s390_gdbarch_init): Update.
1554 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1555 * vax-tdep.c (vax_gdbarch_init): Update.
1556 * sparc-tdep.c (sparc_gdbarch_init): Update.
1557 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1558 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1559 * i386-tdep.c (i386_gdbarch_init): Update.
1560 * frv-tdep.c (frv_gdbarch_init): Update.
1561 * cris-tdep.c (cris_gdbarch_init): Update.
1562 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1563 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1564 (deprecated_pc_in_call_dummy_after_text_end)
1565 (deprecated_pc_in_call_dummy_on_stack)
1566 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1567 * alpha-tdep.c (alpha_gdbarch_init): Update.
1569 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1571 * acconfig.h (HAVE_PREAD64): Add.
1572 * configure.in: Check for pread64.
1573 * config.in: Regenerated.
1574 * configure: Regenerated.
1575 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1576 * linux-proc.c (linux_proc_xfer_memory): New function.
1577 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1579 2002-11-25 David Carlton <carlton@math.stanford.edu>
1581 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1584 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1586 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1587 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1589 2002-11-25 Jim Blandy <jimb@redhat.com>
1591 * symfile.c (init_objfile_sect_indices): New function.
1592 (default_symfile_offsets): Move the section-index-initializing
1593 stuff into init_objfile_sect_indices, and call that.
1595 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1596 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1598 * symfile.c (syms_from_objfile): Adjust indentation.
1600 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1601 || info_verbose isn't true.
1603 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1605 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1606 default to get_frame_base.
1607 * gdbarch.h, gdbarch.c: Regenerate.
1608 * arch-utils.c (default_frame_address): Delete function.
1609 * arch-utils.h (default_frame_address): Delete declaration
1611 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1613 * varobj.c (find_frame_addr_in_frame_chain):
1614 Use get_frame_base instead of FRAME_FP,
1617 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1619 * frame.h (FRAME_FP): Delete macro.
1620 (get_frame_base): New function declaration.
1621 * frame.c (get_frame_base): New function.
1622 (get_frame_id): Use ->frame.
1623 (frame_find_by_id): Rewrite to use get_frame_id.
1624 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1625 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1626 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1627 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1628 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1629 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1630 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1632 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1634 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1636 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1638 * frame.c (set_unwind_by_pc): Revert change below, use
1640 (get_prev_frame): Ditto.
1642 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1644 * dummy-frame.c (pc_in_dummy_frame): New function.
1645 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1646 (find_dummy_frame): Update comment.
1647 (generic_pop_current_frame): Use get_frame_type.
1648 * dummy-frame.h (pc_in_dummy_frame): Declare.
1649 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1650 (create_new_frame): Use pc_in_dummy_frame.
1651 (get_prev_frame): Use pc_in_dummy_frame.
1652 (frame_saved_regs_register_unwind): Use get_prev_frame.
1653 (deprecated_generic_get_saved_register): Use get_prev_frame.
1655 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1657 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1659 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1660 (varobj_create): Note that frame ID should be used.
1661 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1663 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1665 * breakpoint.c: Include "gdb_assert.h".
1666 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1668 * Makefile.in (breakpoint.o): Update dependencies.
1669 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1670 deprecated_frame_in_dummy.
1671 * stack.c (print_frame_info_base): Ditto.
1672 (frame_info): Ditto.
1673 (print_frame_info_base): Ditto. Delete dead code.
1675 2002-11-23 Andreas Schwab <schwab@suse.de>
1677 * Makefile.in (m68k_tdep_h): Define.
1678 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1679 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1680 * m68k-tdep.c: Move register number enum ...
1681 * m68k-tdep.h: ... to this new file and rename the constants from
1682 E_* to M68K_*. All uses changed.
1683 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1684 * abug-rom.c: Include "m68k-tdep.h". Use
1685 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1686 * cpu32bug-rom.c: Likewise.
1687 * dbug-rom.c: Likewise.
1688 * m68k-tdep.c: Likewise.
1689 * m68klinux-nat.c: Likewise.
1690 * remote-est.c: Likewise.
1691 * rom68k-rom.c: Likewise.
1692 * config/m68k/tm-linux.h: Likewise.
1694 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1696 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1697 dummy frame initialization code.
1698 * mips-tdep.c (mips_gdbarch_init): Ditto.
1700 2002-11-22 Christopher Faylor <cgf@redhat.com>
1702 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1705 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1707 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1708 to default_frame_address.
1709 * gdbarch.h, gdbarch.c: Re-generate.
1711 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1712 or frame_locals_address to default_frame_address.
1713 * m68k-tdep.c (m68k_gdbarch_init): Update.
1714 * i386-tdep.c (i386_gdbarch_init): Update.
1715 * frv-tdep.c (frv_gdbarch_init): Update.
1716 * sh-tdep.c (sh_gdbarch_init): Update.
1717 * v850-tdep.c (v850_gdbarch_init): Update.
1718 * sparc-tdep.c (sparc_gdbarch_init): Update.
1719 * mips-tdep.c (mips_gdbarch_init): Update.
1720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1721 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1724 * cris-tdep.c (cris_frame_args_address): Delete function.
1725 (cris_frame_locals_address): Delete function.
1726 (cris_gdbarch_init): Do not set frame_args_address or
1727 frame_locals_address.
1729 2002-11-22 Michael Snyder <msnyder@redhat.com>
1731 * thread-db.c (thread_db_load): Tell the user what's going on
1732 if dlopen fails on libthread_db.
1734 2002-11-23 Andreas Schwab <schwab@suse.de>
1736 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1737 invariant return values.
1739 2002-11-22 Andreas Schwab <schwab@suse.de>
1741 * valops.c (value_slice): Move declaration of `offset' to avoid
1744 2002-11-22 Christopher Faylor <cgf@redhat.com>
1746 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1747 (struct so_stuff): Add end_addr field.
1748 (register_loaded_dll): Calculate and store end address of loaded dll.
1749 (solib_address): New function.
1750 (child_solib_loaded_library_pathname): Pass carefully constructed
1751 section info to safe_symbol_file_add rather than ignoring it.
1752 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1754 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1755 (child_create_inferior): Fix a compiler warning.
1756 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1757 (solib_address): Declare new function.
1759 2002-11-22 Andreas Schwab <schwab@suse.de>
1761 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1764 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1766 * maint.c (_initialize_maint_cmds): Fix typo. From
1767 Francesco Potorti` <pot@gnu.org>.
1769 2002-11-21 Andrew Cagney <cagney@redhat.com>
1771 * mips-tdep.c (mips_dump_tdep): Delete references to
1772 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1773 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1774 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1775 * printcmd.c (build_address_symbolic): Delete calls to
1776 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1777 (address_info): Ditto.
1780 2002-11-19 Klee Dienes <kdienes@apple.com>
1781 Adam Fedor <fedor@gnu.org>
1783 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1784 the ability to explicitly specify the quote characters and word
1785 break characters; if NULL is specified for either, use the old
1786 behavior of using the characters used by the completer.
1787 (skip_chars): New function. Convenience wrapper around
1788 skip_quoted_chars to provide the original skip_chars behavior.
1789 * completer.h (skip_quoted_chars): Add prototype.
1791 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1793 Problems reported by Paul Eggert.
1794 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1796 2002-11-19 Andreas Schwab <schwab@suse.de>
1798 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1799 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1800 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1801 (m68k_linux_frame_saved_pc): Move to ...
1802 * m68klinux-tdep.c: ... here. New file.
1803 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1804 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1806 2002-11-19 Adam Fedor <fedor@gnu.org>
1808 * objc-exp.y: Revert to old skip_quoted usage.
1810 2002-11-19 Adam Fedor <fedor@gnu.org>
1812 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1813 (objc_lang_h): Define.
1814 (YYFILES): Add objc-exp.tab.c.
1815 (local-maintainer-clean): Remove objc-exp.tab.c.
1816 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1818 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1820 * p-exp.y (typecast rule): Add automatic dereference of
1821 pascal classes if needed.
1822 (THIS): Set current_type.
1823 Automatically dereference pascal classes.
1824 (typebase rule): Add ^typebase recognition.
1826 2002-11-18 Adam Fedor <fedor@gnu.org>
1828 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1829 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1830 (op_name): Handle OP_OBJC_SELF.
1831 * Makefile.in (expprint.o): Add additional depends.
1833 2002-11-18 Adam Fedor <fedor@gnu.org>
1835 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1836 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1837 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1838 * objc-exp.y: Likewise.
1840 2002-11-18 Adam Fedor <fedor@gnu.org>
1842 * gdb/parser-defs.h: (struct objc_class_str): New structure
1843 for parsing ObjC classes.
1845 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1847 * stack.c (frame_relative_level): Copy function from here ...
1848 * frame.c (frame_relative_level): ...to here.
1850 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1852 * frame.h (enum frame_type): Define.
1853 (get_frame_type): Declare.
1854 (struct frame_info): Add field `type'. Delete field
1855 signal_handler_caller.
1856 (deprecated_set_frame_signal_handler_caller): Declare.
1857 * frame.c (get_frame_type): New function.
1858 (deprecated_set_frame_type): New function.
1859 (create_new_frame): Set the frame's type.
1860 (get_prev_frame): Similar.
1861 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1862 * s390-tdep.c: Ditto.
1863 * m68klinux-nat.c: Ditto.
1864 * ns32k-tdep.c: Ditto.
1865 * x86-64-linux-tdep.c: Ditto.
1866 * vax-tdep.c: Ditto.
1867 * rs6000-tdep.c: Ditto.
1868 * ppc-linux-tdep.c: Ditto.
1869 * i386-interix-tdep.c: Ditto.
1870 * mips-tdep.c: Ditto.
1871 * m68k-tdep.c: Ditto.
1872 * hppa-tdep.c: Ditto.
1873 * ia64-tdep.c: Ditto.
1874 * cris-tdep.c: Ditto.
1875 * arm-tdep.c: Ditto.
1876 * alpha-tdep.c: Ditto.
1877 * i386-tdep.c: Ditto.
1879 * ada-lang.c: Ditto.
1880 * blockframe.c: Update.
1881 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1882 deprecated_set_frame_type instead of signal_handler_caller.
1883 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1884 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1885 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1887 2002-11-18 Klee Dienes <kdienes@apple.com>
1889 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1891 2002-11-18 Klee Dienes <kdienes@apple.com>
1893 * buildsym.c (pop_context): Add comment.
1895 2002-11-18 Klee Dienes <kdienes@apple.com>
1897 * buildsym.h (pop_context): Convert to function, defined in
1899 * buildsym.c: Include gdb_assert.h.
1900 (pop_context): Implement as C function. Add check for stack
1902 * dbxread.c (process_one_symbol): Complain and stop processing
1903 that symbol if we are already at the top of the context stack for
1904 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1905 when processing N_RBRAC.
1907 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1909 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1911 (struct target_waitstatus): Add opaque definition.
1912 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1913 * exec.c (init_exec_ops): Likewise.
1914 * fork-child.c (clone_and_follow_inferior): Remove.
1915 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1916 * inferior.h (clone_and_follow_inferior): Remove prototype.
1917 * infrun.c (follow_fork_mode_both): Remove.
1918 (follow_fork_mode_kind_names): Remove commented out "both".
1919 (follow_inferior_fork): Remove follow_fork_mode_both support.
1920 * inftarg.c (child_clone_and_follow_inferior): Remove.
1921 (child_post_follow_inferior_by_clone): Remove.
1922 (init_child_ops): Don't set to_clone_and_follow_inferior
1923 or to_post_follow_inferior_by_clone.
1924 * target.c (default_clone_and_follow_inferior): Remove.
1925 (cleanup_target): Don't set to_clone_and_follow_inferior
1926 or to_post_follow_inferior_by_clone.
1927 (find_default_clone_and_follow_inferior): Remove.
1928 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1929 (debug_to_clone_and_follow_inferior): Remove.
1930 (debug_to_post_follow_inferior_by_clone): Remove.
1931 (setup_target_debug): Don't set to_clone_and_follow_inferior
1932 or to_post_follow_inferior_by_clone.
1933 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1934 and to_post_follow_inferior_by_clone.
1935 (child_clone_and_follow_inferior): Remove prototype.
1936 (child_post_follow_inferior_by_clone): Remove prototype.
1937 (target_clone_and_follow_inferior): Remove macro.
1938 (target_post_follow_inferior_by_clone): Remove macro.
1939 (find_default_clone_and_follow_inferior): Remove prototype.
1941 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1943 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1944 inferior_has_vforked, and inferior_has_execd instead of
1945 target_has_forked, target_has_vforked, and target_has_execd.
1946 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1947 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1948 (CHILD_WAIT): Define.
1949 (child_wait): Add prototype.
1950 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1952 (hpux_has_vforked): Likewise, from child_has_vforked.
1953 (hpux_has_execd): Likewise, from child_has_execd.
1954 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1955 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1956 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1957 and hpux_has_syscall_event instead of the target hooks.
1958 * infrun.c (inferior_has_forked, inferior_has_vforked)
1959 (inferior_has_execd): New functions.
1960 * inftarg.c (not_same_real_pid): Remove.
1961 (child_wait): Remove references to not_same_real_pid,
1962 target_has_forked, target_has_vforked, target_has_execd,
1963 and target_has_syscall_event.
1964 (child_has_forked, child_has_vforked, child_has_execd)
1965 (child_has_syscall_event): Remove.
1966 (init_child_ops): Remove references to child_has_forked,
1967 child_has_vforked, child_has_execd, and child_has_syscall_event.
1968 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1969 (hpux_has_vforked): Likewise, from child_has_vforked.
1970 (hpux_has_execd): Likewise, from child_has_execd.
1971 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1972 * target.c (cleanup_target): Remove references to
1973 to_has_forked, to_has_vforked, to_has_execd, and
1974 to_has_syscall_event.
1975 (update_current_target): Likewise.
1976 (setup_target_debug): Likewise.
1977 (debug_to_has_forked): Remove.
1978 (debug_to_has_vforked): Remove.
1979 (debug_to_has_execd): Remove.
1980 (debug_to_has_syscall_event): Remove.
1981 * target.h (struct target_ops): Remove to_has_forked.
1982 to_has_vforked, to_has_execd, and to_has_syscall_event.
1983 (child_has_forked, child_has_vforked, child_has_execd)
1984 (child_has_syscall_event): Remove prototypes.
1985 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1987 (target_has_forked, target_has_vforked, target_has_execd)
1988 (target_has_syscall_event): Remove macros.
1990 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1992 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1993 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1994 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1995 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1996 * target.c (cleanup_target): Remove reference to
1997 to_can_follow_vfork_prior_to_exec.
1998 (update_current_target): Likewise.
1999 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2000 (setup_target_debug): Remove reference to
2001 to_can_follow_vfork_prior_to_exec.
2002 * target.h (struct target_ops): Remove
2003 to_can_follow_vfork_prior_to_exec.
2004 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2005 (target_can_follow_vfork_prior_to_exec): Remove definition.
2006 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2008 * infrun.c (follow_vfork_when_exec): Remove.
2009 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2010 (follow_exec): Likewise.
2011 (handle_inferior_event): Likewise.
2012 (keep_going): Likewise.
2014 2002-11-15 Andrew Cagney <cagney@redhat.com>
2016 * frame.c (generic_unwind_get_saved_register): Make static.
2017 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2018 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2019 defaults to generic_unwind_get_saved_register.
2020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2021 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2022 * frv-tdep.c (frv_gdbarch_init): Ditto.
2023 * i386-tdep.c (i386_gdbarch_init): Ditto.
2024 * s390-tdep.c (s390_gdbarch_init): Ditto.
2025 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2026 * v850-tdep.c (v850_gdbarch_init): Ditto.
2027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2028 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2029 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2031 2002-11-15 Andrew Cagney <cagney@redhat.com>
2033 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2036 2002-11-15 Andrew Cagney <cagney@redhat.com>
2038 * frame.h (sigtramp_saved_pc): Delete declaration.
2039 * blockframe.c (sigtramp_saved_pc): Delete function.
2040 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2041 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2042 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2043 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2045 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2047 * frame.c (frame_pc_unwind): New function.
2048 (frame_saved_regs_pc_unwind): New function.
2049 (frame_register_unwind): Pass unwind_cache instead of
2050 register_unwind_cache.
2051 (set_unwind_by_pc): Add unwind_pc parameter, set.
2052 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2053 (get_prev_frame): Ditto.
2054 * frame.h (frame_pc_unwind_ftype): Declare.
2055 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2056 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2057 (frame_pc_unwind): Declare.
2058 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2059 (struct dummy_frame): Add comment mentioning that values are for
2061 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2062 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2063 (generic_file_frame_chain_valid): Ditto.
2064 * stack.c (frame_info): Ditto.
2066 2002-11-15 David Carlton <carlton@math.stanford.edu>
2068 * linespec.c (locate_first_half): New function.
2069 (decode_line_1): Move code into locate_first_half.
2071 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2073 * complaints.h: Add comment explaining how to eliminate a
2074 deprecated_complain call.
2075 * complaints.h: Fix spelling errors.
2077 2002-11-15 David Carlton <carlton@math.stanford.edu>
2079 * printcmd.c: Remove #include "disasm.h".
2081 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2083 * frame.h: Move the most relevant interface functions to the start
2086 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2088 * regcache.h (deprecated_registers): Rename registers.
2089 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2090 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2091 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2092 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2093 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2094 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2095 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2096 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2097 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2098 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2099 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2100 * v850ice.c: Update.
2102 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2104 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2107 2002-11-13 Andrew Cagney <cagney@redhat.com>
2109 * regcache.h (deprecated_read_register_bytes): Rename
2110 read_register_bytes.
2111 (deprecated_write_register_bytes): Rename write_register_bytes.
2112 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2113 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2114 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2115 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2116 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2117 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2118 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2119 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2120 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2121 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2122 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2123 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2124 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2125 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2127 2002-11-13 Jim Blandy <jimb@redhat.com>
2129 * findvar.c (read_var_value): Doc fix.
2131 2002-11-13 Andrew Cagney <cagney@redhat.com>
2133 * regcache.c (struct regcache): Replace passthough_p with
2135 (regcache_xmalloc): Initialize readonly_p.
2136 (build_regcache): Initialize readonly_p.
2137 (regcache_save): New function.
2138 (regcache_restore): New function.
2139 (regcache_cpy): Re-implement using regcache_save and
2141 (regcache_raw_read): Update.
2142 (regcache_cooked_read): When a read-only cache, checked for cached
2143 pseudo register values.
2144 (regcache_raw_write): Assert that the cache is not read-only.
2145 Remove code handling a non-passthrough cache.
2146 * regcache.h (regcache_save): Declare.
2147 (regcache_restore): Declare.
2149 2002-11-13 Andrew Cagney <cagney@redhat.com>
2151 * regcache.c (struct regcache_descr): Add fields
2152 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2153 (init_legacy_regcache_descr): Compute the size of a cooked
2154 register cache and then assign that to sizeof_raw_registers. Set
2155 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2156 (init_legacy_regcache_descr): Ditto.
2158 2002-11-13 Andrew Cagney <cagney@redhat.com>
2160 * regcache.c (register_buffer): Move to near start of file, update
2162 (regcache_raw_read): Use.
2163 (regcache_raw_write): Use.
2164 (struct regcache): Rename raw_registers to registers and
2165 raw_register_valid_p to register_valid_p.
2166 (regcache_xmalloc): Update.
2167 (regcache_xfree): Update.
2168 (register_buffer): Update.
2169 (regcache_cpy): Update.
2170 (regcache_cpy_no_passthrough): Update.
2171 (regcache_valid_p): Update.
2172 (deprecated_grub_regcache_for_registers): Update.
2173 (deprecated_grub_regcache_for_register_valid): Update.
2174 (set_register_cached): Update.
2175 (regcache_raw_write): Update.
2177 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2179 * p-exp.y (name_not_typename): Use copy_name to
2180 set current_type variable for fields of THIS.
2182 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2184 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2185 * monitor.c (init_base_monitor_ops): Likewise.
2186 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2187 * remote-array.c (init_array_ops): Likewise.
2188 * remote-e7000.c (init_e7000_ops): Likewise.
2189 * remote-es.c (init_es1800_ops): Likewise.
2190 (init_es1800_child_ops): Likewise.
2191 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2192 * remote-sim.c (init_gdbsim_ops): Likewise.
2193 * remote-st.c (init_st2000_ops): Likewise.
2194 * sol-thread.c (init_sol_core_ops): Likewise.
2195 (init_sol_thread_ops): Likewise.
2196 * v850ice.c (init_850ice_ops): Likewise.
2197 * win32-nat.c (init_child_ops): Likewise.
2198 * wince.c (init_child_ops): Likewise.
2200 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2202 * utils.c (gdb_realpath): Make rp a constant pointer.
2204 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2206 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2207 a constant buffer; cannonicalize_file_name(); realpath() with a
2208 pathconf() defined buffer, xstrdup().
2210 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2212 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2213 to hang2.C; hang3.c to hang3.C.
2215 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2217 * findvar.c (read_var_value): Reenable TLS code.
2219 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2220 Jim Blandy <jimb@redhat.com>
2222 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2223 * target.c (update_current_target): Add
2224 to_get_thread_local_address.
2225 * target.h (to_get_thread_local_address): Export.
2226 (target_get_thread_local_address): Define.
2227 (target_get_thread_local_address_p): Define.
2228 * thread-db.c: Include solib-svr4.h.
2229 (td_thr_tls_get_addr_p): Define.
2230 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2231 (thread_db_get_thread_local_address): New function.
2232 (init_thread_db_ops): Initialize to_get_thread_local_address.
2233 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2234 * configure: Regenerate.
2235 * config.in: Regenerate.
2237 2002-11-11 David Carlton <carlton@math.stanford.edu>
2239 * linespec.c (set_flags): New function.
2240 (decode_line_1): Move code into set_flags.
2242 2002-11-11 David Carlton <carlton@math.stanford.edu>
2244 * linespec.c (decode_line_1): Move chunks of code to separate
2246 (initialize_defaults): New function.
2247 (decode_indirect): New function.
2249 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2251 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2252 instead of void_code_ptr.
2253 (sigtramp_saved_pc): Ditto.
2255 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2258 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2260 * gdbtypes.h (struct main_type): Move artificial flag out of
2261 loc. New member of ``struct field'' named static_kind. Reduce
2262 overloaded meaning of bitsize.
2263 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2264 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2265 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2267 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2269 (template_to_fixed_record_type, template_to_static_fixed_type)
2270 (to_record_with_fixed_variant_part): Likewise.
2271 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2272 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2273 * dwarfread.c (struct_type, enum_type): Likewise.
2274 * hpread.c (hpread_read_enum_type)
2275 (hpread_read_function_type, hpread_read_doc_function_type)
2276 (hpread_read_struct_type): Likewise.
2277 * mdebugread.c (parse_symbol): Likewise.
2279 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2281 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2282 * stack.c (print_frame_info_base): Update.
2283 (print_frame_info_base, frame_info): Update.
2284 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2285 (sparc_frame_saved_pc): Update.
2286 * ada-lang.c (find_printable_frame): Update.
2287 * breakpoint.c (deprecated_frame_in_dummy): Update.
2289 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2291 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2293 (regmap): Extend to cover all registers.
2294 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2295 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2297 (fetch_register, sore_register): Simplify.
2298 (old_fetch_inferior_registers, old_store_inferior_registers):
2300 (cannot_fetch_register, cannot_store_register): Change
2301 implementation to use regmap array to decide which registers
2302 cannot be fetched/stored. This removes $orig_eax from the
2303 registers that cannot be fetched/stored.
2304 (fetch_inferior_registers): Call fetch_register directly instead
2305 of calling old_fetch_inferior_registers.
2306 (store_inferior_registers): Call store_register directly instead
2307 of calling old_store_inferior_registers.
2308 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2309 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2310 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2312 2002-11-09 Klee Dienes <kdienes@apple.com>
2314 * i387-tdep.c (i387_supply_register): When called with NULL as a
2315 buffer, mark the register as not provided (to mirror the behavior
2316 of supply_register).
2317 (i387_supply_fxsave): Ditto.
2318 (i387_supply_fsave): Ditto (inherits the behavior from
2319 i387_supply_register).
2321 2002-11-09 Klee Dienes <kdienes@apple.com>
2323 * blockframe.c (sigtramp_saved_pc): Use
2324 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2325 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2326 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2328 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2330 * frame.c (get_prev_frame): Test prev_p to identify a previously
2331 unwound frame. Initialize prev_p.
2332 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2335 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2337 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2338 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2339 more comments. Zap dead code.
2341 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2343 * infcmd.c (print_vector_info, print_float_info): Move code that
2344 checks whether the target has any registers and whether there is a
2345 selected frame up, such that it is also used if a target provides
2346 multi-arch definitions of these functions.
2348 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2350 * Makefile.in (DESTDIR): Define.
2351 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2354 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2355 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2357 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2359 * i386-linux-tdep.c: Include "reggroups.h".
2360 (i386_linux_register_reggroup_p): New function.
2361 (i386_linux_init_abi): Set register_reggroup_p to
2362 i386_linux_register_reggroup_p.
2363 * i386-tdep.h (i386_register_reggroup_p): Declare.
2364 * i386-tdep.c: Include "reggroups.h".
2365 (i386_init_reggroups): New function.
2366 (i386_add_reggroups): New function.
2367 (i386_register_reggroup_p): New function.
2368 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2369 (_initialize_i386_tdep): Call i386_init_reggroups.
2370 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2373 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2375 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2376 request that's available in *BSD.
2378 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2380 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2383 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2385 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2386 * dummy-frame.c (find_dummy_frame): Rename
2387 generic_find_dummy_frame, make static. Return the dummy frame
2388 instead of the regcache.
2389 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2390 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2391 (dummy_frame_register_unwind): Rename
2392 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2393 * dummy-frame.h (dummy_frame_register_unwind): Rename
2394 generic_call_dummy_register_unwind.
2396 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2398 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2399 except the inclusion of "i386/tm-i386.h", to...
2400 * config/i386/nm-i386v42mp.h: ...here.
2401 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2403 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2405 * Makefile.in (frame.o): Update dependencies.
2406 * blockframe.c (current_frame, frame_obstack_alloc)
2407 (frame_saved_regs_zalloc, get_current_frame)
2408 (set_current_frame, create_new_frame)
2409 (set_unwind_by_pc, get_next_frame)
2410 (flush_cached_frames, reinit_frame_cache)
2411 (frame_saved_regs_register_unwind)
2412 (deprecated_generic_get_saved_register)
2413 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2414 (_initialize_blockframe): Move frame code from here...
2415 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2416 "annotate.h" and "dummy-frame.h".
2417 (_initialize_frame): New function.
2419 2002-11-08 Jim Blandy <jimb@redhat.com>
2421 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2422 when we finish a function a context.
2423 * buildsym.h (outermost_context_p): New macro.
2424 (Bug analyzed by David Edelsohn.)
2426 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2428 * blockframe.c: Include "dummy-frame.h".
2429 (struct dummy_frame, dummy_frame_stack)
2430 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2431 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2432 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2433 (generic_save_call_dummy_addr, generic_pop_current_frame)
2434 (generic_pop_dummy_frame, generic_fix_call_dummy)
2435 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2436 dummy frame code from here...
2437 * dummy-frame.c: ...to here. New file.
2438 * dummy-frame.h: New file.
2439 (generic_call_dummy_register_unwind): Declare.
2440 (generic_find_dummy_frame): Declare.
2441 * Makefile.in (SFILES): Add dummy-frame.c.
2442 (dummy-frame.o): Specify dependencies.
2443 (dummy_frame_h): Define.
2444 (COMMON_OBS): Add dummy-frame.o.
2445 (blockframe.o): Update dependencies.
2447 2002-11-08 Jim Blandy <jimb@redhat.com>
2449 * dwarf2read.c (read_func_scope): Restore local_symbols and
2450 param_symbols after we finish the function context. (Based on a
2451 patch from David Edelsohn.)
2453 2002-11-08 David Carlton <carlton@math.stanford.edu>
2455 * linespec.c (symbol_found): New function.
2456 (minsym_found): New function.
2457 (decode_line_1): Separate out some code into separate functions.
2459 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2461 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2462 the benefit of the interix target.
2463 * i386-tdep.h (i386_frameless_signal_p): Declare.
2465 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2467 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2468 declaration that snuck in from change below.
2470 2002-11-06 Andrew Cagney <cagney@redhat.com>
2472 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2474 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2475 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2476 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2477 (i386_mxcsr_regnum_p): new function. Use instead of
2479 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2480 (i386_sse_regnum_p): Declare.
2481 (i386_mxcsr_regnum_p): Declare.
2482 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2483 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2484 (IS_FP_REGNUM): Update definition.
2485 (IS_FPU_CTRL_REGNUM): Update definition..
2486 (IS_SSE_REGNUM): Update definition..
2487 * i386v-nat.c (register_u_addr): Update.
2488 * go32-nat.c (fetch_register): Update.
2489 (store_register): Update.
2491 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2493 Preparation work to convert the hppa targets to multiarch partial.
2495 * hppa-tdep.c: Add new functions replacing macro bodies from
2496 config/pa/tm-hppa.h. These function will be used to initialize
2497 the gdbarch structure. Import some comments from tm-hppa.h,
2498 and place them where appropriate, to avoid loosing them when
2499 we cleanup this file.
2500 (hppa_reg_struct_has_addr): New function.
2501 (hppa_inner_than): New function.
2502 (hppa_stack_align): New function.
2503 (hppa_pc_requires_run_before_use): New function.
2504 (hppa_instruction_nullified): New function.
2505 (hppa_register_byte): New function.
2506 (hppa_register_virtual_type): New function.
2507 (hppa_store_struct_return): New function.
2508 (hppa_cannot_store_register): New function.
2509 (hppa_frame_args_address): New function.
2510 (hppa_frame_locals_address): New function.
2511 (hppa_smash_text_address): New function.
2512 (hppa_coerce_float_to_double): New function. Requires the inclusion
2515 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2517 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2518 gdbarch-eligible macro to a call to the new associated function
2519 created in hppa-tdep.c.
2520 (INNER_THAN): Likewise.
2521 (STACK_ALIGN): Likewise.
2522 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2523 (INSTRUCTION_NULLIFIED): Likewise.
2524 (REGISTER_BYTE): Likewise.
2525 (REGISTER_VIRTUAL_TYPE): Likewise.
2526 (STORE_STRUCT_RETURN): Likewise.
2527 (CANNOT_STORE_REGISTER): Likewise.
2528 (FRAME_ARGS_ADDRESS): Likewise.
2529 (FRAME_LOCALS_ADDRESS): Likewise.
2530 (SMASH_TEXT_ADDRESS): Likewise.
2531 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2532 (ABOUT_TO_RETURN): Delete, as no longer used.
2534 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2536 * printcmd.c (disassemble_command): Remove obsolete function.
2537 (_initialize_printcmd): Do not create disassemble command here.
2538 * cli/cli-cmds.c (disassemble_command): New function. Implements
2539 disassemble command.
2540 (init_cli_cmds): Create disassemble command here instead.
2542 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2544 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2546 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2548 * regcache.h (regcache_cooked_read_using_offset_hack)
2549 (regcache_cooked_write_using_offset_hack): Delete declarations.
2550 (register_changed): Delete declaration.
2551 * regcache.c (regcache_cooked_read_using_offset_hack)
2552 (regcache_cooked_write_using_offset_hack): Delete functions.
2553 (cooked_xfer_using_offset_hack): Delete function.
2554 (register_changed): Delete function.
2556 2002-11-07 Jim Blandy <jimb@redhat.com>
2558 * macroscope.c: #include "complaints.h".
2559 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2560 but not in the macro table.
2561 * Makefile.in (macroscope.o): Record dependency.
2563 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2565 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2567 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2569 * regcache.c (deprecated_registers_fetched): Update.
2570 * regcache.h (deprecated_registers_fetched): Rename
2572 * remote-vxsparc.c (vx_read_register): Update.
2573 * remote-vxmips.c (vx_read_register): Update.
2574 * remote-vx68.c (vx_read_register): Update.
2575 * irix5-nat.c (fetch_core_registers): Update.
2576 * mipsm3-nat.c (fetch_inferior_registers): Update.
2577 * sun3-nat.c (fetch_inferior_registers): Update.
2578 * symm-nat.c (fetch_inferior_registers): Update.
2579 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2580 (fetch_core_registers): Update.
2581 (fetch_kcore_registers): Update.
2582 * mips-nat.c (fetch_inferior_registers): Update.
2583 * corelow.c (get_core_registers): Update.
2584 * a68v-nat.c (fetch_inferior_registers): Update.
2586 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2588 Put in place the framework necessary for multiarching the hppa targets.
2589 * hppa-tdep.c (hppa_gdbarch_init): New function.
2590 (hppa_dump_tdep): New function.
2591 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2592 tdep structure dumper.
2593 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2594 until the multi-arching conversion has partially been completed.
2596 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2598 * valops.c (value_assign): Merge lval_register case into
2599 lval_reg_frame_relative. Use frame_register and
2600 regcache_cooked_write instead of get_saved_register and
2601 write_register_bytes. After flushing the register cache, try to
2602 re-select the selected frame.
2604 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2606 * regcache.h (deprecated_register_valid): Rename register_valid.
2607 * regcache.c: Update.
2608 * ia64-aix-nat.c: Update.
2609 * i386gnu-nat.c: Update.
2610 * alpha-nat.c: Update.
2611 * sparc-nat.c: Update.
2612 * lynx-nat.c: Update.
2613 * remote-mips.c: Update.
2615 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2617 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2618 to end of file, to be more consistent with the pratice followed
2621 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2623 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2624 (print_float_info): Print registers in float_reggroup.
2625 (print_vector_info): Print registers in vector_reggroup.
2626 (default_print_registers_info): When all, print registers in
2627 all_reggroup. Otherwize, print registers in general_reggroup.
2628 (registers_info): Rewrite. Add support for register groups.
2631 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2633 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2635 (symtab_symbol_info): Remove eons old ifdeffed out code.
2636 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2639 2002-11-06 Theodore A. Roth <troth@openavr.org>
2641 * c-exp.y: Add missing semi-colons.
2642 * f-exp.y: Add missing semi-colons.
2643 * m2-exp.y: Add missing semi-colons.
2644 * p-exp.y: Add missing semi-colons.
2645 Add empty action to start rule to avoid a type clash error when
2646 building with bison >= 1.50.
2648 2002-11-06 Jim Blandy <jimb@redhat.com>
2650 * macrotab.h (struct macro_source_file): Doc fix.
2652 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2654 * varobj.c (child_exists, cplus_number_of_children): Change
2655 STREQ macro references to strcmp.
2656 (cplus_name_of_child): Change code to handle the fact that
2657 fields are not necessarily contiguous with regards to their
2658 access control. This is a fix for PR gdb/792.
2660 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2662 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2663 * gdbarch.h, gdbarch.c: Regnerate.
2664 * frame.h (frame_register): Declare.
2665 * frame.c (frame_register): New function.
2666 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2667 GET_SAVED_REGISTER, otherwize call
2668 generic_unwind_get_saved_register.
2669 (frame_register_read): Use frame_register instead of
2672 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2674 From Jim Ingham <jingham@apple.com>:
2675 * event-top.c (gdb_disable_readline): New function.
2676 (_initialize_event_loop): Move comment.
2678 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2680 * event-loop.c (start_event_loop): Add comment.
2683 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2685 * infcmd.c (default_print_registers_info): Do not call
2686 PRINT_REGISTER_HOOK.
2688 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2690 * sparc-tdep.c (sparc_print_register_hook): Make static.
2691 (sparc_print_registers_info): New function.
2692 (sparc_do_registers_info): New function.
2693 (sparclet_print_registers_info): New function.
2694 (sparclet_do_registers_info): New function.
2695 (do_sparc_print_registers_info): New function.
2696 (sparc_print_registers): New static function, clone of infcmd.c's
2697 default_print_registers_info.
2698 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2699 (sparclet_do_registers_info): Declare.
2700 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2701 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2703 (sparc_do_registers_info): Declare.
2704 (PRINT_REGISTER_HOOK): Delete macro.
2705 (sparc_print_register_hook): Delete declaration.
2707 2002-11-05 David Carlton <carlton@math.stanford.edu>
2709 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2711 (lookup_symbol_aux_local): New function.
2712 (lookup_symbol_aux_symtabs): New function.
2713 (lookup_symbol_aux_psymtabs): New function.
2715 2002-11-05 David Carlton <carlton@math.stanford.edu>
2717 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2718 previous values of 'objfile' and 'block'.
2720 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2722 * values.c (value_change_enclosing_type): Set
2723 enclosing_type field correctly also for the case where
2724 more memory needs to be allocated.
2726 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2728 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2731 * i387-tdep.c (i387_print_float_info): Replace calls to
2732 register_read and deprecated_read_register_gen with calls to
2733 frame_register_read, and make the necessary adjustments to the
2736 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2738 * gdbarch.sh (register_reggroup_p): Allow default value.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2741 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2743 * regcache.h: Add coment indicating replacements for deprecated
2746 2002-11-02 Andrew Cagney <cagney@redhat.com>
2748 * reggroups.h, reggroups.c: New files.
2749 * regcache.c: Include "reggroups.h".
2750 (enum regcache_dump_what): Add `regcache_dump_groups'.
2751 (regcache_dump): Contract size of the "Type" column. When
2752 specified, dump the register's groups.
2753 (maintenance_print_register_groups): New function.
2754 (_initialize_regcache): Add command `maint print register-groups'.
2755 * Makefile.in (COMMON_OBS): Add reggroups.o
2756 (SFILES): Add reggroups.c.
2757 (reggroups_h): Define.
2758 (regcache.o, gdbarch.o): Update dependencies.
2759 (reggroups.o): Specify dependencies.
2760 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2761 Add opaque declaration for `struct reggroup' in generated .h file.
2762 Include "reggroups.h" in generated .c file.
2763 gdbarch.h, gdbarch.c: Re-generate.
2765 2002-11-02 Andrew Cagney <cagney@redhat.com>
2767 * regcache.h (deprecated_read_register_gen): Rename
2769 (deprecated_write_register_gen): Rename write_register_gen.
2770 * i387-tdep.c: Update.
2771 * x86-64-linux-nat.c: Update
2773 * thread-db.c: Update.
2774 * win32-nat.c: Update.
2775 * mips-tdep.c: Update.
2776 * d10v-tdep.c: Update.
2777 * cris-tdep.c: Update.
2778 * remote-sim.c: Update.
2779 * remote-rdi.c: Update.
2780 * remote-rdp.c: Update.
2783 * blockframe.c: Update.
2784 * x86-64-tdep.c: Update.
2785 * xstormy16-tdep.c: Update.
2786 * sh-tdep.c: Update.
2787 * s390-tdep.c: Update.
2788 * rs6000-tdep.c: Update.
2789 * sparc-tdep.c: Update.
2790 * i386-tdep.c: Update.
2791 * dwarf2cfi.c: Update.
2792 * regcache.c: Update.
2794 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2796 New interix-specific files:
2797 * config/i386/nm-interix.h: New file.
2798 * config/i386/interix.mh: New file.
2799 * config/i386/interix.mt: New file.
2800 * i386-interix-nat.c: New file.
2801 * i386-interix-tdep.c: New file.
2803 2002-11-01 Andrew Cagney <cagney@redhat.com>
2805 * frame.h (deprecated_generic_get_saved_register): Rename
2806 generic_get_saved_register.
2807 * blockframe.c (deprecated_generic_get_saved_register): Update.
2808 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2809 (xstormy16_frame_saved_register): Update.
2810 * sh-tdep.c (sh_gdbarch_init): Update.
2811 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2812 * ia64-tdep.c (ia64_get_saved_register): Update.
2813 * cris-tdep.c (cris_gdbarch_init): Update.
2814 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2815 * arm-tdep.c (arm_gdbarch_init): Update.
2817 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2819 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2821 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2823 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2824 trampolines in sigaction.
2826 2002-10-31 Andrew Cagney <cagney@redhat.com>
2828 * h8300-tdep.c: Include "gdb_assert.h".
2829 (h8300_print_register): Add gdbarch, file and frame parameters.
2830 Use frame_read_unsigned_register to read the register's value.
2831 Use fprintf_filtered to display output.
2832 (h8300_print_registers_info): Replace h8300_do_registers_info.
2833 (h8300_gdbarch_init): Set print_registers_info.
2835 2002-10-31 Andrew Cagney <cagney@redhat.com>
2837 * frame.c (frame_read_unsigned_register): New function.
2838 (frame_read_signed_register): New function.
2839 * frame.h (frame_read_unsigned_register): Declare.
2840 (frame_read_signed_register): Declare.
2842 2002-10-31 Andrew Cagney <cagney@redhat.com>
2844 * h8500-tdep.c (h8500_print_registers_info): New static function,
2845 clone of infcmd.c's default_print_registers_info.
2846 (h8500_do_registers_info): New funtion.
2847 (h8500_print_register_hook): Rename print_register_hook, make
2850 * config/h8500/tm-h8500.h: Update copyright.
2851 (DEPRECATED_DO_REGISTERS_INFO): Define.
2852 (h8500_do_registers_info: Declare.
2853 (PRINT_REGISTER_HOOK): Delete macro.
2854 (print_register_hook): Delete function.
2856 2002-10-31 Andrew Cagney <cagney@redhat.com>
2858 * z8k-tdep.c (z8k_print_register_hook): Make static.
2859 (z8k_print_registers_info): New static function, clone of
2860 infcmd.c's default_print_registers_info.
2861 (z8k_do_registers_info): New function. Wrap
2862 z8k_print_registers_info.
2863 * config/z8k/tm-z8k.h: Update copyright.
2864 (PRINT_REGISTER_HOOK): Delete macro.
2865 (z8k_print_register_hook): Delete declaration.
2866 (DEPRECATED_DO_REGISTERS_INFO): Define.
2867 (z8k_do_registers_info): Declare.
2869 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2871 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2872 as this is already provided by value.h, and was actually causing
2873 a compilation error because of a conflict in parameter type
2874 declaration due to a missing const keyword.
2875 (low_text_segment_addres): Fix a compilation warning.
2877 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2879 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2880 registers without a name.
2881 (mips_linux_cannot_store_register): Don't store registers without
2884 2002-10-28 David Carlton <carlton@math.stanford.edu>
2886 * symtab.c (find_addr_symbol): Delete. (It was already commented
2888 * symtab.h: Delete prototype for find_addr_symbol.
2890 2002-10-26 Andrew Cagney <cagney@redhat.com>
2892 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2894 gdbarch.h, gdbarch.c: Re-generate.
2895 * infcmd.c (default_print_registers_info): Update reference.
2896 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2897 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2898 * sh-tdep.c (sh_gdbarch_init): Ditto.
2899 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2900 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2902 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2904 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2905 cfi_init_extra_frame_info.
2906 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2907 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2909 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2910 target where necessary. Add more comments and remove the ones
2911 that don't provide any useful information.
2913 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2914 deprecated_read_register_dummy with
2915 frame_unwind_unsigned_register.
2917 * i386-tdep.c (i386_extract_struct_value_address): Use
2918 regcache_raw_read_unsigned instead of
2919 regcache_cooked_read_unsigned since we know that the register
2920 we're reading isn't a pseudo register. Rename variable 'val' into
2921 the more descriptive 'addr'.
2923 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2924 (x86_64_push_return_address): Add comment.
2925 (x86_64_pop_frame): Make static.
2926 (examine_argument): Clarify comment.
2927 (x86_64_skip_prologue): Make prolog_expact variable static.
2929 * dwarf2cfi.c: Fix some formatting problems.
2930 (context_cpy, read_encoded_pointer): Clarify comments.
2932 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2933 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2934 i386 target back into x86_64_gdbarch_init. Add some comments and
2935 remove meaningless ones.
2937 2002-10-25 Andrew Cagney <cagney@redhat.com>
2939 * complaints.h (struct deprecated_complaint): Rename `struct
2941 * complaints.c (complain): Update.
2942 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2943 incorrect comment indicating that "symfile.h" was being included
2944 for the `struct complaint' definition.
2945 * remote-vx.c: Update.
2946 * objc-lang.c: Update.
2947 * xcoffread.c: Update.
2949 * mdebugread.c: Update.
2950 * stabsread.c: Update.
2951 * dwarf2read.c: Update.
2952 * dwarfread.c: Update.
2953 * elfread.c: Update.
2954 * coffread.c: Update.
2955 * stabsread.h: Update.
2956 * dbxread.c: Update.
2957 * buildsym.c: Update.
2958 * gdbtypes.c: Update.
2959 * macrotab.c: Update.
2961 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2963 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2964 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2965 (x86_64_init_abi): ...new function.
2967 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2968 * i386v-nat.c: Include "i386-tdep.h".
2970 2002-10-25 Andrew Cagney <cagney@redhat.com>
2972 * gdbtypes.c (address_space_name_to_int): Update.
2973 (address_space_int_to_name): Update.
2974 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2975 multi-arch predicate.
2976 (address_class_name_to_type_flags): Ditto.
2977 * gdbarch.h, gdbarch.c: Re-generate.
2979 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2981 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2983 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2985 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2987 * symtab.h (INIT_SAL): Delete macro.
2989 * symtab.c (init_sal): New function.
2991 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2992 to init_sal function call.
2993 (find_sal_from_funcs_and_line): Ditto.
2994 (all_sals_for_line): Ditto.
2995 * breakpoint.c (create_internal_breakpoint): Ditto.
2996 (create_fork_vfork_event_catchpoint): Ditto.
2997 (create_exec_event_catchpoint): Ditto.
2998 (parse_breakpoint_sals): Ditto.
2999 (watch_command_1): Ditto.
3000 (handle_gnu_4_16_catch_command): Ditto.
3001 (clear_command): Ditto.
3002 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3003 * infcmd.c (run_stack_dummy): Ditto.
3004 * infrun.c (process_event_stop_test): Ditto.
3005 (check_sigtramp2): Ditto.
3006 (step_over_function): Ditto.
3007 * linespec.c (decode_line_2): Ditto.
3008 (decode_line_1): Ditto.
3009 * source.c (line_info): Ditto.
3010 * symtab.c (find_pc_sect_line): Ditto.
3012 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3014 * dwarf2cfi.c (struct context)
3015 (struct context_reg): Moved to dwarf2cfi.h
3016 (context_alloc, frame_state_alloc, context_cpy):
3017 Made extern instead of static, removed prototypes.
3018 * dwarf2cfi.h (struct context)
3019 (struct context_reg): New, moved from dwarf2cfi.c
3020 (context_alloc, frame_state_alloc, context_cpy):
3022 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3023 Changed from static to extern.
3024 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3025 (LINUX_SIGCONTEXT_FP_OFFSET)
3026 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3027 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3028 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3029 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3030 set_gdbarch_*() calls now use x86-64 specific functions
3031 instead of DWARF2 CFI ones.
3032 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3033 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3034 (x86_64_init_extra_frame_info): New prototypes.
3036 2002-10-23 David Carlton <carlton@math.stanford.edu>
3038 * linespec.c: #include "parser-defs.h".
3039 Delete prototype for find_template_name_end.
3040 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3042 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3044 * NEWS: add recent mi fixes.
3045 * varobj.c (struct varobj): Add new "updated" flag.
3046 (new_variable): Default "updated" flag to 0.
3047 (varobj_set_value): Set "updated" flag to 1 if value
3049 (varobj_update): Check varobj "updated" flag before
3050 comparing old and refreshed values. Fix for
3053 2002-10-23 David Carlton <carlton@math.stanford.edu>
3055 * parse.c (parse_exp_1): Use BLOCK_START.
3056 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3058 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3060 2002-10-23 David Carlton <carlton@math.stanford.edu>
3062 * symtab.c: Delete cplusplus_hint.
3063 Delete prototype for find_template_name_end.
3065 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3067 * symtab.h: Update comment.
3069 2002-10-23 Michael Snyder <msnyder@redhat.com>
3071 * printcmd.c (address_info): Restore quotes in output.
3072 * valops.c (value_of_local): Restore quotes in error message.
3074 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3076 * symtab.c (symbol_demangled_name): New function.
3077 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3078 turning most of it into a function.
3079 (symbol_demangled_name): Export.
3081 2002-10-23 Michael Snyder <msnyder@redhat.com>
3083 * valops.c (value_of_local): Restore quotes in error message.
3085 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3087 * symtab.c (symbol_init_language_specific): New function.
3088 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3089 turning most of it into a function.
3090 (symbol_init_language_specific): Export.
3092 2002-10-23 David Carlton <carlton@math.stanford.edu>
3094 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3095 (dwarf_attr_name): Ditto.
3096 (dwarf_type_encoding_name): Ditto.
3097 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3098 (process_die): Handle DW_TAG_namespace,
3099 DW_TAG_imported_declaration, DW_TAG_imported_module.
3100 (read_namespace): New function.
3102 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3104 * configure.in: Define NEW_PROC_API on Interix too.
3105 * configure: Regenerate.
3107 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3109 * configure: Regenerate using the proper version of autoconf.
3111 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3113 * findvar.c (read_var_value): Temporarily disable TLS code, until
3114 complete TLS support is added.
3116 2002-10-21 Jim Blandy <jimb@redhat.com>
3117 Elena Zannoni <ezannoni@redhat.com>
3119 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3120 for thread local storage locations.
3121 (struct symbol): Add objfile field.
3122 (SYMBOL_OBJFILE): Define.
3123 * dwarf2read.c (is_thread_local): New static variable.
3124 (new_symbol): If variable is in thread local fill in address class
3125 and objfile appropriately.
3126 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3128 * printcmd.c (address_info): Print the information for thread
3129 local storage variable.
3130 * findvar.c (read_var_value): In case of thread local variable,
3131 defer to the target vector code to compute address.
3133 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3135 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3136 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3138 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3140 * symtab.h (address_class): Rename
3141 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3142 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3143 * printcmd.c (address_info): Ditto.
3144 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3146 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3148 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3149 DBREG_DRX macro to acces debug registers.
3151 * Makefile.in (i386obsd-tdep.o): New target.
3153 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3154 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3156 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3157 * config/i386/obsd.mt: New file.
3158 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3159 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3160 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3161 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3162 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3163 * i386obsd-tdep.c: New file.
3165 2002-10-19 Adam Fedor <fedor@gnu.org>
3167 * objc-exp.y (name_not_typename): Fix invalid comment.
3169 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3171 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3172 to allocate partial syms and macro byte caches.
3174 2002-10-18 David Carlton <carlton@math.stanford.edu>
3176 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3178 2002-10-18 Adam Fedor <fedor@gnu.org>
3180 * stabsread.c (find_name_end): New function.
3181 (define_symbol): Use it.
3183 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3185 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3186 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3187 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3188 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3190 2002-10-17 David Carlton <carlton@math.stanford.edu>
3192 * symfile.h: Add opaque declaration for struct obstack.
3193 Declare obsavestring to take a const char *.
3194 * symfile.c (obsavestring): Make first argument a const char *.
3196 2002-10-16 Adam Fedor <fedor@gnu.org>
3198 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3199 names when matching breakpoints in current file.
3201 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3203 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3204 (read_tag_pointer_type): Add address class support.
3205 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3206 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3208 * gdbarch.h, gdbarch.c: Regenerate.
3209 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3210 (make_type_with_address_space, recursive_type_dump): Add address
3212 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3213 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3214 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3216 2002-10-16 Klee Dienes <kdienes@apple.com>
3218 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3219 to get the last character of a char[] buffer, not
3220 name[sizeof(vptr_name)-1].
3222 2002-10-14 Adam Fedor <fedor@gnu.org>
3224 * symtab.h: New objc_specific struct.
3225 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3226 (SYMBOL_DEMANGLED_NAME): Likewise.
3228 2002-10-14 Adam Fedor <fedor@gnu.org>
3230 * symfile.c (init_filename_language_table): Add ObjC file extension.
3232 2002-10-14 Adam Fedor <fedor@gnu.org>
3234 * utils.c (puts_filtered_tabular): New function.
3235 (fprintf_symbol_filtered): Get ObjC demangled name.
3236 * defs.h (puts_filtered_tabular): Declared.
3238 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3240 * c-lang.h (c_type_print_varspec_prefix): Delete.
3241 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3242 ``need_post_space'' parameter. Adjust all callers.
3244 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3246 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3247 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3248 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3249 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3251 2002-10-13 Adam Fedor <fedor@gnu.org>
3253 * source.c (print_source_lines): Update comments.
3255 2002-10-13 Adam Fedor <fedor@gnu.org>
3257 * valops.c (value_of_local): New function.
3258 (value_of_this): Use it.
3259 * value.h (value_of_local): Declared.
3261 2002-10-13 Adam Fedor <fedor@gnu.org>
3263 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3264 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3266 2002-10-12 Adam Fedor <fedor@gnu.org>
3268 * language.c (binop_result_type): Add language_objc to case.
3269 (integral_type): Likewise.
3270 (character_type): Likewise.
3271 (string_type): Likewise.
3272 (boolean_type): Likewise.
3273 (structured_type): Likewise.
3274 (binop_type_check): Likewise.
3276 2002-10-11 Adam Fedor <fedor@gnu.org>
3278 * printcmd.c (address_info): Print 'self' for ObjC.
3280 2002-10-11 Adam Fedor <fedor@gnu.org>
3282 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3285 2002-10-11 Adam Fedor <fedor@gnu.org>
3287 * language.h (CAST_IS_CONVERSION): Add language_objc.
3289 2002-10-11 Adam Fedor <fedor@gnu.org>
3291 * defs.h (enum language): Add language_objc.
3293 2002-10-11 Klee Dienes <kdienes@apple.com>
3295 * corefile.c (read_memory_typed_address): New function.
3296 * gdbcore.h (read_memory_typed_address): Add prototype.
3297 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3298 to read a value destined for a CORE_ADDR, not read_memory_integer.
3299 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3300 (f77_get_dynamic_lowerbound): Ditto.
3302 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3304 * utils.c (string_to_core_addr): After turning string into
3305 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3306 which will do necessary sign-extension, etc.
3308 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3310 * c-exp.y (THIS): Delete token and grammar rule.
3311 (yylex): Don't return THIS.
3312 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3313 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3314 * demangle.c (cplus_markers): Update comment. Put '$'
3315 first. Remove CPLUS_MARKER.
3316 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3317 * jv-exp.y (THIS): Delete token and grammar rule.
3318 (yylex): Don't return THIS.
3319 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3320 * objc-exp.y (THIS): Delete token and grammar rule.
3321 (yylex): Don't return THIS.
3322 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3323 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3324 (read_member_functions): Likewise for opname.
3325 (read_tilde_fields): Use is_cplus_marker.
3327 * defs.h (CPLUS_MARKER): Don't define.
3328 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3329 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3330 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3331 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3332 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3334 * config/i386/tm-i386v4.h: Delete file.
3335 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3336 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3337 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3338 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3339 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3340 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3341 * config/i386/i386v4.mt (TM_FILE): Likewise.
3342 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3344 2002-10-10 Marko Mlinar <markom@opencores.org>
3346 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3347 accidentially not commited 2002-10-09
3348 * gdbarch.h, gdbarch.c: Re-generate.
3350 2002-10-09 Marko Mlinar <markom@opencores.org>
3352 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3353 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3354 * gdbarch.h, gdbarch.c: Re-generate.
3356 2002-10-08 Petr Sorfa <petrs@caldera.com>
3358 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3360 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3361 so we can work on more than one compilation unit at a time. This
3362 helps prepare GDB to handle inter-CU die references.
3363 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3364 the code to be defined before struct comp_unit_head.
3365 (comp_unit_head): Added new members - offset, cu_head,
3366 begin_die, next and dwarf2_abbrevs.
3367 (dwarf2_abbrevs): Removed single static var; now member of
3368 struct comp_unit_head.
3369 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3371 (psymtab_to_symtab_1): Changed to work with the new
3372 struct comp_unit_head.
3373 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3374 constructs the dwarf2_abbrevs[] inside the cu_header.
3375 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3376 dwarf2_abbrev table to clean up.
3377 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3378 handling of dwarf2_abbrevs inside the cu_header.
3379 (read_partial_die): Now supports the call to the new
3380 dwarf2_lookup_abbrev.
3381 (read_full_die): Now supports the call to the new
3382 dwarf2_lookup_abbrev.
3384 2002-10-06 Christopher Faylor <cgf@redhat.com>
3386 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3387 insure that shell variables, such as "transformed_name" are propagated
3388 to later shell statements in rule.
3390 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3392 * config/i386/nm-i386sco.h: Add protection against
3393 multiple-inclusion. Include "i386/nm-i386v.h".
3394 (REGISTER_U_ADDR): Remove define.
3395 (i386_register_u_addr): Remove prototype.
3397 2002-10-04 Michael Snyder <msnyder@redhat.com>
3399 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3400 before treating it as a single-step event.
3402 2002-10-03 Adam Fedor <fedor@gnu.org>
3404 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3405 (objc_demangle): Remove assignment in if statements, Replace
3407 (add_msglist): Likewise.
3408 (end_msglist): Likewise.
3409 (complare_selectors): Likewise.
3410 (selectors_info): Likewise.
3411 (compare_classes): Likewise.
3412 (classes_info): Likewise.
3413 (print_object_command): Likewise.
3414 (find_objc_msgcall_submethod): Replace PTR with void *.
3415 * objc-lang.h: Remove check for __STDC__.
3417 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3419 * ui-out.h (ui_out_field_fmt_int): New prototype.
3420 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3421 of field width and alignment.
3422 * stack.c (print_frame_info_base): When printing frame level, use
3423 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3426 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3428 * MAINTAINERS: Add self to Write After Approval list.
3430 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3432 * infcmd.c (interrupt_target_command_wrapper): Delete.
3433 (interrupt_target_command): Make non static.
3434 (nofp_registers_info): Make static.
3435 * stack.c (return_command_wrapper): Delete.
3436 (return_command): Make non static.
3438 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3440 * event-top.c (gdb_setup_readline): New function. Code moved from
3441 _initialize_event_loop().
3442 (_initialize_event_loop): Call gdb_setup_readline().
3444 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3446 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3447 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3448 * gdbarch.h, gdbarch.c: Re-generate.
3450 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3453 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3455 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3456 of fill_in_vptr_fieldno.
3458 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3460 * inferior.h (registers_info, stepi_command, nexti_command,
3461 continue_command, interrupt_target_command): Export from infcmd.c.
3462 * frame.h (args_info, selected_frame_level_changed_hook,
3463 return_command): Export from stack.c.
3464 * v850ice.c (stepi_command, nexti_command, continue_command): use
3465 prototypes from inferior.h.
3466 * tracepoint.c (registers_info, args_info, locals_info): Use
3467 prototypes from frame.h and inferior.h.
3468 * Makefile.in (mi-main.o): Add dependency on frame.h.
3470 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3472 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3473 value in register 3 adjusted by ppc_gp0_regnum.
3475 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3477 2002-10-02 Marko Mlinar <markom@opencores.org>
3479 * MAINTAINERS: Add myself to the Write After Approval list.
3481 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3483 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3484 of the section for the N64 ABI, fixed.
3486 * config/mips/tm-irix6.h: Include solib.h.
3488 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3490 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3493 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3495 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3496 and that "mi0" syntax has been removed.
3498 2002-09-30 David Carlton <carlton@math.stanford.edu>
3500 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3501 * ppc-sysv-tdep.c: #include "gdb_string.h".
3502 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3505 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3507 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3508 "vrsave"'s register number.
3510 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3512 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3513 use frame_unwind_signed_register to obtain the PC.
3514 (mips_frame_chain): Handle a generic dummy frame.
3515 (mips_init_extra_frame_info): When a generic dummy frame, don't
3516 re-compute the frame base.
3517 (mips_pop_frame): Handle generic dummy frames.
3518 (mips_gdbarch_init): When generic dummy frames, set
3519 use_generic_dummy_frames, push_dummy_frame to
3520 generic_push_dummy_frame, pc_in_call_dummy to
3521 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3522 generic_save_dummy_frame_tos.
3524 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3526 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3527 against TOP when TOP was explictly set.
3528 (generic_push_dummy_frame): Set TOP to zero.
3530 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3532 * event-loop.c (start_event_loop): Rename variable 'result' to
3533 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3535 2002-09-30 Keith Seitz <keiths@redhat.com>
3537 * gdb-events.sh (selected_thread_changed): New event.
3538 * gdb-events.c: Regenerated.
3539 * gdb-events.h: Regenerated.
3541 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3543 * MAINTAINERS: Add self to Write After Approval list.
3545 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3547 * disasm.c: New file.
3548 * disasm.h: New file.
3549 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3550 (compare_lines): Ditto.
3551 (dump_insns): Ditto.
3552 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3554 (do_assembly_only): Ditto.
3555 (do_disassembly): Renamed to gdb_disassembly and moved to
3556 disasm.c. Sdded uiout argument.
3557 * Makefile.in: Add new files. Reorder SFILES list. Update
3558 dependencies. Include libgdb.a later in the insight executable.
3560 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3562 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3563 bfd/elf64-alpha-fbsd.c.
3565 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3567 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3570 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3572 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3574 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3576 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3577 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3578 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3579 (S_msg_sig_post_reply): Ditto.
3581 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3583 * sh-tdep.c (sh_use_struct_convention): Use definition according
3585 (sh_push_arguments): Store in register with correct endianess.
3586 (sh_default_store_return_value): Ditto.
3587 (sh_gdbarch_init): Set sizeof long double to 8.
3589 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3591 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3592 Fix some whitespace problems.
3594 2002-09-27 David Carlton <carlton@math.stanford.edu>
3596 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3597 (mcore-tdep.o): Ditto.
3598 (ns32k-tdep.o): Ditto.
3599 (ns32knbsd-tdep.o): Ditto.
3601 (vax-tdep.o): Ditto.
3602 * cris-tdep.c: #include "gdb_string.h"
3603 * mcore-tdep.c: Ditto.
3604 * ns32k-tdep.c: Ditto.
3605 * ns32knbsd-tdep.c: Ditto.
3607 * vax-tdep.c: Ditto.
3609 2002-09-27 David Carlton <carlton@math.stanford.edu>
3611 * config/djgpp/fnchange.lst: Add entries for
3612 gdb/testsuite/gdb.c++/m-static files.
3614 2002-09-27 Jim Wilson <wilson@redhat.com>
3616 * MAINTAINERS: Add myself to the Write After Approval list.
3618 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3620 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3623 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3625 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3628 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3630 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3631 (rs6000_struct_return_address): Delete variable.
3632 (rs6000_store_struct_return): Update.
3633 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3634 deprecated_extract_struct_value_address.
3635 (rs6000_frame_align): New function.
3636 (rs6000_gdbarch_init): Set frame_align.
3638 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3640 From Grace Sainsbury <graces@redhat.com>:
3641 * Makefile.in (gdbtk-main.o): New target.
3642 (gdb.o): New target.
3644 (main.o): Update dependencies.
3645 (gdb$(EXEEXT)): Add gdb.o.
3646 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3647 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3648 (SUBDIR_GDBTK_CLEAN): Set.
3649 (install-gdbtk): Install the insight binary.
3650 (uninstall-gdbtk): New target.
3651 (all-gdbtk, clean-gdbtk): New rule.
3652 * top.c (use_windows): Default to zero.
3653 * main.c: Include "main.h".
3655 (struct captured_main_args): Delete.
3656 (gdb_main): New function.
3660 2002-09-25 Andrew Cagney <cagney@redhat.com>
3662 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3663 (frame_map_regnum_to_name): New function.
3664 (frame_map_name_to_regnum): New function.
3665 * frame.h (frame_map_name_to_regnum): Declare.
3666 (frame_map_regnum_to_name): Declare.
3667 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3668 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3669 * parse.c: Do not include "builtin-regs.h".
3670 (target_map_name_to_register): Delete function.
3671 (write_dollar_variable): Use frame_map_name_to_regnum.
3672 * parser-defs.h (target_map_name_to_register): Delete declaration.
3673 * expprint.c: Include "frame.h".
3674 (print_subexp): Use frame_map_regnum_to_name.
3675 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3676 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3678 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3680 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3681 wasn't saved, and the next innermost frame is a dummy, return the
3682 dummy frame's link register.
3684 2002-09-24 Jim Blandy <jimb@redhat.com>
3686 Fix from Paul Breed:
3687 * main.c (captured_main): Add a `break' after the case for 'b'.
3689 2002-09-24 Keith Seitz <keiths@redhat.com>
3691 * varobj.c (c_type_of_child): Use get_target_type instead
3692 of TYPE_TARGET_TYPE.
3694 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3696 * source.c (get_current_or_default_source_symtab_and_line): Remove
3698 (set_default_source_symtab_and_line): New function. Attempts to
3699 determine a source file to list lines from if one is not currently
3701 (get_current_source_symtab_and_line): Initialize sal.pc and
3703 (set_current_source_symtab_and_line): Mark argument as const.
3704 * source.h: Update declarations and comments.
3705 * linespec.c (decode_line_1): Replace call to removed routine above.
3706 * stack.c (print_frame_info_base): Ditto.
3707 * cli/cli-cmds.c (edit_command): Ditto.
3708 (list_command): Ditto.
3710 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3712 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3713 sal.pc and sal.end fields.
3714 (get_current_or_default_source_symtab_and_line): Ditto.
3715 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3716 so we do not cause a new source symtab to be searched for (reverting an
3717 unintentional change from the 2002-09-20 patch).
3718 * scm-lang.c (scm_unpac): Ditto.
3720 2002-09-21 Andrew Cagney <cagney@redhat.com>
3722 * complaints.c (symfile_explanations): Remove new-line from
3723 ``isolated_message''.
3724 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3725 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3727 2002-09-20 Nick Clifton <nickc@redhat.com>
3729 * NEWS: Announce that V850EA ISA is no longer supported.
3730 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3732 2002-09-20 David Carlton <carlton@math.stanford.edu>
3734 * Makefile.in (c-lang.o): Correct dependencies.
3735 (utils.o): Gather dependencies.
3737 * c-lang.c: #include "gdb_string.h"
3739 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3741 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3742 * cli/cli-cmds.c (list_command): New function. Implements the new
3744 (_init_cli_cmds): Add new command definition.
3745 * gdb.1: Document edit command.
3746 * doc/gdb.texinfo: Document edit command.
3748 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3750 * source.c: Make global variables current_source_symtab and
3751 current_source_line static.
3752 (list_command): Moved to cli/cli-cmds.c.
3753 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3754 (get_first_line_listed): New accessor function.
3755 (get_lines_to_list): New accessor function.
3756 (get_current_source_symtab_and_line): New function. Retrieves the
3757 position in the source code that we consider current.
3758 (get_current_or_default_source_symtab_and_line): New function.
3759 Like the above but attempts to determine a default position if one
3760 is not currently defined.
3761 (set_current_source_symtab_and_line): New function. Sets the source
3762 code position considered current and returns the previously set one.
3763 (clear_current_source_symtab_and_line): Reset stored information about
3764 a current source line.
3765 (_initialize_source): Remove registration for the "list" command and
3767 * source.h: Add declarations for the new functions above.
3768 * symtab.h: Remove declarations for the global variables mentioned
3770 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3771 obtain current source line.
3772 * linespec.c (decode_line_1): Ditto.
3773 * macroscope.c (default_macro_scope): Ditto.
3774 * scm-lang.c (scm_unpac): Ditto.
3775 * stack.c (print_frame_info_base): Ditto.
3776 * symfile.c (clear_symtab_users): Ditto.
3777 * symtab.c (decode_line_spec): Ditto.
3778 * cli/cli-cmds.c (list_command): Moved here from source.c.
3779 (ambiguous_line_spec): Moved here from source.c.
3780 (_init_cli_cmds): Add definition for "list" and its alias.
3781 * Makefile.in: Update dependencies.
3783 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3785 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3786 with what gcc thinks is correct.
3788 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3790 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3791 multiple register push instruction.
3793 2002-09-19 Jim Blandy <jimb@redhat.com>
3795 Add support for distinct host and target character sets.
3796 * charset.c, charset.h: New files.
3797 * c-exp.y: #include "charset.h".
3798 (yylex): Convert character and string literals to the target
3799 character set, before returning them as the semantic value of the
3801 * c-lang.c: #include "charset.h".
3802 (c_emit_char): Use charset-specific methods to recognize
3803 characters with backslash escape forms, to decide which characters
3804 to print literally and which to print using numeric escape
3805 sequences, and to convert target characters to host characters
3807 * utils.c: #include "charset.h".
3808 (no_control_char_error): New function.
3809 (parse_escape): Use charset-specific methods to recognize
3810 backslash escapes, parse `control character' notation, and convert
3811 characters from the host character set to the target character set.
3812 * configure.in: Set the default host character set.
3813 Check where to find iconv, and what its argument types might be.
3814 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3815 * Makefile.in (SFILES): List charset.c.
3816 (COMMON_OBS): List charset.o.
3817 (charset.o): New rule.
3818 (charset_h): New header dependency variable.
3819 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3820 (LIBICONV): New variable, set by configure.
3821 (CLIBS): Include $(LIBICONV) here.
3822 * aclocal.m4, config.in, configure: Regenerated.
3824 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3826 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3829 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3831 * gdb_mbuild.sh: New file.
3833 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3835 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3837 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3839 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3840 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3841 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3842 valops.c, value.h: Revert previous change.
3844 2002-09-18 Michael Snyder <msnyder@redhat.com>
3846 Preliminary support for Objective-C:
3847 * defs.h (language_objc): New enum value.
3848 (puts_filtered_tabular): Declaration only, exported from utils.c.
3849 (skip_quoted): Delete, declared in completer.h.
3850 * c-exp.y: Include completer.h.
3853 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3854 New operator enum values.
3855 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3856 * language.c (binop_result_type): Handle language_objc case.
3857 (integral_type, character_type, string_type, boolean_type,
3858 structured_type, binop_type_check): Ditto.
3859 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3860 (struct objc_specific): Add to general_symbol_info.
3861 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3862 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3863 * parser-defs.h (struct objc_class_str): New struct type.
3864 (start_msglist, end_msglist, add_msglist): Declaration only,
3865 exported from objc-lang.c.
3866 * value.h (value_of_local, value_nsstring,
3867 call_function_by_hand_expecting_type): Exported from valops.c.
3868 * valops.c (find_function_addr): Export.
3869 (call_function_by_hand_expecting_type): New function.
3870 (value_of_local): New function.
3871 * symfile.c (init_filename_language_table): Add ".m" extension
3873 * utils.c (puts_filtered_tabular): New function.
3874 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3875 (set/show demangle): Extend help-string to refer to ObjC.
3876 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3877 * stabsread.c (symbol_reference_defined): Objective-C symbols
3878 may contain colons: make allowances when scanning stabs strings
3880 (objc_find_colon): New function.
3881 * printcmd.c (address_info): If language == objc then print
3882 "self" instead of "this".
3883 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3884 OP_NSSTRING, and OP_SELF.
3885 (prefixify_subexp): Ditto.
3886 * source.c (print_source_lines): Mention objc in comment.
3887 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3890 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3892 * complaints.h: Update copyright.
3893 (struct complaints): Declare.
3894 (struct complaint): Make `message' constant.
3895 (internal_complaint): Declare.
3896 (complaint): Declare.
3897 (complaint_root): Delete declaration.
3898 (symfile_complaints): Delete declaration.
3899 (struct complaints): Add opaque declaration.
3900 (clear_complaints): Add a complaints parameter.
3901 * complaints.c: Update copyright.
3902 (enum complaint_series): Define.
3903 (complaint_root): Delete.
3904 (struct complaints): Define.
3905 (complaint_sentinel, symfile_complaint_book): New variables.
3906 (symfile_explanations, symfile_complaints): New variables.
3908 (get_complaints): New function.
3909 (vcomplaint): New function.
3910 (complaint): New function.
3911 (internal_complaint): New function.
3912 (complain): Call vcomplain with symfile_complaint.
3913 (clear_complaints): Rewrite.
3914 (_initialize_complaints): Use add_setshow_command.
3915 * Makefile.in (complaints.o): Update dependencies.
3916 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3917 to call to clear_complaints.
3918 (new_symfile_objfile, reread_symbols): Ditto.
3919 (oldsyms_complaint): Delete.
3920 (empty_symtab_complaint, unknown_option_complaint): Delete.
3921 (free_named_symtabs): Use complaint instead of complain.
3923 2002-09-18 Michael Snyder <msnyder@redhat.com>
3925 Contributed by Apple Computer, Inc. Merged with current sources
3926 by Adam Fedor <fedor@doc.com> [cagney].
3928 * objc-lang.c: First clean-up round: comments, indentation.
3929 * objc-lang.h: Ditto.
3930 * objc-lang.y: Ditto.
3932 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3934 * maint.c (maintenance_internal_error): Print the parameter as the
3936 (maintenance_internal_warning): New function.
3937 (_initialize_maint_cmds): Add command `maint internal-warning'.
3939 * defs.h (internal_warning, internal_vwarning): Declare.
3940 * utils.c (struct internal_problem): Define.
3941 (internal_vproblem): New function.
3942 (internal_warning): New function.
3943 (internal_vwarning): New function.
3944 (internal_warning_problem, internal_error_problem): New variables.
3945 (internal_verror): Just call internal_vproblem.
3947 2002-09-18 Michael Snyder <msnyder@redhat.com>
3949 * objc-lang.c: New file, support for Objective-C.
3950 Preliminary check-in, not yet integrated into gdb.
3951 * objc-lang.h: New file.
3952 * objc-exp.y: New file.
3954 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3956 * infrun.c (signal_stop_update): Convert definition to ISO C.
3957 (signal_print_update): Ditto.
3958 (signal_pass_update): Ditto.
3959 * inflow.c (terminal_save_ours): Ditto.
3961 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3964 * config/djgpp/fnchange.lst: Handle name clashes between
3965 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3968 * i386-linux-tdep.h: Fix tipo.
3970 2002-09-18 Adam Fedor <fedor@gnu.org>
3972 * MAINTAINERS: Add myself to the Write After Approval list.
3974 2002-09-18 Jim Blandy <jimb@redhat.com>
3976 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3977 texthigh and textlow to reader-specific structs caused
3978 objfile_relocate to miss them. This is fixable, but the work that
3979 the change was supposed to prepare GDB for never got done anyway.
3981 2002-09-18 David Carlton <carlton@math.stanford.edu>
3983 * MAINTAINERS: Alphabetize Write After Approval list.
3985 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3988 * values.c (value_static_field): Call read_var_value.
3990 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3992 * valops.c (hand_function_call): Align the initial stack pointer
3993 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3994 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3996 * mips-tdep.c (mips_frame_align): New function.
3997 (mips_gdbarch_init): Set frame_align.
3998 * gdbarch.sh (FRAME_ALIGN): New method.
3999 * gdbarch.h, gdbarch.c: Re-generate.
4001 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4003 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4006 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4008 * NEWS: Mention that MIPS $fp behavior changed.
4009 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4010 reference to FP_REGNUM.
4011 (mipsnbsd_cannot_store_register): Ditto.
4012 * mips-linux-nat.c: Update copyright.
4013 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4014 (mips_linux_cannot_store_register): Ditto.
4015 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4016 * config/mips/tm-mips.h: Update copyright.
4017 (FP_REGNUM): Delete macro.
4018 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4019 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4020 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4021 (mips_r3041_reg_names, mips_r3051_reg_names)
4022 (mips_r3081_reg_names): Replace "fp" with "".
4025 2002-09-17 Theodore A. Roth <troth@verinet.com>
4027 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4028 generic_read_register_dummy() (PR gdb/703).
4029 (avr_push_return_address): #if 0 out unused vars.
4030 (avr_gdbarch_init): Enable use of avr_push_return_address().
4032 2002-09-17 Michael Snyder <msnyder@redhat.com>
4034 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4035 RTE will take care of it.
4037 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4039 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4040 invalid, return SP_REGNUM.
4042 2002-09-17 Michael Snyder <msnyder@redhat.com>
4044 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4045 point registers without sign extension.
4047 2002-09-17 Andrew Cagney <cagney@redhat.com>
4049 * blockframe.c (deprecated_read_register_dummy): Rename
4050 generic_read_register_dummy.
4051 * frame.c (frame_unwind_signed_register): New function.
4052 (frame_unwind_unsigned_register): New function.
4053 * frame.h (frame_unwind_signed_register): Declare.
4054 (frame_unwind_unsigned_register): Declare.
4055 (deprecated_read_register_dummy): Rename
4056 generic_read_register_dummy.
4058 * h8300-tdep.c (h8300_frame_chain): Update.
4059 (h8300_frame_saved_pc): Update.
4060 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4061 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4062 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4063 (s390_frame_chain): Update.
4064 * v850-tdep.c (v850_find_callers_reg): Update.
4065 (v850_frame_saved_pc): Update.
4066 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4067 (m32r_find_callers_reg): Update.
4068 (m32r_frame_saved_pc): Update.
4069 * sh-tdep.c (sh_find_callers_reg): Update.
4070 (sh64_get_saved_pr): Update.
4071 (sh_init_extra_frame_info): Update.
4072 (sh_init_extra_frame_info): Update.
4073 (sh64_init_extra_frame_info): Update.
4074 (sh64_init_extra_frame_info): Update.
4075 * mcore-tdep.c (mcore_find_callers_reg): Update.
4076 (mcore_frame_saved_pc): Update.
4077 (mcore_init_extra_frame_info): Update.
4078 * i386-tdep.c (i386_frame_saved_pc): Update.
4079 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4080 (ia64_init_extra_frame_info): Update.
4081 (ia64_init_extra_frame_info): Update.
4082 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4083 * cris-tdep.c (cris_init_extra_frame_info): Update.
4084 * avr-tdep.c (avr_frame_chain): Update.
4085 (avr_init_extra_frame_info): Update.
4086 (avr_frame_saved_pc): Update.
4087 * arm-tdep.c (arm_find_callers_reg): Update.
4088 (arm_init_extra_frame_info): Update.
4089 (arm_frame_saved_pc): Update.
4091 2002-09-17 Tom Tromey <tromey@redhat.com>
4093 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4096 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4098 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4099 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4101 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4104 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4106 * osfsolib.c: Remove file, replaced by solib-osf.c.
4107 * Makefile.in: Remove compilation rules for osfsolib.c.
4109 2002-09-16 David Carlton <carlton@math.stanford.edu>
4111 * cp-valprint.c (cp_print_class_method): Correct args to
4112 check_stub_method_group.
4114 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4116 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4117 `set architecture'. Unify naming convention of functions.
4118 (h8300_skip_prologue): Improve prologue analysis.
4119 (h8300_push_arguments): Rewritten to more closely match GCC's
4120 bizarre argument-passing behavior, along with the comment describing
4122 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4123 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4124 sim, remote-e7000.c, remote-hms.c and remote.c
4126 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4128 * i386-tdep.c (gdb_print_insn_i386): Removed.
4129 (i386_print_insn): New function.
4130 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4131 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4134 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4136 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4139 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4141 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4142 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4143 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4145 2002-09-13 Christopher Faylor <cgf@redhat.com>
4147 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4149 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4151 * gdbtypes.c (check_stub_method): Make static.
4152 (check_stub_method_group): New function.
4153 * gdbtypes.h: Update prototypes.
4154 * cp-support.c: New file.
4155 * cp-support.h: New file.
4157 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4158 (update_method_name_from_physname): New function.
4159 (read_member_functions): Correct method names for operators
4160 and v3 constructors/destructors. Separate v2 constructors and
4162 * Makefile.in (stabsread.o): Update dependencies.
4163 (SFILES): Add cp-support.c.
4164 (COMMON_OBS): Add cp-support.o.
4165 (cp_support_h, cp-support.o): Add.
4167 * cp-valprint.c (cp_print_class_method): Call
4168 check_stub_method_group instead of check_stub_method. Remove
4170 * p-valprint.c (pascal_object_print_class_method): Likewise.
4171 * valops.c (search_struct_method): Likewise.
4172 (find_method_list, value_struct_elt_for_reference): Likewise.
4174 2002-09-13 Andrew Cagney <cagney@redhat.com>
4176 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4177 * gdbarch.h, gdbarch.c: Regenerate.
4179 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4181 * frame.c (find_saved_register): Delete function.
4182 * frame.h (find_saved_register): Delete declaration.
4185 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4187 * mips-tdep.c (read_next_frame_reg): Re-hack using
4188 frame_register_unwind.
4190 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4192 * mips-tdep.c (mips_get_saved_register): Re-hack using
4193 frame_register_unwind.
4195 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4197 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4198 vector. Will be useful for Interix.
4199 * gdbarch.h, gdbarch.c: Regenerate.
4201 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4202 name of the malloc function by NAME_OF_MALLOC.
4204 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4206 * value.h (find_function_in_inferior): Add const keyword to
4207 one of the parameters. Allows us to invoke this function with
4209 * valops.c (find_function_in_inferior): Likewise.
4211 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4213 * exec.c (xfer_memory): Fix compilation warning with old versions
4215 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4217 2002-09-12 David Carlton <carlton@math.stanford.edu>
4219 * symtab.h: Run through gdb_indent.h.
4220 Add 2002 to Copyright year list.
4222 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4224 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4226 * MAINTAINERS: Add myself to write after approval list.
4228 2002-09-11 J. Brobecker <brobecker@gnat.com>
4230 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4232 2002-09-11 J. Brobecker <brobecker@gnat.com>
4234 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4237 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4239 * procfs.c (do_detach): Clear current signal, not just fault.
4240 Corrects problem with breakpoint trap signal leaking to detached
4243 2002-09-10 Michael Snyder <msnyder@redhat.com>
4245 * buildsym.c (finish_block): Protect against null pointer.
4247 2002-09-10 Andrew Cagney <cagney@redhat.com>
4249 * infcmd.c (default_print_registers_info): Send all output to
4250 ``file'' instead of ``gdb_stdout''.
4252 2002-09-10 Michael Snyder <msnyder@redhat.com>
4254 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4255 LONGEST, and use signed register read (addresses are sign-
4258 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4260 * event-loop.c (gdb_do_one_event): Make public.
4261 * event-loop.h (gdb_do_one_event): Declare.
4263 2002-09-10 Jeff Law <law@redhat.com>
4265 * infttrace.c (child_resume): Simplify and rework to avoid
4268 2002-09-09 Fred Fish <fnf@intrinsity.com>
4270 * printcmd.c (print_scalar_formatted): "len" is the number of
4271 target bytes, NOT the number of target bits.
4273 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4275 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4276 * top.c (init_main): Set rl_terminal_name.
4278 2002-09-08 Aidan Skinner <aidan@velvet.net>
4280 * ada-lang.c (ada_array_bound, ada_type_match,
4281 _initialize_ada_language): Fix K&R definitions.
4282 * ada-tasks.c (get_current_task): Fix K&R definitions.
4283 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4285 2002-09-07 Christopher Faylor <cgf@redhat.com>
4287 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4290 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4292 * i386-tdep.c (i386_register_virtual_type,
4293 i386_register_convertible, i386_register_convert_to_virtual,
4294 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4295 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4296 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4297 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4298 Don't set push_arguments twice.
4300 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4301 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4302 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4303 sigtramp_end to NULL.
4304 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4306 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4308 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4311 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4312 * gdbarch.h, gdbarch.c: Re-generate.
4313 * blockframe.c (find_pc_sect_partial_function): Convert to use
4314 SIGTRAMP_START_P predicate.
4316 2002-09-05 Michael Snyder <msnyder@redhat.com>
4318 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4319 generic_dummy_frame method and old method. Also distinguish
4320 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4321 (arm_extract_return_value): Use new regcache method.
4323 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4324 adjustment that doesn't conform to the ABI.
4325 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4326 saved regcache, not from current regcache.
4328 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4330 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4333 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4335 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4336 if arm_apcs_32 is false.
4338 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4340 GDB 5.3 branch created.
4342 2002-09-03 Theodore A. Roth <troth@verinet.com>
4344 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4345 generic_unwind_get_saved_register.
4347 2002-09-03 David Carlton <carlton@math.stanford.edu>
4349 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4350 argument (PR gdb/653). Update call to smash_to_method_type.
4351 (read_structure_scope): Update call to dwarf2_add_member_fn.
4353 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4355 * x86-64-linux-tdep.c: Include gdb_string.h
4356 * x86-64-linux-nat.c: Ditto.
4358 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4360 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4361 when YYDEBUG is set to 1.
4362 * c-exp.y: Likewise.
4363 * f-exp.y: Likewise.
4364 * jv-exp.y: Likewise.
4365 * m2-exp.y: Likewise.
4366 * p-exp.y: Likewise.
4368 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4370 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4372 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4373 solib_svr4_fetch_link_map_offsets to
4374 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4375 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4376 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4377 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4378 solib-svr4.o, and solib-legacy.o.
4379 * config/i386/tm-nbsd.h: Include solib.h.
4381 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4383 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4384 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4385 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4386 comment noting that this needs its own target configuration.
4387 * config/i386/nbsd.mt: New file.
4388 * config/i386/nbsdaout.mt: Remove.
4389 * config/i386/nbsdelf.mt: Ditto.
4390 * config/i386/tm-nbsdaout.h: Ditto.
4392 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4394 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4395 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4396 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4398 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4399 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4400 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4402 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4404 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4405 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4406 * i386-tdep.h (i386bsd_init_abi): New prototype.
4407 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4408 function declaration.
4409 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4410 for NetBSD-a.out or NetBSD-ELF.
4411 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4412 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4413 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4414 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4416 (i386nbsd_pc_in_sigtramp): New function.
4417 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4418 i386nbsd_pc_in_sigtramp.
4419 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4420 and i386nbsdelf_init_abi OS ABI handlers.
4421 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4422 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4424 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4426 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4427 registers if the target really has them.
4429 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4431 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4434 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4436 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4438 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4439 (alphanbsd_skip_sigtramp_frame): New functions.
4440 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4441 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4442 to alphanbsd_sigcontext_addr.
4444 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4446 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4448 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4449 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4450 nbsd_pc_in_sigtramp.
4451 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4452 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4453 * nbsd-tdep.c: Include gdb_string.h.
4454 (nbsd_pc_in_sigtramp): New function.
4455 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4456 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4457 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4458 ppcnbsd_pc_in_sigtramp.
4459 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4460 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4461 shnbsd_pc_in_sigtramp.
4462 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4463 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4464 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4466 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4468 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4469 watchpoints to NULL.
4470 (insert_breakpoints): set val field of watchpoints if NULL.
4473 2002-08-29 Jim Blandy <jimb@redhat.com>
4475 * symtab.c (lookup_symbol_aux): In the cases where we find a
4476 minimal symbol of an appropriate name and use its address to
4477 select a symtab to read and search, use `name' (as passed to us)
4478 as the demangled name when searching the symtab's global and
4479 static blocks, not the minsym's name.
4481 2002-08-29 Keith Seitz <keiths@redhat.com>
4483 * stack.c (print_frame_info_base): Always set current_source_symtab
4484 and current_source_line.
4486 2002-08-29 Donn Terry <donnte@microsoft.com>
4488 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4490 2002-08-28 Keith Seitz <keiths@redhat.com>
4492 * stack.c (select_frame): Add FIXME concerning selected-frame
4494 (select_frame_command): Send selected-frame-level-changed
4495 event notification, but only if the level actually changed.
4496 (up_silently_base): Add selected-frame-level-changed event
4498 (down_silently_base): Likewise.
4500 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4502 * Makefile.in: Update dependencies for all gdb/*.c files.
4504 2002-08-27 Tom Tromey <tromey@redhat.com>
4506 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4507 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4508 Update dependencies.
4509 * i387-tdep.c: Include gdb_string.h.
4510 * osabi.c: Likewise.
4511 * i386-linux-nat.c: Likewise.
4512 * lin-lwp.c: Likewise.
4513 * ax-gdb.c: Likewise.
4514 * signals/signals.c: Likewise.
4515 * jv-valprint.c: Likewise.
4516 * p-lang.c: Likewise.
4517 * c-valprint.c: Likewise.
4518 * cp-abi.c: Likewise.
4520 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4522 * cli/cli-script.h (copy_command_lines): Export.
4523 * breakpoint.c: Include cli/cli-script.h.
4524 * Makefile.in (breakpoint.o): Update dependencies.
4526 2002-08-26 Michael Snyder <msnyder@redhat.com>
4528 * breakpoint.c (insert_breakpoints): Protect all references
4529 to 'process_warning'. Shorten long lines.
4531 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4533 * cli/cli-script.c (copy_command_lines): New function.
4534 * defs.h (copy_command_lines): Export.
4535 * testsuite/gdb.base/commands.exp: New tests for commands
4536 attached to a temporary breakpoint, and for commands that
4537 delete the breakpoint they are attached to.
4539 2002-08-26 Michael Snyder <msnyder@redhat.com>
4541 * breakpoint.c (bpstat_stop_status): Instead of copying the
4542 pointer to the breakpoint commands struct, make a new copy
4543 of the struct and point to that.
4544 (bpstat_clear): Free the commands struct.
4545 (bpstat_clear_actions): Free the commands struct.
4546 (bpstat_do_actions): Free the command actions. Also execute
4547 the local cleanups, instead of deleting them.
4548 (delete_breakpoint): Leave the commands field of the bpstat
4549 chain alone -- it will be freed later.
4551 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4553 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4554 deleted in 2002-08-20 commit. This function is still used by
4557 2002-08-26 Keith Seitz <keiths@redhat.com>
4559 * gdb-events.sh: Add selected-frame-level-changed event.
4560 * gdb-events.c: Regenerated.
4561 * gdb-events.h: Regenerated.
4563 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4566 * inflow.c (terminal_save_ours): New function to save terminal
4568 * inferior.h (terminal_save_ours): Declare.
4569 * target.c (debug_to_terminal_save_ours): New function.
4570 (cleanup_target): Defaults to_terminal_save_ours.
4571 (update_current_target): Inherit to_terminal_save_ours.
4572 (setup_target_debug): Set to_terminal_save_ours.
4573 * target.h (target_terminal_save_ours): New to save terminal settings.
4574 (target_ops): New member to_terminal_save_ours.
4575 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4576 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4577 * inftarg.c (init_child_ops): Likewise.
4578 * m3-nat.c (init_m3_ops): Likewise.
4579 * procfs.c (init_procfs_ops): Likewise.
4580 * wince.c (init_child_ops): Likewise.
4581 * win32-nat.c (init_child_ops): Likewise.
4582 * sol-thread.c (init_sol_thread_ops): Likewise.
4584 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4586 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4587 use regcache_* functions.
4588 (i386_gdbarch_init): Set store_return_value instead of
4589 deprecated_store_return_value.
4591 * regcache.c (regcache_raw_write_signed,
4592 regcache_raw_write_unsigned): New functions.
4593 * regcache.h (regcache_raw_write_signed,
4594 regcache_raw_write_unsigned): New prototypes.
4596 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4598 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4599 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4600 source file dependencies. Cleanup corresponding generator rules.
4602 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4604 * regcache.h (register_offset_hack): Declare.
4605 (regcache_cooked_read_using_offset_hack): Declare.
4606 (regcache_cooked_write_using_offset_hack): Declare.
4608 * regcache.c (register_offset_hack): New function.
4609 (regcache_cooked_read_using_offset_hack): New function.
4610 (regcache_cooked_write_using_offset_hack): New function.
4611 (regcache_dump): Check that the registers, according to their
4612 offset, are packed hard against each other.
4613 (cooked_xfer_using_offset_hack): New function.
4615 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4617 * regcache.c (struct regcache_descr): Add field register_type.
4618 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4620 (init_regcache_descr): Initialize register_type. Pass the descr
4621 to init_legacy_regcache_descr. Use register_type instead of
4622 REGISTER_VIRTUAL_TYPE.
4623 (register_type): New function.
4624 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4625 * regcache.h (register_type): Declare.
4627 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4629 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4630 instead of deprecated_store_return_value. Fix fallout from
4631 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4633 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4635 * regcache.c (max_register_size): New function.
4636 (init_legacy_regcache_descr): Ensure that max_register_size is
4637 large enough for REGISTER_VIRTUAL_SIZE.
4638 * regcache.h (max_register_size): Declare.
4640 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4642 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4644 (e500_extract_return_value): Change type of valbuf pointer to
4647 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4649 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4652 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4653 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4654 long long) to prevent compiler warning on 64-bit systems.
4656 2002-08-23 Andrew Cagney <cagney@redhat.com>
4658 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4659 (DEPRECATED_STORE_RETURN_VALUE): New method.
4660 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4661 * gdbarch.h, gdbarch.c: Re-generate.
4663 * values.c (set_return_value): Pass current_regcache to
4665 * arch-utils.h (legacy_store_return_value): Declare.
4666 * arch-utils.c (legacy_store_return_value): New function.
4667 (legacy_extract_return_value): Update parameters.
4669 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4671 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4672 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4673 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4674 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4675 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4676 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4677 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4678 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4679 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4680 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4683 * i386-tdep.c (i386_extract_return_value): Update.
4684 * arch-utils.c (legacy_extract_return_value): Update.
4685 * frv-tdep.c (frv_gdbarch_init): Update.
4686 * cris-tdep.c (cris_gdbarch_init): Update.
4687 * d10v-tdep.c (d10v_gdbarch_init): Update.
4688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4689 * m68k-tdep.c (m68k_gdbarch_init): Update.
4690 * mcore-tdep.c (mcore_gdbarch_init): Update.
4691 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4692 * s390-tdep.c (s390_gdbarch_init): Update.
4693 * sparc-tdep.c (sparc_gdbarch_init): Update.
4694 * sh-tdep.c (sh_gdbarch_init): Update.
4695 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4696 * v850-tdep.c (v850_gdbarch_init): Update.
4697 * avr-tdep.c (avr_gdbarch_init): Update.
4698 * ia64-tdep.c (ia64_gdbarch_init): Update.
4699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4700 * vax-tdep.c (vax_gdbarch_init): Update.
4701 * alpha-tdep.c (alpha_gdbarch_init): Update.
4702 * arm-tdep.c (arm_gdbarch_init): Update.
4703 * mips-tdep.c (mips_gdbarch_init): Update.
4704 * i386-tdep.c (i386_gdbarch_init): Update.
4706 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4708 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4709 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4711 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4713 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4716 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4718 * infrun.c (handle_inferior_event): Move a comment outside of a
4719 function call, in order to avoid indent reformatting this part
4720 of the code in an unreadable way.
4722 2002-08-23 Grace Sainsbury <graces@redhat.com>
4724 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4725 when breakpoints fail. Move general breakpoint error messages to
4727 * breakpoint.c (insert_breakpoints): Change warnings when
4728 breakpoints are nto inserted to specify the type. Remove call to
4729 memory_error when hardware breakpoints can't be inserted. Remove
4730 multiple calls to warning so all messages are sent to the user at
4732 (delete_breakpoints): Make insert error messsages more explicit.
4734 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4736 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4737 gdbserver/ChangeLog.
4739 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4741 * i386-tdep.c: Include "objfiles.h".
4742 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4743 skip_trampoline_code.
4744 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4745 (CPLUS_MARKER): Define to '.'.
4747 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4749 (linux_corefile_thread_callback): Increase args->num_notes.
4750 (linux_make_note_section): Initialize thread_args.num_notes, and
4751 use it to determine whether notes for any threads were created.
4753 2002-08-23 Donn Terry <donnte@microsoft.com>
4755 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4756 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4758 (write_with_trace): Conditionalize out the switch branch handling
4759 PCSHOLD if the corresponding macro is not defined. Likewise for
4760 PRSABORT and PRSTOP.
4761 This change will be needed by the Interix port.
4763 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4766 write_register wherever possible instead of manipulating the
4767 register bytes directly.
4768 Assign VALUE_CONTENTS to a variable and use that.
4769 The GPR numbers are now dependent on the architecture.
4771 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4773 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4775 (skip_prologue): Add support for BookE/e500 instructions.
4776 (e500_extract_return_value): New function.
4777 (frame_get_saved_regs): Add support for saving ev registers and
4779 (e500_store_return_value): New function.
4780 (rs6000_gdbarch_init): Move up default intializations of
4781 deprecated_extract_return_value and store_return_value. Overwrite
4782 init of store_return_value with e500 specific version.
4783 Set extract_return_value for e500.
4785 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4787 * blockframe.c (generic_call_dummy_register_unwind): Use
4788 regcache_cooked_read to catch cases in which the variable is
4789 stored in a pseudo register.
4791 2002-08-22 Andrew Cagney <cagney@redhat.com>
4793 * NEWS: Mention that the i960 has been made obsolete.
4794 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4796 (remote-nrom.o): Obsolete target.
4797 (remote-nindy.o, i960-tdep.o): Ditto.
4798 * remote-nrom.c: Make file obsolete.
4799 * remote-nindy.c, remote-vx960.c: Ditto.
4800 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4801 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4802 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4803 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4804 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4805 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4806 i960-*-vxworks* obsolete.
4807 * MAINTAINERS: Note that the i960 is obsolete.
4809 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4811 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4812 detach to allow reinitialization.
4814 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4816 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4819 2002-08-22 Jim Blandy <jimb@redhat.com>
4821 * coffread.c (coff_symfile_read): Don't try to read the line
4822 number table from disk if the image file doesn't have a symbol
4823 table; we'll never actually look at the info anyway, and Windows
4824 ships DLL's with bogus file offsets for the line number data.
4826 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4828 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4831 2002-08-21 Michael Snyder <msnyder@redhat.com>
4833 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4834 (MSYMBOL_SIZE): Replace macro with function.
4835 (DEFAULT_MIPS_TYPE): Delete unused macro.
4836 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4837 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4839 2002-08-21 Jim Blandy <jimb@redhat.com>
4841 * valops.c (value_cast): Simplify and correct logic for doing a
4842 static cast from a pointer to a base class to a pointer to a
4845 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4847 * infcmd.c (default_print_registers_info): Replace
4849 (registers_info): Use gdbarch_print_registers_info instead of
4851 * inferior.h (default_print_registers_info): Replace
4853 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4854 (DO_REGISTERS_INFO): Change to a predicate function.
4855 * gdbarch.h, gdbarch.c: Regenerate.
4857 2002-08-21 Keith Seitz <keiths@redhat.com>
4859 * gdb-events.sh: Add target-changed event.
4860 * gdb-events.c: Regenerated.
4861 * gdb-events.c: Regenerated.
4862 * valops.c (value_assign): Add target-changed event notification
4863 to inlval_register, lval_memory, and lval_reg_frame_relative.
4865 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4867 * NEWS: Add an entry regarding the improvement of the next/step
4868 operation on Alpha Tru64 multi-processor machines.
4870 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4872 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4874 * Makefile.in: Update all _h macro definitions.
4875 * Makefile.in (install-gdbtk): Move to install section.
4876 (rdi-share/libangsd.a): Move to end of file.
4878 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4880 * frame.c (frame_register_unwind): When a register, set addrp to
4881 the register's byte.
4883 2002-08-20 Michael Snyder <msnyder@redhat.com>
4885 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4886 used locally, so move them from the target machine header to here.
4887 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4888 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4890 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4892 2002-08-20 Andrew Cagney <cagney@redhat.com>
4894 * NEWS: Mention that the Apollo line was made obsolete.
4895 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4896 m68*-hp-hpux* obsolete.
4897 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4898 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4899 * buildsym.c (make_blockvector): Make static.
4900 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4901 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4902 (ALLDEPFILES): Remove dstread.c.
4903 (dstread.o): Obsolete make rule.
4904 * dstread.c: Makefile obsolete.
4906 * config/m68k/hp300hpux.mt: Ditto.
4907 * config/m68k/hp300hpux.mh: Ditto.
4908 * config/m68k/hp300bsd.mt: Ditto.
4909 * config/m68k/hp300bsd.mh: Ditto.
4910 * config/m68k/apollo68b.mt: Ditto.
4911 * config/m68k/apollo68v.mh: Ditto.
4912 * config/m68k/apollo68b.mh: Ditto.
4914 2002-08-20 Michael Snyder <msnyder@redhat.com>
4916 * mips-tdep.c (mips_in_return_stub): Make static.
4917 (mips_gdbarch_init): Set in_solib_return_trampoline.
4918 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4920 2002-08-20 Michael Snyder <msnyder@redhat.com>
4922 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4923 * gdbarch.c, gdbarch.h: Regenerate.
4924 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4926 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4928 2002-08-20 Michael Snyder <msnyder@redhat.com>
4930 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4931 (mips_gdbarch_init): Set skip_trampoline_code,
4932 in_solib_call_trampoline.
4933 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4934 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4936 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4938 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4940 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4941 vector type for ev registers.
4942 (e500_pseudo_register_read): New function.
4943 (e500_pseudo_register_write): New function.
4944 (e500_dwarf2_reg_to_regnum): New function.
4945 (PPC_UISA_NOFP_SPRS): New macro.
4946 (PPC_EV_REGS): New macro.
4947 (PPC_GPRS_PSEUDO_REGS): New macro.
4948 (registers_e500): New register set for e500.
4949 (variants): Add e500 variant.
4950 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4951 before setting architectural dependent variations. Initialize ev
4952 registers numbers. Add case for e500 architecture. Set the
4953 number of pseudo registers.
4955 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4957 * rs6000-tdep.c: Clean up comments.
4959 2002-08-20 Andrew Cagney <cagney@redhat.com>
4961 * h8300-tdep.c: Re-indent file.
4963 2002-08-20 Jim Blandy <jimb@redhat.com>
4965 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4968 2002-08-20 Keith Seitz <keiths@redhat.com>
4970 * breakpoints.c (watch_command_1): Use internal breakpoint
4971 when setting a watchpoint_scope breakpoint.
4973 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4975 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4976 (build_builtin_type_vec64i): Ditto.
4977 (build_builtin_type_vec128): Ditto.
4978 (build_builtin_type_vec128i): Ditto.
4980 2002-08-19 Michael Snyder <msnyder@redhat.com>
4982 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4983 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4984 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4985 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4986 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4987 CALL_DUMMY_ADDRESS): Delete.
4988 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4989 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4990 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4991 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4992 push_return_address.
4993 (mips_register_raw_size, mips_eabi_use_struct_convention,
4994 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4995 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4996 mips_init_extra_frame_info, mips_eabi_push_arguments,
4997 mips_n32n64_push_arguments, mips_push_return_address,
4998 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4999 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5001 2002-08-19 Michael Snyder <msnyder@redhat.com>
5003 * mips-tdep.c (mips_frame_num_args): New function.
5004 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5005 frame_saved_pc, frame_args_address, frame_locals_address,
5006 frame_num_args, and frame_args_skip.
5007 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5008 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5009 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5010 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5012 2002-08-20 Michael Snyder <msnyder@redhat.com>
5014 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5015 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5016 * mips-tdep.c (mips_store_struct_return): New function.
5017 (mips_extract_struct_value_address): New function.
5018 (mips_gdbarch_init): Set store_struct_return and
5019 extract_struct_value_address.
5021 2002-08-20 David Carlton <carlton@math.stanford.edu>
5023 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5024 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5025 (read_file_scope): Check that line_header is nonzero before
5026 decoding macro information.
5028 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5030 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5031 flag the general-purpose registers as floating-point on targets
5032 that don't support the floating-point registers.
5034 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5036 * rs6000-tdep.c (altivec_register_p): Delete.
5037 (rs6000_do_altivec_registers): Delete.
5038 (rs6000_altivec_registers_info): Delete.
5039 (rs6000_do_registers_info): Delete.
5040 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5041 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5043 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5045 * infcmd.c (do_registers_info): Print vector registers in hex
5047 (print_vector_info): Check that printing registers
5049 (print_float_info): Ditto.
5051 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5053 * mips-tdep.c (mips_gdbarch_init): Update.
5054 (mips_o32_extract_return_value): Rewrite.
5055 (mips_o32_store_return_value): Rewrite.
5056 (mips_o32_xfer_return_value): New function.
5057 (mips_xfer_register): Tweak debug print message. Allow for
5058 buf_offset when dumping the value transfered.
5060 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5062 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5063 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5064 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5065 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5066 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5068 2002-08-14 Michael Snyder <msnyder@redhat.com>
5070 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5072 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5074 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5076 (P): New macro to define a register as a pseudo register.
5077 (R, R4, R8, R16, FR32, R64, R0): Updated.
5078 (struct variant): Add new fields for number of pseudo registers
5079 and number of total registers.
5080 (tot_num_registers): New macro replacing....
5081 (num_registers): ...deleted macro.
5082 (num_registers): New function.
5083 (num_pseudo_registers): New function.
5084 (variants): Update all variants to intialize new fields correctly.
5085 Postpone initialization of number of pseudo regs and real regs.
5086 (init_variants): New function.
5087 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5090 2002-08-19 David Carlton <carlton@math.stanford.edu>
5092 * valops.c (search_struct_field): Change error message to treat
5093 return value of 0 from value_static_field as meaning that field is
5095 (value_struct_elt_for_reference): Ditto.
5096 * values.c (value_static_field): Treat an unresolved location the
5097 same as a nonexistent symbol. Fix PR gdb/635.
5098 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5099 enclosed. Fix PR gdb/574.
5100 * MAINTAINERS: Add self to Write After Approval list.
5102 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5104 * mips-tdep.c (mips_xfer_register): New function.
5105 (mips_n32n64_extract_return_value): Rewrite.
5106 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5107 instead of deprecated_extract_return_value.
5109 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5111 * rs6000-tdep.c (TDEP): Delete macro.
5112 (branch_dest): Replace use of TDEP macro with its body.
5113 (rs6000_pop_frame): Ditto.
5114 (rs6000_push_arguments): Ditto.
5115 (rs6000_skip_trampoline_code): Ditto.
5116 (rs6000_frame_saved_pc): Ditto.
5117 (rs6000_frame_chain): Ditto.
5118 (rs6000_register_name): Ditto.
5119 (rs6000_register_byte): Ditto.
5120 (rs6000_register_raw_size): Ditto.
5121 (rs6000_register_virtual_type): Ditto.
5122 (rs6000_register_convertible): Ditto.
5123 (rs6000_convert_from_func_ptr_addr): Ditto.
5125 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5127 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5129 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5130 MIPS_LINUX_JB_ELEMENT_SIZE.
5131 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5132 for MAX_REGISTER_RAW_SIZE arrays.
5133 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5134 MIPS_LINUX_JB_ELEMENT_SIZE.
5136 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5138 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5140 2002-08-19 Aidan Skinner <aidan@velvet.net>
5142 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5143 ada-valprint.c ada-tasks.c.
5144 (YYFILES): Add ada-exp.y.
5145 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5146 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5147 (ada-exp.tab.o): New target.
5149 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5151 * regcache.c (regcache_xfer_part): New function.
5152 (regcache_raw_read_part): New function.
5153 (regcache_raw_write_part): New function.
5154 (regcache_cooked_read_part): New function.
5155 (regcache_cooked_write_part): New function.
5156 * regcache.h (regcache_raw_read_part): Declare.
5157 (regcache_raw_write_part): Declare.
5158 (regcache_cooked_read_part): Declare.
5159 (regcache_cooked_write_part): Declare.
5161 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5163 * remote.c (remote_open_1): Add async_p.
5164 (remote_async_open_1): Delete.
5165 (open_remote_target): Delete.
5166 (remote_open, extended_remote_open): Update calls to remote_open_1.
5167 (remote_async_open, extended_remote_async_open): Call
5168 remote_open_1 instead of remote_async_open_1.
5170 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5172 * blockframe.c: Fix a few coding standard violations.
5174 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5176 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5178 * config/i386/tm-i386sco5.h: ... here. File removed.
5179 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5181 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5182 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5183 (TM_FILE): Set to tm-i386.h.
5184 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5185 * config/i386/tm-i386v.h: Remove file.
5186 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5187 instead of "i386/tm-i386v.h".
5188 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5189 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5191 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5192 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5195 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5197 * config/i386/nm-i386v.h: Add protection against
5199 (i386_register_u_addr): Remove prototype.
5200 (register_u_addr): New prototype.
5201 (REGISTER_U_ADDR): Redefine accordingly.
5202 * i386v-nat.c: Improve several comments.
5203 (i386_register_u_addr): Change signature and rename to
5204 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5207 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5209 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5210 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5211 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5212 deprecated_extract_return_value.
5213 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5214 rename mips_o32o64_push_arguments.
5215 (mips_gdbarch_init): Update.
5216 (mips_extract_return_value): Delete.
5217 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5218 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5219 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5220 (mips_n32n64_extract_return_value): Clone
5221 mips_extract_return_value.
5222 (mips_store_return_value): Delete.
5223 (mips_o32_store_return_value): Clone mips_store_return_value.
5224 (mips_o64_store_return_value): Clone mips_store_return_value.
5225 (mips_eabi_store_return_value): Clone mips_store_return_value.
5226 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5228 2002-08-18 Aidan Skinner <aidan@velvet.net>
5230 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5231 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5233 2002-08-18 Aidan Skinner <aidan@velvet.net>
5235 * ada-lang.c: Run through gdb_indent.sh.
5236 * ada-lang.h: Run through gdb_indent.sh.
5237 * ada-tasks.c: Run through gdb_indent.sh.
5238 * ada-typeprint.c: Run through gdb_indent.sh.
5239 * ada-valprint.c: Run through gdb_indent.sh.
5241 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5243 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5246 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5248 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5250 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5251 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5253 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5254 write_register_gen instead of write_register_bytes.
5256 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5257 i[3456]-*-osf1mk* configurations have been made obsolete.
5258 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5259 i[3456]86-*-osf1mk* hosts obsolete.
5260 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5262 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5263 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5264 config/i386/i386m3.mt, config/i386/nm-m3.h,
5265 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5266 config/i386/i386mk.mh, config/i386/i386mk.mt,
5267 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5269 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5270 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5271 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5273 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5275 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5276 (hppa_value_returned_from_stack): Declare.
5277 (hppa_extract_return_value): Declare.
5278 * config/pa/hppa.mt: New file.
5279 * configure.tgt: Recognize hppa*-*-*.
5280 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5282 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5284 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5287 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5289 * top.c (gdb_rl_operate_and_get_next): Make sure
5290 operate-and-get-next functions correctly even when the history
5291 list is completely filled.
5293 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5295 * MAINTAINERS (Target Instruction Set Architectures): Rename
5296 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5297 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5298 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5299 already listed under Host/Native.
5301 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5302 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5305 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5307 * config/ia64/ia64.mt: New file.
5308 * config/alpha/alpha.mt: New file.
5309 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5310 ia64-linux-gnu. Mention that ia64-elf is broken.
5311 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5313 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5315 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5316 generic_func_frame_valid instead of func_frame_valid.
5318 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5320 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5321 procfs appears to be broken when debugging on multi-processor
5322 machines. So enable software single stepping in order to avoid
5323 using the procfs interface to do next/step operations, using
5324 internal breakpoints instead.
5326 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5327 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5328 make this pc address equal to the value it would have if the
5329 system stepping capability was used. Also set a new flag used
5330 to ensure that we don't readjust the PC one more time later.
5332 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5333 address by DECR_PC_AFTER_BREAK when software single step is
5334 in use for this architecture, as this has already been taken
5335 care of in handle_inferior_event().
5337 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5339 * infrun.c (handle_inferior_event): Minor reformatting, to make
5340 a rather long condition expression easier to read.
5342 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5344 * Makefile.in (gdbtk.o): Move to end of file.
5345 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5346 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5347 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5348 (gdbtk-wrapper.o, gdbres.o): Ditto.
5350 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5352 * Makefile.in (copying.o): Separate out compile rule.
5353 (hpux-thread.o, procfs.o, signals.o): Ditto.
5354 (v850ice.o, z8k-tdep.o): Ditto.
5355 (tui-file.o): Move to TUI section.
5356 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5357 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5359 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5361 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5362 skip_trampoline_code, for better namespace-proofing.
5364 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5366 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5368 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5370 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5372 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5373 signal, check whether we hit a breakpoint before checking for a
5374 single step breakpoint. Otherwise, GDB fails to notice that a
5375 breakpoint has been hit when stepping onto a breakpoint.
5377 2002-08-16 Keith Seitz <keiths@redhat.com>
5379 * gdb-events.sh (clear_gdb_event_hooks): New function.
5380 * gdb-events.c: Regenerate.
5381 * gdb-events.h: Regenerate.
5383 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5385 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5386 not_a_sw_breakpoint.
5387 * breakpoint.h (bpstat_stop_status): Add parameter names.
5389 2002-08-16 Grace Sainsbury <graces@redhat.com>
5391 * remote.c (remote_insert_hw_breakpoint)
5392 (remote_remove_hw_breakpoint): Fix calculation of length field
5395 2002-08-15 Michael Snyder <msnyder@redhat.com>
5397 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5398 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5399 (supply_fpregset): Ditto.
5401 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5402 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5403 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5404 (TARGET_READ_SP): Delete.
5405 (DO_REGISTERS_INFO): Delete.
5406 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5408 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5409 from macros to functions.
5411 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5412 (mips_register_convertible, mips_register_convert_to_virtual,
5413 mips_register_convert_to_raw): Make static.
5414 (mips_read_sp): New function.
5415 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5416 (mips_do_registers_info): Make static.
5417 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5418 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5419 (mips_register_convert_from_type, mips_register_convert_to_type):
5421 (mips_gdbarch_init): Set up function_start_offset,
5422 register_virtual_size, pc_in_sigtramp.
5424 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5426 * infcmd.c (vector_info): New function.
5427 (_initialize_infcmd): Add command "info vector".
5428 (print_vector_info): New function.
5430 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5431 * gdbarch.h, gdbarch.c: Regenerate.
5433 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5435 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5436 ``print_all''. Only print vector registers when ``print_all''.
5438 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5440 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5441 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5443 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5444 Add `args' parameter.
5445 * gdbarch.h, gdbarch.c: Regenerate.
5447 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5449 * infcmd.c (float_info): Call print_float_info.
5450 (print_float_info): New function. By default, print the
5451 floating-point registers.
5453 * arch-utils.h (default_print_float_info): Delete declaration.
5454 * arch-utils.c (default_print_float_info): Delete function.
5456 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5458 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5461 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5464 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5465 * configure.host: Make i[3456]86-*-aix host obsolete.
5466 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5467 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5468 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5469 config/i386/xm-i386aix.h: Make files obsolete.
5470 * i386aix-nat.c: Make file obsolete.
5471 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5472 (i386aix-nat.o): Make target obsolete.
5474 * config/i386/nm-gnu.h: Removed.
5475 * config/i386/nm-i386gnu.h: New file.
5476 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5477 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5479 * config/i386/tm-i386gnu.h: ... here. Removed.
5480 * config/i386/xm-i386gnu.h: Removed.
5481 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5482 (NAT_FILE): Set to nm-i386gnu.h.
5483 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5484 * i386-tdep.c: New file.
5485 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5486 (i386gnu-tdep.o): Specify dependencies.
5488 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5490 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5491 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5492 Adjust a few comments to reflect reality a bit closer.
5493 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5494 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5495 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5496 target_insert_watchpoint, target_remove_watchpoint):
5498 * config/i386/nm-i386sco5.h: ... here.
5499 (kernel_u_size): Add prototype. Improve a few comments and add
5500 protection against multiple inclusion.
5502 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5505 * uw-thread.c (SP_ARG0): Define if not already defined.
5506 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5508 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5510 * config/i386/tm-i386.h: Don't include "regcache.h".
5512 * i387-tdep.h (i387_print_float_info): New prototype.
5513 * i387-tdep.c (print_i387_value, print_i387_ext,
5514 print_i387_status_word, print_i387_control_word): Add `struct
5515 ui_file *' argument and use it for output.
5516 (i387_print_float_info): Renamed from i387_float_info. Add
5517 `struct gdbarch *' and `struct ui_file *' arguments and use the
5519 * i386-tdep.c: Include "i387-tdep.h".
5520 (i386_gdbarch_init): Set print_float_info.
5521 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5522 (FLOAT_INFO): Remove define.
5524 2002-08-13 Michael Snyder <msnyder@redhat.com>
5526 * mips-tdep.c (mips_push_arguments): Rename to
5527 mips_eabi_push_arguments, and tune for EABI.
5528 (MIPS_REGS_HAVE_HOME_P): Delete.
5529 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5530 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5531 Delete references to mips_regs_have_home_p.
5533 2002-08-14 Keith Seitz <keiths@redhat.com>
5535 * Makefile.in (install-gdbtk): Create insight plugin directory.
5536 Install plugins.tcl file.
5538 2002-08-14 Keith Seitz <keiths@redhat.com>
5540 * configure.in: Move SUBDIRS to near top of the file so that
5541 --enable options may add things to it.
5542 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5543 * configure: Regenerate.
5545 2002-08-13 Michael Snyder <msnyder@redhat.com>
5547 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5548 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5549 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5551 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5553 * vax-tdep.c (vax_get_saved_register): Delete function.
5554 (vax_gdbarch_init): Update.
5555 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5556 (ns32k_gdbarch_init): Update.
5557 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5558 (alpha_gdbarch_init): Update.
5560 2002-08-13 Andrew Cagney <cagney@redhat.com>
5562 * regcache.c (init_regcache_descr): Overallocate the
5563 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5564 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5566 (set_register_cached): Add range checking assertions. Use
5569 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5571 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5572 numbers for MMX registers.
5574 2002-08-13 Andrew Cagney <cagney@redhat.com>
5576 * i386-tdep.c (i386_gdbarch_init): Use
5577 generic_unwind_get_saved_register.
5579 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5581 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5582 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5584 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5585 Delete. Add comment regarding this now-deleted target method.
5587 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5589 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5590 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5591 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5592 real PC and the page number (if it's within the memory bank window).
5593 (m68hc11_pseudo_register_write): Likewise when saving.
5594 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5595 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5596 (m68hc11_register_raw_size): And use 32-bit for it.
5597 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5598 16K memory bank is used by the prog; also use the virtual pc.
5600 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5602 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5603 (m68hc11_gdbarch_init): Install it in gdbarch.
5604 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5605 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5606 (MSYMBOL_SIZE): New for documentation.
5607 (insn_return_kind): Enum to specify how a function returns.
5608 (frame_extra_info): Cleanup and record the return mode.
5609 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5610 register in address computation.
5611 (m68hc11_get_return_insn): New to obtain the return instruction used
5613 (m68hc11_frame_init_saved_regs): Take into account the return
5614 instruction used by the function for far and interrupt functions.
5615 (m68hc11_init_extra_frame_info): Take into account page register.
5616 (m68hc11_frame_args_address): Adjust according to the return mode.
5617 (show_regs): Print page register only when it's used.
5619 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5621 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5622 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5623 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5625 (m68hc11_register_raw_size): Likewise.
5627 2002-08-13 Andrew Cagney <cagney@redhat.com>
5629 * i386-tdep.c (i386_register_name): Handle mmx registers.
5630 (mmx_regnum_p): New function.
5631 (i386_mmx_names): New array.
5632 (mmx_num_regs): New variable.
5633 (i386_pseudo_register_read): New function.
5634 (i386_pseudo_register_write): New function.
5635 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5637 * regcache.c (regcache_raw_read_unsigned): New function.
5638 (regcache_raw_read_signed): New function.
5639 * regcache.h (regcache_raw_read_unsigned): Declare.
5640 (regcache_raw_read_signed): Declare.
5642 2002-08-13 Andrew Cagney <cagney@redhat.com>
5644 * regcache.c (regcache_raw_read_as_address): Delete function.
5645 (regcache_cooked_read_signed): New function.
5646 (regcache_cooked_read_unsigned): New function.
5647 * regcache.h (regcache_cooked_read_signed): Declare.
5648 (regcache_cooked_read_unsigned): Declare.
5649 (regcache_raw_read_as_address): Delete declaration.
5651 * blockframe.c (generic_read_register_dummy): Use
5652 regcache_cooked_read_unsigned.
5653 * i386-tdep.c (i386_extract_struct_value_address): Use
5654 regcache_cooked_read_unsigned.
5656 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5659 double sizes according to ELF ABI flags.
5660 (gdbarch_tdep): Record elf_flags.
5662 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5664 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5665 (m6812_prolog): They can appear in 68HC12 function prologue.
5666 (m68hc11_frame_chain): Cleanup.
5668 2002-08-12 Andrew Cagney <cagney@redhat.com>
5670 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5672 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5673 (i386_linux_register_raw_size): Delete function.
5674 (i386_linux_init_abi): Update.
5675 * i386-tdep.c (i386_register_raw_size): Delete function.
5676 (i386_register_byte): Delete function.
5677 (i386_gdbarch_init): Update.
5678 (i386_register_size): Delete array.
5679 (i386_register_offset): Delete array.
5681 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5682 (REGISTER_RAW_SIZE): Delete macro.
5683 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5684 (REGISTER_BYTE): Delete macro.
5686 2002-08-11 Aidan Skinner <aidan@velvet.net>
5688 * ada-lang.c (ada_lookup_partial_symbol)
5689 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5690 prototype names so that grep ^func works properly.
5692 * ada-lang.c (ada_array_element_type)
5693 (ada_lookup_partial_symbol): Fix typos in parameter list.
5695 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5696 Fix prototype names so that grep ^func works properly.
5698 2002-08-10 Andrew Cagney <cagney@redhat.com>
5699 Elena Zannoni <ezannoni@redhat.com>
5700 Martin M. Hunt <hunt@redhat.com>
5702 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5703 (build_builtin_type_vec128i): Set the vector bit.
5704 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5705 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5706 (build_builtin_type_vec64): New function.
5707 (build_builtin_type_vec64i): New function.
5708 (build_gdbtypes): Initialize builtin_type_vec64 and
5709 builtin_type_vec64i.
5711 2002-08-09 Andrew Cagney <cagney@redhat.com>
5713 * regcache.c (regcache_dump): Compare the register offset
5715 * arch-utils.c (generic_register_byte): New function.
5716 * arch-utils.h (generic_register_byte): Declare.
5717 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5718 * gdbarch.h, gdbarch.c: Regenerate.
5720 2002-08-09 Andrew Cagney <cagney@redhat.com>
5722 * regcache.c: Include "gdbcmd.h"
5723 (_initialize_regcache): Add commands "maintenance print
5724 registers", "maintenance print raw-registers" and "maintenance
5725 print cooked-registers".
5726 (enum regcache_dump_what): Define.
5727 (dump_endian_bytes): New function.
5728 (regcache_dump): New function.
5729 (regcache_print): New function.
5730 (maintenance_print_registers): New function.
5731 (maintenance_print_raw_registers): New function.
5732 (maintenance_print_cooked_registers): New function.
5733 * Makefile.in (regcache.o): Update dependencies.
5735 2002-08-09 Michael Snyder <msnyder@redhat.com>
5737 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5738 (mips_push_arguments): Correct some comments. Use paddr_nz
5739 for printing addresses in debug output. Replace static
5740 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5741 (mips_n32n64_push_arguments): New function, cloned from
5742 mips_push_arguments and tuned for the n32/n64 ABI.
5743 (mips_push_register): Buffer needs dynamic allocation.
5744 (mips_print_register): Ditto.
5745 (do_gp_register_row): Ditto.
5746 (mips_store_return_value): Ditto.
5747 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5749 2002-08-09 Don Howard <dhoward@redhat.com>
5751 * memattr.c (mem_info_command): Print special case of upper bound
5752 as max CORE_ADDR + 1.
5754 2002-08-08 Michael Snyder <msnyder@redhat.com>
5756 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5757 returns structs by ref if they're too big to fit in two registers.
5759 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5761 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5763 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5764 mips_find_saved_regs().
5765 (mips_pop_frame): Likewise.
5767 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5769 * blockframe.c (frame_saved_regs_register_unwind): Revise
5770 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5773 2002-08-09 Grace Sainsbury <graces@redhat.com>
5775 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5776 T-packets; the 'a' is not taken as a register number.
5777 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5778 (remote_stopped_data_address): New functions; add to target
5780 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5781 prototypes to match other implementations of this
5782 function. replace integer argument with pointer -- the length
5783 field in the Z-packet is the length of what is pointed to or 1 if
5784 pointer is null. Add to target vector.
5785 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5789 * remote.c (remote_wait): Add support to extract optional
5790 watchpoint information from T-packet. Ignore unrecognized
5791 optional info in T-packet.
5792 (remote_async_wait): Ditto.
5794 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5796 * cli/cli-dump.c: Change fopen modes to use binary open modes
5797 as defined in include/fopen-bin.h throughout.
5799 2002-08-08 Michael Snyder <msnyder@redhat.com>
5801 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5803 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5805 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5806 assertion failure by returning early after a warning.
5808 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5810 * mips-tdep.c (mips_find_saved_regs): Make static.
5811 (mips_frame_init_saved_regs): New function.
5812 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5813 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5814 (mips_find_saved_regs): Delete declaration.
5816 2002-08-08 Grace Sainsbury <graces@redhat.com>
5818 * remote.c (remote_wait, remote_async_wait): Change
5819 thread_num from int to ULONGEST.
5820 (unpack_varlen_hex): Change result parameter from
5821 int * to ULONGEST *.
5823 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5825 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5826 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5828 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5830 2002-08-08 Andrew Cagney <cagney@redhat.com>
5832 * gcore.c (override_derive_stack_segment): Delete variable.
5833 (preempt_derive_stack_segment): Delete function.
5834 (derive_stack_segment): Delete function.
5835 (default_derive_stack_segment): Renamed to derive_stack_segment.
5836 (override_derive_heap_segment): Delete variable.
5837 (preempt_derive_heap_segment): Delete function.
5838 (derive_heap_segment): Delete function.
5839 (default_derive_heap_segment): Rename to derive_heap_segment.
5841 2002-08-06 Michael Snyder <msnyder@redhat.com>
5843 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5844 * mips-tdep.c (mips_EABI_use_struct_convention,
5845 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5846 New functions. (mips_use_struct_convention): Delete.
5847 (mips_gdbarch_init): set use_gdbarch_convention.
5849 2002-08-06 Michael Snyder <msnyder@redhat.com>
5851 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5852 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5853 mips_o32_reg_struct_has_addr): New functions.
5854 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5856 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5858 * regcache.c (pseudo_register): Delete function.
5859 (fetch_register): Delete function.
5860 (store_register): Delete function.
5861 (regcache_raw_read, legacy_read_register_gen): Use
5862 target_fetch_registers instead of fetch_register.
5863 (legacy_write_register_gen, regcache_raw_write): Use
5864 target_store_register instead of store_register.
5865 (write_register_bytes): Ditto.
5867 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5868 (STORE_PSEUDO_REGISTER): Delete.
5869 * gdbarch.h, gdbarch.c: Regenerate.
5871 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5873 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5874 write dump file binary.
5876 2002-08-05 Michael Snyder <msnyder@redhat.com>
5878 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5879 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5880 (mips_gdbarch_init): Set N32 target to be mips64.
5882 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5884 * frame.c (find_saved_register): Break out of loop once saved
5885 register address is found. Don't mention sparc in loop comment
5888 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5890 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5891 mips_default_saved_regsize to 8.
5893 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5895 * gcore.c: Do not include <sys/procfs.h>.
5896 * Makefile.in (gcore.o): Update dependencies.
5898 2002-08-06 Andrew Cagney <cagney@redhat.com>
5900 * configure.tgt: Make arc-*-* obsolete.
5901 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5902 * MAINTAINERS: Make arc-elf obsolete.
5903 * arc-tdep.c: Make file obsolete.
5904 * config/arc/arc.mt: Ditto.
5905 * config/arc/tm-arc.h: Ditto.
5907 2002-08-05 Theodore A. Roth <troth@verinet.com>
5909 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5911 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5913 * mcore-tdep.c (mcore_gdbarch_init): Use
5914 generic_unwind_get_saved_register instead of
5915 generic_get_saved_register.
5916 * v850-tdep.c (v850_gdbarch_init): Ditto.
5917 * frv-tdep.c (frv_gdbarch_init): Ditto.
5918 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5919 * s390-tdep.c (s390_gdbarch_init): Ditto.
5920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5921 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5922 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5924 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5926 * objfiles.h: Add missing #include "symfile.h"
5928 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5930 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5932 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5933 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5936 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5938 * NEWS: Cleanup and nitpick.
5940 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5942 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5944 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5946 * Makefile.in (gdbtk-bp.o): Update dependencies.
5947 (gdbtk-register.o): Ditto.
5948 (gdbtk-varobj.o): Ditto.
5950 2002-08-03 Andrew Cagney <cagney@redhat.com>
5952 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5953 m68hc11_fetch_pseudo_register.
5954 (m68hc11_pseudo_register_write): Replace
5955 m68hc11_store_pseudo_register.
5956 (m68hc11_gdbarch_init): Update.
5958 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5960 * gdbarch.sh: Include "gdb_string.h".
5961 * gdbarch.c: Regenerate.
5963 * regcache.c: Include "gdb_string.h".
5964 * ax-general.c: Ditto.
5966 * std-regs.c: Ditto.
5967 * fbsd-proc.c: Ditto.
5970 * Makefile.in (regcache.o): Update dependencies.
5971 (thread.o, gdbarch.o): Ditto.
5972 (ax-general.o, gdbarch.o): Ditto.
5973 (varobj.o, std-regs.o): Ditto.
5974 (fbsd-proc.o): Specify dependencies.
5976 2002-08-02 Andrew Cagney <cagney@redhat.com>
5978 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5980 (regcache_cooked_write): Ditto.
5982 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5984 * regcache.c (regcache_cooked_read): New function.
5985 (regcache_cooked_write): New function.
5986 (read_register_gen): Rewrite using regcache_cooked_read.
5987 (write_register_gen): Rewrite using regcache_cooked_write.
5989 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5992 2002-08-02 Andrew Cagney <cagney@redhat.com>
5994 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5995 Replace the architecture methods register_read and register_write.
5996 * gdbarch.h, gdbarch.c: Regenerate.
5997 * regcache.c (init_regcache_descr): Update.
5998 (read_register_gen): Update.
5999 (write_register_gen): Update.
6000 (supply_register): Update comment.
6002 * sh-tdep.c (sh_gdbarch_init): Update.
6003 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6004 `regcache' and `gdbarch' parameters. Make `buffer' a void
6005 pointer. Update code.
6006 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6007 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6008 void pointer. Update code.
6009 (sh64_register_write): Delete.
6010 (sh4_register_read): Delete.
6011 (sh64_register_read): Delete.
6012 (sh4_register_write): Delete.
6013 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6014 void pointer, `to' parameter a void pointer.
6015 (sh_sh64_register_convert_to_raw): Ditto.
6017 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6019 * mips-tdep.c (mips_register_virtual_type): Use architecture
6020 invariant return values.
6022 2002-08-01 Andrew Cagney <cagney@redhat.com>
6024 * linux-proc.c: Include "gdb_string.h".
6025 * Makefile.in (linux-proc.o): Update dependency list.
6027 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6029 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6032 2002-08-01 Grace Sainsbury <graces@redhat.com>
6034 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6035 to_insert_watchpoint, to_remove_watchpoint,
6036 to_stopped_by_watchpoint, to_stopped_data_address,
6037 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6038 target vecctor. Define their corresponding macros so they call
6041 * target.c: Add default and debug versions of for
6042 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6043 to_insert_watchpoint, to_remove_watchpoint,
6044 to_stopped_by_watchpoint, to_stopped_data_address,
6045 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6047 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6049 * mips-tdep.c (mips_register_virtual_type): New function.
6050 (mips_gdbarch_init): Register mips_register_virtual_type()
6051 with gdbarch machinery.
6052 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6053 this file instead of tm-bigmips.h.
6054 (MIPS_REGSIZE): Delete this macro.
6055 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6056 multiarch version in mips-tdep.c will be found.
6058 2002-08-01 Andrew Cagney <cagney@redhat.com>
6060 * NEWS: Menion that CHILL has been made obsolete.
6062 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6063 * stabsread.c (read_range_type): Ditto.
6064 * gdbtypes.h: Ditto.
6065 * language.c (binop_type_check): Ditto.
6066 (binop_result_type): Ditto.
6067 (integral_type): Ditto.
6068 (character_type): Ditto.
6069 (string_type): Ditto.
6070 (boolean_type): Ditto.
6071 (structured_type): Ditto.
6072 (lang_bool_type): Ditto.
6073 (binop_type_check): Ditto.
6074 * language.h (_LANG_chill): Ditto.
6075 * dwarfread.c (set_cu_language): Ditto.
6076 * dwarfread.c (CHILL_PRODUCER): Ditto.
6077 * dwarfread.c (handle_producer): Ditto.
6078 * expression.h (enum exp_opcode): Ditto.
6079 * eval.c: Ditto for comments.
6080 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6081 * expprint.c (print_subexp): Ditto.
6082 (print_subexp): Ditto.
6083 * valops.c (value_cast): Ditto.
6084 (search_struct_field): Ditto.
6085 * value.h (COERCE_VARYING_ARRAY): Ditto.
6086 * symfile.c (init_filename_language_table): Ditto.
6087 (add_psymbol_with_dem_name_to_list): Ditto.
6088 * valarith.c (value_binop): Ditto.
6090 * valops.c (value_slice): Ditto.
6091 * symtab.h (union language_specific): Ditto.
6092 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6093 (SYMBOL_DEMANGLED_NAME): Ditto.
6094 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6095 * defs.h (enum language): Ditto.
6096 * symtab.c (got_symtab): Ditto.
6097 * utils.c (fprintf_symbol_filtered): Ditto.
6099 * ch-typeprint.c: Make file obsolete.
6100 * ch-valprint.c: Make file obsolete.
6101 * ch-lang.h: Make file obsolete.
6102 * ch-exp.c: Make file obsolete.
6103 * ch-lang.c: Make file obsolete.
6105 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6107 (TARGET_FLAGS_TO_PASS): Ditto.
6108 (CHILLFLAGS): Obsolete.
6110 (CHILL_FOR_TARGET): Obsolete.
6111 (CHILL_LIB): Obsolete.
6112 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6114 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6115 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6117 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6120 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6122 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6123 This does not change anything at the moment, but will be helpful
6124 later when full Ada support is integrated.
6126 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6128 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6131 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6133 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6134 and save it in a local variable. Use variable in later test.
6136 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6138 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6139 test. (Thanks to Daniel Jacobowitz.)
6141 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6143 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6144 (mips_abi_strings): Add "n64".
6145 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6147 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6149 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6150 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6152 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6154 * utils.c (host_pointer_to_address, address_to_host_pointer):
6155 Use gdb_assert() instead of explicit call to internal_error().
6157 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6159 * Makefile.in (rs6000-nat.o): Update dependencies.
6161 From Nicholas Duffek:
6162 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6163 (aix-thread.o): New rule.
6164 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6165 * config/powerpc/aix432.mh: New file.
6167 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6169 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6170 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6171 (fetch_core_registers, ppc_linux_supply_gregset)
6172 (ppc_linux_supply_fpregset): New functions.
6173 (ppc_linux_regset_core_fns): New.
6174 (_initialize_ppc_linux_tdep): Call add_core_fns.
6175 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6176 and ppc_linux_supply_gregset.
6177 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6178 (supply_fpregset): Call ppc_linux_supply_fpregset.
6179 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6181 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6183 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6185 * symtab.c (lookup_symbol): Demangle before lowercasing.
6187 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6189 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6191 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6192 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6193 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6194 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6196 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6197 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6198 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6199 (avr-tdep.o, mon960-rom.o): Ditto.
6200 (aout_stabs_gnu_h): Define.
6201 (symtab_h): Remove $(gdb_obstack_h).
6203 2002-07-30 Jim Blandy <jimb@redhat.com>
6205 Patch from David Carlton <carlton@math.stanford.edu>:
6206 * gdbinit.in: Move the `dir' commands that add GDB's own source
6207 directory to the search path to the end, so that the `gdb' source
6208 directory will be searched first.
6210 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6212 * gdb_obstack.h: New file.
6213 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6214 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6215 * objfiles.h: Include "gdb_obstack.h".
6216 * Makefile.in (gdb_obstack_h): Define.
6217 (symtab_h): Add $(gdb_obstack_h).
6218 (objfiles_h): Add $(gdb_obstack_h).
6220 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6221 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6222 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6223 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6224 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6225 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6226 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6227 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6229 * Makefile.in (bcache.o): Update dependencies.
6230 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6231 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6232 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6233 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6234 (stabsread.o, symfile.o, symmisc.o): Ditto.
6235 (symtab.o, typeprint.o, macroexp.o): Ditto.
6236 (macrotab.o, mdebugread.o): Ditto.
6237 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6238 (coff_ecoff_h, aout_aout64_h): Define.
6239 (aout_stabs_gnu_h, libaout_h): Define.
6241 2002-07-29 Andrew Cagney <cagney@redhat.com>
6243 * regcache.c (struct regcache_descr): Rename nr_registers to
6244 nr_cooked_registers. Revise comments describing the structure
6246 (init_regcache_descr): Update.
6247 (init_legacy_regcache_descr): Update.
6248 (read_register_gen, write_register_gen): When a cooked register in
6249 the raw register range, directly access the value from the raw
6252 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6254 * z8k-tdep.c: Do not include "obstack.h".
6255 * h8300-tdep.c, h8500-tdep.c: Ditto.
6256 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6257 * valprint.c, v850-tdep.c: Ditto.
6258 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6259 * mn10200-tdep.c: Ditto.
6261 * Makefile.in (z8k-tdep.o): Update dependencies.
6262 (m68hc11-tdep.o, valprint.o): Ditto.
6263 (v850-tdep.o, d10v-tdep.o): Ditto.
6264 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6265 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6266 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6267 (sh_opc_h, gdb_sim_sh_h): Define.
6268 (elf_sh_h, elf_bfd_h): Define.
6269 (opcode_m68hc11_h): Define.
6270 (OPCODES_SRC, OPCODES_DIR): define.
6271 (OPCODES): Use $(OPCODES_DIR).
6272 (gdb_sim_d10v_h): Rename sim_d10v_h.
6273 (gdb_sim_arm_h): Rename sim_arm_h.
6275 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6277 * utils.c (host_pointer_to_address, address_to_host_pointer):
6278 Change internal_error() message to indicate function responsible
6281 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6283 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6284 calls to local_hex_string_custom().
6286 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6288 * irix5-nat.c: Move IRIX shared library support from here...
6289 * solib-irix.c: ...to here. Revised substantially to work with
6290 generic solib framework.
6292 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6293 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6294 * mips-irix-tdep.c: New file.
6296 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6297 (mips-irix-tdep.o, solib-irix.o): New rules.
6298 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6300 * config/mips/irix6.mt (TDEPFILES): Likewise.
6301 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6303 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6305 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6306 disabled (via ``#if 0'') includes.
6308 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6310 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6311 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6312 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6313 Add support for the fpscr register.
6314 * rs6000-nat.c (regmap, fetch_inferior_registers)
6315 (store_inferior_registers, fetch_core_registers): Likewise.
6317 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6319 * rs6000-nat.c (language.h): Include.
6320 (special_regs): Delete this array.
6321 (regmap): New function.
6322 (fetch_register, store_register): Use regmap() to map gdb
6323 register numbers to ptrace register numbers. Also, use
6324 outputs from regmap() to make decisions regarding type of
6325 ptrace() call to make. In particular, don't compare against
6326 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6327 (fetch_inferior_registers, store_inferior_registers): Where
6328 possible, obtain register numbers from tdep struct. Don't
6329 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6330 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6331 (LAST_UISA_SP_REGNUM): Delete.
6333 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6335 * rs6000-nat.c (ppc-tdep.h): Include.
6336 (fetch_registers, store_register, fetch_core_registers): Don't
6337 access registers[] directly. Instead, use supply_register() or
6338 regcache_collect() as appropriate.
6339 (find_toc_address): Format hex address with local_hex_string().
6341 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6343 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6346 2002-07-24 Tom Tromey <tromey@redhat.com>
6348 * jv-exp.y: Marked all strings with _().
6349 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6351 (MethodInvocation, CastExpression, parse_number, yyerror,
6352 java_type_from_name, push_expression_name, yylex): Typo fixes.
6354 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6356 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6357 (tee_file_flush, tee_file_write, tee_file_fputs)
6358 (tee_file_isatty): New.
6359 * ui-file.h (tee_file_new): Add prototype.
6361 2002-07-24 Aidan Skinner <aidan@velvet.net>
6363 * ada-lang.c: Change k&r style function definitions to prototyped
6365 * ada-typeprint.c: Change k&r style function definitions to prototyped
6367 * ada-valprint.c: Change k&r style function definitions to prototyped
6370 2002-07-24 Andrew Cagney <cagney@redhat.com>
6372 * README: Remove reference to remote-bug.
6373 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6375 (m88k-nat.o): Delete rule.
6376 (m88k-tdep.o): Delete rule.
6377 (remote-bug.o): Delete rule.
6378 * MAINTAINERS: Mark as obsolete.
6379 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6380 * m88k-tdep.c: Make file obsolete.
6381 * config/m88k/m88k.mh: Ditto.
6382 * config/m88k/delta88v4.mh: Ditto.
6383 * config/m88k/delta88v4.mt: Ditto.
6384 * config/m88k/delta88.mt: Ditto.
6385 * config/m88k/delta88.mh: Ditto.
6386 * remote-bug.c: Ditto.
6387 * config/m88k/tm-delta88.h: Ditto.
6388 * config/m88k/nm-delta88v4.h: Ditto.
6389 * config/m88k/xm-delta88.h: Ditto.
6390 * config/m88k/xm-dgux.h: Ditto.
6391 * config/m88k/tm-m88k.h: Ditto.
6392 * config/m88k/nm-m88k.h: Ditto.
6393 * config/m88k/tm-delta88v4.h: Ditto.
6394 * m88k-nat.c: Ditto.
6395 * cxux-nat.c: Ditto.
6396 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6397 and m88*-*-* obsolete.
6398 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6401 2002-07-24 Andrew Cagney <cagney@redhat.com>
6403 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6404 constant. Same for local pointer variables.
6405 (extract_signed_integer): Ditto.
6406 * defs.h (extract_unsigned_integer): Update.
6407 (extract_signed_integer): Update.
6409 2002-07-24 Andrew Cagney <cagney@redhat.com>
6411 * regcache.c (regcache_raw_write): Change buf parameter to a
6412 constant void pointer.
6413 (regcache_raw_read): Change buf parameter to a void pointer.
6414 (legacy_write_register_gen): Change myaddr parameter a constant
6416 (supply_register): Change val parameter to a const void pointer.
6417 * regcache.h (regcache_raw_write): Update declaration.
6418 (regcache_raw_read): Update declaration.
6419 (supply_register): Update declaration.
6421 2002-07-24 Tom Tromey <tromey@redhat.com>
6423 * defs.h (gdb_readline_wrapper): Declare.
6424 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6425 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6426 * top.c (gdb_readline_wrapper): New function.
6427 (command_line_input): Use it.
6429 2002-07-24 Andrew Cagney <cagney@redhat.com>
6431 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6432 regcache_read and regcache_write.
6433 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6434 * regcache.c: Update.
6435 * sh-tdep.c (sh64_push_arguments): Update comment.
6436 (sh_pseudo_register_read): Update.
6437 (sh_pseudo_register_write): Update.
6438 (sh4_register_read): Update.
6439 (sh4_register_write): Update.
6440 (sh64_pseudo_register_read): Update.
6441 (sh64_pseudo_register_write): Update.
6442 (sh64_register_read): Update.
6443 (sh64_register_write): Update.
6444 * i386-tdep.c (i386_extract_return_value): Update.
6445 (i386_extract_struct_value_address): Update.
6446 (i386_extract_return_value): Update.
6447 * blockframe.c (generic_read_register_dummy): Update.
6448 (generic_call_dummy_register_unwind): Update
6449 * infrun.c (write_inferior_status_register): Update.
6451 2002-07-23 Jim Blandy <jimb@redhat.com>
6453 * parser-defs.h (expression_context_pc): Make this extern.
6454 (Thanks to Michael Snyder.)
6456 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6458 GDB 5.2.1 released from 5.2 branch.
6459 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6460 * README: Update to mention 5.2.1.
6462 2002-07-23 Mark Salter <msalter@redhat.com>
6464 * remote.c (remote_read_bytes): Fix check for error.
6466 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6468 * aix-thread.c (language.h): Include.
6469 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6470 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6471 Print newlines at end of debug messages.
6472 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6473 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6475 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6477 * aix-thread.c (ppc-tdep.h): Include.
6478 (special_register_p): New function.
6479 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6480 (store_regs_user_thread): Use register number information from
6481 gdbarch_tdep struct instead of hardcoded offsets relative to
6482 FIRST_UISA_SP_REGNUM.
6483 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6484 special_register_p() instead of using FPLAST_REGNUM and
6485 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6486 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6487 will be MQ's register number.
6489 2002-07-22 Michael Snyder <msnyder@redhat.com>
6491 * aix-thread.c (ops): Rename to aix_thread_ops.
6492 (base_ops): Rename to base_target.
6493 (ops_attach): Rename to aix_thread_attach.
6494 (ops_detach): Rename to aix_thread_detach.
6495 (ops_resume): Rename to aix_thread_detach.
6496 (ops_wait): Rename to aix_thread_wait.
6497 (ops_kill): Rename to aix_thread_kill.
6498 (init_ops): Rename to init_aix_thread_ops.
6499 (ops_fetch_register): Rename to aix_thread_fetch_register.
6500 (ops_store_register): Rename to aix_thread_store_register.
6501 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6502 (ops_thread_alive): Rename to aix_thread_thread_alive.
6503 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6504 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6505 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6506 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6507 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6508 (store_regs_lib): Rename to store_regs_user_thread.
6509 (store_regs_kern): Rename to store_regs_kernel_thread.
6511 2002-07-22 Michael Snyder <msnyder@redhat.com>
6513 * aix-thread.c (ops_prepare_to_store): Eliminate.
6514 (init_ops): Don't initialize ops.prepare_to_store.
6515 (store_regs_kern): Pre-fetch register buffers from child,
6516 because some registers may not be in the cache. Copy
6517 regs from register cache only if they are cached.
6518 (store_regs_lib): Copy regs from register cache only
6520 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6521 fill_gprs64): Ditto.
6523 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6525 * aix-thread.c (gdb_assert.h): Include.
6526 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6527 register sizes (from register cache) match size of buffer holding
6529 (fill_sprs32): Change parameter types to match those in the ptrace()
6531 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6532 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6534 2002-07-22 Michael Snyder <msnyder@redhat.com>
6536 * aix-thread.c (supply_sprs64): Cosmetic change.
6537 (supply_sprs32): Cosmetic change.
6538 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6539 (fill_sprs64): Use regcache_collect instead of read_register.
6540 (store_regs_lib): Use regcache_collect instead of
6541 read_register. Use fill_sprs32 instead of fill_sprs64,
6542 if debugging a 32-bit architecture.
6543 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6544 out of the register cache, instead of passing a pointer into
6545 the register cache directly to ptrace. Use regcache_collect
6546 insteaad of read_register.
6547 (ops_prepare_to_store): Use target_read_registers instead
6548 of read_register_bytes.
6550 2002-07-20 Aidan Skinner <aidan@velvet.net>
6552 * MAINTAINERS: Add self under write after approval.
6554 2002-07-20 Aidan Skinner <aidan@velvet.net>
6556 * ada-tasks.c: Change k&r style function definitions to prototyped
6559 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6561 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6562 * x86-64-tdep.c: Include "objfiles.h".
6563 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6564 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6566 2002-07-17 Michal Ludvig <michal@suse.cz>
6568 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6569 (update_context): Initialise cfa variable.
6571 2002-07-17 Michael Snyder <msnyder@redhat.com>
6573 * aix-thread.c: Shorten some long lines.
6574 Bring comments into line with code spec.
6576 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6578 * infrun.c: Re-indent using gdb_indent.sh.
6580 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6582 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6583 Leave the indentation temporarily untouched, to minimize the diffs.
6585 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6587 * stabsread.c: Make os9k sections of the code obsolete,
6589 * stabsread.h: Make os9k sections of the code obsolete.
6591 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6593 * linux-low.c (regsets_store_inferior_registers): Add free()
6594 at the end of a loop to prevent memory leak.
6595 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6596 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6597 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6599 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6601 2002-07-17 Jim Blandy <jimb@redhat.com>
6603 * macrocmd.c (info_macro_command): Remove newline from error
6606 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6608 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6609 (sh_gdbarch_init): Use it for sh-dsp.
6611 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6613 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6614 64-bit DWARF2 format.
6616 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6618 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6619 <sys/proc.h> when not available.
6621 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6623 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6624 * stabsread.c: Make os9k sections of the code obsolete.
6625 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6626 * config/i386/i386os9k.mt: Make file obsolete.
6627 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6628 (COMMON_OBS): Remove os9kread.o
6629 (SFILES): Remove os9kread.c.
6630 (os9kread.o, remote-os9k.o): Make target obsolete.
6631 * remote-os9k.c: Make file obsolete.
6632 * os9kread.c: Make file obsolete.
6635 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6637 * NEWS: Mention that the FR30 has been made obsolete.
6638 * fr30-tdep.c: Make file obsolete.
6639 * config/fr30/tm-fr30.h: Ditto.
6640 * config/fr30/fr30.mt: Ditto.
6641 * configure.tgt: Make fr30-*-elf obsolete.
6642 * MAINTAINERS: Make fr30-elf obsolete.
6644 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6646 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6647 found is not inside a section.
6649 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6651 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6653 (pdc_realloc): Use xrealloc() instead of realloc().
6655 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6657 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6658 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6659 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6662 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6664 * aix-thread.c (ptrace_check): Eliminate goto.
6665 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6668 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6670 * aix-thread.c (gdbcmd.h): Include.
6671 (DEBUG, DBG, DBG2, dbg): Eliminate.
6672 (debug_aix_thread): New static global.
6673 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6674 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6675 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6676 invocations to DBG and DBG2 macros to test against
6677 ``debug_aix_thread'' and call fprintf_unfiltered().
6678 (_initialize_aix_thread): Add new command "set debug aix-thread".
6680 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6682 From Gerhard Tonn <TON@de.ibm.com>:
6683 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6684 instead of supply_register.
6686 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6688 * dwarf2cfi.c: Include "gdb_assert.h".
6689 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6691 (update_context): Do not use __func__. Add missing ``break''.
6692 (update_context): Do not use __func__.
6694 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6696 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6697 and its setting. Set gdbarch instruction printing functions
6698 directly. For non-rs6000 case use new function
6699 gdb_print_insn_powerpc.
6700 (gdb_print_insn_powerpc): New function.
6702 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6704 * NEWS: Mention that the d30v has been marked obsolete.
6705 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6706 * configure.tgt: Mark d30v-*-* as obsolete.
6707 * d30v-tdep.c: Mark file as obsolete.
6708 * config/d30v/d30v.mt: Ditto.
6709 * config/d30v/tm-d30v.h: Ditto.
6711 2002-07-13 Aidan Skinner <aidan@velvet.net>
6713 * ada-tasks.c (add_task_entry): replace calls to
6714 malloc() with xmalloc
6715 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6717 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6718 ada_finish_decode_line_1, all_sals_for_line
6719 ada_breakpoint_rewrite): replace calls to free() with xfree()
6721 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6723 From Nicholas Duffek (with minor changes by Martin Hunt,
6724 Louis Hamilton, and Kevin Buettner):
6725 * aix-thread.c: New file.
6727 2002-07-12 Petr Sorfa <petrs@caldera.com>
6729 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6730 complaint for invalid attribute class or form.
6731 (read_func_scope): DW_AT_frame_base
6732 better handling of DW_AT_block*.
6733 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6734 better handling of DW_AT_block*.
6735 (read_common_block): DW_AT_location
6736 better handling of DW_AT_block*.
6737 (read_partial_die): DW_AT_location better handling
6739 (new_symbol): DW_AT_external better handling of
6740 DW_AT_block*. Proper initialization of variable
6742 (attr_form_is_block): New function that returns true
6743 if the attribute's form is of DW_FORM_block*.
6745 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6747 * valops.c (find_method_list): Remove comment about
6748 removed STATIC_MEMFUNCP argument.
6749 (value_find_oload_method_list): Likewise.
6751 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6753 From Nicholas Duffek:
6754 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6755 target_new_objfile_hook.
6757 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6759 From Nicholas Duffek:
6760 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6763 2002-07-12 Andrew Cagney <cagney@redhat.com>
6765 * MAINTAINERS: Mention --enable-sim-build-warnings.
6766 (m68hc11-elf): Disable sim build warnings.
6767 (m32r-elf): Mark as broken obsolete candidate.
6768 (x86_64-linux-gnu): Mark as buildable with -Werror.
6769 (arm-elf): Change -w to ``,'' which enables warnings but not
6772 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6774 * bcache.h: Update copyright.
6775 (struct bstring, struct bcache): Move definition to "bcache.c".
6776 Replaced by opaque declaration.
6777 (bcache_xfree): Replace free_bcache.
6778 (bcache_xmalloc, bcache_memory_used): Declare.
6780 * bcache.c: Update copyright.
6781 (struct bstring, struct bcache): Moved to here from "bcache.h".
6783 (bcache_xmalloc, bcache_memory_used): New functions.
6784 (bcache_xfree): Replace function free_bcache.
6786 * Makefile.in (objfiles.o): Add $(bcache_h).
6787 (objfiles_h): Remove $(bcache_h).
6788 (symfile.o): Add $(bcache_h).
6790 * symmisc.c: Update copyright.
6791 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6792 (print_objfile_statistics): Use bcache_memory_used.
6794 * symfile.c: Include "bcache.h".
6795 (reread_symbols): Use bcache_xfree.
6796 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6797 (add_psymbol_to_list): Pass psymbol_cache by value.
6798 (add_psymbol_with_dem_name_to_list): Ditto.
6800 * objfiles.h: Update copyright.
6801 (struct bcache): Declare opaque. Do not include "bcache.h".
6802 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6804 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6806 * objfiles.c: Include "bcache.h". Update copyright.
6807 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6809 (free_objfile): Use bcache_xfree.
6811 2002-07-11 Grace Sainsbury <graces@redhat.com>
6813 * monitor.c (monitor_fetch_register): Make name a constant.
6814 (monitor_store_register): Same.
6816 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6818 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6819 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6820 (finish_block) For non-function blocks, hash the symbol table. For
6821 function blocks, mark the symbol table as unhashed.
6822 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6823 (msymbol_hash_iw): Likewise.
6824 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6826 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6827 (lookup_minimal_symbol): Likewise for both.
6828 * symtab.h (struct block): Add `hashtable' flag. Comment the
6830 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6831 (ALL_BLOCK_SYMBOLS): Update.
6832 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6833 (struct symbol): Add `hash_next' pointer.
6834 * symtab.c (lookup_block_symbol): Search using the hash table when
6836 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6837 (search_symbols, find_addr_symbol): Likewise.
6839 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6840 (read_dst_symtab): Likewise.
6841 * jv-lang.c (get_java_class_symtab): Likewise.
6842 * mdebugread.c: Include "gdb_assert.h".
6843 (shrink_block): Assert that the block being modified is not hashed.
6844 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6845 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6847 (dump_symtab): Recognize hashed blocks.
6848 * printcmd.c (print_frame_args): Assert that function blocks do not
6849 have hashed symbol tables.
6850 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6851 (fill_in_ada_prototype, debug_print_block): Likewise.
6852 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6854 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6856 * stack.c (print_frame): Use result of frame_address_in_block()
6857 instead of fi->pc when evaluating symbols.
6858 (backtrace_command_1): Ditto.
6860 2002-07-11 Andrew Cagney <cagney@redhat.com>
6862 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6865 * arm-tdep.c (arm_register_name): Make return type constant.
6867 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6869 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6871 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6872 * s390-tdep.c (s390_fp_regnum): Ditto.
6873 (s390_read_fp): Ditto.
6874 (s390_pop_frame): Ditto.
6875 (_initialize_s390_tdep): Ditto.
6876 * remote.c (get_remote_state): Ditto.
6877 * procfs.c (mappingflags): Ditto.
6878 * memattr.c (_initialize_mem): Ditto.
6879 * mcore-tdep.c (mcore_pop_frame): Ditto.
6880 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6881 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6882 * language.c (set_case_str): Ditto.
6883 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6884 * frv-tdep.c (new_variant): Ditto.
6885 (frv_stopped_data_address): Ditto.
6886 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6887 (context_alloc): Ditto.
6888 (frame_state_alloc): Ditto.
6889 (unwind_tmp_obstack_init): Ditto.
6890 (unwind_tmp_obstack_free): Ditto.
6891 (cfi_read_fp): Ditto.
6892 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6893 (cris_pop_frame): Ditto.
6894 * c-lang.c (scanning_macro_expansion): Ditto.
6895 (finished_macro_expansion): Ditto.
6896 (c_preprocess_and_parse): Ditto.
6897 * gdbarch.sh: Ditto.
6898 * gdbarch.h, gdbarch.c: Regenerate.
6899 * config/mn10200/tm-mn10200.h: Adjust indentation.
6900 * target.c: Adjust indentation.
6901 * symtab.h: Adjust indentation.
6902 * stabsread.h: Adjust indentation.
6903 * remote-es.c: Adjust indentation.
6904 * os9kread.c: Adjust indentation.
6906 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6908 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6909 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6911 2002-07-10 Grace Sainsbury <graces@redhat.com>
6913 * NEWS: Mention m68k, mcore multi-arching.
6914 * MAINTAINERS: Change status of m68k, mcore to reflect
6917 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6919 * valops.c (find_overload_match): Free oload_syms.
6921 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6923 Define HAVE_SYS_PROC_H if sys/proc.h exists
6924 * configure.in: Add check for sys/proc.h
6925 * config.in: Regenerate.
6926 * configure: Regenerate.
6928 2002-07-09 Grace Sainsbury <graces@redhat.com>
6930 * config/m68k/tm-m68k.h: Remove macros wrapped in
6931 #if !GDB_MULTI_ARCH.
6933 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6935 * config.in, configure: Regenerate.
6937 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6939 * dwarf2cfi.c: Include "gcore.h".
6940 (execute_stack_op): Fix implementation of the
6941 DW_OP_deref and DW_OP_deref_size operators by letting do their
6942 lookup in the target.
6944 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6946 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6947 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6950 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6952 Fix PR gdb/595, gdb/602
6953 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6954 Don't call value_cast, just read the vtable pointer; update comments
6957 2002-07-05 Grace Sainsbury <graces@redhat.com>
6959 * config/mcore/tm-mcore.h: Remove file.
6960 * config/mcore/mcore.mt: Remove definition of TM_FILE
6961 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6963 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6965 * i386bsd-tdep.c: Include "gdb_string.h".
6967 2002-07-04 Grace Sainsbury <graces@redhat.com>
6969 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6970 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6972 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6973 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6974 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6975 (RETVAL_REGNUM): Move macros from tm-mcore.h
6976 (mcore_reg_struct_has_addr): New function.
6977 (mcore_gdbarch_init): Added initializations for the macros removed
6980 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6982 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6983 traditonal string branding within the ELF header.
6985 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6987 * symtab.c (remove_params): New function.
6988 (make_symbol_overload_list): Use it instead of cplus_demangle.
6989 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6991 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6993 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6995 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6997 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6998 and tdep->sigtramp_end.
6999 * i386obsd-nat.c: New file.
7000 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7002 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7003 Don't call get_current_frame().
7005 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7007 * i386-nat.c (child_post_startup_inferior): New function
7008 calling i386_cleanup_dregs if
7009 I386_USE_GENERIC_WATCHPOINTS is defined.
7010 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7011 conditional to acknowledge that i386-nat.c has its
7012 own child_post_startup_inferior function.
7014 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7016 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7017 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7018 instead of MAX_REGISTER_RAW_SIZE.
7019 (i386_extract_return_value, i386_extract_struct_value_address):
7020 Convert to use regcache.
7021 (i386_gdbarch_init): Set max_register_raw_size and
7022 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7023 Set extract_return_value and extract_struct_value_address instead
7024 of their deprecated variants.
7026 Convert i386 target to generic dummy frames.
7027 * i386-tdep.c: Include "symfile.h".
7028 (i386_frameless_signal_p): Consider a function to be frameless if
7029 the pc points at the first instruction of the function.
7030 (i386_frame_chain): Handle (generic) call dummies.
7031 (i386_frame_saved_pc): Likewise.
7032 (i386_frame_init_saved_regs): Remove code dealing with call
7033 dummies on the stack.
7034 (i386_push_dummy_frame): Removed.
7035 (i386_call_dummy_words): Removed.
7036 (i386_fix_call_dummy): Removed.
7037 (i386_push_return_address): New function.
7038 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7039 parameter, and don't call get_current_frame.
7040 (i386_pop_frame): New function.
7041 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7042 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7043 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7044 call_dummy_length to 0, set call_dummy_words to NULL, set
7045 sizeof_call_dummy_words to 0, set fix_call_dummy to
7046 generic_fix_call_dummy, set pc_in_call_dummy to
7047 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7048 generic_push_dummy_frame, set push_return_address to
7049 i386_push_return_address and set frame_chain_valid to
7050 generic_file_frame_chain_valid.
7052 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7054 * gdbarch.sh (struct regcache): Add opaque declaration.
7055 (EXTRACT_RETURN_VALUE): New architecture method.
7056 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7057 * gdbarch.h, gdbarch.c: Regenerate.
7058 * arch-utils.c (legacy_extract_return_value): New function.
7059 * arch-utils.h (legacy_extract_return_value): Declare.
7060 * values.c (value_being_returned): Re-enable code handling
7061 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7062 deprecated_grub_regcache_for_registers call to block handling
7063 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7064 (EXTRACT_RETURN_VALUE): Do not define.
7066 2002-07-03 Grace Sainsbury <graces@redhat.com>
7068 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7069 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7070 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7071 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7072 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7073 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7074 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7075 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7076 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7077 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7078 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7079 argument so the function fits the prototype in the architecture
7081 (mcore_pop_frame): Remove argument so the function fits the
7082 prototype. Use get_current_frame instead of the argument.
7083 (mcore_push_arguments): Change type of struct_return so the
7084 function can be used in the architecture vector.
7085 (mcore_store_struct_return): Add.
7086 (mcore_frame_init_saved_regs): Add.
7087 (mcore_gdbarch_init): Add function calls to replace the macros
7088 removed from tm-mcore.h
7090 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7092 * infcmd.c (print_return_value): Remove compatibility code calling
7093 deprecated_grub_regcache_for_registers.
7095 * values.c: Include "regcache.h".
7096 (value_being_returned): Update. Use
7097 deprecated_grub_regcache_for_registers to extract the register
7099 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7100 ``struct regcache''.
7101 * Makefile.in (values.o): Add dependency on $(regcache_h).
7103 * inferior.h (run_stack_dummy): Change type of second parameter to
7104 a ``struct regcache''.
7105 * valops.c (hand_function_call): Change type of retbuf to ``struct
7106 regcache''. Allocate using regcache_xmalloc, clean using
7107 make_cleanup_regcache_xfree.
7108 * infcmd.c (run_stack_dummy): Update. Use
7109 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7111 * regcache.c (do_regcache_xfree): New function.
7112 (make_cleanup_regcache_xfree): New function.
7113 * regcache.h (make_cleanup_regcache_xfree): Declare.
7115 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7117 * event-top.c (command_line_handler): Don't read past
7118 beginning of buffer.
7120 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7122 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7124 (varobj_create): Store frame_id for root.
7125 (varobj_gen_name): Use xasprintf.
7126 (varobj_update): Save and restore frame using get_frame_id() and
7128 (create_child): Use xasprintf.
7129 (new_root_variable): Initialize frame_id.
7130 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7131 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7132 to prevent memory leak.
7134 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7136 * valops.c (hand_function_call): Move declaration of retbuf to
7137 start of function, allocate using malloc, add a cleanup but before
7138 the inf_status cleanup, cleanup the buffer. Rename local variable
7139 old_chain to inf_status_cleanup.
7141 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7143 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7145 * cli/cli-decode.c (cmd_func_p): New function.
7146 (cmd_func): New function.
7148 * command.h: Add cmd_func() and cmd_func_p().
7150 2002-07-03 Grace Sainsbury <graces@redhat.com>
7152 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7153 (REGISTER_SIZE): Remove.
7154 (MAX_REGISTER_RAW_SIZE): Remove.
7155 (REGISTER_VIRTUAL_TYPE): Remove.
7156 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7157 (REGISTER_NAME): Remove.
7158 (USE_GENERIC_DUMMY_FRAMES): Remove.
7159 (CALL_DUMMY): Remove.
7160 (CALL_DUMMY_START_OFFSET): Remove.
7161 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7162 (CALL_DUMMY_LOCATION): Remove.
7163 (FIX_CALL_DUMMY): Remove.
7164 (CALL_DUMMY_ADDRESS): Remove.
7165 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7166 (SAVE_DUMMY_FRAME_TOS): Remove.
7167 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7168 (mcore_register_virtual_type): New function.
7169 (mcore_register_byte): New function.
7170 (mcore_register_size): New function.
7171 (mcore_register_name): New function.
7172 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7173 macros removed from tm-mcore.h.
7174 (mcore_dump_tdep): Add.
7175 (_initialize_mcore_tdep): Add gdbarch_register call.
7177 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7179 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7180 frameless_look_for_prologue, such that we actually call this
7183 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7185 * frame.h (frame_address_in_block): New function.
7187 * blockframe.c (frame_address_in_block): New function extracted
7188 from get_frame_block().
7189 (get_frame_block): Use frame_address_in_block().
7190 (block_innermost_frame): Use frame_address_in_block() to match
7191 the frame pc address against the block boundaries rather than
7192 the frame pc directly. This prevents a failure when a frame pc
7193 is actually a return-address pointing immediately after the end
7196 2002-07-02 Grace Sainsbury <graces@redhat.com>
7198 * MAINTAINERS: Add self under write after approval.
7200 2002-07-02 Grace Sainsbury <graces@redhat.com>
7202 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7203 used in architecture vector. The default is
7204 m68k_local_breakpoint_from_pc.
7205 (m68k_local_breakpoint_from_pc): Add.
7206 (enum): Add register numbers from tm-m68k.h.
7207 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7209 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7210 GDB_MULTI_ARCH_PARTIAL.
7211 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7212 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7214 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7215 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7216 to enum in m68k-tdep.c
7218 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7220 * solib-osf.c (open_map): Compute the list of shared libraries
7221 loaded by the inferior, rather than the list of libraries loaded
7222 by GDB itself. Otherwise, GDB ends up reading the symbols from
7223 the wrong shared libraries...
7225 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7227 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7228 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7230 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7232 (FRAMELESS_SIGNAL): Remove function.
7233 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7234 i386_linux_saved_pc_after_call): Removed.
7235 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7236 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7237 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7239 * i386-tdep.c (i386_frameless_signal_p): New function.
7240 (i386_frame_chain): Deal with frameless signals.
7241 (i386_sigtramp_saved_sp): New function.
7242 (i386_frame_saved_pc): Deal with frameless signals.
7243 (i386_saved_pc_after_call): Make sure the correct value is
7244 returned just after entry into a sigtramp.
7245 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7246 i386fbsd4_sc_sp_offset): New variables.
7247 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7248 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7249 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7250 similiar to what we already did for sc_pc_offset.
7251 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7254 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7256 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7258 * config/i386/tm-x86-64linux.h: New.
7259 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7261 * config/i386/nm-x86-64.h: Rename to ...
7262 * config/i386/nm-x86-64linux.h: ... this one.
7263 * config/i386/x86-64linux.mh: Reflect the above change.
7265 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7267 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7268 with sigcontext_addr. Add sc_sp_offset.
7269 (i386bsd_sigtramp_saved_pc): Remove prototype.
7270 (i386bsd_sicontext_addr): Add prototype.
7271 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7272 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7273 (i386_svr4_sigtramp_saved_pc): Removed.
7274 (i386_svr4_sigcontext_addr): New function.
7275 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7276 Initialize tdep->sigcontext_addr instead. Initialize
7277 tdep->sc_pc_offset and tdep->sc_sp_offset.
7278 (i386_gdbarch_init): Likewise.
7279 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7281 (i386bsd_sigtramp_saved_pc): Remove function.
7282 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7283 Initialize tdep->sigcontext_addr instead. Initialize
7285 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7286 of tdep->sigtramp_saved_pc.
7287 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7288 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7291 * i386-tdep.c (i386_frameless_function_invocation,
7292 i386_frame_num_args, i386_frame_init_saved_regs,
7293 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7294 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7295 i386_extract_return_value, i386_store_return_value,
7296 i386_extract_struct_value_address, i386_register_virtual_type,
7297 i386_register_convertible, i386_register_convert_to_virtual,
7298 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7299 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7302 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7304 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7306 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7307 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7308 this macro. Include "value.h".
7310 2002-06-30 Aidan Skinner <aidan@velvet.net>
7312 * ada-exp.tab.c: remove as it's a generated file
7313 * ada-lex.c: remove as it's a generated file
7315 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7317 * config/i386/tm-i386.h (struct frame_info, struct
7318 frame_saved_regs, struct value, struct type): Remove forward
7321 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7322 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7323 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7324 (FILL_FPXREGSET): Define.
7326 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7328 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7329 i[3456]86-*-netbsd* case.
7330 * config/i386/tm-obsd.h: Removed.
7331 * config/i386/obsd.mt: Removed.
7332 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7334 (MH_CFLAGS): Add -DYYDEBUG=0.
7336 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7337 i386nbsd_sc_pc_offset on OpenBSD too.
7339 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7340 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7341 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7343 * i386bsd-tdep.c: Include "arch-utils.h".
7344 (i386bsd_aout_in_solib_call_trampoline): New function.
7345 (i386bsd_init_abi): Set in_solib_call_trampoline to
7346 i386bsd_aout_in_solib_call_trampoline.
7347 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7348 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7350 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7352 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7353 (struct obstack, struct bcache): Add opaque declarations.
7354 * Makefile.in (macrotab_h): Update
7356 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7358 * blockframe.c (generic_find_dummy_frame): Change return type to
7359 ``struct regcache''.
7360 (struct dummy_frame): Replace field ``registers'' with regcache, a
7361 struct regcache object.
7362 (generic_find_dummy_frame): Update.
7363 (generic_push_dummy_frame): Update. Use regcache_xfree,
7364 regcache_xmalloc and regcache_cpy.
7365 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7367 (deprecated_generic_find_dummy_frame): Update.
7368 (generic_read_register_dummy): Update. Use
7369 regcache_read_as_address.
7370 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7371 (generic_get_saved_register): Update. Use regcache_read.
7373 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7375 * Makefile.in (objfiles_h): Add $(bcache_h).
7376 * objfiles.h: Include "bcache.h".
7378 * Makefile.in (symtab_h): Remove $(bcache_h).
7379 * symtab.h: Do not include "bcache.h".
7381 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7383 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7384 generic_func_frame_chain_valid.
7386 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7388 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7389 * config/i386/tm-fbsd.h: Likewise.
7391 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7393 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7394 generic_unwind_get_saved_register.
7396 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7398 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7399 * regcache.c (supply_register): Add missing argument to
7400 register_buffer call.
7402 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7404 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7405 Solaris /bin/grep does not not like it. From Peter Schauer.
7407 2002-06-26 Tom Tromey <tromey@redhat.com>
7409 * command.h (add_setshow_cmd): Declare.
7410 (add_setshow_cmd_full): Declare.
7411 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7412 returns void. Use add_setshow_cmd_full.
7413 (add_setshow_cmd_full): New function.
7414 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7415 (add_setshow_boolean_cmd): Likewise.
7417 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7419 * config/vax/tm-vax.h: Protect from multiple inclusion.
7420 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7421 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7422 * config/vax/tm-vaxbsd.h: ...here. New file.
7423 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7425 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7427 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7428 (BELIEVE_PCC_PROMOTION): Remove.
7429 (AP_REGNUM): Move to...
7430 * config/vax/nm-vax.h: ...here.
7431 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7432 (vax_breakpoint_from_pc): New function.
7433 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7434 and gdbarch_believe_pcc_promotion.
7436 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7438 * Makefile.in (vax_tdep_h): Define.
7439 (vax-tdep.o): Use $(vax_tdep_h).
7440 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7441 (vax_dump_tdep): New function.
7442 (_initialize_vax_tdep): Register vax_dump_tdep.
7443 * vax-tdep.h: Include osabi.h.
7444 (struct gdbarch_tdep): New.
7446 2002-06-26 Andrew Cagney <cagney@redhat.com>
7448 * frame.h (deprecated_generic_find_dummy_frame): Rename
7449 generic_find_dummy_frame.
7450 * blockframe.c (generic_find_dummy_frame): Make static.
7451 (deprecated_generic_find_dummy_frame): New function.
7452 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7453 generic_find_dummy_frame with deprecated_find_dummy_frame.
7454 (sh64_nofp_frame_init_saved_regs): Ditto.
7455 (sh_fp_frame_init_saved_regs): Ditto.
7456 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7457 (s390_frame_chain): Ditto.
7458 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7460 2002-06-26 Grace Sainsbury <graces@redhat.com>
7462 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7463 gdbarch vector are at the top.
7465 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7466 (FRAME_ARGS_ADDRESS): Remove.
7467 (FRAME_LOCALS_ADDRESS): Remove.
7468 (FRAME_NUM_ARGS): Remove.
7469 (FRAME_ARGS_SKIP): Remove.
7470 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7471 (m68k_gdbarch_init): Add gdbarch initializations for macros
7472 undefined in tm-m68k.h
7474 2002-06-26 Grace Sainsbury <graces@redhat.com>
7476 * monitor.h: Add the function regname to monitor_ops
7477 structure. This way NUM_REGS does not have to be a constant.
7478 * monitor.c (monitor_fetch_register): Added support for regname
7479 function. The function is called if the array regnames is NULL.
7480 (monitor_store_register): Same.
7481 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7483 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7484 cpu32bug_cmds.regname to point to new function.
7485 * abug-rom.c (abug_regname): Same as above.
7486 (init_abug_cmds): Same.
7487 * dbug-rom.c (dbug_regname): Same as above.
7488 (init_dbug_cmds): Same.
7489 * remote-est.c (est_regname): Same.
7490 (init_est_cmds): Same.
7491 * rom68k-rom.c (rom68k_regname): Same.
7492 (init_rom68k_cmds): Same.
7494 2002-06-25 Tom Tromey <tromey@redhat.com>
7496 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7498 2002-06-25 Andrew Cagney <cagney@redhat.com>
7500 * infrun.c (stop_registers): Change variable's type to ``struct
7502 (xmalloc_inferior_status): Delete function.
7503 (free_inferior_status): Delete function.
7504 (normal_stop): Use regcache_cpy.
7505 (struct inferior_status): Change type of fields ``stop_registers''
7506 and ``registers'' to ``struct regcache''.
7507 (write_inferior_status_register): Use regcache_write.
7508 (save_inferior_status): Instead of calling
7509 xmalloc_inferior_status, allocate the inf_status buffer directly.
7510 Use regcache_dup_no_passthrough and regcache_dup to save the
7512 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7513 Replace the stop_registers regcache instead of overriding it. Use
7514 regcache_xfree. Instead of calling free_inferior_status, xfree
7515 the buffer directly.
7516 (discard_inferior_status): Use regcache_xfree. Instead of calling
7517 free_inferior_status, xfree the buffer directly.
7518 (build_infrun): Use regcache_xmalloc.
7519 (_initialize_infrun): Delete redundant call to build_infrun.
7521 * Makefile.in (infcmd.o): Add $(regcache_h).
7523 * infcmd.c: Include "regcache.h".
7524 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7525 obtain the address of `stop_registers' register buffer.
7526 (print_return_value): Ditto.
7528 * inferior.h (struct regcache): Add opaque declaration.
7529 (stop_registers): Change variable's declared type to ``struct
7532 2002-06-24 Tom Tromey <tromey@redhat.com>
7534 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7535 * target.c (initialize_targets): Fixed typo in
7536 trust-readonly-sections `show' documentation.
7538 * main.c: Marked all strings with _().
7540 2002-06-24 Don Howard <dhoward@redhat.com>
7542 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7543 that means max CORE_ADDR+1.
7544 (lookup_mem_region): Ditto.
7545 (mem_info_command): Ditto.
7547 2002-06-24 Grace Sainsbury <graces@redhat.com>
7549 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7550 (REGISTER_BYTES_OK): Remove.
7551 (REGISTER_BYTES): Remove.
7552 (STORE_STRUCT_RETURN): Remove.
7553 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7554 (STORE_RETURN_VALUE): Remove.
7555 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7556 (FRAME_CHAIN): Remove.
7557 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7558 (FRAME_SAVED_PC): Remove.
7559 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7560 (m68k_store_struct_return): Add.
7561 (m68k_deprecated_extract_return_value): Add.
7562 (m68k_deprecated_extract_struct_value_address): Add.
7563 (m68k_store_return_value): Add.
7564 (m68k_frame_chain): Add.
7565 (m68k_frameless_function_invocation): Add.
7566 (m68k_frame_saved_pc): Add.
7567 (m68k_gdbarch_init): added set_gdbarch calls for new
7568 functions and deleted macros.
7570 2002-06-23 Tom Tromey <tromey@redhat.com>
7572 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7573 (ALLDEPFILES): Likewise.
7574 (udiheaders): Removed.
7575 (udip2soc.o): Likewise.
7576 (udi2go32.o): Likewise.
7578 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7580 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7582 * infrun.c (_initialize_infrun): Delete unnecessary call to
7585 * regcache.h: Update comments describing the regcache_cpy family
7587 (regcache_save, regcache_restore): Delete declaration.
7588 (regcache_save_no_passthrough): Delete declaration.
7589 (regcache_restore_no_passthrough): Delete declaration.
7590 * regcache.c (regcache_save): Delete function.
7591 (regcache_save_no_passthrough): Delete function.
7592 (regcache_restore): Delete function.
7593 (regcache_restore_no_passthrough): Delete function.
7595 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7597 * config/m68k/tm-m68k.h: Fix typo.
7598 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7599 (m68k_frame_init_saved_regs): Declare.
7601 2002-06-21 Jim Blandy <jimb@redhat.com>
7603 Remove some vestiges of Harris 88k support.
7604 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7605 register numbering quirk.
7606 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7607 odd symbols occurring in Harris 88k ELF targets.
7609 2002-06-21 Tom Tromey <tromey@redhat.com>
7611 * gdb_locale.h: New file.
7612 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7613 (defs_h): Added gdb_locale.h.
7614 * configure, config.in: Rebuilt.
7615 * configure.in (PACKAGE): Define.
7616 * defs.h: Include gdb_locale.h.
7617 * main.c (captured_main): Call setlocale, bindtextdomain,
7620 2002-06-21 Dave Brolley <brolley@redhat.com>
7622 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7623 * config/frv/frv.mt: New file.
7624 * config/frv/tm-frv.h: New file.
7625 * configure.tgt: Support frv-*-*.
7626 * Makefile.in (frv-tdep.o): New target.
7627 * frv-tdep.c: New file.
7628 * NEWS: Mention frv.
7630 2002-06-21 Dave Brolley <brolley@redhat.com>
7632 * MAINTAINERS: Add self to "Write After Approval" list.
7634 2002-06-21 Grace Sainsbury <graces@redhat.com>
7636 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7637 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7638 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7639 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7640 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7642 * m68k-tdep.c: Include arch-utils.h
7643 (m68k_register_raw_size): Add.
7644 (m68k_register_virtual_size): Add.
7645 (m68k_register_virtual_type): Add.
7646 (m68k_register_name): Add.
7647 (m68k_stack_align): Add.
7648 (m68k_register_byte): Add.
7649 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7652 2002-06-21 Grace Sainsbury <graces@redhat.com>
7654 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7655 m68k_find_saved_regs.
7656 (m68k_pop_frame): Removed saved_regs structure, and replaced
7657 references to it with frame->saved_regs.
7658 (m68k_gdbarch_init): Added function calls to initialize the
7660 (m68k_fix_call_dummy): Add.
7661 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7662 (CALL_DUMMY): Remove.
7663 (CALL_DUMMY_LENGTH): Remove.
7664 (CALL_DUMMY_START_OFFSET): Remove.
7665 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7666 (FIX_CALL_DUMMY): Remove.
7667 (PUSH_DUMMY_FRAME): Remove.
7668 (POP_FRAME): Remove.
7670 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7672 * parse.c (parse_fprintf): New function used to avoid calls to
7673 fprintf in bison parser generated debug code.
7674 * parser-defs.h: Declaration of new parse_fprintf function.
7675 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7676 Set YYDEBUG to 1 by default.
7677 Set YYFPRINTF as parse_fprintf.
7679 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7681 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7683 (pointer_encoding, enum ptr_encoding): New.
7684 (execute_cfa_program): Take care about pointer encoding.
7685 (dwarf2_build_frame_info): Only call parse_frame_info for
7686 .debug_frame and .eh_frame.
7687 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7688 fixed augmentation handling, added relative addressing,
7689 ignore duplicate FDEs. Added comments.
7690 * dwarf2cfi.c: Reindented.
7692 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7694 * event-top.c (command_handler): Don't use space_at_cmd_start
7695 unless there is sbrk() on the host. Assign time and space data
7696 to union fields of the appropriate length.
7698 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7700 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7701 x86_64_register_name. Return type changed to 'const char *'.
7702 (x86_64_register_name2nr): Rename to x86_64_register_number.
7703 (x86_64_gdbarch_init): Update to reflect the change.
7704 * x86-64-tdep.h: Ditto.
7705 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7706 (supply_fpregset): Ditto.
7708 2002-06-19 Andrew Cagney <cagney@redhat.com>
7710 * regcache.h: Update copyright.
7711 (struct regcache, struct gdbarch): Add opaque declarations.
7712 (current_regcache): Declare global variable.
7713 (regcache_read, regcache_write): Add gdbarch parameter.
7714 (regcache_save, regcache_save_no_passthrough)
7715 (regcache_restore, regcache_restore_no_passthrough)
7716 (regcache_dup, regcache_dup_no_passthrough)
7717 (regcache_cpy, regcache_cpy_no_passthrough)
7718 (deprecated_grub_regcache_for_registers)
7719 (deprecated_grub_regcache_for_register_valid)
7720 (regcache_valid_p): Add function declarations.
7722 * regcache.c: Update copyright.
7723 (regcache_descr_handle): New global variable.
7724 (struct regcache_descr): Define.
7725 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7726 (regcache_descr, xfree_regcache_descr): New functions.
7727 (struct regcache): Define.
7728 (regcache_xmalloc, regcache_xfree): New functions.
7729 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7730 (regcache_dup, regcache_dup_no_passthrough): New functions.
7731 (regcache_valid_p, regcache_read_as_address): New functions.
7732 (deprecated_grub_regcache_for_registers): New function.
7733 (deprecated_grub_regcache_for_register_valid): New function.
7734 (current_regcache): New global variable.
7735 (register_buffer): Add regcache parameter. Update calls.
7736 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7737 (read_register_gen, write_register_gen): Update register_buffer
7738 call. Test for legacy_p instead of gdbarch_register_read_p or
7739 gdbarch_register_write_p.
7740 (regcache_collect): Update register_buffer call.
7741 (build_regcache): Rewrite. Use deprecated grub functions.
7742 (regcache_save, regcache_save_no_passthrough): New functions.
7743 (regcache_restore, regcache_restore_no_passthrough): New
7745 (_initialize_regcache): Create the regcache_data_handle. Swap
7746 current_regcache global variable.
7748 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7749 parameter to regcache_read and regcache_write calls.
7750 (sh4_register_read): Ditto.
7751 (sh64_pseudo_register_read): Ditto.
7752 (sh64_register_read): Ditto.
7753 (sh_pseudo_register_write): Ditto.
7754 (sh4_register_write): Ditto.
7755 (sh64_pseudo_register_write): Ditto.
7756 (sh64_register_write): Ditto.
7758 * defs.h (XCALLOC): Define.
7760 2002-06-19 Grace Sainsbury <graces@redhat.com>
7762 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7763 * m68k-tdep.c (m68k_gdbarch_init): Added.
7764 (m68k_dump_tdep): Added.
7766 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7768 * ada-lang.c (fill_in_ada_prototype): Update comment.
7770 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7772 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7774 (mips_abi_string, mips_abi_strings): New.
7775 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7776 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7777 tdep->mips_abi_string. Honor mips_abi_string. Default to
7778 O32 if no ABI is found.
7779 (mips_dump_tdep): Use mips_abi_strings.
7780 (mips_abi_update): New function.
7781 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7782 ``set mips abi'' and ``show mips abi''. Check the size of
7785 2002-06-19 Andrew Cagney <cagney@redhat.com>
7787 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7790 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7792 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7793 current frame using only the first stack size adjustment. All
7794 subsequent size adjustments are not considered to be part of
7795 the "static" part of the current frame.
7796 Compute the address of the saved registers relative to the
7797 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7798 in use in this frame.
7800 2002-06-18 Don Howard <dhoward@redhat.com>
7802 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7803 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7804 suggesting this solution.
7806 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7808 * config/romp/xm-rtbsd.h: Delete file.
7809 * config/romp/rtbsd.mh: Delete file.
7811 2002-06-18 Keith Seitz <keiths@redhat.com>
7813 * breakpoint.c (condition_command): Post breakpoint_modify
7814 when a condition is added to an existing breakpoint.
7815 (commands_command): Likewise for commands.
7816 (set_ignore_count): Likewise for ignore counts.
7817 If no tty, do not simply return, still need to send event
7819 (ignore_command): Only print a newline if the command came
7821 Don't call breakpoints_changed, since this is now properly
7822 handled by set_ignore_count.
7824 2002-06-18 Andrew Cagney <cagney@redhat.com>
7826 * MAINTAINERS: Note that cris-elf target can be compiled with
7828 * cris-tdep.c (cris_register_name): Make return type constant.
7829 (cris_breakpoint_from_pc): Ditto.
7831 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7833 * frame.h (struct frame_info): Change type of context to
7836 2002-06-17 Andrew Cagney <cagney@redhat.com>
7838 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7840 * gdbarch.h, gdbarch.c: Regenerate.
7841 * config/mips/tm-mips.h (mips_register_name): Update.
7842 * i386-tdep.h (i386_register_name): Update.
7843 * mips-tdep.c (mips_register_name): Update
7844 * alpha-tdep.c (alpha_register_name): Update.
7845 * arch-utils.c (legacy_register_name): Update.
7846 * arch-utils.h (legacy_register_name): Update.
7847 * avr-tdep.c (avr_register_name): Update.
7848 * ia64-tdep.c (ia64_register_name): Update.
7849 * i386-tdep.c (i386_register_name): Update.
7850 * sparc-tdep.c (sparc32_register_name): Update.
7851 (sparc64_register_name): Update.
7852 (sparclite_register_name): Update.
7853 (sparclet_register_name): Update.
7854 * sh-tdep.c (sh_generic_register_name): Update.
7855 (sh_sh_register_name): Update.
7856 (sh_sh3_register_name): Update.
7857 (sh_sh3e_register_name): Update.
7858 (sh_sh_dsp_register_name): Update.
7859 (sh_sh3_dsp_register_name): Update.
7860 (sh_sh4_register_name): Update.
7861 (sh_sh64_register_name): Update.
7862 * s390-tdep.c (s390_register_name): Update.
7863 * rs6000-tdep.c (rs6000_register_name): Update.
7864 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7865 (ns32k_register_name_32382): Update.
7866 * d10v-tdep.c (d10v_ts2_register_name): Update.
7867 (d10v_ts3_register_name): Update.
7868 * xstormy16-tdep.c (xstormy16_register_name): Update.
7869 * vax-tdep.c (vax_register_name): Update.
7870 * v850-tdep.c (v850_register_name): Update.
7871 * m68hc11-tdep.c (m68hc11_register_name): Update.
7872 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7873 (am33_register_name): Update.
7875 2002-06-17 Grace Sainsbury <graces@redhat.com>
7877 * m68k-tdep.c: Reindented.
7879 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7881 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7882 list of predefined types.
7884 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7886 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7887 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7888 REGISTER_CONVERT_TO_RAW): Remove defines.
7889 (i386_register_virtual_type, i386_register_convertible,
7890 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7892 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7893 macros mentioned above.
7895 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7896 (i386lynx_saved_pc_after_call): Remove prototype.
7897 * i386ly-tdep.c: Include "i386-tdep.h".
7898 (i386lynx_saved_pc_after_call): Make static. Use
7899 read_memory_nobpt instead of read_memory. Use
7900 read_memory_unsigned_integer instead of read_memory_integer.
7901 (i386lynx_init_abi): New function.
7902 (i386lynx_coff_osabi_sniffer): New function.
7903 (_initialize_i386bsd_tdep): New function.
7905 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7906 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7907 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7908 (i386_fix_call_dummy): Remove prototype.
7909 * i386-tdep.c (i386_call_dummy_words): New variable.
7910 (i386_gdbarch_init): Adjust for removal of the
7911 macros mentioned above.
7913 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7915 * command.h (add_setshow_auto_boolean_cmd): Replace
7916 add_set_auto_boolean_cmd.
7917 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7918 add_set_auto_boolean_cmd.
7919 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7920 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7921 mask-address'' command.
7922 (show_mask_address): Add cmd parameter.
7923 * remote.c (add_packet_config_cmd): Update. Change type of
7924 set_func and show_func to cmd_sfunc_ftype.
7925 (_initialize_remote): Update `set remote Z-packet'
7926 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7927 (show_remote_protocol_e_packet_cmd): Ditto.
7928 (show_remote_protocol_E_packet_cmd): Ditto.
7929 (show_remote_protocol_P_packet_cmd): Ditto.
7930 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7931 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7932 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7933 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7934 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7935 (show_remote_protocol_Z_packet_cmd): Ditto.
7936 (show_remote_protocol_binary_download_cmd): Ditto.
7937 (show_remote_cmd): Pass NULL to all of above.
7939 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7941 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7942 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7943 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7944 POP_FRAME): Remove defines.
7945 (i386_push_arguments, i386_store_struct_return,
7946 i386_extract_return_value, i386_store_return_value,
7947 i386_extract_struct_value_address, i386_push_dummy_frame,
7948 i386_pop_frame): Renove prototypes.
7949 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7950 macros mentioned above.
7952 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7954 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7955 add_set_boolean_cmd.
7956 (add_setshow_cmd): New function.
7957 * command.h (add_setshow_boolean_cmd): Replace
7958 add_set_boolean_cmd.
7959 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7960 and ``set rdiromatzero''.
7961 * maint.c (_initialize_maint_cmds): Update commented out code.
7962 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7963 * target.c (initialize_targets): Update `set
7964 trust-readonly-sections'.
7965 * remote.c (_initialize_remote): Update `set remotebreak'.
7967 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7969 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7970 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7971 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7972 fit into multi-arch framework.
7973 (i386_breakpoint_from_pc): New function.
7974 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7977 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7978 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7979 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7980 (i386_frameless_function_invocation, i386_frame_num_args,
7981 i386_frame_init_saved_regs): Remove prototypes.
7982 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7983 macros mentioned above.
7985 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7987 * cli/cli-decode.c (set_cmd_cfunc): Update.
7988 (set_cmd_sfunc): Update.
7989 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7990 (set_cmd_sfunc, set_cmd_cfunc): Update.
7991 * cli/cli-decode.h: Update.
7993 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7995 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7996 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7998 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8000 * defs.h (auto_boolean): Declare enum.
8001 * command.h (cmd_auto_boolean): Delete enum.
8002 * mips-tdep.c (mask_address_var): Update.
8003 (mips_mask_address_p): Update.
8004 (show_mask_address): Update.
8005 * remote.c (struct packet_config): Update.
8006 (update_packet_config): Update.
8007 (show_packet_config_cmd): Update.
8008 (packet_ok): Update.
8009 (add_packet_config_cmd): Update.
8010 (_initialize_remote):
8011 * command.h: Update.
8012 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8013 (do_setshow_command): Update.
8014 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8015 * cli/cli-decode.h: Update.
8017 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8019 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8020 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8021 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8022 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8023 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8024 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8026 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8027 list of DJGPP COFF targets.
8029 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8030 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8031 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8032 (FP0_REGNUM): Remove define.
8033 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8034 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8035 (i386_register_virtual_size): Remove protoype.
8036 * i386-tdep.c (i386_register_virtual_size): Removed.
8037 (i386_extract_return_value, i386_store_return_value): Use
8038 FP0_REGNUM instead of NUM_FREGS to determine whether the
8039 floating-point registers are available.
8040 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8041 Adjust for removal of macros mentioned above.
8043 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8045 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8047 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8049 (supply_gregset, fill_gregset): Remove use of register keyword and
8050 remove declaration for regmap. Use I386_NUM_GREGS instead of
8051 NUM_REGS and NUM_FREGS.
8052 (FPREGSET_FSAVE_OFFSET): Remove.
8053 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8054 NUM_FREGS to determine whether the floating-point registers are
8057 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8058 gnu_store_registers): Replace usage of NUM_GREGS with
8061 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8062 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8063 usage of NUM_GREGS with I386_NUM_GREGS.
8065 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8067 * i386bsd-nat.c: Include "i386-tdep.h".
8068 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8071 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8072 and associated comment. They no longer make any sense, since we
8073 don't use this file anymore on Linux.
8075 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8076 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8077 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8078 elements in these arrays.
8079 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8082 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8084 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8085 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8087 2002-06-14 Andrew Cagney <cagney@redhat.com>
8089 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8090 EXTRACT_RETURN_VALUE.
8091 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8092 EXTRACT_STRUCT_VALUE_ADDRESS.
8093 * gdbarch.h, gdbarch.c: Regenerate.
8095 * values.c (value_being_returned): Handle
8096 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8097 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8099 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8100 * arm-tdep.c (arm_gdbarch_init): Update.
8101 * avr-tdep.c (avr_gdbarch_init): Update.
8102 * cris-tdep.c (cris_gdbarch_init): Update.
8103 * d10v-tdep.c (d10v_gdbarch_init): Update.
8104 * ia64-tdep.c (ia64_gdbarch_init): Update.
8105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8107 * s390-tdep.c (s390_gdbarch_init): Update.
8108 * sh-tdep.c (sh_gdbarch_init): Update.
8109 * s390-tdep.c (s390_gdbarch_init): Update.
8110 * sparc-tdep.c (sparc_gdbarch_init): Update.
8111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8112 * v850-tdep.c (v850_gdbarch_init): Update.
8113 * vax-tdep.c (vax_gdbarch_init): Update.
8114 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8117 * config/arc/tm-arc.h: Update.
8118 * config/d30v/tm-d30v.h: Update.
8119 * config/fr30/tm-fr30.h: Update.
8120 * config/h8300/tm-h8300.h: Update.
8121 * config/h8500/tm-h8500.h: Update.
8122 * config/i386/tm-i386.h: Update.
8123 * config/i386/tm-ptx.h: Update.
8124 * config/i386/tm-symmetry.h: Update.
8125 * config/i960/tm-i960.h: Update.
8126 * config/m32r/tm-m32r.h: Update.
8127 * config/m68k/tm-delta68.h: Update.
8128 * config/m68k/tm-linux.h: Update.
8129 * config/m68k/tm-m68k.h: Update.
8130 * config/m88k/tm-m88k.h: Update.
8131 * config/mcore/tm-mcore.h: Update.
8132 * config/mips/tm-mips.h: Update.
8133 * config/mn10200/tm-mn10200.h: Update.
8134 * config/pa/tm-hppa.h: Update.
8135 * config/pa/tm-hppa64.h: Update.
8136 * config/sparc/tm-sp64.h: Update.
8137 * config/sparc/tm-sparc.h: Update.
8138 * config/sparc/tm-sparclet.h: Update.
8139 * config/z8k/tm-z8k.h: Update.
8141 2002-06-14 Andrew Cagney <cagney@redhat.com>
8143 * Makefile.in (i386_linux_tdep_h): Define.
8144 (i386_tdep_h, i387_tdep_h): Define.
8145 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8146 $(i386_tdep_h) and $(i387_tdep_h).
8147 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8149 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8151 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8152 Already covered by the default.
8154 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8155 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8156 (i386_gdbarch_init): Initialize long_double_format and long_double
8159 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8160 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8162 * config/i386/i386sol2.mh: ... here.
8163 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8164 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8165 (SIGCONTEXT_PC_OFFSET): Remove define.
8166 (IN_SIGTRAMP): Remove define.
8167 * i386-sol2-tdep.c: New file.
8169 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8170 * config/i386/tm-i386nw.h: Removed.
8172 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8173 USE_STRUCT_CONVENTION): Remove defines.
8174 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8175 (get_longjmp_target): Remove prototype.
8176 (IN_SIGTRAMP): Remove define.
8177 (i386bsd_in_sigtramp): Remove prototype.
8178 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8179 function. Update comment accordingly
8180 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8181 (FRAME_SAVED_PC): Remove define.
8182 (i386bsd_frame_saved_pc): Remove prototype.
8183 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8184 GET_LONGJMP_TARGET): Remove defines.
8185 (get_longjmp_target): Remove prototype.
8186 (IN_SIGTRAMP): Remove define.
8187 (i386bsd_in_sigtramp): Remove prototype.
8188 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8189 function. Update comment accordingly
8190 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8191 (FRAME_SAVED_PC): Remove define.
8192 (i386bsd_frame_saved_pc): Remove prototype.
8193 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8195 (USE_STRUCT_CONVENTION): Remove prototype.
8196 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8198 (_initialize_i386bsd_nat): Revise logic to determine some
8199 constants at compile time when compiling a native GDB. Warn if
8200 things don't match up with what we expect.
8201 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8203 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8204 to use date stored in `struct gdbarch_tdep'.
8205 (i386bsd_sigcontext_offset): Remove varaible.
8206 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8207 stored in `struct gdbarch_tdep'.
8208 (i386bsd_frame_saved_pc): Make static.
8209 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8210 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8211 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8212 i386fbsd4_sc_pc_offset): New variables.
8213 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8214 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8216 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8218 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8219 Modify the value of i386fbsd_sigtramp_start and
8220 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8221 i386fbsd_sigtramp_end.
8222 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8225 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8226 define to i386-linux-tdep.h.
8227 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8228 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8230 (i386_linux_register_name, i386_linux_register_byte,
8231 i386_linux_register_raw_size): Remove prototypes.
8232 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8233 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8234 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8235 TARGET_WRITE_PC): Remove defines.
8236 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8237 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8238 i386_linux_write_pc): Remove prototypes.
8239 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8240 (get_longjmp_target): Remove prototype.
8241 * i386-linux-tdep.h: New file.
8242 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8243 * i386-linux-tdep.c: Include "i386-tdep.h" and
8244 "i386-linux-tdep.h".
8245 (i386_linux_register_name, i386_linux_register_byte,
8246 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8247 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8249 (i386_linux_init_abi): New function.
8250 (_initialize_i386_linux_tdep): New function.
8252 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8253 (i386_saved_pc_after_call): Remove prototype.
8254 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8255 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8256 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8257 (i386_register_name, i386_stab_reg_to_regnum,
8258 i386_dwarf_reg_to_regnum): Remove prototypes.
8259 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8260 SIZEOF_SSE_REGS): Remove defines.
8261 (REGISTER_BYTES): Remove define.
8262 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8263 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8264 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8265 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8266 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8267 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8268 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8269 (get_longjmp_target): Remove prototype.
8270 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8271 (sigtramp_saved_pc): Remove define.
8272 (i386v4_sigtramp_saved_pc): Remove prototype.
8273 * config/i386/tm-go32.h (FRAME_CHAIN,
8274 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8275 (i386go32_frame_saved_pc): Remove prototype.
8276 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8277 (get_longjmp_target): Remove prototype.
8278 * i386-tdep.h: Include "osabi.h".
8279 (enum i386_abi): Removed.
8280 (enum struct_return): New enum.
8281 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8282 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8283 sc_pc_offset members.
8284 (i386_gdbarch_register_os_abi): Remove prototype.
8285 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8286 I386_SSE_NUM_REGS): New defines.
8287 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8288 I386_SSE_SIZEOF_REGS): New defines.
8289 (i386_register_name, i386_register_byte, i386_register_raw_size):
8291 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8292 (i386bsd_sigtramp_saved_pc): New prototype.
8293 * i386-tdep.c: Don't include "elf-bfd.h".
8294 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8295 i386_frame_chain, i386_saved_pc_after_call): Make static.
8296 (i386_frame_saved_pc): Rewrite to call architecture dependent
8297 function to deal with signal handlers. Make static.
8298 (i386go32_frame_saved_pc): Removed.
8299 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8301 (i386_get_longjmp_target): New function.
8302 (default_struct_convention, pcc_struct_convention,
8303 reg_struct_convention, valid_conventions, struct_convention): New
8305 (i386_use_struct_convention): New function.
8306 (i386v4_sigtramp_saved_pc): Renamed to
8307 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8308 (i386_pc_in_sigtramp): New function.
8309 (i386_abi_names): Removed.
8310 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8311 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8313 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8314 i386_gdbarch_register_os_abi): Removed.
8315 (struct i386_abi_handler): Removed.
8316 (i386_abi_handler_list): Removed.
8317 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8319 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8320 i386_nw_init_abi): New functions.
8321 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8322 Use set_gdbarch_xxx() calls instead of relying on macros for a
8324 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8325 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8326 Register the various architecture variants defined in this file.
8328 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8330 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8331 (struct main_type): Remove arg_types member. Update comments for
8333 (TYPE_ARG_TYPES): Remove.
8334 (TYPE_FN_FIELD_ARGS): Update.
8335 (smash_to_method_type): Update prototype.
8337 * c-typeprint.c (cp_type_print_method_args): Take method type
8338 instead of argument list. Use new argument layout. Simplify.
8339 (c_type_print_args): Use new argument layout. Simplify.
8340 (c_type_print_base): Update call to cp_type_print_method_args.
8341 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8342 argument; use die->type instead. Update call to
8343 smash_to_method_type.
8344 (read_structure_scope): Update call to dwarf2_add_member_fn.
8345 * gdbtypes.c (allocate_stub_method): Update comment.
8346 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8347 Use new argument layout.
8348 (check_stub_method): Use new argument layout. Don't count
8349 void as an argument.
8350 (print_arg_types): Update comments. Use new argument layout.
8351 (recursive_dump_type): Don't print arg_types member.
8352 * hpread.c (hpread_read_struct_type): Use new argument layout.
8353 (fixup_class_method_type): Likewise.
8354 (hpread_type_lookup): Likewise.
8355 * stabsread.c (read_type): Update calls to read_args and
8356 smash_to_method_type.
8357 (read_args): Use new argument layout. Simplify.
8358 * valops.c (typecmp): Use new argument layout. Update parameters
8359 and comments. Simplify.
8360 (hand_function_call): Use new argument layout.
8361 (search_struct_method): Update call to typecmp.
8362 (find_overload_match): Use new argument layout.
8364 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8366 * NEWS: Mention multithreaded debug support for gdbserver.
8368 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8370 * MAINTAINERS: Mention NEWS.
8372 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8374 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8375 (struct mips_objfile_private, compare_pdr_entries): New.
8376 (non_heuristic_proc_desc): Read the ".pdr" section if it
8379 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8381 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8382 (arm_debug): New static variable.
8383 (_initialize_arm_tdep): Add ``set debug arm'' command.
8385 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8387 * Makefile.in (sim_arm_h): Define.
8388 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8389 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8390 (arm_register_sim_regno): New function, map an internal REGNUM
8391 onto a simulator register number.
8392 (arm_gdbarch_init): Set register_sim_regno.
8394 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8396 * MAINTAINERS: Add self.
8398 2002-06-11 Jim Blandy <jimb@redhat.com>
8400 * source.c (source_info): Mention whether the symtab has
8401 information about preprocessor macros.
8403 Call the command `info macro', not `show macro'.
8404 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8406 (_initialize_macrocmd): Register `info_macro_command' in
8407 `infolist', not `showlist'.
8409 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8411 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8412 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8413 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8414 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8415 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8417 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8418 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8419 (_initialize_mips_tdep): Remove dead code.
8420 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8421 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8422 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8423 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8424 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8425 MIPS_LAST_FP_ARG_REGNUM): Remove.
8427 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8429 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8430 (unwind_tmp_obstack_free, parse_frame_info)
8431 (update_context, cfi_read_fp, cfi_write_fp)
8432 (cfi_frame_chain, cfi_init_extra_frame_info)
8433 (cfi_virtual_frame_pointer): Use the above function.
8434 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8436 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8438 * v850-tdep.c (v850_type_is_scalar): New function.
8439 (v850_use_struct_convention): Match current gcc implementation
8440 as close as possible.
8441 (v850_push_arguments): Fix stack_offset handling. Don't write
8442 struct_addr into register. This is done by v850_store_struct_return.
8443 (v850_extract_return_value): Care for structs.
8444 (v850_store_return_value): Ditto.
8445 (v850_store_struct_return): Actually write address.
8447 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8449 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8450 without debug information too.
8452 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8454 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8455 Make multi-arch pure.
8456 * gdbarch.h, gdbarch.c: Re-generate.
8457 * arm-tdep.c (arm_print_float_info): Update.
8458 * arch-utils.h (default_print_float_info): Update.
8459 * arch-utils.c (default_print_float_info): Update.
8460 * infcmd.c (float_info): Update call.
8462 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8464 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8465 the front of the initialize list.
8467 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8469 * infrun.c (struct inferior_status): Replace fields
8470 selected_frame_address and selected_level with field
8472 (save_inferior_status): Update. Use get_frame_id.
8473 (struct restore_selected_frame_args): Delete.
8474 (restore_selected_frame): Update. Use frame_find_by_id.
8475 (restore_inferior_status): Update.
8477 * breakpoint.h (struct breakpoint): Change type of
8478 watchpoint_frame to frame_id.
8479 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8480 call to get_current_frame.
8481 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8483 (watchpoint_check): Use frame_find_by_id.
8485 * frame.h (record_selected_frame): Delete declaration.
8486 * stack.c (record_selected_frame): Delete function.
8488 * frame.h (struct frame_id): Define.
8489 (get_frame_id): Declare.
8490 (frame_find_by_id): Declare.
8491 * frame.c (frame_find_by_id): New function.
8492 (get_frame_id): New function.
8494 2002-06-10 Andrey Volkov <avolkov@transas.com>
8496 * ser-e7kpc.c: Fix duplicated define and call of
8497 _initialize_ser_e7000pc
8499 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8501 * signals/signals.c (target_signal_from_host): Fix #ifdef
8503 (do_target_signal_to_host): Likewise.
8505 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8507 * mips-tdep.c (mips_find_abi_section): New function.
8508 (mips_gdbarch_init): Call it.
8510 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8512 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8513 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8514 after Andrew's 2002-06-08 gdbarch change.
8516 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8518 * i386-linux-nat.c (suppy_gregset): Don't supply
8519 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8521 (fill_gregset): Don't fetch it under the same circumstances.
8523 2002-06-09 Andrew Cagney <cagney@redhat.com>
8525 * Makefile.in (callback_h): Define.
8526 (remote_sim_h): Update path to remote-sim.h.
8527 (remote-rdp.o): Add $(callback_h).
8528 (remote-sim.o): Use $(callback_h).
8529 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8530 * remote-rdp.c: Include "gdb/callback.h".
8532 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8534 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8535 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8537 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8539 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8540 * rdi-share/serpardr.c: Ditto.
8541 * rdi-share/unixcomm.c: Ditto.
8542 * rdi-share/serdrv.c: Ditto.
8543 * rdi-share/hostchan.h: Ditto.
8544 * rdi-share/hostchan.c: Ditto.
8545 * rdi-share/host.h: Ditto.
8546 * rdi-share/devsw.c: Ditto.
8548 * objfiles.h: Change type of obj_private to void pointer.
8549 * pa64solib.c: Update copyright. Don't include "assert.h", use
8550 strcmp instead of STREQ, use LONGEST, do not use PTR
8551 * somsolib.c: Ditto.
8553 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8554 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8555 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8557 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8559 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8560 (default_get_saved_register): Delete function.
8561 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8562 generic_unwind_get_saved_register.
8563 * gdbarch.h, gdbarch.c: Re-generate.
8565 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8567 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8568 generic_func_frame_chain_valid.
8569 * gdbarch.h, gdbarch.c: Re-generate.
8570 * blockframe.c (generic_func_frame_chain_valid): Only check
8571 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8572 passing FP to PC_IN_CALL_DUMMY.
8575 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8577 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8578 (register_gdbarch_data): Initialize init_p.
8579 (gdbarch_data): Initialize data pointer using the init function.
8580 (init_gdbarch_data): Delete function.
8581 (gdbarch_update_p): Update.
8582 (initialize_non_multiarch): Update.
8583 (struct gdbarch): Add field initialized_p.
8584 * gdbarch.h, gdbarch.c: Re-generate.
8586 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8588 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8589 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8590 better do the things actually here.
8591 * x86-64-tdep.c (x86_64_register_name2nr): New.
8592 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8593 (x86_64_gdbarch_init): Respect the above change.
8594 * x86-64-tdep.h (x86_64_register_name2nr)
8595 (x86_64_register_nr2name): Add prototypes.
8596 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8598 2002-06-06 Michael Snyder <msnyder@redhat.com>
8600 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8601 Delete extra braces and re-indent.
8602 (d10v_store_return_value): Char return values
8603 must be shifted over by one byte in R0.
8604 (d10v_extract_return_value): Delete extra braces, re-indent.
8606 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8608 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8609 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8610 (d10v_integer_to_address): Rewrite.
8611 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8612 the d10v specific functions which take care of converting to the
8615 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8617 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8618 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8620 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8622 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8624 * config/tm-linux.h: Ditto.
8625 * config/alpha/tm-alphalinux.h: Ditto.
8626 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8627 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8628 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8629 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8630 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8631 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8632 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8633 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8634 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8635 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8636 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8637 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8638 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8639 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8640 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8641 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8642 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8643 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8644 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8645 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8646 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8647 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8648 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8649 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8650 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8651 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8652 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8653 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8654 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8655 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8656 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8657 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8658 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8659 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8660 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8661 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8662 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8664 2002-05-04 Aidan Skinner <aidan@velvet.net>
8666 * ada-exp.tab.c: New file
8667 * ada-exp.y: New file
8668 * ada-lang.c: New file
8669 * ada-lang.h: New file
8670 * ada-lex.c: New file
8671 * ada-lex.l: New file
8672 * ada-tasks.c: New file
8673 * ada-typeprint.c: New file
8674 * ada-valprint.c: New file
8676 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8678 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8679 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8681 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8683 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8684 insetead of ppc-linux-tdep.o.
8685 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8686 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8688 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8690 2002-05-07 Christian Groessler <chris@groessler.org>
8691 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8692 bit register contents for little endian hosts.
8694 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8696 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8699 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8701 * gdbarch.h: Regenerate.
8703 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8705 * MAINTAINERS: Add everyone to write-after-approval list.
8707 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8709 * stack.c (frame_info): Use frame_register_unwind instead of
8710 saved_regs. Mention when the SP is on the stack or in a register.
8712 * frame.h (frame_register_unwind_ftype): Define. Document.
8713 (struct frame_info): Add field register_unwind and
8714 register_unwind_cache.
8715 (frame_register_unwind): Declare.
8716 (generic_unwind_get_saved_register): Declare.
8718 * frame.c (frame_register_unwind): New function.
8719 (generic_unwind_get_saved_register): New function.
8721 * blockframe.c (generic_call_dummy_register_unwind): New function.
8722 (frame_saved_regs_register_unwind): New function.
8723 (set_unwind_by_pc): New function.
8724 (create_new_frame): New function.
8725 (get_prev_frame): New function.
8727 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8729 * a29k-share/: Delete directory.
8730 * remote-vx29k.c: Delete file.
8732 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8734 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8735 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8737 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8739 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8740 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8743 (sparcnbsd-tdep.o): New dependency lists.
8744 * NEWS: Note new UltraSPARC NetBSD native configuration.
8745 * configure.host (sparc64-*-netbsd*): New host.
8746 * configure.tgt (sparc-*-netbsdelf*)
8747 (sparc-*-netbsd*): Set gdb_target to nbsd.
8748 (sparc64-*-netbsd*): New target.
8749 * sparc64nbsd-nat.c: New file.
8750 * sparcnbsd-nat.c: New file.
8751 * sparcnbsd-tdep.c: New file.
8752 * sparcnbsd-tdep.h: New file.
8753 * config/sparc/nbsd.mt: New file.
8754 * config/sparc/nbsd64.mh: New file.
8755 * config/sparc/nbsd64.mt: New file.
8756 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8757 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8759 * config/sparc/nbsdaout.mt: Remove.
8760 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8761 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8763 * config/sparc/nbsdelf.mt: Remove.
8764 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8765 sparc-nat.c compatiblity defines.
8766 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8767 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8768 * config/sparc/tm-nbsd64.h: New file.
8769 * config/sparc/tm-nbsdaout.h: Remove.
8770 * config/sparc/xm-nbsd.h: Remove.
8772 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8774 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8775 * sparc-tdep.c: Include osabi.h.
8776 (gdbarch_tdep): Add osabi member.
8777 (_initialize_sparc_tdep): Use gdbarch_register.
8778 (sparc_gdbarch_init): Use generic OS ABI framework.
8779 (sparc_dump_tdep): New function.
8781 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8783 * corefile.c (do_captured_read_memory_integer): Return non-zero
8785 (safe_read_memory_integer): Copy result of memory read when
8786 status is non-zero. Also, add comments.
8788 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8790 * Makefile.in (ppc_tdep_h): Define.
8793 (rs6000-tdep.o): Use $(ppc_tdep_h).
8796 (ppcnbsd-tdep.o): New dependency lists.
8797 * ppc-tdep.h: Use generic OS ABI framework.
8798 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8799 (ppc_linux_init_abi): New functions.
8800 (ppc_sysv_abi_broken_use_struct_convention)
8801 (ppc_sysv_abi_use_struct_convention)
8802 (ppc_sysv_abi_push_arguments): Move to...
8803 * ppc-sysv-tdep.c: ...here.
8804 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8805 * rs6000-tdep.c (process_note_abi_tag_sections)
8806 (get_elfosabi): Remove.
8807 (rs6000_gdbarch_init): Use generic OS ABI framework.
8808 (rs6000_dump_tdep): New function.
8809 (_initialize_rs6000_tdep): Use gdbarch_register.
8810 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8811 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8812 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8813 of ppc-linux-tdep.o.
8814 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8815 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8816 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8817 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8818 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8819 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8821 2002-05-29 Jim Blandy <jimb@redhat.com>
8823 * macroscope.c (default_macro_scope): Put `void' in empty argument
8826 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8828 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8829 * arch-utils.c: Include "sim-regno.h".
8830 * gdbarch.sh: Don't include "sim-regno.h".
8831 * gdbarch.h, gdbarch.c: Regenerate.
8832 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8834 * arch-utils.h (legacy_register_sim_regno): To here.
8835 * remote-sim.c (legacy_register_sim_regno): Move function from
8837 * arch-utils.c (legacy_register_sim_regno): To here.
8839 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8841 * sim-regno.h: New file.
8842 * Makefile.in (sim_regno_h): Define.
8843 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8844 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8845 (legacy_register_sim_regno): New function.
8846 (one2one_register_sim_regno): New function.
8847 (gdbsim_fetch_register): Rewrite.
8848 (gdbsim_store_register): Only store a register when
8849 REGISTER_SIM_REGNO is valid.
8850 * d10v-tdep.c: Include "sim-regno.h".
8851 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8852 (d10v_ts3_register_sim_regno): Ditto.
8853 * gdbarch.sh: Include "sim-regno.h".
8854 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8855 * gdbarch.h, gdbarch.c: Regenerate.
8856 * arch-utils.h (default_register_sim_regno): Delete declaration.
8857 * arch-utils.c (default_register_sim_regno): Delete function.
8859 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8861 * ppcnbsd-nat.c: Rewrite.
8862 * ppcnbsd-tdep.c: New file.
8863 * ppcnbsd-tdep.h: New file.
8864 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8865 solib.o, and solib-svr4.o.
8866 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8867 nbsd-tdep.o, and corelow.o.
8869 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8871 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8872 `tr' and `sed'. Mention that `broken' targets are not expected to
8875 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8877 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8878 Let PC point right after the prologue before looking up symbols.
8880 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8882 * i386-tdep.c (i386_register_virtual_type): Return
8883 builtin_type_vec128i for SSE registers.
8885 * gdbtypes.h (builtin_type_vec128i): Declare.
8887 * gdbtypes.c (build_builtin_type_vec128i): New function.
8888 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8889 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8890 (build_gdbtypes): Initialize new builtin vector types.
8891 (_initialize_gdbtypes): Register new vector types with gdbarch.
8893 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8895 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8896 since it has been multi-arch'd.
8897 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8898 Move Alpha and VAX multi-arch news entries to same section
8899 as other multi-arch news.
8901 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8903 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8904 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8905 static. Rename some register numbers to put them in ns32k-tdep
8907 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8908 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8910 (_initialize_ns32k_tdep): Use gdbarch_register.
8911 * ns32k-tdep.h: New file.
8912 * ns32knbsd-tdep.c: New file.
8913 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8914 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8915 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8916 REGISTER_BYTES, REGISTER_BYTE): Remove.
8917 * config/ns32k/tm-ns32k.h: New file.
8918 * config/ns32k/tm-umax.h: Remove.
8920 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8922 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8923 ns32k_store_struct_return, ns32k_extract_return_value,
8924 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8926 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8927 ns32k_saved_pc_after_call.
8928 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8929 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8930 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8931 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8932 ns32k_extract_struct_value_address.
8934 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8936 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8937 ns32k_fix_call_dummy): New.
8938 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8939 ns32k_call_dummy_words.
8940 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8941 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8942 CALL_DUMMY_NARGS): Remove.
8943 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8945 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8947 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8948 ns32k_frame_saved_pc, ns32k_frame_args_address,
8949 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8950 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8951 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8952 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8953 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8954 (BREAKPOINT): Remove..
8955 (FRAME_CHAIN): Define as ns32k_frame_chain.
8956 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8957 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8958 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8959 (FRAME_FIND_SAVED_REGS): Remove.
8960 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8961 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8962 (POP_FRAME): Define as ns32k_pop_frame.
8964 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8966 * ns32k-tdep.c (ns32k_register_byte_32082,
8967 ns32k_register_byte_32382, ns32k_register_raw_size,
8968 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8970 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8971 ns32k_register_byte_32382.
8972 * config/ns32k/tm-umax.h: Update copyright years.
8973 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8974 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8975 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8976 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8977 (ns32k_get_enter_addr): Fix prototype.
8979 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8981 * ns32k-tdep.c: Update copyright years.
8982 (ns32k_register_name_32082): New function.
8983 (ns32k_register_name_32382): Ditto.
8984 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8985 (REGISTER_NAME): Define as ns32k_register_name_32382.
8986 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8987 (REGISTER_NAME): Define as ns32k_register_name_32082.
8989 2002-05-24 Jim Blandy <jimb@redhat.com>
8991 * dwarf2read.c (free_line_header): Use xfree, not free.
8993 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8995 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8996 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8998 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9000 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9002 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9004 From Ross Alexander at NEC Europe:
9005 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9007 2002-05-23 Michael Snyder <msnyder@redhat.com>
9009 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9010 for input, rather than parse_and_eval_address.
9012 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9014 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9015 * Makefile.in (sim_d10v_h): Update definition.
9017 2002-05-24 Andrew Cagney <cagney@redhat.com>
9019 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9020 change `2002-05-22 Michael Snyder' below.
9021 (d10v_push_arguments): Ditto.
9022 (d10v_extract_return_value): Ditto.
9024 2002-05-23 Jim Blandy <jimb@redhat.com>
9026 * macrotab.c (check_for_redefinition): Don't complain if the new
9027 definition is the same as the previous one. Take more arguments
9028 to allow the comparison.
9029 (macro_define_object, macro_define_function): Pass more arguments
9030 to check_for_redefinition.
9032 2002-05-22 Michael Snyder <msnyder@redhat.com>
9034 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9035 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9036 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9037 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9038 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9039 Add a temp variable to save a call (and a memory read).
9040 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9041 if possible (so that PC_IN_CALL_DUMMY will work).
9043 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9045 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9047 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9049 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9051 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9052 (dwarf2_build_frame_info): Add offset to fde->initial_location
9053 so that frames of shared libraries are mapped correctly.
9054 (execute_stack_op): Change type of 'result' from ULONGEST to
9057 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9059 * config/alpha/tm-nbsd.h: Include solib.h.
9061 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9063 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9064 assumptions about the host's byte order.
9066 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9068 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9070 * alphanbsd-tdep.c: Include solib-svr4.h.
9071 * shnbsd-tdep.c: Ditto.
9073 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9075 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9076 nbsd-tdep.h to dependency list.
9077 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9078 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9079 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9080 nbsdaout.mh and nbsdelf.mh consistently.
9081 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9082 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9083 nbsdaout.mt and nbsdelf.mh consistently.
9084 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9085 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9086 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9087 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9088 a.out shared library stuff from here...
9089 * config/nm-nbsdaout.h: ...to here.
9090 * config/tm-nbsd.h: Remove.
9091 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9092 * config/arm/nbsd.mh: Remove.
9093 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9095 * config/arm/nbsdaout.mh: New file.
9096 * config/arm/nbsdelf.mh: New file.
9097 * config/arm/nm-nbsdaout.h: New file.
9098 * config/i386/nbsd.mh: Remove.
9099 * config/i386/nbsd.mt: Remove.
9100 * config/i386/nbsdaout.mh: New file.
9101 * config/i386/nbsdaout.mt: New file.
9102 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9103 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9104 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9105 i386_register_u_addr): Remove.
9106 * config/i386/nm-nbsdaout.h: New file.
9107 * config/i386/nm-nbsdelf.h: Remove.
9108 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9109 (USE_STRUCT_CONVENTION): Remove.
9110 * config/i386/tm-nbsdaout.h: New file.
9111 * config/i386/tm-nbsdelf.h: Remove.
9112 * config/m68k/nbsd.mh: Remove.
9113 * config/m68k/nbsd.mt: Remove.
9114 * config/m68k/nbsdaout.mh: New file.
9115 * config/m68k/nbsdaout.mt: New file.
9116 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9117 * config/m68k/nm-nbsdaout.h: New file.
9118 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9119 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9120 * config/ns32k/nbsd.mh: Remove.
9121 * config/ns32k/nbsd.mt: Remove.
9122 * config/ns32k/nbsdaout.mh: New file.
9123 * config/ns32k/nbsdaout.mt: New file.
9124 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9125 * config/ns32k/nm-nbsdaout.h: New file.
9126 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9127 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9128 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9129 (SVR4_SHARED_LIBS): Remove.
9130 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9131 * config/sparc/nbsd.mh: Remove.
9132 * config/sparc/nbsd.mt: Remove.
9133 * config/sparc/nbsdaout.mh: New file.
9134 * config/sparc/nbsdaout.mt: New file.
9135 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9136 * config/sparc/nbsdelf.mt: New file.
9137 * config/sparc/nm-nbsdaout.h: New file.
9138 * config/sparc/nm-nbsdelf.h: Remove.
9139 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9140 * config/sparc/tm-nbsdaout.h: New file.
9142 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9144 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9146 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9148 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9150 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9152 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9154 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9156 * NEWS: Note new MIPS NetBSD native configuration.
9157 * configure.host (mips*-*-netbsd*): New host.
9158 * configure.tgt (mips*-*-netbsd*): New target.
9159 * mipsnbsd-nat.c: New file.
9160 * mipsnbsd-tdep.c: New file.
9161 * mipsnbsd-tdep.h: New file.
9162 * config/mips/nbsd.mh: New file.
9163 * config/mips/nbsd.mt: New file.
9164 * config/mips/nm-nbsd.h: New file.
9165 * config/mips/tm-nbsd.h: New file.
9167 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9169 * Makefile.in (SFILES): Add osabi.c.
9170 (COMMON_OBS): Add osabi.o.
9171 (osabi.o): New dependency list.
9172 * osabi.c: New file.
9173 * osabi.h: New file.
9174 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9176 * Makefile.in (alpha_tdep_h): Define and use instead of
9178 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9179 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9181 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9182 * alpha-tdep.h: Include osabi.h.
9183 (alpha_abi): Remove.
9184 (gdbarch_tdep): Use generic OS ABI framework.
9185 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9186 gdbarch_register_osabi.
9187 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9188 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9189 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9191 * Makefile.in (sh_tdep_h): Add osabi.h.
9192 * sh-tdep.h (sh_osabi): Remove.
9193 (gdbarch_tdep): Use generic OS ABI framework.
9194 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9195 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9196 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9197 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9199 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9200 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9201 gdbarch_register_osabi.
9202 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9203 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9204 (get_elfosabi): Rename to...
9205 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9206 ABI framework support routines.
9207 (arm_gdbarch_init): Use generic OS ABI framework.
9208 (arm_dump_tdep): Likewise.
9209 (_initialize_arm_tdep): Likewise.
9210 * arm-tdep.h: Include osabi.h.
9212 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9214 (arm_gdbarch_register_os_abi): Remove prototype.
9215 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9216 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9218 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9219 * mips-tdep.c: Include osabi.h.
9220 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9223 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9225 * h8300-tdep.c: Fix formatting.
9227 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9229 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9230 printing vector registers.
9232 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9234 From Fernando Nasser:
9235 * remote.c (remote_async_open_1): Re-throw the exception when the
9237 (remote_cisco_open): Ditto.
9238 (remote_open_1): Ditto.
9240 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9242 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9243 (remote_start_remote): Add uiout parameter. Pass through to
9244 remote_start_remote_dummy.
9245 (remote_open_1): Use catch_exception instead of catch_errors.
9246 (remote_async_open_1): Ditto.
9247 (remote_cisco_open): Ditto.
9249 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9251 * remote.c (remote_start_remote): Replace PTR with void pointer.
9252 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9255 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9257 * gdb_indent.sh: Allow the script to be run in the sim directory.
9259 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9261 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9262 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9264 * corelow.c (core_open): Only call set_gdbarch_from_file if
9267 2002-05-17 Andrey Volkov <avolkov@transas.com>
9269 * h8300-tdep.c: Add support of EXR register
9270 * config/h8300/tm-h8300.h: Ditto.
9272 2002-05-17 Andrey Volkov <avolkov@transas.com>
9274 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9276 2002-05-17 Andrey Volkov <avolkov@transas.com>
9278 * h8300-tdep.c: Change literal regnums to REGNO.
9280 2002-05-17 Jim Blandy <jimb@redhat.com>
9282 * NEWS: Note addition of macro support.
9284 Expand preprocessor macros in C expressions.
9285 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9286 (scan_macro_expansion, scanning_macro_expansion,
9287 finished_macro_expansion): New function declarations.
9288 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9289 variable declarations.
9290 * parser-defs.h (expression_context_pc): New declaration.
9291 * parse.c (expression_context_pc): New variable.
9292 (parse_exp_1): Set expression_context_pc, as well as
9293 expression_context_block.
9294 * c-exp.y (yylex): If we're not already reading the result of a
9295 macro expansion, try to macro-expand the next token. When we're
9296 done scanning a macro expansion, switch back to the mainline text.
9297 Commas and `if's in a macro's expansion don't terminate the input.
9298 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9299 (macro_original_text, macro_expanded_text,
9300 expression_macro_lookup_func, expression_macro_lookup_baton): New
9302 (scan_macro_expansion, scanning_macro_expansion,
9303 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9304 c_preprocess_and_parse): New functions.
9305 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9306 c_preprocess_and_parse, instead of c_parse.
9307 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9308 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9310 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9312 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9313 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9314 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9316 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9318 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9320 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9322 * Makefile.in (sh_tdep_h): Define and use.
9323 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9324 register enum): Move to...
9325 * * sh-tdep.h: ...here.
9326 * sh-tdep.c: Include sh-tdep.h.
9327 * sh3-rom.c: Likewise.
9328 * shnbsd-tdep.c: Likewise.
9330 2002-05-16 Michael Snyder <msnyder@redhat.com>
9332 * arm-tdep.c: Spelling fix in comment.
9334 2002-05-16 Jim Blandy <jimb@redhat.com>
9336 Add commands for manually expanding macros and showing their
9338 * macrocmd.c, macroscope.c, macroscope.h: New files.
9339 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9340 (macroscope_h): New variable.
9341 (HFILES_NO_SRCDIR): Add macroscope.h.
9342 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9343 (macroscope.o, macrocmd.o): New rules.
9345 Teach the Dwarf 2 reader to read macro information.
9346 * dwarf2read.c: #include "macrotab.h".
9347 (dwarf_macinfo_buffer): New variable.
9348 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9350 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9351 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9352 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9353 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9354 dwarf2_macro_spaces_in_definition): New complaints.
9355 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9356 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9357 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9358 the partial symbol table.
9359 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9360 from what's recorded in the partial symbol table.
9361 (read_file_scope): If the compilation unit has a
9362 `DW_AT_macro_info' attribute, read its macro information.
9363 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9365 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9368 * ser-tcp.c: Don't include <netinet/udp.h>.
9370 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9372 * MAINTAINERS: Update my email address.
9374 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9376 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9377 include file of the same name.
9379 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9381 * configure.tgt: Mark v850 as multi-arched.
9382 * config/v850/tm-v850.h: Remove file.
9383 * config/v850/v850.mt: Eliminate TM_FILE.
9385 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9387 * v850-tdep.c: Full multi-arch.
9388 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9389 Define GDB_MULTI_ARCH to 2.
9391 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9393 * p-exp.y (current_type): New static variable.
9394 Carries the type of the expression at the position that is parsed.
9395 (push_current_type, pop_current_type): Two new functions. Used
9396 to store/restore current_type in expression on specific tokens.
9397 (search_field): New static variable. Set to one after parsing a point
9398 as at that point only a FIELDNAME token should be searched.
9399 (FIELDNAME): New token. After a point only a token belonging to
9400 current_type type definition is allowed.
9401 (all over token rules): reset and change current_type according
9403 (exp '[' rule): insert implicit array index field if
9404 exp is a pascal string type.
9406 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9408 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9409 frame info. Use frame_info's saved_regs instead of matching member
9410 in extra_frame_info throughout.
9411 (v850_frame_init_saved_regs): New function.
9412 (v850_init_extra_frame_info): Move most functionality into
9413 v850_frame_init_saved_regs().
9414 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9415 (v850_frame_find_saved_regs): Remove declaration.
9416 (FRAME_FIND_SAVED_REGS): Remove definition.
9417 (v850_frame_init_saved_regs): Add declaration.
9418 (FRAME_INIT_SAVED_REGS): Add definition.
9420 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9422 * v850-tdep.c: Begin multi-arch'ing v850.
9423 (v850_target_architecture_hook): Remove function.
9424 (v850_gdbarch_init): New function. Add code previously in
9425 v850_target_architecture_hook().
9426 (_initialize_v850_tdep): Don't set target_architecture_hook.
9427 Call register_gdbarch_init() instead.
9429 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9431 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9432 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9433 (fixup_class_method_type): Likewise.
9435 2002-05-15 Jim Blandy <jimb@redhat.com>
9437 Add macro structures to GDB's symbol tables. Nobody puts anything
9439 * symtab.h (struct symtab): New member: `macro_table'.
9440 * buildsym.h (pending_macros): New global variable.
9441 * buildsym.c: #include "macrotab.h".
9442 (buildsym_init): Initialize `pending_macros'.
9443 (end_symtab): If we found macro information while reading a CU's
9444 debugging info, do build a symtab structure for it. Make the
9445 symtab point to the macro information, and clear the
9446 `pending_macros' pointer which held it while we were reading the
9448 (really_free_pendings): Free any pending macro table.
9449 * objfiles.h (struct objfile): New member: `macro_cache'.
9450 * objfiles.c (allocate_objfile): Set allocate and free functions
9451 for the macro cache's objstack.
9452 (free_objfile): Empty the macro cache's obstack.
9453 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9454 set new allocate and free functions for it.
9455 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9456 free functions for the macro cache's objstack. (Why is this
9457 function building its own objfile?)
9458 * symmisc.c (print_objfile_statistics): Print statistics on the
9460 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9462 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9464 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9465 (REGISTER_U_ADDR): Delete definition.
9466 (arm_register_u_addr): Delete declaration.
9468 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9470 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9471 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9473 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9475 * regcache.c (register_valid): Revise comments refering to "Not
9476 available" and "unavailable".
9477 * frame.c (frame_register_read): Ditto.
9478 * findvar.c (value_of_register): Ditto.
9480 2002-05-15 Andrew Cagney <cagney@redhat.com>
9482 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9483 (remote-sim.o): Update dependencies.
9484 (d10v-tdep.o): Specify dependencies.
9485 (sim_d10v_h): Define.
9487 2002-05-14 Jim Blandy <jimb@redhat.com>
9489 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9490 * macrotab.c (macro_lookup_inclusion, find_definition,
9491 new_macro_table): Same.
9493 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9494 not `! strcmp ()'. This is a dubious improvement.
9495 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9497 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9498 although it's not necessary, to avoid a warning.
9500 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9502 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9503 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9504 TYPE_INSTANCE_FLAGS.
9505 (struct main_type): New.
9506 (struct type): Move most members to struct main_type. Change
9507 cv_type and as_type to new type_chain member. Add instance_flags.
9508 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9509 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9510 (finish_cv_type): Remove prototype.
9511 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9513 (alloc_type_instance): New function.
9514 (smash_type): New function.
9515 (make_pointer_type, make_reference_type, make_function_type)
9516 (smash_to_member_type, smash_to_method_type): Call smash_type.
9517 (make_qualified_type): New function.
9518 (make_type_with_address_space): Call make_qualified_type.
9519 (make_cv_type): Likewise.
9520 (finish_cv_type): Remove unnecessary function.
9521 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9522 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9523 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9524 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9525 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9526 * hpread.c (hpread_read_struct_type): Likewise.
9527 * stabsread.c (read_struct_type): Likewise.
9529 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9531 * configure.tgt: Add a catch all sh* target, for cases like
9532 sh[2,3,4]-elf and sh-hms.
9534 2002-05-14 Keith Seitz <keiths@redhat.com>
9536 * event-loop.c (create_file_handler): Don't do anything but
9537 update data when we are given a fd which we are already
9540 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9542 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9543 (update_context): Use __func__ in warnings.
9545 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9547 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9548 and tcp_close to net_open and net_close.
9549 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9550 using UDP if requested. Don't try to disable Nagle on UDP
9552 * remote.c (remote_serial_open): New function. Warn about UDP.
9553 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9555 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9557 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9559 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9561 * configure.tgt: Remove sh-hms target.
9562 * MAINTAINERS: Don't list sh-hms as a separate target.
9564 2002-05-13 Jim Blandy <jimb@redhat.com>
9566 Add first preprocessor macro-expansion files.
9567 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9568 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9569 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9570 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9571 (COMMON_OBS): Add macrotab.o, macroexp.o.
9572 (macroexp.o, macrotab.o): New rules.
9574 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9576 * config/m88k/tm-m88k.h: Update copyright.
9577 (m88k_target_write_pc): Declare
9578 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9579 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9580 (SHIFT_INST_REGS): Update definition.
9581 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9582 using old definition of TARGET_WRITE_PC.
9583 * regcache.c (generic_target_write_pc): Delete code handling
9585 * gdbarch.sh (NNPC_REGNUM): Delete.
9586 * gdbarch.h, gdbarch.c: Regenerate.
9588 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9590 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9593 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9595 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9596 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9597 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9599 * c-typeprint.c (cp_type_print_method_args): Likewise.
9600 (c_type_print_args): Likewise.
9601 * d10v-tdep.c (d10v_push_arguments): Likewise.
9602 (d10v_extract_return_value): Likewise.
9603 * expprint.c (print_subexp): Likewise.
9604 * gdbtypes.c (lookup_primitive_typename): Likewise.
9605 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9606 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9607 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9608 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9609 (TYPE_VECTOR): Likewise.
9610 * hpread.c (hpread_read_struct_type)
9611 (fix_static_member_physnames, fixup_class_method_type)
9612 (hpread_type_lookup): Likewise.
9613 * mdebugread.c (parse_symbol, parse_type): Likewise.
9614 * p-lang.c (is_pascal_string_type): Likewise.
9615 * valops.c (hand_function_call): Likewise.
9616 * x86-64-tdep.c (classify_argument): Likewise.
9618 * hpread.c (hpread_read_function_type)
9619 (hpread_read_doc_function_type): Call replace_type.
9620 * dstread.c (create_new_type): Delete.
9621 (decode_dst_structure, process_dst_function): Call alloc_type.
9622 Use type access macros.
9624 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9626 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9627 the're not supported by the current architecture.
9628 (i387_fill_fxsave): Likewise.
9630 2002-05-12 Fred Fish <fnf@redhat.com>
9632 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9633 sect_index_xxx members to index the first slot in section_offsets
9634 if all of the section_offsets are zero.
9636 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9638 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9639 checked in with last change.
9641 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9643 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9644 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9647 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9649 * Makefile.in: Update dependencies.
9651 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9653 * language.c (local_hex_string_custom): Simplify. Do not depend
9654 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9656 * memattr.c (mem_info_command): Replace calls to
9657 longest_local_hex_string and longest_local_hex_string_custom.
9658 * buildsym.c (make_blockvector): Ditto.
9659 * solib.c (info_sharedlibrary_command): Ditto.
9660 * tracepoint.c (tracepoints_info): Ditto.
9661 * symtab.c (print_msymbol_info): Ditto.
9663 * language.c (local_hex_string): Delete.
9664 (local_hex_string_custom): Delete.
9665 (longest_local_hex_string): Rename to local_hex_string.
9666 (longest_local_hex_string_custom): Rename to
9667 local_hex_string_custom.
9668 * language.h (local_hex_string): Change parameter type to LONGEST.
9669 (local_hex_string_custom): Ditto.
9670 (longest_local_hex_string): Delete declaration.
9671 (longest_local_hex_string_custom): Ditto.
9673 * solib.c: Update copyright.
9674 * memattr.c: Update copyright.
9676 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9678 * arch-utils.h (legacy_register_to_value): Declare.
9679 (legacy_value_to_register): Declare.
9680 (legacy_convert_register_p): Declare.
9681 * arch-utils.c (legacy_register_to_value): New function.
9682 (legacy_value_to_register): New function.
9683 (legacy_convert_register_p): New function.
9685 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9686 (VALUE_TO_REGISTER): Define.
9687 (CONVERT_REGISTER_P): Define.
9688 * gdbarch.h, gdbarch.c: Regenerate.
9690 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9692 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9695 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9696 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9698 * Makefile.in: Update dependencies for valops.c.
9699 * valops.c: Include "gdb_assert.h".
9700 (typecmp): Skip THIS parameter to methods.
9701 (find_method_list): Remove static_memfuncp argument,
9702 update callers. Check for stub methods.
9703 (find_value_oload_method_list): Don't set *static_memfuncp.
9704 (find_overload_match): Don't check for stub methods. Assert
9705 that methods are not stubbed. Handle static methods.
9706 (value_find_oload_method_list): Remove static_memfuncp argument.
9707 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9708 to the argument list for static stub methods.
9709 * value.h (value_find_oload_method_list): Update prototype.
9711 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9713 * arch-utils.h (generic_register_size): Declare.
9714 (generic_register_raw_size, generic_register_virtual_size): Delete
9716 * arch-utils.c (generic_register_raw_size): Delete.
9717 (generic_register_size): New function.
9718 (generic_register_virtual_size): Delete.
9720 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9721 default generic_register_size.
9722 * gdbarch.h, gdbarch.c: Re-generate.
9724 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9725 register_virtual_size.
9726 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9729 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9731 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9732 * gdbarch.h, gdbarch.c: Regenerate.
9733 * gnu-v3-abi.c: Update copyright.
9734 (vtable_address_point_offset): Update.
9735 (gnuv3_rtti_type): Update.
9736 (gnuv3_baseclass_offset): Update.
9737 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9738 (init_fetch_link_map_offsets): Update.
9739 * remote.c (get_remote_state): Update.
9741 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9743 * TODO: Remove value_headof/value_from_vtable_info comment.
9744 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9745 * values.c (value_headof, value_from_vtable_info): Delete.
9746 * value.h (value_from_vtable_info): Delete prototype.
9748 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9750 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9751 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9753 (gdb_assert_h): Define.
9754 (gdb_wait_h): Define.
9755 (gdb_regex_h): Define.
9757 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9759 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9760 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9764 * nbsd-tdep.c: Fix comment.
9766 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9768 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9769 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9770 (nbsd-tdep.o): New dependency list.
9771 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9773 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9774 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9775 * nbsd-tdep.c: New file.
9776 * nbsd-tdep.h: New file.
9777 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9779 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9780 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9781 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9782 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9784 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9786 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9787 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9788 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9789 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9790 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9791 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9793 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9795 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9796 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9797 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9798 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9799 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9800 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9801 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9803 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9805 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9806 fetch_elfcore_registers to...
9807 * i386nbsd-tdep.c: ...here.
9808 (i386nbsd_use_struct_convention): Rename to...
9809 (i386nbsd_aout_use_struct_convention): ...this.
9810 (i386nbsd_supply_reg): New function.
9811 (i386nbsd_fill_reg): New function.
9812 (fetch_core_registers): Use i386nbsd_supply_reg.
9813 (fetch_elfcore_registers): Likewise.
9814 (_initialize_i386nbsd_tdep): New function.
9815 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9816 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9817 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9818 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9819 (i386nbsd_aout_use_struct_convention): ...this.
9821 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9823 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9824 (store_inferior_registers): Use shnbsd_fill_reg.
9825 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9826 sh_nbsd_supply_register): Collapse into...
9827 (shnbsd_supply_reg): ...this.
9828 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9829 (shnbsd_fill_reg): ...this.
9830 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9831 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9832 (fetch_core_registers): Use shnbsd_supply_reg.
9833 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9834 (sh_nbsd_core_fns): Rename to...
9835 (shnbsd_core_fns): ...this.
9836 (sh_nbsd_elfcore_fns): Rename to...
9837 (shnbsd_elfcore_fns): ...this.
9838 (sh_nbsd_init_abi): Rename to...
9839 (shnbsd_init_abi): ...this.
9840 (_initialize_sh_nbsd_tdep): Rename to...
9841 (_initialize_shnbsd_tdep): ...this.
9842 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9843 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9844 sh_nbsd_fill_register): Remove prototypes.
9845 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9847 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9849 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9850 (i387-nat.o): Delete dependency list.
9851 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9852 (x86-64-linux-nat.o): Likewise.
9853 * i387-nat.c: Delete file, moving contents to...
9854 * i387-tdep.c: ...here.
9855 * i387-nat.h: Rename...
9856 * i387-tdep.h: ...to this.
9857 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9858 * i386-linux-nat.c: Likewise.
9859 * i386bsd-nat.c: Likewise.
9860 * i386gnu-nat.c: Likewise.
9861 * i386nbsd-nat.c: Likewise.
9862 * i386v4-nat.c: Likewise.
9863 * x86-64-linux-nat.c: Likewise.
9864 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9865 * config/i386/go32.mh (NATDEPFILES): Likewise.
9866 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9867 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9868 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9869 * config/i386/linux.mh (NATDEPFILES): Likewise.
9870 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9871 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9872 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9873 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9875 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9877 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9878 (alphanbsd-nat.o): Remove dependency list.
9879 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9880 * alphanbsd-nat.c: Delete. Contents moved to...
9881 * alphanbsd-tdep.c: ...here.
9882 (_initialize_alphanbsd_tdep): Register core functions.
9883 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9885 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9887 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9888 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9889 (alphanbsd-nat.o): Likewise.
9890 (alphabsd-tdep.o): New dependency list.
9891 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9892 (fill_gregset): Use alphabsd_fill_reg.
9893 (supply_fpregset): Use alphabsd_supply_fpreg.
9894 (fill_fpregset): Use alphabsd_fill_fpreg.
9895 (fetch_inferior_registers): Use struct reg and struct fpreg
9896 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9897 and alphabsd_supply_fpreg.
9898 (store_inferior_registers): Use struct reg and struct fpreg
9899 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9900 and alphabsd_fill_fpreg.
9901 * alphabsd-tdep.c: New file.
9902 * alphabsd-tdep.h: New file.
9903 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9904 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9905 alphabsd_supply_fpreg.
9906 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9907 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9909 2002-05-11 Eric Christopher <echristo@redhat.com>
9911 * mips-tdep.c (mips_double_register_type): Fix thinko.
9912 (mips_single_register_type): Ditto.
9913 * MAINTAINERS: Add self.
9915 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9917 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9918 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9919 right thing on architectures with different endianness and/or
9922 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9924 From Christian Limpach <chris@Pin.LU>
9925 * configure.in: Change sed expression which comments out
9926 NATDEPFILES to also comment out continuation lines.
9927 * configure: Regenerate.
9929 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9931 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9934 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9936 * sh-tdep.c: Include correct file.
9938 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9940 New support for sh64-elf (sh5) target.
9942 * configure.tgt: For sh64-elf target, default to sh-elf.
9944 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9945 (struct gdbarch_tdep): Add new fields for new registers and ABI
9948 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9949 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9950 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9951 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9952 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9953 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9954 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9955 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9956 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9957 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9958 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9959 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9960 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9961 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9962 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9963 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9964 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9965 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9966 sign_extend, sh64_nofp_frame_init_saved_regs,
9967 sh64_init_extra_frame_info, sh64_get_saved_register,
9968 sh64_extract_struct_value_address, sh64_pop_frame,
9969 sh64_push_arguments, sh64_extract_return_value,
9970 sh64_store_return_value, sh64_show_media_regs,
9971 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9972 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9973 sh_sh64_register_virtual_type,
9974 sh_sh64_register_convert_to_virtual,
9975 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9976 sh64_register_read, sh64_pseudo_register_write,
9977 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9978 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9979 sh64_do_pseudo_register, sh_compact_do_registers_info,
9980 sh64_do_registers_info, sh_gdbarch_init): New functions.
9982 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9984 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9986 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9988 * linespec.c (decode_line_1): Check for a double quote after
9989 a filename correctly.
9991 2002-05-10 Jim Blandy <jimb@redhat.com>
9993 Properly track the size of the current objfile's .debug_line section.
9994 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9995 (DWARF_LINE_SIZE): New macro.
9996 (dwarf2_build_psymtabs_hard): Record the line section's size in
9997 the partial symbol table.
9998 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10001 2002-05-10 Petr Sorfa <petrs@caldera.com>
10003 * ia64-tdep.c: Handle breakpoints on L instruction type
10004 in MLX instruction bundle by moving the breakpoint to
10005 the third slot (X instruction type) as L holds only data.
10007 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10009 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10010 (process_one_symbol): Complain about discarding local symbols
10011 due to a misplaced N_LBRAC entry.
10013 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10015 From Daniel Berlin <dan@cgsoftware.com>
10016 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10017 decrease the depth we are at, in the case of templates.
10019 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10021 * mips-tdep.c (mips_float_register_type): New function.
10022 (mips_double_register_type): New function.
10023 (mips_print_register): Use them.
10024 (do_fp_register_row): Likewise.
10026 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10028 * signals/signals.c (signals): Remove conditional compilation around
10029 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10030 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10032 2002-05-09 Michael Snyder <msnyder@redhat.com>
10034 * remote-rdp.c (remote_rdp_can_run): Remove.
10036 2002-05-09 Tom Tromey <tromey@redhat.com>
10038 * jv-valprint.c (java_val_print): Handle `char' as a special case
10041 2002-05-09 Michael Snyder <msnyder@redhat.com>
10043 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10044 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10045 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10046 str r(0123),[sp,#nn].
10047 (arm_skip_prologue): Ditto. Also make disassembly
10048 order-independent by placing it in a loop.
10050 2002-05-06 Michael Snyder <msnyder@redhat.com>
10052 * stabsread.c (read_type): Add recognition for new attribute:
10053 "@V;" means that an array type is actually a vector.
10054 This is analogous to the vector flag that's been added to dwarf2.
10056 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10058 * i386-tdep.h (i386_abi): New enum.
10059 (struct gdbarch_tdep): Replace os_ident member with abi.
10060 (i386_gdbarch_register_os_abi): New prototype.
10061 * i386-tdep.c (i386_abi_names): New array.
10062 (process_note_abi_tag_sections): Removed.
10063 (process_note_sections): New function.
10064 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10065 (struct i386_abi_handler): New struct.
10066 (i386_abi_handler_list): New variable.
10067 (i386_gdbarch_register_os_abi): New function.
10068 (i386_gdbarch_init): Adapt for the changes given above.
10070 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10072 * gregset.h: Say "GNU/Linux".
10074 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10076 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10077 (build_gdbtypes): Build builtin_type_v2_float.
10078 (_initialize_gdbtypes): Register new builtin type.
10080 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10082 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10083 (clear_gdbarch_swap): New function.
10084 (initialize_non_multiarch): Call.
10085 (gdbarch_update_p): Before calling init(), swap out and clear the
10086 existing architecture.
10087 * gdbarch.c: Regenerate.
10089 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10091 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10094 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10096 * sh-nbsd-nat.c: Rename to...
10097 * shnbsd-nat.c: ...this.
10098 * sh-nbsd-tdep.c: Rename to...
10099 * shnbsd-tdep.c: ...this.
10100 * sh-nbsd-tdep.h: Rename to...
10101 * shnbsd-tdep.h: ...this.
10102 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10103 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10105 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10107 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10108 concatenation for command help messages.
10110 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10112 * NEWS: Note new sh*-*-netbsdelf* configuration.
10113 * configure.host: Set gdb_host_cpu to sh for all sh*.
10114 (sh*-*-netbsdelf*): New host.
10115 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10116 (sh*-*-netbsdelf*): New target.
10117 * sh-nbsd-nat.c: New file.
10118 * sh-nbsd-tdep.c: New file.
10119 * sh-nbsd-tdep.h: New file.
10120 * config/sh/nbsd.mh: New file.
10121 * config/sh/nbsd.mt: New file.
10122 * config/sh/nm-nbsd.h: New file.
10123 * config/sh/tm-nbsd.h: New file.
10125 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10127 * sh-tdep.c (sh_osabi_names): Declare.
10128 (process_note_abi_tag_sections): New function.
10129 (get_elfosabi): Ditto.
10130 (sh_gdbarch_register_os_abi): Ditto.
10131 (sh_dump_tdep): Ditto.
10132 _initialize_sh_tdep): Use gdbarch_register to register
10133 sh_gdbarch_init and sh_dump_tdep.
10134 * config/sh/tm-sh.h (sh_osabi): Declare.
10135 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10137 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10139 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10140 (thumb_scan_prologue): Ditto.
10141 (arm_find_callers_reg): Ditto.
10142 (arm_frame_chain): Ditto.
10143 (arm_init_extra_frame_info): Ditto.
10144 (arm_frame_saved_pc): Ditto.
10145 (arm_pop_frame): Ditto.
10146 (arm_push_return_address): New function.
10147 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10148 call_dummy_location, call_dummy_breakpoint_offset_p,
10149 call_dummy_breakpoint_offset, call_dummy_p,
10150 call_dummy_stack_adjust_p, call_dummy_words,
10151 sizeof_call_dummy_words, call_dummy_start_offset,
10152 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10153 call_dummy_address, push_return_address and push_dummy_frame for
10154 generic dummy frames.
10156 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10158 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10159 size computation for alloca.
10160 (sh_fp_frame_init_saved_regs): Likewise.
10162 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10164 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10165 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10166 * arm-tdep.c (arm_store_return_value): Use them.
10167 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10168 * remote-rdp.c (remote_rdp_fetch_register): Use
10169 ARM_MAX_REGISTER_RAW_SIZE.
10170 (remote_rdp_store_register): Likewise.
10172 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10174 * dwarf2cfi.c: Code cleanup, removed unused variables,
10175 added default labels to switch {} statements.
10176 * x86-64-tdep.c: Ditto.
10177 * x86-64-linux-nat.c: Ditto.
10179 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10181 * solib.h: Protect against multiple inclusion.
10183 2002-05-06 Jim Blandy <jimb@redhat.com>
10185 Add first preprocessor macro-expansion files.
10186 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10187 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10188 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10189 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10190 (COMMON_OBS): Add macrotab.o, macroexp.o.
10191 (macroexp.o, macrotab.o): New rules.
10193 Separate the job of reading the line number info statement program
10194 header (...expialidocious) out into its own function.
10195 * dwarf2read.c (struct line_head, struct filenames, struct
10196 directories): Replace with...
10197 (struct line_header): New structure, containing the full
10198 contents of the statement program header, including the
10199 include directory and file name tables.
10200 (read_file_scope): If we have line number info, instead of just
10201 calling dwarf_decode_lines to do all the work, call
10202 dwarf_decode_line_header first to get a `struct line_header'
10203 containing the data in the statement program header, and then
10204 pass that to dwarf_decode_lines, which will pick up where that
10205 left off. Be sure to clean up the `struct line_header' object.
10206 (dwarf_decode_line_header, free_line_header, add_include_dir,
10207 add_file_name): New functions.
10208 (dwarf_decode_lines): Move all the code to read the statement
10209 program header into dwarf_decode_line_header. Take the line
10210 header it built as the first argument, instead of the offset to
10211 the compilation unit's line number info. Use the new `struct
10212 line_header' type instead of the old structures. No need to do
10213 cleanups here now, since we don't allocate anything.
10214 (dwarf2_statement_list_fits_in_line_number_section,
10215 dwarf2_line_header_too_long): New complaints.
10217 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10219 * gdbtypes.c (init_vector_type): New function.
10220 (build_builtin_type_vec128): Simplify the representation of SIMD
10222 (build_gdbtypes): Initialize new builtin vector types.
10223 (_initialize_gdbtypes): Register new vector types with gdbarch.
10224 (builtin_type_v4_float, builtin_type_v4_int32,
10225 builtin_type_v8_int16, builtin_type_v16_int8,
10226 builtin_type_v2_int32, builtin_type_v4_int16,
10227 builtin_type_v8_int8): New (renamed) SIMD types.
10229 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10231 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10232 (i387_fill_fxsave): Likewise.
10234 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10236 * alpha-tdep.c (alpha_extract_return_value): Don't use
10237 non-constant array size in prototype.
10239 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10241 From Brian Taylor <briant at model dot com>:
10242 * ui-out.c (ui_out_field_core_addr): Use the function
10243 longest_local_hex_string_custom'to format addresses > 32 bits
10246 * ui-out.c (ui_out_field_core_addr): Update comment.
10248 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10250 * stack.c (select_and_print_frame): Make static. Delete the
10252 (func_command): Update call.
10253 (select_frame_command): Delete code computing the frame level.
10254 * frame.h (select_and_print_frame): Delete declaration.
10256 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10258 * sparc-tdep.c (sparc_get_saved_register): Comment why
10259 get_prev_frame call is safe.
10261 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10263 * frame.h (select_frame): Delete level parameter.
10264 * stack.c (select_frame): Update. Use frame_relative_level to
10265 obtain the frame's level.
10266 (select_and_print_frame): Update call.
10267 (select_frame_command): Ditto.
10268 (up_silently_base): Ditto.
10269 (down_silently_base): Ditto.
10270 * ocd.c (ocd_start_remote): Ditto.
10271 * remote-rdp.c (remote_rdp_open): Ditto.
10272 * remote-mips.c (mips_initialize): Ditto.
10273 (common_open): Ditto.
10274 * remote-e7000.c (e7000_start_remote): Ditto.
10275 * m3-nat.c (select_thread): Ditto.
10276 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10277 (child_get_current_exception_event): Ditto.
10278 * varobj.c (varobj_create): Ditto.
10279 (varobj_update): Ditto.
10280 (c_value_of_root): Ditto.
10281 * tracepoint.c (finish_tfind_command): Ditto.
10282 * corelow.c (core_open): Ditto.
10283 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10284 * thread.c (info_threads_command): Ditto.
10285 (switch_to_thread): Ditto.
10286 * infrun.c (normal_stop): Ditto.
10287 (restore_selected_frame): Ditto.
10288 (restore_inferior_status): Ditto.
10289 * breakpoint.c (insert_breakpoints): Ditto.
10290 (watchpoint_check): Ditto.
10291 (bpstat_stop_status): Ditto.
10292 (do_enable_breakpoint): Ditto.
10293 * blockframe.c (flush_cached_frames): Ditto.
10294 (reinit_frame_cache): Ditto.
10296 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10298 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10301 2002-05-04 Jim Blandy <jimb@redhat.com>
10303 * gdbtypes.c (replace_type): Doc fix.
10305 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10307 * valprint.c (strcat_longest): Delete commented out function.
10310 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10312 * MAINTAINERS: Mark a29k as deleted.
10313 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10314 Move new configurations to the top.
10315 * configure.tgt: Remove a29k.
10316 * config/a29k/tm-vx29k.h: Delete.
10317 * config/a29k/vx29k.mt: Delete.
10318 * config/a29k/tm-a29k.h: Delete.
10319 * config/a29k/a29k-udi.mt: Delete.
10320 * config/a29k/a29k.mt: Delete.
10321 * a29k-tdep.c: Delete.
10322 * remote-udi.c: Delete.
10323 * remote-mm.c: Delete.
10324 * remote-eb.c: Delete.
10325 * remote-adapt.c: Delete.
10326 * Makefile.in: Remove obsolete code.
10327 * config/s390/s390x.mt: Ditto.
10328 * config/s390/s390.mt: Ditto.
10329 * config/sparc/sparclynx.mh: Ditto.
10330 * config/sparc/linux.mh: Ditto.
10331 * config/pa/hppaosf.mh: Ditto.
10332 * config/pa/hppabsd.mh: Ditto.
10333 * config/ns32k/nbsd.mt: Ditto.
10334 * config/mips/vr5000.mt: Ditto.
10335 * config/m68k/sun3os4.mh: Ditto.
10336 * config/m68k/nbsd.mt: Ditto.
10337 * config/m68k/m68klynx.mh: Ditto.
10338 * config/m32r/m32r.mt: Ditto.
10339 * config/i386/x86-64linux.mt: Ditto.
10340 * config/i386/nbsdelf.mt: Ditto.
10341 * config/i386/nbsd.mt: Ditto.
10342 * config/i386/i386lynx.mh: Ditto.
10344 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10346 * target.c (debug_print_register): New function. Handle oversize
10348 (debug_to_fetch_registers): Call.
10349 (debug_to_store_registers): Call.
10351 2002-05-03 Jim Blandy <jimb@redhat.com>
10353 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10354 (read_type): Doc fix.
10355 * gdbtypes.c (replace_type): Doc fix.
10357 * stabsread.c (multiply_defined_struct): New complaint.
10358 (read_struct_type): If the type we were passed isn't empty, or
10359 incomplete, don't read the new struct type into it; complain,
10360 and return the original type unchanged. Take a new `type_code'
10361 argument, which is the type code for the new type.
10362 (read_type): Rather than storing the type's type code here, pass
10363 it as an argument to read_struct_type, and let that take care of
10364 storing it. That way, we don't overwrite the original type code,
10365 so read_struct_type can use it to decide whether we're overwriting
10366 something we shouldn't.
10367 (complain_about_struct_wipeout): New function.
10369 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10371 * gdbarch.sh: Assert that gdbarch is non-NULL.
10372 * gdbarch.c: Regenerate.
10374 2002-05-03 Jason Merrill <jason@redhat.com>
10376 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10379 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10381 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10382 (x86_64_dwarf2gdb_regno_map_length),
10383 (x86_64_dwarf2_reg_to_regnum): Added.
10384 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10385 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10386 (_initialize_x86_64_tdep): Synced with the change above.
10387 (x86_64_skip_prologue): Reformulated message.
10389 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10391 * f-exp.y: Also use new prev_lexptr variable
10392 to improve error reporting. Based on Michael Snyder
10393 2002-04-24 dated patch to c-exp.y.
10394 * jv-exp.y: Likewise.
10395 * m2-exp.y: Likewise.
10397 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10399 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10400 we are dealing with vectors.
10402 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10404 * config/m68k/tm-nbsd.h: Obvious fix,
10405 correct machine name.
10407 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10409 * p-typeprint.c (pascal_type_print_base): Add support
10410 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10412 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10414 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10415 for fondamental pascal 'char' type.
10417 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10419 * p-lang.h (is_pascal_string_type): Declaration changed,
10420 new sixth argument of type char ** added.
10421 * p-lang.c (is_pascal_string_type): Implementation
10422 changed. Args length_pos, length_size, string_pos, char_size
10423 can now be NULL. New argument arrayname set to the field
10424 name of the char array. Return value set to char array
10425 field index plus one.
10426 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10427 is_pascal_string_type function.
10429 2002-05-02 Andrew Cagney <cagney@redhat.com>
10431 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10432 <cagney@redhat.com> change.
10433 * gdbarch.c: Regenerate.
10435 2002-05-02 Andrew Cagney <cagney@redhat.com>
10437 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10438 before probing for a new one. Detect errorenous gdbarch_init
10440 * gdbarch.c: Regenerate.
10442 2002-05-01 Andrew Cagney <cagney@redhat.com>
10444 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10445 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10446 * config/v850/tm-v850.h: Ditto. Update copyright.
10448 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10450 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10453 2002-04-30 Michael Snyder <msnyder@redhat.com>
10455 * arm-tdep.c: Whitespace clean-ups.
10456 (arm_skip_prologue): Fix thinko; two lines
10457 should have been removed as part of 4/24 change.
10459 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10461 * rs6000-tdep.c: Added comment describing how fpscr register
10462 numbers were chosen.
10464 2002-04-30 Michael Snyder <msnyder@redhat.com>
10466 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10468 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10470 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10471 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10472 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10474 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10476 From Louis Hamilton <hamilton@redhat.com>:
10477 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10478 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10479 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10480 not bfd-private xcoff data, to determine wordsize.
10481 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10483 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10485 GDB 5.2 released from 5.2 branch.
10487 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10489 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10490 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10491 (x86_64_register_info_table): Added comments with register numbers.
10493 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10495 * rs6000-tdep.c (rs6000_extract_return_value,
10496 rs6000_store_return_value): Handle returning vectors.
10497 (rs6000_gdbarch_init): Use
10498 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10499 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10501 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10503 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10504 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10506 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10508 * hpread.c (hpread_psymtab_to_symtab_1,
10509 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10510 with fprintf_unfiltered (gdb_stderr,...).
10512 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10514 * remote-array.c (printf_monitor, write_monitor,
10515 array_insert_breakpoint, array_remove_breakpoint ):
10516 Replace fprintf (stderr,...
10517 with fprintf_unfiltered (gdb_stderr,....
10518 * remote-es.c: Likewise.
10519 * remote-os9k.c: Likewise.
10520 * remote-st.c: Likewise.
10522 2002-04-28 Andreas Schwab <schwab@suse.de>
10524 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10525 linux-proc.o and gcore.o.
10527 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10529 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10530 code without frame pointers.
10532 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10534 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10535 ON_STACK is needed.
10537 2002-04-26 Ben Elliston <bje@redhat.com>
10539 * target.c (do_xfer_memory): Correct reference to the new option
10540 "trust-readonly-sections".
10542 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10544 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10545 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10546 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10548 (read_array_type): Record the fact that this array type is really a
10549 vector (i.e. are passed in by value).
10551 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10553 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10554 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10555 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10556 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10557 * alpha-linux-tdep.c: Include frame.h.
10558 (alpha_linux_sigcontext_addr): New function.
10559 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10560 alpha_linux_sigcontext_addr.
10561 * alpha-osf1-tdep.c: Include gdbcore.h.
10562 (alpha_osf1_sigcontext_addr): New function.
10563 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10564 alpha_osf1_sigcontext_addr.
10565 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10566 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10568 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10570 * stack.c (selected_frame_level):
10571 (select_frame): Do not set selected_frame_level.
10572 * frame.h (selected_frame_level): Delete declaration.
10574 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10576 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10577 convert_from_func_ptr-addr when AIX / PowerOpen.
10579 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10581 * valops.c (hand_function_call): Call
10582 generic_save_call_dummy_addr.
10583 * frame.h (generic_save_call_dummy_addr): Declare.
10584 * blockframe.c (struct dummy_frame): Add fields call_lo and
10586 (generic_find_dummy_frame): Check for PC in range call_lo to
10587 call_hi instead of entry_point_address.
10588 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10589 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10590 (generic_save_call_dummy_addr): New function.
10592 2002-04-24 David S. Miller <davem@redhat.com>
10594 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10595 sparc_skip_prologue.
10596 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10597 information to find prologue when possible.
10598 (sparc_prologue_frameless_p): Call examine_prologue directly.
10599 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10600 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10602 (SKIP_PROLOGUE): Likewise.
10604 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10606 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10607 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10608 indicate that the condition it was testing is always true.
10609 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10610 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10611 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10613 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10615 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10616 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10617 tdep->jb_pc and tdep->jb_elt_size.
10618 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10619 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10620 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10621 * alpha-nat.c (get_longjmp_target): Remove.
10622 (JB_ELEMENT_SIZE): Ditto.
10624 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10625 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10626 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10627 to alpha_get_longjmp_target.
10628 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10629 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10630 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10632 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10634 * README: Update to GDB 5.2.
10636 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10638 * gdbarch.sh (LC_ALL): Set to `c'.
10640 2002-04-25 Theodore A. Roth <troth@verinet.com>
10642 * avr-tdep.c: Ran through gdb_indent.sh.
10644 2002-04-25 Theodore A. Roth <troth@verinet.com>
10646 * MAINTAINERS: Add myself as AVR maintainer.
10647 * NEWS: Note new target avr.
10649 2002-04-25 Theodore A. Roth <troth@verinet.com>
10651 * Makefile.in: Add support for AVR target.
10652 * configure.tgt: Add support for AVR target.
10653 * avr-tdep.c: New file
10654 * config/avr/avr.mt: New file.
10656 2002-04-25 Theodore A. Roth <troth@verinet.com>
10658 * MAINTAINERS: Add myself to write-after-approval.
10660 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10662 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10663 with fprintf_unfiltered (gdb_stderr,....
10665 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10668 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10670 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10672 * p-exp.y: Also use new prev_lexptr variable
10673 to improve error reporting. Based on Michael Snyder
10674 2002-04-24 dated patch to c-exp.y.
10676 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10678 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10679 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10680 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10682 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10684 (FUNCTION_START_OFFSET): Remove.
10685 (BREAKPOINT): Ditto.
10687 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10689 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10692 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10694 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10695 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10696 alpha_linux_pc_in_sigtramp.
10697 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10698 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10699 alpha_osf1_pc_in_sigtramp.
10700 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10701 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10702 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10703 alphafbsd_pc_in_sigtramp.
10704 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10705 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10706 alphanbsd_pc_in_sigtramp.
10707 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10708 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10710 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10712 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10714 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10716 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10718 (alphanbsd-nat.o): New dependency list.
10719 (alphanbsd-tdep.o): Ditto.
10720 * NEWS: Note new native NetBSD/alpha configuration.
10721 * alphanbsd-nat.c: New file.
10722 * alphanbsd-tdep.c: Ditto.
10723 * configure.host (alpha*-*-netbsd*): New host.
10724 * configure.tgt (alpha*-*-netbsd*): New target.
10725 * config/alpha/nbsd.mh: New file.
10726 * config/alpha/nbsd.mt: Ditto.
10727 * config/alpha/nm-nbsd.h: Ditto.
10728 * config/alpha/tm-nbsd.h: Ditto.
10730 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10732 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10733 (alpha-osf1-tdep.o): New dependency list.
10734 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10735 and skip_sigtramp_frame members.
10736 * alpha-linux-tdep.c: Include gdbcore.h.
10737 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10738 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10739 * alpha-osf1-tdep.c: New file.
10740 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10742 (alpha_frame_past_sigtramp_frame): New function.
10743 (alpha_dynamic_sigtramp_offset): Ditto.
10744 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10745 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10746 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10747 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10748 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10749 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10750 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10751 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10752 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10753 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10754 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10755 to find_solib_trampoline_target.
10756 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10757 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10758 (SKIP_TRAMPOLINE_CODE): Remove.
10759 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10760 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10761 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10762 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10763 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10764 (PROC_SIGTRAMP_MAGIC): Ditto.
10765 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10766 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10767 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10768 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10769 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10771 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10773 * NEWS: Note that Alpha targets are now multi-arch.
10775 2002-04-24 Michael Snyder <msnyder@redhat.com>
10777 * parser-defs.h (prev_lexptr): New external variable.
10778 * parse.c (parse_exp_1): Set prev_lexptr to null before
10779 calling the language-specific parser.
10780 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10781 (yyerror): Use prev_lexptr in error reporting.
10783 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10785 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10786 * gregset.h: If FILL_FPXREGSET is defined, provide
10787 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10788 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10789 is defined, call fill_fpxregset.
10791 2002-04-24 Roland McGrath <roland@frob.com>
10793 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10794 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10795 (supply_gregset, supply_fpregset): New functions.
10797 * gnu-nat.c (gnu_find_memory_regions): New function.
10798 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10799 (gnu_xfer_memory): Add a cast.
10801 2002-04-24 Michael Snyder <msnyder@redhat.com>
10803 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10804 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10805 of argument regs ("str r(0123), [r11, #-nn"]).
10806 (arm_skip_prologue): Better handling for frameless functions.
10807 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10808 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10810 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10812 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10813 NUM_PSEUDO_REGS can be used.
10815 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10817 * arch-utils.h: Update copyright.
10819 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10820 * gdbarch.h, gdbarch.c: Re-generate.
10822 * inferior.h (IN_SIGTRAMP): Delete definition.
10823 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10824 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10826 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10827 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10828 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10829 (find_proc_framesize): Ditto.
10830 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10831 (alpha_init_extra_frame_info): Ditto.
10832 * infrun.c (handle_inferior_event): Ditto.
10833 (handle_inferior_event): Ditto.
10834 (check_sigtramp2): Ditto.
10835 * blockframe.c (create_new_frame): Ditto.
10836 (get_prev_frame): Ditto.
10837 * ppc-linux-tdep.c: Update comments.
10838 * i386-linux-tdep.c: Update comments.
10839 * breakpoint.c (bpstat_what): Update comment.
10841 2002-04-24 David S. Miller <davem@redhat.com>
10843 * i960-tdep.c (register_in_window_p): New function.
10844 (i960_find_saved_register): Use it instead of
10845 REGISTER_IN_WINDOW_P.
10846 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10848 * symtab.h (find_stab_function_addr): Kill extern.
10849 * minsyms.c (find_stab_function_addr): Remove from here...
10850 * dbxread.c: ... to here, and mark it static.
10852 2002-04-20 David S. Miller <davem@redhat.com>
10854 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10855 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10857 2002-04-21 David S. Miller <davem@redhat.com>
10859 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10860 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10861 (vx_write_register): Likewise.
10863 2002-04-23 J. Brobecker <brobecker@gnat.com>
10865 * source.c (is_regular_file): New function.
10866 (openp): Check wether file to open is a regular file
10867 to avoid opening directories.
10869 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10871 * findvar.c (extract_signed_integer): Cast printf argument
10872 to suppress format warning.
10873 (extract_unsigned_integer): Likewise.
10874 * infcmd.c (registers_info): Likewise.
10875 * top.c (get_prompt_1): Likewise.
10876 * valops.c (value_assign): Likewise.
10877 * valprint.c (print_decimal): Likewise.
10879 2002-04-22 H.J. Lu (hjl@gnu.org)
10881 * c-exp.y (typebase): Support
10883 [long|long long|short] [signed|unsigned] [int|]
10887 signed [long|long long|short] int
10889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10891 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10893 * vax-tdep.h: New file.
10894 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10895 Make several routines static.
10896 (vax_get_saved_register): New function.
10897 (vax_gdbarch_init): New function.
10898 (_initialize_vax_tdep): Register vax_gdbarch_init.
10899 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10900 Remove macros now under the control of gdbarch.
10902 2002-04-22 Michael Snyder <msnyder@redhat.com>
10904 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10905 Some whitespace and coding standards tweaks.
10907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10909 * vax-tdep.c: Include regcache.h.
10910 (vax_call_dummy_words): New.
10911 (sizeof_vax_call_dummy_words): New.
10912 (vax_fix_call_dummy): New function.
10913 (vax_saved_pc_after_call): Ditto.
10914 * config/vax/tm-vax.h: Don't include regcache.h.
10915 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10916 (CALL_DUMMY): Remove.
10917 (CALL_DUMMY_WORDS): Define.
10918 (SIZEOF_CALL_DUMMY_WORDS): Define.
10919 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10921 2002-04-18 Michael Snyder <msnyder@redhat.com>
10923 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10925 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10927 * vax-tdep.c (vax_frame_chain): New function.
10928 (vax_push_dummy_frame): Ditto.
10929 (vax_pop_frame): Ditto.
10930 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10931 (FRAMELESS_FUNCTION_INVOCATION): Use
10932 generic_frameless_function_invocation_not.
10933 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10934 (POP_FRAME): Use vax_pop_frame.
10936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10938 * vax-tdep.c (vax_store_struct_return): New function.
10939 (vax_extract_return_value): Ditto.
10940 (vax_store_return_value): Ditto.
10941 (vax_extract_struct_value_address): Ditto.
10942 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10943 vax_store_struct_return.
10944 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10945 (STORE_RETURN_VALUE): Use vax_store_return_value.
10946 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10948 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10950 * vax-tdep.c (vax_frame_saved_pc): New function.
10951 (vax_frame_args_address_correct): Ditto.
10952 (vax_frame_args_address): Ditto.
10953 (vax_frame_locals_address): Ditto.
10954 (vax_frame_num_args): Move code to be in proximity to
10955 other frame-related functions.
10956 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10957 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10958 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10959 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10960 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10962 2002-04-22 H.J. Lu (hjl@gnu.org)
10964 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10969 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10970 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10971 (FRAME_INIT_SAVED_REGS): New macro.
10973 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10975 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10977 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10979 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10981 (fetch_osf_core_registers): Likewise.
10982 (supply_gregset): Likewise.
10984 2002-04-22 J. Brobecker <brobecker@gnat.com>
10986 * symfile.h (get_section_index): Define.
10987 * symfile.c (get_section_index): New function.
10988 * mdebugread.c (SC_IS_SBSS): New macro.
10989 (SC_IS_BSS): Return true for the scBss storage class only, as
10990 the scSBss storage class refers to the .sbss section.
10991 (parse_partial_symbols): Discard the symbols which associated
10992 section does not exist.
10993 Make sure to use the .sbss section index for symbols which
10994 storage class is scBss, rather than using the .bss section index.
10996 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10998 * vax-tdep.c: Update copyright years.
10999 (vax_register_name): New function.
11000 (vax_register_byte): Ditto.
11001 (vax_register_raw_size): Ditto.
11002 (vax_register_virtual_size): Ditto.
11003 (vax_register_virtual_type): Ditto.
11004 * config/vax/tm-vax.h: Update copyright years.
11005 (REGISTER_NAMES): Remove.
11006 (REGISTER_NAME): Define.
11007 (REGISTER_BYTE): Use vax_register_byte.
11008 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11009 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11010 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11012 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11014 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11016 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11018 2002-04-21 David S. Miller <davem@redhat.com>
11020 * arch-utils.c (generic_prologue_frameless_p): Kill
11021 SKIP_PROLOGUE_FRAMELESS_P code.
11022 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11024 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11025 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11026 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11028 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11029 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11030 (sparc_gdbarch_init): Pass it to
11031 set_gdbarch_prologue_frameless_p.
11033 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11035 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11036 (alphabsd-nat.o): New dependency list.
11038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11040 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11042 (alpha-linux-tdep.o): New dependency list.
11043 (alphafbsd-tdep.o): Likewise.
11045 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11047 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11049 * alpha-tdep.c: ...from here.
11050 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11052 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11054 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11055 prototype from here...
11056 * alpha-tdep.h: ...to here.
11058 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11060 * frame.h (selected_frame_level): Document as deprecated.
11061 (frame_relative_level): Declare.
11062 * stack.c (frame_relative_level): New function.
11063 (selected_frame_level): Document as deprecated.
11064 (select_frame): Do not set the selected_frame_level.
11066 * stack.c (frame_info, record_selected_frame): Update.
11067 (frame_command, current_frame_command): Update.
11068 (up_silently_base, up_command, down_silently_base): Update.
11069 (down_command): Update.
11070 * inflow.c (kill_command): Update.
11071 * tracepoint.c (finish_tfind_command): Update.
11072 * corelow.c (core_open): Update.
11073 * thread.c (info_threads_command): Update.
11074 (do_captured_thread_select): Update.
11075 * infcmd.c (finish_command): Update.
11076 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11078 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11080 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11082 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11084 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11087 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11089 * alphafbsd-tdep.c: Update copyright years. Include
11091 (alphafbsd_use_struct_convention): Make static.
11092 (alphafbsd_init_abi): New function.
11093 (_initialize_alphafbsd_tdep): New function.
11094 * config/alpha/tm-fbsd.h: Update copyright years.
11095 (USE_STRUCT_CONVENTION): Remove.
11097 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11099 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11100 an Alpha ABI variant.
11101 (alpha_abi_handler_list): Declare.
11102 (alpha_gdbarch_register_os_abi): New function.
11103 (alpha_gdbarch_init): Give registered ABI variant handlers a
11104 chance to tweak the gdbarch once we have set up defaults.
11105 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11109 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11110 to standard_coerce_float_to_double.
11111 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11115 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11116 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11117 from gdbarch_tdep rather than a constant.
11118 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11119 the default text address for all Alpha Unix ABIs.
11120 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11121 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11123 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11125 * alpha-tdep.h: New file. Includes several Alpha target constants
11127 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11128 let gdbarch deal with.
11129 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11130 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11131 to dependency list.
11132 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11133 Alpha target register names.
11134 * alphabsd-nat.c: Likewise.
11135 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11136 Alpha target register names. Make serveral routines static.
11137 (alpha_get_saved_register): New function.
11138 (alpha_abi_names): New.
11139 (process_note_abi_tag_sections): New function.
11140 (get_elfosabi): New function.
11141 (alpha_gdbarch_init): New function.
11142 (alpha_dump_tdep): New function.
11143 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11145 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11147 * frame.c (find_saved_register): Delete #ifdef
11148 HAVE_REGISTER_WINDOWS code.
11149 * config/sparc/tm-sparc.h: Update comments.
11150 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11152 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11154 * i960-tdep.c (i960_find_saved_register): New function.
11155 (i960_get_saved_register): New function.
11156 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11157 (i960_get_saved_register): Declare.
11158 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11160 2002-04-20 David S. Miller <davem@redhat.com>
11162 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11164 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11166 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11167 instead of NUM_PSEUDO_REGS.
11169 2002-04-20 David S. Miller <davem@redhat.com>
11171 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11172 GDB_MULTI_ARCH_PARTIAL
11173 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11174 define, let tm-sp64.h do it.
11176 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11178 * frame.c (find_saved_register): Avoid a NULL pointer
11179 dereference and actually walk the frame list.
11181 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11183 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11184 sorted in most most-recent-used order. Document.
11185 * gdbarch.h, gdbarch.c: Regenerate.
11187 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11189 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11191 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11192 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11193 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11196 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11199 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11200 (build_builtin_type_vec128): Ditto.
11201 (append_composite_type_field): Fix calculation of type length in
11204 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11206 * config/djgpp/README: Update.
11208 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11211 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11213 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11214 (alpha_setup_arbitrary_frame): ...to this.
11215 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11216 for alpha_setup_arbitrary_frame.
11218 2002-04-18 Andrew Cagney <cagney@redhat.com>
11220 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11221 * gdbarch.h, gdbarch.c: Regenerate.
11223 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11224 * target.h (memory_breakpoint_from_pc): Update declaration.
11225 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11227 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11228 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11229 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11230 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11231 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11232 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11233 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11234 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11235 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11236 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11237 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11238 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11240 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11242 * monitor.c (monitor_insert_breakpoint): Ditto.
11243 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11245 * config/mcore/tm-mcore.h: Update copyright.
11246 * mem-break.c: Ditto.
11247 * xstormy16-tdep.c: Ditto.
11249 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11251 * p-exp.y: Add precedence rule for '^' token.
11252 This removes the shift/reduce conflicts.
11253 Remove the comment concerning these shift/reduce conflicts.
11255 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11257 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11258 (registers_powerpc_nofp): New register set for processors
11259 without floating point unit.
11261 2002-04-18 David S. Miller <davem@redhat.com>
11263 * MAINTAINERS: Add myself to write-after-approval.
11265 2002-04-17 Michael Snyder <msnyder@redhat.com>
11267 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11269 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11271 * rs6000-tdep.c (frame_initial_stack_address): Use
11272 frame_register_read to read the alloca_reg.
11274 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11276 * frame.c (find_saved_register): Find saved registers in the next
11280 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11282 * gdbarch.sh (LANG): Set to ``c''.
11284 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11286 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11288 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11290 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11293 * hpread.c (hpread_get_lntt): Add declaration.
11294 Also fix PR gdb/391.
11296 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11298 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11299 * aclocal.m4, configure: Re-generate.
11302 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11304 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11305 instead of tm_print_insn.
11307 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11309 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11311 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11313 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11314 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11315 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11317 2002-04-12 Don Howard <dhoward@redhat.com>
11319 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11320 max_user_call_depth.
11321 (init_cmd_lists): Initialize the new value;
11322 * cli/cli-script.c (execute_user_command): Limit the call depth of
11323 user defined commands. This avoids a core-dump when user commands
11324 are infinitly recursive.
11326 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11328 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11329 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11330 from tdep struct instead of DEFAULT_LR_SAVE.
11331 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11332 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11333 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11335 2002-04-12 Michael Snyder <msnyder@redhat.com>
11337 * Remote.c: Spelling fix.
11338 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11339 If no symbol found for "sbrk", try "_sbrk".
11340 (make_output_phdrs): Use bfd_section_name.
11341 (gcore_copy_callback): Use bfd_section_name.
11342 * eval.c: Indentation fix-ups.
11343 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11344 in case it gets applied to an address that is already
11345 in the instruction space.
11346 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11347 * symfile.c: Fix indentation, long lines.
11348 * source.c: White space fix-up.
11350 2002-04-12 Andrew Cagney <cagney@redhat.com>
11352 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11353 * frame.c (frame_register_read): New function. Return non-zero on
11355 (read_relative_register_raw_bytes_for_frame): Delete.
11356 (read_relative_register_raw_bytes): Delete.
11357 * frame.h (frame_register_read): Declare.
11358 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11359 * sh-tdep.c: Ditto.
11360 * infcmd.c (do_registers_info): Ditto.
11361 * hppa-tdep.c: Ditto.
11362 * rs6000-tdep.c: Ditto.
11363 * h8500-tdep.c: Ditto.
11364 * mips-tdep.c: Ditto.
11365 * h8300-tdep.c: Ditto.
11366 * z8k-tdep.c: Ditto.
11368 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11370 From Jimi X <jimix@watson.ibm.com>:
11371 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11374 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11376 From Jimi X <jimix@watson.ibm.com>:
11377 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11380 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11382 From Jimi X <jimix@watson.ibm.com>:
11383 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11384 register sets for these processor variants.
11386 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11388 * regformats/reg-ppc.dat: Support FPSCR.
11390 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11392 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11393 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11394 Add fpscr as an invalid/unfetchable register.
11395 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11396 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11397 (fill_fpregset): Add support for register fpscr.
11398 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11399 (fill_gregset): Account for the fact that register ``mq'' might
11401 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11402 (registers_power): Add fpscr to register set at slot 71.
11403 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11404 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11406 2002-04-11 Michael Snyder <msnyder@redhat.com>
11408 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11409 * configure: Regenerate.
11410 * config.in: Regenerate.
11411 * acconfig.h: Add define for _SYSCALL32.
11412 * core-sol2.c: Remove #define _SYSCALL32.
11413 * solib-legacy.c: Remove #define _SYSCALL32.
11415 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11417 * stack.c (select_frame): Cleanup internal error message, do not
11420 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11422 * stack.c (select_frame): Check that selected_frame and the
11423 specified level are as expected.
11424 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11426 * frame.h (struct frame_info): Add field `level'. Update
11428 Work-in-progress PR gdb/464.
11430 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11432 * maint.c (maint_print_section_info): Rename print_section_info.
11433 (print_bfd_section_info, print_objfile_section_info): Update.
11434 * inferior.h (struct gdbarch): Add opaque declaration.
11435 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11436 * gdbarch.h: Regenerate.
11438 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11440 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11441 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11442 (kernel_u_size): Added.
11443 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11444 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11446 2002-04-04 Jim Ingham <jingham@apple.com>
11448 * valarith.c (find_size_for_pointer_math): New function, either returns
11449 the size for a pointer's target, returns 1 for void *, or errors for
11451 (value_add, value_sub): use find_size_for_pointer_math.
11453 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11455 * linux-low.c (linux_look_up_symbols): New hook.
11456 (linux_target_ops): Add linux_look_up_symbols.
11457 * remote-utils.c (decode_address): New function.
11458 (look_up_one_symbol): New function.
11459 * server.c (handle_query): Call target look_up_symbols hook.
11460 * server.h (look_up_one_symbol): Add prototype.
11461 * target.h (struct target_ops): Add look_up_symbols hook.
11463 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11465 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11466 override FP_REGNUM with frame->fp. Update copyright.
11467 * parse.c (num_std_regs, std_regs): Delete.
11468 (target_map_name_to_register): Do not search std_regs. Update
11469 function description.
11470 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11471 declarations. Update copyright.
11474 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11476 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11477 after the last symbol in a block.
11479 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11481 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11482 is non zero as a found symbol.
11484 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11486 * findvar.c: Include "builtin-regs.h".
11487 (value_of_register): Call value_of_builtin_reg when applicable.
11488 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11489 (target_map_name_to_register): Call
11490 builtin_reg_map_name_to_regnum.
11491 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11492 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11493 (builtin_regs_h): Define.
11494 (builtin-regs.o): New target.
11495 (findvar.o): Add $(builtin_regs_h).
11496 * builtin-regs.c, builtin-regs.h: New files.
11497 * std-regs.c: New file.
11498 Partial fix for PR gdb/251.
11500 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11502 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11503 it's no longer required.
11505 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11507 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11509 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11511 From Jimi X <jimix@watson.ibm.com>:
11512 * rs6000-tdep.c (rs6000_software_single_step): Use
11513 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11514 and size. Use target_insert_breakpoint() and
11515 target_remove_breakpoint() to insert and remove breakpoints
11516 instead of explicit memory reads and writes.
11518 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11520 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11521 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11522 ELF_OBJECT_FORMAT ifdef.
11524 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11526 From Jimi X <jimix@watson.ibm.com>:
11527 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11529 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11531 From Jimi X <jimix@watson.ibm.com>:
11532 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11533 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11535 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11537 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11538 s/asprintf/xasprintf/.
11539 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11541 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11543 I believe Jeff Law denies responsability for this one:
11544 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11545 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11546 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11547 Work-around for PR gdb/366.
11549 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11551 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11552 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11553 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11555 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11557 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11558 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11561 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11563 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11566 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11568 * README (Reporting Bugs in GDB): Document the bug web page as the
11569 prefered way of submitting bugs.
11572 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11574 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11575 -1. Update comment.
11576 * gdbarch.h, gdbarch.c: Re-generate.
11578 2002-04-07 Andreas Schwab <schwab@suse.de>
11580 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11581 buffer to regcache_collect.
11583 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11585 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11586 * gdbarch.c, gdbarch.h: Re-generate.
11588 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11590 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11591 declaration. Fix -Werror.
11593 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11595 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11596 * gdbarch.c: Regenerate.
11598 2002-04-05 Michael Snyder <msnyder@redhat.com>
11600 * breakpoint.c (clear_command): Rewrite middle section to
11601 combine two loops with identical control conditions.
11602 Add a cleanup to eliminate a memory leak.
11603 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11605 2002-04-05 H.J. Lu (hjl@gnu.org)
11607 * solib-svr4.c (bkpt_names): Add "__start".
11609 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11611 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11612 as test for 64 bit target.
11614 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11616 * h8500-tdep.c (h8500_write_fp): Delete function.
11617 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11618 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11619 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11621 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11622 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11624 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11625 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11626 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11627 (d10v_write_fp): Delete function.
11628 * inferior.h (write_fp, generic_target_write_fp): Delete
11630 * regcache.c (generic_target_write_fp): Delete function.
11631 (write_fp): Delete function.
11632 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11633 * gdbarch.h, gdbarch.c: Regenerate.
11634 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11635 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11636 (sparc64_write_fp): Delete declaration.
11637 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11638 (h8500_write_fp): Delete declaration.
11640 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11642 * sparc-tdep.c (sparc64_write_fp): Delete.
11643 (sparc_push_dummy_frame): Replace write_fp call with code to store
11645 (sparc_gdbarch_init): Do not initialize write_fp.
11647 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11649 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11652 2002-03-29 Jim Blandy <jimb@redhat.com>
11654 * stack.c (get_selected_block): Add new argument `addr_in_block',
11655 used to return the exact code address we used to select the block,
11656 not just the block.
11657 * blockframe.c (get_frame_block, get_current_block): Same.
11658 * frame.h (get_frame_block, get_current_block,
11659 get_selected_block): Update declarations.
11660 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11661 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11663 2002-04-05 Michael Snyder <msnyder@redhat.com>
11665 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11668 2002-04-05 J. Brobecker <brobecker@gnat.com>
11670 * utils.c (xfullpath): New function.
11671 * defs.h (xfullpath): Add declaration.
11672 * source.c (openp): Use xfullpath in place of gdb_realpath to
11673 avoid resolving the basename part of filenames when the
11674 associated file is a symbolic link. This fixes a potential
11675 inconsistency between the filenames known to GDB and the
11676 filenames it prints in the annotations.
11677 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11678 to be able to match a filename with either the real filename, or
11679 the name of any symbolic link to this file.
11680 (lookup_partial_symtab): Ditto.
11682 2002-04-04 Michael Snyder <msnyder@redhat.com>
11684 * breakpoint.c: Add support for hardware breakpoints in overlays.
11685 (overlay_events_enabled): New state variable.
11686 (insert_breakpoints): Use overlay_events_enabled to decide
11687 whether to attempt to set a breakpoint at the overlay load addr.
11688 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11689 (remove_breakpoint): Use overlay_events_enabled to decide
11690 whether breakpoints need to be removed from overlay load addr.
11691 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11692 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11693 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11694 disable_overlay_breakpoints): Update overlay_events_enabled.
11696 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11698 * dwarf2read.c (struct function_range): New.
11699 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11700 (check_cu_functions): New.
11701 (read_file_scope): Initialize global function lists.
11702 Call dwarf_decode_line after processing children.
11703 (read_func_scope): Add to global function list.
11704 (dwarf_decode_lines): Call check_cu_functions everywhere
11705 record_line is called. Call record_line with a linenumber
11706 of 0 to mark sequence ends.
11708 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11710 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11711 change sync with glibc.
11713 2002-04-03 Jim Blandy <jimb@redhat.com>
11715 * configure.in: Call AC_C_INLINE.
11716 * configure: Regenerated.
11718 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11720 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11721 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11723 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11725 * NEWS: Mention gcore support on FreeBSD/i386.
11727 * fbsd-proc.c: New file.
11728 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11729 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11731 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11734 2002-03-29 Jim Blandy <jimb@redhat.com>
11736 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11737 unescaped newlines in string literals, but newer ones don't. So
11740 2002-03-26 Michael Snyder <msnyder@redhat.com>
11741 Andrew Cagney <cagney@redhat.com>
11743 * cli/cli-dump.c: New file. Dump memory to file,
11744 restore file to memory.
11745 * cli/cli-dump.h: New file.
11746 * Makefile.in: Add rules, dependencies for cli-dump.o.
11747 * NEWS: Mention new commands.
11749 2002-03-28 Michael Snyder <msnyder@redhat.com>
11751 * symfile.c (symbol_file_add): Move test for null symbols to later.
11753 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11755 From veksler at il.ibm.com:
11756 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11757 the xstrduped original path.
11760 2002-03-27 Michael Snyder <msnyder@redhat.com>
11762 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11763 * infcmd.c (_initialize_infcmd): Ditto.
11764 * language.c (_initialize_language): Ditto.
11765 * symfile.c (_initialize_symfile): Ditto.
11766 * top.c (_init_main): Ditto.
11767 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11769 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11771 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11772 vector registers handling.
11773 (skip_prologue): Handle new AltiVec instructions. Fill in new
11774 fields of frame data.
11775 (frame_get_saved_regs): Fill in information for AltiVec registers.
11777 2002-03-27 Jim Blandy <jimb@redhat.com>
11779 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11780 a function; leave this macro here to invoke that function.
11781 (symbol_init_mangled_name): Declaration for that function.
11782 * symtab.c (symbol_init_mangled_name): New function.
11784 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11786 * valarith.c: Replace strerror with safe_strerror.
11787 * tracepoint.c: Ditto.
11788 * lin-lwp.c: Ditto.
11789 * go32-nat.c: Ditto.
11791 * gnu-nat.c: Ditto.
11793 2002-03-27 Andreas Schwab <schwab@suse.de>
11795 * event-top.c (command_line_handler): Remove useless if.
11797 2002-03-27 Andreas Jaeger <aj@suse.de>
11799 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11802 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11804 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11805 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11806 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11807 (x86_64_linux_dr_get_status, supply_gregset),
11808 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11809 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11810 (x86_64_register_info_table): Add.
11811 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11812 (x86_64_register_raw_size, x86_64_register_virtual_type),
11813 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11814 general x86_64_register_info_table.
11815 (i386_gdbarch_init): gdbarch_register_bytes is now set
11816 dynamicaly during initialization.
11817 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11818 * gdbserver/linux-x86-64-low.c: Ditto.
11820 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11822 * gdbserver/server.c (main): Call target_signal_to_host_p
11823 and target_signal_to_host on signals received from the remote.
11824 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11825 target_signal_from_host on signals sent to the remote.
11826 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11827 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11829 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11831 * signals/signals.c: Include "server.h" in gdbserver build.
11832 (target_signal_from_name): Don't use STREQ.
11833 (_initialize_signals): Likewise. Don't include function in
11836 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11838 * signals.c: Moved to...
11839 * signals/signals.c: Here.
11840 * Makefile (signals.o): Update.
11842 2002-03-26 Jeff Law (law@redhat.com)
11844 * somread.c (som_symtab_read): Remove some commented out code and
11845 updated related comments. Do not set the minimal symbol table to
11846 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11847 in a dynamic executable.
11848 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11849 where we are unable to find the minimal symbol for the given
11852 2002-03-25 Jeff Law (law@redhat.com)
11854 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11856 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11858 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11860 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11862 * command.h: Update copyright.
11863 (struct cmd_list_element): Replace definition with opaque
11865 (enum cmd_types): Document that it will eventually be moved to
11867 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11868 (MALLOCED_REPLACEMENT): Delete macro.
11869 * Makefile.in (cli_decode_h): Add $(command_h).
11870 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11871 * top.c: Include "cli/cli-decode.h".
11872 * completer.c: Include "cli/cli-decode.h".
11873 * maint.c: Include "cli/cli-decode.h".
11874 * cli/cli-decode.h: Include "command.h".
11875 (enum command_class): Delete.
11876 (enum cmd_types): Comment out.
11877 (enum cmd_auto_boolean): Delete.
11878 (enum var_types): Delete.
11880 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11882 * cli/cli-decode.c: Include "gdb_assert.h".
11883 (add_set_or_show_cmd): New static function.
11884 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11885 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11886 all fields, such as func, from the set command.
11888 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11890 * MAINTAINERS (sh-elf): Change warning flag to -w.
11892 2002-03-23 Andrew Cagney <cagney@redhat.com>
11894 * defs.h (error): Add printf format attribute.
11895 * thread-db.c (thread_from_lwp): Fix error format string.
11896 * stack.c (parse_frame_specification): Ditto.
11897 * cli/cli-decode.c (undef_cmd_error): Ditto.
11898 * scm-lang.c (scm_lookup_name): Ditto.
11899 * tracepoint.c (trace_error): Ditto.
11900 * remote-utils.c (usage): Ditto.
11901 * remote.c (compare_sections_command): Ditto.
11904 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11906 * gdbtypes.c (append_composite_type_field): New function.
11907 (init_composite_type): New function.
11908 * gdbtypes.h (append_composite_type_field): Declare.
11909 (init_composite_type): Ditto.
11911 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11913 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11915 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11916 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11917 structure returning convention for SYSV ABI case, but not
11918 for GNU/Linux, FreeBSD, or NetBSD.
11920 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11922 * symtab.h (lookup_block_symbol): Add mangled_name argument
11925 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11926 with new mangled_name argument.
11927 * linespec.c (decode_line_1): Likewise.
11928 * valops (value_of_this): Likewise.
11929 * symtab.c (lookup_transparent_type): Likewise.
11930 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11931 (lookup_symbol): If we are given a mangled name, pass it down
11932 to lookup_symbol_aux.
11933 (lookup_block_symbol): If we are given a mangled name to check
11934 against, only return symbols which match it.
11936 2002-03-22 Christopher Faylor <cgf@redhat.com>
11938 * win32-nat.c (child_create_inferior): Check for proper shell to use
11939 here, in case the user changes it on the fly.
11940 (_initialize_inftarg): Remove shell path considerations.
11942 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11944 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11945 for gdbarch_max_register_raw_size and max_register_virtual_size.
11946 Adjust copyright year.
11948 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11950 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11951 in a function to cover the entire beginning of the function
11952 as well if it does not already.
11954 2002-03-21 Tom Rix <trix@redhat.com>
11956 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11957 (rs6000_ptrace64): Renamed from ptrace64.
11959 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11961 * gdbserver/remote-utils.c (remote_open): Don't call
11962 getprotobyname, we're all using TCP here so just use
11964 * gdbserver/gdbreplay.c (remote_open): Ditto.
11966 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11968 * regcache.c (_initialize_regcache): No need to call
11969 build_regcache() at this time; it gets called whenever
11970 the gdbarch changes.
11972 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11974 * sparc-nat.c: Include sys/param.h where possible.
11976 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11979 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11980 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11981 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11983 * stabsread.c (rs6000_builtin_type): Likewise.
11984 (read_sun_floating_type): Likewise.
11986 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11988 * stabsread.c (read_member_functions): Remove skip code for duplicate
11989 constructor/destructor methods. Use standard parsing for these
11990 methods and just do not chain them to the list of methods after
11993 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11995 * coffread.c: Remove redundant static declarations. Replace
11996 occurrences of `PTR' with `void *'.
11997 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11998 * top.h (quit_cover): Likewise.
11999 * defs.h (catch_errors): Likewise.
12001 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12003 * defs.h (XMALLOC): Define.
12004 * gdb-events.sh (XMALLOC): Delete macro.
12005 * gdb-events.c, gdb-events.h: Regenerate.
12006 * gdbarch.sh (XMALLOC): Delete macro.
12007 * gdbarch.c: Regenerate.
12008 * serial.c (XMALLOC): Delete macro.
12009 * ui-file.c (XMALLOC): Ditto.
12010 * ser-unix.h (XMALLOC): Ditto.
12011 * sh-tdep.c (XMALLOC): Ditto.
12012 * ui-out.c (XMALLOC): Ditto.
12013 * utils.c (XMALLOC): Ditto.
12014 * i386-tdep.c (XMALLOC): Ditto.
12015 * gdb-events.c (XMALLOC): Ditto.
12016 * d10v-tdep.c (XMALLOC): Ditto.
12017 * cli-out.c (XMALLOC): Ditto.
12019 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12020 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12021 * ui-file.c, ui-out.c: Ditto.
12023 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12025 * command.h (struct cmd_list_element): Add field context.
12026 (set_cmd_context, get_cmd_context): Declare.
12027 * cli/cli-decode.h: Ditto.
12028 * cli/cli-decode.c (get_cmd_context): New function.
12029 (set_cmd_context): New function.
12030 (add_cmd): Initialize context.
12031 Part of fixing PR gdb/145 and PR gdb/146.
12033 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12035 * cli/cli-decode.c (cmd_type): New function.
12036 * command.h (cmd_type): Declare.
12037 * infrun.c (set_schedlock_func): Call function cmd_type.
12038 * kod.c (kod_set_os): Call cmd_type.
12039 * cris-tdep.c (cris_version_update): Use function cmd_type.
12040 (cris_mode_update, cris_abi_update): Ditto.
12042 * command.h: (execute_cmd_post_hook): Declare.
12043 (execute_cmd_pre_hook): Declare.
12044 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12045 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12046 functions. Execute pre/post hook while ensuring that afterwords
12047 hook_in is cleared.
12048 * top.c (execute_command): Use execute_cmd_post_hook, and
12049 execute_cmd_pre_hook to execute pre/post commands.
12050 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12052 (hook_stop_stub): Call execute_cmd_pre_hook.
12054 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12056 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12057 set'' and this leads to a core dump. Move xstrdup of
12058 operating_system to after check that it is not NULL.
12060 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12062 * kod.c (kod_set_os): Remove unnecessary check that
12063 ``command->type'' is set_cmd.
12065 * valprint.c (set_input_radix): Use input_radix.
12066 (set_output_radix): Use output_radix.
12067 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12070 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12072 * value.h (struct value): Delete field ``substring_addr''. Change
12073 aligner fields to force_doublest_align, force_longest_align,
12074 force_core_addr_align and force_pointer_aligh.
12076 * value.h (struct value): Fix typo in above change.
12078 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12080 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12081 to fix internal_error from ``maintenance print architecture''.
12083 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12085 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12086 for gcc versions after gcc-2.8.1.
12088 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12090 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12091 for method resolution. Restore adjustment of ``this'' pointer after
12092 calling value_struct_elt, which was accidentally removed during the
12095 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12097 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12099 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12100 get_saved_register.
12101 * value.h (value_of_register): Update.
12103 2002-03-14 Richard Henderson <rth@redhat.com>
12105 * configure.in: Detect declaration for canonicalize_file_name.
12106 * utils.c (canonicalize_file_name): Declare, if needed.
12107 (gdb_realpath): Prefer realpath if available and usable.
12108 * config.in, configure: Rebuild.
12110 2002-03-14 Richard Henderson <rth@redhat.com>
12112 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12113 a constant array bound.
12115 * MAINTAINERS: Add myself to write-after-approval.
12117 2002-03-14 Michael Snyder <msnyder@redhat.com>
12119 * symfile.c (syms_from_objfile): Return immediately if no syms.
12120 (symbol_file_add): Return immediately if no syms.
12121 (find_sym_fns): Return immediately if no syms.
12123 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12125 * gdbserver/remote-util.c (remote_open): Print remote-side's
12126 IP address when remote debugging over the network.
12128 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12130 * config/sparc/fbsd.mh: Fix copyright.
12131 * config/sparc/fbsd.mt: Likewise.
12133 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12135 * MAINTAINERS: Fix typo in name of gdb warnings option.
12136 (x86-64): Fix formating so that this can be parsed by awk.
12138 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12140 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12141 * defs.h: Include "gdb/signals.h".
12142 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12144 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12146 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12147 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12150 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12151 Don Howard <dhoward@redhat.com>
12153 * mips-tdep.c (ST0_FR): Define.
12154 (mips2_fp_compat): New function, temporarily disabled.
12155 (mips_read_fp_register_single): New function.
12156 (mips_read_fp_register_double): New function.
12157 (mips_print_register): Use them.
12158 (do_fp_register_row): Likewise.
12160 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12162 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12165 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12167 * stabsread.c (read_member_functions): Fix is_stub test for
12168 static member functions, improve comment.
12170 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12172 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12173 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12174 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12175 commands that set boolean values.
12176 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12177 (arm_rdi_resume): Always initialize PC.
12178 (arm_rdi_open): Don't use rslt as a boolean.
12179 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12180 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12181 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12182 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12184 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12186 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12187 * configure: Rebuilt.
12189 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12191 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12192 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12194 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12196 * cli/cli-decode.c (set_cmd_completer): New function.
12197 * command.h (set_cmd_completer): Declare.
12198 * cli/cli-decode.h (set_cmd_completer): Ditto.
12200 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12202 * win32-nat.c (_initialize_inftarg): Ditto.
12203 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12204 * proc-api.c (_initialize_proc_api): Ditto.
12205 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12206 * source.c (_initialize_source): Ditto.
12207 * exec.c (_initialize_exec): Ditto.
12208 * solib.c (_initialize_solib): Ditto.
12209 * top.c (init_main): Ditto.
12210 * tracepoint.c (_initialize_tracepoint): Ditto.
12211 * symfile.c (_initialize_symfile): Ditto.
12212 * printcmd.c (_initialize_printcmd): Ditto.
12213 * infcmd.c (_initialize_infcmd): Ditto.
12214 * corefile.c (_initialize_core): Ditto.
12216 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12218 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12220 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12222 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12224 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12226 * NEWS: Update headings, 5.2 has branched.
12228 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12230 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12231 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12232 (register_addr, REGISTER_RAW_SIZE): Likewise.
12233 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12234 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12236 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12238 * MAINTAINERS (x86-64): Add myself.
12239 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12240 changed value_ptr -> struct value *
12242 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12244 * configure.host (sparc64-*-freebsd): Add.
12245 * configure.tgt: Likewise.
12246 * config/sparc/fbsd.mh: New file.
12247 * config/sparc/fbsd.mt: Likewise.
12248 * config/sparc/nm-fbsd.h: Likewise.
12249 * config/sparc/tm-fbsd.h: Likewise.
12251 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12253 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12254 regformats/reg-s390x.dat.
12256 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12258 * utils.c: Add FIXME explaining true/false problem.
12260 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12262 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12264 2002-02-28 Michael Chastain <mec@shout.net>
12266 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12268 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12270 * gdbserver/linux-s390-low.c: New file.
12271 * regformats/reg-s390.dat: New file.
12272 * regformats/reg-s390x.dat: New file.
12273 * gdbserver/configure.srv: Add S/390.
12274 * gdbserver/Makefile.in: Add S/390.
12275 * configure.tgt: Enable gdbserver for S/390.
12277 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12279 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12280 first line of the doc string for "info dos", except at the end of
12281 the sentence, since the short help stops at the first period.
12283 2002-02-28 Jason Merrill <jason@redhat.com>
12285 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12287 2002-02-27 Fred Fish <fnf@redhat.com>
12289 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12290 comment (dumy -> dummy).
12292 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12294 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12296 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12298 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12300 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12302 * gdbserver/acconfig.h: New file.
12303 * gdbserver/i387-fp.c: New file.
12304 * gdbserver/i387-fp.h: New file.
12305 * gdbserver/linux-x86-64.c: New file.
12306 * regformats/reg-x86-64.dat: New file.
12307 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12308 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12309 * gdbserver/configure.in: Add support for regsets.
12310 * gdbserver/config.in: Regenerate.
12311 * gdbserver/configure: Regenerate.
12312 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12313 * gdbserver/linux-low.h: New file.
12314 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12316 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12317 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12318 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12319 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12320 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12321 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12322 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12323 "i387-fp.h". Add PTRACE_GETREGS and friends.
12324 * gdbserver/regcache.c (supply_register): New function.
12325 (supply_register_by_name): New function.
12326 (collect_register): New function.
12327 (collect_register_by_name): New function.
12329 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12331 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12332 (config.status): Add configure.srv dependency.
12333 (server_h): Add config.h dependency.
12335 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12337 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12338 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12339 * gdbserver/configure.srv: Change i386-*-linux* to use
12342 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12344 * x86-64-tdep.c: Re-indent. Update copyright date.
12346 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12348 From Michal Ludvig <mludvig@suse.cz>:
12349 * x86-64-tdep.c (value.h): Delete.
12350 (gdb_assert.h): Include.
12351 (x86_64_register_convert_to_virtual,
12352 x86_64_register_convert_to_raw ): Add check which lets only
12353 floating-point values to be converted.
12354 (value_push): Delete.
12355 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12356 (i386_gdbarch_init): Number of register_bytes fixed.
12358 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12360 * MAINTAINERS: Add x86-64 target.
12362 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12364 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12365 * osfsolib.c (solib_map_sections): Ditto.
12366 * irix5-nat.c (solib_map_sections): Ditto.
12367 * corelow.c (gdb_check_format): Ditto.
12368 * symfile.c (symfile_bfd_open): Ditto.
12369 * solib.c (solib_map_sections): Ditto.
12372 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12374 * remote.c (_initialize_remote): By default, disable ``e'' and
12375 ``E'' step out-of-range packets.
12377 2002-02-26 Andreas Schwab <schwab@suse.de>
12379 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12380 m68k_linux_frame_saved_pc.
12381 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12383 (SIGCONTEXT_PC_OFFSET): Remove.
12384 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12385 m68k_linux_sigtramp_saved_pc): New functions.
12386 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12387 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12388 (UCONTEXT_PC_OFFSET): Define.
12389 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12390 non-RT and RT signal trampolines.
12392 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12394 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12395 (TARGET_NBPG, STACK_END_ADDR): Delete
12396 (VARIABLES_INSIDE_BLOCK): Delete.
12398 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12400 * utils.c (perror_with_name): Make string parameter constant.
12401 (print_sys_errmsg): Ditto.
12403 * defs.h (perror_with_name): Update.
12404 (print_sys_errmsg): Update.
12407 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12409 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12410 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12412 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12414 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12415 if it already matches the current architecture from the exec file.
12416 Include arch-utils.h for gdbarch_info_init prototype.
12417 * Makefile.in (rs6000-nat.o): Update dependencies.
12419 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12421 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12422 list of exported variables.
12424 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12426 * gdbserver/configure.srv: New file.
12427 * gdbserver/configure.in: Use configure.srv instead
12428 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12430 * gdbserver/configure: Regenerated.
12431 * gdbserver/terminal.h: New file.
12432 * gdbserver/Makefile.in: Update for configure changes. Remove
12433 more unneeded include paths.
12435 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12437 From wiz at danbala:
12438 * config/sparc/tm-sp64.h: Fix grammar and typos.
12441 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12443 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12444 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12445 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12446 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12447 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12448 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12449 * s390-tdep.c: Ditto.
12450 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12451 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12452 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12453 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12454 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12455 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12456 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12457 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12458 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12459 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12462 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12464 * lin-thread.c: Delete file.
12465 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12466 to gdb_proc_service.h.
12467 * configure: Re-generate.
12469 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12470 * serial.c (serial_open): Delete check for "ocd".
12473 * Makefile.in (linux-thread.o): Delete target.
12474 * linux-thread.c: Delete file.
12476 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12477 renamed SH files to be consistent.
12479 * symtab.c (sort_search_symbols): Use xfree.
12481 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12483 * arm-linux-tdep.c (arm_linux_init_abi): Register
12484 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12485 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12486 definition with undef, since we don't want the sysvr4 definition.
12487 (SKIP_TRAMPOLINE_CODE): Likewise.
12489 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12491 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12493 * configure.in: (AC_CHECK_FUNCS) Added test for
12494 canonicalize_file_name Regenerated.
12495 * config.in, configure: Regenerated.
12496 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12497 defined use canonicalize_file_name.
12499 2002-02-23 Michael Chastain <mec@shout.net>
12501 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12503 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12505 * README: Remove references to cygnus.com.
12506 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12507 dot com'' form. Remove references to cygnus.com and sourceware.
12509 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12511 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12512 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12513 1003.1-2001 no longer allows "head -1".
12514 * gdb/Makefile.in (version.c): Likewise.
12515 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12516 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12517 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12519 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12521 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12522 * command.h (cmd_cfunc_eq): Declare.
12523 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12525 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12526 ``struct cmd_list_element *''.
12527 * cli/cli-cmds.c (is_complete_command): Update. Use
12529 * top.c (execute_command): Pass the command to
12530 is_complete_command.
12531 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12533 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12535 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12536 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12537 architecture defines.
12538 * s390-tdep.c (s390_gdbarch_init): Likewise.
12540 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12542 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12543 (arm_linux_push_arguments): Likewise.
12544 (arm_linux_init_abi): Register them. Also register linux-specific
12546 (find_minsym_and_objfile): Use strcmp, not STREQ.
12547 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12548 (arm_linux_call_dummy_words): Delete declaration.
12549 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12550 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12552 (LOWEST_PC): Delete.
12554 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12556 * maint.c (print_section_info): Do not prepend `0x' to filepos
12557 output, it will be handled by local_hex_string_custom.
12559 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12561 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12562 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12563 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12565 2002-02-22 Jim Blandy <jimb@redhat.com>
12567 Indicate that the bcache functions don't change the strings
12569 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12570 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12572 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12574 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12576 2002-02-21 Christopher Faylor <cgf@redhat.com>
12578 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12579 find the complete path to a loaded DLL.
12581 2002-02-21 Fred Fish <fnf@redhat.com>
12583 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12584 that marks the end of the range of a function, enter a line number
12585 entry that has a line number of zero and a PC offset that matches
12586 the end of the function. This starts a range of PC's for which no
12587 line number information is known.
12588 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12589 PC's for which no line number info is found (line number is zero)
12590 then we didn't find any valid line information.
12591 * symtab.h: Document use of zero line number entry.
12593 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12595 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12596 (have_ptrace_getvrregs): Define for run time checks.
12597 (gdb_vrregset_t): New type for Altivec register handling.
12598 (fetch_register, store_register): Fetch/store altivec register
12600 (fetch_altivec_register, store_altivec_register): New functions.
12601 (supply_vrregset, fill_vrregset): New functions.
12602 (fetch_altivec_registers, store_altivec_registers): New functions.
12603 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12606 2002-02-21 Jiri Smid <smid@suse.cz>
12608 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12610 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12612 * Makefile.in (armnbsd-nat.o): Update dependencies.
12613 * armnbsd-nat.c (supply_gregset): New function. Common code to
12614 supply the integer register set.
12615 (supply_fparegset): New function. Similar for FPA registers.
12616 (fetch_regs, fetch_fp_regs): Use them.
12617 (fetch_core_registers): Likewise.
12618 (fetch_elfcore_registers): New function.
12619 (arm_netbsd_elfcore_fns): New core-file type specification.
12620 (_initialize_arm_netbsd_nat): Register it.
12622 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12624 * armnbsd-nat.c: Include gdbcore.h.
12625 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12626 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12627 'void' to declaration, to shut up ARI.
12628 (fetch_core_registers): Make static. Rewrite using supply_register.
12629 (arm_netbsd_core_fns): New core-file type specification.
12630 (_initialize_arm_netbsd_nat): New function.
12632 2002-02-21 Christopher Faylor <cgf@redhat.com>
12634 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12637 2002-02-20 Christopher Faylor <cgf@redhat.com>
12639 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12642 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12644 * jv-exp.y (parse_number): Change type of implicit longs
12645 to builtin_type_uint64.
12647 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12649 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12650 to be an integer instead of a `union wait'.
12652 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12654 * mips-linux-nat.c: Call the operating system GNU/Linux.
12655 * mips-linux-tdep.c: Likewise.
12656 * mips-tdep.c: Likewise.
12658 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12661 * jv-exp.y (parse_number): Handle 64-bit integers.
12663 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12665 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12666 AC_STDC_HEADERS to AC_HEADER_STDC.
12667 * gdbserver/configure: Regenerated.
12669 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12671 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12673 * sparc-tdep.c (get_longjmp_target): Likewise.
12675 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12677 * News: Add news about ARM and Multi-arch. Mention the new target
12680 2002-02-19 Jim Blandy <jimb@redhat.com>
12682 * stabsread.c (error_type_complaint): Improve error message.
12684 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12686 * gdbserver/README: Update documentation.
12687 * gdbserver/configure.in: Update configury to match documentation.
12688 * gdbserver/Makefile.in: Likewise.
12689 * gdbserver/configure: Regenerated.
12690 * gdbserver/aclocal.m4: New file, generated by aclocal.
12691 * gdbserver/config.in: New file, generated by autoheader.
12693 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12695 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12698 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12700 * arm-tdep.h (enum arm_float_model): New enum.
12701 (struct gdbarch_tdep): Add fp_model.
12702 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12703 up floating-point conversions until we know the floating-point model
12704 in use by the inferior. Don't complain about being unable to
12705 determine the ABI of the inferior when we don't have one.
12706 (arm_extract_return_value): Support different floating-point models.
12707 (arm_store_return_value): Likewise.
12708 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12710 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12712 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12714 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12715 of ``current_gdbarch''.
12717 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12719 * armnbsd-nat.c : ANSIfy all function declarations.
12720 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12721 (fetch_inferior_registers): Re-implement in terms of above.
12722 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12723 (store_inferior_registers): Re-implement in terms of above.
12725 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12727 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12729 * arm-linux-tdep.c: Likewise.
12730 * config/arm/tm-linux.h: Likewise.
12732 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12734 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12735 * config/arm/nbsd.mt (TM_FILE): Delete.
12736 * config/arm/tm-nbsd.h: Delete.
12738 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12740 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12741 Initialize CALL_DUMMY_LENGTH.
12743 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12745 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12747 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12748 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12749 defines one thing and that is incorrect for this port.
12750 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12752 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12754 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12756 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12758 * win32-nat.c (display_selector): New function. Displays information
12759 about the information returned by GetThreadSelectorEntry API function.
12760 (display_selectors): New function. Displays the infomation of
12761 the selector given as argument, or of CS, DS ans FS selectors
12762 if no argument is given.
12763 ( _initialize_inftarg): Add "w32" as info prefix command.
12764 Add "info w32 selector" as command calling display_selectors.
12766 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12768 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12769 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12772 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12774 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12776 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12778 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12779 (arm_fix_call_dummy): Call it.
12780 (arm_call_dummy_breakpoint_offset): Delete.
12781 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12782 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12784 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12786 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12787 Default to func_frame_chain_valid.
12788 * gdbarch.h, gdbarch.c: Re-generate.
12789 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12791 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12793 * ppc-linux-nat.c: Update copyright.
12794 (fetch_register, store_register): Add tid parameter, don't compute
12796 (fetch_ppc_registers, store_ppc_registers): Add tid
12797 parameter. Pass it along to callees.
12798 (fetch_inferior_registers, store_inferior_registers): Compute tid
12799 here, and pass it to calleed functions.
12800 (fill_gregset, supply_fpregset): Clean up formatting.
12802 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12804 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12805 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12807 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12809 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12810 * gdbarch.c gdbarch.h: Regenerate.
12811 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12813 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12814 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12815 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12817 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12818 * arm-tdep.c (arm_get_longjmp_target): New function.
12819 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12820 this to a positive value register arm_get_longjmp_target as the
12822 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12823 (arm_linux_init_abi): Set up longjmp description in tdep.
12824 * armnbsd-nat.c (get_longjmp_target): Delete.
12825 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12826 description in tdep.
12827 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12828 (get_longjmp_target): Delete declaration.
12829 (GET_LONGJMP_TARGET): Delete.
12830 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12831 (GET_LONGJMP_TARGET): Delete.
12833 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12835 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12836 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12837 of ``current_gdbarch''.
12839 2002-02-17 Tom Tromey <tromey@redhat.com>
12841 * cli/cli-cmds.c (compare_strings): New function.
12842 (complete_command): Only print each unique item once.
12843 * completer.h (complete_line): Declare.
12844 * completer.c (complete_line): New function.
12845 (line_completion_function): Use it.
12847 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12849 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12850 * gdbarch.h, gdbarch.c: Re-generate.
12852 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12854 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12856 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12859 * valops.c (value_arg_coerce): Don't take the address of a reference
12860 to convert an argument to a reference.
12862 2002-02-15 Christopher Faylor <cgf@redhat.com>
12864 * win32-nat.c (get_image_name): New function.
12865 (handle_load_dll): Use get_image_name function.
12866 (get_child_debug_event): Avoid registering debug events until possibly
12867 execed process is started.
12868 (child_create_inferior): Allow invocation via shell so that command
12869 line redirection, etc. works ok.
12870 (_initialize_inftarg): Add new command: "set shell" to control whether
12871 a shell is used to start a process.
12873 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12875 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12876 instead of find_register_by_number.
12877 (cannot_store_register): Likewise.
12879 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12881 * dwarf2read.c: Replace fprintf (stderr, ...) by
12882 fprintf_unfiltered (gdb_stderr, ...).
12884 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12886 * gdbserver/gdbserver.1: Document --attach.
12888 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12890 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12892 * arm-tdep.c (arm_default_arm_le_breakpoint)
12893 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12894 (arm_default_thumb_be_breakpoint): New. Initialize them from
12895 traditional breakpoint defines.
12896 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12897 (arm_gdbarch_init): Initialize new breakpoint variables.
12898 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12899 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12900 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12901 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12903 (arm_netbsd_init_abi_common): ... here; new function.
12904 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12905 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12906 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12907 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12909 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12911 * arm-tdep.h (enum arm_abi): New enum.
12912 (struct gdbarch_tdep): New structure.
12913 (LOWEST_PC): Provide a default.
12914 (arm_gdbarch_register_os_abi): Declare new function.
12915 * arm-tdep.c (arm_abi_names): New array.
12916 (process_note_abi_tag_sections): New function.
12917 (get_elfosabi): New function.
12918 (arm_gdbarch_register_os_abi): New function.
12919 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12920 support for that ABI has been built in, then call the appropriate
12921 configuration routine. Use gdbarch_num_regs() to get the number
12923 (arm_dump_tdep): New function.
12924 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12925 place-holder functions.
12926 (_initialize_arm_tdep): Register them.
12927 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12929 * armnbsd-tdep.c: New file.
12930 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12931 * config/arm/nbsd.mt (TDEPFILES): Add it.
12932 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12934 * armnbsd-nat.c: Include regcache.h.
12935 * Makefile.in (armnbsd-nat.o): Update dependency list.
12937 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12939 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12941 * gdbserver/Makefile.in: Fix typos in target rules.
12943 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12945 Fix part of PR gdb/267.
12946 * linespec.c (find_methods): Handle constructors specially for now.
12948 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12950 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12952 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12953 standard_coerce_float_to_double().
12955 2002-02-14 Christopher Faylor <cgf@redhat.com>
12957 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12960 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12962 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12963 find_variant_by_name, because it confuses the multiarch
12964 framework. Return NULL if there isn't an architecture with the
12965 user supplied name, instead of forcing a different one without
12966 recording the change with the multiarch machinery.
12967 (find_variant_by_name): Delete.
12969 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12971 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12972 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12974 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12976 * stack.c (print_frame_info_base): When calling
12977 print_frame_info_listing_hook, set current_source_symtab.
12979 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12981 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12982 and remove unused $(INCLUDE_DIR).
12983 Add regcache.c to OBS.
12984 Add generated register protocol files to clean target.
12985 Update dependencies for new objects, obsolete old target code.
12987 * gdbserver/linux-low.c: Remove all platform-specific code to
12988 new files. Remove various dead code. Update to use regcache
12990 * gdbserver/remote-utils.c (fromhex): Add return statement
12992 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12994 (input_interrupt): Add integer parameter to match prototype
12995 of a signal handler.
12996 (outreg): Use register_data ().
12997 (prepare_resume_reply): Use gdbserver_expedite_regs.
12998 * gdbserver/server.c (main): Dynamically allocate own_buf because
12999 PBUFSIZ is no longer constant. Use registers_to_string () and
13000 registers_from_string ().
13001 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13002 for error (), fatal (), and warning (). Update definition of
13003 PBUFSIZ to use regcache functionality. Add include guard.
13004 * gdbserver/utils.c (fatal): Add missing ``const''.
13005 (warning): New function.
13007 * regformats/regdat.sh: Include "regcache.h" in generated files.
13008 Provide init_registers () function.
13009 * regformats/regdef.h: Add prototype for set_register_cache ().
13012 * gdbserver/linux-arm-low.c: New file.
13013 * gdbserver/linux-i386-low.c: New file.
13014 * gdbserver/linux-ia64-low.c: New file.
13015 * gdbserver/linux-m68k-low.c: New file.
13016 * gdbserver/linux-mips-low.c: New file.
13017 * gdbserver/linux-ppc-low.c: New file.
13018 * gdbserver/linux-sh-low.c: New file.
13020 * gdbserver/regcache.c: New file.
13021 * gdbserver/regcache.h: New file.
13023 * gdbserver/low-linux.c: Removed obsolete file.
13025 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13027 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13028 * config/i386/linux.mt: Likewise.
13029 * config/ia64/linux.mt: Likewise.
13030 * config/m68k/linux.mh: Likewise.
13031 * config/powerpc/linux.mh: Likewise.
13032 * config/mips/linux.mt: Likewise.
13034 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13036 * config/i386/i386lynx.mh: Mark gdbserver variables
13037 as (currently) obsolete for this target.
13038 * config/i386/nbsd.mt: Likewise.
13039 * config/i386/nbsdelf.mt: Likewise.
13040 * config/m32r/m32r.mt: Likewise.
13041 * config/m68k/m68klynx.mh: Likewise.
13042 * config/m68k/nbsd.mt: Likewise.
13043 * config/m68k/sun3os4.mh: Likewise.
13044 * config/mips/vr5000.mt: Likewise.
13045 * config/ns32k/nbsd.mt: Likewise.
13046 * config/pa/hppabsd.mh: Likewise.
13047 * config/pa/hppaosf.mh: Likewise.
13048 * config/powerpc/nbsd.mt: Likewise.
13049 * config/rs6000/rs6000lynx.mh: Likewise.
13050 * config/s390/s390.mt: Likewise.
13051 * config/s390/s390x.mt: Likewise.
13052 * config/sparc/sparclynx.mh: Likewise.
13053 * config/sparc/sun4os4.mh: Likewise.
13054 * config/i386/x86-64linux.mt: Likewise.
13055 * config/sparc/linux.mh: Likewise.
13057 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13059 * configure.tgt: Configure gdbserver only for known working
13060 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13061 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13062 SUBDIRS if it is configured. Update comment for ${nativefile}.
13063 * configure: Regenerated.
13065 2002-02-13 Michael Snyder <msnyder@redhat.com>
13067 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13069 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13070 (default_gcore_mach): Just return 0, work around a problem in bfd.
13071 (default_gcore_target): OK to return NULL if exec_bfd is null.
13072 (make_mem_sec): Use a cast, avoid a warning.
13074 * procfs.c (find_memory_regions_callback): Use a cast instead of
13075 calling host_pointer_to_address (which complains if
13076 sizeof (host pointer) != sizeof (target pointer)).
13077 (procfs_make_note_section): Avoid overflow in psargs string.
13079 * procfs.c (procfs_make_note_section): Make the default
13080 implementation return an error.
13082 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13084 * procfs.c (procfs_make_note_section): Provide a default definition
13085 (for alpha-dec-osf4.0f). Fix typos.
13087 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13089 * linux-proc.c: Add include of regcache.h.
13090 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13092 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13094 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13095 * memattr.c (create_mem_region): Disallow useless empty region.
13096 Regions are half-open intervals, so allow [A..B) [B..C) as
13099 2002-02-13 Michael Chastain <mec@shout.net>
13101 * defs.h: Kill CONST_PTR.
13102 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13103 * c-lang.c (c_builtin_types): Likewise.
13104 * ch-lang.c (ch_builtin_types): Likewise.
13105 * f-lang.c (f_builtin_types): Likewise.
13106 * language.c (unknown_builtin_types): Likewise.
13107 * m2-lang.c (m2_builtin_types): Likewise.
13108 * p-lang.c (pascal_builtin_types): Likewise.
13109 * scm-lang.c (c_builtin_types): Likewise.
13111 2002-02-13 Keith Seitz <keiths@redhat.com>
13113 * arm-tdep.h (arm_get_next_pc): Add declaration.
13115 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13117 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13118 with other related struct-returning functions.
13119 (arm_extract_struct_value_address): New function.
13120 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13121 initialize float_format, double_format and long_double_format as
13122 appropriate to the endianness of the target.
13123 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13124 (arm_use_struct_convention): Delete declaration.
13125 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13127 2002-02-13 Keith Seitz <keiths@redhat.com>
13129 * defs.h (core_addr_to_string_nz): New function.
13131 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13133 Apply missing bits of 2002-01-15 patch.
13134 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13135 (fill_fpregset): Use i387_fill_fsave.
13137 2002-02-12 Keith Seitz <keiths@redhat.com>
13139 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13140 (core_addr_to_string_nz): New function.
13142 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13144 * arm-linux-nat.c: Really include arm-tdep.h.
13145 * config/arm/tm-linux.h (struct type, struct value): Declare.
13147 2002-02-11 Michael Snyder <msnyder@redhat.com>
13149 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13150 (gcore section): Ifdef for Solaris and Unixware only.
13151 (procfs_do_thread_registers): Unixware needs one lwpstatus
13152 per thread (not one prstatus or pstatus).
13153 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13154 not over all gdb threads. For unixware, call elfcore_write_pstatus
13155 once before iterating over threads.
13157 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13159 * arm-tdep.h: New file.
13160 * arm-tdep.c: Include arm-tdep.h.
13161 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13162 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13163 (arm_print_float_info, arm_register_type, convert_to_extended)
13164 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13165 (arm_extract_return_value, arm_register_name): Make static.
13166 (arm_software_single_step): Similarly. Fix types in declaration.
13167 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13168 (arm_store_return_value, arm_store_struct_return): New functions.
13169 (arm_gdbarch_init): Register the above functions. Also register
13170 call_dummy_start_offset, sizeof_call_dummy_words,
13171 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13172 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13173 max_register_virtual_size, register_size. Set up
13174 prologue_cache.saved_regs here, rather than ...
13175 (_initialize_arm_tdep): ... here.
13176 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13178 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13179 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13180 (arm_print_float_info, arm_register_type, convert_to_extended)
13181 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13182 (arm_extract_return_value, arm_register_name): Delete declarations.
13183 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13184 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13185 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13186 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13187 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13188 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13189 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13190 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13191 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13192 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13193 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13194 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13196 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13197 * remote-rdi.c remote-rdp.c: Likewise.
13198 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13199 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13200 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13203 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13204 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13205 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13206 from non-ARM_ prefixed definitions.
13207 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13209 * remote-rdi.c remote-rdp.c: Likewise.
13210 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13212 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13214 * arm-tdep.c (arm_frameless_function_invocation)
13215 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13216 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13217 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13218 (arm_pop_frame, arm_get_next_pc): Make static.
13219 (arm_gdbarch_init): Register above in gdbarch structure.
13220 (arm_read_fp): Renamed from arm_target_read_fp.
13221 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13222 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13223 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13224 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13225 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13226 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13227 (arm_pc_is_thumb_dummy): Delete declarations.
13228 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13229 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13230 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13231 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13233 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13235 * symtab.c (compare_search_syms): New function.
13236 (sort_search_symbols): New function.
13237 (search_symbols): Sort symbols after searching rather than
13240 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13242 * NEWS: Linux -> GNU/Linux.
13244 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13246 * gdbarch.sh: For for level one methods, disallow a definition
13247 when partially multi-arched. Add comments explaining rationale.
13248 * gdbarch.h: Re-generate.
13250 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13252 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13253 multi-arch partial.
13255 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13257 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13258 field. Use diff -u.
13259 * gdbarch.c: Re-generate.
13261 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13263 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13264 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13267 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13269 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13270 multi-arch partial.
13271 (PUSH_ARGUMENTS): Switch to using predefault.
13272 * gdbarch.c: Regenerate.
13274 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13276 * valops.c (PUSH_ARGUMENTS): Delete definition.
13277 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13278 partial. Default to default_push_arguments.
13279 * gdbarch.h, gdbarch.c: Regenerate.
13281 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13283 * defs.h (throw_exception): Rename return_to_top_level. Update
13285 * utils.c (error_stream, internal_verror, quit): Ditto.
13286 * top.c (throw_exception, catcher): Ditto.
13287 * sparclet-rom.c (sparclet_load): Ditto.
13288 * remote.c (interrupt_query, minitelnet): Ditto.
13289 * remote-sds.c (interrupt_query): Ditto.
13290 * remote-mips.c (mips_error, mips_kill): Ditto.
13291 * ocd.c (interrupt_query): Ditto.
13292 * monitor.c (monitor_interrupt_query): Ditto.
13293 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13294 * target.h: Update comment.
13296 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13298 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13300 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13301 default_double_format.
13302 * gdbarch.h, gdbarch.c: Re-generate.
13303 * findvar.c (floatformat_unknown): Delete variable definition.
13304 * doublest.h (floatformat_unknown): Delete variable declaration.
13306 2002-02-09 Jim Blandy <jimb@redhat.com>
13308 * stabsread.c (read_type): Add code to parse Sun's syntax for
13309 prototyped function types.
13311 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13313 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13314 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13316 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13318 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13319 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13320 now _initialize_xcoffsolib gets called again and overrides the
13321 commands from solib.c in a native configuration.
13323 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13325 * doublest.c (store_typed_floating): Don't try to return a value.
13328 2002-02-08 Jim Blandy <jimb@redhat.com>
13330 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13331 is prototyped and has no arguments, print its argument list as
13334 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13336 * MAINTAINERS (write-after-approval): Add myself.
13337 (paper-trail): I've escaped!
13339 2002-02-08 Christopher Faylor <cgf@redhat.com>
13341 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13343 (_initialize_check_for_gdb_ini): Ditto.
13345 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13347 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13348 xaprintf -> xasprintf.
13350 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13352 * win32-nat.c: Remove use of printf and sprintf functions.
13354 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13356 * arm-tdep.c (arm_frame_chain_valid): Make static.
13357 (arm_push_arguments): Likewise.
13358 (arm_gdbarch_init): New function.
13359 (_initialize_arm_tdep): Call it.
13360 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13361 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13362 (FRAME_CHAIN_VALID): Delete.
13363 (arm_frame_chain_valid): Delete declaration.
13364 (PUSH_ARGUMENTS): Delete.
13365 (arm_push_arguments): Delete declaration.
13366 (CALL_DUMMY_P): Delete.
13368 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13369 Corinna Vinschen <vinschen@redhat.com>
13371 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13372 on builtin float types.
13374 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13376 * utils.c: Include <curses.h> before "bfd.h".
13377 * tui/tui-hooks.c: Likewise.
13378 * tui/tui.c: Likewise.
13379 * tui/tuiCommand.c: Likewise.
13380 * tui/tuiData.c: Likewise.
13381 * tui/tuiDataWin.c: Likewise.
13382 * tui/tuiDisassem.c: Likewise.
13383 * tui/tuiGeneralWin.c: Likewise.
13384 * tui/tuiIO.c: Likewise.
13385 * tui/tuiLayout.c: Likewise.
13386 * tui/tuiRegs.c: Likewise.
13387 * tui/tuiSource.c: Likewise.
13388 * tui/tuiSourceWin.c: Likewise.
13389 * tui/tuiStack.c: Likewise.
13390 * tui/tuiWin.c: Likewise.
13392 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13394 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13395 to include space for pseudoregs as well. Update loops accordingly.
13396 (sh_fp_frame_init_saved_regs): Ditto.
13397 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13399 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13401 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13402 Add Richard Earnshaw to Arm maintainers.
13404 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13406 * defs.h (warning_begin): Delete declaration.
13408 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13411 2002-02-07 Michael Snyder <msnyder@redhat.com>
13413 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13414 Logic bug, remove misplaced else.
13416 2002-02-07 Klee Dienes <klee@apple.com>
13418 * fork-inferior.c (fork_inferior): Add '!' to the list of
13419 characters that need to be quoted when building a string for the
13420 shell. Quote '!' specifically with a backslash, since CSH chokes
13421 when trying to evaluate "str!str".
13423 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13425 * rdi-share/host.h: Only provide a typedef for bool if it is not
13428 2002-02-04 Michael Snyder <msnyder@redhat.com>
13430 * breakpoint.h (enum bptype): Add new overlay event bp type.
13431 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13433 * breakpoint.c (create_internal_breakpoint): New function.
13434 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13435 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13436 (create_thread_event_breakpoint): Ditto.
13437 (create_solib_event_breakpoint): Ditto.
13438 (create_overlay_event_breakpoint): New function.
13439 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13440 (update_breakpoints_after_exec): Delete and re-initialize
13441 overlay event breakpoints after an exec. Add FIXME comment
13442 about longjmp breakpoint.
13443 (print_it_typical): Ignore overlay event breakpoints.
13444 (print_one_breakpoint): Ditto.
13446 (bpstat_what): Do not stop for overlay event breakpoints.
13447 (delete_breakpoint): Don't delete overlay event breakpoints.
13448 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13449 (breakpoint_re_set): Re-create overlay event breakpoint.
13451 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13452 (overlay_manual_command): Disable overlay breakpoints.
13453 (overlay_off_command): Disable overlay breakpoints.
13455 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13457 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13458 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13459 to here from config/tm-arm.h.
13460 (coff_sym_is_thumb): Make static.
13461 (arm_elf_make_msymbol_special): New function.
13462 (arm_coff_make_msymbol_special): New function.
13463 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13464 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13465 (coff_sym_is_thumb): Delete declaration.
13466 (arm_elf_make_msymbol_special): Declare.
13467 (arm_coff_make_msymbol_special): Declare.
13468 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13469 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13471 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13473 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13475 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13477 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13478 * gdbarch.c gdbarch.h: Regenerate.
13479 * arch-utils.c (default_print_float_info): New function.
13480 * arch-utils.h (default_print_float_info): Prototype it.
13481 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13482 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13483 (PRINT_FLOAT_INFO): Document it.
13485 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13486 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13487 (PRINT_FLOAT_INFO): Define.
13489 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13491 * win32-nat.c (_initialize_check_for_gdb_ini):
13492 Add typecast to sprintf argument to suppress a warning.
13494 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13496 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13497 to allow easier handling of pass state.
13498 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13499 that gives exception name and address.
13500 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13501 and set last_sig value to ourstatus->value.sig. Some missing
13503 (child_continue): Correctly report continue_status.
13504 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13505 TARGET_SIGNAL_0 (new default value).
13506 (child_resume): consider sig argument passed to decide if
13507 the exception should be passed to debuggee or not.
13509 2002-02-05 Michael Snyder <msnyder@redhat.com>
13511 * regcache.c (fetch_register): Call target_fetch_register
13512 only if we don't call FETCH_PSEUDO_REGISTER.
13513 (store_register): Call target_store_register only if we
13514 don't call STORE_PSEUDO_REGISTER.
13516 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13518 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13519 ELF_MAKE_MSYMBOL_SPECIAL.
13520 * gdbarch.c, gdbarch.h: Regenerate.
13521 * arch-utils.c (default_make_msymbol_special): New function.
13522 * arch-utils.h (default_make_msymbol_special): Export.
13523 * elfread.c (elf_symtab_read): Compile use of
13524 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13526 * coffread.c (coff_symtab_read): Ditto, for
13527 COFF_MAKE_MSYMBOL_SPECIAL.
13529 2002-02-05 Jim Blandy <jimb@redhat.com>
13531 * solib-svr4.c (svr4_truncate_ptr): New function.
13532 (svr4_relocate_section_addresses): Do the address arithmetic with
13533 the appropriate truncation for target addresses, even when
13534 CORE_ADDR is larger than a target address.
13536 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13538 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13541 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13543 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13546 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13548 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13550 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13552 * gdbserver/linux-low.c: Remove unused include files.
13554 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13556 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13557 (read_inferior_memory): Use it.
13558 (write_inferior_memory): Likewise.
13560 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13562 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13563 grubbing through sys_errlist.
13565 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13567 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13569 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13570 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13572 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13574 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13575 (do_sfunc, set_cmd_sfunc): New functions.
13577 * command.h (struct cmd_list_element): Add field func.
13578 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13579 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13580 * cli/cli-decode.h: Ditto.
13582 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13583 (help_all, help_cmd_list): Ditto.
13584 (find_cmd, complete_on_cmdlist): Ditto.
13585 * top.c (execute_command): Ditto.
13587 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13590 * infcmd.c (notice_args_read): Fix function signature.
13592 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13593 * cli/cli-decode.c (add_set_cmd): Ditto.
13594 * utils.c (initialize_utils): Ditto.
13595 * maint.c (_initialize_maint_cmds): Ditto.
13596 * infrun.c (_initialize_infrun): Ditto.
13597 * demangle.c (_initialize_demangler): Ditto.
13598 * remote.c (add_packet_config_cmd): Ditto.
13599 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13600 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13601 * proc-api.c (_initialize_proc_api): Ditto.
13602 * kod.c (_initialize_kod): Ditto.
13603 * valprint.c (_initialize_valprint): Ditto.
13604 * top.c (init_main): Ditto.
13605 * infcmd.c (_initialize_infcmd): Ditto.
13606 * corefile.c (_initialize_core): Ditto.
13607 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13608 * arch-utils.c (initialize_current_architecture): Ditto.
13609 (_initialize_gdbarch_utils): Ditto.
13610 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13612 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13613 * wince.c (_initialize_inftarg): Ditto.
13614 * symfile.c (_initialize_symfile): Ditto.
13615 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13616 * language.c (_initialize_language): Ditto.
13617 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13619 2002-02-04 Michael Snyder <msnyder@redhat.com>
13621 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13623 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13625 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13626 Add rules for building the register data files.
13628 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13630 * regformats/regdat.sh: Add braces to the definition of
13631 expedite_regs_${arch}.
13633 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13635 * regformats/regdef.h (struct reg): Add comment describing the
13636 requirements for offset and size fields.
13638 2002-02-04 Andreas Schwab <schwab@suse.de>
13640 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13641 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13643 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13645 * gdbarch.sh (copyright): Update years in generated header.
13646 (SMASH_TEXT_ADDRESS): Add rule.
13647 * gdbarch.h, gdbarch.c: Re-generate.
13648 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13649 * dbxread.c: Likewise.
13650 * dwarfread.c: Likewise.
13651 * elfread.c: Likewise.
13652 * somread.c: Likewise.
13654 * arm-tdep.c (arm_smash_text_address): New function.
13655 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13657 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13659 Add support for hardware watchpoints on win32 native.
13660 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13661 CONTEXT_DEBUG_REGISTERS.
13662 (dr variable): New variable. Static array containing a local copy
13663 of debug registers.
13664 (debug_registers_changed): New variable. Reflects when debug registers
13665 are changed and need to be written to inferior.
13666 (debug_registers_used): New variable. Reflects when any debug register
13667 was set, used when new threads are created.
13668 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13670 (thread_rec): Set dr array if id is the thread of current_event .
13671 (child_continue, child_resume): Change the debug registers for all
13672 threads if debug_registers_changed.
13673 (child_add_thread): Change the debug registers if debug_registers_used.
13674 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13675 Link nm.h to new nm-cygwin.h file.
13676 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13677 of hardware registers.
13679 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13681 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13682 Restore behavour broken by 2002-01-20 Andrew Cagney
13683 <ac131313@redhat.com> IEEE_FLOAT removal.
13685 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13687 * c-valprint.c (c_val_print): Pass a proper valaddr to
13688 cp_print_class_method.
13689 * valops.c (search_struct_method): If there is only one method
13690 and args is NULL, return that method.
13692 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13694 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13695 accessing tag_name directly.
13697 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13699 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13700 of accessing tag_name directly.
13702 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13705 * gdbtypes.c (replace_type): New function.
13706 * gdbtypes.h (replace_type): Add prototype.
13707 * stabsread.c (read_type): Use replace_type.
13709 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13711 * Makefile.in (memattr.o): Add missing dependencies rule.
13713 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13715 * breakpoint.c (break_at_finish_command): Really export.
13716 (break_at_finish_at_depth_command): Ditto.
13717 (tbreak_at_finish_command): Ditto.
13718 * hppa-tdep.c: Include completer.h.
13719 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13720 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13722 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13724 * utils.c (do_write): New function.
13725 (error_stream): Rewrite combining the code from error_begin and
13727 (verror): Rewrite using error_stream.
13728 (error_begin): Delete function.
13730 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13732 * utils.c (error_begin): Make static.
13733 * defs.h (error_begin): Delete declaration.
13735 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13736 (decode_line_1): Use cplusplus_error instead of error_begin,
13737 cplusplus_hint and return_to_top_level.
13738 * coffread.c (coff_symfile_read): Use error instead of error_begin
13739 and return_to_top_level.
13740 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13742 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13744 * language.h (type_error, range_error): Make string parameter
13746 * language.c (warning_pre_print): Delete extern declaration.
13747 * dwarfread.c (warning_pre_print): Ditto.
13748 * language.c (type_error, range_error): Rewrite to use verror and
13749 vwarning instead of warning_begin.
13751 2002-02-01 Michael Snyder <msnyder@redhat.com>
13753 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13754 (set_ignore_count): Move misplaced comment back where it belongs.
13756 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13758 * command.h (NO_FUNCTION): Delete macro.
13759 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13760 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13761 * tracepoint.c (_initialize_tracepoint): Ditto.
13762 * cli/cli-decode.c (add_set_cmd): Ditto.
13763 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13765 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13767 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13768 Update ``this'' pointer when calling virtual functions.
13770 2002-02-01 Michael Snyder <msnyder@redhat.com>
13772 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13773 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13775 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13777 * regformats/reg-arm.dat: New file.
13778 * regformats/reg-i386.dat: New file.
13779 * regformats/reg-ia64.dat: New file.
13780 * regformats/reg-m68k.dat: New file.
13781 * regformats/reg-mips.dat: New file.
13782 * regformats/reg-ppc.dat: New file.
13783 * regformats/reg-sh.dat: New file.
13784 * regformats/regdef.h: New file.
13785 * regformats/regdat.sh: New file.
13787 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13789 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13790 (arm_frame_args_address, arm_frame_locals_address): New functions.
13791 (arm_frame_num_args): New function.
13792 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13793 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13794 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13796 2002-01-31 Michael Snyder <msnyder@redhat.com>
13798 * breakpoint.c (break_at_finish_command): Export.
13799 (break_at_finish_at_depth_command): Export.
13800 (tbreak_at_finish_command): Export.
13801 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13802 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13803 "txbreak" commands, which are HPPA specific.
13805 * printcmd.c (disassemble_command): Remove an ancient
13806 artifact of an old merge.
13808 * symfile.h (enum overlay_debugging_state):
13809 Define enum constant values for overlay mode.
13810 * symfile.c (overlay_debugging): Use enums instead of literals.
13811 (overlay_is_mapped, overlay_auto_command,
13812 overlay_manual_command): Ditto.
13814 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13815 breakpoint_here_p, breakpoint_inserted_here_p,
13816 breakpoint_thread_match, bpstat_stop_status,
13817 describe_other_breakpoints, check_duplicates, clear_command):
13818 Coding standard fixes.
13820 * target.c (target_xfer_memory): Add spaces, coding standard.
13821 (do_xfer_memory): Add missing line to trust-readonly
13822 code: check bfd SEC_READONLY flag for section.
13824 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13826 * PROBLEMS: Fix typo, 5.1->5.1.1.
13828 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13830 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13831 data symbols, since we search based on textlow and texthigh.
13832 (find_pc_sect_symtab): Likewise.
13834 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13836 * defs.h (vwarning): Declare.
13837 * utils.c (vwarning): New function.
13838 (warning): Call vwarning.
13839 (warning_begin): Delete function.
13841 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13842 the warning message.
13843 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13846 2002-01-30 Michael Snyder <msnyder@redhat.com>
13848 * NEWS: Mention "set trust-readonly-sections" command.
13849 Mention generate-core-file command.
13851 2002-01-15 Michael Snyder <msnyder@redhat.com>
13853 * target.c: New command, "set trust-readonly-sections on".
13854 (do_xfer_memory): Honor the suggestion to trust readonly sections
13855 by reading them from the object file instead of from the target.
13856 (initialize_targets): Register command "set trust-readonly-sections".
13858 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13860 * parse.c (target_map_name_to_register): Simplify, search regs and
13861 pseudo-regs using a single loop.
13863 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13865 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13867 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13869 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13870 * config/i386/i386v42mp.mh: Add i387-nat.o .
13871 * i386v4-nat.c: Include i387-nat.h.
13872 (supply_fpregset): Use i387_supply_fsave.
13873 (fill_fpregset): Use i387_fill_fsave.
13875 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13877 * arm-tdep.c (arm_call_dummy_words): Define.
13878 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13879 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13880 (CALL_DUMMY_WORDS): Define.
13881 (arm_call_dummy_words): Declare.
13882 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13883 (arm_linux_call_dummy_words): Declare.
13885 2002-01-30 Andreas Schwab <schwab@suse.de>
13887 * m68klinux-nat.c: Fix last change to use regcache_collect
13888 instead of referencing registers[] directly.
13890 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13892 * parse.c (target_map_name_to_register): Delete code wrapped in
13893 #ifdef REGISTER_NAME_ALIAS_HOOK.
13895 2002-01-28 Michael Snyder <msnyder@redhat.com>
13897 * regcache.c (legacy_read_register_gen): Need to be able to
13898 read pseudo-register as well as real register.
13899 (legacy_write_register_gen): Ditto.
13901 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13903 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13904 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13905 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13906 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13907 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13908 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13909 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13910 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13911 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13912 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13913 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13914 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13915 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13916 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13917 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13918 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13919 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13920 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13921 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13922 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13924 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13926 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13927 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13928 (initialize_current_architecture): Update target_byte_order using
13929 information from BFD.
13930 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13931 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13933 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13935 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13936 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13938 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13939 #ifdef INVALID_FLOAT.
13940 * infcmd.c (do_registers_info): Ditto.
13941 * values.c (unpack_double): Ditto. Add comment.
13943 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13944 already commented out.
13946 2002-01-26 Andreas Schwab <schwab@suse.de>
13948 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13949 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13950 registers and add support for PTRACE_GETREGS.
13952 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13954 GDB 5.1.1 released from 5.1 branch.
13955 * NEWS: Add 5.1.1 news.
13956 * README: Sync with 5.1 branch.
13958 2002-01-23 Fred Fish <fnf@redhat.com>
13960 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13961 stabstring on initial malloc. Reallocing will copy it for us,
13964 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13966 * Makefile.in (hpread_h): Delete.
13967 (HFILES_NO_SRCDIR): Remove hpread.h.
13968 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13969 (hpread.o): Update dependencies.
13970 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13972 * hp-psymtab-read.c: Remove file.
13973 * hp-symtab-read.c: Remove file.
13974 * hpread.h: Remove file.
13976 * hpread.c: Merge all contents of hp-psymtab-read.c,
13977 hp-symtab-read.c and hpread.h into this file, as it was prior to
13980 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13981 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13982 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13983 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13985 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13987 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13988 fill_gregset): Call gdbarch_tdep() just once, assign result to
13989 variable and use that, instead of calling the function several
13992 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13994 * configure.host: Accept sparcv9 as alias for sparc64.
13995 * configure.tgt: Likewise.
13997 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13999 * solib-aix5.c (build_so_list_from_mapfile)
14000 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14001 arguments is not reversed.
14002 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14003 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14005 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14007 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14008 modified version of obsolete sh_fetch_pseudo_register.
14009 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14010 (sh4_register_read): New function.
14011 (sh_pseudo_register_write): New function. Renamed and modified
14012 version of obsolete sh_store_pseudo_register.
14013 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14014 (sh4_register_write): New function.
14015 (sh_gdbarch_init): Remove setting of gdbarch function
14016 fetch_pseudo_register and store_pseudo_register. Remove setting of
14017 register_convert_to_raw, register_convert_to_virtual,
14018 register_convertible.
14019 (sh_sh4_register_convertible): Delete. No longer needed. All is
14020 taken care by architecture specific functions
14021 register_read/register_write.
14022 (sh_sh4_register_convert_to_virtual): Make static.
14023 (sh_sh4_register_convert_to_raw): Ditto.
14025 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14027 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14028 (floatformat_is_nan, floatformat_mantissa): Ditto.
14030 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14031 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14032 builtin_type_ieee_double_little,
14033 builtin_type_ieee_double_littlebyte_bigword,
14034 builtin_type_m68881_ext, builtin_type_i960_ext,
14035 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14036 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14037 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14038 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14040 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14042 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14043 parameter. Set frameless flag if it exists and depended of
14044 whether the scanned function is frameless or not.
14045 (xstormy16_skip_prologue): If function is frameless, return
14046 result of xstormy16_scan_prologue().
14047 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14050 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14052 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14053 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14054 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14055 sh_sh4_register_byte, sh_sh4_register_raw_size,
14056 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14057 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14058 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14059 sh_store_pseudo_register, sh_do_pseudo_register): Call
14060 gdbarch_tdep() just once, assign result to variable and use that,
14061 instead of calling the function several times.
14063 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14065 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14066 macros instead of LAST_FPU_CTRL_REGNUM.
14067 (store_register): Likewise.
14069 2002-01-21 Jim Blandy <jimb@redhat.com>
14071 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14072 is up-to-date before running the program, not just when a program
14075 2002-01-21 Fred Fish <fnf@redhat.com>
14077 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14078 when we have found all instructions we are looking for.
14080 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14082 * arm-tdep.c (arm_register_name): New function.
14083 (arm_registers_names): Make static.
14084 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14085 (arm_register_name): Declare.
14086 (REGISTER_NAME): Use it.
14088 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14089 Kevin Buettner <kevinb@redhat.com>
14091 Convert arm targets to new FRAME interface.
14092 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14093 (arm_frame_find_save_regs): Delete.
14094 (arm_frame_init_saved_regs): New.
14095 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14096 Allocate extra_info as required. Convert all uses of fsr.regs
14097 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14099 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14100 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14101 (check_prologue_cache, save_prologue_cache): Likewise.
14102 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14103 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14104 (FRAME_FIND_SAVED_REGS): Delete.
14105 (arm_frame_find_saved_regs): Delete prototype.
14106 (arm_frame_init_saved_regs): New prototype.
14107 (FRAME_INIT_SAVED_REGS): Define.
14109 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14111 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14115 From Jeff Law <law@redhat.com>:
14116 * infttrace.c: Include <sys/pstat.h>.
14117 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14118 exec file if the ttrace equivalent fails.
14120 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14122 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14123 (closeLogFile): Ditto.
14125 2002-01-20 Michael Chastain <mec@shout.net>
14127 * top.c (print_gdb_version): Bump copyright year to 2002.
14129 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14131 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14132 Zannoni and Eli Zaretskii.
14134 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14136 * buildsym.c: Update copyright years.
14137 * c-typeprint.c: Likewise.
14138 * dwarf2read.c: Likewise.
14139 * f-typeprint.c: Likewise.
14140 * gdbtypes.c: Likewise.
14141 * gdbtypes.h: Likewise.
14142 * hp-symtab-read.c: Likewise.
14143 * hpread.c: Likewise.
14144 * mdebugread.c: Likewise.
14145 * p-typeprint.c: Likewise.
14147 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14149 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14150 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14151 byte-order selectable.
14152 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14153 * arch-utils.c: Ditto.
14154 (set_endian): Ditto.
14155 (set_endian_from_file): Ditto.
14156 * gdbserver/low-sim.c (create_inferior): Ditto.
14157 * gdbarch.sh: Ditto.
14158 * gdbarch.h: Re-generate.
14159 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14160 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14161 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14162 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14163 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14164 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14165 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14166 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14168 * config/mips/tm-wince.h: Remove #undef of macro
14169 TARGET_BYTE_ORDER_SELECTABLE.
14170 * config/sh/tm-wince.h: Ditto.
14172 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14174 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14175 member function fields. Add accessor macro
14176 TYPE_FN_FIELD_ARTIFICIAL.
14177 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14178 * c-typeprint.c (c_type_print_base): Skip artificial member
14181 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14183 * f-typeprint.c: Delete unused function f_type_print_args.
14184 * p-typeprint.c: Delete unused function pascal_type_print_args.
14186 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14188 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14189 comment. Add ``artificial'' to ``union field_location''.
14191 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14193 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14194 * mdebugread.c (parse_symbol): Likewise.
14195 * stabsread.c (define_symbol): Likewise.
14196 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14197 initializing TYPE_FIELD_BITPOS to n (obsolete).
14198 (hpread_doc_function_type): Likewise.
14199 * hpread.c (hpread_function_type): Likewise.
14201 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14203 * configure.in (host_makefile_frag): Only require a host makefile
14204 fragment when a native build.
14205 * configure: Re-generate.
14207 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14209 * doublest.h (floatformat_from_type): Declare.
14210 * doublest.c (floatformat_from_type): New function.
14211 (convert_typed_floating): Use.
14213 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14214 call to function floatformat_from_type.
14216 * gdbarch.sh (IEEE_FLOAT): Delete.
14217 * gdbarch.h, gdbarch.c: Re-generate.
14218 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14219 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14220 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14221 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14222 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14223 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14224 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14225 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14226 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14227 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14228 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14229 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14231 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14232 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14234 * sh-tdep.c (sh_gdbarch_init): Ditto.
14235 * mips-tdep.c (mips_gdbarch_init): Ditto.
14236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14237 * cris-tdep.c (cris_gdbarch_init): Ditto.
14239 2002-01-20 Jiri Smid <smid@suse.cz>
14241 * configure.host, configure.tgt: Support x86-64.
14242 * NEWS: Note new target x86-64.
14244 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14245 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14246 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14247 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14248 x86-64-linux-nat.o): Fix dependencies.
14250 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14252 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14253 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14254 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14255 * config/sparc/xm-sun4os4.h: Delete file.
14256 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14258 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14260 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14261 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14262 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14263 * config/i386/i386lynx.mh (XM_FILE): Delete.
14264 * config/rs6000/xm-rs6000ly.h: Delete file.
14265 * config/sparc/xm-sparclynx.h: Delete file.
14266 * config/m68k/xm-m68klynx.h: Delete file.
14267 * config/i386/xm-i386lynx.h: Delete file.
14268 * config/xm-lynx.h: Delete file.
14269 * config/djgpp/fnchange.lst: Update.
14271 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14273 * alpha-tdep.c (alpha_register_byte): New function.
14274 (alpha_register_raw_size): Ditto.
14275 (alpha_register_virtual_size): Ditto.
14276 (alpha_skip_prologue_internal): Renamed from
14277 alpha_skip_prologue.
14278 (alpha_skip_prologue): New version that calls
14279 alpha_skip_prologue_internal.
14280 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14281 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14282 second argument from alpha_skip_prologue.
14283 (REGISTER_BYTE): Use alpha_register_byte.
14284 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14285 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14286 (FRAMELESS_FUNCTION_INVOCATION): Use
14287 generic_frameless_function_invocation_not.
14288 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14289 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14291 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14293 * config/mips/xm-news-mips.h: Delete file.
14294 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14296 * config/m88k/xm-m88k.h: Delete file.
14297 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14298 * config/m88k/xm-delta88v4.h: Ditto.
14299 * config/m88k/xm-delta88.h: Ditto.
14301 * config/alpha/xm-fbsd.h: Delete file.
14302 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14304 * config/sparc/xm-sparc.h: Delete file.
14305 * Makefile.in (xm-sun4os4.h): Delete dependency.
14306 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14307 * config/sparc/xm-sun4os4.h: Ditto.
14308 * config/sparc/xm-linux.h: Ditto.
14310 * config/i386/xm-windows.h: Delete file.
14312 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14314 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14315 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14317 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14319 * alpha-tdep.c (alpha_call_dummy_words): New.
14320 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14321 (CALL_DUMMY_P): Define.
14322 (CALL_DUMMY_WORDS): Define.
14323 (SIZEOF_CALL_DUMMY_WORDS): Define.
14325 2002-01-19 Per Bothner <per@bothner.com>
14327 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14328 isn't NULL, which can happen with some gcj-3.x-produced code.
14330 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14332 * alpha-tdep.c (alpha_register_virtual_type): New function.
14333 (alpha_init_frame_pc_first): Ditto.
14334 (alpha_fix_call_dummy): Ditto.
14335 (alpha_store_struct_return): Ditto.
14336 (alpha_extract_struct_value_address): Ditto.
14337 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14338 alpha_register_virtual_type.
14339 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14340 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14341 alpha_extract_struct_value_address.
14342 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14343 (INIT_FRAME_PC): Use init_frame_pc_noop.
14344 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14346 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14348 * i386gnu-nat.c: Include "i386-tdep.h".
14349 (fetch_fpregs): Simplify code dealing with uninitialized floating
14350 point states such that it doesn't require FP7_REGNUM.
14352 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14354 * alpha-tdep.c (frame_extra_info): New.
14355 (alpha_find_saved_regs): Make static. Use
14357 (alpha_frame_init_saved_regs): New function.
14358 (alpha_frame_saved_pc): Use frame->extra_info.
14359 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14360 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14361 (init_extra_frame_info): Rename to...
14362 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14363 (alpha_print_extra_frame_info): New function.
14364 (alpha_frame_locals_address): Ditto.
14365 (alpha_frame_args_address): Ditto.
14366 (alpha_pop_frame): Use frame->extra_info.
14367 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14368 alpha_frame_args_address.
14369 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14370 (alpha_find_saved_regs): Remove prototype.
14371 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14372 (EXTRA_FRAME_INFO): Remove.
14373 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14374 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14376 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14378 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14379 (alpha_cannot_fetch_register): Ditto.
14380 (alpha_cannot_store_register): Ditto.
14381 (alpha_register_convertible): Ditto.
14382 (alpha_use_struct_convention): Ditto.
14383 * config/alpha/tm-alpha.h: Update copyright years.
14384 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14385 (INNER_THAN): Use core_addr_lessthan.
14386 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14387 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14388 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14389 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14390 (FRAME_CHAIN): Remove unnecessary cast.
14392 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14394 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14397 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14399 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14400 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14401 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14402 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14403 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14404 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14405 * x86-64-linux-nat.c: Ditto.
14407 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14409 * alpha-tdep.c (alpha_register_name): New function.
14410 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14411 (REGISTER_NAME): Define.
14413 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14415 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14417 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14419 * alpha-tdep.c: Update copyright years.
14420 (alpha_next_pc): New function.
14421 (alpha_software_single_step): Ditto.
14422 * config/alpha/tm-alpha.h: Add prototype for
14423 alpha_software_single_step.
14425 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14427 * alphabsd-nat.c: Update copyright years.
14428 (fill_gregset): Use regcache_collect.
14429 (fill_fpregset): Likewise.
14430 (fetch_inferior_registers): Only fetch integer registers
14431 if requested to do so.
14432 (store_inferior_registers): Only store integer registers
14433 if requested to do so.
14435 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14437 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14438 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14439 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14440 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14441 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14442 * config/arm/linux.mh (XDEPFILES): Delete.
14443 * config/arm/nbsd.mh (XDEPFILES): Delete.
14444 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14445 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14446 * config/i386/i386m3.mh (XDEPFILES): Delete.
14447 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14448 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14449 * config/i386/fbsd.mh (XDEPFILES): Delete.
14450 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14451 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14452 * config/i386/i386v4.mh (XDEPFILES): Delete.
14453 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14454 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14455 * config/i386/i386aix.mh (XDEPFILES): Delete.
14456 * config/i386/go32.mh (XDEPFILES): Delete.
14457 * config/i386/cygwin.mh (XDEPFILES): Delete.
14458 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14459 * config/i386/i386mach.mh (XDEPFILES): Delete.
14460 * config/i386/i386v32.mh (XDEPFILES): Delete.
14461 * config/i386/linux.mh (XDEPFILES): Delete.
14462 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14463 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14464 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14465 * config/i386/i386sco.mh (XDEPFILES): Delete.
14466 * config/i386/i386v.mh (XDEPFILES): Delete.
14467 * config/i386/nbsd.mh (XDEPFILES): Delete.
14468 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14469 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14470 * config/i386/symmetry.mh (XDEPFILES): Delete.
14471 * config/i386/obsd.mh (XDEPFILES): Delete.
14472 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14473 * config/ia64/linux.mh (XDEPFILES): Delete.
14474 * config/ia64/aix.mh (XDEPFILES): Delete.
14475 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14476 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14477 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14478 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14479 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14480 * config/m68k/linux.mh (XDEPFILES): Delete.
14481 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14482 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14483 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14484 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14485 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14486 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14487 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14488 * config/m88k/delta88.mh (XDEPFILES): Delete.
14489 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14490 * config/m88k/m88k.mh (XDEPFILES): Delete.
14491 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14492 * config/mips/linux.mh (XDEPFILES): Delete.
14493 * config/mips/irix6.mh (XDEPFILES): Delete.
14494 * config/mips/irix5.mh (XDEPFILES): Delete.
14495 * config/mips/irix4.mh (XDEPFILES): Delete.
14496 * config/mips/irix3.mh (XDEPFILES): Delete.
14497 * config/mips/decstation.mh (XDEPFILES): Delete.
14498 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14499 (NATDEPFILES): Move core-aout.o to here.
14500 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14501 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14502 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14503 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14504 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14505 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14506 * config/pa/hpux11.mh (XDEPFILES): Delete.
14507 * config/powerpc/aix.mh (XDEPFILES): Delete.
14508 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14509 * config/powerpc/linux.mh (XDEPFILES): Delete.
14510 * config/romp/rtbsd.mh: Rename XDEPFILES.
14511 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14512 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14513 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14514 * config/s390/s390.mh (XDEPFILES): Delete.
14515 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14516 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14517 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14518 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14519 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14520 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14521 * config/sparc/linux.mh (XDEPFILES): Delete.
14522 * config/vax/vaxult.mh (XDEPFILES): Delete.
14523 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14524 * Makefile.in (DEPFILES): Remove XDEPFILES.
14526 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14528 * utils.c (internal_verror): Fix comments, default is yes not no.
14529 Update queries to match. Default to quit and dump core.
14531 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14533 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14535 * defs.h, event-top.c, gdbcmd.h: Ditto.
14536 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14537 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14538 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14539 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14540 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14541 * mi/mi-main.c:Ditto.
14543 * stack.c, symfile.c: Update copyright.
14545 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14547 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14548 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14549 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14550 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14552 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14554 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14555 * gdbserver/low-lynx.c (myattach): Likewise.
14556 * gdbserver/low-nbsd.c (myattach): Likewise.
14557 * gdbserver/low-sim.c (myattach): Likewise.
14558 * gdbserver/low-sparc.c (myattach): Likewise.
14559 * gdbserver/low-sun3.c (myattach): Likewise.
14561 * gdbserver/low-linux.c (myattach): New function.
14563 * gdbserver/server.c (attach_inferior): New function.
14564 (main): Handle "--attach".
14566 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14568 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14571 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14573 * c-typeprint.c (is_type_conversion_operator): Add additional
14574 check for non-conversion operators.
14576 2002-01-15 Michael Snyder <msnyder@redhat.com>
14578 * linux-proc.c: Add "info proc" command, a la procfs.c.
14579 (read_mapping): New function, abstract and re-use code.
14580 (linux_find_memory_regions): Use new func read_mapping.
14581 (linux_info_proc_cmd): New function, implement "info proc".
14582 (_initialize_linux_proc): Add new command "info proc".
14584 2002-01-15 Michael Snyder <msnyder@redhat.com>
14586 * symfile.c (generic_load): Use bfd_map_over_sections method
14587 instead of manipulating bfd structure members directly.
14588 (add_section_size_callback): New function, bfd sections callback
14589 used by generic_load.
14590 (load_sections_callback): New function, bfd sections callback
14591 used by generic_load.
14593 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14595 [Based on work by Jim Blandy]
14596 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14597 (builtin_type_vec128): Export.
14598 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14600 (builtin_type_vec128): New builtin type for 128 bit vector
14602 (build_gdbtypes): Initialize builtin_type_v16qi and
14603 builtin_type_v8hi. Create the vec128 register builtin type
14605 (build_builtin_type_vec128): New function.
14606 (_initialize_gdbtypes): Register builtin_type_v16qi and
14607 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14608 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14609 AltiVec register to new builtin type.
14611 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14613 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14616 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14618 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14619 CLEAN_UP_REGISTER_VALUE.
14620 * regcache.c (supply_register): Update only call.
14622 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14624 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14625 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14626 a29k-*-vxworks* targets as obsolete.
14628 2002-01-14 Michael Snyder <msnyder@redhat.com>
14630 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14631 until we can resolve portability issues.
14632 * gregset.h: Remove references to fpxregs.
14633 * gcore.c (gcore_command): Initialize note_sec to NULL.
14635 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14637 * signals.c (target_signal_to_name): Rewrite. Only use
14638 signals[].name when in bounds and non-NULL.
14640 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14642 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14643 * signals.c (target_signal_to_name): Verify that SIG is within the
14644 bounds of the signals array.
14646 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14648 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14650 2002-01-13 Keith Seitz <keiths@redhat.com>
14652 * stack.c (print_frame_info_base): Print the frame's pc
14653 only if when print_frame_info_listing_hook is not defined.
14655 2002-01-13 Keith Seitz <keiths@redhat.com>
14657 * varobj.c (varobj_set_value): Make sure that there were no
14658 errors evaluating the object before attempting to set its
14660 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14661 so this offset adjustment is no longer necessary.
14662 (create_child): Don't set the error flag if the child is
14663 a CPLUS_FAKE_CHILD.
14664 (value_of_child): If value_fetch_lazy fails, return NULL
14665 so that callers will be notified that an error occurred.
14666 (c_value_of_variable): Delay check of variable's validity
14667 until later. We actually want all structs and unions to have
14669 Do not return "???" for variables which could not be evaluated.
14670 This error condition must be returned to the caller so that it
14671 can get the error condition from gdb.
14672 (cplus_name_of_child): Adjust index for vptr before figuring
14673 out the name of the child.
14674 (cplus_value_of_child): If a child's (real) parent is not valid,
14675 don't even bother trying to give a value for it. Just return
14676 an error. Change all instances in this function.
14677 (cplus_type_of_child): If our parent is one of the "fake"
14678 parents, we need to get at the type of the real parent, and
14679 derive the child's true type using this information.
14681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14683 From 2002-01-09 John Marshall <johnm@falch.net>:
14684 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14685 sources.redhat.com, and tweak some related URLs which had
14686 suffered from linkrot.
14688 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14691 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14692 structures passed in registers.
14694 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14696 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14697 white space which prevented compilation. Reported by DSK
14698 <dsk@student.unsw.edu.au>.
14700 2002-01-11 Michael Snyder <msnyder@redhat.com>
14702 * symfile.c (build_section_addr_info_from_section_tab):
14703 Use bfd access method instead of manipulating bfd directly.
14704 (syms_from_objfile): Ditto.
14705 (simple_overlay_update_1): Ditto.
14706 (simple_overlay_update): Ditto.
14707 (generic_load): Ditto.
14708 (overlay_unmapped_address): FIXME comment, bfd access methods.
14709 (sections_overlap): FIXME comment, bfd access methods.
14710 (pc_in_mapped_range): FIXME comment, bfd access methods.
14711 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14712 (section_is_mapped): FIXME comment, bfd access methods.
14713 (section_is_overlay): FIXME comment, bfd access methods.
14715 * symfile.c (generic_load): Whitespace and long line cleanups.
14716 Remove duplicate variable, change several local variables to
14717 more appropriate data types.
14718 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14720 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14722 From Peter Schauer:
14723 * language.c (longest_local_hex_string_custom): Use phex_nz to
14724 convert NUM to a hex string.
14726 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14728 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14730 Update Copyright year.
14732 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14734 * language.c (longest_raw_hex_string): Delete unused function.
14736 2002-01-11 Petr Sorfa <petrs@caldera.com>
14738 * MAINTAINERS (write-after-approval): Add myself.
14739 * dwarf2read.c (read_tag_string_type): Handling of
14741 (read_tag_string_type): FORTRAN fix to prevent propagation of
14743 (set_cu_language): Handling of DW_LANG_Fortran95
14745 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14747 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14748 GETPID(inferior_ptid).
14749 (store_inferior_registers): Likewise.
14751 2002-01-10 Jason Merrill <jason@redhat.com>
14753 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14756 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14758 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14759 and bfd/elf32-sh-nbsd.c.
14761 2002-01-10 Michael Snyder <msnyder@redhat.com>
14763 * NEWS: Mention --pid and corefile/proc-id behavior change.
14765 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14766 * gcore.c: Include cli/cli-decode.h instead of command.h.
14768 * main.c (captured_main): Add new command line option "--pid".
14769 If the second command line argument (following the symbol-file)
14770 begins with a digit, try to attach to it before trying to open
14772 (print_gdb_help): Document the "--pid" argument.
14774 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14776 * completer.c (command_completer): New function.
14778 * completer.h <command_completer>: Add prototype.
14780 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14781 completer for the "help" command.
14783 2002-01-09 Jason Merrill <jason@redhat.com>
14785 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14787 2002-01-09 Michael Snyder <msnyder@redhat.com>
14789 * i386-linux-nat.c (fill_fpxregset): Make global.
14790 (store_fpxregset): Ditto.
14792 * gregset.h (gdb_fpxregset_t): Define.
14793 (supply_fpxregset): Prototype.
14794 (fill_fpxregset): Prototype.
14796 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14798 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14800 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14801 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14802 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14804 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14806 * MAINTAINERS: Update target maintainer rules so that any
14807 Maintainer can approve a tested patch for a maintenance-only
14810 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14812 * MAINTAINERS (write-after-approval): Add myself.
14814 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14817 2002-01-08 Michael Snyder <msnyder@redhat.com>
14819 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14820 real name of the executable, rather than the /proc name.
14822 2002-01-03 Michael Snyder <msnyder@redhat.com>
14824 Implement a "generate-core-file" command in gdb, save target state.
14825 * gcore.c: New file. Implement new command 'generate-core-file'.
14826 Save a corefile image of the current state of the inferior.
14827 * linux-proc.c: Add linux-specific code for saving corefiles.
14828 * target.h (struct target_ops): Add new target vectors for saving
14829 corefiles; to_find_memory_regions and to_make_corefile_notes.
14830 (target_find_memory_regions): New macro.
14831 (target_make_corefile_notes): New macro.
14832 * target.c (update_current_target): Inherit new target methods.
14833 (dummy_find_memory_regions): New place-holder method.
14834 (dummy_make_corefile_notes): New place-holder method.
14835 (init_dummy_target): Initialize new dummy target vectors.
14836 * exec.c (exec_set_find_memory_regions): New function.
14837 Allow the exec_ops vector for memory regions to be taken over.
14838 (exec_make_note_section): New function, target vector method.
14839 * defs.h (exec_set_find_memory_regions): Export prototype.
14840 * procfs.c (proc_find_memory_regions): New function, corefile method.
14841 (procfs_make_note_section): New function, corefile method.
14842 (init_procfs_ops): Set new target vector pointers.
14843 (find_memory_regions_callback): New function.
14844 (procfs_do_thread_registers): New function.
14845 (procfs_corefile_thread_callback): New function.
14846 * sol-thread.c (sol_find_memory_regions): New function.
14847 (sol_make_note_section): New function.
14848 (init_sol_thread_ops): Initialize new target vectors.
14849 * inftarg.c (inftarg_set_find_memory_regions): New function.
14850 Allow to_find_memory_regions vector to be taken over.
14851 (inftarg_set_make_corefile_notes): New function.
14852 Allow to_make_corefile_notes vector to be taken over.
14853 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14854 interface layer if not target_has_execution (may be a corefile).
14855 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14856 * config/sparc/sun4sol2.mh: Ditto.
14857 * config/alpha/alpha-linux.mh: Ditto.
14858 * config/arm/linux.mh: Ditto.
14859 * config/i386/x86-64linux.mh: Ditto.
14860 * config/ia64/linux.mh: Ditto.
14861 * config/m68k/linux.mh: Ditto.
14862 * config/mips/linux.mh: Ditto.
14863 * config/powerpc/linux.mh: Ditto.
14864 * config/sparc/linux.mh: Ditto.
14866 2002-01-07 Michael Snyder <msnyder@redhat.com>
14868 * arm-linux-nat.c: Remove references to regcache.c internal data
14869 (registers[] and register_valid[]).
14871 2002-01-07 Michael Snyder <msnyder@redhat.com>
14873 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14874 so that attaching to a pid will automatically read the process's
14875 symbol file and shlibs.
14876 * Makefile.in: Add rule for linux-proc.o.
14877 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14878 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14879 * config/arm/linux.mh: Ditto.
14880 * config/i386/linux.mh: Ditto.
14881 * config/i386/x86-64linux.mh: Ditto.
14882 * config/ia64/linux.mh: Ditto.
14883 * config/m68k/linux.mh: Ditto.
14884 * config/mips/linux.mh: Ditto.
14885 * config/powerpc/linux.mh: Ditto.
14886 * config/sparc/linux.mh: Ditto.
14888 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14890 * win32-nat.c: Add i386-tdep.h dependency.
14892 2002-01-07 Michael Snyder <msnyder@redhat.com>
14894 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14895 instead of bfd_get_arch_size. Don't bail out just because
14896 there's no exec_bfd.
14898 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14899 * p-valprint.c (pascal_object_print_value): Ditto.
14900 * somread.c (som_symtab_read): Ditto.
14901 * symfile.c (simple_free_overlay_region_table): Ditto.
14902 * valops.c (value_assign): Ditto.
14904 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14905 use tilde_expand and strerror for opening save-tracepoints file.
14907 * thread-db.c (thread_db_new_objfile): Indendation fix.
14909 * infptrace.c (GDB_MAX_ALLOCA): New define.
14910 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14911 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14912 can be overridden with whatever value is appropriate to the host).
14913 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14914 alloca to allocate potentially large buffer.
14915 * rs6000-nat.c (child_xfer_memory): Ditto.
14916 * symm-nat.c (child_xfer_memory): Ditto.
14917 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14919 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14921 From Nick Clifton <nickc@redhat.com>
14922 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14924 2002-01-07 Michael Snyder <msnyder@redhat.com>
14926 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14927 Don't use exec_bfd if it's NULL.
14929 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14931 * valops.c (value_arg_coerce): Fix formatting.
14933 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14935 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14936 * gnu-nat.c: Ditto.
14938 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14940 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14941 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14942 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14943 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14944 z8k-coff have not been multi-arched. Update z8k-coff build
14947 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14949 * MAINTAINERS: Mark a29k target as obsolete.
14950 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14951 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14953 * NEWS: Note that a29k targets are obsolete.
14954 * a29k-tdep.c: Mark as obsolete.
14955 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14956 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14957 a29k-*-vxworks* targets as obsolete.
14958 * remote-adapt.c: Obsolete.
14959 * remote-eb.c: Obsolete.
14960 * remote-mm.c: Obsolete.
14961 * remote-udi.c: Obsolete.
14962 * config/a29k/a29k-udi.mt: Obsolete.
14963 * config/a29k/a29k.mt: Obsolete.
14964 * config/a29k/tm-a29k.h: Obsolete.
14965 * config/a29k/tm-vx29k.h: Obsolete.
14966 * config/a29k/vx29k.mt: Obsolete.
14968 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14970 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14971 with BFD_ENDIAN_BIG.
14973 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14975 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14976 * configure, config.in: Re-generate.
14977 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14978 * defs.h: Do not include <endian.h>.
14980 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14982 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14983 * config.in: Regenerate.
14984 * configure.in: Update copyright years.
14985 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14986 * configure: Regenerate.
14987 * i386bsd-nat.c: Update copyright years.
14988 (fill_gregset): Use regcache_collect.
14989 (fetch_inferior_registers): Only fetch integer registers
14990 if requested to do so. Add support for XMM registers
14991 using PT_GETXMMREGS.
14992 (store_inferior_registers): Only store integer registers
14993 if requested to do so. Add support for XMM registers
14994 using PT_SETXMMREGS.
14995 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14996 (store_inferior_registers): Remove.
14997 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14998 (fetch_elfcore_registers): New function.
14999 (i386nbsd_elfcore_fns): New.
15000 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15001 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15003 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15004 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15005 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15006 * config/i386/tm-nbsd.h: Update copyright years.
15007 (HAVE_SSE_REGS): Define.
15008 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15009 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15010 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15011 (SIGCONTEXT_PC_OFFSET): Remove.
15012 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15014 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15016 * configure.tgt: Remove powerpc-*-macos* target.
15017 * config/m68k/xm-mpw.h: Delete file.
15018 * config/xm-mpw.h: Delete file.
15019 * ser-mac.c: Delete file.
15020 * mpw-make.sed: Delete file.
15021 * mpw-config.in: Delete file.
15022 * mac-xdep.c: Delete file.
15023 * mac-gdb.r: Delete file.
15024 * mac-defs.h: Delete file.
15025 * mac-nat.c: Delete file.
15026 * config/powerpc/macos.mh: Delete file.
15027 * config/powerpc/macos.mt: Delete file.
15028 * config/powerpc/nm-macos.h: Delete file.
15029 * config/powerpc/tm-macos.h: Delete file.
15030 * source.c (openp, open_source_file): Remove obsolete code.
15031 * top.c (gdb_readline): Ditto.
15032 * utils.c (query): Ditto.
15033 * event-top.c (display_gdb_prompt): Ditto.
15034 * Makefile.in (ser-mac.o): Delete obsolete target.
15037 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15039 * defs.h (BIG_ENDIAN): Delete macro definition.
15040 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15041 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15042 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15043 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15044 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15045 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15046 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15047 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15048 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15049 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15050 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15051 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15052 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15053 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15054 * gdbarch.c: Re-generate.
15056 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15058 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15061 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15063 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15065 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15067 * value.h (value_ptr): Delete typedef.
15069 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15071 * i386nbsd-nat.c: Update copyright years.
15072 Include i386-tdep.h.
15074 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15076 * stabsread.c: Update copyright years.
15078 From Debashis Mahata <debashis.mahata@wipro.com>:
15079 (read_struct_fields): Deal with Sun C compiler erroneous stab
15080 output for structs and unions.
15083 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15085 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15088 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15090 * cp-abi.c: Fix whitespace.
15091 (baseclass_offset): New wrapper function.
15092 * cp-abi.h (baseclass_offset): Add prototype.
15093 (struct cp_abi_ops): Add baseclass_offset pointer.
15095 * valops.c (vb_match): Move to...
15096 * gnu-v2-abi.c (vb_match): here.
15097 * valops.c (baseclass_offset): Move to...
15098 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15100 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15102 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15103 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15104 * hpacc-abi.c (init_hpacc_ops): Likewise.
15106 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15108 * valops.c (find_overload_match): Accept obj as a
15109 reference parameter. Update it before returning.
15110 * value.h (find_overload_match): Update prototype.
15111 * eval.c (evaluate_subexp_standard): Pass object to
15112 find_overload_match by reference.
15114 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15116 * valarith.c: Replace value_ptr with struct value pointer. Remove
15117 register attribute from value declarations.
15120 * scm-lang.c (scm_lookup_name): Ditto.
15122 2002-01-03 Michael Snyder <msnyder@redhat.com>
15124 Abstract the functionality of iterating over mapped memory
15125 regions into a general purpose iterator function.
15126 * procfs.c (iterate_over_mappings): New function, general purpose
15127 iterator for memory sections.
15128 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15129 (solib_mappings_callback): New function, callback for above.
15130 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15131 (info_mappings_callback): New function, callback for above.
15133 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15135 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15137 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15138 * i386-tdep.c: Include "elf-bfd.h".
15139 (process_note_abi_tag_sections): New function.
15140 (i386_gdbarch_init): Add code to recognize various OS/ABI
15143 * maint.c (_initialize_maint_cmds): Add missing \ in
15146 For older changes see ChangeLog-2001
15152 version-control: never