1 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
4 declaration for `struct re_pattern_buffer' instead.
5 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
7 2003-01-03 J. Brobecker <brobecker@gnat.com>
9 * mdebugread.c (parse_symbol): Count until the stEnd matching
12 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14 * configure.in: Remove --with-cpu option.
15 subscripts. Remove evil changequotes here.
16 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
17 * config.in, configure: Regenerated.
19 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
20 * configure.in: Cleanup section that sources GDB and BFD configure
21 subscripts. Remove evil changequotes here.
22 * config.in, configure: Regenerated.
24 2003-01-02 Andrew Cagney <ac131313@redhat.com>
26 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
27 frame accessor methods.
28 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
29 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
30 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
31 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
32 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
33 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
36 2003-01-02 Mark Kettenis <kettenis@gnu.org>
38 * configure.in: Remove UI_OUT configuration code.
39 * ada-lang.c: Update assuming UI_OUT is always true.
40 * Makefile.in (UIOUT_CFLAGS): Remove.
41 * configure: Regenerated.
42 * TODO: Remove blurb about elimination of -DUI_OUT.
44 * configure.in: Move code that provides the --enable-gdbcli,
45 --enable-gdbmi options right before the code that handles the
46 --enable-tui option. Polish a bit.
47 * configure: Regenerated.
49 * configure.in: Rewrite check for GNU regex and the
50 --without-included regex option, and move it into the "Checks for
51 library functions" section. This makes us use the system regex
52 again by default on systems with version 2 of the GNU C library.
53 This was apparently broken.
54 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
55 * acconfig.h (USE_INCLUDED_REGEX): Remove.
56 * config.in, configure: Regenerated.
58 * configure.in: Move code that provides the --enable-tui option
59 before the "Checks for libraries" section. Polish the code
60 somewhat and set need_curses to yes if we build the TUI. Rewrite
61 code that looks for a library providing termcap functionality to
62 match more closely what's done in the Readline library, and move
63 it into to the "Checks for libraries" section.
64 * configure: Regenerated.
65 * Makefile.in (TERMCAP): Remove variable.
66 * config/i386/go32.mh (TERMCAP): Remove variable.
68 2003-01-02 Andrew Cagney <ac131313@redhat.com>
70 * MAINTAINERS: Mention gdb_mbuild.sh.
71 * gdb_mbuild.sh: Rewrite.
73 2003-01-02 Mark Kettenis <kettenis@gnu.org>
75 * configure.in: Fix typo in last change.
76 * config.in, configure: Regenerated.
78 2003-01-02 Andrew Cagney <ac131313@redhat.com>
80 * valarith.c (value_binop): Delete obsolete code and comments.
81 * configure.host: Ditto.
82 * buildsym.h (make_blockvector): Ditto.
83 * buildsym.c (make_blockvector): Ditto.
84 * defs.h (enum language): Ditto.
85 (chill_demangle): Ditto.
86 * elfread.c (elf_symtab_read): Ditto.
87 * dwarfread.c (CHILL_PRODUCER): Ditto.
88 (set_cu_language): Ditto.
89 (handle_producer): Ditto.
90 * expprint.c (print_subexp): Ditto.
91 * gdbtypes.c (chill_varying_type): Ditto.
92 * gdbtypes.h (builtin_type_chill_bool): Ditto.
93 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
94 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
95 (chill_varying_type): Ditto.
96 * language.h (_LANG_chill): Ditto.
97 * language.c (binop_result_type, integral_type): Ditto.
98 (character_type, string_type, structured_type): Ditto.
99 (lang_bool_type, binop_type_check): Ditto.
100 * stabsread.h (os9k_stabs): Ditto.
101 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
102 (define_symbol, read_type, read_struct_fields): Ditto.
103 (read_array_type, read_enum_type, read_huge_number): Ditto.
104 (read_range_type, start_stabs): Ditto.
105 * symfile.c (init_filename_language_table): Ditto.
106 (add_psymbol_with_dem_name_to_list): Ditto.
107 * symtab.c (symbol_init_language_specific): Ditto.
108 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
109 * symtab.h (struct general_symbol_info): Ditto.
110 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
111 * typeprint.c (typedef_print): Ditto.
112 * utils.c (fprintf_symbol_filtered): Ditto.
113 * valops.c (value_cast, search_struct_field, value_slice): Delete
115 (varying_to_slice): Delete function.
116 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
117 (varying_to_slice): Delete declaration.
118 * MAINTAINERS: Update.
120 2003-01-02 Mark Kettenis <kettenis@gnu.org>
122 * configure.in: Reorganize "Checks for library functions section"
123 a bit. Remove check for `btowc' and `isascii' functions.
124 * configure: Regenerated.
126 * acconfig.h (_MSE_INT_H): Remove.
127 * configure.in: Create "Checks for header files" section, and move
128 appropriate tests there. Don't check for objlist.h, wchar.h,
129 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
130 misdetection fix. Also add "Checks for types", "Checks for
131 compiler characteristics" and "Checks for library functions"
133 * config.in, configure: Regenerated.
135 * configure.in: Create "Checks for programs" section, and move
136 appropriate tests there.
138 2003-01-01 Mark Kettenis <kettenis@gnu.org>
140 * configure.in: Create "Checks for libraries" section, and move
141 appropriate tests there. Cleanup check for wctype in libw. Use
142 AC_SEARCH_LIBS to see whether we need libsocket.
143 * configure: Regenerated.
145 2002-12-31 Mark Kettenis <kettenis@gnu.org>
147 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
148 * config.in, configure: Regenerated.
150 2002-12-31 Mark Kettenis <kettenis@gnu.org>
152 * gdb_dirent.h: Cleanup and update code to match the example in
154 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
155 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
156 * configure: Regenerated.
158 2002-12-30 Adam Fedor <fedor@gnu.org>
160 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
161 (yylex): Initialize c to avoid uninitialized warning.
163 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
165 * doc/fdl.texi: Revert the last change.
167 2002-12-29 Mark Kettenis <kettenis@gnu.org>
169 * tracepoint.c (ISATTY): Removed.
171 2002-12-26 J. Brobecker <brobecker@gnat.com>
173 Continuing work to convert the hppa targets to multiarch partil.
175 * hppa-tdep.c: Add some missing forward declarations.
176 (frameless_function_invocation): Prefix the function name
177 by "hppa_" to avoid polluting the namespace. Update all calls
178 to use the new function name.
179 (saved_pc_after_call): Ditto.
180 (init_extra_frame_info): Ditto.
181 (frame_chain): Ditto.
182 (push_dummy_frame): Ditto.
183 (target_read_pc): Ditto.
184 (target_write_pc): Ditto.
185 (in_solib_call_trampoline): Ditto.
186 (in_solib_return_trampoline): Ditto.
187 (skip_trampoline_code): Ditto.
188 (hppa_read_fp): New function, renamed from target_read_fp.
189 (hppa_target_read_fp): New function, using hppa_read_fp.
190 This function conforms to the function profile for the
191 READ_FP gdbarch method.
192 (hppa_extract_struct_value_address): New function, extracted
193 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
195 (hppa_frame_num_args): New function.
196 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
198 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
199 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
200 for the switch to multiarch partial.
201 Update some of the macros definitions to match some changes
202 described above in the name of the function they are calling.
203 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
204 not be straightforward to convert. Do now wrap it inside
205 "#if !... #endif" to remember that this macro has still not
207 (FIX_CALL_DUMMY): Likewise.
209 2002-12-26 J. Brobecker <brobecker@gnat.com>
211 Continuing work to convert the hppa targets to multiarch partial.
213 * hppa-tdep.c (hppa_register_raw_size): New function replacing
214 the body of macro REGISTER_RAW_SIZE.
215 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
216 config/pa/tm-hppah.h. These functions will be used to initialize
217 the gdbarch structure.
218 (hppa_hpux_pc_in_sigtramp): New function.
219 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
220 (hppa_hpux_frame_base_before_sigtramp): New function.
221 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
222 Add gdbcore.h #include.
223 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
224 of this gdbarch-eligible macro to a call to the new associated
226 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
227 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
228 into a call to the new associated function.
229 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
230 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
231 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
233 2002-12-24 David Carlton <carlton@math.stanford.edu>
235 * config/sparc/tm-sparc.h: Delete duplicate definition of
236 DEPRECATED_PC_IN_CALL_DUMMY.
238 2002-12-24 Kevin Buettner <kevinb@redhat.com>
240 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
242 * configure.tgt: Recognize mips64*-*-linux*.
243 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
244 (supply_32_bit_reg): New function.
245 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
246 (fill_gregset): Use regcache_collect() instead of
247 deprecated_registers[].
248 (register_addr): Change name to mips_linux_register_addr().
249 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
250 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
251 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
252 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
253 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
254 (MIPS64_LINUX_JB_PC): New defines.
255 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
256 (mips64_elf_fpregset_t): New typedefs.
257 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
258 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
259 (mips64_linux_register_addr, set_mips_linux_register_addr)
260 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
261 (init_register_addr_data)
263 (fetch_core_registers): Add support for core file formats with 64-bit
265 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
266 (register_addr_data): New static global variable.
267 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
268 gdbarch_register_osabi() for each MIPS machine.
269 * config/mips/linux64.mt: New file.
270 * config/mips/tm-linux64.h: New file.
272 2002-12-23 Adam Fedor <fedor@gnu.org>
274 * maint.c (maintenance_demangle): Add switch to demangle
275 ObjC language symbols as well.
277 2002-12-23 Adam Fedor <fedor@gnu.org>
279 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
280 last argument from complaint function call.
282 2002-12-23 Kevin Buettner <kevinb@redhat.com>
284 * exec.c (print_section_info): Add FIXME comments regarding format
287 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
289 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
290 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
292 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
294 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
296 2002-12-23 David Carlton <carlton@math.stanford.edu>
298 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
299 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
300 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
301 information associated to a minsym, not lookup_symbol.
303 2002-12-21 Mark Kettenis <kettenis@gnu.org>
305 * x86-64-tdep.h (x86_64_init_abi): New prototype.
306 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
307 (x86_64_init_abi): Make non-static. Set number of pseudo
309 (x86_64_gdbarch_init): Remove function.
310 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
311 Remove code dealing with dissambly.
312 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
313 (_initialize_x86_64_linux_tdep): New function.
314 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
317 2002-12-14 Mark Kettenis <kettenis@gnu.org>
319 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
320 (struct gdb_osabi_handler): Remove member `arch'. Add member
322 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
323 construct a `struct bfd_arch_info' and store it in the `struct
324 gdb_osabi_handler' that is created.
325 (gdbarch_init_osabi): Check for compatibility based on machine
326 type and architecture.
327 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
329 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
330 second argument in call to gdbarch_register_osabi.
331 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
332 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
333 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
334 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
335 * arm-tdep.c (_initialize_arm_tdep): Likewise.
336 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
337 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
338 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
339 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
340 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
341 * i386-tdep.c (_initialize_i386_tdep): Likewise.
342 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
343 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
344 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
345 _initialize_i386bsd_tdep and updated likewise.
346 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
347 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
348 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
349 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
350 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
351 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
352 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
353 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
354 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
355 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
357 2002-12-20 Kevin Buettner <kevinb@redhat.com>
359 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
360 DT_MIPS_RLD_MAP case for 64-bit targets.
362 2002-12-20 Kevin Buettner <kevinb@redhat.com>
364 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
365 ``temp_saved_regs'', not the pointer or other storage contiguous
368 2002-12-20 Kevin Buettner <kevinb@redhat.com>
370 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
371 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
372 (mips_linux_get_longjmp_target): Delete declarations.
373 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
374 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
375 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
376 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
377 (mips_linux_get_longjmp_target)
378 (mips_linux_svr4_fetch_link_map_offsets): Make static.
379 (mips_linux_init_abi): New function.
380 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
382 2002-12-19 Keith Seitz <keiths@redhat.com>
384 patch committed by Elena Zannoni <ezannoni@redhat.com>
385 * thread.c (do_captured_list_thread_ids): Call prune_threads and
386 target_find_new_threads. Fix for PR mi/669.
388 2002-12-19 David Carlton <carlton@math.stanford.edu>
390 * linespec.c (decode_line_1): Move code into decode_all_digits.
391 (decode_all_digits): New function.
393 2002-12-19 Kevin Buettner <kevinb@redhat.com>
395 * exec.c (print_section_info): Select a format string to use with
396 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
398 2002-12-18 Andrew Cagney <ac131313@redhat.com>
400 * frame.c (deprecated_update_current_frame_pc_hack): Replace
401 deprecated_update_current_frame_pc_hack.
402 (deprecated_update_frame_base_hack): New function.
403 * frame.h (deprecated_update_frame_pc_hack): Replace
404 (deprecated_update_frame_base_hack): Declare.
405 * infrun.c (normal_stop): Update.
407 2002-12-18 Andrew Cagney <ac131313@redhat.com>
409 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
410 frame_extra_info_zalloc.
411 (rs6000_frame_args_address): Use get_frame_extra_info.
412 (frame_get_saved_regs): Use get_frame_saved_regs.
413 (frame_initial_stack_address): Use get_frame_saved_regs and
414 get_frame_extra_info.
415 (frame_initial_stack_address): Use get_frame_extra_info.
417 2002-12-17 Kevin Buettner <kevinb@redhat.com>
419 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
421 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
422 checks for r3900_regnames[].
424 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
426 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
428 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
430 2002-12-17 David Carlton <carlton@math.stanford.edu>
432 * symtab.c (lookup_partial_symbol): Don't search past the end of
435 2002-12-17 Andrew Cagney <ac131313@redhat.com>
437 * stack.c (frame_info): Use get_frame_saved_regs.
438 * breakpoint.c (until_break_command): Use get_frame_pc.
440 2002-12-16 Kevin Buettner <kevinb@redhat.com>
442 * buildsym.c (block_end_complaint, anon_block_end_complaint)
443 (innerblock_complaint, innerblock_anon_complaint)
444 (blockvector_complaint): Delete deprecated complaint structs.
445 (finish_block, make_blockvector, end_symtab): Replace calls
446 to complain() with calls to complaint().
447 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
448 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
449 (unexpected_type_complaint, bad_sclass_complaint)
450 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
451 Delete deprecated complaint structs.
452 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
453 Replace calls to complain() with calls to complaint().
454 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
455 (unknown_symtype_complaint, unknown_symchar_complaint)
456 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
457 (lbrac_mismatch_complaint, repeated_header_complaint)
458 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
459 Delete deprecated complaint structs.
460 (unknown_symtype_complaint, lbrac_mismatch_complaint)
461 (repeated_header_complaint)
462 (function_outside_compiliation_unit_complaint): New functions.
463 (add_old_header_file, find_corresponding_bincl_psymtab)
464 (set_namestring, find_stab_function_addr, read_dbx_symtab)
465 (process_one_symbol): Replace calls to complain() with, possibly
466 indirect, calls to complaint().
467 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
468 (unknown_attribute_form, unknown_attribute_length)
469 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
470 (const_ignored, botched_modified_type, op_deref2, op_deref4)
471 (basereg_not_handled, dup_user_type_allocation)
472 (dup_user_type_definition, missing_tag, bad_array_element_type)
473 (subscript_data_items, unhandled_array_subscript_format)
474 (unknown_array_subscript_format, not_row_major)
475 (missing_at_name): Delete deprecated complaint structs.
476 (bad_die_ref_complaint, unknown_attribute_form_complaint)
477 (dup_user_type_definition_complaint)
478 (bad_array_element_type_complaint): New functions.
479 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
480 (decode_subscript_data_item, dwarf_read_array_type)
481 (read_tag_string_type, read_subroutine_type, read_func_scope)
482 (locval, scan_partial_symbols, decode_modified_type)
483 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
484 (attribute_size): Replace calls to complain() with, possibly
485 indirect, calls to complaint().
486 * elfread.c (section_info_complaint, section_info_dup_complaint)
487 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
488 Delete deprecated complaint structs.
489 (elf_symtab_read, elfstab_offset_sections): Replace calls to
490 complain() with calls to complaint().
491 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
493 (stub_noname_complaint): New function.
494 (check_typedef, add_mangled_type): Replace calls to complain()
495 with calls to complaint().
496 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
497 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
498 (hpread_unhandled_type_complaint, hpread_struct_complaint)
499 (hpread_array_complaint, hpread_type_lookup_complaint)
500 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
501 (hpread_unhandled_common_complaint)
502 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
503 struct definitions and declarations.
504 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
505 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
506 Replace calls to complain() with, possibly indirect, calls to
508 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
510 * mdebugread.c (bad_file_number_complaint, index_complaint)
511 (aux_index_complaint, block_index_complaint)
512 (unknown_ext_complaint, unknown_sym_complaint)
513 (unknown_st_complaint, block_overflow_complaint)
514 (basic_type_complaint, unknown_type_qual_complaint)
515 (array_index_type_complaint, bad_tag_guess_complaint)
516 (block_member_complaint, stEnd_complaint)
517 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
518 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
519 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
520 (bad_continued_complaint, bad_rfd_entry_complaint)
521 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
522 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
523 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
524 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
526 (index_complaint, unknown_ext_complaint, basic_type_complaint)
527 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
528 (unexpected_type_code_complaint)
529 (function_outside_compilation_unit_complaint): New functions.
530 (parse_symbol, parse_type, upgrade_type, parse_procedure)
531 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
532 Replace calls to complain() with, possibly indirect calls to
534 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
535 Delete deprecated complaint structs.
536 (lookup__objc_class, lookup_child_selector): Replace complain()
538 * remote-vx.c (cant_contact_target): Delete deprecated complaint
540 (vx_lookup_symbol): Replace complain() with complaint().
541 * stabsread.c (invalid_cpp_abbrev_complaint)
542 (invalid_cpp_type_complaint, member_fn_complaint)
543 (const_vol_complaint, error_type_complaint)
544 (invalid_member_complaint, range_type_base_complaint)
545 (reg_value_complaint, vtbl_notfound_complaint)
546 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
547 (unresolved_sym_chain_complaint, stabs_general_complaint)
548 (lrs_general_complaint, multiply_defined_struct): Delete
549 deprecated complaint structs.
550 (invalid_cpp_abbrev_complaint, ref_value_complaint)
551 (stabs_general_complaint, lrs_general_complaint)
552 (msg_unknown_complaint): New functions.
553 (dbx_lookup_type, read_cfront_baseclasses)
554 (read_cfront_member_functions, resolve_symbol_reference)
555 (define_symbol, resolve_live_range, add_live_range, read_type)
556 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
557 (read_one_struct_field, read_baseclasses, read_tilde_fields)
558 (read_cfront_static_fields, attach_fields_to_type)
559 (complain_about_struct_wipeout, read_range_type)
560 (common_block_start, common_block_end, cleanup_undefined_types)
561 (scan_file_globals): Replace complain() with complaint().
562 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
563 Delete deprecated complaint struct declarations.
564 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
565 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
566 (bf_not_found_complaint, ef_complaint, eb_complaint)
567 (function_outside_compilation_unit_complaint): New functions.
568 (record_include_begin, record_include_end, enter_line_range)
569 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
570 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
571 complain() with complaint().
573 2002-12-16 Andrew Cagney <ac131313@redhat.com>
575 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
576 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
577 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
578 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
579 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
580 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
581 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
582 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
583 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
584 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
585 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
586 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
587 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
588 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
589 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
590 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
591 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
592 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
593 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
594 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
595 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
596 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
597 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
598 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
599 * config/m88k/xm-dgux.h: Delete.
600 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
601 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
602 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
603 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
604 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
605 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
606 * ch-valprint.c: Delete.
608 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
610 * infrun.c (handle_inferior_event): Rearrange code to resume if
611 no catchpoint triggers for an event.
613 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
615 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
616 and TARGET_WAITKIND_VFORKED cases.
618 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
620 * infrun.c (handle_inferior_event): Assume that catchpoints
621 are not affected by DECR_PC_AFTER_BREAK.
623 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
625 * target.c (update_current_target): Don't inherit DONT_USE.
626 * target.h (struct target_ops): Remove DONT_USE.
627 (target_next): Remove macro.
629 2002-12-15 Mark Kettenis <kettenis@gnu.org>
631 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
633 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
635 * arm-tdep.c (convert_from_extended): New argument to hold the
636 type of floating point result we want to convert to. Make input
637 argument const. Fix all callers.
638 (convert_to_extended): Similarly.
639 (arm_extract_return_value): Now takes a regcache argument. Change
640 code to use regcache accessor functions. Correctly extract
641 smaller-than-word results on big-endian machines.
642 (arm_store_return_value): Now takes a regcache argument. Change
643 code to use regcache accessor functions. Correctly zero/sign extend
644 smaller than word results before storing into r0.
645 (arm_gdbarch_init): Register new-style extract_return_value and
646 store_return_value functions.
648 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
650 * thread-db.c (thread_from_lwp): Uniquify error msg.
651 (lwp_from_thread): Ditto.
652 (check_event): Ditto.
653 (find_new_threads_callback): Ditto.
654 (thread_db_pid_to_str): Ditto.
656 2002-12-13 Andrew Cagney <ac131313@redhat.com>
658 * frame.h (get_frame_saved_regs): Declare.
659 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
661 * frame.c (get_frame_saved_regs): New function.
662 (frame_saved_regs_zalloc): Return the allocated saved_regs.
664 2002-12-13 Andrew Cagney <ac131313@redhat.com>
666 * frame.c (deprecated_update_current_frame_pc_hack): New
668 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
669 * infrun.c (normal_stop): Use said function instead of directly
670 modifying the frame's PC.
672 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
674 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
676 2002-12-13 Kevin Buettner <kevinb@redhat.com>
678 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
679 config/mips/tm-irix6.h (NUM_REGS): Delete.
680 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
681 (temp_saved_regs): Declare as a pointer rather than an array.
682 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
683 that ``temp_saved_regs'' has storage allocated to it and that
684 it's the correct size.
686 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
688 * defs.h (init_last_source_visited): New prototype.
690 * source.c (add_path): New function that adds to a specified path.
691 (mod_path): Change to call add_path.
692 (init_last_source_visited): New function to allow interfaces to
693 initialize static variable: last_source_visited. Part of fix
695 * Makefile.in: Add support for mi/mi-cmd-env.c.
697 2002-12-13 Andrew Cagney <ac131313@redhat.com>
699 * frame.h (frame_id_unwind): Declare.
700 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
702 (frame_id_unwind_ftype): Declare.
703 * frame.c (frame_id_unwind): New function.
704 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
705 (create_new_frame, get_prev_frame): Pass id_unwind to
707 (frame_saved_regs_id_unwind): New function.
708 (frame_saved_regs_id_unwind): New function.
709 * dummy-frame.c (dummy_frame_id_unwind): New function.
710 (struct dummy_frame): Add field id.
711 (generic_push_dummy_frame): Initialize `id'.
712 * dummy-frame.h (dummy_frame_id_unwind): Declare.
714 2002-12-13 Andrew Cagney <ac131313@redhat.com>
716 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
717 pass that to set_momentary_breakpoint. Move comments to where they
719 * frame.h (set_current_frame): Delete declaration.
720 * frame.c (set_current_frame): Delete function.
722 2002-12-13 Andrew Cagney <ac131313@redhat.com>
724 * frame.c (frame_extra_info_zalloc): New function.
725 * frame.h (frame_extra_info_zalloc): Declare.
727 2002-12-13 Joel Brobecker <brobecker@gnat.com>
729 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
730 in the previous prototype change to set_momentary_breakpoint.
732 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
734 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
736 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
737 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
738 (stop_stepping): Remove outdated check for child vfork events.
740 2002-12-12 Andrew Cagney <ac131313@redhat.com>
742 * GDB 5.3 released from gdb_5_3-branch.
744 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
746 * corelow.c (init_core_ops): Delete references to to_require_attach
747 and to_require_detach.
748 * exec.c (init_exec_ops): Likewise.
749 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
750 hppa_require_detach directly.
751 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
752 * inftarg.c (child_detach): Remove.
753 (child_detach_from_process): Rename to child_detach, remove
755 (child_attach): Remove.
756 (child_attach_to_process): Rename to child_attach, remove after_fork
758 (init_child_ops): Delete references to to_require_attach
759 and to_require_detach.
760 * infttrace.c (hppa_require_attach): Update comment.
761 * target.c (cleanup_target, update_current_target)
762 (init_dummy_target, setup_target_debug): Delete references to
763 to_require_attach and to_require_detach.
764 (find_default_require_detach, find_default_require_attach)
765 (debug_to_require_attach, debug_to_require_detach): Remove
767 * target.h (struct target_ops): Remove to_require_attach
768 and to_require_detach.
769 (target_require_attach, target_require_detach): Delete macros.
770 (find_default_require_detach, find_default_require_attach): Delete
772 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
774 2002-12-11 Andrew Cagney <ac131313@redhat.com>
776 * frame.c (get_frame_extra_info): New function.
777 * frame.h (get_frame_extra_info): Declare.
779 2002-12-11 Andrew Cagney <ac131313@redhat.com>
781 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
782 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
783 with `struct frame_id'.
784 (set_longjmp_resume_breakpoint): Ditto.
785 * infrun.c (handle_inferior_event): Update.
786 * breakpoint.c (watch_command_1, until_break_command): Update.
787 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
788 (handle_inferior_event, step_over_function): Update.
789 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
790 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
791 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
792 * infcmd.c (finish_command, run_stack_dummy): Update.
794 2002-12-11 Kevin Buettner <kevinb@redhat.com>
796 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
797 (dwarf2_non_const_array_bound_ignored)
798 (dwarf2_missing_line_number_section)
799 (dwarf2_statement_list_fits_in_line_number_section)
800 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
801 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
802 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
803 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
804 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
805 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
806 (dwarf2_missing_member_fn_type_complaint)
807 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
808 (dwarf2_const_value_length_mismatch)
809 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
810 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
811 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
812 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
813 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
814 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
815 complaints using deprecated struct..
816 (dwarf2_non_const_array_bound_ignored_complaint)
817 (dwarf2_complex_location_expr_complaint)
818 (dwarf2_unsupported_at_frame_base_complaint)
819 (dwarf2_const_value_length_mismatch_complaint)
820 (dwarf2_macros_too_long_complaint)
821 (dwarf2_macro_malformed_definition_complaint)
822 (dwarf2_invalid_attrib_class_complaint): New functions.
823 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
824 (read_structure_scope, read_array_type, read_common_block)
825 (read_tag_pointer_type, read_base_type, read_partial_die)
826 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
827 (new_symbol, dwarf2_const_value, read_type_die)
828 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
829 (parse_macro_definition, dwarf_decode_macros): Replace calls to
830 complain() with, possibly indirect, calls to complaint().
832 2002-12-11 Andrew Cagney <cagney@redhat.com>
834 * frame.c (deprecated_get_frame_saved_regs): Rename
835 get_frame_saved_regs.
836 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
837 * sparc-tdep.c: Update.
838 * hppa-tdep.c: Update.
839 * h8500-tdep.c: Update.
841 2002-12-11 Kevin Buettner <kevinb@redhat.com>
843 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
844 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
845 ``char *'' for return and parameter types.
846 * gdbarch.h, gdbarch.c: Regenerate.
847 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
848 return type from ``char *'' to ``const char *''.
849 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
852 2002-12-11 Mark Kettenis <kettenis@gnu.org>
854 * i386-tdep.c: Include "dummy-frame.h".
855 (i386_frame_chain, i386_frame_saved_pc): Replace
856 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
857 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
859 2002-12-10 Andrew Cagney <cagney@redhat.com>
861 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
862 Change to a function with predicate.
863 * gdbarch.h, gdbarch.c: Re-generate.
864 * frame.c (get_prev_frame): Update. Test
865 DEPRECATED_INIT_FRAME_PC_P.
866 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
867 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
868 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
869 * alpha-tdep.c (alpha_gdbarch_init): Update.
870 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
871 * mips-tdep.c (mips_gdbarch_init): Update.
872 * i386-interix-tdep.c (i386_interix_init_abi): Update.
873 * arm-tdep.c: Update comments.
874 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
875 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
876 * frv-tdep.c (frv_gdbarch_init): Ditto.
877 * x86-64-tdep.c (x86_64_init_abi): Ditto.
878 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
879 * s390-tdep.c (s390_gdbarch_init): Ditto.
880 * v850-tdep.c (v850_gdbarch_init): Ditto.
881 * vax-tdep.c (vax_gdbarch_init): Ditto.
882 * sh-tdep.c (sh_gdbarch_init): Ditto.
883 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
887 * i386-tdep.c (i386_gdbarch_init): Ditto.
888 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
889 * cris-tdep.c (cris_gdbarch_init): Ditto.
890 * avr-tdep.c (avr_gdbarch_init): Ditto.
891 * arm-tdep.c (arm_gdbarch_init): Ditto.
892 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
893 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
895 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
897 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
899 * hppah-nat.c (saved_vfork_pid): Add.
900 (child_post_follow_vfork): Remove.
901 (child_follow_fork): New function.
902 (child_wait): Call detach_breakpoints after receiving the child vfork.
903 Call child_resume directly instead of going through resume ().
904 Make sure we have the exec before reporting the vfork.
905 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
906 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
907 (follow_fork): New function. Call target_follow_fork.
908 (follow_inferior_reset_breakpoints): New function broken out from
909 old follow_inferior_fork.
910 (resume): Remove hack to follow exec after vfork.
911 * inftarg.c (child_post_follow_vfork): Remove.
912 (child_follow_fork): New function.
913 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
914 * target.c (cleanup_target): Replace to_post_follow_vfork with
916 (update_current_target): Likewise.
917 (setup_target_debug): Likewise.
918 (debug_to_post_follow_vfork): Remove.
919 (debug_to_follow_fork): New function.
920 * target.h (struct target_ops): Replace to_post_folow_vfork with
922 (child_post_follow_vfork): Remove prototype.
923 (child_follow_fork): Add prototype.
924 (target_post_follow_vfork): Remove macro.
925 (target_follow_fork): Add macro.
927 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
929 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
930 (child_post_follow_vfork): Cancel pending exec event if we follow
932 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
933 events have been processed. Return a fake TARGET_WAITKIND_EXECD
934 event at the following wait call if necessary.
935 * infrun.c (follow_vfork): Don't follow_exec here.
936 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
937 case about HP/UX 10.20. Remove code pushed down to
938 hppah-nat.c:child_wait.
939 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
940 vfork_in_flight is set.
942 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
944 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
945 for the parent's fork event.
946 * infrun.c (handle_inferior_event): Only expect one fork event.
947 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
948 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
950 2002-12-10 Andrew Cagney <ac131313@redhat.com>
952 * PROBLEMS: Delete reference to PR gdb/725.
954 * MAINTAINERS (gdb.c++): Add David Carlton.
956 2002-12-09 David Carlton <carlton@math.stanford.edu>
958 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
959 * cli/cli-cmds.c: Ditto.
961 2002-12-09 Andrew Cagney <cagney@redhat.com>
963 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
964 function address in <>.
965 * gdbarch.c: Re-generate.
967 2002-12-09 David Carlton <carlton@math.stanford.edu>
969 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
971 2002-12-09 David Carlton <carlton@math.stanford.edu>
973 * linespec.c (symtab_from_filename): New function.
974 (decode_line_1): Move code into symtab_from_filename.
976 2002-12-09 Kevin Buettner <kevinb@redhat.com>
978 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
980 2002-12-07 Andrew Cagney <ac131313@redhat.com>
982 * f-valprint.c (info_common_command): Use get_frame_pc.
983 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
984 * ax-gdb.c (agent_command): Ditto.
985 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
986 (rs6000_pop_frame): Ditto.
987 (rs6000_frameless_function_invocation): Ditto.
988 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
989 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
990 * macroscope.c (default_macro_scope): Ditto.
991 * stack.c (print_frame_info_base): Ditto.
992 (print_frame, frame_info, print_frame_label_vars): Ditto.
993 (return_command, func_command, get_frame_language): Ditto.
994 * infcmd.c (finish_command): Ditto.
995 * dummy-frame.c (cached_find_dummy_frame): Ditto.
996 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
997 (break_at_finish_at_depth_command_1): Ditto.
998 (break_at_finish_command_1): Ditto.
999 (until_break_command, get_catch_sals): Ditto.
1000 * blockframe.c (func_frame_chain_valid): Ditto.
1001 (frameless_look_for_prologue): Ditto.
1002 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1004 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1006 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1007 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1009 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1011 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1013 * gdbarch.h, gdbarch.c: Re-generate.
1014 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1015 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1017 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1018 declaration to a function returning a CORE_ADDR.
1019 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1020 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1021 (init_frame_pc_default): Ditto.
1022 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1023 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1024 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1025 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1026 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1027 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1029 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1030 to init_frame_pc_noop.
1031 (i386_interix_init_frame_pc): Delete function.
1032 * z8k-tdep.c (init_frame_pc): Delete function.
1033 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1034 (INIT_FRAME_PC_FIRST): Ditto.
1035 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1036 (INIT_FRAME_PC_FIRST): Ditto.
1037 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1038 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1040 (INIT_FRAME_PC_FIRST): Convert to an expression.
1041 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1043 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1045 * blockframe.c: Use get_frame_base instead of directly accessing
1046 the `struct frame_info' member frame.
1047 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1048 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1050 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1052 * Makefile.in (readline_h): Define.
1053 (completer.o): Depend on readline_h.
1055 (event-top.o): Ditto.
1062 (tracepoint.o): Ditto.
1064 (cli-dump.o): Ditto.
1065 (tui-hooks.o): Ditto.
1068 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1070 More cleanup from import of readline 4.3.
1071 * completer.h (complete_line, readline_line_completion_function):
1073 (line_completion_function): Removed, not used outside of completer.c.
1074 * completer.c (readline_line_completion_function,
1075 complete_function, line_completion_function): Use const for first
1077 (line_completion_function): Make static.
1078 (filename_completer): filename_completion_function is now called
1079 rl_filename_completion_function
1080 * corelow.c: Include <readline/readline.h>.
1086 * top.c (init_main): No need to coerce
1087 readline_line_completion_function anymore.
1088 * cli/cli-dump.c: Include <readline/readline.h>.
1090 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1092 * stack.c (frame_info): Use get_prev_frame.
1093 * blockframe.c (frame_address_in_block): Ditto.
1094 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1095 (rs6000_frameless_function_invocation): Ditto.
1096 (rs6000_frame_saved_pc): Ditto.
1097 (rs6000_frame_chain): Ditto.
1098 * arch-utils.c (init_frame_pc_default): Ditto.
1100 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1102 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1103 Delete redundant definition.
1105 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1107 Import of readline 4.3:
1108 * cli/cli-cmds.c: Include readline/tilde.h.
1109 * cli/cli-setshow.c: Ditto.
1110 * defs.h: Don't declare tilde_expand anymore, since readline
1113 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1115 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1116 -Werror on this file.
1118 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1120 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1122 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1123 * gdbarch.c: Regenerate.
1125 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1127 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1128 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1129 provide a default value.
1130 * gdbarch.h, gdbarch.c: Regenerate.
1131 * frame.c (get_prev_frame): Update. Check
1132 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1133 * s390-tdep.c (s390_gdbarch_init): Update.
1134 * mips-tdep.c (mips_gdbarch_init): Update.
1135 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1136 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1137 * alpha-tdep.c (alpha_gdbarch_init): Update.
1139 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1141 * ia64-linux-nat.c: Include gdb_string.h.
1142 * alpha-nat.c: Ditto.
1143 * ppc-linux-nat.c: Ditto.
1144 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1145 Update dependencies.
1147 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1149 * gdbthread.h: Include "frame.h".
1150 (struct thread_info): Replace step_frame_address with
1152 * inferior.h: Include "frame.h".
1153 (step_frame_id): Replace external variable step_frame_address.
1154 * gdbthread.h (save_infrun_state): Replace step_frame_address
1155 parameter with step_frame_id parameter.
1156 (load_infrun_state): Ditto.
1157 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1158 * infcmd.c (step_frame_id, step_1, step_once): Update.
1159 * thread.c (load_infrun_state, save_infrun_state): Update.
1160 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1161 (handle_inferior_event, step_over_function): Update.
1162 (normal_stop, context_switch, restore_inferior_status): Update.
1163 (struct inferior_status): Replace step_frame_address with
1166 2002-12-05 David Carlton <carlton@math.stanford.edu>
1168 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1169 DW_TAG_member as well as a declaration as being a C++ static data
1171 (read_structure_scope): Combine tests for DW_TAG_member and
1174 2002-12-05 David Carlton <carlton@math.stanford.edu>
1176 * linespec.c (decode_compound): New function.
1177 (decode_line_1): Move code into decode_compound.
1179 2002-12-05 David Carlton <carlton@math.stanford.edu>
1181 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1183 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1184 the static block. See PR gdb/804.
1186 2002-12-05 David Carlton <carlton@math.stanford.edu>
1188 * symtab.c (lookup_symbol_aux_block): New function.
1189 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1191 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1193 * gdbarch.sh: Dump the predicate function and macro values.
1194 (read): Print error on standard error.
1195 * gdbarch.c: Regenerate.
1197 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1199 * Makefile.in (mips_tdep_h): Define.
1200 (mips-tdep.o): Add mips_tdep_h to dependency list.
1201 * mips-tdep.h: New file.
1202 * mips-tdep.c (mips-tdep.h): Include.
1203 (enum mips_abi): Move to mips-tdep.h.
1204 (mips_abi): New function.
1206 2002-12-04 David Carlton <carlton@math.stanford.edu>
1208 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1210 2002-12-04 David Carlton <carlton@math.stanford.edu>
1212 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1214 (lookup_symbol_aux_minsyms): New function.
1216 2002-12-04 J. Brobecker <brobecker@gnat.com>
1218 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1220 2002-12-04 J. Brobecker <brobecker@gnat.com>
1222 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1223 which is an obsolete macro name.
1225 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1227 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1228 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1230 2002-12-03 H.J. Lu (hjl@gnu.org)
1232 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1233 (create_breakpoints): Make sure the addr_string field is not
1236 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1238 * sparc-nat.c (fetch_inferior_registers)
1239 (store_inferior_registers): Add comment on problem of LWP vs
1242 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1243 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1244 (lin_lwp_store_registers): Remove.
1245 (init_lin_lwp_ops): Use fetch_inferior_registers
1246 and store_inferior_registers directly.
1247 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1248 (store_inferior_registers): Likewise.
1251 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1253 * frame.h (get_frame_id): Convert to a function.
1254 (null_frame_id, frame_id_p): Declare.
1255 (frame_id_eq, frame_id_inner): Declare.
1256 (frame_id_build): New function.
1257 * frame.c (get_frame_id): Update. Use null_frame_id.
1258 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1260 (null_frame_id, frame_id_p): Define.
1261 (frame_id_eq, frame_id_inner): Define.
1262 (frame_id_build): New function.
1263 * varobj.c (varobj_create): Update.
1264 (varobj_update): Update.
1265 * valops.c (value_assign): Update.
1266 (new_root_variable): Update.
1267 * infrun.c (save_inferior_status): Update.
1268 * breakpoint.c (watch_command_1): Update.
1270 2002-12-03 J. Brobecker <brobecker@gnat.com>
1272 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1275 2002-12-03 Andrew Cagney <cagney@redhat.com>
1277 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1280 * PROBLEMS: Mention PR gdb/725.
1282 2002-12-03 Andreas Schwab <schwab@suse.de>
1284 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1286 2002-12-02 Adam Fedor <fedor@gnu.org>
1287 Klee Dienes <kdienes@apple.com>
1289 * objc-lang.c (objc_printstr): Add width arg to match
1291 (compare_selectors): Add 'const' to arg types.
1292 (compare_classes): Likewise.
1293 (find_imps): Cast msym pointer to avoid compiler warning.
1294 (print_object_command): Validate the address before
1295 passing it to the print routine.
1296 (find_objc_msgcall_submethod): Change function argument to
1298 * objc-lang.h: Add 'extern' to all function declarations.
1299 (value_nsstring): Add declaration.
1301 2002-12-02 J. Brobecker <brobecker@gnat.com>
1303 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1304 Fixes a build failure on HP/UX.
1306 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1308 (hpread_has_name): Advance declaration to avoid a compilation warning.
1309 (pst_syms_count): Add missing variable type. By change, the compiler
1310 was defaulting to int, which seems a good choice. Fixes a compilation
1312 (pst_syms_size): Likewise.
1314 2002-12-02 J. Brobecker <brobecker@gnat.com>
1316 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1317 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1318 later to set the proper gdbarch methods depending on the osabi.
1319 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1321 2002-12-02 J. Brobecker <brobecker@gnat.com>
1323 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1324 * osabi.c (gdb_osabi_name): Add strings images for the two new
1326 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1328 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1330 * MAINTAINERS (Java): Global maintainers are responible for Java.
1331 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1332 part Java maintainers.
1334 2002-12-02 J. Brobecker <brobecker@gnat.com>
1336 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1337 Fixes a compilation failure on AiX.
1339 2002-12-02 J. Brobecker <brobecker@gnat.com>
1341 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1342 why aix-thread.o is not listed.
1344 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1346 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1347 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1348 * gdbarch.h, gdbarch.c: Re-generate.
1349 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1350 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1351 * config/pa/tm-hppa.h, frame.h: Update.
1352 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1353 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1354 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1355 * cris-tdep.c, alpha-tdep.c: Update.
1356 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1357 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1358 (get_prev_frame): Ditto.
1360 2002-11-30 Andrew Cagney <cagney@redhat.com>
1362 * exec.c (xfer_memory): Replace boolean with int.
1363 * p-exp.y: Use 0 instead of false.
1364 * corelow.c (gdb_check_format): Change return type to int from
1366 * utils.c: Don't include <curses.h> or <term.h> first.
1368 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1370 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1371 (m68hc11_register_byte): Remove.
1372 (m68hc11_gdbarch_init): Don't set the above.
1374 2002-11-29 Andrew Cagney <cagney@redhat.com>
1376 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1377 by calling get_selected_frame.
1378 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1379 set_current_frame, create_new_frame, select_frame and
1381 * remote-e7000.c (e7000_start_remote): Ditto.
1382 * remote-mips.c (common_open): Ditto
1383 * remote-rdp.c (remote_rdp_open): Ditto.
1385 2002-11-29 Andreas Schwab <schwab@suse.de>
1387 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1388 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1389 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1390 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1391 read_memory_unsigned_integer instead of read_memory_integer when
1392 dealing with addresses and instruction opcodes.
1393 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1394 (m68k_linux_frame_saved_pc): Likewise.
1396 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1398 * stack.c (selected_frame, select_frame): Move from here ...
1399 * frame.c (selected_frame, select_frame): ... to here. Include
1401 * Makefile.in (frame.o): Update dependencies.
1402 * frame.c (get_selected_frame): New function.
1403 * frame.h (get_selected_frame): Declare.
1404 (deprecated_selected_frame): Rename selected_frame.
1405 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1406 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1407 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1408 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1409 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1410 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1411 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1412 * z8k-tdep.c, cli/cli-cmds.c: Update.
1414 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1416 * frame.h (get_selected_block): Add comments.
1418 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1420 * frame.c (pc_notcurrent): New function.
1421 (find_frame_sal): New function.
1422 * frame.h (find_frame_sal): Declare.
1423 (struct symtab_and_line): Add opaque declaration.
1424 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1426 (frame_info): Ditto.
1427 * ada-lang.c (find_printable_frame): Ditto.
1429 2002-11-28 J. Brobecker <brobecker@gnat.com>
1431 * configure.in: Check that the pthdebug library is recent enough
1432 before enabling thread support on native AiX.
1433 * configure: Regenerate.
1435 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1436 from the list of object files as it is now appended by configure
1437 if thread support is enabled.
1438 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1439 if thread support is enabled.
1441 2002-11-28 Andrew Cagney <cagney@redhat.com>
1443 * stack.c (get_selected_block): In-line get_current_block.
1444 * frame.h (get_current_block): Delete declaration.
1445 * blockframe.c (get_current_block): Delete function.
1447 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1449 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1450 USE_GENERIC_DUMMY_FRAMES.
1451 * gdbarch.h, gdbarch.c: Regenerate.
1452 * valops.c, frame.c: Update.
1453 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1454 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1455 * config/pa/tm-hppa.h, blockframe.c: Update.
1456 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1457 * m68k-tdep.c, alpha-tdep.c: Ditto.
1459 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1460 * mips-tdep.c: Ditto.
1462 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1464 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1465 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1466 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1467 * gdbarch.c, gdbarch.h: Re-generate.
1468 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1469 (CALL_DUMMY_LOCATION): Delete macro definition.
1470 (PC_IN_CALL_DUMMY): Delete macro definitions.
1472 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1473 default is already generic_pc_in_call_dummy.
1474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1475 * v850-tdep.c (v850_gdbarch_init): Ditto.
1476 * sh-tdep.c (sh_gdbarch_init): Ditto.
1477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1478 * mips-tdep.c (mips_gdbarch_init): Ditto.
1479 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1481 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1482 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1483 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1484 * avr-tdep.c (avr_gdbarch_init): Ditto.
1486 * arm-tdep.c (arm_gdbarch_init): Do not set
1487 use_generic_dummy_frames, default is already 1.
1488 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1489 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1490 * v850-tdep.c (v850_gdbarch_init): Ditto.
1491 * sh-tdep.c (sh_gdbarch_init): Ditto.
1492 * s390-tdep.c (s390_gdbarch_init): Ditto.
1493 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1494 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1495 * mips-tdep.c (mips_gdbarch_init): Ditto.
1496 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1497 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1499 * i386-tdep.c (i386_gdbarch_init): Ditto.
1500 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1501 * frv-tdep.c (frv_gdbarch_init): Ditto.
1502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1503 * cris-tdep.c (cris_gdbarch_init): Ditto.
1504 * avr-tdep.c (avr_gdbarch_init): Ditto.
1506 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1507 call_dummy_location, default is already AT_ENTRY_POINT.
1508 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1509 * v850-tdep.c (v850_gdbarch_init): Ditto.
1510 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1511 * sh-tdep.c (sh_gdbarch_init): Ditto.
1512 * s390-tdep.c (s390_gdbarch_init): Ditto.
1513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1514 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1515 * mips-tdep.c (mips_gdbarch_init): Ditto.
1516 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1518 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1519 * i386-tdep.c (i386_gdbarch_init): Ditto.
1520 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1521 * frv-tdep.c (frv_gdbarch_init): Ditto.
1522 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1523 * cris-tdep.c (cris_gdbarch_init): Ditto.
1524 * avr-tdep.c (avr_gdbarch_init): Ditto.
1525 * arm-tdep.c (arm_gdbarch_init): Ditto.
1526 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1528 2002-11-28 Andrew Cagney <cagney@redhat.com>
1530 * frame.h: Update comments on set_current_frame, create_new_frame,
1531 flush_cached_frames, reinit_frame_cache, select_frame and
1534 2002-11-27 Andrew Cagney <cagney@redhat.com>
1536 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1537 deprecated pc_in_call_dummy function.
1538 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1539 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1540 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1541 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1542 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1544 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1546 * Makefile.in: Remove Tix dependencies.
1547 * acinclude.m4: Ditto.
1548 * aclocal.m4: Ditto.
1549 * configure.in: Ditto.
1550 * configure: Regenerated.
1552 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1554 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1555 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1556 * gdbarch.c: Re-generate.
1558 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1560 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1561 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1562 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1563 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1564 pc_in_call_dummy_at_entry_point.
1565 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1566 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1567 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1568 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1569 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1570 pc_in_call_dummy_on_stack.
1571 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1572 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1573 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1574 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1575 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1577 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1579 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1580 pc_in_call_dummy_before_text_end
1581 (deprecated_pc_in_call_dummy_after_text_end): Rename
1582 pc_in_call_dummy_after_text_end.
1583 (deprecated_pc_in_call_dummy_on_stack): Rename
1584 pc_in_call_dummy_on_stack.
1585 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1586 pc_in_call_dummy_at_entry_point.
1587 * m68k-tdep.c (m68k_gdbarch_init): Update.
1588 * s390-tdep.c (s390_gdbarch_init): Update.
1589 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1590 * vax-tdep.c (vax_gdbarch_init): Update.
1591 * sparc-tdep.c (sparc_gdbarch_init): Update.
1592 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1593 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1594 * i386-tdep.c (i386_gdbarch_init): Update.
1595 * frv-tdep.c (frv_gdbarch_init): Update.
1596 * cris-tdep.c (cris_gdbarch_init): Update.
1597 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1598 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1599 (deprecated_pc_in_call_dummy_after_text_end)
1600 (deprecated_pc_in_call_dummy_on_stack)
1601 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1602 * alpha-tdep.c (alpha_gdbarch_init): Update.
1604 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1606 * acconfig.h (HAVE_PREAD64): Add.
1607 * configure.in: Check for pread64.
1608 * config.in: Regenerated.
1609 * configure: Regenerated.
1610 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1611 * linux-proc.c (linux_proc_xfer_memory): New function.
1612 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1614 2002-11-25 David Carlton <carlton@math.stanford.edu>
1616 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1619 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1621 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1622 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1624 2002-11-25 Jim Blandy <jimb@redhat.com>
1626 * symfile.c (init_objfile_sect_indices): New function.
1627 (default_symfile_offsets): Move the section-index-initializing
1628 stuff into init_objfile_sect_indices, and call that.
1630 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1631 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1633 * symfile.c (syms_from_objfile): Adjust indentation.
1635 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1636 || info_verbose isn't true.
1638 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1640 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1641 default to get_frame_base.
1642 * gdbarch.h, gdbarch.c: Regenerate.
1643 * arch-utils.c (default_frame_address): Delete function.
1644 * arch-utils.h (default_frame_address): Delete declaration
1646 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1648 * varobj.c (find_frame_addr_in_frame_chain):
1649 Use get_frame_base instead of FRAME_FP,
1652 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1654 * frame.h (FRAME_FP): Delete macro.
1655 (get_frame_base): New function declaration.
1656 * frame.c (get_frame_base): New function.
1657 (get_frame_id): Use ->frame.
1658 (frame_find_by_id): Rewrite to use get_frame_id.
1659 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1660 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1661 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1662 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1663 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1664 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1665 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1667 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1669 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1671 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1673 * frame.c (set_unwind_by_pc): Revert change below, use
1675 (get_prev_frame): Ditto.
1677 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1679 * dummy-frame.c (pc_in_dummy_frame): New function.
1680 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1681 (find_dummy_frame): Update comment.
1682 (generic_pop_current_frame): Use get_frame_type.
1683 * dummy-frame.h (pc_in_dummy_frame): Declare.
1684 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1685 (create_new_frame): Use pc_in_dummy_frame.
1686 (get_prev_frame): Use pc_in_dummy_frame.
1687 (frame_saved_regs_register_unwind): Use get_prev_frame.
1688 (deprecated_generic_get_saved_register): Use get_prev_frame.
1690 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1692 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1694 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1695 (varobj_create): Note that frame ID should be used.
1696 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1698 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1700 * breakpoint.c: Include "gdb_assert.h".
1701 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1703 * Makefile.in (breakpoint.o): Update dependencies.
1704 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1705 deprecated_frame_in_dummy.
1706 * stack.c (print_frame_info_base): Ditto.
1707 (frame_info): Ditto.
1708 (print_frame_info_base): Ditto. Delete dead code.
1710 2002-11-23 Andreas Schwab <schwab@suse.de>
1712 * Makefile.in (m68k_tdep_h): Define.
1713 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1714 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1715 * m68k-tdep.c: Move register number enum ...
1716 * m68k-tdep.h: ... to this new file and rename the constants from
1717 E_* to M68K_*. All uses changed.
1718 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1719 * abug-rom.c: Include "m68k-tdep.h". Use
1720 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1721 * cpu32bug-rom.c: Likewise.
1722 * dbug-rom.c: Likewise.
1723 * m68k-tdep.c: Likewise.
1724 * m68klinux-nat.c: Likewise.
1725 * remote-est.c: Likewise.
1726 * rom68k-rom.c: Likewise.
1727 * config/m68k/tm-linux.h: Likewise.
1729 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1731 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1732 dummy frame initialization code.
1733 * mips-tdep.c (mips_gdbarch_init): Ditto.
1735 2002-11-22 Christopher Faylor <cgf@redhat.com>
1737 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1740 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1742 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1743 to default_frame_address.
1744 * gdbarch.h, gdbarch.c: Re-generate.
1746 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1747 or frame_locals_address to default_frame_address.
1748 * m68k-tdep.c (m68k_gdbarch_init): Update.
1749 * i386-tdep.c (i386_gdbarch_init): Update.
1750 * frv-tdep.c (frv_gdbarch_init): Update.
1751 * sh-tdep.c (sh_gdbarch_init): Update.
1752 * v850-tdep.c (v850_gdbarch_init): Update.
1753 * sparc-tdep.c (sparc_gdbarch_init): Update.
1754 * mips-tdep.c (mips_gdbarch_init): Update.
1755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1756 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1759 * cris-tdep.c (cris_frame_args_address): Delete function.
1760 (cris_frame_locals_address): Delete function.
1761 (cris_gdbarch_init): Do not set frame_args_address or
1762 frame_locals_address.
1764 2002-11-22 Michael Snyder <msnyder@redhat.com>
1766 * thread-db.c (thread_db_load): Tell the user what's going on
1767 if dlopen fails on libthread_db.
1769 2002-11-23 Andreas Schwab <schwab@suse.de>
1771 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1772 invariant return values.
1774 2002-11-22 Andreas Schwab <schwab@suse.de>
1776 * valops.c (value_slice): Move declaration of `offset' to avoid
1779 2002-11-22 Christopher Faylor <cgf@redhat.com>
1781 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1782 (struct so_stuff): Add end_addr field.
1783 (register_loaded_dll): Calculate and store end address of loaded dll.
1784 (solib_address): New function.
1785 (child_solib_loaded_library_pathname): Pass carefully constructed
1786 section info to safe_symbol_file_add rather than ignoring it.
1787 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1789 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1790 (child_create_inferior): Fix a compiler warning.
1791 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1792 (solib_address): Declare new function.
1794 2002-11-22 Andreas Schwab <schwab@suse.de>
1796 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1799 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1801 * maint.c (_initialize_maint_cmds): Fix typo. From
1802 Francesco Potorti` <pot@gnu.org>.
1804 2002-11-21 Andrew Cagney <cagney@redhat.com>
1806 * mips-tdep.c (mips_dump_tdep): Delete references to
1807 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1808 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1809 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1810 * printcmd.c (build_address_symbolic): Delete calls to
1811 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1812 (address_info): Ditto.
1815 2002-11-19 Klee Dienes <kdienes@apple.com>
1816 Adam Fedor <fedor@gnu.org>
1818 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1819 the ability to explicitly specify the quote characters and word
1820 break characters; if NULL is specified for either, use the old
1821 behavior of using the characters used by the completer.
1822 (skip_chars): New function. Convenience wrapper around
1823 skip_quoted_chars to provide the original skip_chars behavior.
1824 * completer.h (skip_quoted_chars): Add prototype.
1826 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1828 Problems reported by Paul Eggert.
1829 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1831 2002-11-19 Andreas Schwab <schwab@suse.de>
1833 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1834 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1835 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1836 (m68k_linux_frame_saved_pc): Move to ...
1837 * m68klinux-tdep.c: ... here. New file.
1838 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1839 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1841 2002-11-19 Adam Fedor <fedor@gnu.org>
1843 * objc-exp.y: Revert to old skip_quoted usage.
1845 2002-11-19 Adam Fedor <fedor@gnu.org>
1847 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1848 (objc_lang_h): Define.
1849 (YYFILES): Add objc-exp.tab.c.
1850 (local-maintainer-clean): Remove objc-exp.tab.c.
1851 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1853 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1855 * p-exp.y (typecast rule): Add automatic dereference of
1856 pascal classes if needed.
1857 (THIS): Set current_type.
1858 Automatically dereference pascal classes.
1859 (typebase rule): Add ^typebase recognition.
1861 2002-11-18 Adam Fedor <fedor@gnu.org>
1863 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1864 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1865 (op_name): Handle OP_OBJC_SELF.
1866 * Makefile.in (expprint.o): Add additional depends.
1868 2002-11-18 Adam Fedor <fedor@gnu.org>
1870 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1871 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1872 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1873 * objc-exp.y: Likewise.
1875 2002-11-18 Adam Fedor <fedor@gnu.org>
1877 * gdb/parser-defs.h: (struct objc_class_str): New structure
1878 for parsing ObjC classes.
1880 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1882 * stack.c (frame_relative_level): Copy function from here ...
1883 * frame.c (frame_relative_level): ...to here.
1885 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1887 * frame.h (enum frame_type): Define.
1888 (get_frame_type): Declare.
1889 (struct frame_info): Add field `type'. Delete field
1890 signal_handler_caller.
1891 (deprecated_set_frame_signal_handler_caller): Declare.
1892 * frame.c (get_frame_type): New function.
1893 (deprecated_set_frame_type): New function.
1894 (create_new_frame): Set the frame's type.
1895 (get_prev_frame): Similar.
1896 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1897 * s390-tdep.c: Ditto.
1898 * m68klinux-nat.c: Ditto.
1899 * ns32k-tdep.c: Ditto.
1900 * x86-64-linux-tdep.c: Ditto.
1901 * vax-tdep.c: Ditto.
1902 * rs6000-tdep.c: Ditto.
1903 * ppc-linux-tdep.c: Ditto.
1904 * i386-interix-tdep.c: Ditto.
1905 * mips-tdep.c: Ditto.
1906 * m68k-tdep.c: Ditto.
1907 * hppa-tdep.c: Ditto.
1908 * ia64-tdep.c: Ditto.
1909 * cris-tdep.c: Ditto.
1910 * arm-tdep.c: Ditto.
1911 * alpha-tdep.c: Ditto.
1912 * i386-tdep.c: Ditto.
1914 * ada-lang.c: Ditto.
1915 * blockframe.c: Update.
1916 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1917 deprecated_set_frame_type instead of signal_handler_caller.
1918 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1919 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1920 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1922 2002-11-18 Klee Dienes <kdienes@apple.com>
1924 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1926 2002-11-18 Klee Dienes <kdienes@apple.com>
1928 * buildsym.c (pop_context): Add comment.
1930 2002-11-18 Klee Dienes <kdienes@apple.com>
1932 * buildsym.h (pop_context): Convert to function, defined in
1934 * buildsym.c: Include gdb_assert.h.
1935 (pop_context): Implement as C function. Add check for stack
1937 * dbxread.c (process_one_symbol): Complain and stop processing
1938 that symbol if we are already at the top of the context stack for
1939 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1940 when processing N_RBRAC.
1942 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1944 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1946 (struct target_waitstatus): Add opaque definition.
1947 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1948 * exec.c (init_exec_ops): Likewise.
1949 * fork-child.c (clone_and_follow_inferior): Remove.
1950 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1951 * inferior.h (clone_and_follow_inferior): Remove prototype.
1952 * infrun.c (follow_fork_mode_both): Remove.
1953 (follow_fork_mode_kind_names): Remove commented out "both".
1954 (follow_inferior_fork): Remove follow_fork_mode_both support.
1955 * inftarg.c (child_clone_and_follow_inferior): Remove.
1956 (child_post_follow_inferior_by_clone): Remove.
1957 (init_child_ops): Don't set to_clone_and_follow_inferior
1958 or to_post_follow_inferior_by_clone.
1959 * target.c (default_clone_and_follow_inferior): Remove.
1960 (cleanup_target): Don't set to_clone_and_follow_inferior
1961 or to_post_follow_inferior_by_clone.
1962 (find_default_clone_and_follow_inferior): Remove.
1963 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1964 (debug_to_clone_and_follow_inferior): Remove.
1965 (debug_to_post_follow_inferior_by_clone): Remove.
1966 (setup_target_debug): Don't set to_clone_and_follow_inferior
1967 or to_post_follow_inferior_by_clone.
1968 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1969 and to_post_follow_inferior_by_clone.
1970 (child_clone_and_follow_inferior): Remove prototype.
1971 (child_post_follow_inferior_by_clone): Remove prototype.
1972 (target_clone_and_follow_inferior): Remove macro.
1973 (target_post_follow_inferior_by_clone): Remove macro.
1974 (find_default_clone_and_follow_inferior): Remove prototype.
1976 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1978 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1979 inferior_has_vforked, and inferior_has_execd instead of
1980 target_has_forked, target_has_vforked, and target_has_execd.
1981 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1982 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1983 (CHILD_WAIT): Define.
1984 (child_wait): Add prototype.
1985 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1987 (hpux_has_vforked): Likewise, from child_has_vforked.
1988 (hpux_has_execd): Likewise, from child_has_execd.
1989 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1990 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1991 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1992 and hpux_has_syscall_event instead of the target hooks.
1993 * infrun.c (inferior_has_forked, inferior_has_vforked)
1994 (inferior_has_execd): New functions.
1995 * inftarg.c (not_same_real_pid): Remove.
1996 (child_wait): Remove references to not_same_real_pid,
1997 target_has_forked, target_has_vforked, target_has_execd,
1998 and target_has_syscall_event.
1999 (child_has_forked, child_has_vforked, child_has_execd)
2000 (child_has_syscall_event): Remove.
2001 (init_child_ops): Remove references to child_has_forked,
2002 child_has_vforked, child_has_execd, and child_has_syscall_event.
2003 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2004 (hpux_has_vforked): Likewise, from child_has_vforked.
2005 (hpux_has_execd): Likewise, from child_has_execd.
2006 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2007 * target.c (cleanup_target): Remove references to
2008 to_has_forked, to_has_vforked, to_has_execd, and
2009 to_has_syscall_event.
2010 (update_current_target): Likewise.
2011 (setup_target_debug): Likewise.
2012 (debug_to_has_forked): Remove.
2013 (debug_to_has_vforked): Remove.
2014 (debug_to_has_execd): Remove.
2015 (debug_to_has_syscall_event): Remove.
2016 * target.h (struct target_ops): Remove to_has_forked.
2017 to_has_vforked, to_has_execd, and to_has_syscall_event.
2018 (child_has_forked, child_has_vforked, child_has_execd)
2019 (child_has_syscall_event): Remove prototypes.
2020 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2022 (target_has_forked, target_has_vforked, target_has_execd)
2023 (target_has_syscall_event): Remove macros.
2025 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2027 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2028 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2029 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2030 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2031 * target.c (cleanup_target): Remove reference to
2032 to_can_follow_vfork_prior_to_exec.
2033 (update_current_target): Likewise.
2034 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2035 (setup_target_debug): Remove reference to
2036 to_can_follow_vfork_prior_to_exec.
2037 * target.h (struct target_ops): Remove
2038 to_can_follow_vfork_prior_to_exec.
2039 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2040 (target_can_follow_vfork_prior_to_exec): Remove definition.
2041 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2043 * infrun.c (follow_vfork_when_exec): Remove.
2044 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2045 (follow_exec): Likewise.
2046 (handle_inferior_event): Likewise.
2047 (keep_going): Likewise.
2049 2002-11-15 Andrew Cagney <cagney@redhat.com>
2051 * frame.c (generic_unwind_get_saved_register): Make static.
2052 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2053 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2054 defaults to generic_unwind_get_saved_register.
2055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2056 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2057 * frv-tdep.c (frv_gdbarch_init): Ditto.
2058 * i386-tdep.c (i386_gdbarch_init): Ditto.
2059 * s390-tdep.c (s390_gdbarch_init): Ditto.
2060 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2061 * v850-tdep.c (v850_gdbarch_init): Ditto.
2062 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2063 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2064 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2066 2002-11-15 Andrew Cagney <cagney@redhat.com>
2068 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2071 2002-11-15 Andrew Cagney <cagney@redhat.com>
2073 * frame.h (sigtramp_saved_pc): Delete declaration.
2074 * blockframe.c (sigtramp_saved_pc): Delete function.
2075 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2076 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2077 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2078 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2080 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2082 * frame.c (frame_pc_unwind): New function.
2083 (frame_saved_regs_pc_unwind): New function.
2084 (frame_register_unwind): Pass unwind_cache instead of
2085 register_unwind_cache.
2086 (set_unwind_by_pc): Add unwind_pc parameter, set.
2087 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2088 (get_prev_frame): Ditto.
2089 * frame.h (frame_pc_unwind_ftype): Declare.
2090 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2091 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2092 (frame_pc_unwind): Declare.
2093 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2094 (struct dummy_frame): Add comment mentioning that values are for
2096 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2097 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2098 (generic_file_frame_chain_valid): Ditto.
2099 * stack.c (frame_info): Ditto.
2101 2002-11-15 David Carlton <carlton@math.stanford.edu>
2103 * linespec.c (locate_first_half): New function.
2104 (decode_line_1): Move code into locate_first_half.
2106 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2108 * complaints.h: Add comment explaining how to eliminate a
2109 deprecated_complain call.
2110 * complaints.h: Fix spelling errors.
2112 2002-11-15 David Carlton <carlton@math.stanford.edu>
2114 * printcmd.c: Remove #include "disasm.h".
2116 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2118 * frame.h: Move the most relevant interface functions to the start
2121 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2123 * regcache.h (deprecated_registers): Rename registers.
2124 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2125 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2126 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2127 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2128 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2129 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2130 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2131 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2132 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2133 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2134 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2135 * v850ice.c: Update.
2137 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2139 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2142 2002-11-13 Andrew Cagney <cagney@redhat.com>
2144 * regcache.h (deprecated_read_register_bytes): Rename
2145 read_register_bytes.
2146 (deprecated_write_register_bytes): Rename write_register_bytes.
2147 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2148 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2149 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2150 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2151 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2152 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2153 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2154 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2155 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2156 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2157 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2158 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2159 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2160 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2162 2002-11-13 Jim Blandy <jimb@redhat.com>
2164 * findvar.c (read_var_value): Doc fix.
2166 2002-11-13 Andrew Cagney <cagney@redhat.com>
2168 * regcache.c (struct regcache): Replace passthough_p with
2170 (regcache_xmalloc): Initialize readonly_p.
2171 (build_regcache): Initialize readonly_p.
2172 (regcache_save): New function.
2173 (regcache_restore): New function.
2174 (regcache_cpy): Re-implement using regcache_save and
2176 (regcache_raw_read): Update.
2177 (regcache_cooked_read): When a read-only cache, checked for cached
2178 pseudo register values.
2179 (regcache_raw_write): Assert that the cache is not read-only.
2180 Remove code handling a non-passthrough cache.
2181 * regcache.h (regcache_save): Declare.
2182 (regcache_restore): Declare.
2184 2002-11-13 Andrew Cagney <cagney@redhat.com>
2186 * regcache.c (struct regcache_descr): Add fields
2187 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2188 (init_legacy_regcache_descr): Compute the size of a cooked
2189 register cache and then assign that to sizeof_raw_registers. Set
2190 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2191 (init_legacy_regcache_descr): Ditto.
2193 2002-11-13 Andrew Cagney <cagney@redhat.com>
2195 * regcache.c (register_buffer): Move to near start of file, update
2197 (regcache_raw_read): Use.
2198 (regcache_raw_write): Use.
2199 (struct regcache): Rename raw_registers to registers and
2200 raw_register_valid_p to register_valid_p.
2201 (regcache_xmalloc): Update.
2202 (regcache_xfree): Update.
2203 (register_buffer): Update.
2204 (regcache_cpy): Update.
2205 (regcache_cpy_no_passthrough): Update.
2206 (regcache_valid_p): Update.
2207 (deprecated_grub_regcache_for_registers): Update.
2208 (deprecated_grub_regcache_for_register_valid): Update.
2209 (set_register_cached): Update.
2210 (regcache_raw_write): Update.
2212 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2214 * p-exp.y (name_not_typename): Use copy_name to
2215 set current_type variable for fields of THIS.
2217 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2219 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2220 * monitor.c (init_base_monitor_ops): Likewise.
2221 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2222 * remote-array.c (init_array_ops): Likewise.
2223 * remote-e7000.c (init_e7000_ops): Likewise.
2224 * remote-es.c (init_es1800_ops): Likewise.
2225 (init_es1800_child_ops): Likewise.
2226 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2227 * remote-sim.c (init_gdbsim_ops): Likewise.
2228 * remote-st.c (init_st2000_ops): Likewise.
2229 * sol-thread.c (init_sol_core_ops): Likewise.
2230 (init_sol_thread_ops): Likewise.
2231 * v850ice.c (init_850ice_ops): Likewise.
2232 * win32-nat.c (init_child_ops): Likewise.
2233 * wince.c (init_child_ops): Likewise.
2235 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2237 * utils.c (gdb_realpath): Make rp a constant pointer.
2239 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2241 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2242 a constant buffer; cannonicalize_file_name(); realpath() with a
2243 pathconf() defined buffer, xstrdup().
2245 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2247 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2248 to hang2.C; hang3.c to hang3.C.
2250 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2252 * findvar.c (read_var_value): Reenable TLS code.
2254 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2255 Jim Blandy <jimb@redhat.com>
2257 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2258 * target.c (update_current_target): Add
2259 to_get_thread_local_address.
2260 * target.h (to_get_thread_local_address): Export.
2261 (target_get_thread_local_address): Define.
2262 (target_get_thread_local_address_p): Define.
2263 * thread-db.c: Include solib-svr4.h.
2264 (td_thr_tls_get_addr_p): Define.
2265 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2266 (thread_db_get_thread_local_address): New function.
2267 (init_thread_db_ops): Initialize to_get_thread_local_address.
2268 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2269 * configure: Regenerate.
2270 * config.in: Regenerate.
2272 2002-11-11 David Carlton <carlton@math.stanford.edu>
2274 * linespec.c (set_flags): New function.
2275 (decode_line_1): Move code into set_flags.
2277 2002-11-11 David Carlton <carlton@math.stanford.edu>
2279 * linespec.c (decode_line_1): Move chunks of code to separate
2281 (initialize_defaults): New function.
2282 (decode_indirect): New function.
2284 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2286 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2287 instead of void_code_ptr.
2288 (sigtramp_saved_pc): Ditto.
2290 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2293 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2295 * gdbtypes.h (struct main_type): Move artificial flag out of
2296 loc. New member of ``struct field'' named static_kind. Reduce
2297 overloaded meaning of bitsize.
2298 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2299 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2300 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2302 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2304 (template_to_fixed_record_type, template_to_static_fixed_type)
2305 (to_record_with_fixed_variant_part): Likewise.
2306 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2307 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2308 * dwarfread.c (struct_type, enum_type): Likewise.
2309 * hpread.c (hpread_read_enum_type)
2310 (hpread_read_function_type, hpread_read_doc_function_type)
2311 (hpread_read_struct_type): Likewise.
2312 * mdebugread.c (parse_symbol): Likewise.
2314 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2316 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2317 * stack.c (print_frame_info_base): Update.
2318 (print_frame_info_base, frame_info): Update.
2319 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2320 (sparc_frame_saved_pc): Update.
2321 * ada-lang.c (find_printable_frame): Update.
2322 * breakpoint.c (deprecated_frame_in_dummy): Update.
2324 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2326 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2328 (regmap): Extend to cover all registers.
2329 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2330 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2332 (fetch_register, sore_register): Simplify.
2333 (old_fetch_inferior_registers, old_store_inferior_registers):
2335 (cannot_fetch_register, cannot_store_register): Change
2336 implementation to use regmap array to decide which registers
2337 cannot be fetched/stored. This removes $orig_eax from the
2338 registers that cannot be fetched/stored.
2339 (fetch_inferior_registers): Call fetch_register directly instead
2340 of calling old_fetch_inferior_registers.
2341 (store_inferior_registers): Call store_register directly instead
2342 of calling old_store_inferior_registers.
2343 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2344 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2345 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2347 2002-11-09 Klee Dienes <kdienes@apple.com>
2349 * i387-tdep.c (i387_supply_register): When called with NULL as a
2350 buffer, mark the register as not provided (to mirror the behavior
2351 of supply_register).
2352 (i387_supply_fxsave): Ditto.
2353 (i387_supply_fsave): Ditto (inherits the behavior from
2354 i387_supply_register).
2356 2002-11-09 Klee Dienes <kdienes@apple.com>
2358 * blockframe.c (sigtramp_saved_pc): Use
2359 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2360 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2361 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2363 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2365 * frame.c (get_prev_frame): Test prev_p to identify a previously
2366 unwound frame. Initialize prev_p.
2367 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2370 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2372 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2373 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2374 more comments. Zap dead code.
2376 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2378 * infcmd.c (print_vector_info, print_float_info): Move code that
2379 checks whether the target has any registers and whether there is a
2380 selected frame up, such that it is also used if a target provides
2381 multi-arch definitions of these functions.
2383 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2385 * Makefile.in (DESTDIR): Define.
2386 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2389 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2390 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2392 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2394 * i386-linux-tdep.c: Include "reggroups.h".
2395 (i386_linux_register_reggroup_p): New function.
2396 (i386_linux_init_abi): Set register_reggroup_p to
2397 i386_linux_register_reggroup_p.
2398 * i386-tdep.h (i386_register_reggroup_p): Declare.
2399 * i386-tdep.c: Include "reggroups.h".
2400 (i386_init_reggroups): New function.
2401 (i386_add_reggroups): New function.
2402 (i386_register_reggroup_p): New function.
2403 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2404 (_initialize_i386_tdep): Call i386_init_reggroups.
2405 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2408 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2410 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2411 request that's available in *BSD.
2413 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2415 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2418 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2420 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2421 * dummy-frame.c (find_dummy_frame): Rename
2422 generic_find_dummy_frame, make static. Return the dummy frame
2423 instead of the regcache.
2424 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2425 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2426 (dummy_frame_register_unwind): Rename
2427 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2428 * dummy-frame.h (dummy_frame_register_unwind): Rename
2429 generic_call_dummy_register_unwind.
2431 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2433 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2434 except the inclusion of "i386/tm-i386.h", to...
2435 * config/i386/nm-i386v42mp.h: ...here.
2436 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2438 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2440 * Makefile.in (frame.o): Update dependencies.
2441 * blockframe.c (current_frame, frame_obstack_alloc)
2442 (frame_saved_regs_zalloc, get_current_frame)
2443 (set_current_frame, create_new_frame)
2444 (set_unwind_by_pc, get_next_frame)
2445 (flush_cached_frames, reinit_frame_cache)
2446 (frame_saved_regs_register_unwind)
2447 (deprecated_generic_get_saved_register)
2448 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2449 (_initialize_blockframe): Move frame code from here...
2450 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2451 "annotate.h" and "dummy-frame.h".
2452 (_initialize_frame): New function.
2454 2002-11-08 Jim Blandy <jimb@redhat.com>
2456 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2457 when we finish a function a context.
2458 * buildsym.h (outermost_context_p): New macro.
2459 (Bug analyzed by David Edelsohn.)
2461 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2463 * blockframe.c: Include "dummy-frame.h".
2464 (struct dummy_frame, dummy_frame_stack)
2465 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2466 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2467 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2468 (generic_save_call_dummy_addr, generic_pop_current_frame)
2469 (generic_pop_dummy_frame, generic_fix_call_dummy)
2470 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2471 dummy frame code from here...
2472 * dummy-frame.c: ...to here. New file.
2473 * dummy-frame.h: New file.
2474 (generic_call_dummy_register_unwind): Declare.
2475 (generic_find_dummy_frame): Declare.
2476 * Makefile.in (SFILES): Add dummy-frame.c.
2477 (dummy-frame.o): Specify dependencies.
2478 (dummy_frame_h): Define.
2479 (COMMON_OBS): Add dummy-frame.o.
2480 (blockframe.o): Update dependencies.
2482 2002-11-08 Jim Blandy <jimb@redhat.com>
2484 * dwarf2read.c (read_func_scope): Restore local_symbols and
2485 param_symbols after we finish the function context. (Based on a
2486 patch from David Edelsohn.)
2488 2002-11-08 David Carlton <carlton@math.stanford.edu>
2490 * linespec.c (symbol_found): New function.
2491 (minsym_found): New function.
2492 (decode_line_1): Separate out some code into separate functions.
2494 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2496 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2497 the benefit of the interix target.
2498 * i386-tdep.h (i386_frameless_signal_p): Declare.
2500 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2502 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2503 declaration that snuck in from change below.
2505 2002-11-06 Andrew Cagney <cagney@redhat.com>
2507 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2509 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2510 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2511 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2512 (i386_mxcsr_regnum_p): new function. Use instead of
2514 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2515 (i386_sse_regnum_p): Declare.
2516 (i386_mxcsr_regnum_p): Declare.
2517 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2518 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2519 (IS_FP_REGNUM): Update definition.
2520 (IS_FPU_CTRL_REGNUM): Update definition..
2521 (IS_SSE_REGNUM): Update definition..
2522 * i386v-nat.c (register_u_addr): Update.
2523 * go32-nat.c (fetch_register): Update.
2524 (store_register): Update.
2526 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2528 Preparation work to convert the hppa targets to multiarch partial.
2530 * hppa-tdep.c: Add new functions replacing macro bodies from
2531 config/pa/tm-hppa.h. These function will be used to initialize
2532 the gdbarch structure. Import some comments from tm-hppa.h,
2533 and place them where appropriate, to avoid loosing them when
2534 we cleanup this file.
2535 (hppa_reg_struct_has_addr): New function.
2536 (hppa_inner_than): New function.
2537 (hppa_stack_align): New function.
2538 (hppa_pc_requires_run_before_use): New function.
2539 (hppa_instruction_nullified): New function.
2540 (hppa_register_byte): New function.
2541 (hppa_register_virtual_type): New function.
2542 (hppa_store_struct_return): New function.
2543 (hppa_cannot_store_register): New function.
2544 (hppa_frame_args_address): New function.
2545 (hppa_frame_locals_address): New function.
2546 (hppa_smash_text_address): New function.
2547 (hppa_coerce_float_to_double): New function. Requires the inclusion
2550 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2552 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2553 gdbarch-eligible macro to a call to the new associated function
2554 created in hppa-tdep.c.
2555 (INNER_THAN): Likewise.
2556 (STACK_ALIGN): Likewise.
2557 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2558 (INSTRUCTION_NULLIFIED): Likewise.
2559 (REGISTER_BYTE): Likewise.
2560 (REGISTER_VIRTUAL_TYPE): Likewise.
2561 (STORE_STRUCT_RETURN): Likewise.
2562 (CANNOT_STORE_REGISTER): Likewise.
2563 (FRAME_ARGS_ADDRESS): Likewise.
2564 (FRAME_LOCALS_ADDRESS): Likewise.
2565 (SMASH_TEXT_ADDRESS): Likewise.
2566 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2567 (ABOUT_TO_RETURN): Delete, as no longer used.
2569 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2571 * printcmd.c (disassemble_command): Remove obsolete function.
2572 (_initialize_printcmd): Do not create disassemble command here.
2573 * cli/cli-cmds.c (disassemble_command): New function. Implements
2574 disassemble command.
2575 (init_cli_cmds): Create disassemble command here instead.
2577 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2579 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2581 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2583 * regcache.h (regcache_cooked_read_using_offset_hack)
2584 (regcache_cooked_write_using_offset_hack): Delete declarations.
2585 (register_changed): Delete declaration.
2586 * regcache.c (regcache_cooked_read_using_offset_hack)
2587 (regcache_cooked_write_using_offset_hack): Delete functions.
2588 (cooked_xfer_using_offset_hack): Delete function.
2589 (register_changed): Delete function.
2591 2002-11-07 Jim Blandy <jimb@redhat.com>
2593 * macroscope.c: #include "complaints.h".
2594 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2595 but not in the macro table.
2596 * Makefile.in (macroscope.o): Record dependency.
2598 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2600 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2602 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2604 * regcache.c (deprecated_registers_fetched): Update.
2605 * regcache.h (deprecated_registers_fetched): Rename
2607 * remote-vxsparc.c (vx_read_register): Update.
2608 * remote-vxmips.c (vx_read_register): Update.
2609 * remote-vx68.c (vx_read_register): Update.
2610 * irix5-nat.c (fetch_core_registers): Update.
2611 * mipsm3-nat.c (fetch_inferior_registers): Update.
2612 * sun3-nat.c (fetch_inferior_registers): Update.
2613 * symm-nat.c (fetch_inferior_registers): Update.
2614 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2615 (fetch_core_registers): Update.
2616 (fetch_kcore_registers): Update.
2617 * mips-nat.c (fetch_inferior_registers): Update.
2618 * corelow.c (get_core_registers): Update.
2619 * a68v-nat.c (fetch_inferior_registers): Update.
2621 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2623 Put in place the framework necessary for multiarching the hppa targets.
2624 * hppa-tdep.c (hppa_gdbarch_init): New function.
2625 (hppa_dump_tdep): New function.
2626 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2627 tdep structure dumper.
2628 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2629 until the multi-arching conversion has partially been completed.
2631 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2633 * valops.c (value_assign): Merge lval_register case into
2634 lval_reg_frame_relative. Use frame_register and
2635 regcache_cooked_write instead of get_saved_register and
2636 write_register_bytes. After flushing the register cache, try to
2637 re-select the selected frame.
2639 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2641 * regcache.h (deprecated_register_valid): Rename register_valid.
2642 * regcache.c: Update.
2643 * ia64-aix-nat.c: Update.
2644 * i386gnu-nat.c: Update.
2645 * alpha-nat.c: Update.
2646 * sparc-nat.c: Update.
2647 * lynx-nat.c: Update.
2648 * remote-mips.c: Update.
2650 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2652 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2653 to end of file, to be more consistent with the pratice followed
2656 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2658 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2659 (print_float_info): Print registers in float_reggroup.
2660 (print_vector_info): Print registers in vector_reggroup.
2661 (default_print_registers_info): When all, print registers in
2662 all_reggroup. Otherwize, print registers in general_reggroup.
2663 (registers_info): Rewrite. Add support for register groups.
2666 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2668 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2670 (symtab_symbol_info): Remove eons old ifdeffed out code.
2671 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2674 2002-11-06 Theodore A. Roth <troth@openavr.org>
2676 * c-exp.y: Add missing semi-colons.
2677 * f-exp.y: Add missing semi-colons.
2678 * m2-exp.y: Add missing semi-colons.
2679 * p-exp.y: Add missing semi-colons.
2680 Add empty action to start rule to avoid a type clash error when
2681 building with bison >= 1.50.
2683 2002-11-06 Jim Blandy <jimb@redhat.com>
2685 * macrotab.h (struct macro_source_file): Doc fix.
2687 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2689 * varobj.c (child_exists, cplus_number_of_children): Change
2690 STREQ macro references to strcmp.
2691 (cplus_name_of_child): Change code to handle the fact that
2692 fields are not necessarily contiguous with regards to their
2693 access control. This is a fix for PR gdb/792.
2695 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2697 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2698 * gdbarch.h, gdbarch.c: Regnerate.
2699 * frame.h (frame_register): Declare.
2700 * frame.c (frame_register): New function.
2701 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2702 GET_SAVED_REGISTER, otherwize call
2703 generic_unwind_get_saved_register.
2704 (frame_register_read): Use frame_register instead of
2707 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2709 From Jim Ingham <jingham@apple.com>:
2710 * event-top.c (gdb_disable_readline): New function.
2711 (_initialize_event_loop): Move comment.
2713 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2715 * event-loop.c (start_event_loop): Add comment.
2718 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2720 * infcmd.c (default_print_registers_info): Do not call
2721 PRINT_REGISTER_HOOK.
2723 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2725 * sparc-tdep.c (sparc_print_register_hook): Make static.
2726 (sparc_print_registers_info): New function.
2727 (sparc_do_registers_info): New function.
2728 (sparclet_print_registers_info): New function.
2729 (sparclet_do_registers_info): New function.
2730 (do_sparc_print_registers_info): New function.
2731 (sparc_print_registers): New static function, clone of infcmd.c's
2732 default_print_registers_info.
2733 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2734 (sparclet_do_registers_info): Declare.
2735 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2736 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2738 (sparc_do_registers_info): Declare.
2739 (PRINT_REGISTER_HOOK): Delete macro.
2740 (sparc_print_register_hook): Delete declaration.
2742 2002-11-05 David Carlton <carlton@math.stanford.edu>
2744 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2746 (lookup_symbol_aux_local): New function.
2747 (lookup_symbol_aux_symtabs): New function.
2748 (lookup_symbol_aux_psymtabs): New function.
2750 2002-11-05 David Carlton <carlton@math.stanford.edu>
2752 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2753 previous values of 'objfile' and 'block'.
2755 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2757 * values.c (value_change_enclosing_type): Set
2758 enclosing_type field correctly also for the case where
2759 more memory needs to be allocated.
2761 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2763 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2766 * i387-tdep.c (i387_print_float_info): Replace calls to
2767 register_read and deprecated_read_register_gen with calls to
2768 frame_register_read, and make the necessary adjustments to the
2771 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2773 * gdbarch.sh (register_reggroup_p): Allow default value.
2774 * gdbarch.h, gdbarch.c: Regenerate.
2776 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2778 * regcache.h: Add coment indicating replacements for deprecated
2781 2002-11-02 Andrew Cagney <cagney@redhat.com>
2783 * reggroups.h, reggroups.c: New files.
2784 * regcache.c: Include "reggroups.h".
2785 (enum regcache_dump_what): Add `regcache_dump_groups'.
2786 (regcache_dump): Contract size of the "Type" column. When
2787 specified, dump the register's groups.
2788 (maintenance_print_register_groups): New function.
2789 (_initialize_regcache): Add command `maint print register-groups'.
2790 * Makefile.in (COMMON_OBS): Add reggroups.o
2791 (SFILES): Add reggroups.c.
2792 (reggroups_h): Define.
2793 (regcache.o, gdbarch.o): Update dependencies.
2794 (reggroups.o): Specify dependencies.
2795 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2796 Add opaque declaration for `struct reggroup' in generated .h file.
2797 Include "reggroups.h" in generated .c file.
2798 gdbarch.h, gdbarch.c: Re-generate.
2800 2002-11-02 Andrew Cagney <cagney@redhat.com>
2802 * regcache.h (deprecated_read_register_gen): Rename
2804 (deprecated_write_register_gen): Rename write_register_gen.
2805 * i387-tdep.c: Update.
2806 * x86-64-linux-nat.c: Update
2808 * thread-db.c: Update.
2809 * win32-nat.c: Update.
2810 * mips-tdep.c: Update.
2811 * d10v-tdep.c: Update.
2812 * cris-tdep.c: Update.
2813 * remote-sim.c: Update.
2814 * remote-rdi.c: Update.
2815 * remote-rdp.c: Update.
2818 * blockframe.c: Update.
2819 * x86-64-tdep.c: Update.
2820 * xstormy16-tdep.c: Update.
2821 * sh-tdep.c: Update.
2822 * s390-tdep.c: Update.
2823 * rs6000-tdep.c: Update.
2824 * sparc-tdep.c: Update.
2825 * i386-tdep.c: Update.
2826 * dwarf2cfi.c: Update.
2827 * regcache.c: Update.
2829 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2831 New interix-specific files:
2832 * config/i386/nm-interix.h: New file.
2833 * config/i386/interix.mh: New file.
2834 * config/i386/interix.mt: New file.
2835 * i386-interix-nat.c: New file.
2836 * i386-interix-tdep.c: New file.
2838 2002-11-01 Andrew Cagney <cagney@redhat.com>
2840 * frame.h (deprecated_generic_get_saved_register): Rename
2841 generic_get_saved_register.
2842 * blockframe.c (deprecated_generic_get_saved_register): Update.
2843 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2844 (xstormy16_frame_saved_register): Update.
2845 * sh-tdep.c (sh_gdbarch_init): Update.
2846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2847 * ia64-tdep.c (ia64_get_saved_register): Update.
2848 * cris-tdep.c (cris_gdbarch_init): Update.
2849 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2850 * arm-tdep.c (arm_gdbarch_init): Update.
2852 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2854 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2856 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2858 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2859 trampolines in sigaction.
2861 2002-10-31 Andrew Cagney <cagney@redhat.com>
2863 * h8300-tdep.c: Include "gdb_assert.h".
2864 (h8300_print_register): Add gdbarch, file and frame parameters.
2865 Use frame_read_unsigned_register to read the register's value.
2866 Use fprintf_filtered to display output.
2867 (h8300_print_registers_info): Replace h8300_do_registers_info.
2868 (h8300_gdbarch_init): Set print_registers_info.
2870 2002-10-31 Andrew Cagney <cagney@redhat.com>
2872 * frame.c (frame_read_unsigned_register): New function.
2873 (frame_read_signed_register): New function.
2874 * frame.h (frame_read_unsigned_register): Declare.
2875 (frame_read_signed_register): Declare.
2877 2002-10-31 Andrew Cagney <cagney@redhat.com>
2879 * h8500-tdep.c (h8500_print_registers_info): New static function,
2880 clone of infcmd.c's default_print_registers_info.
2881 (h8500_do_registers_info): New funtion.
2882 (h8500_print_register_hook): Rename print_register_hook, make
2885 * config/h8500/tm-h8500.h: Update copyright.
2886 (DEPRECATED_DO_REGISTERS_INFO): Define.
2887 (h8500_do_registers_info: Declare.
2888 (PRINT_REGISTER_HOOK): Delete macro.
2889 (print_register_hook): Delete function.
2891 2002-10-31 Andrew Cagney <cagney@redhat.com>
2893 * z8k-tdep.c (z8k_print_register_hook): Make static.
2894 (z8k_print_registers_info): New static function, clone of
2895 infcmd.c's default_print_registers_info.
2896 (z8k_do_registers_info): New function. Wrap
2897 z8k_print_registers_info.
2898 * config/z8k/tm-z8k.h: Update copyright.
2899 (PRINT_REGISTER_HOOK): Delete macro.
2900 (z8k_print_register_hook): Delete declaration.
2901 (DEPRECATED_DO_REGISTERS_INFO): Define.
2902 (z8k_do_registers_info): Declare.
2904 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2906 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2907 as this is already provided by value.h, and was actually causing
2908 a compilation error because of a conflict in parameter type
2909 declaration due to a missing const keyword.
2910 (low_text_segment_addres): Fix a compilation warning.
2912 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2914 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2915 registers without a name.
2916 (mips_linux_cannot_store_register): Don't store registers without
2919 2002-10-28 David Carlton <carlton@math.stanford.edu>
2921 * symtab.c (find_addr_symbol): Delete. (It was already commented
2923 * symtab.h: Delete prototype for find_addr_symbol.
2925 2002-10-26 Andrew Cagney <cagney@redhat.com>
2927 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2929 gdbarch.h, gdbarch.c: Re-generate.
2930 * infcmd.c (default_print_registers_info): Update reference.
2931 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2932 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2933 * sh-tdep.c (sh_gdbarch_init): Ditto.
2934 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2935 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2937 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2939 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2940 cfi_init_extra_frame_info.
2941 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2942 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2944 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2945 target where necessary. Add more comments and remove the ones
2946 that don't provide any useful information.
2948 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2949 deprecated_read_register_dummy with
2950 frame_unwind_unsigned_register.
2952 * i386-tdep.c (i386_extract_struct_value_address): Use
2953 regcache_raw_read_unsigned instead of
2954 regcache_cooked_read_unsigned since we know that the register
2955 we're reading isn't a pseudo register. Rename variable 'val' into
2956 the more descriptive 'addr'.
2958 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2959 (x86_64_push_return_address): Add comment.
2960 (x86_64_pop_frame): Make static.
2961 (examine_argument): Clarify comment.
2962 (x86_64_skip_prologue): Make prolog_expact variable static.
2964 * dwarf2cfi.c: Fix some formatting problems.
2965 (context_cpy, read_encoded_pointer): Clarify comments.
2967 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2968 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2969 i386 target back into x86_64_gdbarch_init. Add some comments and
2970 remove meaningless ones.
2972 2002-10-25 Andrew Cagney <cagney@redhat.com>
2974 * complaints.h (struct deprecated_complaint): Rename `struct
2976 * complaints.c (complain): Update.
2977 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2978 incorrect comment indicating that "symfile.h" was being included
2979 for the `struct complaint' definition.
2980 * remote-vx.c: Update.
2981 * objc-lang.c: Update.
2982 * xcoffread.c: Update.
2984 * mdebugread.c: Update.
2985 * stabsread.c: Update.
2986 * dwarf2read.c: Update.
2987 * dwarfread.c: Update.
2988 * elfread.c: Update.
2989 * coffread.c: Update.
2990 * stabsread.h: Update.
2991 * dbxread.c: Update.
2992 * buildsym.c: Update.
2993 * gdbtypes.c: Update.
2994 * macrotab.c: Update.
2996 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2998 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2999 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3000 (x86_64_init_abi): ...new function.
3002 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3003 * i386v-nat.c: Include "i386-tdep.h".
3005 2002-10-25 Andrew Cagney <cagney@redhat.com>
3007 * gdbtypes.c (address_space_name_to_int): Update.
3008 (address_space_int_to_name): Update.
3009 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3010 multi-arch predicate.
3011 (address_class_name_to_type_flags): Ditto.
3012 * gdbarch.h, gdbarch.c: Re-generate.
3014 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3016 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3018 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3020 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3022 * symtab.h (INIT_SAL): Delete macro.
3024 * symtab.c (init_sal): New function.
3026 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3027 to init_sal function call.
3028 (find_sal_from_funcs_and_line): Ditto.
3029 (all_sals_for_line): Ditto.
3030 * breakpoint.c (create_internal_breakpoint): Ditto.
3031 (create_fork_vfork_event_catchpoint): Ditto.
3032 (create_exec_event_catchpoint): Ditto.
3033 (parse_breakpoint_sals): Ditto.
3034 (watch_command_1): Ditto.
3035 (handle_gnu_4_16_catch_command): Ditto.
3036 (clear_command): Ditto.
3037 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3038 * infcmd.c (run_stack_dummy): Ditto.
3039 * infrun.c (process_event_stop_test): Ditto.
3040 (check_sigtramp2): Ditto.
3041 (step_over_function): Ditto.
3042 * linespec.c (decode_line_2): Ditto.
3043 (decode_line_1): Ditto.
3044 * source.c (line_info): Ditto.
3045 * symtab.c (find_pc_sect_line): Ditto.
3047 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3049 * dwarf2cfi.c (struct context)
3050 (struct context_reg): Moved to dwarf2cfi.h
3051 (context_alloc, frame_state_alloc, context_cpy):
3052 Made extern instead of static, removed prototypes.
3053 * dwarf2cfi.h (struct context)
3054 (struct context_reg): New, moved from dwarf2cfi.c
3055 (context_alloc, frame_state_alloc, context_cpy):
3057 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3058 Changed from static to extern.
3059 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3060 (LINUX_SIGCONTEXT_FP_OFFSET)
3061 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3062 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3063 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3064 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3065 set_gdbarch_*() calls now use x86-64 specific functions
3066 instead of DWARF2 CFI ones.
3067 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3068 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3069 (x86_64_init_extra_frame_info): New prototypes.
3071 2002-10-23 David Carlton <carlton@math.stanford.edu>
3073 * linespec.c: #include "parser-defs.h".
3074 Delete prototype for find_template_name_end.
3075 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3077 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3079 * NEWS: add recent mi fixes.
3080 * varobj.c (struct varobj): Add new "updated" flag.
3081 (new_variable): Default "updated" flag to 0.
3082 (varobj_set_value): Set "updated" flag to 1 if value
3084 (varobj_update): Check varobj "updated" flag before
3085 comparing old and refreshed values. Fix for
3088 2002-10-23 David Carlton <carlton@math.stanford.edu>
3090 * parse.c (parse_exp_1): Use BLOCK_START.
3091 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3093 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3095 2002-10-23 David Carlton <carlton@math.stanford.edu>
3097 * symtab.c: Delete cplusplus_hint.
3098 Delete prototype for find_template_name_end.
3100 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3102 * symtab.h: Update comment.
3104 2002-10-23 Michael Snyder <msnyder@redhat.com>
3106 * printcmd.c (address_info): Restore quotes in output.
3107 * valops.c (value_of_local): Restore quotes in error message.
3109 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3111 * symtab.c (symbol_demangled_name): New function.
3112 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3113 turning most of it into a function.
3114 (symbol_demangled_name): Export.
3116 2002-10-23 Michael Snyder <msnyder@redhat.com>
3118 * valops.c (value_of_local): Restore quotes in error message.
3120 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3122 * symtab.c (symbol_init_language_specific): New function.
3123 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3124 turning most of it into a function.
3125 (symbol_init_language_specific): Export.
3127 2002-10-23 David Carlton <carlton@math.stanford.edu>
3129 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3130 (dwarf_attr_name): Ditto.
3131 (dwarf_type_encoding_name): Ditto.
3132 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3133 (process_die): Handle DW_TAG_namespace,
3134 DW_TAG_imported_declaration, DW_TAG_imported_module.
3135 (read_namespace): New function.
3137 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3139 * configure.in: Define NEW_PROC_API on Interix too.
3140 * configure: Regenerate.
3142 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3144 * configure: Regenerate using the proper version of autoconf.
3146 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3148 * findvar.c (read_var_value): Temporarily disable TLS code, until
3149 complete TLS support is added.
3151 2002-10-21 Jim Blandy <jimb@redhat.com>
3152 Elena Zannoni <ezannoni@redhat.com>
3154 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3155 for thread local storage locations.
3156 (struct symbol): Add objfile field.
3157 (SYMBOL_OBJFILE): Define.
3158 * dwarf2read.c (is_thread_local): New static variable.
3159 (new_symbol): If variable is in thread local fill in address class
3160 and objfile appropriately.
3161 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3163 * printcmd.c (address_info): Print the information for thread
3164 local storage variable.
3165 * findvar.c (read_var_value): In case of thread local variable,
3166 defer to the target vector code to compute address.
3168 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3170 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3171 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3173 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3175 * symtab.h (address_class): Rename
3176 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3177 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3178 * printcmd.c (address_info): Ditto.
3179 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3181 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3183 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3184 DBREG_DRX macro to acces debug registers.
3186 * Makefile.in (i386obsd-tdep.o): New target.
3188 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3189 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3191 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3192 * config/i386/obsd.mt: New file.
3193 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3194 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3195 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3196 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3197 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3198 * i386obsd-tdep.c: New file.
3200 2002-10-19 Adam Fedor <fedor@gnu.org>
3202 * objc-exp.y (name_not_typename): Fix invalid comment.
3204 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3206 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3207 to allocate partial syms and macro byte caches.
3209 2002-10-18 David Carlton <carlton@math.stanford.edu>
3211 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3213 2002-10-18 Adam Fedor <fedor@gnu.org>
3215 * stabsread.c (find_name_end): New function.
3216 (define_symbol): Use it.
3218 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3220 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3221 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3222 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3223 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3225 2002-10-17 David Carlton <carlton@math.stanford.edu>
3227 * symfile.h: Add opaque declaration for struct obstack.
3228 Declare obsavestring to take a const char *.
3229 * symfile.c (obsavestring): Make first argument a const char *.
3231 2002-10-16 Adam Fedor <fedor@gnu.org>
3233 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3234 names when matching breakpoints in current file.
3236 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3238 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3239 (read_tag_pointer_type): Add address class support.
3240 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3241 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3243 * gdbarch.h, gdbarch.c: Regenerate.
3244 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3245 (make_type_with_address_space, recursive_type_dump): Add address
3247 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3248 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3249 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3251 2002-10-16 Klee Dienes <kdienes@apple.com>
3253 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3254 to get the last character of a char[] buffer, not
3255 name[sizeof(vptr_name)-1].
3257 2002-10-14 Adam Fedor <fedor@gnu.org>
3259 * symtab.h: New objc_specific struct.
3260 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3261 (SYMBOL_DEMANGLED_NAME): Likewise.
3263 2002-10-14 Adam Fedor <fedor@gnu.org>
3265 * symfile.c (init_filename_language_table): Add ObjC file extension.
3267 2002-10-14 Adam Fedor <fedor@gnu.org>
3269 * utils.c (puts_filtered_tabular): New function.
3270 (fprintf_symbol_filtered): Get ObjC demangled name.
3271 * defs.h (puts_filtered_tabular): Declared.
3273 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3275 * c-lang.h (c_type_print_varspec_prefix): Delete.
3276 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3277 ``need_post_space'' parameter. Adjust all callers.
3279 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3281 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3282 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3283 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3284 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3286 2002-10-13 Adam Fedor <fedor@gnu.org>
3288 * source.c (print_source_lines): Update comments.
3290 2002-10-13 Adam Fedor <fedor@gnu.org>
3292 * valops.c (value_of_local): New function.
3293 (value_of_this): Use it.
3294 * value.h (value_of_local): Declared.
3296 2002-10-13 Adam Fedor <fedor@gnu.org>
3298 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3299 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3301 2002-10-12 Adam Fedor <fedor@gnu.org>
3303 * language.c (binop_result_type): Add language_objc to case.
3304 (integral_type): Likewise.
3305 (character_type): Likewise.
3306 (string_type): Likewise.
3307 (boolean_type): Likewise.
3308 (structured_type): Likewise.
3309 (binop_type_check): Likewise.
3311 2002-10-11 Adam Fedor <fedor@gnu.org>
3313 * printcmd.c (address_info): Print 'self' for ObjC.
3315 2002-10-11 Adam Fedor <fedor@gnu.org>
3317 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3320 2002-10-11 Adam Fedor <fedor@gnu.org>
3322 * language.h (CAST_IS_CONVERSION): Add language_objc.
3324 2002-10-11 Adam Fedor <fedor@gnu.org>
3326 * defs.h (enum language): Add language_objc.
3328 2002-10-11 Klee Dienes <kdienes@apple.com>
3330 * corefile.c (read_memory_typed_address): New function.
3331 * gdbcore.h (read_memory_typed_address): Add prototype.
3332 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3333 to read a value destined for a CORE_ADDR, not read_memory_integer.
3334 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3335 (f77_get_dynamic_lowerbound): Ditto.
3337 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3339 * utils.c (string_to_core_addr): After turning string into
3340 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3341 which will do necessary sign-extension, etc.
3343 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3345 * c-exp.y (THIS): Delete token and grammar rule.
3346 (yylex): Don't return THIS.
3347 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3348 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3349 * demangle.c (cplus_markers): Update comment. Put '$'
3350 first. Remove CPLUS_MARKER.
3351 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3352 * jv-exp.y (THIS): Delete token and grammar rule.
3353 (yylex): Don't return THIS.
3354 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3355 * objc-exp.y (THIS): Delete token and grammar rule.
3356 (yylex): Don't return THIS.
3357 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3358 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3359 (read_member_functions): Likewise for opname.
3360 (read_tilde_fields): Use is_cplus_marker.
3362 * defs.h (CPLUS_MARKER): Don't define.
3363 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3364 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3365 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3366 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3367 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3369 * config/i386/tm-i386v4.h: Delete file.
3370 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3371 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3372 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3373 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3374 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3375 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3376 * config/i386/i386v4.mt (TM_FILE): Likewise.
3377 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3379 2002-10-10 Marko Mlinar <markom@opencores.org>
3381 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3382 accidentially not commited 2002-10-09
3383 * gdbarch.h, gdbarch.c: Re-generate.
3385 2002-10-09 Marko Mlinar <markom@opencores.org>
3387 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3388 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3389 * gdbarch.h, gdbarch.c: Re-generate.
3391 2002-10-08 Petr Sorfa <petrs@caldera.com>
3393 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3395 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3396 so we can work on more than one compilation unit at a time. This
3397 helps prepare GDB to handle inter-CU die references.
3398 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3399 the code to be defined before struct comp_unit_head.
3400 (comp_unit_head): Added new members - offset, cu_head,
3401 begin_die, next and dwarf2_abbrevs.
3402 (dwarf2_abbrevs): Removed single static var; now member of
3403 struct comp_unit_head.
3404 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3406 (psymtab_to_symtab_1): Changed to work with the new
3407 struct comp_unit_head.
3408 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3409 constructs the dwarf2_abbrevs[] inside the cu_header.
3410 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3411 dwarf2_abbrev table to clean up.
3412 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3413 handling of dwarf2_abbrevs inside the cu_header.
3414 (read_partial_die): Now supports the call to the new
3415 dwarf2_lookup_abbrev.
3416 (read_full_die): Now supports the call to the new
3417 dwarf2_lookup_abbrev.
3419 2002-10-06 Christopher Faylor <cgf@redhat.com>
3421 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3422 insure that shell variables, such as "transformed_name" are propagated
3423 to later shell statements in rule.
3425 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3427 * config/i386/nm-i386sco.h: Add protection against
3428 multiple-inclusion. Include "i386/nm-i386v.h".
3429 (REGISTER_U_ADDR): Remove define.
3430 (i386_register_u_addr): Remove prototype.
3432 2002-10-04 Michael Snyder <msnyder@redhat.com>
3434 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3435 before treating it as a single-step event.
3437 2002-10-03 Adam Fedor <fedor@gnu.org>
3439 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3440 (objc_demangle): Remove assignment in if statements, Replace
3442 (add_msglist): Likewise.
3443 (end_msglist): Likewise.
3444 (complare_selectors): Likewise.
3445 (selectors_info): Likewise.
3446 (compare_classes): Likewise.
3447 (classes_info): Likewise.
3448 (print_object_command): Likewise.
3449 (find_objc_msgcall_submethod): Replace PTR with void *.
3450 * objc-lang.h: Remove check for __STDC__.
3452 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3454 * ui-out.h (ui_out_field_fmt_int): New prototype.
3455 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3456 of field width and alignment.
3457 * stack.c (print_frame_info_base): When printing frame level, use
3458 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3461 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3463 * MAINTAINERS: Add self to Write After Approval list.
3465 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3467 * infcmd.c (interrupt_target_command_wrapper): Delete.
3468 (interrupt_target_command): Make non static.
3469 (nofp_registers_info): Make static.
3470 * stack.c (return_command_wrapper): Delete.
3471 (return_command): Make non static.
3473 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3475 * event-top.c (gdb_setup_readline): New function. Code moved from
3476 _initialize_event_loop().
3477 (_initialize_event_loop): Call gdb_setup_readline().
3479 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3481 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3482 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3483 * gdbarch.h, gdbarch.c: Re-generate.
3485 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3488 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3490 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3491 of fill_in_vptr_fieldno.
3493 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3495 * inferior.h (registers_info, stepi_command, nexti_command,
3496 continue_command, interrupt_target_command): Export from infcmd.c.
3497 * frame.h (args_info, selected_frame_level_changed_hook,
3498 return_command): Export from stack.c.
3499 * v850ice.c (stepi_command, nexti_command, continue_command): use
3500 prototypes from inferior.h.
3501 * tracepoint.c (registers_info, args_info, locals_info): Use
3502 prototypes from frame.h and inferior.h.
3503 * Makefile.in (mi-main.o): Add dependency on frame.h.
3505 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3507 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3508 value in register 3 adjusted by ppc_gp0_regnum.
3510 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3512 2002-10-02 Marko Mlinar <markom@opencores.org>
3514 * MAINTAINERS: Add myself to the Write After Approval list.
3516 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3518 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3519 of the section for the N64 ABI, fixed.
3521 * config/mips/tm-irix6.h: Include solib.h.
3523 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3525 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3528 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3530 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3531 and that "mi0" syntax has been removed.
3533 2002-09-30 David Carlton <carlton@math.stanford.edu>
3535 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3536 * ppc-sysv-tdep.c: #include "gdb_string.h".
3537 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3540 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3542 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3543 "vrsave"'s register number.
3545 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3547 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3548 use frame_unwind_signed_register to obtain the PC.
3549 (mips_frame_chain): Handle a generic dummy frame.
3550 (mips_init_extra_frame_info): When a generic dummy frame, don't
3551 re-compute the frame base.
3552 (mips_pop_frame): Handle generic dummy frames.
3553 (mips_gdbarch_init): When generic dummy frames, set
3554 use_generic_dummy_frames, push_dummy_frame to
3555 generic_push_dummy_frame, pc_in_call_dummy to
3556 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3557 generic_save_dummy_frame_tos.
3559 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3561 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3562 against TOP when TOP was explictly set.
3563 (generic_push_dummy_frame): Set TOP to zero.
3565 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3567 * event-loop.c (start_event_loop): Rename variable 'result' to
3568 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3570 2002-09-30 Keith Seitz <keiths@redhat.com>
3572 * gdb-events.sh (selected_thread_changed): New event.
3573 * gdb-events.c: Regenerated.
3574 * gdb-events.h: Regenerated.
3576 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3578 * MAINTAINERS: Add self to Write After Approval list.
3580 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3582 * disasm.c: New file.
3583 * disasm.h: New file.
3584 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3585 (compare_lines): Ditto.
3586 (dump_insns): Ditto.
3587 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3589 (do_assembly_only): Ditto.
3590 (do_disassembly): Renamed to gdb_disassembly and moved to
3591 disasm.c. Sdded uiout argument.
3592 * Makefile.in: Add new files. Reorder SFILES list. Update
3593 dependencies. Include libgdb.a later in the insight executable.
3595 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3597 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3598 bfd/elf64-alpha-fbsd.c.
3600 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3602 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3605 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3607 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3609 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3611 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3612 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3613 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3614 (S_msg_sig_post_reply): Ditto.
3616 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3618 * sh-tdep.c (sh_use_struct_convention): Use definition according
3620 (sh_push_arguments): Store in register with correct endianess.
3621 (sh_default_store_return_value): Ditto.
3622 (sh_gdbarch_init): Set sizeof long double to 8.
3624 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3626 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3627 Fix some whitespace problems.
3629 2002-09-27 David Carlton <carlton@math.stanford.edu>
3631 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3632 (mcore-tdep.o): Ditto.
3633 (ns32k-tdep.o): Ditto.
3634 (ns32knbsd-tdep.o): Ditto.
3636 (vax-tdep.o): Ditto.
3637 * cris-tdep.c: #include "gdb_string.h"
3638 * mcore-tdep.c: Ditto.
3639 * ns32k-tdep.c: Ditto.
3640 * ns32knbsd-tdep.c: Ditto.
3642 * vax-tdep.c: Ditto.
3644 2002-09-27 David Carlton <carlton@math.stanford.edu>
3646 * config/djgpp/fnchange.lst: Add entries for
3647 gdb/testsuite/gdb.c++/m-static files.
3649 2002-09-27 Jim Wilson <wilson@redhat.com>
3651 * MAINTAINERS: Add myself to the Write After Approval list.
3653 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3655 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3658 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3660 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3663 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3665 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3666 (rs6000_struct_return_address): Delete variable.
3667 (rs6000_store_struct_return): Update.
3668 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3669 deprecated_extract_struct_value_address.
3670 (rs6000_frame_align): New function.
3671 (rs6000_gdbarch_init): Set frame_align.
3673 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3675 From Grace Sainsbury <graces@redhat.com>:
3676 * Makefile.in (gdbtk-main.o): New target.
3677 (gdb.o): New target.
3679 (main.o): Update dependencies.
3680 (gdb$(EXEEXT)): Add gdb.o.
3681 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3682 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3683 (SUBDIR_GDBTK_CLEAN): Set.
3684 (install-gdbtk): Install the insight binary.
3685 (uninstall-gdbtk): New target.
3686 (all-gdbtk, clean-gdbtk): New rule.
3687 * top.c (use_windows): Default to zero.
3688 * main.c: Include "main.h".
3690 (struct captured_main_args): Delete.
3691 (gdb_main): New function.
3695 2002-09-25 Andrew Cagney <cagney@redhat.com>
3697 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3698 (frame_map_regnum_to_name): New function.
3699 (frame_map_name_to_regnum): New function.
3700 * frame.h (frame_map_name_to_regnum): Declare.
3701 (frame_map_regnum_to_name): Declare.
3702 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3703 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3704 * parse.c: Do not include "builtin-regs.h".
3705 (target_map_name_to_register): Delete function.
3706 (write_dollar_variable): Use frame_map_name_to_regnum.
3707 * parser-defs.h (target_map_name_to_register): Delete declaration.
3708 * expprint.c: Include "frame.h".
3709 (print_subexp): Use frame_map_regnum_to_name.
3710 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3711 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3713 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3715 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3716 wasn't saved, and the next innermost frame is a dummy, return the
3717 dummy frame's link register.
3719 2002-09-24 Jim Blandy <jimb@redhat.com>
3721 Fix from Paul Breed:
3722 * main.c (captured_main): Add a `break' after the case for 'b'.
3724 2002-09-24 Keith Seitz <keiths@redhat.com>
3726 * varobj.c (c_type_of_child): Use get_target_type instead
3727 of TYPE_TARGET_TYPE.
3729 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3731 * source.c (get_current_or_default_source_symtab_and_line): Remove
3733 (set_default_source_symtab_and_line): New function. Attempts to
3734 determine a source file to list lines from if one is not currently
3736 (get_current_source_symtab_and_line): Initialize sal.pc and
3738 (set_current_source_symtab_and_line): Mark argument as const.
3739 * source.h: Update declarations and comments.
3740 * linespec.c (decode_line_1): Replace call to removed routine above.
3741 * stack.c (print_frame_info_base): Ditto.
3742 * cli/cli-cmds.c (edit_command): Ditto.
3743 (list_command): Ditto.
3745 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3747 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3748 sal.pc and sal.end fields.
3749 (get_current_or_default_source_symtab_and_line): Ditto.
3750 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3751 so we do not cause a new source symtab to be searched for (reverting an
3752 unintentional change from the 2002-09-20 patch).
3753 * scm-lang.c (scm_unpac): Ditto.
3755 2002-09-21 Andrew Cagney <cagney@redhat.com>
3757 * complaints.c (symfile_explanations): Remove new-line from
3758 ``isolated_message''.
3759 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3760 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3762 2002-09-20 Nick Clifton <nickc@redhat.com>
3764 * NEWS: Announce that V850EA ISA is no longer supported.
3765 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3767 2002-09-20 David Carlton <carlton@math.stanford.edu>
3769 * Makefile.in (c-lang.o): Correct dependencies.
3770 (utils.o): Gather dependencies.
3772 * c-lang.c: #include "gdb_string.h"
3774 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3776 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3777 * cli/cli-cmds.c (list_command): New function. Implements the new
3779 (_init_cli_cmds): Add new command definition.
3780 * gdb.1: Document edit command.
3781 * doc/gdb.texinfo: Document edit command.
3783 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3785 * source.c: Make global variables current_source_symtab and
3786 current_source_line static.
3787 (list_command): Moved to cli/cli-cmds.c.
3788 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3789 (get_first_line_listed): New accessor function.
3790 (get_lines_to_list): New accessor function.
3791 (get_current_source_symtab_and_line): New function. Retrieves the
3792 position in the source code that we consider current.
3793 (get_current_or_default_source_symtab_and_line): New function.
3794 Like the above but attempts to determine a default position if one
3795 is not currently defined.
3796 (set_current_source_symtab_and_line): New function. Sets the source
3797 code position considered current and returns the previously set one.
3798 (clear_current_source_symtab_and_line): Reset stored information about
3799 a current source line.
3800 (_initialize_source): Remove registration for the "list" command and
3802 * source.h: Add declarations for the new functions above.
3803 * symtab.h: Remove declarations for the global variables mentioned
3805 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3806 obtain current source line.
3807 * linespec.c (decode_line_1): Ditto.
3808 * macroscope.c (default_macro_scope): Ditto.
3809 * scm-lang.c (scm_unpac): Ditto.
3810 * stack.c (print_frame_info_base): Ditto.
3811 * symfile.c (clear_symtab_users): Ditto.
3812 * symtab.c (decode_line_spec): Ditto.
3813 * cli/cli-cmds.c (list_command): Moved here from source.c.
3814 (ambiguous_line_spec): Moved here from source.c.
3815 (_init_cli_cmds): Add definition for "list" and its alias.
3816 * Makefile.in: Update dependencies.
3818 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3820 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3821 with what gcc thinks is correct.
3823 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3825 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3826 multiple register push instruction.
3828 2002-09-19 Jim Blandy <jimb@redhat.com>
3830 Add support for distinct host and target character sets.
3831 * charset.c, charset.h: New files.
3832 * c-exp.y: #include "charset.h".
3833 (yylex): Convert character and string literals to the target
3834 character set, before returning them as the semantic value of the
3836 * c-lang.c: #include "charset.h".
3837 (c_emit_char): Use charset-specific methods to recognize
3838 characters with backslash escape forms, to decide which characters
3839 to print literally and which to print using numeric escape
3840 sequences, and to convert target characters to host characters
3842 * utils.c: #include "charset.h".
3843 (no_control_char_error): New function.
3844 (parse_escape): Use charset-specific methods to recognize
3845 backslash escapes, parse `control character' notation, and convert
3846 characters from the host character set to the target character set.
3847 * configure.in: Set the default host character set.
3848 Check where to find iconv, and what its argument types might be.
3849 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3850 * Makefile.in (SFILES): List charset.c.
3851 (COMMON_OBS): List charset.o.
3852 (charset.o): New rule.
3853 (charset_h): New header dependency variable.
3854 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3855 (LIBICONV): New variable, set by configure.
3856 (CLIBS): Include $(LIBICONV) here.
3857 * aclocal.m4, config.in, configure: Regenerated.
3859 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3861 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3864 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3866 * gdb_mbuild.sh: New file.
3868 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3870 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3872 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3874 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3875 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3876 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3877 valops.c, value.h: Revert previous change.
3879 2002-09-18 Michael Snyder <msnyder@redhat.com>
3881 Preliminary support for Objective-C:
3882 * defs.h (language_objc): New enum value.
3883 (puts_filtered_tabular): Declaration only, exported from utils.c.
3884 (skip_quoted): Delete, declared in completer.h.
3885 * c-exp.y: Include completer.h.
3888 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3889 New operator enum values.
3890 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3891 * language.c (binop_result_type): Handle language_objc case.
3892 (integral_type, character_type, string_type, boolean_type,
3893 structured_type, binop_type_check): Ditto.
3894 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3895 (struct objc_specific): Add to general_symbol_info.
3896 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3897 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3898 * parser-defs.h (struct objc_class_str): New struct type.
3899 (start_msglist, end_msglist, add_msglist): Declaration only,
3900 exported from objc-lang.c.
3901 * value.h (value_of_local, value_nsstring,
3902 call_function_by_hand_expecting_type): Exported from valops.c.
3903 * valops.c (find_function_addr): Export.
3904 (call_function_by_hand_expecting_type): New function.
3905 (value_of_local): New function.
3906 * symfile.c (init_filename_language_table): Add ".m" extension
3908 * utils.c (puts_filtered_tabular): New function.
3909 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3910 (set/show demangle): Extend help-string to refer to ObjC.
3911 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3912 * stabsread.c (symbol_reference_defined): Objective-C symbols
3913 may contain colons: make allowances when scanning stabs strings
3915 (objc_find_colon): New function.
3916 * printcmd.c (address_info): If language == objc then print
3917 "self" instead of "this".
3918 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3919 OP_NSSTRING, and OP_SELF.
3920 (prefixify_subexp): Ditto.
3921 * source.c (print_source_lines): Mention objc in comment.
3922 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3925 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3927 * complaints.h: Update copyright.
3928 (struct complaints): Declare.
3929 (struct complaint): Make `message' constant.
3930 (internal_complaint): Declare.
3931 (complaint): Declare.
3932 (complaint_root): Delete declaration.
3933 (symfile_complaints): Delete declaration.
3934 (struct complaints): Add opaque declaration.
3935 (clear_complaints): Add a complaints parameter.
3936 * complaints.c: Update copyright.
3937 (enum complaint_series): Define.
3938 (complaint_root): Delete.
3939 (struct complaints): Define.
3940 (complaint_sentinel, symfile_complaint_book): New variables.
3941 (symfile_explanations, symfile_complaints): New variables.
3943 (get_complaints): New function.
3944 (vcomplaint): New function.
3945 (complaint): New function.
3946 (internal_complaint): New function.
3947 (complain): Call vcomplain with symfile_complaint.
3948 (clear_complaints): Rewrite.
3949 (_initialize_complaints): Use add_setshow_command.
3950 * Makefile.in (complaints.o): Update dependencies.
3951 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3952 to call to clear_complaints.
3953 (new_symfile_objfile, reread_symbols): Ditto.
3954 (oldsyms_complaint): Delete.
3955 (empty_symtab_complaint, unknown_option_complaint): Delete.
3956 (free_named_symtabs): Use complaint instead of complain.
3958 2002-09-18 Michael Snyder <msnyder@redhat.com>
3960 Contributed by Apple Computer, Inc. Merged with current sources
3961 by Adam Fedor <fedor@doc.com> [cagney].
3963 * objc-lang.c: First clean-up round: comments, indentation.
3964 * objc-lang.h: Ditto.
3965 * objc-lang.y: Ditto.
3967 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3969 * maint.c (maintenance_internal_error): Print the parameter as the
3971 (maintenance_internal_warning): New function.
3972 (_initialize_maint_cmds): Add command `maint internal-warning'.
3974 * defs.h (internal_warning, internal_vwarning): Declare.
3975 * utils.c (struct internal_problem): Define.
3976 (internal_vproblem): New function.
3977 (internal_warning): New function.
3978 (internal_vwarning): New function.
3979 (internal_warning_problem, internal_error_problem): New variables.
3980 (internal_verror): Just call internal_vproblem.
3982 2002-09-18 Michael Snyder <msnyder@redhat.com>
3984 * objc-lang.c: New file, support for Objective-C.
3985 Preliminary check-in, not yet integrated into gdb.
3986 * objc-lang.h: New file.
3987 * objc-exp.y: New file.
3989 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3991 * infrun.c (signal_stop_update): Convert definition to ISO C.
3992 (signal_print_update): Ditto.
3993 (signal_pass_update): Ditto.
3994 * inflow.c (terminal_save_ours): Ditto.
3996 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3999 * config/djgpp/fnchange.lst: Handle name clashes between
4000 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4003 * i386-linux-tdep.h: Fix tipo.
4005 2002-09-18 Adam Fedor <fedor@gnu.org>
4007 * MAINTAINERS: Add myself to the Write After Approval list.
4009 2002-09-18 Jim Blandy <jimb@redhat.com>
4011 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4012 texthigh and textlow to reader-specific structs caused
4013 objfile_relocate to miss them. This is fixable, but the work that
4014 the change was supposed to prepare GDB for never got done anyway.
4016 2002-09-18 David Carlton <carlton@math.stanford.edu>
4018 * MAINTAINERS: Alphabetize Write After Approval list.
4020 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4023 * values.c (value_static_field): Call read_var_value.
4025 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4027 * valops.c (hand_function_call): Align the initial stack pointer
4028 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4029 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4031 * mips-tdep.c (mips_frame_align): New function.
4032 (mips_gdbarch_init): Set frame_align.
4033 * gdbarch.sh (FRAME_ALIGN): New method.
4034 * gdbarch.h, gdbarch.c: Re-generate.
4036 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4038 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4041 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4043 * NEWS: Mention that MIPS $fp behavior changed.
4044 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4045 reference to FP_REGNUM.
4046 (mipsnbsd_cannot_store_register): Ditto.
4047 * mips-linux-nat.c: Update copyright.
4048 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4049 (mips_linux_cannot_store_register): Ditto.
4050 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4051 * config/mips/tm-mips.h: Update copyright.
4052 (FP_REGNUM): Delete macro.
4053 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4054 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4055 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4056 (mips_r3041_reg_names, mips_r3051_reg_names)
4057 (mips_r3081_reg_names): Replace "fp" with "".
4060 2002-09-17 Theodore A. Roth <troth@verinet.com>
4062 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4063 generic_read_register_dummy() (PR gdb/703).
4064 (avr_push_return_address): #if 0 out unused vars.
4065 (avr_gdbarch_init): Enable use of avr_push_return_address().
4067 2002-09-17 Michael Snyder <msnyder@redhat.com>
4069 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4070 RTE will take care of it.
4072 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4074 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4075 invalid, return SP_REGNUM.
4077 2002-09-17 Michael Snyder <msnyder@redhat.com>
4079 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4080 point registers without sign extension.
4082 2002-09-17 Andrew Cagney <cagney@redhat.com>
4084 * blockframe.c (deprecated_read_register_dummy): Rename
4085 generic_read_register_dummy.
4086 * frame.c (frame_unwind_signed_register): New function.
4087 (frame_unwind_unsigned_register): New function.
4088 * frame.h (frame_unwind_signed_register): Declare.
4089 (frame_unwind_unsigned_register): Declare.
4090 (deprecated_read_register_dummy): Rename
4091 generic_read_register_dummy.
4093 * h8300-tdep.c (h8300_frame_chain): Update.
4094 (h8300_frame_saved_pc): Update.
4095 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4096 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4097 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4098 (s390_frame_chain): Update.
4099 * v850-tdep.c (v850_find_callers_reg): Update.
4100 (v850_frame_saved_pc): Update.
4101 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4102 (m32r_find_callers_reg): Update.
4103 (m32r_frame_saved_pc): Update.
4104 * sh-tdep.c (sh_find_callers_reg): Update.
4105 (sh64_get_saved_pr): Update.
4106 (sh_init_extra_frame_info): Update.
4107 (sh_init_extra_frame_info): Update.
4108 (sh64_init_extra_frame_info): Update.
4109 (sh64_init_extra_frame_info): Update.
4110 * mcore-tdep.c (mcore_find_callers_reg): Update.
4111 (mcore_frame_saved_pc): Update.
4112 (mcore_init_extra_frame_info): Update.
4113 * i386-tdep.c (i386_frame_saved_pc): Update.
4114 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4115 (ia64_init_extra_frame_info): Update.
4116 (ia64_init_extra_frame_info): Update.
4117 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4118 * cris-tdep.c (cris_init_extra_frame_info): Update.
4119 * avr-tdep.c (avr_frame_chain): Update.
4120 (avr_init_extra_frame_info): Update.
4121 (avr_frame_saved_pc): Update.
4122 * arm-tdep.c (arm_find_callers_reg): Update.
4123 (arm_init_extra_frame_info): Update.
4124 (arm_frame_saved_pc): Update.
4126 2002-09-17 Tom Tromey <tromey@redhat.com>
4128 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4131 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4133 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4134 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4136 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4139 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4141 * osfsolib.c: Remove file, replaced by solib-osf.c.
4142 * Makefile.in: Remove compilation rules for osfsolib.c.
4144 2002-09-16 David Carlton <carlton@math.stanford.edu>
4146 * cp-valprint.c (cp_print_class_method): Correct args to
4147 check_stub_method_group.
4149 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4151 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4152 `set architecture'. Unify naming convention of functions.
4153 (h8300_skip_prologue): Improve prologue analysis.
4154 (h8300_push_arguments): Rewritten to more closely match GCC's
4155 bizarre argument-passing behavior, along with the comment describing
4157 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4158 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4159 sim, remote-e7000.c, remote-hms.c and remote.c
4161 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4163 * i386-tdep.c (gdb_print_insn_i386): Removed.
4164 (i386_print_insn): New function.
4165 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4166 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4169 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4171 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4174 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4176 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4177 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4178 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4180 2002-09-13 Christopher Faylor <cgf@redhat.com>
4182 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4184 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4186 * gdbtypes.c (check_stub_method): Make static.
4187 (check_stub_method_group): New function.
4188 * gdbtypes.h: Update prototypes.
4189 * cp-support.c: New file.
4190 * cp-support.h: New file.
4192 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4193 (update_method_name_from_physname): New function.
4194 (read_member_functions): Correct method names for operators
4195 and v3 constructors/destructors. Separate v2 constructors and
4197 * Makefile.in (stabsread.o): Update dependencies.
4198 (SFILES): Add cp-support.c.
4199 (COMMON_OBS): Add cp-support.o.
4200 (cp_support_h, cp-support.o): Add.
4202 * cp-valprint.c (cp_print_class_method): Call
4203 check_stub_method_group instead of check_stub_method. Remove
4205 * p-valprint.c (pascal_object_print_class_method): Likewise.
4206 * valops.c (search_struct_method): Likewise.
4207 (find_method_list, value_struct_elt_for_reference): Likewise.
4209 2002-09-13 Andrew Cagney <cagney@redhat.com>
4211 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4212 * gdbarch.h, gdbarch.c: Regenerate.
4214 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4216 * frame.c (find_saved_register): Delete function.
4217 * frame.h (find_saved_register): Delete declaration.
4220 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4222 * mips-tdep.c (read_next_frame_reg): Re-hack using
4223 frame_register_unwind.
4225 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4227 * mips-tdep.c (mips_get_saved_register): Re-hack using
4228 frame_register_unwind.
4230 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4232 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4233 vector. Will be useful for Interix.
4234 * gdbarch.h, gdbarch.c: Regenerate.
4236 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4237 name of the malloc function by NAME_OF_MALLOC.
4239 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4241 * value.h (find_function_in_inferior): Add const keyword to
4242 one of the parameters. Allows us to invoke this function with
4244 * valops.c (find_function_in_inferior): Likewise.
4246 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4248 * exec.c (xfer_memory): Fix compilation warning with old versions
4250 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4252 2002-09-12 David Carlton <carlton@math.stanford.edu>
4254 * symtab.h: Run through gdb_indent.h.
4255 Add 2002 to Copyright year list.
4257 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4259 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4261 * MAINTAINERS: Add myself to write after approval list.
4263 2002-09-11 J. Brobecker <brobecker@gnat.com>
4265 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4267 2002-09-11 J. Brobecker <brobecker@gnat.com>
4269 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4272 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4274 * procfs.c (do_detach): Clear current signal, not just fault.
4275 Corrects problem with breakpoint trap signal leaking to detached
4278 2002-09-10 Michael Snyder <msnyder@redhat.com>
4280 * buildsym.c (finish_block): Protect against null pointer.
4282 2002-09-10 Andrew Cagney <cagney@redhat.com>
4284 * infcmd.c (default_print_registers_info): Send all output to
4285 ``file'' instead of ``gdb_stdout''.
4287 2002-09-10 Michael Snyder <msnyder@redhat.com>
4289 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4290 LONGEST, and use signed register read (addresses are sign-
4293 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4295 * event-loop.c (gdb_do_one_event): Make public.
4296 * event-loop.h (gdb_do_one_event): Declare.
4298 2002-09-10 Jeff Law <law@redhat.com>
4300 * infttrace.c (child_resume): Simplify and rework to avoid
4303 2002-09-09 Fred Fish <fnf@intrinsity.com>
4305 * printcmd.c (print_scalar_formatted): "len" is the number of
4306 target bytes, NOT the number of target bits.
4308 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4310 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4311 * top.c (init_main): Set rl_terminal_name.
4313 2002-09-08 Aidan Skinner <aidan@velvet.net>
4315 * ada-lang.c (ada_array_bound, ada_type_match,
4316 _initialize_ada_language): Fix K&R definitions.
4317 * ada-tasks.c (get_current_task): Fix K&R definitions.
4318 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4320 2002-09-07 Christopher Faylor <cgf@redhat.com>
4322 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4325 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4327 * i386-tdep.c (i386_register_virtual_type,
4328 i386_register_convertible, i386_register_convert_to_virtual,
4329 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4330 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4331 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4332 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4333 Don't set push_arguments twice.
4335 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4336 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4337 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4338 sigtramp_end to NULL.
4339 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4341 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4343 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4346 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4347 * gdbarch.h, gdbarch.c: Re-generate.
4348 * blockframe.c (find_pc_sect_partial_function): Convert to use
4349 SIGTRAMP_START_P predicate.
4351 2002-09-05 Michael Snyder <msnyder@redhat.com>
4353 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4354 generic_dummy_frame method and old method. Also distinguish
4355 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4356 (arm_extract_return_value): Use new regcache method.
4358 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4359 adjustment that doesn't conform to the ABI.
4360 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4361 saved regcache, not from current regcache.
4363 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4365 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4368 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4370 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4371 if arm_apcs_32 is false.
4373 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4375 GDB 5.3 branch created.
4377 2002-09-03 Theodore A. Roth <troth@verinet.com>
4379 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4380 generic_unwind_get_saved_register.
4382 2002-09-03 David Carlton <carlton@math.stanford.edu>
4384 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4385 argument (PR gdb/653). Update call to smash_to_method_type.
4386 (read_structure_scope): Update call to dwarf2_add_member_fn.
4388 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4390 * x86-64-linux-tdep.c: Include gdb_string.h
4391 * x86-64-linux-nat.c: Ditto.
4393 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4395 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4396 when YYDEBUG is set to 1.
4397 * c-exp.y: Likewise.
4398 * f-exp.y: Likewise.
4399 * jv-exp.y: Likewise.
4400 * m2-exp.y: Likewise.
4401 * p-exp.y: Likewise.
4403 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4405 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4407 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4408 solib_svr4_fetch_link_map_offsets to
4409 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4410 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4411 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4412 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4413 solib-svr4.o, and solib-legacy.o.
4414 * config/i386/tm-nbsd.h: Include solib.h.
4416 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4418 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4419 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4420 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4421 comment noting that this needs its own target configuration.
4422 * config/i386/nbsd.mt: New file.
4423 * config/i386/nbsdaout.mt: Remove.
4424 * config/i386/nbsdelf.mt: Ditto.
4425 * config/i386/tm-nbsdaout.h: Ditto.
4427 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4429 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4430 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4431 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4433 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4434 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4437 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4439 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4440 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4441 * i386-tdep.h (i386bsd_init_abi): New prototype.
4442 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4443 function declaration.
4444 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4445 for NetBSD-a.out or NetBSD-ELF.
4446 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4447 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4448 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4449 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4451 (i386nbsd_pc_in_sigtramp): New function.
4452 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4453 i386nbsd_pc_in_sigtramp.
4454 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4455 and i386nbsdelf_init_abi OS ABI handlers.
4456 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4457 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4459 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4461 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4462 registers if the target really has them.
4464 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4466 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4469 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4471 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4473 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4474 (alphanbsd_skip_sigtramp_frame): New functions.
4475 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4476 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4477 to alphanbsd_sigcontext_addr.
4479 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4481 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4483 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4484 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4485 nbsd_pc_in_sigtramp.
4486 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4487 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4488 * nbsd-tdep.c: Include gdb_string.h.
4489 (nbsd_pc_in_sigtramp): New function.
4490 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4491 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4492 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4493 ppcnbsd_pc_in_sigtramp.
4494 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4495 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4496 shnbsd_pc_in_sigtramp.
4497 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4498 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4499 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4501 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4503 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4504 watchpoints to NULL.
4505 (insert_breakpoints): set val field of watchpoints if NULL.
4508 2002-08-29 Jim Blandy <jimb@redhat.com>
4510 * symtab.c (lookup_symbol_aux): In the cases where we find a
4511 minimal symbol of an appropriate name and use its address to
4512 select a symtab to read and search, use `name' (as passed to us)
4513 as the demangled name when searching the symtab's global and
4514 static blocks, not the minsym's name.
4516 2002-08-29 Keith Seitz <keiths@redhat.com>
4518 * stack.c (print_frame_info_base): Always set current_source_symtab
4519 and current_source_line.
4521 2002-08-29 Donn Terry <donnte@microsoft.com>
4523 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4525 2002-08-28 Keith Seitz <keiths@redhat.com>
4527 * stack.c (select_frame): Add FIXME concerning selected-frame
4529 (select_frame_command): Send selected-frame-level-changed
4530 event notification, but only if the level actually changed.
4531 (up_silently_base): Add selected-frame-level-changed event
4533 (down_silently_base): Likewise.
4535 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4537 * Makefile.in: Update dependencies for all gdb/*.c files.
4539 2002-08-27 Tom Tromey <tromey@redhat.com>
4541 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4542 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4543 Update dependencies.
4544 * i387-tdep.c: Include gdb_string.h.
4545 * osabi.c: Likewise.
4546 * i386-linux-nat.c: Likewise.
4547 * lin-lwp.c: Likewise.
4548 * ax-gdb.c: Likewise.
4549 * signals/signals.c: Likewise.
4550 * jv-valprint.c: Likewise.
4551 * p-lang.c: Likewise.
4552 * c-valprint.c: Likewise.
4553 * cp-abi.c: Likewise.
4555 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4557 * cli/cli-script.h (copy_command_lines): Export.
4558 * breakpoint.c: Include cli/cli-script.h.
4559 * Makefile.in (breakpoint.o): Update dependencies.
4561 2002-08-26 Michael Snyder <msnyder@redhat.com>
4563 * breakpoint.c (insert_breakpoints): Protect all references
4564 to 'process_warning'. Shorten long lines.
4566 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4568 * cli/cli-script.c (copy_command_lines): New function.
4569 * defs.h (copy_command_lines): Export.
4570 * testsuite/gdb.base/commands.exp: New tests for commands
4571 attached to a temporary breakpoint, and for commands that
4572 delete the breakpoint they are attached to.
4574 2002-08-26 Michael Snyder <msnyder@redhat.com>
4576 * breakpoint.c (bpstat_stop_status): Instead of copying the
4577 pointer to the breakpoint commands struct, make a new copy
4578 of the struct and point to that.
4579 (bpstat_clear): Free the commands struct.
4580 (bpstat_clear_actions): Free the commands struct.
4581 (bpstat_do_actions): Free the command actions. Also execute
4582 the local cleanups, instead of deleting them.
4583 (delete_breakpoint): Leave the commands field of the bpstat
4584 chain alone -- it will be freed later.
4586 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4588 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4589 deleted in 2002-08-20 commit. This function is still used by
4592 2002-08-26 Keith Seitz <keiths@redhat.com>
4594 * gdb-events.sh: Add selected-frame-level-changed event.
4595 * gdb-events.c: Regenerated.
4596 * gdb-events.h: Regenerated.
4598 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4601 * inflow.c (terminal_save_ours): New function to save terminal
4603 * inferior.h (terminal_save_ours): Declare.
4604 * target.c (debug_to_terminal_save_ours): New function.
4605 (cleanup_target): Defaults to_terminal_save_ours.
4606 (update_current_target): Inherit to_terminal_save_ours.
4607 (setup_target_debug): Set to_terminal_save_ours.
4608 * target.h (target_terminal_save_ours): New to save terminal settings.
4609 (target_ops): New member to_terminal_save_ours.
4610 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4611 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4612 * inftarg.c (init_child_ops): Likewise.
4613 * m3-nat.c (init_m3_ops): Likewise.
4614 * procfs.c (init_procfs_ops): Likewise.
4615 * wince.c (init_child_ops): Likewise.
4616 * win32-nat.c (init_child_ops): Likewise.
4617 * sol-thread.c (init_sol_thread_ops): Likewise.
4619 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4621 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4622 use regcache_* functions.
4623 (i386_gdbarch_init): Set store_return_value instead of
4624 deprecated_store_return_value.
4626 * regcache.c (regcache_raw_write_signed,
4627 regcache_raw_write_unsigned): New functions.
4628 * regcache.h (regcache_raw_write_signed,
4629 regcache_raw_write_unsigned): New prototypes.
4631 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4633 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4634 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4635 source file dependencies. Cleanup corresponding generator rules.
4637 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4639 * regcache.h (register_offset_hack): Declare.
4640 (regcache_cooked_read_using_offset_hack): Declare.
4641 (regcache_cooked_write_using_offset_hack): Declare.
4643 * regcache.c (register_offset_hack): New function.
4644 (regcache_cooked_read_using_offset_hack): New function.
4645 (regcache_cooked_write_using_offset_hack): New function.
4646 (regcache_dump): Check that the registers, according to their
4647 offset, are packed hard against each other.
4648 (cooked_xfer_using_offset_hack): New function.
4650 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4652 * regcache.c (struct regcache_descr): Add field register_type.
4653 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4655 (init_regcache_descr): Initialize register_type. Pass the descr
4656 to init_legacy_regcache_descr. Use register_type instead of
4657 REGISTER_VIRTUAL_TYPE.
4658 (register_type): New function.
4659 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4660 * regcache.h (register_type): Declare.
4662 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4664 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4665 instead of deprecated_store_return_value. Fix fallout from
4666 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4668 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4670 * regcache.c (max_register_size): New function.
4671 (init_legacy_regcache_descr): Ensure that max_register_size is
4672 large enough for REGISTER_VIRTUAL_SIZE.
4673 * regcache.h (max_register_size): Declare.
4675 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4677 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4679 (e500_extract_return_value): Change type of valbuf pointer to
4682 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4684 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4687 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4688 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4689 long long) to prevent compiler warning on 64-bit systems.
4691 2002-08-23 Andrew Cagney <cagney@redhat.com>
4693 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4694 (DEPRECATED_STORE_RETURN_VALUE): New method.
4695 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4696 * gdbarch.h, gdbarch.c: Re-generate.
4698 * values.c (set_return_value): Pass current_regcache to
4700 * arch-utils.h (legacy_store_return_value): Declare.
4701 * arch-utils.c (legacy_store_return_value): New function.
4702 (legacy_extract_return_value): Update parameters.
4704 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4706 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4707 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4708 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4709 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4710 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4711 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4712 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4713 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4714 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4715 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4718 * i386-tdep.c (i386_extract_return_value): Update.
4719 * arch-utils.c (legacy_extract_return_value): Update.
4720 * frv-tdep.c (frv_gdbarch_init): Update.
4721 * cris-tdep.c (cris_gdbarch_init): Update.
4722 * d10v-tdep.c (d10v_gdbarch_init): Update.
4723 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4724 * m68k-tdep.c (m68k_gdbarch_init): Update.
4725 * mcore-tdep.c (mcore_gdbarch_init): Update.
4726 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4727 * s390-tdep.c (s390_gdbarch_init): Update.
4728 * sparc-tdep.c (sparc_gdbarch_init): Update.
4729 * sh-tdep.c (sh_gdbarch_init): Update.
4730 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4731 * v850-tdep.c (v850_gdbarch_init): Update.
4732 * avr-tdep.c (avr_gdbarch_init): Update.
4733 * ia64-tdep.c (ia64_gdbarch_init): Update.
4734 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4735 * vax-tdep.c (vax_gdbarch_init): Update.
4736 * alpha-tdep.c (alpha_gdbarch_init): Update.
4737 * arm-tdep.c (arm_gdbarch_init): Update.
4738 * mips-tdep.c (mips_gdbarch_init): Update.
4739 * i386-tdep.c (i386_gdbarch_init): Update.
4741 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4743 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4744 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4746 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4748 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4751 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4753 * infrun.c (handle_inferior_event): Move a comment outside of a
4754 function call, in order to avoid indent reformatting this part
4755 of the code in an unreadable way.
4757 2002-08-23 Grace Sainsbury <graces@redhat.com>
4759 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4760 when breakpoints fail. Move general breakpoint error messages to
4762 * breakpoint.c (insert_breakpoints): Change warnings when
4763 breakpoints are nto inserted to specify the type. Remove call to
4764 memory_error when hardware breakpoints can't be inserted. Remove
4765 multiple calls to warning so all messages are sent to the user at
4767 (delete_breakpoints): Make insert error messsages more explicit.
4769 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4771 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4772 gdbserver/ChangeLog.
4774 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4776 * i386-tdep.c: Include "objfiles.h".
4777 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4778 skip_trampoline_code.
4779 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4780 (CPLUS_MARKER): Define to '.'.
4782 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4784 (linux_corefile_thread_callback): Increase args->num_notes.
4785 (linux_make_note_section): Initialize thread_args.num_notes, and
4786 use it to determine whether notes for any threads were created.
4788 2002-08-23 Donn Terry <donnte@microsoft.com>
4790 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4791 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4793 (write_with_trace): Conditionalize out the switch branch handling
4794 PCSHOLD if the corresponding macro is not defined. Likewise for
4795 PRSABORT and PRSTOP.
4796 This change will be needed by the Interix port.
4798 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4800 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4801 write_register wherever possible instead of manipulating the
4802 register bytes directly.
4803 Assign VALUE_CONTENTS to a variable and use that.
4804 The GPR numbers are now dependent on the architecture.
4806 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4808 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4810 (skip_prologue): Add support for BookE/e500 instructions.
4811 (e500_extract_return_value): New function.
4812 (frame_get_saved_regs): Add support for saving ev registers and
4814 (e500_store_return_value): New function.
4815 (rs6000_gdbarch_init): Move up default intializations of
4816 deprecated_extract_return_value and store_return_value. Overwrite
4817 init of store_return_value with e500 specific version.
4818 Set extract_return_value for e500.
4820 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4822 * blockframe.c (generic_call_dummy_register_unwind): Use
4823 regcache_cooked_read to catch cases in which the variable is
4824 stored in a pseudo register.
4826 2002-08-22 Andrew Cagney <cagney@redhat.com>
4828 * NEWS: Mention that the i960 has been made obsolete.
4829 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4831 (remote-nrom.o): Obsolete target.
4832 (remote-nindy.o, i960-tdep.o): Ditto.
4833 * remote-nrom.c: Make file obsolete.
4834 * remote-nindy.c, remote-vx960.c: Ditto.
4835 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4836 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4837 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4838 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4839 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4840 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4841 i960-*-vxworks* obsolete.
4842 * MAINTAINERS: Note that the i960 is obsolete.
4844 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4846 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4847 detach to allow reinitialization.
4849 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4851 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4854 2002-08-22 Jim Blandy <jimb@redhat.com>
4856 * coffread.c (coff_symfile_read): Don't try to read the line
4857 number table from disk if the image file doesn't have a symbol
4858 table; we'll never actually look at the info anyway, and Windows
4859 ships DLL's with bogus file offsets for the line number data.
4861 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4863 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4866 2002-08-21 Michael Snyder <msnyder@redhat.com>
4868 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4869 (MSYMBOL_SIZE): Replace macro with function.
4870 (DEFAULT_MIPS_TYPE): Delete unused macro.
4871 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4872 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4874 2002-08-21 Jim Blandy <jimb@redhat.com>
4876 * valops.c (value_cast): Simplify and correct logic for doing a
4877 static cast from a pointer to a base class to a pointer to a
4880 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4882 * infcmd.c (default_print_registers_info): Replace
4884 (registers_info): Use gdbarch_print_registers_info instead of
4886 * inferior.h (default_print_registers_info): Replace
4888 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4889 (DO_REGISTERS_INFO): Change to a predicate function.
4890 * gdbarch.h, gdbarch.c: Regenerate.
4892 2002-08-21 Keith Seitz <keiths@redhat.com>
4894 * gdb-events.sh: Add target-changed event.
4895 * gdb-events.c: Regenerated.
4896 * gdb-events.c: Regenerated.
4897 * valops.c (value_assign): Add target-changed event notification
4898 to inlval_register, lval_memory, and lval_reg_frame_relative.
4900 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4902 * NEWS: Add an entry regarding the improvement of the next/step
4903 operation on Alpha Tru64 multi-processor machines.
4905 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4907 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4909 * Makefile.in: Update all _h macro definitions.
4910 * Makefile.in (install-gdbtk): Move to install section.
4911 (rdi-share/libangsd.a): Move to end of file.
4913 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4915 * frame.c (frame_register_unwind): When a register, set addrp to
4916 the register's byte.
4918 2002-08-20 Michael Snyder <msnyder@redhat.com>
4920 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4921 used locally, so move them from the target machine header to here.
4922 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4923 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4925 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4927 2002-08-20 Andrew Cagney <cagney@redhat.com>
4929 * NEWS: Mention that the Apollo line was made obsolete.
4930 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4931 m68*-hp-hpux* obsolete.
4932 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4933 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4934 * buildsym.c (make_blockvector): Make static.
4935 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4936 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4937 (ALLDEPFILES): Remove dstread.c.
4938 (dstread.o): Obsolete make rule.
4939 * dstread.c: Makefile obsolete.
4941 * config/m68k/hp300hpux.mt: Ditto.
4942 * config/m68k/hp300hpux.mh: Ditto.
4943 * config/m68k/hp300bsd.mt: Ditto.
4944 * config/m68k/hp300bsd.mh: Ditto.
4945 * config/m68k/apollo68b.mt: Ditto.
4946 * config/m68k/apollo68v.mh: Ditto.
4947 * config/m68k/apollo68b.mh: Ditto.
4949 2002-08-20 Michael Snyder <msnyder@redhat.com>
4951 * mips-tdep.c (mips_in_return_stub): Make static.
4952 (mips_gdbarch_init): Set in_solib_return_trampoline.
4953 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4955 2002-08-20 Michael Snyder <msnyder@redhat.com>
4957 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4958 * gdbarch.c, gdbarch.h: Regenerate.
4959 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4961 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4963 2002-08-20 Michael Snyder <msnyder@redhat.com>
4965 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4966 (mips_gdbarch_init): Set skip_trampoline_code,
4967 in_solib_call_trampoline.
4968 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4969 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4971 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4973 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4975 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4976 vector type for ev registers.
4977 (e500_pseudo_register_read): New function.
4978 (e500_pseudo_register_write): New function.
4979 (e500_dwarf2_reg_to_regnum): New function.
4980 (PPC_UISA_NOFP_SPRS): New macro.
4981 (PPC_EV_REGS): New macro.
4982 (PPC_GPRS_PSEUDO_REGS): New macro.
4983 (registers_e500): New register set for e500.
4984 (variants): Add e500 variant.
4985 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4986 before setting architectural dependent variations. Initialize ev
4987 registers numbers. Add case for e500 architecture. Set the
4988 number of pseudo registers.
4990 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4992 * rs6000-tdep.c: Clean up comments.
4994 2002-08-20 Andrew Cagney <cagney@redhat.com>
4996 * h8300-tdep.c: Re-indent file.
4998 2002-08-20 Jim Blandy <jimb@redhat.com>
5000 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5003 2002-08-20 Keith Seitz <keiths@redhat.com>
5005 * breakpoints.c (watch_command_1): Use internal breakpoint
5006 when setting a watchpoint_scope breakpoint.
5008 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5010 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5011 (build_builtin_type_vec64i): Ditto.
5012 (build_builtin_type_vec128): Ditto.
5013 (build_builtin_type_vec128i): Ditto.
5015 2002-08-19 Michael Snyder <msnyder@redhat.com>
5017 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5018 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5019 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5020 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5021 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5022 CALL_DUMMY_ADDRESS): Delete.
5023 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5024 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5025 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5026 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5027 push_return_address.
5028 (mips_register_raw_size, mips_eabi_use_struct_convention,
5029 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5030 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5031 mips_init_extra_frame_info, mips_eabi_push_arguments,
5032 mips_n32n64_push_arguments, mips_push_return_address,
5033 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5034 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5036 2002-08-19 Michael Snyder <msnyder@redhat.com>
5038 * mips-tdep.c (mips_frame_num_args): New function.
5039 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5040 frame_saved_pc, frame_args_address, frame_locals_address,
5041 frame_num_args, and frame_args_skip.
5042 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5043 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5044 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5045 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5047 2002-08-20 Michael Snyder <msnyder@redhat.com>
5049 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5050 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5051 * mips-tdep.c (mips_store_struct_return): New function.
5052 (mips_extract_struct_value_address): New function.
5053 (mips_gdbarch_init): Set store_struct_return and
5054 extract_struct_value_address.
5056 2002-08-20 David Carlton <carlton@math.stanford.edu>
5058 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5059 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5060 (read_file_scope): Check that line_header is nonzero before
5061 decoding macro information.
5063 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5065 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5066 flag the general-purpose registers as floating-point on targets
5067 that don't support the floating-point registers.
5069 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5071 * rs6000-tdep.c (altivec_register_p): Delete.
5072 (rs6000_do_altivec_registers): Delete.
5073 (rs6000_altivec_registers_info): Delete.
5074 (rs6000_do_registers_info): Delete.
5075 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5076 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5078 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5080 * infcmd.c (do_registers_info): Print vector registers in hex
5082 (print_vector_info): Check that printing registers
5084 (print_float_info): Ditto.
5086 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5088 * mips-tdep.c (mips_gdbarch_init): Update.
5089 (mips_o32_extract_return_value): Rewrite.
5090 (mips_o32_store_return_value): Rewrite.
5091 (mips_o32_xfer_return_value): New function.
5092 (mips_xfer_register): Tweak debug print message. Allow for
5093 buf_offset when dumping the value transfered.
5095 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5097 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5098 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5099 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5100 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5101 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5103 2002-08-14 Michael Snyder <msnyder@redhat.com>
5105 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5107 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5109 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5111 (P): New macro to define a register as a pseudo register.
5112 (R, R4, R8, R16, FR32, R64, R0): Updated.
5113 (struct variant): Add new fields for number of pseudo registers
5114 and number of total registers.
5115 (tot_num_registers): New macro replacing....
5116 (num_registers): ...deleted macro.
5117 (num_registers): New function.
5118 (num_pseudo_registers): New function.
5119 (variants): Update all variants to intialize new fields correctly.
5120 Postpone initialization of number of pseudo regs and real regs.
5121 (init_variants): New function.
5122 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5125 2002-08-19 David Carlton <carlton@math.stanford.edu>
5127 * valops.c (search_struct_field): Change error message to treat
5128 return value of 0 from value_static_field as meaning that field is
5130 (value_struct_elt_for_reference): Ditto.
5131 * values.c (value_static_field): Treat an unresolved location the
5132 same as a nonexistent symbol. Fix PR gdb/635.
5133 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5134 enclosed. Fix PR gdb/574.
5135 * MAINTAINERS: Add self to Write After Approval list.
5137 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5139 * mips-tdep.c (mips_xfer_register): New function.
5140 (mips_n32n64_extract_return_value): Rewrite.
5141 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5142 instead of deprecated_extract_return_value.
5144 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5146 * rs6000-tdep.c (TDEP): Delete macro.
5147 (branch_dest): Replace use of TDEP macro with its body.
5148 (rs6000_pop_frame): Ditto.
5149 (rs6000_push_arguments): Ditto.
5150 (rs6000_skip_trampoline_code): Ditto.
5151 (rs6000_frame_saved_pc): Ditto.
5152 (rs6000_frame_chain): Ditto.
5153 (rs6000_register_name): Ditto.
5154 (rs6000_register_byte): Ditto.
5155 (rs6000_register_raw_size): Ditto.
5156 (rs6000_register_virtual_type): Ditto.
5157 (rs6000_register_convertible): Ditto.
5158 (rs6000_convert_from_func_ptr_addr): Ditto.
5160 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5162 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5164 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5165 MIPS_LINUX_JB_ELEMENT_SIZE.
5166 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5167 for MAX_REGISTER_RAW_SIZE arrays.
5168 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5169 MIPS_LINUX_JB_ELEMENT_SIZE.
5171 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5173 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5175 2002-08-19 Aidan Skinner <aidan@velvet.net>
5177 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5178 ada-valprint.c ada-tasks.c.
5179 (YYFILES): Add ada-exp.y.
5180 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5181 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5182 (ada-exp.tab.o): New target.
5184 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5186 * regcache.c (regcache_xfer_part): New function.
5187 (regcache_raw_read_part): New function.
5188 (regcache_raw_write_part): New function.
5189 (regcache_cooked_read_part): New function.
5190 (regcache_cooked_write_part): New function.
5191 * regcache.h (regcache_raw_read_part): Declare.
5192 (regcache_raw_write_part): Declare.
5193 (regcache_cooked_read_part): Declare.
5194 (regcache_cooked_write_part): Declare.
5196 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5198 * remote.c (remote_open_1): Add async_p.
5199 (remote_async_open_1): Delete.
5200 (open_remote_target): Delete.
5201 (remote_open, extended_remote_open): Update calls to remote_open_1.
5202 (remote_async_open, extended_remote_async_open): Call
5203 remote_open_1 instead of remote_async_open_1.
5205 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5207 * blockframe.c: Fix a few coding standard violations.
5209 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5211 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5213 * config/i386/tm-i386sco5.h: ... here. File removed.
5214 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5216 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5217 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5218 (TM_FILE): Set to tm-i386.h.
5219 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5220 * config/i386/tm-i386v.h: Remove file.
5221 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5222 instead of "i386/tm-i386v.h".
5223 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5224 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5226 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5227 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5230 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5232 * config/i386/nm-i386v.h: Add protection against
5234 (i386_register_u_addr): Remove prototype.
5235 (register_u_addr): New prototype.
5236 (REGISTER_U_ADDR): Redefine accordingly.
5237 * i386v-nat.c: Improve several comments.
5238 (i386_register_u_addr): Change signature and rename to
5239 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5242 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5244 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5245 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5246 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5247 deprecated_extract_return_value.
5248 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5249 rename mips_o32o64_push_arguments.
5250 (mips_gdbarch_init): Update.
5251 (mips_extract_return_value): Delete.
5252 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5253 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5254 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5255 (mips_n32n64_extract_return_value): Clone
5256 mips_extract_return_value.
5257 (mips_store_return_value): Delete.
5258 (mips_o32_store_return_value): Clone mips_store_return_value.
5259 (mips_o64_store_return_value): Clone mips_store_return_value.
5260 (mips_eabi_store_return_value): Clone mips_store_return_value.
5261 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5263 2002-08-18 Aidan Skinner <aidan@velvet.net>
5265 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5266 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5268 2002-08-18 Aidan Skinner <aidan@velvet.net>
5270 * ada-lang.c: Run through gdb_indent.sh.
5271 * ada-lang.h: Run through gdb_indent.sh.
5272 * ada-tasks.c: Run through gdb_indent.sh.
5273 * ada-typeprint.c: Run through gdb_indent.sh.
5274 * ada-valprint.c: Run through gdb_indent.sh.
5276 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5278 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5281 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5283 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5285 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5286 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5288 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5289 write_register_gen instead of write_register_bytes.
5291 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5292 i[3456]-*-osf1mk* configurations have been made obsolete.
5293 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5294 i[3456]86-*-osf1mk* hosts obsolete.
5295 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5297 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5298 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5299 config/i386/i386m3.mt, config/i386/nm-m3.h,
5300 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5301 config/i386/i386mk.mh, config/i386/i386mk.mt,
5302 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5304 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5305 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5306 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5308 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5310 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5311 (hppa_value_returned_from_stack): Declare.
5312 (hppa_extract_return_value): Declare.
5313 * config/pa/hppa.mt: New file.
5314 * configure.tgt: Recognize hppa*-*-*.
5315 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5317 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5319 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5322 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5324 * top.c (gdb_rl_operate_and_get_next): Make sure
5325 operate-and-get-next functions correctly even when the history
5326 list is completely filled.
5328 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5330 * MAINTAINERS (Target Instruction Set Architectures): Rename
5331 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5332 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5333 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5334 already listed under Host/Native.
5336 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5337 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5340 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5342 * config/ia64/ia64.mt: New file.
5343 * config/alpha/alpha.mt: New file.
5344 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5345 ia64-linux-gnu. Mention that ia64-elf is broken.
5346 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5348 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5350 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5351 generic_func_frame_valid instead of func_frame_valid.
5353 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5355 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5356 procfs appears to be broken when debugging on multi-processor
5357 machines. So enable software single stepping in order to avoid
5358 using the procfs interface to do next/step operations, using
5359 internal breakpoints instead.
5361 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5362 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5363 make this pc address equal to the value it would have if the
5364 system stepping capability was used. Also set a new flag used
5365 to ensure that we don't readjust the PC one more time later.
5367 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5368 address by DECR_PC_AFTER_BREAK when software single step is
5369 in use for this architecture, as this has already been taken
5370 care of in handle_inferior_event().
5372 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5374 * infrun.c (handle_inferior_event): Minor reformatting, to make
5375 a rather long condition expression easier to read.
5377 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5379 * Makefile.in (gdbtk.o): Move to end of file.
5380 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5381 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5382 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5383 (gdbtk-wrapper.o, gdbres.o): Ditto.
5385 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5387 * Makefile.in (copying.o): Separate out compile rule.
5388 (hpux-thread.o, procfs.o, signals.o): Ditto.
5389 (v850ice.o, z8k-tdep.o): Ditto.
5390 (tui-file.o): Move to TUI section.
5391 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5392 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5394 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5396 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5397 skip_trampoline_code, for better namespace-proofing.
5399 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5401 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5403 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5405 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5407 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5408 signal, check whether we hit a breakpoint before checking for a
5409 single step breakpoint. Otherwise, GDB fails to notice that a
5410 breakpoint has been hit when stepping onto a breakpoint.
5412 2002-08-16 Keith Seitz <keiths@redhat.com>
5414 * gdb-events.sh (clear_gdb_event_hooks): New function.
5415 * gdb-events.c: Regenerate.
5416 * gdb-events.h: Regenerate.
5418 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5420 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5421 not_a_sw_breakpoint.
5422 * breakpoint.h (bpstat_stop_status): Add parameter names.
5424 2002-08-16 Grace Sainsbury <graces@redhat.com>
5426 * remote.c (remote_insert_hw_breakpoint)
5427 (remote_remove_hw_breakpoint): Fix calculation of length field
5430 2002-08-15 Michael Snyder <msnyder@redhat.com>
5432 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5433 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5434 (supply_fpregset): Ditto.
5436 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5437 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5438 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5439 (TARGET_READ_SP): Delete.
5440 (DO_REGISTERS_INFO): Delete.
5441 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5443 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5444 from macros to functions.
5446 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5447 (mips_register_convertible, mips_register_convert_to_virtual,
5448 mips_register_convert_to_raw): Make static.
5449 (mips_read_sp): New function.
5450 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5451 (mips_do_registers_info): Make static.
5452 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5453 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5454 (mips_register_convert_from_type, mips_register_convert_to_type):
5456 (mips_gdbarch_init): Set up function_start_offset,
5457 register_virtual_size, pc_in_sigtramp.
5459 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5461 * infcmd.c (vector_info): New function.
5462 (_initialize_infcmd): Add command "info vector".
5463 (print_vector_info): New function.
5465 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5466 * gdbarch.h, gdbarch.c: Regenerate.
5468 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5470 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5471 ``print_all''. Only print vector registers when ``print_all''.
5473 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5475 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5476 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5478 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5479 Add `args' parameter.
5480 * gdbarch.h, gdbarch.c: Regenerate.
5482 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5484 * infcmd.c (float_info): Call print_float_info.
5485 (print_float_info): New function. By default, print the
5486 floating-point registers.
5488 * arch-utils.h (default_print_float_info): Delete declaration.
5489 * arch-utils.c (default_print_float_info): Delete function.
5491 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5493 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5496 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5499 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5500 * configure.host: Make i[3456]86-*-aix host obsolete.
5501 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5502 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5503 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5504 config/i386/xm-i386aix.h: Make files obsolete.
5505 * i386aix-nat.c: Make file obsolete.
5506 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5507 (i386aix-nat.o): Make target obsolete.
5509 * config/i386/nm-gnu.h: Removed.
5510 * config/i386/nm-i386gnu.h: New file.
5511 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5512 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5514 * config/i386/tm-i386gnu.h: ... here. Removed.
5515 * config/i386/xm-i386gnu.h: Removed.
5516 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5517 (NAT_FILE): Set to nm-i386gnu.h.
5518 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5519 * i386-tdep.c: New file.
5520 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5521 (i386gnu-tdep.o): Specify dependencies.
5523 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5525 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5526 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5527 Adjust a few comments to reflect reality a bit closer.
5528 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5529 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5530 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5531 target_insert_watchpoint, target_remove_watchpoint):
5533 * config/i386/nm-i386sco5.h: ... here.
5534 (kernel_u_size): Add prototype. Improve a few comments and add
5535 protection against multiple inclusion.
5537 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5540 * uw-thread.c (SP_ARG0): Define if not already defined.
5541 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5543 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5545 * config/i386/tm-i386.h: Don't include "regcache.h".
5547 * i387-tdep.h (i387_print_float_info): New prototype.
5548 * i387-tdep.c (print_i387_value, print_i387_ext,
5549 print_i387_status_word, print_i387_control_word): Add `struct
5550 ui_file *' argument and use it for output.
5551 (i387_print_float_info): Renamed from i387_float_info. Add
5552 `struct gdbarch *' and `struct ui_file *' arguments and use the
5554 * i386-tdep.c: Include "i387-tdep.h".
5555 (i386_gdbarch_init): Set print_float_info.
5556 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5557 (FLOAT_INFO): Remove define.
5559 2002-08-13 Michael Snyder <msnyder@redhat.com>
5561 * mips-tdep.c (mips_push_arguments): Rename to
5562 mips_eabi_push_arguments, and tune for EABI.
5563 (MIPS_REGS_HAVE_HOME_P): Delete.
5564 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5565 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5566 Delete references to mips_regs_have_home_p.
5568 2002-08-14 Keith Seitz <keiths@redhat.com>
5570 * Makefile.in (install-gdbtk): Create insight plugin directory.
5571 Install plugins.tcl file.
5573 2002-08-14 Keith Seitz <keiths@redhat.com>
5575 * configure.in: Move SUBDIRS to near top of the file so that
5576 --enable options may add things to it.
5577 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5578 * configure: Regenerate.
5580 2002-08-13 Michael Snyder <msnyder@redhat.com>
5582 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5583 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5584 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5586 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5588 * vax-tdep.c (vax_get_saved_register): Delete function.
5589 (vax_gdbarch_init): Update.
5590 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5591 (ns32k_gdbarch_init): Update.
5592 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5593 (alpha_gdbarch_init): Update.
5595 2002-08-13 Andrew Cagney <cagney@redhat.com>
5597 * regcache.c (init_regcache_descr): Overallocate the
5598 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5599 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5601 (set_register_cached): Add range checking assertions. Use
5604 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5606 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5607 numbers for MMX registers.
5609 2002-08-13 Andrew Cagney <cagney@redhat.com>
5611 * i386-tdep.c (i386_gdbarch_init): Use
5612 generic_unwind_get_saved_register.
5614 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5616 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5617 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5619 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5620 Delete. Add comment regarding this now-deleted target method.
5622 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5624 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5625 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5626 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5627 real PC and the page number (if it's within the memory bank window).
5628 (m68hc11_pseudo_register_write): Likewise when saving.
5629 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5630 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5631 (m68hc11_register_raw_size): And use 32-bit for it.
5632 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5633 16K memory bank is used by the prog; also use the virtual pc.
5635 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5637 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5638 (m68hc11_gdbarch_init): Install it in gdbarch.
5639 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5640 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5641 (MSYMBOL_SIZE): New for documentation.
5642 (insn_return_kind): Enum to specify how a function returns.
5643 (frame_extra_info): Cleanup and record the return mode.
5644 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5645 register in address computation.
5646 (m68hc11_get_return_insn): New to obtain the return instruction used
5648 (m68hc11_frame_init_saved_regs): Take into account the return
5649 instruction used by the function for far and interrupt functions.
5650 (m68hc11_init_extra_frame_info): Take into account page register.
5651 (m68hc11_frame_args_address): Adjust according to the return mode.
5652 (show_regs): Print page register only when it's used.
5654 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5656 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5657 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5658 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5660 (m68hc11_register_raw_size): Likewise.
5662 2002-08-13 Andrew Cagney <cagney@redhat.com>
5664 * i386-tdep.c (i386_register_name): Handle mmx registers.
5665 (mmx_regnum_p): New function.
5666 (i386_mmx_names): New array.
5667 (mmx_num_regs): New variable.
5668 (i386_pseudo_register_read): New function.
5669 (i386_pseudo_register_write): New function.
5670 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5672 * regcache.c (regcache_raw_read_unsigned): New function.
5673 (regcache_raw_read_signed): New function.
5674 * regcache.h (regcache_raw_read_unsigned): Declare.
5675 (regcache_raw_read_signed): Declare.
5677 2002-08-13 Andrew Cagney <cagney@redhat.com>
5679 * regcache.c (regcache_raw_read_as_address): Delete function.
5680 (regcache_cooked_read_signed): New function.
5681 (regcache_cooked_read_unsigned): New function.
5682 * regcache.h (regcache_cooked_read_signed): Declare.
5683 (regcache_cooked_read_unsigned): Declare.
5684 (regcache_raw_read_as_address): Delete declaration.
5686 * blockframe.c (generic_read_register_dummy): Use
5687 regcache_cooked_read_unsigned.
5688 * i386-tdep.c (i386_extract_struct_value_address): Use
5689 regcache_cooked_read_unsigned.
5691 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5693 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5694 double sizes according to ELF ABI flags.
5695 (gdbarch_tdep): Record elf_flags.
5697 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5699 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5700 (m6812_prolog): They can appear in 68HC12 function prologue.
5701 (m68hc11_frame_chain): Cleanup.
5703 2002-08-12 Andrew Cagney <cagney@redhat.com>
5705 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5707 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5708 (i386_linux_register_raw_size): Delete function.
5709 (i386_linux_init_abi): Update.
5710 * i386-tdep.c (i386_register_raw_size): Delete function.
5711 (i386_register_byte): Delete function.
5712 (i386_gdbarch_init): Update.
5713 (i386_register_size): Delete array.
5714 (i386_register_offset): Delete array.
5716 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5717 (REGISTER_RAW_SIZE): Delete macro.
5718 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5719 (REGISTER_BYTE): Delete macro.
5721 2002-08-11 Aidan Skinner <aidan@velvet.net>
5723 * ada-lang.c (ada_lookup_partial_symbol)
5724 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5725 prototype names so that grep ^func works properly.
5727 * ada-lang.c (ada_array_element_type)
5728 (ada_lookup_partial_symbol): Fix typos in parameter list.
5730 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5731 Fix prototype names so that grep ^func works properly.
5733 2002-08-10 Andrew Cagney <cagney@redhat.com>
5734 Elena Zannoni <ezannoni@redhat.com>
5735 Martin M. Hunt <hunt@redhat.com>
5737 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5738 (build_builtin_type_vec128i): Set the vector bit.
5739 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5740 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5741 (build_builtin_type_vec64): New function.
5742 (build_builtin_type_vec64i): New function.
5743 (build_gdbtypes): Initialize builtin_type_vec64 and
5744 builtin_type_vec64i.
5746 2002-08-09 Andrew Cagney <cagney@redhat.com>
5748 * regcache.c (regcache_dump): Compare the register offset
5750 * arch-utils.c (generic_register_byte): New function.
5751 * arch-utils.h (generic_register_byte): Declare.
5752 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5753 * gdbarch.h, gdbarch.c: Regenerate.
5755 2002-08-09 Andrew Cagney <cagney@redhat.com>
5757 * regcache.c: Include "gdbcmd.h"
5758 (_initialize_regcache): Add commands "maintenance print
5759 registers", "maintenance print raw-registers" and "maintenance
5760 print cooked-registers".
5761 (enum regcache_dump_what): Define.
5762 (dump_endian_bytes): New function.
5763 (regcache_dump): New function.
5764 (regcache_print): New function.
5765 (maintenance_print_registers): New function.
5766 (maintenance_print_raw_registers): New function.
5767 (maintenance_print_cooked_registers): New function.
5768 * Makefile.in (regcache.o): Update dependencies.
5770 2002-08-09 Michael Snyder <msnyder@redhat.com>
5772 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5773 (mips_push_arguments): Correct some comments. Use paddr_nz
5774 for printing addresses in debug output. Replace static
5775 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5776 (mips_n32n64_push_arguments): New function, cloned from
5777 mips_push_arguments and tuned for the n32/n64 ABI.
5778 (mips_push_register): Buffer needs dynamic allocation.
5779 (mips_print_register): Ditto.
5780 (do_gp_register_row): Ditto.
5781 (mips_store_return_value): Ditto.
5782 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5784 2002-08-09 Don Howard <dhoward@redhat.com>
5786 * memattr.c (mem_info_command): Print special case of upper bound
5787 as max CORE_ADDR + 1.
5789 2002-08-08 Michael Snyder <msnyder@redhat.com>
5791 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5792 returns structs by ref if they're too big to fit in two registers.
5794 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5796 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5798 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5799 mips_find_saved_regs().
5800 (mips_pop_frame): Likewise.
5802 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5804 * blockframe.c (frame_saved_regs_register_unwind): Revise
5805 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5808 2002-08-09 Grace Sainsbury <graces@redhat.com>
5810 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5811 T-packets; the 'a' is not taken as a register number.
5812 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5813 (remote_stopped_data_address): New functions; add to target
5815 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5816 prototypes to match other implementations of this
5817 function. replace integer argument with pointer -- the length
5818 field in the Z-packet is the length of what is pointed to or 1 if
5819 pointer is null. Add to target vector.
5820 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5824 * remote.c (remote_wait): Add support to extract optional
5825 watchpoint information from T-packet. Ignore unrecognized
5826 optional info in T-packet.
5827 (remote_async_wait): Ditto.
5829 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5831 * cli/cli-dump.c: Change fopen modes to use binary open modes
5832 as defined in include/fopen-bin.h throughout.
5834 2002-08-08 Michael Snyder <msnyder@redhat.com>
5836 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5838 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5840 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5841 assertion failure by returning early after a warning.
5843 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5845 * mips-tdep.c (mips_find_saved_regs): Make static.
5846 (mips_frame_init_saved_regs): New function.
5847 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5848 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5849 (mips_find_saved_regs): Delete declaration.
5851 2002-08-08 Grace Sainsbury <graces@redhat.com>
5853 * remote.c (remote_wait, remote_async_wait): Change
5854 thread_num from int to ULONGEST.
5855 (unpack_varlen_hex): Change result parameter from
5856 int * to ULONGEST *.
5858 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5860 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5861 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5863 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5865 2002-08-08 Andrew Cagney <cagney@redhat.com>
5867 * gcore.c (override_derive_stack_segment): Delete variable.
5868 (preempt_derive_stack_segment): Delete function.
5869 (derive_stack_segment): Delete function.
5870 (default_derive_stack_segment): Renamed to derive_stack_segment.
5871 (override_derive_heap_segment): Delete variable.
5872 (preempt_derive_heap_segment): Delete function.
5873 (derive_heap_segment): Delete function.
5874 (default_derive_heap_segment): Rename to derive_heap_segment.
5876 2002-08-06 Michael Snyder <msnyder@redhat.com>
5878 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5879 * mips-tdep.c (mips_EABI_use_struct_convention,
5880 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5881 New functions. (mips_use_struct_convention): Delete.
5882 (mips_gdbarch_init): set use_gdbarch_convention.
5884 2002-08-06 Michael Snyder <msnyder@redhat.com>
5886 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5887 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5888 mips_o32_reg_struct_has_addr): New functions.
5889 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5891 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5893 * regcache.c (pseudo_register): Delete function.
5894 (fetch_register): Delete function.
5895 (store_register): Delete function.
5896 (regcache_raw_read, legacy_read_register_gen): Use
5897 target_fetch_registers instead of fetch_register.
5898 (legacy_write_register_gen, regcache_raw_write): Use
5899 target_store_register instead of store_register.
5900 (write_register_bytes): Ditto.
5902 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5903 (STORE_PSEUDO_REGISTER): Delete.
5904 * gdbarch.h, gdbarch.c: Regenerate.
5906 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5908 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5909 write dump file binary.
5911 2002-08-05 Michael Snyder <msnyder@redhat.com>
5913 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5914 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5915 (mips_gdbarch_init): Set N32 target to be mips64.
5917 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5919 * frame.c (find_saved_register): Break out of loop once saved
5920 register address is found. Don't mention sparc in loop comment
5923 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5925 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5926 mips_default_saved_regsize to 8.
5928 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5930 * gcore.c: Do not include <sys/procfs.h>.
5931 * Makefile.in (gcore.o): Update dependencies.
5933 2002-08-06 Andrew Cagney <cagney@redhat.com>
5935 * configure.tgt: Make arc-*-* obsolete.
5936 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5937 * MAINTAINERS: Make arc-elf obsolete.
5938 * arc-tdep.c: Make file obsolete.
5939 * config/arc/arc.mt: Ditto.
5940 * config/arc/tm-arc.h: Ditto.
5942 2002-08-05 Theodore A. Roth <troth@verinet.com>
5944 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5946 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5948 * mcore-tdep.c (mcore_gdbarch_init): Use
5949 generic_unwind_get_saved_register instead of
5950 generic_get_saved_register.
5951 * v850-tdep.c (v850_gdbarch_init): Ditto.
5952 * frv-tdep.c (frv_gdbarch_init): Ditto.
5953 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5954 * s390-tdep.c (s390_gdbarch_init): Ditto.
5955 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5956 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5957 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5959 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5961 * objfiles.h: Add missing #include "symfile.h"
5963 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5965 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5967 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5968 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5971 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5973 * NEWS: Cleanup and nitpick.
5975 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5977 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5979 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5981 * Makefile.in (gdbtk-bp.o): Update dependencies.
5982 (gdbtk-register.o): Ditto.
5983 (gdbtk-varobj.o): Ditto.
5985 2002-08-03 Andrew Cagney <cagney@redhat.com>
5987 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5988 m68hc11_fetch_pseudo_register.
5989 (m68hc11_pseudo_register_write): Replace
5990 m68hc11_store_pseudo_register.
5991 (m68hc11_gdbarch_init): Update.
5993 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5995 * gdbarch.sh: Include "gdb_string.h".
5996 * gdbarch.c: Regenerate.
5998 * regcache.c: Include "gdb_string.h".
5999 * ax-general.c: Ditto.
6001 * std-regs.c: Ditto.
6002 * fbsd-proc.c: Ditto.
6005 * Makefile.in (regcache.o): Update dependencies.
6006 (thread.o, gdbarch.o): Ditto.
6007 (ax-general.o, gdbarch.o): Ditto.
6008 (varobj.o, std-regs.o): Ditto.
6009 (fbsd-proc.o): Specify dependencies.
6011 2002-08-02 Andrew Cagney <cagney@redhat.com>
6013 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6015 (regcache_cooked_write): Ditto.
6017 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6019 * regcache.c (regcache_cooked_read): New function.
6020 (regcache_cooked_write): New function.
6021 (read_register_gen): Rewrite using regcache_cooked_read.
6022 (write_register_gen): Rewrite using regcache_cooked_write.
6024 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6027 2002-08-02 Andrew Cagney <cagney@redhat.com>
6029 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6030 Replace the architecture methods register_read and register_write.
6031 * gdbarch.h, gdbarch.c: Regenerate.
6032 * regcache.c (init_regcache_descr): Update.
6033 (read_register_gen): Update.
6034 (write_register_gen): Update.
6035 (supply_register): Update comment.
6037 * sh-tdep.c (sh_gdbarch_init): Update.
6038 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6039 `regcache' and `gdbarch' parameters. Make `buffer' a void
6040 pointer. Update code.
6041 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6042 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6043 void pointer. Update code.
6044 (sh64_register_write): Delete.
6045 (sh4_register_read): Delete.
6046 (sh64_register_read): Delete.
6047 (sh4_register_write): Delete.
6048 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6049 void pointer, `to' parameter a void pointer.
6050 (sh_sh64_register_convert_to_raw): Ditto.
6052 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6054 * mips-tdep.c (mips_register_virtual_type): Use architecture
6055 invariant return values.
6057 2002-08-01 Andrew Cagney <cagney@redhat.com>
6059 * linux-proc.c: Include "gdb_string.h".
6060 * Makefile.in (linux-proc.o): Update dependency list.
6062 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6064 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6067 2002-08-01 Grace Sainsbury <graces@redhat.com>
6069 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6070 to_insert_watchpoint, to_remove_watchpoint,
6071 to_stopped_by_watchpoint, to_stopped_data_address,
6072 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6073 target vecctor. Define their corresponding macros so they call
6076 * target.c: Add default and debug versions of for
6077 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6078 to_insert_watchpoint, to_remove_watchpoint,
6079 to_stopped_by_watchpoint, to_stopped_data_address,
6080 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6082 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6084 * mips-tdep.c (mips_register_virtual_type): New function.
6085 (mips_gdbarch_init): Register mips_register_virtual_type()
6086 with gdbarch machinery.
6087 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6088 this file instead of tm-bigmips.h.
6089 (MIPS_REGSIZE): Delete this macro.
6090 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6091 multiarch version in mips-tdep.c will be found.
6093 2002-08-01 Andrew Cagney <cagney@redhat.com>
6095 * NEWS: Menion that CHILL has been made obsolete.
6097 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6098 * stabsread.c (read_range_type): Ditto.
6099 * gdbtypes.h: Ditto.
6100 * language.c (binop_type_check): Ditto.
6101 (binop_result_type): Ditto.
6102 (integral_type): Ditto.
6103 (character_type): Ditto.
6104 (string_type): Ditto.
6105 (boolean_type): Ditto.
6106 (structured_type): Ditto.
6107 (lang_bool_type): Ditto.
6108 (binop_type_check): Ditto.
6109 * language.h (_LANG_chill): Ditto.
6110 * dwarfread.c (set_cu_language): Ditto.
6111 * dwarfread.c (CHILL_PRODUCER): Ditto.
6112 * dwarfread.c (handle_producer): Ditto.
6113 * expression.h (enum exp_opcode): Ditto.
6114 * eval.c: Ditto for comments.
6115 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6116 * expprint.c (print_subexp): Ditto.
6117 (print_subexp): Ditto.
6118 * valops.c (value_cast): Ditto.
6119 (search_struct_field): Ditto.
6120 * value.h (COERCE_VARYING_ARRAY): Ditto.
6121 * symfile.c (init_filename_language_table): Ditto.
6122 (add_psymbol_with_dem_name_to_list): Ditto.
6123 * valarith.c (value_binop): Ditto.
6125 * valops.c (value_slice): Ditto.
6126 * symtab.h (union language_specific): Ditto.
6127 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6128 (SYMBOL_DEMANGLED_NAME): Ditto.
6129 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6130 * defs.h (enum language): Ditto.
6131 * symtab.c (got_symtab): Ditto.
6132 * utils.c (fprintf_symbol_filtered): Ditto.
6134 * ch-typeprint.c: Make file obsolete.
6135 * ch-valprint.c: Make file obsolete.
6136 * ch-lang.h: Make file obsolete.
6137 * ch-exp.c: Make file obsolete.
6138 * ch-lang.c: Make file obsolete.
6140 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6142 (TARGET_FLAGS_TO_PASS): Ditto.
6143 (CHILLFLAGS): Obsolete.
6145 (CHILL_FOR_TARGET): Obsolete.
6146 (CHILL_LIB): Obsolete.
6147 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6149 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6150 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6152 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6155 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6157 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6158 This does not change anything at the moment, but will be helpful
6159 later when full Ada support is integrated.
6161 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6163 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6166 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6168 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6169 and save it in a local variable. Use variable in later test.
6171 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6173 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6174 test. (Thanks to Daniel Jacobowitz.)
6176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6178 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6179 (mips_abi_strings): Add "n64".
6180 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6182 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6184 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6185 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6187 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6189 * utils.c (host_pointer_to_address, address_to_host_pointer):
6190 Use gdb_assert() instead of explicit call to internal_error().
6192 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6194 * Makefile.in (rs6000-nat.o): Update dependencies.
6196 From Nicholas Duffek:
6197 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6198 (aix-thread.o): New rule.
6199 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6200 * config/powerpc/aix432.mh: New file.
6202 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6204 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6205 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6206 (fetch_core_registers, ppc_linux_supply_gregset)
6207 (ppc_linux_supply_fpregset): New functions.
6208 (ppc_linux_regset_core_fns): New.
6209 (_initialize_ppc_linux_tdep): Call add_core_fns.
6210 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6211 and ppc_linux_supply_gregset.
6212 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6213 (supply_fpregset): Call ppc_linux_supply_fpregset.
6214 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6216 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6218 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6220 * symtab.c (lookup_symbol): Demangle before lowercasing.
6222 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6224 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6226 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6227 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6228 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6229 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6231 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6232 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6233 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6234 (avr-tdep.o, mon960-rom.o): Ditto.
6235 (aout_stabs_gnu_h): Define.
6236 (symtab_h): Remove $(gdb_obstack_h).
6238 2002-07-30 Jim Blandy <jimb@redhat.com>
6240 Patch from David Carlton <carlton@math.stanford.edu>:
6241 * gdbinit.in: Move the `dir' commands that add GDB's own source
6242 directory to the search path to the end, so that the `gdb' source
6243 directory will be searched first.
6245 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6247 * gdb_obstack.h: New file.
6248 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6249 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6250 * objfiles.h: Include "gdb_obstack.h".
6251 * Makefile.in (gdb_obstack_h): Define.
6252 (symtab_h): Add $(gdb_obstack_h).
6253 (objfiles_h): Add $(gdb_obstack_h).
6255 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6256 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6257 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6258 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6259 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6260 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6261 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6262 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6264 * Makefile.in (bcache.o): Update dependencies.
6265 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6266 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6267 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6268 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6269 (stabsread.o, symfile.o, symmisc.o): Ditto.
6270 (symtab.o, typeprint.o, macroexp.o): Ditto.
6271 (macrotab.o, mdebugread.o): Ditto.
6272 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6273 (coff_ecoff_h, aout_aout64_h): Define.
6274 (aout_stabs_gnu_h, libaout_h): Define.
6276 2002-07-29 Andrew Cagney <cagney@redhat.com>
6278 * regcache.c (struct regcache_descr): Rename nr_registers to
6279 nr_cooked_registers. Revise comments describing the structure
6281 (init_regcache_descr): Update.
6282 (init_legacy_regcache_descr): Update.
6283 (read_register_gen, write_register_gen): When a cooked register in
6284 the raw register range, directly access the value from the raw
6287 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6289 * z8k-tdep.c: Do not include "obstack.h".
6290 * h8300-tdep.c, h8500-tdep.c: Ditto.
6291 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6292 * valprint.c, v850-tdep.c: Ditto.
6293 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6294 * mn10200-tdep.c: Ditto.
6296 * Makefile.in (z8k-tdep.o): Update dependencies.
6297 (m68hc11-tdep.o, valprint.o): Ditto.
6298 (v850-tdep.o, d10v-tdep.o): Ditto.
6299 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6300 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6301 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6302 (sh_opc_h, gdb_sim_sh_h): Define.
6303 (elf_sh_h, elf_bfd_h): Define.
6304 (opcode_m68hc11_h): Define.
6305 (OPCODES_SRC, OPCODES_DIR): define.
6306 (OPCODES): Use $(OPCODES_DIR).
6307 (gdb_sim_d10v_h): Rename sim_d10v_h.
6308 (gdb_sim_arm_h): Rename sim_arm_h.
6310 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6312 * utils.c (host_pointer_to_address, address_to_host_pointer):
6313 Change internal_error() message to indicate function responsible
6316 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6318 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6319 calls to local_hex_string_custom().
6321 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6323 * irix5-nat.c: Move IRIX shared library support from here...
6324 * solib-irix.c: ...to here. Revised substantially to work with
6325 generic solib framework.
6327 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6328 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6329 * mips-irix-tdep.c: New file.
6331 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6332 (mips-irix-tdep.o, solib-irix.o): New rules.
6333 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6335 * config/mips/irix6.mt (TDEPFILES): Likewise.
6336 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6338 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6340 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6341 disabled (via ``#if 0'') includes.
6343 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6345 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6346 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6347 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6348 Add support for the fpscr register.
6349 * rs6000-nat.c (regmap, fetch_inferior_registers)
6350 (store_inferior_registers, fetch_core_registers): Likewise.
6352 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6354 * rs6000-nat.c (language.h): Include.
6355 (special_regs): Delete this array.
6356 (regmap): New function.
6357 (fetch_register, store_register): Use regmap() to map gdb
6358 register numbers to ptrace register numbers. Also, use
6359 outputs from regmap() to make decisions regarding type of
6360 ptrace() call to make. In particular, don't compare against
6361 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6362 (fetch_inferior_registers, store_inferior_registers): Where
6363 possible, obtain register numbers from tdep struct. Don't
6364 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6365 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6366 (LAST_UISA_SP_REGNUM): Delete.
6368 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6370 * rs6000-nat.c (ppc-tdep.h): Include.
6371 (fetch_registers, store_register, fetch_core_registers): Don't
6372 access registers[] directly. Instead, use supply_register() or
6373 regcache_collect() as appropriate.
6374 (find_toc_address): Format hex address with local_hex_string().
6376 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6378 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6381 2002-07-24 Tom Tromey <tromey@redhat.com>
6383 * jv-exp.y: Marked all strings with _().
6384 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6386 (MethodInvocation, CastExpression, parse_number, yyerror,
6387 java_type_from_name, push_expression_name, yylex): Typo fixes.
6389 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6391 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6392 (tee_file_flush, tee_file_write, tee_file_fputs)
6393 (tee_file_isatty): New.
6394 * ui-file.h (tee_file_new): Add prototype.
6396 2002-07-24 Aidan Skinner <aidan@velvet.net>
6398 * ada-lang.c: Change k&r style function definitions to prototyped
6400 * ada-typeprint.c: Change k&r style function definitions to prototyped
6402 * ada-valprint.c: Change k&r style function definitions to prototyped
6405 2002-07-24 Andrew Cagney <cagney@redhat.com>
6407 * README: Remove reference to remote-bug.
6408 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6410 (m88k-nat.o): Delete rule.
6411 (m88k-tdep.o): Delete rule.
6412 (remote-bug.o): Delete rule.
6413 * MAINTAINERS: Mark as obsolete.
6414 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6415 * m88k-tdep.c: Make file obsolete.
6416 * config/m88k/m88k.mh: Ditto.
6417 * config/m88k/delta88v4.mh: Ditto.
6418 * config/m88k/delta88v4.mt: Ditto.
6419 * config/m88k/delta88.mt: Ditto.
6420 * config/m88k/delta88.mh: Ditto.
6421 * remote-bug.c: Ditto.
6422 * config/m88k/tm-delta88.h: Ditto.
6423 * config/m88k/nm-delta88v4.h: Ditto.
6424 * config/m88k/xm-delta88.h: Ditto.
6425 * config/m88k/xm-dgux.h: Ditto.
6426 * config/m88k/tm-m88k.h: Ditto.
6427 * config/m88k/nm-m88k.h: Ditto.
6428 * config/m88k/tm-delta88v4.h: Ditto.
6429 * m88k-nat.c: Ditto.
6430 * cxux-nat.c: Ditto.
6431 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6432 and m88*-*-* obsolete.
6433 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6436 2002-07-24 Andrew Cagney <cagney@redhat.com>
6438 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6439 constant. Same for local pointer variables.
6440 (extract_signed_integer): Ditto.
6441 * defs.h (extract_unsigned_integer): Update.
6442 (extract_signed_integer): Update.
6444 2002-07-24 Andrew Cagney <cagney@redhat.com>
6446 * regcache.c (regcache_raw_write): Change buf parameter to a
6447 constant void pointer.
6448 (regcache_raw_read): Change buf parameter to a void pointer.
6449 (legacy_write_register_gen): Change myaddr parameter a constant
6451 (supply_register): Change val parameter to a const void pointer.
6452 * regcache.h (regcache_raw_write): Update declaration.
6453 (regcache_raw_read): Update declaration.
6454 (supply_register): Update declaration.
6456 2002-07-24 Tom Tromey <tromey@redhat.com>
6458 * defs.h (gdb_readline_wrapper): Declare.
6459 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6460 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6461 * top.c (gdb_readline_wrapper): New function.
6462 (command_line_input): Use it.
6464 2002-07-24 Andrew Cagney <cagney@redhat.com>
6466 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6467 regcache_read and regcache_write.
6468 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6469 * regcache.c: Update.
6470 * sh-tdep.c (sh64_push_arguments): Update comment.
6471 (sh_pseudo_register_read): Update.
6472 (sh_pseudo_register_write): Update.
6473 (sh4_register_read): Update.
6474 (sh4_register_write): Update.
6475 (sh64_pseudo_register_read): Update.
6476 (sh64_pseudo_register_write): Update.
6477 (sh64_register_read): Update.
6478 (sh64_register_write): Update.
6479 * i386-tdep.c (i386_extract_return_value): Update.
6480 (i386_extract_struct_value_address): Update.
6481 (i386_extract_return_value): Update.
6482 * blockframe.c (generic_read_register_dummy): Update.
6483 (generic_call_dummy_register_unwind): Update
6484 * infrun.c (write_inferior_status_register): Update.
6486 2002-07-23 Jim Blandy <jimb@redhat.com>
6488 * parser-defs.h (expression_context_pc): Make this extern.
6489 (Thanks to Michael Snyder.)
6491 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6493 GDB 5.2.1 released from 5.2 branch.
6494 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6495 * README: Update to mention 5.2.1.
6497 2002-07-23 Mark Salter <msalter@redhat.com>
6499 * remote.c (remote_read_bytes): Fix check for error.
6501 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6503 * aix-thread.c (language.h): Include.
6504 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6505 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6506 Print newlines at end of debug messages.
6507 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6508 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6510 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6512 * aix-thread.c (ppc-tdep.h): Include.
6513 (special_register_p): New function.
6514 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6515 (store_regs_user_thread): Use register number information from
6516 gdbarch_tdep struct instead of hardcoded offsets relative to
6517 FIRST_UISA_SP_REGNUM.
6518 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6519 special_register_p() instead of using FPLAST_REGNUM and
6520 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6521 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6522 will be MQ's register number.
6524 2002-07-22 Michael Snyder <msnyder@redhat.com>
6526 * aix-thread.c (ops): Rename to aix_thread_ops.
6527 (base_ops): Rename to base_target.
6528 (ops_attach): Rename to aix_thread_attach.
6529 (ops_detach): Rename to aix_thread_detach.
6530 (ops_resume): Rename to aix_thread_detach.
6531 (ops_wait): Rename to aix_thread_wait.
6532 (ops_kill): Rename to aix_thread_kill.
6533 (init_ops): Rename to init_aix_thread_ops.
6534 (ops_fetch_register): Rename to aix_thread_fetch_register.
6535 (ops_store_register): Rename to aix_thread_store_register.
6536 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6537 (ops_thread_alive): Rename to aix_thread_thread_alive.
6538 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6539 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6540 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6541 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6542 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6543 (store_regs_lib): Rename to store_regs_user_thread.
6544 (store_regs_kern): Rename to store_regs_kernel_thread.
6546 2002-07-22 Michael Snyder <msnyder@redhat.com>
6548 * aix-thread.c (ops_prepare_to_store): Eliminate.
6549 (init_ops): Don't initialize ops.prepare_to_store.
6550 (store_regs_kern): Pre-fetch register buffers from child,
6551 because some registers may not be in the cache. Copy
6552 regs from register cache only if they are cached.
6553 (store_regs_lib): Copy regs from register cache only
6555 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6556 fill_gprs64): Ditto.
6558 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6560 * aix-thread.c (gdb_assert.h): Include.
6561 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6562 register sizes (from register cache) match size of buffer holding
6564 (fill_sprs32): Change parameter types to match those in the ptrace()
6566 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6567 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6569 2002-07-22 Michael Snyder <msnyder@redhat.com>
6571 * aix-thread.c (supply_sprs64): Cosmetic change.
6572 (supply_sprs32): Cosmetic change.
6573 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6574 (fill_sprs64): Use regcache_collect instead of read_register.
6575 (store_regs_lib): Use regcache_collect instead of
6576 read_register. Use fill_sprs32 instead of fill_sprs64,
6577 if debugging a 32-bit architecture.
6578 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6579 out of the register cache, instead of passing a pointer into
6580 the register cache directly to ptrace. Use regcache_collect
6581 insteaad of read_register.
6582 (ops_prepare_to_store): Use target_read_registers instead
6583 of read_register_bytes.
6585 2002-07-20 Aidan Skinner <aidan@velvet.net>
6587 * MAINTAINERS: Add self under write after approval.
6589 2002-07-20 Aidan Skinner <aidan@velvet.net>
6591 * ada-tasks.c: Change k&r style function definitions to prototyped
6594 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6596 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6597 * x86-64-tdep.c: Include "objfiles.h".
6598 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6599 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6601 2002-07-17 Michal Ludvig <michal@suse.cz>
6603 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6604 (update_context): Initialise cfa variable.
6606 2002-07-17 Michael Snyder <msnyder@redhat.com>
6608 * aix-thread.c: Shorten some long lines.
6609 Bring comments into line with code spec.
6611 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6613 * infrun.c: Re-indent using gdb_indent.sh.
6615 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6617 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6618 Leave the indentation temporarily untouched, to minimize the diffs.
6620 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6622 * stabsread.c: Make os9k sections of the code obsolete,
6624 * stabsread.h: Make os9k sections of the code obsolete.
6626 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6628 * linux-low.c (regsets_store_inferior_registers): Add free()
6629 at the end of a loop to prevent memory leak.
6630 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6631 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6632 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6634 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6636 2002-07-17 Jim Blandy <jimb@redhat.com>
6638 * macrocmd.c (info_macro_command): Remove newline from error
6641 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6643 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6644 (sh_gdbarch_init): Use it for sh-dsp.
6646 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6648 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6649 64-bit DWARF2 format.
6651 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6653 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6654 <sys/proc.h> when not available.
6656 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6658 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6659 * stabsread.c: Make os9k sections of the code obsolete.
6660 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6661 * config/i386/i386os9k.mt: Make file obsolete.
6662 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6663 (COMMON_OBS): Remove os9kread.o
6664 (SFILES): Remove os9kread.c.
6665 (os9kread.o, remote-os9k.o): Make target obsolete.
6666 * remote-os9k.c: Make file obsolete.
6667 * os9kread.c: Make file obsolete.
6670 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6672 * NEWS: Mention that the FR30 has been made obsolete.
6673 * fr30-tdep.c: Make file obsolete.
6674 * config/fr30/tm-fr30.h: Ditto.
6675 * config/fr30/fr30.mt: Ditto.
6676 * configure.tgt: Make fr30-*-elf obsolete.
6677 * MAINTAINERS: Make fr30-elf obsolete.
6679 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6681 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6682 found is not inside a section.
6684 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6686 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6688 (pdc_realloc): Use xrealloc() instead of realloc().
6690 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6692 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6693 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6694 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6697 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6699 * aix-thread.c (ptrace_check): Eliminate goto.
6700 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6703 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6705 * aix-thread.c (gdbcmd.h): Include.
6706 (DEBUG, DBG, DBG2, dbg): Eliminate.
6707 (debug_aix_thread): New static global.
6708 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6709 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6710 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6711 invocations to DBG and DBG2 macros to test against
6712 ``debug_aix_thread'' and call fprintf_unfiltered().
6713 (_initialize_aix_thread): Add new command "set debug aix-thread".
6715 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6717 From Gerhard Tonn <TON@de.ibm.com>:
6718 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6719 instead of supply_register.
6721 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6723 * dwarf2cfi.c: Include "gdb_assert.h".
6724 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6726 (update_context): Do not use __func__. Add missing ``break''.
6727 (update_context): Do not use __func__.
6729 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6731 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6732 and its setting. Set gdbarch instruction printing functions
6733 directly. For non-rs6000 case use new function
6734 gdb_print_insn_powerpc.
6735 (gdb_print_insn_powerpc): New function.
6737 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6739 * NEWS: Mention that the d30v has been marked obsolete.
6740 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6741 * configure.tgt: Mark d30v-*-* as obsolete.
6742 * d30v-tdep.c: Mark file as obsolete.
6743 * config/d30v/d30v.mt: Ditto.
6744 * config/d30v/tm-d30v.h: Ditto.
6746 2002-07-13 Aidan Skinner <aidan@velvet.net>
6748 * ada-tasks.c (add_task_entry): replace calls to
6749 malloc() with xmalloc
6750 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6752 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6753 ada_finish_decode_line_1, all_sals_for_line
6754 ada_breakpoint_rewrite): replace calls to free() with xfree()
6756 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6758 From Nicholas Duffek (with minor changes by Martin Hunt,
6759 Louis Hamilton, and Kevin Buettner):
6760 * aix-thread.c: New file.
6762 2002-07-12 Petr Sorfa <petrs@caldera.com>
6764 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6765 complaint for invalid attribute class or form.
6766 (read_func_scope): DW_AT_frame_base
6767 better handling of DW_AT_block*.
6768 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6769 better handling of DW_AT_block*.
6770 (read_common_block): DW_AT_location
6771 better handling of DW_AT_block*.
6772 (read_partial_die): DW_AT_location better handling
6774 (new_symbol): DW_AT_external better handling of
6775 DW_AT_block*. Proper initialization of variable
6777 (attr_form_is_block): New function that returns true
6778 if the attribute's form is of DW_FORM_block*.
6780 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6782 * valops.c (find_method_list): Remove comment about
6783 removed STATIC_MEMFUNCP argument.
6784 (value_find_oload_method_list): Likewise.
6786 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6788 From Nicholas Duffek:
6789 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6790 target_new_objfile_hook.
6792 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6794 From Nicholas Duffek:
6795 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6798 2002-07-12 Andrew Cagney <cagney@redhat.com>
6800 * MAINTAINERS: Mention --enable-sim-build-warnings.
6801 (m68hc11-elf): Disable sim build warnings.
6802 (m32r-elf): Mark as broken obsolete candidate.
6803 (x86_64-linux-gnu): Mark as buildable with -Werror.
6804 (arm-elf): Change -w to ``,'' which enables warnings but not
6807 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6809 * bcache.h: Update copyright.
6810 (struct bstring, struct bcache): Move definition to "bcache.c".
6811 Replaced by opaque declaration.
6812 (bcache_xfree): Replace free_bcache.
6813 (bcache_xmalloc, bcache_memory_used): Declare.
6815 * bcache.c: Update copyright.
6816 (struct bstring, struct bcache): Moved to here from "bcache.h".
6818 (bcache_xmalloc, bcache_memory_used): New functions.
6819 (bcache_xfree): Replace function free_bcache.
6821 * Makefile.in (objfiles.o): Add $(bcache_h).
6822 (objfiles_h): Remove $(bcache_h).
6823 (symfile.o): Add $(bcache_h).
6825 * symmisc.c: Update copyright.
6826 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6827 (print_objfile_statistics): Use bcache_memory_used.
6829 * symfile.c: Include "bcache.h".
6830 (reread_symbols): Use bcache_xfree.
6831 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6832 (add_psymbol_to_list): Pass psymbol_cache by value.
6833 (add_psymbol_with_dem_name_to_list): Ditto.
6835 * objfiles.h: Update copyright.
6836 (struct bcache): Declare opaque. Do not include "bcache.h".
6837 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6839 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6841 * objfiles.c: Include "bcache.h". Update copyright.
6842 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6844 (free_objfile): Use bcache_xfree.
6846 2002-07-11 Grace Sainsbury <graces@redhat.com>
6848 * monitor.c (monitor_fetch_register): Make name a constant.
6849 (monitor_store_register): Same.
6851 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6853 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6854 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6855 (finish_block) For non-function blocks, hash the symbol table. For
6856 function blocks, mark the symbol table as unhashed.
6857 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6858 (msymbol_hash_iw): Likewise.
6859 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6861 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6862 (lookup_minimal_symbol): Likewise for both.
6863 * symtab.h (struct block): Add `hashtable' flag. Comment the
6865 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6866 (ALL_BLOCK_SYMBOLS): Update.
6867 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6868 (struct symbol): Add `hash_next' pointer.
6869 * symtab.c (lookup_block_symbol): Search using the hash table when
6871 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6872 (search_symbols, find_addr_symbol): Likewise.
6874 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6875 (read_dst_symtab): Likewise.
6876 * jv-lang.c (get_java_class_symtab): Likewise.
6877 * mdebugread.c: Include "gdb_assert.h".
6878 (shrink_block): Assert that the block being modified is not hashed.
6879 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6880 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6882 (dump_symtab): Recognize hashed blocks.
6883 * printcmd.c (print_frame_args): Assert that function blocks do not
6884 have hashed symbol tables.
6885 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6886 (fill_in_ada_prototype, debug_print_block): Likewise.
6887 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6889 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6891 * stack.c (print_frame): Use result of frame_address_in_block()
6892 instead of fi->pc when evaluating symbols.
6893 (backtrace_command_1): Ditto.
6895 2002-07-11 Andrew Cagney <cagney@redhat.com>
6897 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6900 * arm-tdep.c (arm_register_name): Make return type constant.
6902 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6904 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6906 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6907 * s390-tdep.c (s390_fp_regnum): Ditto.
6908 (s390_read_fp): Ditto.
6909 (s390_pop_frame): Ditto.
6910 (_initialize_s390_tdep): Ditto.
6911 * remote.c (get_remote_state): Ditto.
6912 * procfs.c (mappingflags): Ditto.
6913 * memattr.c (_initialize_mem): Ditto.
6914 * mcore-tdep.c (mcore_pop_frame): Ditto.
6915 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6916 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6917 * language.c (set_case_str): Ditto.
6918 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6919 * frv-tdep.c (new_variant): Ditto.
6920 (frv_stopped_data_address): Ditto.
6921 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6922 (context_alloc): Ditto.
6923 (frame_state_alloc): Ditto.
6924 (unwind_tmp_obstack_init): Ditto.
6925 (unwind_tmp_obstack_free): Ditto.
6926 (cfi_read_fp): Ditto.
6927 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6928 (cris_pop_frame): Ditto.
6929 * c-lang.c (scanning_macro_expansion): Ditto.
6930 (finished_macro_expansion): Ditto.
6931 (c_preprocess_and_parse): Ditto.
6932 * gdbarch.sh: Ditto.
6933 * gdbarch.h, gdbarch.c: Regenerate.
6934 * config/mn10200/tm-mn10200.h: Adjust indentation.
6935 * target.c: Adjust indentation.
6936 * symtab.h: Adjust indentation.
6937 * stabsread.h: Adjust indentation.
6938 * remote-es.c: Adjust indentation.
6939 * os9kread.c: Adjust indentation.
6941 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6943 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6944 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6946 2002-07-10 Grace Sainsbury <graces@redhat.com>
6948 * NEWS: Mention m68k, mcore multi-arching.
6949 * MAINTAINERS: Change status of m68k, mcore to reflect
6952 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6954 * valops.c (find_overload_match): Free oload_syms.
6956 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6958 Define HAVE_SYS_PROC_H if sys/proc.h exists
6959 * configure.in: Add check for sys/proc.h
6960 * config.in: Regenerate.
6961 * configure: Regenerate.
6963 2002-07-09 Grace Sainsbury <graces@redhat.com>
6965 * config/m68k/tm-m68k.h: Remove macros wrapped in
6966 #if !GDB_MULTI_ARCH.
6968 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6970 * config.in, configure: Regenerate.
6972 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6974 * dwarf2cfi.c: Include "gcore.h".
6975 (execute_stack_op): Fix implementation of the
6976 DW_OP_deref and DW_OP_deref_size operators by letting do their
6977 lookup in the target.
6979 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6981 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6982 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6985 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6987 Fix PR gdb/595, gdb/602
6988 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6989 Don't call value_cast, just read the vtable pointer; update comments
6992 2002-07-05 Grace Sainsbury <graces@redhat.com>
6994 * config/mcore/tm-mcore.h: Remove file.
6995 * config/mcore/mcore.mt: Remove definition of TM_FILE
6996 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6998 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7000 * i386bsd-tdep.c: Include "gdb_string.h".
7002 2002-07-04 Grace Sainsbury <graces@redhat.com>
7004 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7005 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7007 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7008 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7009 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7010 (RETVAL_REGNUM): Move macros from tm-mcore.h
7011 (mcore_reg_struct_has_addr): New function.
7012 (mcore_gdbarch_init): Added initializations for the macros removed
7015 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7017 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7018 traditonal string branding within the ELF header.
7020 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7022 * symtab.c (remove_params): New function.
7023 (make_symbol_overload_list): Use it instead of cplus_demangle.
7024 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7026 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7028 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7030 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7032 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7033 and tdep->sigtramp_end.
7034 * i386obsd-nat.c: New file.
7035 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7037 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7038 Don't call get_current_frame().
7040 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7042 * i386-nat.c (child_post_startup_inferior): New function
7043 calling i386_cleanup_dregs if
7044 I386_USE_GENERIC_WATCHPOINTS is defined.
7045 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7046 conditional to acknowledge that i386-nat.c has its
7047 own child_post_startup_inferior function.
7049 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7051 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7052 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7053 instead of MAX_REGISTER_RAW_SIZE.
7054 (i386_extract_return_value, i386_extract_struct_value_address):
7055 Convert to use regcache.
7056 (i386_gdbarch_init): Set max_register_raw_size and
7057 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7058 Set extract_return_value and extract_struct_value_address instead
7059 of their deprecated variants.
7061 Convert i386 target to generic dummy frames.
7062 * i386-tdep.c: Include "symfile.h".
7063 (i386_frameless_signal_p): Consider a function to be frameless if
7064 the pc points at the first instruction of the function.
7065 (i386_frame_chain): Handle (generic) call dummies.
7066 (i386_frame_saved_pc): Likewise.
7067 (i386_frame_init_saved_regs): Remove code dealing with call
7068 dummies on the stack.
7069 (i386_push_dummy_frame): Removed.
7070 (i386_call_dummy_words): Removed.
7071 (i386_fix_call_dummy): Removed.
7072 (i386_push_return_address): New function.
7073 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7074 parameter, and don't call get_current_frame.
7075 (i386_pop_frame): New function.
7076 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7077 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7078 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7079 call_dummy_length to 0, set call_dummy_words to NULL, set
7080 sizeof_call_dummy_words to 0, set fix_call_dummy to
7081 generic_fix_call_dummy, set pc_in_call_dummy to
7082 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7083 generic_push_dummy_frame, set push_return_address to
7084 i386_push_return_address and set frame_chain_valid to
7085 generic_file_frame_chain_valid.
7087 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7089 * gdbarch.sh (struct regcache): Add opaque declaration.
7090 (EXTRACT_RETURN_VALUE): New architecture method.
7091 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7092 * gdbarch.h, gdbarch.c: Regenerate.
7093 * arch-utils.c (legacy_extract_return_value): New function.
7094 * arch-utils.h (legacy_extract_return_value): Declare.
7095 * values.c (value_being_returned): Re-enable code handling
7096 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7097 deprecated_grub_regcache_for_registers call to block handling
7098 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7099 (EXTRACT_RETURN_VALUE): Do not define.
7101 2002-07-03 Grace Sainsbury <graces@redhat.com>
7103 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7104 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7105 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7106 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7107 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7108 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7109 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7110 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7111 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7112 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7113 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7114 argument so the function fits the prototype in the architecture
7116 (mcore_pop_frame): Remove argument so the function fits the
7117 prototype. Use get_current_frame instead of the argument.
7118 (mcore_push_arguments): Change type of struct_return so the
7119 function can be used in the architecture vector.
7120 (mcore_store_struct_return): Add.
7121 (mcore_frame_init_saved_regs): Add.
7122 (mcore_gdbarch_init): Add function calls to replace the macros
7123 removed from tm-mcore.h
7125 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7127 * infcmd.c (print_return_value): Remove compatibility code calling
7128 deprecated_grub_regcache_for_registers.
7130 * values.c: Include "regcache.h".
7131 (value_being_returned): Update. Use
7132 deprecated_grub_regcache_for_registers to extract the register
7134 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7135 ``struct regcache''.
7136 * Makefile.in (values.o): Add dependency on $(regcache_h).
7138 * inferior.h (run_stack_dummy): Change type of second parameter to
7139 a ``struct regcache''.
7140 * valops.c (hand_function_call): Change type of retbuf to ``struct
7141 regcache''. Allocate using regcache_xmalloc, clean using
7142 make_cleanup_regcache_xfree.
7143 * infcmd.c (run_stack_dummy): Update. Use
7144 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7146 * regcache.c (do_regcache_xfree): New function.
7147 (make_cleanup_regcache_xfree): New function.
7148 * regcache.h (make_cleanup_regcache_xfree): Declare.
7150 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7152 * event-top.c (command_line_handler): Don't read past
7153 beginning of buffer.
7155 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7157 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7159 (varobj_create): Store frame_id for root.
7160 (varobj_gen_name): Use xasprintf.
7161 (varobj_update): Save and restore frame using get_frame_id() and
7163 (create_child): Use xasprintf.
7164 (new_root_variable): Initialize frame_id.
7165 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7166 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7167 to prevent memory leak.
7169 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7171 * valops.c (hand_function_call): Move declaration of retbuf to
7172 start of function, allocate using malloc, add a cleanup but before
7173 the inf_status cleanup, cleanup the buffer. Rename local variable
7174 old_chain to inf_status_cleanup.
7176 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7178 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7180 * cli/cli-decode.c (cmd_func_p): New function.
7181 (cmd_func): New function.
7183 * command.h: Add cmd_func() and cmd_func_p().
7185 2002-07-03 Grace Sainsbury <graces@redhat.com>
7187 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7188 (REGISTER_SIZE): Remove.
7189 (MAX_REGISTER_RAW_SIZE): Remove.
7190 (REGISTER_VIRTUAL_TYPE): Remove.
7191 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7192 (REGISTER_NAME): Remove.
7193 (USE_GENERIC_DUMMY_FRAMES): Remove.
7194 (CALL_DUMMY): Remove.
7195 (CALL_DUMMY_START_OFFSET): Remove.
7196 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7197 (CALL_DUMMY_LOCATION): Remove.
7198 (FIX_CALL_DUMMY): Remove.
7199 (CALL_DUMMY_ADDRESS): Remove.
7200 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7201 (SAVE_DUMMY_FRAME_TOS): Remove.
7202 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7203 (mcore_register_virtual_type): New function.
7204 (mcore_register_byte): New function.
7205 (mcore_register_size): New function.
7206 (mcore_register_name): New function.
7207 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7208 macros removed from tm-mcore.h.
7209 (mcore_dump_tdep): Add.
7210 (_initialize_mcore_tdep): Add gdbarch_register call.
7212 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7214 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7215 frameless_look_for_prologue, such that we actually call this
7218 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7220 * frame.h (frame_address_in_block): New function.
7222 * blockframe.c (frame_address_in_block): New function extracted
7223 from get_frame_block().
7224 (get_frame_block): Use frame_address_in_block().
7225 (block_innermost_frame): Use frame_address_in_block() to match
7226 the frame pc address against the block boundaries rather than
7227 the frame pc directly. This prevents a failure when a frame pc
7228 is actually a return-address pointing immediately after the end
7231 2002-07-02 Grace Sainsbury <graces@redhat.com>
7233 * MAINTAINERS: Add self under write after approval.
7235 2002-07-02 Grace Sainsbury <graces@redhat.com>
7237 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7238 used in architecture vector. The default is
7239 m68k_local_breakpoint_from_pc.
7240 (m68k_local_breakpoint_from_pc): Add.
7241 (enum): Add register numbers from tm-m68k.h.
7242 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7244 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7245 GDB_MULTI_ARCH_PARTIAL.
7246 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7247 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7249 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7250 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7251 to enum in m68k-tdep.c
7253 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7255 * solib-osf.c (open_map): Compute the list of shared libraries
7256 loaded by the inferior, rather than the list of libraries loaded
7257 by GDB itself. Otherwise, GDB ends up reading the symbols from
7258 the wrong shared libraries...
7260 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7262 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7263 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7265 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7267 (FRAMELESS_SIGNAL): Remove function.
7268 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7269 i386_linux_saved_pc_after_call): Removed.
7270 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7271 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7272 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7274 * i386-tdep.c (i386_frameless_signal_p): New function.
7275 (i386_frame_chain): Deal with frameless signals.
7276 (i386_sigtramp_saved_sp): New function.
7277 (i386_frame_saved_pc): Deal with frameless signals.
7278 (i386_saved_pc_after_call): Make sure the correct value is
7279 returned just after entry into a sigtramp.
7280 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7281 i386fbsd4_sc_sp_offset): New variables.
7282 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7283 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7284 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7285 similiar to what we already did for sc_pc_offset.
7286 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7289 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7291 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7293 * config/i386/tm-x86-64linux.h: New.
7294 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7296 * config/i386/nm-x86-64.h: Rename to ...
7297 * config/i386/nm-x86-64linux.h: ... this one.
7298 * config/i386/x86-64linux.mh: Reflect the above change.
7300 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7302 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7303 with sigcontext_addr. Add sc_sp_offset.
7304 (i386bsd_sigtramp_saved_pc): Remove prototype.
7305 (i386bsd_sicontext_addr): Add prototype.
7306 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7307 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7308 (i386_svr4_sigtramp_saved_pc): Removed.
7309 (i386_svr4_sigcontext_addr): New function.
7310 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7311 Initialize tdep->sigcontext_addr instead. Initialize
7312 tdep->sc_pc_offset and tdep->sc_sp_offset.
7313 (i386_gdbarch_init): Likewise.
7314 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7316 (i386bsd_sigtramp_saved_pc): Remove function.
7317 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7318 Initialize tdep->sigcontext_addr instead. Initialize
7320 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7321 of tdep->sigtramp_saved_pc.
7322 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7323 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7326 * i386-tdep.c (i386_frameless_function_invocation,
7327 i386_frame_num_args, i386_frame_init_saved_regs,
7328 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7329 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7330 i386_extract_return_value, i386_store_return_value,
7331 i386_extract_struct_value_address, i386_register_virtual_type,
7332 i386_register_convertible, i386_register_convert_to_virtual,
7333 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7334 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7337 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7339 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7341 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7342 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7343 this macro. Include "value.h".
7345 2002-06-30 Aidan Skinner <aidan@velvet.net>
7347 * ada-exp.tab.c: remove as it's a generated file
7348 * ada-lex.c: remove as it's a generated file
7350 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7352 * config/i386/tm-i386.h (struct frame_info, struct
7353 frame_saved_regs, struct value, struct type): Remove forward
7356 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7357 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7358 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7359 (FILL_FPXREGSET): Define.
7361 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7363 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7364 i[3456]86-*-netbsd* case.
7365 * config/i386/tm-obsd.h: Removed.
7366 * config/i386/obsd.mt: Removed.
7367 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7369 (MH_CFLAGS): Add -DYYDEBUG=0.
7371 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7372 i386nbsd_sc_pc_offset on OpenBSD too.
7374 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7375 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7376 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7378 * i386bsd-tdep.c: Include "arch-utils.h".
7379 (i386bsd_aout_in_solib_call_trampoline): New function.
7380 (i386bsd_init_abi): Set in_solib_call_trampoline to
7381 i386bsd_aout_in_solib_call_trampoline.
7382 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7383 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7385 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7387 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7388 (struct obstack, struct bcache): Add opaque declarations.
7389 * Makefile.in (macrotab_h): Update
7391 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7393 * blockframe.c (generic_find_dummy_frame): Change return type to
7394 ``struct regcache''.
7395 (struct dummy_frame): Replace field ``registers'' with regcache, a
7396 struct regcache object.
7397 (generic_find_dummy_frame): Update.
7398 (generic_push_dummy_frame): Update. Use regcache_xfree,
7399 regcache_xmalloc and regcache_cpy.
7400 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7402 (deprecated_generic_find_dummy_frame): Update.
7403 (generic_read_register_dummy): Update. Use
7404 regcache_read_as_address.
7405 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7406 (generic_get_saved_register): Update. Use regcache_read.
7408 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7410 * Makefile.in (objfiles_h): Add $(bcache_h).
7411 * objfiles.h: Include "bcache.h".
7413 * Makefile.in (symtab_h): Remove $(bcache_h).
7414 * symtab.h: Do not include "bcache.h".
7416 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7418 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7419 generic_func_frame_chain_valid.
7421 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7423 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7424 * config/i386/tm-fbsd.h: Likewise.
7426 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7428 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7429 generic_unwind_get_saved_register.
7431 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7433 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7434 * regcache.c (supply_register): Add missing argument to
7435 register_buffer call.
7437 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7439 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7440 Solaris /bin/grep does not not like it. From Peter Schauer.
7442 2002-06-26 Tom Tromey <tromey@redhat.com>
7444 * command.h (add_setshow_cmd): Declare.
7445 (add_setshow_cmd_full): Declare.
7446 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7447 returns void. Use add_setshow_cmd_full.
7448 (add_setshow_cmd_full): New function.
7449 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7450 (add_setshow_boolean_cmd): Likewise.
7452 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7454 * config/vax/tm-vax.h: Protect from multiple inclusion.
7455 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7456 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7457 * config/vax/tm-vaxbsd.h: ...here. New file.
7458 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7460 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7462 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7463 (BELIEVE_PCC_PROMOTION): Remove.
7464 (AP_REGNUM): Move to...
7465 * config/vax/nm-vax.h: ...here.
7466 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7467 (vax_breakpoint_from_pc): New function.
7468 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7469 and gdbarch_believe_pcc_promotion.
7471 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7473 * Makefile.in (vax_tdep_h): Define.
7474 (vax-tdep.o): Use $(vax_tdep_h).
7475 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7476 (vax_dump_tdep): New function.
7477 (_initialize_vax_tdep): Register vax_dump_tdep.
7478 * vax-tdep.h: Include osabi.h.
7479 (struct gdbarch_tdep): New.
7481 2002-06-26 Andrew Cagney <cagney@redhat.com>
7483 * frame.h (deprecated_generic_find_dummy_frame): Rename
7484 generic_find_dummy_frame.
7485 * blockframe.c (generic_find_dummy_frame): Make static.
7486 (deprecated_generic_find_dummy_frame): New function.
7487 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7488 generic_find_dummy_frame with deprecated_find_dummy_frame.
7489 (sh64_nofp_frame_init_saved_regs): Ditto.
7490 (sh_fp_frame_init_saved_regs): Ditto.
7491 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7492 (s390_frame_chain): Ditto.
7493 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7495 2002-06-26 Grace Sainsbury <graces@redhat.com>
7497 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7498 gdbarch vector are at the top.
7500 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7501 (FRAME_ARGS_ADDRESS): Remove.
7502 (FRAME_LOCALS_ADDRESS): Remove.
7503 (FRAME_NUM_ARGS): Remove.
7504 (FRAME_ARGS_SKIP): Remove.
7505 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7506 (m68k_gdbarch_init): Add gdbarch initializations for macros
7507 undefined in tm-m68k.h
7509 2002-06-26 Grace Sainsbury <graces@redhat.com>
7511 * monitor.h: Add the function regname to monitor_ops
7512 structure. This way NUM_REGS does not have to be a constant.
7513 * monitor.c (monitor_fetch_register): Added support for regname
7514 function. The function is called if the array regnames is NULL.
7515 (monitor_store_register): Same.
7516 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7518 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7519 cpu32bug_cmds.regname to point to new function.
7520 * abug-rom.c (abug_regname): Same as above.
7521 (init_abug_cmds): Same.
7522 * dbug-rom.c (dbug_regname): Same as above.
7523 (init_dbug_cmds): Same.
7524 * remote-est.c (est_regname): Same.
7525 (init_est_cmds): Same.
7526 * rom68k-rom.c (rom68k_regname): Same.
7527 (init_rom68k_cmds): Same.
7529 2002-06-25 Tom Tromey <tromey@redhat.com>
7531 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7533 2002-06-25 Andrew Cagney <cagney@redhat.com>
7535 * infrun.c (stop_registers): Change variable's type to ``struct
7537 (xmalloc_inferior_status): Delete function.
7538 (free_inferior_status): Delete function.
7539 (normal_stop): Use regcache_cpy.
7540 (struct inferior_status): Change type of fields ``stop_registers''
7541 and ``registers'' to ``struct regcache''.
7542 (write_inferior_status_register): Use regcache_write.
7543 (save_inferior_status): Instead of calling
7544 xmalloc_inferior_status, allocate the inf_status buffer directly.
7545 Use regcache_dup_no_passthrough and regcache_dup to save the
7547 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7548 Replace the stop_registers regcache instead of overriding it. Use
7549 regcache_xfree. Instead of calling free_inferior_status, xfree
7550 the buffer directly.
7551 (discard_inferior_status): Use regcache_xfree. Instead of calling
7552 free_inferior_status, xfree the buffer directly.
7553 (build_infrun): Use regcache_xmalloc.
7554 (_initialize_infrun): Delete redundant call to build_infrun.
7556 * Makefile.in (infcmd.o): Add $(regcache_h).
7558 * infcmd.c: Include "regcache.h".
7559 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7560 obtain the address of `stop_registers' register buffer.
7561 (print_return_value): Ditto.
7563 * inferior.h (struct regcache): Add opaque declaration.
7564 (stop_registers): Change variable's declared type to ``struct
7567 2002-06-24 Tom Tromey <tromey@redhat.com>
7569 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7570 * target.c (initialize_targets): Fixed typo in
7571 trust-readonly-sections `show' documentation.
7573 * main.c: Marked all strings with _().
7575 2002-06-24 Don Howard <dhoward@redhat.com>
7577 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7578 that means max CORE_ADDR+1.
7579 (lookup_mem_region): Ditto.
7580 (mem_info_command): Ditto.
7582 2002-06-24 Grace Sainsbury <graces@redhat.com>
7584 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7585 (REGISTER_BYTES_OK): Remove.
7586 (REGISTER_BYTES): Remove.
7587 (STORE_STRUCT_RETURN): Remove.
7588 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7589 (STORE_RETURN_VALUE): Remove.
7590 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7591 (FRAME_CHAIN): Remove.
7592 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7593 (FRAME_SAVED_PC): Remove.
7594 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7595 (m68k_store_struct_return): Add.
7596 (m68k_deprecated_extract_return_value): Add.
7597 (m68k_deprecated_extract_struct_value_address): Add.
7598 (m68k_store_return_value): Add.
7599 (m68k_frame_chain): Add.
7600 (m68k_frameless_function_invocation): Add.
7601 (m68k_frame_saved_pc): Add.
7602 (m68k_gdbarch_init): added set_gdbarch calls for new
7603 functions and deleted macros.
7605 2002-06-23 Tom Tromey <tromey@redhat.com>
7607 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7608 (ALLDEPFILES): Likewise.
7609 (udiheaders): Removed.
7610 (udip2soc.o): Likewise.
7611 (udi2go32.o): Likewise.
7613 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7615 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7617 * infrun.c (_initialize_infrun): Delete unnecessary call to
7620 * regcache.h: Update comments describing the regcache_cpy family
7622 (regcache_save, regcache_restore): Delete declaration.
7623 (regcache_save_no_passthrough): Delete declaration.
7624 (regcache_restore_no_passthrough): Delete declaration.
7625 * regcache.c (regcache_save): Delete function.
7626 (regcache_save_no_passthrough): Delete function.
7627 (regcache_restore): Delete function.
7628 (regcache_restore_no_passthrough): Delete function.
7630 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7632 * config/m68k/tm-m68k.h: Fix typo.
7633 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7634 (m68k_frame_init_saved_regs): Declare.
7636 2002-06-21 Jim Blandy <jimb@redhat.com>
7638 Remove some vestiges of Harris 88k support.
7639 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7640 register numbering quirk.
7641 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7642 odd symbols occurring in Harris 88k ELF targets.
7644 2002-06-21 Tom Tromey <tromey@redhat.com>
7646 * gdb_locale.h: New file.
7647 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7648 (defs_h): Added gdb_locale.h.
7649 * configure, config.in: Rebuilt.
7650 * configure.in (PACKAGE): Define.
7651 * defs.h: Include gdb_locale.h.
7652 * main.c (captured_main): Call setlocale, bindtextdomain,
7655 2002-06-21 Dave Brolley <brolley@redhat.com>
7657 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7658 * config/frv/frv.mt: New file.
7659 * config/frv/tm-frv.h: New file.
7660 * configure.tgt: Support frv-*-*.
7661 * Makefile.in (frv-tdep.o): New target.
7662 * frv-tdep.c: New file.
7663 * NEWS: Mention frv.
7665 2002-06-21 Dave Brolley <brolley@redhat.com>
7667 * MAINTAINERS: Add self to "Write After Approval" list.
7669 2002-06-21 Grace Sainsbury <graces@redhat.com>
7671 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7672 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7673 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7674 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7675 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7677 * m68k-tdep.c: Include arch-utils.h
7678 (m68k_register_raw_size): Add.
7679 (m68k_register_virtual_size): Add.
7680 (m68k_register_virtual_type): Add.
7681 (m68k_register_name): Add.
7682 (m68k_stack_align): Add.
7683 (m68k_register_byte): Add.
7684 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7687 2002-06-21 Grace Sainsbury <graces@redhat.com>
7689 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7690 m68k_find_saved_regs.
7691 (m68k_pop_frame): Removed saved_regs structure, and replaced
7692 references to it with frame->saved_regs.
7693 (m68k_gdbarch_init): Added function calls to initialize the
7695 (m68k_fix_call_dummy): Add.
7696 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7697 (CALL_DUMMY): Remove.
7698 (CALL_DUMMY_LENGTH): Remove.
7699 (CALL_DUMMY_START_OFFSET): Remove.
7700 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7701 (FIX_CALL_DUMMY): Remove.
7702 (PUSH_DUMMY_FRAME): Remove.
7703 (POP_FRAME): Remove.
7705 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7707 * parse.c (parse_fprintf): New function used to avoid calls to
7708 fprintf in bison parser generated debug code.
7709 * parser-defs.h: Declaration of new parse_fprintf function.
7710 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7711 Set YYDEBUG to 1 by default.
7712 Set YYFPRINTF as parse_fprintf.
7714 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7716 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7718 (pointer_encoding, enum ptr_encoding): New.
7719 (execute_cfa_program): Take care about pointer encoding.
7720 (dwarf2_build_frame_info): Only call parse_frame_info for
7721 .debug_frame and .eh_frame.
7722 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7723 fixed augmentation handling, added relative addressing,
7724 ignore duplicate FDEs. Added comments.
7725 * dwarf2cfi.c: Reindented.
7727 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7729 * event-top.c (command_handler): Don't use space_at_cmd_start
7730 unless there is sbrk() on the host. Assign time and space data
7731 to union fields of the appropriate length.
7733 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7735 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7736 x86_64_register_name. Return type changed to 'const char *'.
7737 (x86_64_register_name2nr): Rename to x86_64_register_number.
7738 (x86_64_gdbarch_init): Update to reflect the change.
7739 * x86-64-tdep.h: Ditto.
7740 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7741 (supply_fpregset): Ditto.
7743 2002-06-19 Andrew Cagney <cagney@redhat.com>
7745 * regcache.h: Update copyright.
7746 (struct regcache, struct gdbarch): Add opaque declarations.
7747 (current_regcache): Declare global variable.
7748 (regcache_read, regcache_write): Add gdbarch parameter.
7749 (regcache_save, regcache_save_no_passthrough)
7750 (regcache_restore, regcache_restore_no_passthrough)
7751 (regcache_dup, regcache_dup_no_passthrough)
7752 (regcache_cpy, regcache_cpy_no_passthrough)
7753 (deprecated_grub_regcache_for_registers)
7754 (deprecated_grub_regcache_for_register_valid)
7755 (regcache_valid_p): Add function declarations.
7757 * regcache.c: Update copyright.
7758 (regcache_descr_handle): New global variable.
7759 (struct regcache_descr): Define.
7760 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7761 (regcache_descr, xfree_regcache_descr): New functions.
7762 (struct regcache): Define.
7763 (regcache_xmalloc, regcache_xfree): New functions.
7764 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7765 (regcache_dup, regcache_dup_no_passthrough): New functions.
7766 (regcache_valid_p, regcache_read_as_address): New functions.
7767 (deprecated_grub_regcache_for_registers): New function.
7768 (deprecated_grub_regcache_for_register_valid): New function.
7769 (current_regcache): New global variable.
7770 (register_buffer): Add regcache parameter. Update calls.
7771 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7772 (read_register_gen, write_register_gen): Update register_buffer
7773 call. Test for legacy_p instead of gdbarch_register_read_p or
7774 gdbarch_register_write_p.
7775 (regcache_collect): Update register_buffer call.
7776 (build_regcache): Rewrite. Use deprecated grub functions.
7777 (regcache_save, regcache_save_no_passthrough): New functions.
7778 (regcache_restore, regcache_restore_no_passthrough): New
7780 (_initialize_regcache): Create the regcache_data_handle. Swap
7781 current_regcache global variable.
7783 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7784 parameter to regcache_read and regcache_write calls.
7785 (sh4_register_read): Ditto.
7786 (sh64_pseudo_register_read): Ditto.
7787 (sh64_register_read): Ditto.
7788 (sh_pseudo_register_write): Ditto.
7789 (sh4_register_write): Ditto.
7790 (sh64_pseudo_register_write): Ditto.
7791 (sh64_register_write): Ditto.
7793 * defs.h (XCALLOC): Define.
7795 2002-06-19 Grace Sainsbury <graces@redhat.com>
7797 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7798 * m68k-tdep.c (m68k_gdbarch_init): Added.
7799 (m68k_dump_tdep): Added.
7801 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7803 * ada-lang.c (fill_in_ada_prototype): Update comment.
7805 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7807 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7809 (mips_abi_string, mips_abi_strings): New.
7810 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7811 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7812 tdep->mips_abi_string. Honor mips_abi_string. Default to
7813 O32 if no ABI is found.
7814 (mips_dump_tdep): Use mips_abi_strings.
7815 (mips_abi_update): New function.
7816 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7817 ``set mips abi'' and ``show mips abi''. Check the size of
7820 2002-06-19 Andrew Cagney <cagney@redhat.com>
7822 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7825 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7827 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7828 current frame using only the first stack size adjustment. All
7829 subsequent size adjustments are not considered to be part of
7830 the "static" part of the current frame.
7831 Compute the address of the saved registers relative to the
7832 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7833 in use in this frame.
7835 2002-06-18 Don Howard <dhoward@redhat.com>
7837 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7838 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7839 suggesting this solution.
7841 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7843 * config/romp/xm-rtbsd.h: Delete file.
7844 * config/romp/rtbsd.mh: Delete file.
7846 2002-06-18 Keith Seitz <keiths@redhat.com>
7848 * breakpoint.c (condition_command): Post breakpoint_modify
7849 when a condition is added to an existing breakpoint.
7850 (commands_command): Likewise for commands.
7851 (set_ignore_count): Likewise for ignore counts.
7852 If no tty, do not simply return, still need to send event
7854 (ignore_command): Only print a newline if the command came
7856 Don't call breakpoints_changed, since this is now properly
7857 handled by set_ignore_count.
7859 2002-06-18 Andrew Cagney <cagney@redhat.com>
7861 * MAINTAINERS: Note that cris-elf target can be compiled with
7863 * cris-tdep.c (cris_register_name): Make return type constant.
7864 (cris_breakpoint_from_pc): Ditto.
7866 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7868 * frame.h (struct frame_info): Change type of context to
7871 2002-06-17 Andrew Cagney <cagney@redhat.com>
7873 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7875 * gdbarch.h, gdbarch.c: Regenerate.
7876 * config/mips/tm-mips.h (mips_register_name): Update.
7877 * i386-tdep.h (i386_register_name): Update.
7878 * mips-tdep.c (mips_register_name): Update
7879 * alpha-tdep.c (alpha_register_name): Update.
7880 * arch-utils.c (legacy_register_name): Update.
7881 * arch-utils.h (legacy_register_name): Update.
7882 * avr-tdep.c (avr_register_name): Update.
7883 * ia64-tdep.c (ia64_register_name): Update.
7884 * i386-tdep.c (i386_register_name): Update.
7885 * sparc-tdep.c (sparc32_register_name): Update.
7886 (sparc64_register_name): Update.
7887 (sparclite_register_name): Update.
7888 (sparclet_register_name): Update.
7889 * sh-tdep.c (sh_generic_register_name): Update.
7890 (sh_sh_register_name): Update.
7891 (sh_sh3_register_name): Update.
7892 (sh_sh3e_register_name): Update.
7893 (sh_sh_dsp_register_name): Update.
7894 (sh_sh3_dsp_register_name): Update.
7895 (sh_sh4_register_name): Update.
7896 (sh_sh64_register_name): Update.
7897 * s390-tdep.c (s390_register_name): Update.
7898 * rs6000-tdep.c (rs6000_register_name): Update.
7899 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7900 (ns32k_register_name_32382): Update.
7901 * d10v-tdep.c (d10v_ts2_register_name): Update.
7902 (d10v_ts3_register_name): Update.
7903 * xstormy16-tdep.c (xstormy16_register_name): Update.
7904 * vax-tdep.c (vax_register_name): Update.
7905 * v850-tdep.c (v850_register_name): Update.
7906 * m68hc11-tdep.c (m68hc11_register_name): Update.
7907 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7908 (am33_register_name): Update.
7910 2002-06-17 Grace Sainsbury <graces@redhat.com>
7912 * m68k-tdep.c: Reindented.
7914 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7916 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7917 list of predefined types.
7919 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7921 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7922 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7923 REGISTER_CONVERT_TO_RAW): Remove defines.
7924 (i386_register_virtual_type, i386_register_convertible,
7925 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7927 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7928 macros mentioned above.
7930 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7931 (i386lynx_saved_pc_after_call): Remove prototype.
7932 * i386ly-tdep.c: Include "i386-tdep.h".
7933 (i386lynx_saved_pc_after_call): Make static. Use
7934 read_memory_nobpt instead of read_memory. Use
7935 read_memory_unsigned_integer instead of read_memory_integer.
7936 (i386lynx_init_abi): New function.
7937 (i386lynx_coff_osabi_sniffer): New function.
7938 (_initialize_i386bsd_tdep): New function.
7940 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7941 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7942 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7943 (i386_fix_call_dummy): Remove prototype.
7944 * i386-tdep.c (i386_call_dummy_words): New variable.
7945 (i386_gdbarch_init): Adjust for removal of the
7946 macros mentioned above.
7948 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7950 * command.h (add_setshow_auto_boolean_cmd): Replace
7951 add_set_auto_boolean_cmd.
7952 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7953 add_set_auto_boolean_cmd.
7954 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7955 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7956 mask-address'' command.
7957 (show_mask_address): Add cmd parameter.
7958 * remote.c (add_packet_config_cmd): Update. Change type of
7959 set_func and show_func to cmd_sfunc_ftype.
7960 (_initialize_remote): Update `set remote Z-packet'
7961 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7962 (show_remote_protocol_e_packet_cmd): Ditto.
7963 (show_remote_protocol_E_packet_cmd): Ditto.
7964 (show_remote_protocol_P_packet_cmd): Ditto.
7965 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7966 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7967 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7968 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7969 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7970 (show_remote_protocol_Z_packet_cmd): Ditto.
7971 (show_remote_protocol_binary_download_cmd): Ditto.
7972 (show_remote_cmd): Pass NULL to all of above.
7974 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7976 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7977 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7978 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7979 POP_FRAME): Remove defines.
7980 (i386_push_arguments, i386_store_struct_return,
7981 i386_extract_return_value, i386_store_return_value,
7982 i386_extract_struct_value_address, i386_push_dummy_frame,
7983 i386_pop_frame): Renove prototypes.
7984 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7985 macros mentioned above.
7987 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7989 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7990 add_set_boolean_cmd.
7991 (add_setshow_cmd): New function.
7992 * command.h (add_setshow_boolean_cmd): Replace
7993 add_set_boolean_cmd.
7994 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7995 and ``set rdiromatzero''.
7996 * maint.c (_initialize_maint_cmds): Update commented out code.
7997 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7998 * target.c (initialize_targets): Update `set
7999 trust-readonly-sections'.
8000 * remote.c (_initialize_remote): Update `set remotebreak'.
8002 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8004 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8005 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8006 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8007 fit into multi-arch framework.
8008 (i386_breakpoint_from_pc): New function.
8009 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8012 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8013 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8014 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8015 (i386_frameless_function_invocation, i386_frame_num_args,
8016 i386_frame_init_saved_regs): Remove prototypes.
8017 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8018 macros mentioned above.
8020 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8022 * cli/cli-decode.c (set_cmd_cfunc): Update.
8023 (set_cmd_sfunc): Update.
8024 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8025 (set_cmd_sfunc, set_cmd_cfunc): Update.
8026 * cli/cli-decode.h: Update.
8028 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8030 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8031 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8033 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8035 * defs.h (auto_boolean): Declare enum.
8036 * command.h (cmd_auto_boolean): Delete enum.
8037 * mips-tdep.c (mask_address_var): Update.
8038 (mips_mask_address_p): Update.
8039 (show_mask_address): Update.
8040 * remote.c (struct packet_config): Update.
8041 (update_packet_config): Update.
8042 (show_packet_config_cmd): Update.
8043 (packet_ok): Update.
8044 (add_packet_config_cmd): Update.
8045 (_initialize_remote):
8046 * command.h: Update.
8047 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8048 (do_setshow_command): Update.
8049 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8050 * cli/cli-decode.h: Update.
8052 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8054 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8055 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8056 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8057 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8058 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8059 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8061 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8062 list of DJGPP COFF targets.
8064 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8065 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8066 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8067 (FP0_REGNUM): Remove define.
8068 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8069 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8070 (i386_register_virtual_size): Remove protoype.
8071 * i386-tdep.c (i386_register_virtual_size): Removed.
8072 (i386_extract_return_value, i386_store_return_value): Use
8073 FP0_REGNUM instead of NUM_FREGS to determine whether the
8074 floating-point registers are available.
8075 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8076 Adjust for removal of macros mentioned above.
8078 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8080 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8082 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8084 (supply_gregset, fill_gregset): Remove use of register keyword and
8085 remove declaration for regmap. Use I386_NUM_GREGS instead of
8086 NUM_REGS and NUM_FREGS.
8087 (FPREGSET_FSAVE_OFFSET): Remove.
8088 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8089 NUM_FREGS to determine whether the floating-point registers are
8092 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8093 gnu_store_registers): Replace usage of NUM_GREGS with
8096 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8097 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8098 usage of NUM_GREGS with I386_NUM_GREGS.
8100 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8102 * i386bsd-nat.c: Include "i386-tdep.h".
8103 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8106 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8107 and associated comment. They no longer make any sense, since we
8108 don't use this file anymore on Linux.
8110 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8111 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8112 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8113 elements in these arrays.
8114 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8117 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8119 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8120 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8122 2002-06-14 Andrew Cagney <cagney@redhat.com>
8124 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8125 EXTRACT_RETURN_VALUE.
8126 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8127 EXTRACT_STRUCT_VALUE_ADDRESS.
8128 * gdbarch.h, gdbarch.c: Regenerate.
8130 * values.c (value_being_returned): Handle
8131 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8132 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8134 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8135 * arm-tdep.c (arm_gdbarch_init): Update.
8136 * avr-tdep.c (avr_gdbarch_init): Update.
8137 * cris-tdep.c (cris_gdbarch_init): Update.
8138 * d10v-tdep.c (d10v_gdbarch_init): Update.
8139 * ia64-tdep.c (ia64_gdbarch_init): Update.
8140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8142 * s390-tdep.c (s390_gdbarch_init): Update.
8143 * sh-tdep.c (sh_gdbarch_init): Update.
8144 * s390-tdep.c (s390_gdbarch_init): Update.
8145 * sparc-tdep.c (sparc_gdbarch_init): Update.
8146 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8147 * v850-tdep.c (v850_gdbarch_init): Update.
8148 * vax-tdep.c (vax_gdbarch_init): Update.
8149 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8150 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8152 * config/arc/tm-arc.h: Update.
8153 * config/d30v/tm-d30v.h: Update.
8154 * config/fr30/tm-fr30.h: Update.
8155 * config/h8300/tm-h8300.h: Update.
8156 * config/h8500/tm-h8500.h: Update.
8157 * config/i386/tm-i386.h: Update.
8158 * config/i386/tm-ptx.h: Update.
8159 * config/i386/tm-symmetry.h: Update.
8160 * config/i960/tm-i960.h: Update.
8161 * config/m32r/tm-m32r.h: Update.
8162 * config/m68k/tm-delta68.h: Update.
8163 * config/m68k/tm-linux.h: Update.
8164 * config/m68k/tm-m68k.h: Update.
8165 * config/m88k/tm-m88k.h: Update.
8166 * config/mcore/tm-mcore.h: Update.
8167 * config/mips/tm-mips.h: Update.
8168 * config/mn10200/tm-mn10200.h: Update.
8169 * config/pa/tm-hppa.h: Update.
8170 * config/pa/tm-hppa64.h: Update.
8171 * config/sparc/tm-sp64.h: Update.
8172 * config/sparc/tm-sparc.h: Update.
8173 * config/sparc/tm-sparclet.h: Update.
8174 * config/z8k/tm-z8k.h: Update.
8176 2002-06-14 Andrew Cagney <cagney@redhat.com>
8178 * Makefile.in (i386_linux_tdep_h): Define.
8179 (i386_tdep_h, i387_tdep_h): Define.
8180 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8181 $(i386_tdep_h) and $(i387_tdep_h).
8182 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8184 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8186 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8187 Already covered by the default.
8189 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8190 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8191 (i386_gdbarch_init): Initialize long_double_format and long_double
8194 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8195 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8197 * config/i386/i386sol2.mh: ... here.
8198 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8199 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8200 (SIGCONTEXT_PC_OFFSET): Remove define.
8201 (IN_SIGTRAMP): Remove define.
8202 * i386-sol2-tdep.c: New file.
8204 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8205 * config/i386/tm-i386nw.h: Removed.
8207 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8208 USE_STRUCT_CONVENTION): Remove defines.
8209 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8210 (get_longjmp_target): Remove prototype.
8211 (IN_SIGTRAMP): Remove define.
8212 (i386bsd_in_sigtramp): Remove prototype.
8213 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8214 function. Update comment accordingly
8215 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8216 (FRAME_SAVED_PC): Remove define.
8217 (i386bsd_frame_saved_pc): Remove prototype.
8218 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8219 GET_LONGJMP_TARGET): Remove defines.
8220 (get_longjmp_target): Remove prototype.
8221 (IN_SIGTRAMP): Remove define.
8222 (i386bsd_in_sigtramp): Remove prototype.
8223 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8224 function. Update comment accordingly
8225 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8226 (FRAME_SAVED_PC): Remove define.
8227 (i386bsd_frame_saved_pc): Remove prototype.
8228 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8230 (USE_STRUCT_CONVENTION): Remove prototype.
8231 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8233 (_initialize_i386bsd_nat): Revise logic to determine some
8234 constants at compile time when compiling a native GDB. Warn if
8235 things don't match up with what we expect.
8236 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8238 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8239 to use date stored in `struct gdbarch_tdep'.
8240 (i386bsd_sigcontext_offset): Remove varaible.
8241 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8242 stored in `struct gdbarch_tdep'.
8243 (i386bsd_frame_saved_pc): Make static.
8244 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8245 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8246 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8247 i386fbsd4_sc_pc_offset): New variables.
8248 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8249 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8251 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8253 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8254 Modify the value of i386fbsd_sigtramp_start and
8255 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8256 i386fbsd_sigtramp_end.
8257 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8260 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8261 define to i386-linux-tdep.h.
8262 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8263 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8265 (i386_linux_register_name, i386_linux_register_byte,
8266 i386_linux_register_raw_size): Remove prototypes.
8267 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8268 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8269 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8270 TARGET_WRITE_PC): Remove defines.
8271 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8272 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8273 i386_linux_write_pc): Remove prototypes.
8274 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8275 (get_longjmp_target): Remove prototype.
8276 * i386-linux-tdep.h: New file.
8277 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8278 * i386-linux-tdep.c: Include "i386-tdep.h" and
8279 "i386-linux-tdep.h".
8280 (i386_linux_register_name, i386_linux_register_byte,
8281 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8282 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8284 (i386_linux_init_abi): New function.
8285 (_initialize_i386_linux_tdep): New function.
8287 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8288 (i386_saved_pc_after_call): Remove prototype.
8289 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8290 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8291 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8292 (i386_register_name, i386_stab_reg_to_regnum,
8293 i386_dwarf_reg_to_regnum): Remove prototypes.
8294 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8295 SIZEOF_SSE_REGS): Remove defines.
8296 (REGISTER_BYTES): Remove define.
8297 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8298 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8299 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8300 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8301 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8302 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8303 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8304 (get_longjmp_target): Remove prototype.
8305 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8306 (sigtramp_saved_pc): Remove define.
8307 (i386v4_sigtramp_saved_pc): Remove prototype.
8308 * config/i386/tm-go32.h (FRAME_CHAIN,
8309 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8310 (i386go32_frame_saved_pc): Remove prototype.
8311 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8312 (get_longjmp_target): Remove prototype.
8313 * i386-tdep.h: Include "osabi.h".
8314 (enum i386_abi): Removed.
8315 (enum struct_return): New enum.
8316 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8317 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8318 sc_pc_offset members.
8319 (i386_gdbarch_register_os_abi): Remove prototype.
8320 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8321 I386_SSE_NUM_REGS): New defines.
8322 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8323 I386_SSE_SIZEOF_REGS): New defines.
8324 (i386_register_name, i386_register_byte, i386_register_raw_size):
8326 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8327 (i386bsd_sigtramp_saved_pc): New prototype.
8328 * i386-tdep.c: Don't include "elf-bfd.h".
8329 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8330 i386_frame_chain, i386_saved_pc_after_call): Make static.
8331 (i386_frame_saved_pc): Rewrite to call architecture dependent
8332 function to deal with signal handlers. Make static.
8333 (i386go32_frame_saved_pc): Removed.
8334 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8336 (i386_get_longjmp_target): New function.
8337 (default_struct_convention, pcc_struct_convention,
8338 reg_struct_convention, valid_conventions, struct_convention): New
8340 (i386_use_struct_convention): New function.
8341 (i386v4_sigtramp_saved_pc): Renamed to
8342 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8343 (i386_pc_in_sigtramp): New function.
8344 (i386_abi_names): Removed.
8345 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8346 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8348 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8349 i386_gdbarch_register_os_abi): Removed.
8350 (struct i386_abi_handler): Removed.
8351 (i386_abi_handler_list): Removed.
8352 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8354 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8355 i386_nw_init_abi): New functions.
8356 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8357 Use set_gdbarch_xxx() calls instead of relying on macros for a
8359 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8360 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8361 Register the various architecture variants defined in this file.
8363 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8365 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8366 (struct main_type): Remove arg_types member. Update comments for
8368 (TYPE_ARG_TYPES): Remove.
8369 (TYPE_FN_FIELD_ARGS): Update.
8370 (smash_to_method_type): Update prototype.
8372 * c-typeprint.c (cp_type_print_method_args): Take method type
8373 instead of argument list. Use new argument layout. Simplify.
8374 (c_type_print_args): Use new argument layout. Simplify.
8375 (c_type_print_base): Update call to cp_type_print_method_args.
8376 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8377 argument; use die->type instead. Update call to
8378 smash_to_method_type.
8379 (read_structure_scope): Update call to dwarf2_add_member_fn.
8380 * gdbtypes.c (allocate_stub_method): Update comment.
8381 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8382 Use new argument layout.
8383 (check_stub_method): Use new argument layout. Don't count
8384 void as an argument.
8385 (print_arg_types): Update comments. Use new argument layout.
8386 (recursive_dump_type): Don't print arg_types member.
8387 * hpread.c (hpread_read_struct_type): Use new argument layout.
8388 (fixup_class_method_type): Likewise.
8389 (hpread_type_lookup): Likewise.
8390 * stabsread.c (read_type): Update calls to read_args and
8391 smash_to_method_type.
8392 (read_args): Use new argument layout. Simplify.
8393 * valops.c (typecmp): Use new argument layout. Update parameters
8394 and comments. Simplify.
8395 (hand_function_call): Use new argument layout.
8396 (search_struct_method): Update call to typecmp.
8397 (find_overload_match): Use new argument layout.
8399 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8401 * NEWS: Mention multithreaded debug support for gdbserver.
8403 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8405 * MAINTAINERS: Mention NEWS.
8407 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8409 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8410 (struct mips_objfile_private, compare_pdr_entries): New.
8411 (non_heuristic_proc_desc): Read the ".pdr" section if it
8414 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8416 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8417 (arm_debug): New static variable.
8418 (_initialize_arm_tdep): Add ``set debug arm'' command.
8420 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8422 * Makefile.in (sim_arm_h): Define.
8423 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8424 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8425 (arm_register_sim_regno): New function, map an internal REGNUM
8426 onto a simulator register number.
8427 (arm_gdbarch_init): Set register_sim_regno.
8429 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8431 * MAINTAINERS: Add self.
8433 2002-06-11 Jim Blandy <jimb@redhat.com>
8435 * source.c (source_info): Mention whether the symtab has
8436 information about preprocessor macros.
8438 Call the command `info macro', not `show macro'.
8439 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8441 (_initialize_macrocmd): Register `info_macro_command' in
8442 `infolist', not `showlist'.
8444 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8446 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8447 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8448 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8449 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8450 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8452 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8453 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8454 (_initialize_mips_tdep): Remove dead code.
8455 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8456 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8457 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8458 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8459 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8460 MIPS_LAST_FP_ARG_REGNUM): Remove.
8462 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8464 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8465 (unwind_tmp_obstack_free, parse_frame_info)
8466 (update_context, cfi_read_fp, cfi_write_fp)
8467 (cfi_frame_chain, cfi_init_extra_frame_info)
8468 (cfi_virtual_frame_pointer): Use the above function.
8469 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8471 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8473 * v850-tdep.c (v850_type_is_scalar): New function.
8474 (v850_use_struct_convention): Match current gcc implementation
8475 as close as possible.
8476 (v850_push_arguments): Fix stack_offset handling. Don't write
8477 struct_addr into register. This is done by v850_store_struct_return.
8478 (v850_extract_return_value): Care for structs.
8479 (v850_store_return_value): Ditto.
8480 (v850_store_struct_return): Actually write address.
8482 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8484 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8485 without debug information too.
8487 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8489 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8490 Make multi-arch pure.
8491 * gdbarch.h, gdbarch.c: Re-generate.
8492 * arm-tdep.c (arm_print_float_info): Update.
8493 * arch-utils.h (default_print_float_info): Update.
8494 * arch-utils.c (default_print_float_info): Update.
8495 * infcmd.c (float_info): Update call.
8497 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8499 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8500 the front of the initialize list.
8502 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8504 * infrun.c (struct inferior_status): Replace fields
8505 selected_frame_address and selected_level with field
8507 (save_inferior_status): Update. Use get_frame_id.
8508 (struct restore_selected_frame_args): Delete.
8509 (restore_selected_frame): Update. Use frame_find_by_id.
8510 (restore_inferior_status): Update.
8512 * breakpoint.h (struct breakpoint): Change type of
8513 watchpoint_frame to frame_id.
8514 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8515 call to get_current_frame.
8516 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8518 (watchpoint_check): Use frame_find_by_id.
8520 * frame.h (record_selected_frame): Delete declaration.
8521 * stack.c (record_selected_frame): Delete function.
8523 * frame.h (struct frame_id): Define.
8524 (get_frame_id): Declare.
8525 (frame_find_by_id): Declare.
8526 * frame.c (frame_find_by_id): New function.
8527 (get_frame_id): New function.
8529 2002-06-10 Andrey Volkov <avolkov@transas.com>
8531 * ser-e7kpc.c: Fix duplicated define and call of
8532 _initialize_ser_e7000pc
8534 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8536 * signals/signals.c (target_signal_from_host): Fix #ifdef
8538 (do_target_signal_to_host): Likewise.
8540 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8542 * mips-tdep.c (mips_find_abi_section): New function.
8543 (mips_gdbarch_init): Call it.
8545 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8547 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8548 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8549 after Andrew's 2002-06-08 gdbarch change.
8551 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8553 * i386-linux-nat.c (suppy_gregset): Don't supply
8554 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8556 (fill_gregset): Don't fetch it under the same circumstances.
8558 2002-06-09 Andrew Cagney <cagney@redhat.com>
8560 * Makefile.in (callback_h): Define.
8561 (remote_sim_h): Update path to remote-sim.h.
8562 (remote-rdp.o): Add $(callback_h).
8563 (remote-sim.o): Use $(callback_h).
8564 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8565 * remote-rdp.c: Include "gdb/callback.h".
8567 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8569 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8570 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8572 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8574 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8575 * rdi-share/serpardr.c: Ditto.
8576 * rdi-share/unixcomm.c: Ditto.
8577 * rdi-share/serdrv.c: Ditto.
8578 * rdi-share/hostchan.h: Ditto.
8579 * rdi-share/hostchan.c: Ditto.
8580 * rdi-share/host.h: Ditto.
8581 * rdi-share/devsw.c: Ditto.
8583 * objfiles.h: Change type of obj_private to void pointer.
8584 * pa64solib.c: Update copyright. Don't include "assert.h", use
8585 strcmp instead of STREQ, use LONGEST, do not use PTR
8586 * somsolib.c: Ditto.
8588 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8589 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8590 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8592 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8594 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8595 (default_get_saved_register): Delete function.
8596 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8597 generic_unwind_get_saved_register.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8600 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8602 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8603 generic_func_frame_chain_valid.
8604 * gdbarch.h, gdbarch.c: Re-generate.
8605 * blockframe.c (generic_func_frame_chain_valid): Only check
8606 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8607 passing FP to PC_IN_CALL_DUMMY.
8610 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8612 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8613 (register_gdbarch_data): Initialize init_p.
8614 (gdbarch_data): Initialize data pointer using the init function.
8615 (init_gdbarch_data): Delete function.
8616 (gdbarch_update_p): Update.
8617 (initialize_non_multiarch): Update.
8618 (struct gdbarch): Add field initialized_p.
8619 * gdbarch.h, gdbarch.c: Re-generate.
8621 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8623 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8624 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8625 better do the things actually here.
8626 * x86-64-tdep.c (x86_64_register_name2nr): New.
8627 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8628 (x86_64_gdbarch_init): Respect the above change.
8629 * x86-64-tdep.h (x86_64_register_name2nr)
8630 (x86_64_register_nr2name): Add prototypes.
8631 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8633 2002-06-06 Michael Snyder <msnyder@redhat.com>
8635 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8636 Delete extra braces and re-indent.
8637 (d10v_store_return_value): Char return values
8638 must be shifted over by one byte in R0.
8639 (d10v_extract_return_value): Delete extra braces, re-indent.
8641 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8643 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8644 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8645 (d10v_integer_to_address): Rewrite.
8646 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8647 the d10v specific functions which take care of converting to the
8650 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8652 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8653 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8655 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8657 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8659 * config/tm-linux.h: Ditto.
8660 * config/alpha/tm-alphalinux.h: Ditto.
8661 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8662 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8663 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8664 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8665 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8666 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8667 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8668 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8669 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8670 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8671 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8672 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8673 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8674 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8675 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8676 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8677 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8678 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8679 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8680 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8681 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8682 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8683 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8684 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8685 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8686 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8687 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8688 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8689 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8690 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8691 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8692 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8693 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8694 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8695 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8696 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8697 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8699 2002-05-04 Aidan Skinner <aidan@velvet.net>
8701 * ada-exp.tab.c: New file
8702 * ada-exp.y: New file
8703 * ada-lang.c: New file
8704 * ada-lang.h: New file
8705 * ada-lex.c: New file
8706 * ada-lex.l: New file
8707 * ada-tasks.c: New file
8708 * ada-typeprint.c: New file
8709 * ada-valprint.c: New file
8711 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8713 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8714 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8716 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8718 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8719 insetead of ppc-linux-tdep.o.
8720 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8721 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8723 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8725 2002-05-07 Christian Groessler <chris@groessler.org>
8726 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8727 bit register contents for little endian hosts.
8729 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8731 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8734 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8736 * gdbarch.h: Regenerate.
8738 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8740 * MAINTAINERS: Add everyone to write-after-approval list.
8742 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8744 * stack.c (frame_info): Use frame_register_unwind instead of
8745 saved_regs. Mention when the SP is on the stack or in a register.
8747 * frame.h (frame_register_unwind_ftype): Define. Document.
8748 (struct frame_info): Add field register_unwind and
8749 register_unwind_cache.
8750 (frame_register_unwind): Declare.
8751 (generic_unwind_get_saved_register): Declare.
8753 * frame.c (frame_register_unwind): New function.
8754 (generic_unwind_get_saved_register): New function.
8756 * blockframe.c (generic_call_dummy_register_unwind): New function.
8757 (frame_saved_regs_register_unwind): New function.
8758 (set_unwind_by_pc): New function.
8759 (create_new_frame): New function.
8760 (get_prev_frame): New function.
8762 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8764 * a29k-share/: Delete directory.
8765 * remote-vx29k.c: Delete file.
8767 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8769 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8770 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8772 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8774 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8775 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8778 (sparcnbsd-tdep.o): New dependency lists.
8779 * NEWS: Note new UltraSPARC NetBSD native configuration.
8780 * configure.host (sparc64-*-netbsd*): New host.
8781 * configure.tgt (sparc-*-netbsdelf*)
8782 (sparc-*-netbsd*): Set gdb_target to nbsd.
8783 (sparc64-*-netbsd*): New target.
8784 * sparc64nbsd-nat.c: New file.
8785 * sparcnbsd-nat.c: New file.
8786 * sparcnbsd-tdep.c: New file.
8787 * sparcnbsd-tdep.h: New file.
8788 * config/sparc/nbsd.mt: New file.
8789 * config/sparc/nbsd64.mh: New file.
8790 * config/sparc/nbsd64.mt: New file.
8791 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8792 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8794 * config/sparc/nbsdaout.mt: Remove.
8795 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8796 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8798 * config/sparc/nbsdelf.mt: Remove.
8799 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8800 sparc-nat.c compatiblity defines.
8801 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8802 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8803 * config/sparc/tm-nbsd64.h: New file.
8804 * config/sparc/tm-nbsdaout.h: Remove.
8805 * config/sparc/xm-nbsd.h: Remove.
8807 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8809 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8810 * sparc-tdep.c: Include osabi.h.
8811 (gdbarch_tdep): Add osabi member.
8812 (_initialize_sparc_tdep): Use gdbarch_register.
8813 (sparc_gdbarch_init): Use generic OS ABI framework.
8814 (sparc_dump_tdep): New function.
8816 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8818 * corefile.c (do_captured_read_memory_integer): Return non-zero
8820 (safe_read_memory_integer): Copy result of memory read when
8821 status is non-zero. Also, add comments.
8823 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8825 * Makefile.in (ppc_tdep_h): Define.
8828 (rs6000-tdep.o): Use $(ppc_tdep_h).
8831 (ppcnbsd-tdep.o): New dependency lists.
8832 * ppc-tdep.h: Use generic OS ABI framework.
8833 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8834 (ppc_linux_init_abi): New functions.
8835 (ppc_sysv_abi_broken_use_struct_convention)
8836 (ppc_sysv_abi_use_struct_convention)
8837 (ppc_sysv_abi_push_arguments): Move to...
8838 * ppc-sysv-tdep.c: ...here.
8839 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8840 * rs6000-tdep.c (process_note_abi_tag_sections)
8841 (get_elfosabi): Remove.
8842 (rs6000_gdbarch_init): Use generic OS ABI framework.
8843 (rs6000_dump_tdep): New function.
8844 (_initialize_rs6000_tdep): Use gdbarch_register.
8845 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8846 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8847 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8848 of ppc-linux-tdep.o.
8849 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8850 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8851 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8852 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8853 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8854 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8856 2002-05-29 Jim Blandy <jimb@redhat.com>
8858 * macroscope.c (default_macro_scope): Put `void' in empty argument
8861 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8863 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8864 * arch-utils.c: Include "sim-regno.h".
8865 * gdbarch.sh: Don't include "sim-regno.h".
8866 * gdbarch.h, gdbarch.c: Regenerate.
8867 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8869 * arch-utils.h (legacy_register_sim_regno): To here.
8870 * remote-sim.c (legacy_register_sim_regno): Move function from
8872 * arch-utils.c (legacy_register_sim_regno): To here.
8874 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8876 * sim-regno.h: New file.
8877 * Makefile.in (sim_regno_h): Define.
8878 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8879 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8880 (legacy_register_sim_regno): New function.
8881 (one2one_register_sim_regno): New function.
8882 (gdbsim_fetch_register): Rewrite.
8883 (gdbsim_store_register): Only store a register when
8884 REGISTER_SIM_REGNO is valid.
8885 * d10v-tdep.c: Include "sim-regno.h".
8886 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8887 (d10v_ts3_register_sim_regno): Ditto.
8888 * gdbarch.sh: Include "sim-regno.h".
8889 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8890 * gdbarch.h, gdbarch.c: Regenerate.
8891 * arch-utils.h (default_register_sim_regno): Delete declaration.
8892 * arch-utils.c (default_register_sim_regno): Delete function.
8894 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8896 * ppcnbsd-nat.c: Rewrite.
8897 * ppcnbsd-tdep.c: New file.
8898 * ppcnbsd-tdep.h: New file.
8899 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8900 solib.o, and solib-svr4.o.
8901 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8902 nbsd-tdep.o, and corelow.o.
8904 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8906 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8907 `tr' and `sed'. Mention that `broken' targets are not expected to
8910 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8912 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8913 Let PC point right after the prologue before looking up symbols.
8915 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8917 * i386-tdep.c (i386_register_virtual_type): Return
8918 builtin_type_vec128i for SSE registers.
8920 * gdbtypes.h (builtin_type_vec128i): Declare.
8922 * gdbtypes.c (build_builtin_type_vec128i): New function.
8923 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8924 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8925 (build_gdbtypes): Initialize new builtin vector types.
8926 (_initialize_gdbtypes): Register new vector types with gdbarch.
8928 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8930 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8931 since it has been multi-arch'd.
8932 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8933 Move Alpha and VAX multi-arch news entries to same section
8934 as other multi-arch news.
8936 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8938 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8939 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8940 static. Rename some register numbers to put them in ns32k-tdep
8942 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8943 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8945 (_initialize_ns32k_tdep): Use gdbarch_register.
8946 * ns32k-tdep.h: New file.
8947 * ns32knbsd-tdep.c: New file.
8948 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8949 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8950 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8951 REGISTER_BYTES, REGISTER_BYTE): Remove.
8952 * config/ns32k/tm-ns32k.h: New file.
8953 * config/ns32k/tm-umax.h: Remove.
8955 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8957 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8958 ns32k_store_struct_return, ns32k_extract_return_value,
8959 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8961 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8962 ns32k_saved_pc_after_call.
8963 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8964 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8965 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8966 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8967 ns32k_extract_struct_value_address.
8969 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8971 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8972 ns32k_fix_call_dummy): New.
8973 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8974 ns32k_call_dummy_words.
8975 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8976 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8977 CALL_DUMMY_NARGS): Remove.
8978 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8980 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8982 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8983 ns32k_frame_saved_pc, ns32k_frame_args_address,
8984 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8985 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8986 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8987 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8988 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8989 (BREAKPOINT): Remove..
8990 (FRAME_CHAIN): Define as ns32k_frame_chain.
8991 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8992 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8993 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8994 (FRAME_FIND_SAVED_REGS): Remove.
8995 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8996 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8997 (POP_FRAME): Define as ns32k_pop_frame.
8999 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9001 * ns32k-tdep.c (ns32k_register_byte_32082,
9002 ns32k_register_byte_32382, ns32k_register_raw_size,
9003 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9005 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9006 ns32k_register_byte_32382.
9007 * config/ns32k/tm-umax.h: Update copyright years.
9008 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9009 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9010 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9011 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9012 (ns32k_get_enter_addr): Fix prototype.
9014 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9016 * ns32k-tdep.c: Update copyright years.
9017 (ns32k_register_name_32082): New function.
9018 (ns32k_register_name_32382): Ditto.
9019 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9020 (REGISTER_NAME): Define as ns32k_register_name_32382.
9021 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9022 (REGISTER_NAME): Define as ns32k_register_name_32082.
9024 2002-05-24 Jim Blandy <jimb@redhat.com>
9026 * dwarf2read.c (free_line_header): Use xfree, not free.
9028 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9030 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9031 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9033 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9035 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9037 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9039 From Ross Alexander at NEC Europe:
9040 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9042 2002-05-23 Michael Snyder <msnyder@redhat.com>
9044 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9045 for input, rather than parse_and_eval_address.
9047 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9049 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9050 * Makefile.in (sim_d10v_h): Update definition.
9052 2002-05-24 Andrew Cagney <cagney@redhat.com>
9054 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9055 change `2002-05-22 Michael Snyder' below.
9056 (d10v_push_arguments): Ditto.
9057 (d10v_extract_return_value): Ditto.
9059 2002-05-23 Jim Blandy <jimb@redhat.com>
9061 * macrotab.c (check_for_redefinition): Don't complain if the new
9062 definition is the same as the previous one. Take more arguments
9063 to allow the comparison.
9064 (macro_define_object, macro_define_function): Pass more arguments
9065 to check_for_redefinition.
9067 2002-05-22 Michael Snyder <msnyder@redhat.com>
9069 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9070 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9071 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9072 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9073 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9074 Add a temp variable to save a call (and a memory read).
9075 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9076 if possible (so that PC_IN_CALL_DUMMY will work).
9078 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9080 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9082 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9084 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9086 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9087 (dwarf2_build_frame_info): Add offset to fde->initial_location
9088 so that frames of shared libraries are mapped correctly.
9089 (execute_stack_op): Change type of 'result' from ULONGEST to
9092 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9094 * config/alpha/tm-nbsd.h: Include solib.h.
9096 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9098 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9099 assumptions about the host's byte order.
9101 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9103 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9105 * alphanbsd-tdep.c: Include solib-svr4.h.
9106 * shnbsd-tdep.c: Ditto.
9108 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9110 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9111 nbsd-tdep.h to dependency list.
9112 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9113 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9114 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9115 nbsdaout.mh and nbsdelf.mh consistently.
9116 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9117 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9118 nbsdaout.mt and nbsdelf.mh consistently.
9119 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9120 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9121 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9122 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9123 a.out shared library stuff from here...
9124 * config/nm-nbsdaout.h: ...to here.
9125 * config/tm-nbsd.h: Remove.
9126 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9127 * config/arm/nbsd.mh: Remove.
9128 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9130 * config/arm/nbsdaout.mh: New file.
9131 * config/arm/nbsdelf.mh: New file.
9132 * config/arm/nm-nbsdaout.h: New file.
9133 * config/i386/nbsd.mh: Remove.
9134 * config/i386/nbsd.mt: Remove.
9135 * config/i386/nbsdaout.mh: New file.
9136 * config/i386/nbsdaout.mt: New file.
9137 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9138 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9139 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9140 i386_register_u_addr): Remove.
9141 * config/i386/nm-nbsdaout.h: New file.
9142 * config/i386/nm-nbsdelf.h: Remove.
9143 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9144 (USE_STRUCT_CONVENTION): Remove.
9145 * config/i386/tm-nbsdaout.h: New file.
9146 * config/i386/tm-nbsdelf.h: Remove.
9147 * config/m68k/nbsd.mh: Remove.
9148 * config/m68k/nbsd.mt: Remove.
9149 * config/m68k/nbsdaout.mh: New file.
9150 * config/m68k/nbsdaout.mt: New file.
9151 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9152 * config/m68k/nm-nbsdaout.h: New file.
9153 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9154 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9155 * config/ns32k/nbsd.mh: Remove.
9156 * config/ns32k/nbsd.mt: Remove.
9157 * config/ns32k/nbsdaout.mh: New file.
9158 * config/ns32k/nbsdaout.mt: New file.
9159 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9160 * config/ns32k/nm-nbsdaout.h: New file.
9161 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9162 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9163 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9164 (SVR4_SHARED_LIBS): Remove.
9165 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9166 * config/sparc/nbsd.mh: Remove.
9167 * config/sparc/nbsd.mt: Remove.
9168 * config/sparc/nbsdaout.mh: New file.
9169 * config/sparc/nbsdaout.mt: New file.
9170 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9171 * config/sparc/nbsdelf.mt: New file.
9172 * config/sparc/nm-nbsdaout.h: New file.
9173 * config/sparc/nm-nbsdelf.h: Remove.
9174 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9175 * config/sparc/tm-nbsdaout.h: New file.
9177 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9179 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9181 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9183 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9185 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9187 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9189 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9191 * NEWS: Note new MIPS NetBSD native configuration.
9192 * configure.host (mips*-*-netbsd*): New host.
9193 * configure.tgt (mips*-*-netbsd*): New target.
9194 * mipsnbsd-nat.c: New file.
9195 * mipsnbsd-tdep.c: New file.
9196 * mipsnbsd-tdep.h: New file.
9197 * config/mips/nbsd.mh: New file.
9198 * config/mips/nbsd.mt: New file.
9199 * config/mips/nm-nbsd.h: New file.
9200 * config/mips/tm-nbsd.h: New file.
9202 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9204 * Makefile.in (SFILES): Add osabi.c.
9205 (COMMON_OBS): Add osabi.o.
9206 (osabi.o): New dependency list.
9207 * osabi.c: New file.
9208 * osabi.h: New file.
9209 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9211 * Makefile.in (alpha_tdep_h): Define and use instead of
9213 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9214 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9216 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9217 * alpha-tdep.h: Include osabi.h.
9218 (alpha_abi): Remove.
9219 (gdbarch_tdep): Use generic OS ABI framework.
9220 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9221 gdbarch_register_osabi.
9222 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9223 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9224 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9226 * Makefile.in (sh_tdep_h): Add osabi.h.
9227 * sh-tdep.h (sh_osabi): Remove.
9228 (gdbarch_tdep): Use generic OS ABI framework.
9229 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9230 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9231 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9232 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9234 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9235 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9236 gdbarch_register_osabi.
9237 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9238 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9239 (get_elfosabi): Rename to...
9240 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9241 ABI framework support routines.
9242 (arm_gdbarch_init): Use generic OS ABI framework.
9243 (arm_dump_tdep): Likewise.
9244 (_initialize_arm_tdep): Likewise.
9245 * arm-tdep.h: Include osabi.h.
9247 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9249 (arm_gdbarch_register_os_abi): Remove prototype.
9250 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9251 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9253 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9254 * mips-tdep.c: Include osabi.h.
9255 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9258 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9260 * h8300-tdep.c: Fix formatting.
9262 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9264 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9265 printing vector registers.
9267 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9269 From Fernando Nasser:
9270 * remote.c (remote_async_open_1): Re-throw the exception when the
9272 (remote_cisco_open): Ditto.
9273 (remote_open_1): Ditto.
9275 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9277 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9278 (remote_start_remote): Add uiout parameter. Pass through to
9279 remote_start_remote_dummy.
9280 (remote_open_1): Use catch_exception instead of catch_errors.
9281 (remote_async_open_1): Ditto.
9282 (remote_cisco_open): Ditto.
9284 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9286 * remote.c (remote_start_remote): Replace PTR with void pointer.
9287 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9290 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9292 * gdb_indent.sh: Allow the script to be run in the sim directory.
9294 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9296 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9297 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9299 * corelow.c (core_open): Only call set_gdbarch_from_file if
9302 2002-05-17 Andrey Volkov <avolkov@transas.com>
9304 * h8300-tdep.c: Add support of EXR register
9305 * config/h8300/tm-h8300.h: Ditto.
9307 2002-05-17 Andrey Volkov <avolkov@transas.com>
9309 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9311 2002-05-17 Andrey Volkov <avolkov@transas.com>
9313 * h8300-tdep.c: Change literal regnums to REGNO.
9315 2002-05-17 Jim Blandy <jimb@redhat.com>
9317 * NEWS: Note addition of macro support.
9319 Expand preprocessor macros in C expressions.
9320 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9321 (scan_macro_expansion, scanning_macro_expansion,
9322 finished_macro_expansion): New function declarations.
9323 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9324 variable declarations.
9325 * parser-defs.h (expression_context_pc): New declaration.
9326 * parse.c (expression_context_pc): New variable.
9327 (parse_exp_1): Set expression_context_pc, as well as
9328 expression_context_block.
9329 * c-exp.y (yylex): If we're not already reading the result of a
9330 macro expansion, try to macro-expand the next token. When we're
9331 done scanning a macro expansion, switch back to the mainline text.
9332 Commas and `if's in a macro's expansion don't terminate the input.
9333 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9334 (macro_original_text, macro_expanded_text,
9335 expression_macro_lookup_func, expression_macro_lookup_baton): New
9337 (scan_macro_expansion, scanning_macro_expansion,
9338 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9339 c_preprocess_and_parse): New functions.
9340 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9341 c_preprocess_and_parse, instead of c_parse.
9342 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9343 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9345 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9347 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9348 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9349 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9351 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9353 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9355 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9357 * Makefile.in (sh_tdep_h): Define and use.
9358 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9359 register enum): Move to...
9360 * * sh-tdep.h: ...here.
9361 * sh-tdep.c: Include sh-tdep.h.
9362 * sh3-rom.c: Likewise.
9363 * shnbsd-tdep.c: Likewise.
9365 2002-05-16 Michael Snyder <msnyder@redhat.com>
9367 * arm-tdep.c: Spelling fix in comment.
9369 2002-05-16 Jim Blandy <jimb@redhat.com>
9371 Add commands for manually expanding macros and showing their
9373 * macrocmd.c, macroscope.c, macroscope.h: New files.
9374 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9375 (macroscope_h): New variable.
9376 (HFILES_NO_SRCDIR): Add macroscope.h.
9377 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9378 (macroscope.o, macrocmd.o): New rules.
9380 Teach the Dwarf 2 reader to read macro information.
9381 * dwarf2read.c: #include "macrotab.h".
9382 (dwarf_macinfo_buffer): New variable.
9383 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9385 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9386 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9387 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9388 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9389 dwarf2_macro_spaces_in_definition): New complaints.
9390 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9391 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9392 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9393 the partial symbol table.
9394 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9395 from what's recorded in the partial symbol table.
9396 (read_file_scope): If the compilation unit has a
9397 `DW_AT_macro_info' attribute, read its macro information.
9398 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9400 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9403 * ser-tcp.c: Don't include <netinet/udp.h>.
9405 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9407 * MAINTAINERS: Update my email address.
9409 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9411 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9412 include file of the same name.
9414 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9416 * configure.tgt: Mark v850 as multi-arched.
9417 * config/v850/tm-v850.h: Remove file.
9418 * config/v850/v850.mt: Eliminate TM_FILE.
9420 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9422 * v850-tdep.c: Full multi-arch.
9423 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9424 Define GDB_MULTI_ARCH to 2.
9426 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9428 * p-exp.y (current_type): New static variable.
9429 Carries the type of the expression at the position that is parsed.
9430 (push_current_type, pop_current_type): Two new functions. Used
9431 to store/restore current_type in expression on specific tokens.
9432 (search_field): New static variable. Set to one after parsing a point
9433 as at that point only a FIELDNAME token should be searched.
9434 (FIELDNAME): New token. After a point only a token belonging to
9435 current_type type definition is allowed.
9436 (all over token rules): reset and change current_type according
9438 (exp '[' rule): insert implicit array index field if
9439 exp is a pascal string type.
9441 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9443 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9444 frame info. Use frame_info's saved_regs instead of matching member
9445 in extra_frame_info throughout.
9446 (v850_frame_init_saved_regs): New function.
9447 (v850_init_extra_frame_info): Move most functionality into
9448 v850_frame_init_saved_regs().
9449 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9450 (v850_frame_find_saved_regs): Remove declaration.
9451 (FRAME_FIND_SAVED_REGS): Remove definition.
9452 (v850_frame_init_saved_regs): Add declaration.
9453 (FRAME_INIT_SAVED_REGS): Add definition.
9455 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9457 * v850-tdep.c: Begin multi-arch'ing v850.
9458 (v850_target_architecture_hook): Remove function.
9459 (v850_gdbarch_init): New function. Add code previously in
9460 v850_target_architecture_hook().
9461 (_initialize_v850_tdep): Don't set target_architecture_hook.
9462 Call register_gdbarch_init() instead.
9464 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9466 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9467 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9468 (fixup_class_method_type): Likewise.
9470 2002-05-15 Jim Blandy <jimb@redhat.com>
9472 Add macro structures to GDB's symbol tables. Nobody puts anything
9474 * symtab.h (struct symtab): New member: `macro_table'.
9475 * buildsym.h (pending_macros): New global variable.
9476 * buildsym.c: #include "macrotab.h".
9477 (buildsym_init): Initialize `pending_macros'.
9478 (end_symtab): If we found macro information while reading a CU's
9479 debugging info, do build a symtab structure for it. Make the
9480 symtab point to the macro information, and clear the
9481 `pending_macros' pointer which held it while we were reading the
9483 (really_free_pendings): Free any pending macro table.
9484 * objfiles.h (struct objfile): New member: `macro_cache'.
9485 * objfiles.c (allocate_objfile): Set allocate and free functions
9486 for the macro cache's objstack.
9487 (free_objfile): Empty the macro cache's obstack.
9488 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9489 set new allocate and free functions for it.
9490 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9491 free functions for the macro cache's objstack. (Why is this
9492 function building its own objfile?)
9493 * symmisc.c (print_objfile_statistics): Print statistics on the
9495 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9497 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9499 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9500 (REGISTER_U_ADDR): Delete definition.
9501 (arm_register_u_addr): Delete declaration.
9503 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9505 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9506 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9508 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9510 * regcache.c (register_valid): Revise comments refering to "Not
9511 available" and "unavailable".
9512 * frame.c (frame_register_read): Ditto.
9513 * findvar.c (value_of_register): Ditto.
9515 2002-05-15 Andrew Cagney <cagney@redhat.com>
9517 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9518 (remote-sim.o): Update dependencies.
9519 (d10v-tdep.o): Specify dependencies.
9520 (sim_d10v_h): Define.
9522 2002-05-14 Jim Blandy <jimb@redhat.com>
9524 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9525 * macrotab.c (macro_lookup_inclusion, find_definition,
9526 new_macro_table): Same.
9528 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9529 not `! strcmp ()'. This is a dubious improvement.
9530 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9532 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9533 although it's not necessary, to avoid a warning.
9535 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9537 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9538 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9539 TYPE_INSTANCE_FLAGS.
9540 (struct main_type): New.
9541 (struct type): Move most members to struct main_type. Change
9542 cv_type and as_type to new type_chain member. Add instance_flags.
9543 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9544 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9545 (finish_cv_type): Remove prototype.
9546 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9548 (alloc_type_instance): New function.
9549 (smash_type): New function.
9550 (make_pointer_type, make_reference_type, make_function_type)
9551 (smash_to_member_type, smash_to_method_type): Call smash_type.
9552 (make_qualified_type): New function.
9553 (make_type_with_address_space): Call make_qualified_type.
9554 (make_cv_type): Likewise.
9555 (finish_cv_type): Remove unnecessary function.
9556 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9557 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9558 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9559 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9560 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9561 * hpread.c (hpread_read_struct_type): Likewise.
9562 * stabsread.c (read_struct_type): Likewise.
9564 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9566 * configure.tgt: Add a catch all sh* target, for cases like
9567 sh[2,3,4]-elf and sh-hms.
9569 2002-05-14 Keith Seitz <keiths@redhat.com>
9571 * event-loop.c (create_file_handler): Don't do anything but
9572 update data when we are given a fd which we are already
9575 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9577 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9578 (update_context): Use __func__ in warnings.
9580 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9582 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9583 and tcp_close to net_open and net_close.
9584 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9585 using UDP if requested. Don't try to disable Nagle on UDP
9587 * remote.c (remote_serial_open): New function. Warn about UDP.
9588 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9590 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9592 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9594 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9596 * configure.tgt: Remove sh-hms target.
9597 * MAINTAINERS: Don't list sh-hms as a separate target.
9599 2002-05-13 Jim Blandy <jimb@redhat.com>
9601 Add first preprocessor macro-expansion files.
9602 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9603 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9604 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9605 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9606 (COMMON_OBS): Add macrotab.o, macroexp.o.
9607 (macroexp.o, macrotab.o): New rules.
9609 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9611 * config/m88k/tm-m88k.h: Update copyright.
9612 (m88k_target_write_pc): Declare
9613 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9614 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9615 (SHIFT_INST_REGS): Update definition.
9616 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9617 using old definition of TARGET_WRITE_PC.
9618 * regcache.c (generic_target_write_pc): Delete code handling
9620 * gdbarch.sh (NNPC_REGNUM): Delete.
9621 * gdbarch.h, gdbarch.c: Regenerate.
9623 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9625 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9628 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9630 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9631 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9632 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9634 * c-typeprint.c (cp_type_print_method_args): Likewise.
9635 (c_type_print_args): Likewise.
9636 * d10v-tdep.c (d10v_push_arguments): Likewise.
9637 (d10v_extract_return_value): Likewise.
9638 * expprint.c (print_subexp): Likewise.
9639 * gdbtypes.c (lookup_primitive_typename): Likewise.
9640 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9641 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9642 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9643 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9644 (TYPE_VECTOR): Likewise.
9645 * hpread.c (hpread_read_struct_type)
9646 (fix_static_member_physnames, fixup_class_method_type)
9647 (hpread_type_lookup): Likewise.
9648 * mdebugread.c (parse_symbol, parse_type): Likewise.
9649 * p-lang.c (is_pascal_string_type): Likewise.
9650 * valops.c (hand_function_call): Likewise.
9651 * x86-64-tdep.c (classify_argument): Likewise.
9653 * hpread.c (hpread_read_function_type)
9654 (hpread_read_doc_function_type): Call replace_type.
9655 * dstread.c (create_new_type): Delete.
9656 (decode_dst_structure, process_dst_function): Call alloc_type.
9657 Use type access macros.
9659 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9661 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9662 the're not supported by the current architecture.
9663 (i387_fill_fxsave): Likewise.
9665 2002-05-12 Fred Fish <fnf@redhat.com>
9667 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9668 sect_index_xxx members to index the first slot in section_offsets
9669 if all of the section_offsets are zero.
9671 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9673 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9674 checked in with last change.
9676 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9678 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9679 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9682 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9684 * Makefile.in: Update dependencies.
9686 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9688 * language.c (local_hex_string_custom): Simplify. Do not depend
9689 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9691 * memattr.c (mem_info_command): Replace calls to
9692 longest_local_hex_string and longest_local_hex_string_custom.
9693 * buildsym.c (make_blockvector): Ditto.
9694 * solib.c (info_sharedlibrary_command): Ditto.
9695 * tracepoint.c (tracepoints_info): Ditto.
9696 * symtab.c (print_msymbol_info): Ditto.
9698 * language.c (local_hex_string): Delete.
9699 (local_hex_string_custom): Delete.
9700 (longest_local_hex_string): Rename to local_hex_string.
9701 (longest_local_hex_string_custom): Rename to
9702 local_hex_string_custom.
9703 * language.h (local_hex_string): Change parameter type to LONGEST.
9704 (local_hex_string_custom): Ditto.
9705 (longest_local_hex_string): Delete declaration.
9706 (longest_local_hex_string_custom): Ditto.
9708 * solib.c: Update copyright.
9709 * memattr.c: Update copyright.
9711 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9713 * arch-utils.h (legacy_register_to_value): Declare.
9714 (legacy_value_to_register): Declare.
9715 (legacy_convert_register_p): Declare.
9716 * arch-utils.c (legacy_register_to_value): New function.
9717 (legacy_value_to_register): New function.
9718 (legacy_convert_register_p): New function.
9720 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9721 (VALUE_TO_REGISTER): Define.
9722 (CONVERT_REGISTER_P): Define.
9723 * gdbarch.h, gdbarch.c: Regenerate.
9725 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9727 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9730 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9731 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9733 * Makefile.in: Update dependencies for valops.c.
9734 * valops.c: Include "gdb_assert.h".
9735 (typecmp): Skip THIS parameter to methods.
9736 (find_method_list): Remove static_memfuncp argument,
9737 update callers. Check for stub methods.
9738 (find_value_oload_method_list): Don't set *static_memfuncp.
9739 (find_overload_match): Don't check for stub methods. Assert
9740 that methods are not stubbed. Handle static methods.
9741 (value_find_oload_method_list): Remove static_memfuncp argument.
9742 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9743 to the argument list for static stub methods.
9744 * value.h (value_find_oload_method_list): Update prototype.
9746 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9748 * arch-utils.h (generic_register_size): Declare.
9749 (generic_register_raw_size, generic_register_virtual_size): Delete
9751 * arch-utils.c (generic_register_raw_size): Delete.
9752 (generic_register_size): New function.
9753 (generic_register_virtual_size): Delete.
9755 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9756 default generic_register_size.
9757 * gdbarch.h, gdbarch.c: Re-generate.
9759 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9760 register_virtual_size.
9761 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9762 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9764 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9766 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9767 * gdbarch.h, gdbarch.c: Regenerate.
9768 * gnu-v3-abi.c: Update copyright.
9769 (vtable_address_point_offset): Update.
9770 (gnuv3_rtti_type): Update.
9771 (gnuv3_baseclass_offset): Update.
9772 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9773 (init_fetch_link_map_offsets): Update.
9774 * remote.c (get_remote_state): Update.
9776 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9778 * TODO: Remove value_headof/value_from_vtable_info comment.
9779 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9780 * values.c (value_headof, value_from_vtable_info): Delete.
9781 * value.h (value_from_vtable_info): Delete prototype.
9783 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9785 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9786 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9788 (gdb_assert_h): Define.
9789 (gdb_wait_h): Define.
9790 (gdb_regex_h): Define.
9792 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9794 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9795 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9797 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9799 * nbsd-tdep.c: Fix comment.
9801 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9803 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9804 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9805 (nbsd-tdep.o): New dependency list.
9806 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9808 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9809 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9810 * nbsd-tdep.c: New file.
9811 * nbsd-tdep.h: New file.
9812 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9814 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9815 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9816 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9817 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9819 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9821 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9822 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9823 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9824 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9825 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9826 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9828 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9830 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9831 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9832 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9833 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9834 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9835 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9836 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9838 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9840 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9841 fetch_elfcore_registers to...
9842 * i386nbsd-tdep.c: ...here.
9843 (i386nbsd_use_struct_convention): Rename to...
9844 (i386nbsd_aout_use_struct_convention): ...this.
9845 (i386nbsd_supply_reg): New function.
9846 (i386nbsd_fill_reg): New function.
9847 (fetch_core_registers): Use i386nbsd_supply_reg.
9848 (fetch_elfcore_registers): Likewise.
9849 (_initialize_i386nbsd_tdep): New function.
9850 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9851 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9852 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9853 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9854 (i386nbsd_aout_use_struct_convention): ...this.
9856 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9858 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9859 (store_inferior_registers): Use shnbsd_fill_reg.
9860 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9861 sh_nbsd_supply_register): Collapse into...
9862 (shnbsd_supply_reg): ...this.
9863 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9864 (shnbsd_fill_reg): ...this.
9865 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9866 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9867 (fetch_core_registers): Use shnbsd_supply_reg.
9868 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9869 (sh_nbsd_core_fns): Rename to...
9870 (shnbsd_core_fns): ...this.
9871 (sh_nbsd_elfcore_fns): Rename to...
9872 (shnbsd_elfcore_fns): ...this.
9873 (sh_nbsd_init_abi): Rename to...
9874 (shnbsd_init_abi): ...this.
9875 (_initialize_sh_nbsd_tdep): Rename to...
9876 (_initialize_shnbsd_tdep): ...this.
9877 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9878 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9879 sh_nbsd_fill_register): Remove prototypes.
9880 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9882 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9884 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9885 (i387-nat.o): Delete dependency list.
9886 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9887 (x86-64-linux-nat.o): Likewise.
9888 * i387-nat.c: Delete file, moving contents to...
9889 * i387-tdep.c: ...here.
9890 * i387-nat.h: Rename...
9891 * i387-tdep.h: ...to this.
9892 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9893 * i386-linux-nat.c: Likewise.
9894 * i386bsd-nat.c: Likewise.
9895 * i386gnu-nat.c: Likewise.
9896 * i386nbsd-nat.c: Likewise.
9897 * i386v4-nat.c: Likewise.
9898 * x86-64-linux-nat.c: Likewise.
9899 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9900 * config/i386/go32.mh (NATDEPFILES): Likewise.
9901 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9902 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9903 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9904 * config/i386/linux.mh (NATDEPFILES): Likewise.
9905 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9906 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9907 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9908 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9910 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9912 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9913 (alphanbsd-nat.o): Remove dependency list.
9914 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9915 * alphanbsd-nat.c: Delete. Contents moved to...
9916 * alphanbsd-tdep.c: ...here.
9917 (_initialize_alphanbsd_tdep): Register core functions.
9918 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9922 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9923 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9924 (alphanbsd-nat.o): Likewise.
9925 (alphabsd-tdep.o): New dependency list.
9926 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9927 (fill_gregset): Use alphabsd_fill_reg.
9928 (supply_fpregset): Use alphabsd_supply_fpreg.
9929 (fill_fpregset): Use alphabsd_fill_fpreg.
9930 (fetch_inferior_registers): Use struct reg and struct fpreg
9931 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9932 and alphabsd_supply_fpreg.
9933 (store_inferior_registers): Use struct reg and struct fpreg
9934 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9935 and alphabsd_fill_fpreg.
9936 * alphabsd-tdep.c: New file.
9937 * alphabsd-tdep.h: New file.
9938 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9939 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9940 alphabsd_supply_fpreg.
9941 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9942 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9944 2002-05-11 Eric Christopher <echristo@redhat.com>
9946 * mips-tdep.c (mips_double_register_type): Fix thinko.
9947 (mips_single_register_type): Ditto.
9948 * MAINTAINERS: Add self.
9950 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9952 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9953 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9954 right thing on architectures with different endianness and/or
9957 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9959 From Christian Limpach <chris@Pin.LU>
9960 * configure.in: Change sed expression which comments out
9961 NATDEPFILES to also comment out continuation lines.
9962 * configure: Regenerate.
9964 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9966 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9969 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9971 * sh-tdep.c: Include correct file.
9973 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9975 New support for sh64-elf (sh5) target.
9977 * configure.tgt: For sh64-elf target, default to sh-elf.
9979 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9980 (struct gdbarch_tdep): Add new fields for new registers and ABI
9983 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9984 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9985 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9986 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9987 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9988 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9989 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9990 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9991 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9992 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9993 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9994 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9995 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9996 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9997 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9998 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9999 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10000 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10001 sign_extend, sh64_nofp_frame_init_saved_regs,
10002 sh64_init_extra_frame_info, sh64_get_saved_register,
10003 sh64_extract_struct_value_address, sh64_pop_frame,
10004 sh64_push_arguments, sh64_extract_return_value,
10005 sh64_store_return_value, sh64_show_media_regs,
10006 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10007 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10008 sh_sh64_register_virtual_type,
10009 sh_sh64_register_convert_to_virtual,
10010 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10011 sh64_register_read, sh64_pseudo_register_write,
10012 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10013 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10014 sh64_do_pseudo_register, sh_compact_do_registers_info,
10015 sh64_do_registers_info, sh_gdbarch_init): New functions.
10017 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10019 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10021 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10023 * linespec.c (decode_line_1): Check for a double quote after
10024 a filename correctly.
10026 2002-05-10 Jim Blandy <jimb@redhat.com>
10028 Properly track the size of the current objfile's .debug_line section.
10029 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10030 (DWARF_LINE_SIZE): New macro.
10031 (dwarf2_build_psymtabs_hard): Record the line section's size in
10032 the partial symbol table.
10033 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10036 2002-05-10 Petr Sorfa <petrs@caldera.com>
10038 * ia64-tdep.c: Handle breakpoints on L instruction type
10039 in MLX instruction bundle by moving the breakpoint to
10040 the third slot (X instruction type) as L holds only data.
10042 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10044 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10045 (process_one_symbol): Complain about discarding local symbols
10046 due to a misplaced N_LBRAC entry.
10048 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10050 From Daniel Berlin <dan@cgsoftware.com>
10051 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10052 decrease the depth we are at, in the case of templates.
10054 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10056 * mips-tdep.c (mips_float_register_type): New function.
10057 (mips_double_register_type): New function.
10058 (mips_print_register): Use them.
10059 (do_fp_register_row): Likewise.
10061 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10063 * signals/signals.c (signals): Remove conditional compilation around
10064 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10065 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10067 2002-05-09 Michael Snyder <msnyder@redhat.com>
10069 * remote-rdp.c (remote_rdp_can_run): Remove.
10071 2002-05-09 Tom Tromey <tromey@redhat.com>
10073 * jv-valprint.c (java_val_print): Handle `char' as a special case
10076 2002-05-09 Michael Snyder <msnyder@redhat.com>
10078 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10079 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10080 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10081 str r(0123),[sp,#nn].
10082 (arm_skip_prologue): Ditto. Also make disassembly
10083 order-independent by placing it in a loop.
10085 2002-05-06 Michael Snyder <msnyder@redhat.com>
10087 * stabsread.c (read_type): Add recognition for new attribute:
10088 "@V;" means that an array type is actually a vector.
10089 This is analogous to the vector flag that's been added to dwarf2.
10091 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10093 * i386-tdep.h (i386_abi): New enum.
10094 (struct gdbarch_tdep): Replace os_ident member with abi.
10095 (i386_gdbarch_register_os_abi): New prototype.
10096 * i386-tdep.c (i386_abi_names): New array.
10097 (process_note_abi_tag_sections): Removed.
10098 (process_note_sections): New function.
10099 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10100 (struct i386_abi_handler): New struct.
10101 (i386_abi_handler_list): New variable.
10102 (i386_gdbarch_register_os_abi): New function.
10103 (i386_gdbarch_init): Adapt for the changes given above.
10105 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10107 * gregset.h: Say "GNU/Linux".
10109 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10111 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10112 (build_gdbtypes): Build builtin_type_v2_float.
10113 (_initialize_gdbtypes): Register new builtin type.
10115 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10117 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10118 (clear_gdbarch_swap): New function.
10119 (initialize_non_multiarch): Call.
10120 (gdbarch_update_p): Before calling init(), swap out and clear the
10121 existing architecture.
10122 * gdbarch.c: Regenerate.
10124 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10126 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10129 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10131 * sh-nbsd-nat.c: Rename to...
10132 * shnbsd-nat.c: ...this.
10133 * sh-nbsd-tdep.c: Rename to...
10134 * shnbsd-tdep.c: ...this.
10135 * sh-nbsd-tdep.h: Rename to...
10136 * shnbsd-tdep.h: ...this.
10137 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10138 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10140 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10142 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10143 concatenation for command help messages.
10145 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10147 * NEWS: Note new sh*-*-netbsdelf* configuration.
10148 * configure.host: Set gdb_host_cpu to sh for all sh*.
10149 (sh*-*-netbsdelf*): New host.
10150 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10151 (sh*-*-netbsdelf*): New target.
10152 * sh-nbsd-nat.c: New file.
10153 * sh-nbsd-tdep.c: New file.
10154 * sh-nbsd-tdep.h: New file.
10155 * config/sh/nbsd.mh: New file.
10156 * config/sh/nbsd.mt: New file.
10157 * config/sh/nm-nbsd.h: New file.
10158 * config/sh/tm-nbsd.h: New file.
10160 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10162 * sh-tdep.c (sh_osabi_names): Declare.
10163 (process_note_abi_tag_sections): New function.
10164 (get_elfosabi): Ditto.
10165 (sh_gdbarch_register_os_abi): Ditto.
10166 (sh_dump_tdep): Ditto.
10167 _initialize_sh_tdep): Use gdbarch_register to register
10168 sh_gdbarch_init and sh_dump_tdep.
10169 * config/sh/tm-sh.h (sh_osabi): Declare.
10170 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10172 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10174 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10175 (thumb_scan_prologue): Ditto.
10176 (arm_find_callers_reg): Ditto.
10177 (arm_frame_chain): Ditto.
10178 (arm_init_extra_frame_info): Ditto.
10179 (arm_frame_saved_pc): Ditto.
10180 (arm_pop_frame): Ditto.
10181 (arm_push_return_address): New function.
10182 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10183 call_dummy_location, call_dummy_breakpoint_offset_p,
10184 call_dummy_breakpoint_offset, call_dummy_p,
10185 call_dummy_stack_adjust_p, call_dummy_words,
10186 sizeof_call_dummy_words, call_dummy_start_offset,
10187 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10188 call_dummy_address, push_return_address and push_dummy_frame for
10189 generic dummy frames.
10191 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10193 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10194 size computation for alloca.
10195 (sh_fp_frame_init_saved_regs): Likewise.
10197 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10199 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10200 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10201 * arm-tdep.c (arm_store_return_value): Use them.
10202 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10203 * remote-rdp.c (remote_rdp_fetch_register): Use
10204 ARM_MAX_REGISTER_RAW_SIZE.
10205 (remote_rdp_store_register): Likewise.
10207 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10209 * dwarf2cfi.c: Code cleanup, removed unused variables,
10210 added default labels to switch {} statements.
10211 * x86-64-tdep.c: Ditto.
10212 * x86-64-linux-nat.c: Ditto.
10214 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10216 * solib.h: Protect against multiple inclusion.
10218 2002-05-06 Jim Blandy <jimb@redhat.com>
10220 Add first preprocessor macro-expansion files.
10221 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10222 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10223 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10224 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10225 (COMMON_OBS): Add macrotab.o, macroexp.o.
10226 (macroexp.o, macrotab.o): New rules.
10228 Separate the job of reading the line number info statement program
10229 header (...expialidocious) out into its own function.
10230 * dwarf2read.c (struct line_head, struct filenames, struct
10231 directories): Replace with...
10232 (struct line_header): New structure, containing the full
10233 contents of the statement program header, including the
10234 include directory and file name tables.
10235 (read_file_scope): If we have line number info, instead of just
10236 calling dwarf_decode_lines to do all the work, call
10237 dwarf_decode_line_header first to get a `struct line_header'
10238 containing the data in the statement program header, and then
10239 pass that to dwarf_decode_lines, which will pick up where that
10240 left off. Be sure to clean up the `struct line_header' object.
10241 (dwarf_decode_line_header, free_line_header, add_include_dir,
10242 add_file_name): New functions.
10243 (dwarf_decode_lines): Move all the code to read the statement
10244 program header into dwarf_decode_line_header. Take the line
10245 header it built as the first argument, instead of the offset to
10246 the compilation unit's line number info. Use the new `struct
10247 line_header' type instead of the old structures. No need to do
10248 cleanups here now, since we don't allocate anything.
10249 (dwarf2_statement_list_fits_in_line_number_section,
10250 dwarf2_line_header_too_long): New complaints.
10252 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10254 * gdbtypes.c (init_vector_type): New function.
10255 (build_builtin_type_vec128): Simplify the representation of SIMD
10257 (build_gdbtypes): Initialize new builtin vector types.
10258 (_initialize_gdbtypes): Register new vector types with gdbarch.
10259 (builtin_type_v4_float, builtin_type_v4_int32,
10260 builtin_type_v8_int16, builtin_type_v16_int8,
10261 builtin_type_v2_int32, builtin_type_v4_int16,
10262 builtin_type_v8_int8): New (renamed) SIMD types.
10264 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10266 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10267 (i387_fill_fxsave): Likewise.
10269 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10271 * alpha-tdep.c (alpha_extract_return_value): Don't use
10272 non-constant array size in prototype.
10274 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10276 From Brian Taylor <briant at model dot com>:
10277 * ui-out.c (ui_out_field_core_addr): Use the function
10278 longest_local_hex_string_custom'to format addresses > 32 bits
10281 * ui-out.c (ui_out_field_core_addr): Update comment.
10283 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10285 * stack.c (select_and_print_frame): Make static. Delete the
10287 (func_command): Update call.
10288 (select_frame_command): Delete code computing the frame level.
10289 * frame.h (select_and_print_frame): Delete declaration.
10291 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10293 * sparc-tdep.c (sparc_get_saved_register): Comment why
10294 get_prev_frame call is safe.
10296 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10298 * frame.h (select_frame): Delete level parameter.
10299 * stack.c (select_frame): Update. Use frame_relative_level to
10300 obtain the frame's level.
10301 (select_and_print_frame): Update call.
10302 (select_frame_command): Ditto.
10303 (up_silently_base): Ditto.
10304 (down_silently_base): Ditto.
10305 * ocd.c (ocd_start_remote): Ditto.
10306 * remote-rdp.c (remote_rdp_open): Ditto.
10307 * remote-mips.c (mips_initialize): Ditto.
10308 (common_open): Ditto.
10309 * remote-e7000.c (e7000_start_remote): Ditto.
10310 * m3-nat.c (select_thread): Ditto.
10311 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10312 (child_get_current_exception_event): Ditto.
10313 * varobj.c (varobj_create): Ditto.
10314 (varobj_update): Ditto.
10315 (c_value_of_root): Ditto.
10316 * tracepoint.c (finish_tfind_command): Ditto.
10317 * corelow.c (core_open): Ditto.
10318 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10319 * thread.c (info_threads_command): Ditto.
10320 (switch_to_thread): Ditto.
10321 * infrun.c (normal_stop): Ditto.
10322 (restore_selected_frame): Ditto.
10323 (restore_inferior_status): Ditto.
10324 * breakpoint.c (insert_breakpoints): Ditto.
10325 (watchpoint_check): Ditto.
10326 (bpstat_stop_status): Ditto.
10327 (do_enable_breakpoint): Ditto.
10328 * blockframe.c (flush_cached_frames): Ditto.
10329 (reinit_frame_cache): Ditto.
10331 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10333 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10336 2002-05-04 Jim Blandy <jimb@redhat.com>
10338 * gdbtypes.c (replace_type): Doc fix.
10340 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10342 * valprint.c (strcat_longest): Delete commented out function.
10345 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10347 * MAINTAINERS: Mark a29k as deleted.
10348 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10349 Move new configurations to the top.
10350 * configure.tgt: Remove a29k.
10351 * config/a29k/tm-vx29k.h: Delete.
10352 * config/a29k/vx29k.mt: Delete.
10353 * config/a29k/tm-a29k.h: Delete.
10354 * config/a29k/a29k-udi.mt: Delete.
10355 * config/a29k/a29k.mt: Delete.
10356 * a29k-tdep.c: Delete.
10357 * remote-udi.c: Delete.
10358 * remote-mm.c: Delete.
10359 * remote-eb.c: Delete.
10360 * remote-adapt.c: Delete.
10361 * Makefile.in: Remove obsolete code.
10362 * config/s390/s390x.mt: Ditto.
10363 * config/s390/s390.mt: Ditto.
10364 * config/sparc/sparclynx.mh: Ditto.
10365 * config/sparc/linux.mh: Ditto.
10366 * config/pa/hppaosf.mh: Ditto.
10367 * config/pa/hppabsd.mh: Ditto.
10368 * config/ns32k/nbsd.mt: Ditto.
10369 * config/mips/vr5000.mt: Ditto.
10370 * config/m68k/sun3os4.mh: Ditto.
10371 * config/m68k/nbsd.mt: Ditto.
10372 * config/m68k/m68klynx.mh: Ditto.
10373 * config/m32r/m32r.mt: Ditto.
10374 * config/i386/x86-64linux.mt: Ditto.
10375 * config/i386/nbsdelf.mt: Ditto.
10376 * config/i386/nbsd.mt: Ditto.
10377 * config/i386/i386lynx.mh: Ditto.
10379 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10381 * target.c (debug_print_register): New function. Handle oversize
10383 (debug_to_fetch_registers): Call.
10384 (debug_to_store_registers): Call.
10386 2002-05-03 Jim Blandy <jimb@redhat.com>
10388 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10389 (read_type): Doc fix.
10390 * gdbtypes.c (replace_type): Doc fix.
10392 * stabsread.c (multiply_defined_struct): New complaint.
10393 (read_struct_type): If the type we were passed isn't empty, or
10394 incomplete, don't read the new struct type into it; complain,
10395 and return the original type unchanged. Take a new `type_code'
10396 argument, which is the type code for the new type.
10397 (read_type): Rather than storing the type's type code here, pass
10398 it as an argument to read_struct_type, and let that take care of
10399 storing it. That way, we don't overwrite the original type code,
10400 so read_struct_type can use it to decide whether we're overwriting
10401 something we shouldn't.
10402 (complain_about_struct_wipeout): New function.
10404 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10406 * gdbarch.sh: Assert that gdbarch is non-NULL.
10407 * gdbarch.c: Regenerate.
10409 2002-05-03 Jason Merrill <jason@redhat.com>
10411 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10414 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10416 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10417 (x86_64_dwarf2gdb_regno_map_length),
10418 (x86_64_dwarf2_reg_to_regnum): Added.
10419 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10420 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10421 (_initialize_x86_64_tdep): Synced with the change above.
10422 (x86_64_skip_prologue): Reformulated message.
10424 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10426 * f-exp.y: Also use new prev_lexptr variable
10427 to improve error reporting. Based on Michael Snyder
10428 2002-04-24 dated patch to c-exp.y.
10429 * jv-exp.y: Likewise.
10430 * m2-exp.y: Likewise.
10432 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10434 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10435 we are dealing with vectors.
10437 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10439 * config/m68k/tm-nbsd.h: Obvious fix,
10440 correct machine name.
10442 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10444 * p-typeprint.c (pascal_type_print_base): Add support
10445 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10447 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10449 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10450 for fondamental pascal 'char' type.
10452 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10454 * p-lang.h (is_pascal_string_type): Declaration changed,
10455 new sixth argument of type char ** added.
10456 * p-lang.c (is_pascal_string_type): Implementation
10457 changed. Args length_pos, length_size, string_pos, char_size
10458 can now be NULL. New argument arrayname set to the field
10459 name of the char array. Return value set to char array
10460 field index plus one.
10461 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10462 is_pascal_string_type function.
10464 2002-05-02 Andrew Cagney <cagney@redhat.com>
10466 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10467 <cagney@redhat.com> change.
10468 * gdbarch.c: Regenerate.
10470 2002-05-02 Andrew Cagney <cagney@redhat.com>
10472 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10473 before probing for a new one. Detect errorenous gdbarch_init
10475 * gdbarch.c: Regenerate.
10477 2002-05-01 Andrew Cagney <cagney@redhat.com>
10479 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10480 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10481 * config/v850/tm-v850.h: Ditto. Update copyright.
10483 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10485 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10488 2002-04-30 Michael Snyder <msnyder@redhat.com>
10490 * arm-tdep.c: Whitespace clean-ups.
10491 (arm_skip_prologue): Fix thinko; two lines
10492 should have been removed as part of 4/24 change.
10494 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10496 * rs6000-tdep.c: Added comment describing how fpscr register
10497 numbers were chosen.
10499 2002-04-30 Michael Snyder <msnyder@redhat.com>
10501 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10503 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10505 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10506 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10507 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10509 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10511 From Louis Hamilton <hamilton@redhat.com>:
10512 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10513 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10514 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10515 not bfd-private xcoff data, to determine wordsize.
10516 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10518 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10520 GDB 5.2 released from 5.2 branch.
10522 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10524 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10525 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10526 (x86_64_register_info_table): Added comments with register numbers.
10528 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10530 * rs6000-tdep.c (rs6000_extract_return_value,
10531 rs6000_store_return_value): Handle returning vectors.
10532 (rs6000_gdbarch_init): Use
10533 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10534 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10536 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10538 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10539 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10541 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10543 * hpread.c (hpread_psymtab_to_symtab_1,
10544 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10545 with fprintf_unfiltered (gdb_stderr,...).
10547 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10549 * remote-array.c (printf_monitor, write_monitor,
10550 array_insert_breakpoint, array_remove_breakpoint ):
10551 Replace fprintf (stderr,...
10552 with fprintf_unfiltered (gdb_stderr,....
10553 * remote-es.c: Likewise.
10554 * remote-os9k.c: Likewise.
10555 * remote-st.c: Likewise.
10557 2002-04-28 Andreas Schwab <schwab@suse.de>
10559 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10560 linux-proc.o and gcore.o.
10562 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10564 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10565 code without frame pointers.
10567 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10569 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10570 ON_STACK is needed.
10572 2002-04-26 Ben Elliston <bje@redhat.com>
10574 * target.c (do_xfer_memory): Correct reference to the new option
10575 "trust-readonly-sections".
10577 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10579 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10580 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10581 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10583 (read_array_type): Record the fact that this array type is really a
10584 vector (i.e. are passed in by value).
10586 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10588 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10589 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10590 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10591 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10592 * alpha-linux-tdep.c: Include frame.h.
10593 (alpha_linux_sigcontext_addr): New function.
10594 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10595 alpha_linux_sigcontext_addr.
10596 * alpha-osf1-tdep.c: Include gdbcore.h.
10597 (alpha_osf1_sigcontext_addr): New function.
10598 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10599 alpha_osf1_sigcontext_addr.
10600 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10601 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10603 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10605 * stack.c (selected_frame_level):
10606 (select_frame): Do not set selected_frame_level.
10607 * frame.h (selected_frame_level): Delete declaration.
10609 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10612 convert_from_func_ptr-addr when AIX / PowerOpen.
10614 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10616 * valops.c (hand_function_call): Call
10617 generic_save_call_dummy_addr.
10618 * frame.h (generic_save_call_dummy_addr): Declare.
10619 * blockframe.c (struct dummy_frame): Add fields call_lo and
10621 (generic_find_dummy_frame): Check for PC in range call_lo to
10622 call_hi instead of entry_point_address.
10623 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10624 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10625 (generic_save_call_dummy_addr): New function.
10627 2002-04-24 David S. Miller <davem@redhat.com>
10629 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10630 sparc_skip_prologue.
10631 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10632 information to find prologue when possible.
10633 (sparc_prologue_frameless_p): Call examine_prologue directly.
10634 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10635 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10637 (SKIP_PROLOGUE): Likewise.
10639 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10641 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10642 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10643 indicate that the condition it was testing is always true.
10644 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10645 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10646 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10648 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10650 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10651 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10652 tdep->jb_pc and tdep->jb_elt_size.
10653 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10654 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10655 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10656 * alpha-nat.c (get_longjmp_target): Remove.
10657 (JB_ELEMENT_SIZE): Ditto.
10659 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10660 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10661 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10662 to alpha_get_longjmp_target.
10663 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10664 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10665 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10667 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10669 * README: Update to GDB 5.2.
10671 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10673 * gdbarch.sh (LC_ALL): Set to `c'.
10675 2002-04-25 Theodore A. Roth <troth@verinet.com>
10677 * avr-tdep.c: Ran through gdb_indent.sh.
10679 2002-04-25 Theodore A. Roth <troth@verinet.com>
10681 * MAINTAINERS: Add myself as AVR maintainer.
10682 * NEWS: Note new target avr.
10684 2002-04-25 Theodore A. Roth <troth@verinet.com>
10686 * Makefile.in: Add support for AVR target.
10687 * configure.tgt: Add support for AVR target.
10688 * avr-tdep.c: New file
10689 * config/avr/avr.mt: New file.
10691 2002-04-25 Theodore A. Roth <troth@verinet.com>
10693 * MAINTAINERS: Add myself to write-after-approval.
10695 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10697 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10698 with fprintf_unfiltered (gdb_stderr,....
10700 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10703 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10705 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10707 * p-exp.y: Also use new prev_lexptr variable
10708 to improve error reporting. Based on Michael Snyder
10709 2002-04-24 dated patch to c-exp.y.
10711 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10713 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10714 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10715 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10717 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10719 (FUNCTION_START_OFFSET): Remove.
10720 (BREAKPOINT): Ditto.
10722 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10724 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10727 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10729 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10730 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10731 alpha_linux_pc_in_sigtramp.
10732 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10733 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10734 alpha_osf1_pc_in_sigtramp.
10735 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10736 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10737 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10738 alphafbsd_pc_in_sigtramp.
10739 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10740 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10741 alphanbsd_pc_in_sigtramp.
10742 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10743 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10745 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10747 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10749 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10751 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10753 (alphanbsd-nat.o): New dependency list.
10754 (alphanbsd-tdep.o): Ditto.
10755 * NEWS: Note new native NetBSD/alpha configuration.
10756 * alphanbsd-nat.c: New file.
10757 * alphanbsd-tdep.c: Ditto.
10758 * configure.host (alpha*-*-netbsd*): New host.
10759 * configure.tgt (alpha*-*-netbsd*): New target.
10760 * config/alpha/nbsd.mh: New file.
10761 * config/alpha/nbsd.mt: Ditto.
10762 * config/alpha/nm-nbsd.h: Ditto.
10763 * config/alpha/tm-nbsd.h: Ditto.
10765 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10767 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10768 (alpha-osf1-tdep.o): New dependency list.
10769 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10770 and skip_sigtramp_frame members.
10771 * alpha-linux-tdep.c: Include gdbcore.h.
10772 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10773 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10774 * alpha-osf1-tdep.c: New file.
10775 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10777 (alpha_frame_past_sigtramp_frame): New function.
10778 (alpha_dynamic_sigtramp_offset): Ditto.
10779 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10780 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10781 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10782 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10783 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10784 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10785 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10786 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10787 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10788 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10789 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10790 to find_solib_trampoline_target.
10791 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10792 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10793 (SKIP_TRAMPOLINE_CODE): Remove.
10794 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10795 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10796 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10797 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10798 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10799 (PROC_SIGTRAMP_MAGIC): Ditto.
10800 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10801 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10802 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10803 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10804 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10806 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10808 * NEWS: Note that Alpha targets are now multi-arch.
10810 2002-04-24 Michael Snyder <msnyder@redhat.com>
10812 * parser-defs.h (prev_lexptr): New external variable.
10813 * parse.c (parse_exp_1): Set prev_lexptr to null before
10814 calling the language-specific parser.
10815 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10816 (yyerror): Use prev_lexptr in error reporting.
10818 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10820 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10821 * gregset.h: If FILL_FPXREGSET is defined, provide
10822 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10823 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10824 is defined, call fill_fpxregset.
10826 2002-04-24 Roland McGrath <roland@frob.com>
10828 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10829 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10830 (supply_gregset, supply_fpregset): New functions.
10832 * gnu-nat.c (gnu_find_memory_regions): New function.
10833 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10834 (gnu_xfer_memory): Add a cast.
10836 2002-04-24 Michael Snyder <msnyder@redhat.com>
10838 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10839 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10840 of argument regs ("str r(0123), [r11, #-nn"]).
10841 (arm_skip_prologue): Better handling for frameless functions.
10842 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10843 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10845 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10847 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10848 NUM_PSEUDO_REGS can be used.
10850 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10852 * arch-utils.h: Update copyright.
10854 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10855 * gdbarch.h, gdbarch.c: Re-generate.
10857 * inferior.h (IN_SIGTRAMP): Delete definition.
10858 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10859 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10861 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10862 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10863 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10864 (find_proc_framesize): Ditto.
10865 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10866 (alpha_init_extra_frame_info): Ditto.
10867 * infrun.c (handle_inferior_event): Ditto.
10868 (handle_inferior_event): Ditto.
10869 (check_sigtramp2): Ditto.
10870 * blockframe.c (create_new_frame): Ditto.
10871 (get_prev_frame): Ditto.
10872 * ppc-linux-tdep.c: Update comments.
10873 * i386-linux-tdep.c: Update comments.
10874 * breakpoint.c (bpstat_what): Update comment.
10876 2002-04-24 David S. Miller <davem@redhat.com>
10878 * i960-tdep.c (register_in_window_p): New function.
10879 (i960_find_saved_register): Use it instead of
10880 REGISTER_IN_WINDOW_P.
10881 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10883 * symtab.h (find_stab_function_addr): Kill extern.
10884 * minsyms.c (find_stab_function_addr): Remove from here...
10885 * dbxread.c: ... to here, and mark it static.
10887 2002-04-20 David S. Miller <davem@redhat.com>
10889 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10890 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10892 2002-04-21 David S. Miller <davem@redhat.com>
10894 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10895 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10896 (vx_write_register): Likewise.
10898 2002-04-23 J. Brobecker <brobecker@gnat.com>
10900 * source.c (is_regular_file): New function.
10901 (openp): Check wether file to open is a regular file
10902 to avoid opening directories.
10904 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10906 * findvar.c (extract_signed_integer): Cast printf argument
10907 to suppress format warning.
10908 (extract_unsigned_integer): Likewise.
10909 * infcmd.c (registers_info): Likewise.
10910 * top.c (get_prompt_1): Likewise.
10911 * valops.c (value_assign): Likewise.
10912 * valprint.c (print_decimal): Likewise.
10914 2002-04-22 H.J. Lu (hjl@gnu.org)
10916 * c-exp.y (typebase): Support
10918 [long|long long|short] [signed|unsigned] [int|]
10922 signed [long|long long|short] int
10924 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10926 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10928 * vax-tdep.h: New file.
10929 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10930 Make several routines static.
10931 (vax_get_saved_register): New function.
10932 (vax_gdbarch_init): New function.
10933 (_initialize_vax_tdep): Register vax_gdbarch_init.
10934 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10935 Remove macros now under the control of gdbarch.
10937 2002-04-22 Michael Snyder <msnyder@redhat.com>
10939 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10940 Some whitespace and coding standards tweaks.
10942 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10944 * vax-tdep.c: Include regcache.h.
10945 (vax_call_dummy_words): New.
10946 (sizeof_vax_call_dummy_words): New.
10947 (vax_fix_call_dummy): New function.
10948 (vax_saved_pc_after_call): Ditto.
10949 * config/vax/tm-vax.h: Don't include regcache.h.
10950 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10951 (CALL_DUMMY): Remove.
10952 (CALL_DUMMY_WORDS): Define.
10953 (SIZEOF_CALL_DUMMY_WORDS): Define.
10954 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10956 2002-04-18 Michael Snyder <msnyder@redhat.com>
10958 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10960 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10962 * vax-tdep.c (vax_frame_chain): New function.
10963 (vax_push_dummy_frame): Ditto.
10964 (vax_pop_frame): Ditto.
10965 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10966 (FRAMELESS_FUNCTION_INVOCATION): Use
10967 generic_frameless_function_invocation_not.
10968 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10969 (POP_FRAME): Use vax_pop_frame.
10971 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10973 * vax-tdep.c (vax_store_struct_return): New function.
10974 (vax_extract_return_value): Ditto.
10975 (vax_store_return_value): Ditto.
10976 (vax_extract_struct_value_address): Ditto.
10977 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10978 vax_store_struct_return.
10979 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10980 (STORE_RETURN_VALUE): Use vax_store_return_value.
10981 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10983 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10985 * vax-tdep.c (vax_frame_saved_pc): New function.
10986 (vax_frame_args_address_correct): Ditto.
10987 (vax_frame_args_address): Ditto.
10988 (vax_frame_locals_address): Ditto.
10989 (vax_frame_num_args): Move code to be in proximity to
10990 other frame-related functions.
10991 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10992 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10993 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10994 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10995 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10997 2002-04-22 H.J. Lu (hjl@gnu.org)
10999 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11002 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11004 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11005 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11006 (FRAME_INIT_SAVED_REGS): New macro.
11008 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11010 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11012 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11014 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11016 (fetch_osf_core_registers): Likewise.
11017 (supply_gregset): Likewise.
11019 2002-04-22 J. Brobecker <brobecker@gnat.com>
11021 * symfile.h (get_section_index): Define.
11022 * symfile.c (get_section_index): New function.
11023 * mdebugread.c (SC_IS_SBSS): New macro.
11024 (SC_IS_BSS): Return true for the scBss storage class only, as
11025 the scSBss storage class refers to the .sbss section.
11026 (parse_partial_symbols): Discard the symbols which associated
11027 section does not exist.
11028 Make sure to use the .sbss section index for symbols which
11029 storage class is scBss, rather than using the .bss section index.
11031 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11033 * vax-tdep.c: Update copyright years.
11034 (vax_register_name): New function.
11035 (vax_register_byte): Ditto.
11036 (vax_register_raw_size): Ditto.
11037 (vax_register_virtual_size): Ditto.
11038 (vax_register_virtual_type): Ditto.
11039 * config/vax/tm-vax.h: Update copyright years.
11040 (REGISTER_NAMES): Remove.
11041 (REGISTER_NAME): Define.
11042 (REGISTER_BYTE): Use vax_register_byte.
11043 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11044 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11045 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11047 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11049 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11051 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11053 2002-04-21 David S. Miller <davem@redhat.com>
11055 * arch-utils.c (generic_prologue_frameless_p): Kill
11056 SKIP_PROLOGUE_FRAMELESS_P code.
11057 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11059 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11060 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11061 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11063 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11064 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11065 (sparc_gdbarch_init): Pass it to
11066 set_gdbarch_prologue_frameless_p.
11068 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11070 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11071 (alphabsd-nat.o): New dependency list.
11073 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11075 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11077 (alpha-linux-tdep.o): New dependency list.
11078 (alphafbsd-tdep.o): Likewise.
11080 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11082 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11084 * alpha-tdep.c: ...from here.
11085 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11087 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11089 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11090 prototype from here...
11091 * alpha-tdep.h: ...to here.
11093 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11095 * frame.h (selected_frame_level): Document as deprecated.
11096 (frame_relative_level): Declare.
11097 * stack.c (frame_relative_level): New function.
11098 (selected_frame_level): Document as deprecated.
11099 (select_frame): Do not set the selected_frame_level.
11101 * stack.c (frame_info, record_selected_frame): Update.
11102 (frame_command, current_frame_command): Update.
11103 (up_silently_base, up_command, down_silently_base): Update.
11104 (down_command): Update.
11105 * inflow.c (kill_command): Update.
11106 * tracepoint.c (finish_tfind_command): Update.
11107 * corelow.c (core_open): Update.
11108 * thread.c (info_threads_command): Update.
11109 (do_captured_thread_select): Update.
11110 * infcmd.c (finish_command): Update.
11111 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11115 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11117 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11119 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11122 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11124 * alphafbsd-tdep.c: Update copyright years. Include
11126 (alphafbsd_use_struct_convention): Make static.
11127 (alphafbsd_init_abi): New function.
11128 (_initialize_alphafbsd_tdep): New function.
11129 * config/alpha/tm-fbsd.h: Update copyright years.
11130 (USE_STRUCT_CONVENTION): Remove.
11132 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11134 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11135 an Alpha ABI variant.
11136 (alpha_abi_handler_list): Declare.
11137 (alpha_gdbarch_register_os_abi): New function.
11138 (alpha_gdbarch_init): Give registered ABI variant handlers a
11139 chance to tweak the gdbarch once we have set up defaults.
11140 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11144 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11145 to standard_coerce_float_to_double.
11146 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11148 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11150 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11151 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11152 from gdbarch_tdep rather than a constant.
11153 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11154 the default text address for all Alpha Unix ABIs.
11155 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11156 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11158 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11160 * alpha-tdep.h: New file. Includes several Alpha target constants
11162 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11163 let gdbarch deal with.
11164 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11165 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11166 to dependency list.
11167 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11168 Alpha target register names.
11169 * alphabsd-nat.c: Likewise.
11170 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11171 Alpha target register names. Make serveral routines static.
11172 (alpha_get_saved_register): New function.
11173 (alpha_abi_names): New.
11174 (process_note_abi_tag_sections): New function.
11175 (get_elfosabi): New function.
11176 (alpha_gdbarch_init): New function.
11177 (alpha_dump_tdep): New function.
11178 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11180 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11182 * frame.c (find_saved_register): Delete #ifdef
11183 HAVE_REGISTER_WINDOWS code.
11184 * config/sparc/tm-sparc.h: Update comments.
11185 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11187 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11189 * i960-tdep.c (i960_find_saved_register): New function.
11190 (i960_get_saved_register): New function.
11191 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11192 (i960_get_saved_register): Declare.
11193 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11195 2002-04-20 David S. Miller <davem@redhat.com>
11197 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11199 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11201 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11202 instead of NUM_PSEUDO_REGS.
11204 2002-04-20 David S. Miller <davem@redhat.com>
11206 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11207 GDB_MULTI_ARCH_PARTIAL
11208 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11209 define, let tm-sp64.h do it.
11211 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11213 * frame.c (find_saved_register): Avoid a NULL pointer
11214 dereference and actually walk the frame list.
11216 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11218 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11219 sorted in most most-recent-used order. Document.
11220 * gdbarch.h, gdbarch.c: Regenerate.
11222 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11224 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11226 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11227 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11228 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11231 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11234 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11235 (build_builtin_type_vec128): Ditto.
11236 (append_composite_type_field): Fix calculation of type length in
11239 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11241 * config/djgpp/README: Update.
11243 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11246 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11248 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11249 (alpha_setup_arbitrary_frame): ...to this.
11250 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11251 for alpha_setup_arbitrary_frame.
11253 2002-04-18 Andrew Cagney <cagney@redhat.com>
11255 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11256 * gdbarch.h, gdbarch.c: Regenerate.
11258 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11259 * target.h (memory_breakpoint_from_pc): Update declaration.
11260 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11262 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11263 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11264 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11265 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11266 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11267 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11268 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11269 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11270 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11271 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11272 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11273 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11275 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11277 * monitor.c (monitor_insert_breakpoint): Ditto.
11278 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11280 * config/mcore/tm-mcore.h: Update copyright.
11281 * mem-break.c: Ditto.
11282 * xstormy16-tdep.c: Ditto.
11284 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11286 * p-exp.y: Add precedence rule for '^' token.
11287 This removes the shift/reduce conflicts.
11288 Remove the comment concerning these shift/reduce conflicts.
11290 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11292 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11293 (registers_powerpc_nofp): New register set for processors
11294 without floating point unit.
11296 2002-04-18 David S. Miller <davem@redhat.com>
11298 * MAINTAINERS: Add myself to write-after-approval.
11300 2002-04-17 Michael Snyder <msnyder@redhat.com>
11302 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11304 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11306 * rs6000-tdep.c (frame_initial_stack_address): Use
11307 frame_register_read to read the alloca_reg.
11309 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11311 * frame.c (find_saved_register): Find saved registers in the next
11315 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11317 * gdbarch.sh (LANG): Set to ``c''.
11319 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11321 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11323 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11325 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11328 * hpread.c (hpread_get_lntt): Add declaration.
11329 Also fix PR gdb/391.
11331 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11333 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11334 * aclocal.m4, configure: Re-generate.
11337 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11339 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11340 instead of tm_print_insn.
11342 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11344 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11346 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11348 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11349 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11350 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11352 2002-04-12 Don Howard <dhoward@redhat.com>
11354 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11355 max_user_call_depth.
11356 (init_cmd_lists): Initialize the new value;
11357 * cli/cli-script.c (execute_user_command): Limit the call depth of
11358 user defined commands. This avoids a core-dump when user commands
11359 are infinitly recursive.
11361 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11363 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11364 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11365 from tdep struct instead of DEFAULT_LR_SAVE.
11366 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11367 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11368 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11370 2002-04-12 Michael Snyder <msnyder@redhat.com>
11372 * Remote.c: Spelling fix.
11373 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11374 If no symbol found for "sbrk", try "_sbrk".
11375 (make_output_phdrs): Use bfd_section_name.
11376 (gcore_copy_callback): Use bfd_section_name.
11377 * eval.c: Indentation fix-ups.
11378 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11379 in case it gets applied to an address that is already
11380 in the instruction space.
11381 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11382 * symfile.c: Fix indentation, long lines.
11383 * source.c: White space fix-up.
11385 2002-04-12 Andrew Cagney <cagney@redhat.com>
11387 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11388 * frame.c (frame_register_read): New function. Return non-zero on
11390 (read_relative_register_raw_bytes_for_frame): Delete.
11391 (read_relative_register_raw_bytes): Delete.
11392 * frame.h (frame_register_read): Declare.
11393 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11394 * sh-tdep.c: Ditto.
11395 * infcmd.c (do_registers_info): Ditto.
11396 * hppa-tdep.c: Ditto.
11397 * rs6000-tdep.c: Ditto.
11398 * h8500-tdep.c: Ditto.
11399 * mips-tdep.c: Ditto.
11400 * h8300-tdep.c: Ditto.
11401 * z8k-tdep.c: Ditto.
11403 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11405 From Jimi X <jimix@watson.ibm.com>:
11406 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11409 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11411 From Jimi X <jimix@watson.ibm.com>:
11412 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11415 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11417 From Jimi X <jimix@watson.ibm.com>:
11418 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11419 register sets for these processor variants.
11421 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11423 * regformats/reg-ppc.dat: Support FPSCR.
11425 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11427 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11428 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11429 Add fpscr as an invalid/unfetchable register.
11430 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11431 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11432 (fill_fpregset): Add support for register fpscr.
11433 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11434 (fill_gregset): Account for the fact that register ``mq'' might
11436 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11437 (registers_power): Add fpscr to register set at slot 71.
11438 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11439 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11441 2002-04-11 Michael Snyder <msnyder@redhat.com>
11443 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11444 * configure: Regenerate.
11445 * config.in: Regenerate.
11446 * acconfig.h: Add define for _SYSCALL32.
11447 * core-sol2.c: Remove #define _SYSCALL32.
11448 * solib-legacy.c: Remove #define _SYSCALL32.
11450 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11452 * stack.c (select_frame): Cleanup internal error message, do not
11455 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11457 * stack.c (select_frame): Check that selected_frame and the
11458 specified level are as expected.
11459 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11461 * frame.h (struct frame_info): Add field `level'. Update
11463 Work-in-progress PR gdb/464.
11465 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11467 * maint.c (maint_print_section_info): Rename print_section_info.
11468 (print_bfd_section_info, print_objfile_section_info): Update.
11469 * inferior.h (struct gdbarch): Add opaque declaration.
11470 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11471 * gdbarch.h: Regenerate.
11473 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11475 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11476 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11477 (kernel_u_size): Added.
11478 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11479 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11481 2002-04-04 Jim Ingham <jingham@apple.com>
11483 * valarith.c (find_size_for_pointer_math): New function, either returns
11484 the size for a pointer's target, returns 1 for void *, or errors for
11486 (value_add, value_sub): use find_size_for_pointer_math.
11488 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11490 * linux-low.c (linux_look_up_symbols): New hook.
11491 (linux_target_ops): Add linux_look_up_symbols.
11492 * remote-utils.c (decode_address): New function.
11493 (look_up_one_symbol): New function.
11494 * server.c (handle_query): Call target look_up_symbols hook.
11495 * server.h (look_up_one_symbol): Add prototype.
11496 * target.h (struct target_ops): Add look_up_symbols hook.
11498 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11500 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11501 override FP_REGNUM with frame->fp. Update copyright.
11502 * parse.c (num_std_regs, std_regs): Delete.
11503 (target_map_name_to_register): Do not search std_regs. Update
11504 function description.
11505 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11506 declarations. Update copyright.
11509 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11511 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11512 after the last symbol in a block.
11514 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11516 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11517 is non zero as a found symbol.
11519 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11521 * findvar.c: Include "builtin-regs.h".
11522 (value_of_register): Call value_of_builtin_reg when applicable.
11523 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11524 (target_map_name_to_register): Call
11525 builtin_reg_map_name_to_regnum.
11526 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11527 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11528 (builtin_regs_h): Define.
11529 (builtin-regs.o): New target.
11530 (findvar.o): Add $(builtin_regs_h).
11531 * builtin-regs.c, builtin-regs.h: New files.
11532 * std-regs.c: New file.
11533 Partial fix for PR gdb/251.
11535 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11537 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11538 it's no longer required.
11540 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11542 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11544 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11546 From Jimi X <jimix@watson.ibm.com>:
11547 * rs6000-tdep.c (rs6000_software_single_step): Use
11548 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11549 and size. Use target_insert_breakpoint() and
11550 target_remove_breakpoint() to insert and remove breakpoints
11551 instead of explicit memory reads and writes.
11553 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11555 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11556 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11557 ELF_OBJECT_FORMAT ifdef.
11559 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11561 From Jimi X <jimix@watson.ibm.com>:
11562 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11564 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11566 From Jimi X <jimix@watson.ibm.com>:
11567 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11568 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11570 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11572 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11573 s/asprintf/xasprintf/.
11574 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11576 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11578 I believe Jeff Law denies responsability for this one:
11579 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11580 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11581 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11582 Work-around for PR gdb/366.
11584 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11586 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11587 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11588 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11590 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11592 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11593 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11596 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11598 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11601 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11603 * README (Reporting Bugs in GDB): Document the bug web page as the
11604 prefered way of submitting bugs.
11607 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11609 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11610 -1. Update comment.
11611 * gdbarch.h, gdbarch.c: Re-generate.
11613 2002-04-07 Andreas Schwab <schwab@suse.de>
11615 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11616 buffer to regcache_collect.
11618 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11620 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11621 * gdbarch.c, gdbarch.h: Re-generate.
11623 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11625 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11626 declaration. Fix -Werror.
11628 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11630 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11631 * gdbarch.c: Regenerate.
11633 2002-04-05 Michael Snyder <msnyder@redhat.com>
11635 * breakpoint.c (clear_command): Rewrite middle section to
11636 combine two loops with identical control conditions.
11637 Add a cleanup to eliminate a memory leak.
11638 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11640 2002-04-05 H.J. Lu (hjl@gnu.org)
11642 * solib-svr4.c (bkpt_names): Add "__start".
11644 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11646 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11647 as test for 64 bit target.
11649 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11651 * h8500-tdep.c (h8500_write_fp): Delete function.
11652 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11653 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11654 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11655 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11656 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11657 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11659 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11660 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11661 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11662 (d10v_write_fp): Delete function.
11663 * inferior.h (write_fp, generic_target_write_fp): Delete
11665 * regcache.c (generic_target_write_fp): Delete function.
11666 (write_fp): Delete function.
11667 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11668 * gdbarch.h, gdbarch.c: Regenerate.
11669 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11670 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11671 (sparc64_write_fp): Delete declaration.
11672 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11673 (h8500_write_fp): Delete declaration.
11675 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11677 * sparc-tdep.c (sparc64_write_fp): Delete.
11678 (sparc_push_dummy_frame): Replace write_fp call with code to store
11680 (sparc_gdbarch_init): Do not initialize write_fp.
11682 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11684 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11687 2002-03-29 Jim Blandy <jimb@redhat.com>
11689 * stack.c (get_selected_block): Add new argument `addr_in_block',
11690 used to return the exact code address we used to select the block,
11691 not just the block.
11692 * blockframe.c (get_frame_block, get_current_block): Same.
11693 * frame.h (get_frame_block, get_current_block,
11694 get_selected_block): Update declarations.
11695 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11696 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11698 2002-04-05 Michael Snyder <msnyder@redhat.com>
11700 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11703 2002-04-05 J. Brobecker <brobecker@gnat.com>
11705 * utils.c (xfullpath): New function.
11706 * defs.h (xfullpath): Add declaration.
11707 * source.c (openp): Use xfullpath in place of gdb_realpath to
11708 avoid resolving the basename part of filenames when the
11709 associated file is a symbolic link. This fixes a potential
11710 inconsistency between the filenames known to GDB and the
11711 filenames it prints in the annotations.
11712 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11713 to be able to match a filename with either the real filename, or
11714 the name of any symbolic link to this file.
11715 (lookup_partial_symtab): Ditto.
11717 2002-04-04 Michael Snyder <msnyder@redhat.com>
11719 * breakpoint.c: Add support for hardware breakpoints in overlays.
11720 (overlay_events_enabled): New state variable.
11721 (insert_breakpoints): Use overlay_events_enabled to decide
11722 whether to attempt to set a breakpoint at the overlay load addr.
11723 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11724 (remove_breakpoint): Use overlay_events_enabled to decide
11725 whether breakpoints need to be removed from overlay load addr.
11726 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11727 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11728 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11729 disable_overlay_breakpoints): Update overlay_events_enabled.
11731 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11733 * dwarf2read.c (struct function_range): New.
11734 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11735 (check_cu_functions): New.
11736 (read_file_scope): Initialize global function lists.
11737 Call dwarf_decode_line after processing children.
11738 (read_func_scope): Add to global function list.
11739 (dwarf_decode_lines): Call check_cu_functions everywhere
11740 record_line is called. Call record_line with a linenumber
11741 of 0 to mark sequence ends.
11743 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11745 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11746 change sync with glibc.
11748 2002-04-03 Jim Blandy <jimb@redhat.com>
11750 * configure.in: Call AC_C_INLINE.
11751 * configure: Regenerated.
11753 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11755 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11756 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11758 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11760 * NEWS: Mention gcore support on FreeBSD/i386.
11762 * fbsd-proc.c: New file.
11763 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11764 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11766 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11769 2002-03-29 Jim Blandy <jimb@redhat.com>
11771 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11772 unescaped newlines in string literals, but newer ones don't. So
11775 2002-03-26 Michael Snyder <msnyder@redhat.com>
11776 Andrew Cagney <cagney@redhat.com>
11778 * cli/cli-dump.c: New file. Dump memory to file,
11779 restore file to memory.
11780 * cli/cli-dump.h: New file.
11781 * Makefile.in: Add rules, dependencies for cli-dump.o.
11782 * NEWS: Mention new commands.
11784 2002-03-28 Michael Snyder <msnyder@redhat.com>
11786 * symfile.c (symbol_file_add): Move test for null symbols to later.
11788 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11790 From veksler at il.ibm.com:
11791 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11792 the xstrduped original path.
11795 2002-03-27 Michael Snyder <msnyder@redhat.com>
11797 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11798 * infcmd.c (_initialize_infcmd): Ditto.
11799 * language.c (_initialize_language): Ditto.
11800 * symfile.c (_initialize_symfile): Ditto.
11801 * top.c (_init_main): Ditto.
11802 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11804 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11806 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11807 vector registers handling.
11808 (skip_prologue): Handle new AltiVec instructions. Fill in new
11809 fields of frame data.
11810 (frame_get_saved_regs): Fill in information for AltiVec registers.
11812 2002-03-27 Jim Blandy <jimb@redhat.com>
11814 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11815 a function; leave this macro here to invoke that function.
11816 (symbol_init_mangled_name): Declaration for that function.
11817 * symtab.c (symbol_init_mangled_name): New function.
11819 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11821 * valarith.c: Replace strerror with safe_strerror.
11822 * tracepoint.c: Ditto.
11823 * lin-lwp.c: Ditto.
11824 * go32-nat.c: Ditto.
11826 * gnu-nat.c: Ditto.
11828 2002-03-27 Andreas Schwab <schwab@suse.de>
11830 * event-top.c (command_line_handler): Remove useless if.
11832 2002-03-27 Andreas Jaeger <aj@suse.de>
11834 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11837 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11839 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11840 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11841 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11842 (x86_64_linux_dr_get_status, supply_gregset),
11843 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11844 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11845 (x86_64_register_info_table): Add.
11846 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11847 (x86_64_register_raw_size, x86_64_register_virtual_type),
11848 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11849 general x86_64_register_info_table.
11850 (i386_gdbarch_init): gdbarch_register_bytes is now set
11851 dynamicaly during initialization.
11852 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11853 * gdbserver/linux-x86-64-low.c: Ditto.
11855 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11857 * gdbserver/server.c (main): Call target_signal_to_host_p
11858 and target_signal_to_host on signals received from the remote.
11859 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11860 target_signal_from_host on signals sent to the remote.
11861 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11862 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11864 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11866 * signals/signals.c: Include "server.h" in gdbserver build.
11867 (target_signal_from_name): Don't use STREQ.
11868 (_initialize_signals): Likewise. Don't include function in
11871 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11873 * signals.c: Moved to...
11874 * signals/signals.c: Here.
11875 * Makefile (signals.o): Update.
11877 2002-03-26 Jeff Law (law@redhat.com)
11879 * somread.c (som_symtab_read): Remove some commented out code and
11880 updated related comments. Do not set the minimal symbol table to
11881 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11882 in a dynamic executable.
11883 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11884 where we are unable to find the minimal symbol for the given
11887 2002-03-25 Jeff Law (law@redhat.com)
11889 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11891 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11893 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11895 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11897 * command.h: Update copyright.
11898 (struct cmd_list_element): Replace definition with opaque
11900 (enum cmd_types): Document that it will eventually be moved to
11902 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11903 (MALLOCED_REPLACEMENT): Delete macro.
11904 * Makefile.in (cli_decode_h): Add $(command_h).
11905 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11906 * top.c: Include "cli/cli-decode.h".
11907 * completer.c: Include "cli/cli-decode.h".
11908 * maint.c: Include "cli/cli-decode.h".
11909 * cli/cli-decode.h: Include "command.h".
11910 (enum command_class): Delete.
11911 (enum cmd_types): Comment out.
11912 (enum cmd_auto_boolean): Delete.
11913 (enum var_types): Delete.
11915 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11917 * cli/cli-decode.c: Include "gdb_assert.h".
11918 (add_set_or_show_cmd): New static function.
11919 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11920 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11921 all fields, such as func, from the set command.
11923 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11925 * MAINTAINERS (sh-elf): Change warning flag to -w.
11927 2002-03-23 Andrew Cagney <cagney@redhat.com>
11929 * defs.h (error): Add printf format attribute.
11930 * thread-db.c (thread_from_lwp): Fix error format string.
11931 * stack.c (parse_frame_specification): Ditto.
11932 * cli/cli-decode.c (undef_cmd_error): Ditto.
11933 * scm-lang.c (scm_lookup_name): Ditto.
11934 * tracepoint.c (trace_error): Ditto.
11935 * remote-utils.c (usage): Ditto.
11936 * remote.c (compare_sections_command): Ditto.
11939 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11941 * gdbtypes.c (append_composite_type_field): New function.
11942 (init_composite_type): New function.
11943 * gdbtypes.h (append_composite_type_field): Declare.
11944 (init_composite_type): Ditto.
11946 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11948 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11950 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11951 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11952 structure returning convention for SYSV ABI case, but not
11953 for GNU/Linux, FreeBSD, or NetBSD.
11955 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11957 * symtab.h (lookup_block_symbol): Add mangled_name argument
11960 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11961 with new mangled_name argument.
11962 * linespec.c (decode_line_1): Likewise.
11963 * valops (value_of_this): Likewise.
11964 * symtab.c (lookup_transparent_type): Likewise.
11965 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11966 (lookup_symbol): If we are given a mangled name, pass it down
11967 to lookup_symbol_aux.
11968 (lookup_block_symbol): If we are given a mangled name to check
11969 against, only return symbols which match it.
11971 2002-03-22 Christopher Faylor <cgf@redhat.com>
11973 * win32-nat.c (child_create_inferior): Check for proper shell to use
11974 here, in case the user changes it on the fly.
11975 (_initialize_inftarg): Remove shell path considerations.
11977 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11979 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11980 for gdbarch_max_register_raw_size and max_register_virtual_size.
11981 Adjust copyright year.
11983 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11985 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11986 in a function to cover the entire beginning of the function
11987 as well if it does not already.
11989 2002-03-21 Tom Rix <trix@redhat.com>
11991 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11992 (rs6000_ptrace64): Renamed from ptrace64.
11994 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11996 * gdbserver/remote-utils.c (remote_open): Don't call
11997 getprotobyname, we're all using TCP here so just use
11999 * gdbserver/gdbreplay.c (remote_open): Ditto.
12001 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12003 * regcache.c (_initialize_regcache): No need to call
12004 build_regcache() at this time; it gets called whenever
12005 the gdbarch changes.
12007 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12009 * sparc-nat.c: Include sys/param.h where possible.
12011 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12014 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12015 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12016 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12018 * stabsread.c (rs6000_builtin_type): Likewise.
12019 (read_sun_floating_type): Likewise.
12021 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12023 * stabsread.c (read_member_functions): Remove skip code for duplicate
12024 constructor/destructor methods. Use standard parsing for these
12025 methods and just do not chain them to the list of methods after
12028 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12030 * coffread.c: Remove redundant static declarations. Replace
12031 occurrences of `PTR' with `void *'.
12032 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12033 * top.h (quit_cover): Likewise.
12034 * defs.h (catch_errors): Likewise.
12036 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12038 * defs.h (XMALLOC): Define.
12039 * gdb-events.sh (XMALLOC): Delete macro.
12040 * gdb-events.c, gdb-events.h: Regenerate.
12041 * gdbarch.sh (XMALLOC): Delete macro.
12042 * gdbarch.c: Regenerate.
12043 * serial.c (XMALLOC): Delete macro.
12044 * ui-file.c (XMALLOC): Ditto.
12045 * ser-unix.h (XMALLOC): Ditto.
12046 * sh-tdep.c (XMALLOC): Ditto.
12047 * ui-out.c (XMALLOC): Ditto.
12048 * utils.c (XMALLOC): Ditto.
12049 * i386-tdep.c (XMALLOC): Ditto.
12050 * gdb-events.c (XMALLOC): Ditto.
12051 * d10v-tdep.c (XMALLOC): Ditto.
12052 * cli-out.c (XMALLOC): Ditto.
12054 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12055 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12056 * ui-file.c, ui-out.c: Ditto.
12058 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12060 * command.h (struct cmd_list_element): Add field context.
12061 (set_cmd_context, get_cmd_context): Declare.
12062 * cli/cli-decode.h: Ditto.
12063 * cli/cli-decode.c (get_cmd_context): New function.
12064 (set_cmd_context): New function.
12065 (add_cmd): Initialize context.
12066 Part of fixing PR gdb/145 and PR gdb/146.
12068 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12070 * cli/cli-decode.c (cmd_type): New function.
12071 * command.h (cmd_type): Declare.
12072 * infrun.c (set_schedlock_func): Call function cmd_type.
12073 * kod.c (kod_set_os): Call cmd_type.
12074 * cris-tdep.c (cris_version_update): Use function cmd_type.
12075 (cris_mode_update, cris_abi_update): Ditto.
12077 * command.h: (execute_cmd_post_hook): Declare.
12078 (execute_cmd_pre_hook): Declare.
12079 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12080 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12081 functions. Execute pre/post hook while ensuring that afterwords
12082 hook_in is cleared.
12083 * top.c (execute_command): Use execute_cmd_post_hook, and
12084 execute_cmd_pre_hook to execute pre/post commands.
12085 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12087 (hook_stop_stub): Call execute_cmd_pre_hook.
12089 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12091 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12092 set'' and this leads to a core dump. Move xstrdup of
12093 operating_system to after check that it is not NULL.
12095 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12097 * kod.c (kod_set_os): Remove unnecessary check that
12098 ``command->type'' is set_cmd.
12100 * valprint.c (set_input_radix): Use input_radix.
12101 (set_output_radix): Use output_radix.
12102 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12105 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12107 * value.h (struct value): Delete field ``substring_addr''. Change
12108 aligner fields to force_doublest_align, force_longest_align,
12109 force_core_addr_align and force_pointer_aligh.
12111 * value.h (struct value): Fix typo in above change.
12113 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12115 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12116 to fix internal_error from ``maintenance print architecture''.
12118 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12120 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12121 for gcc versions after gcc-2.8.1.
12123 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12125 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12126 for method resolution. Restore adjustment of ``this'' pointer after
12127 calling value_struct_elt, which was accidentally removed during the
12130 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12132 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12134 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12135 get_saved_register.
12136 * value.h (value_of_register): Update.
12138 2002-03-14 Richard Henderson <rth@redhat.com>
12140 * configure.in: Detect declaration for canonicalize_file_name.
12141 * utils.c (canonicalize_file_name): Declare, if needed.
12142 (gdb_realpath): Prefer realpath if available and usable.
12143 * config.in, configure: Rebuild.
12145 2002-03-14 Richard Henderson <rth@redhat.com>
12147 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12148 a constant array bound.
12150 * MAINTAINERS: Add myself to write-after-approval.
12152 2002-03-14 Michael Snyder <msnyder@redhat.com>
12154 * symfile.c (syms_from_objfile): Return immediately if no syms.
12155 (symbol_file_add): Return immediately if no syms.
12156 (find_sym_fns): Return immediately if no syms.
12158 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12160 * gdbserver/remote-util.c (remote_open): Print remote-side's
12161 IP address when remote debugging over the network.
12163 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12165 * config/sparc/fbsd.mh: Fix copyright.
12166 * config/sparc/fbsd.mt: Likewise.
12168 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12170 * MAINTAINERS: Fix typo in name of gdb warnings option.
12171 (x86-64): Fix formating so that this can be parsed by awk.
12173 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12175 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12176 * defs.h: Include "gdb/signals.h".
12177 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12179 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12181 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12182 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12185 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12186 Don Howard <dhoward@redhat.com>
12188 * mips-tdep.c (ST0_FR): Define.
12189 (mips2_fp_compat): New function, temporarily disabled.
12190 (mips_read_fp_register_single): New function.
12191 (mips_read_fp_register_double): New function.
12192 (mips_print_register): Use them.
12193 (do_fp_register_row): Likewise.
12195 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12197 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12200 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12202 * stabsread.c (read_member_functions): Fix is_stub test for
12203 static member functions, improve comment.
12205 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12207 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12208 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12209 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12210 commands that set boolean values.
12211 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12212 (arm_rdi_resume): Always initialize PC.
12213 (arm_rdi_open): Don't use rslt as a boolean.
12214 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12215 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12216 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12217 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12219 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12221 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12222 * configure: Rebuilt.
12224 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12226 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12227 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12229 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12231 * cli/cli-decode.c (set_cmd_completer): New function.
12232 * command.h (set_cmd_completer): Declare.
12233 * cli/cli-decode.h (set_cmd_completer): Ditto.
12235 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12236 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12237 * win32-nat.c (_initialize_inftarg): Ditto.
12238 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12239 * proc-api.c (_initialize_proc_api): Ditto.
12240 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12241 * source.c (_initialize_source): Ditto.
12242 * exec.c (_initialize_exec): Ditto.
12243 * solib.c (_initialize_solib): Ditto.
12244 * top.c (init_main): Ditto.
12245 * tracepoint.c (_initialize_tracepoint): Ditto.
12246 * symfile.c (_initialize_symfile): Ditto.
12247 * printcmd.c (_initialize_printcmd): Ditto.
12248 * infcmd.c (_initialize_infcmd): Ditto.
12249 * corefile.c (_initialize_core): Ditto.
12251 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12253 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12255 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12257 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12259 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12261 * NEWS: Update headings, 5.2 has branched.
12263 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12265 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12266 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12267 (register_addr, REGISTER_RAW_SIZE): Likewise.
12268 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12269 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12271 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12273 * MAINTAINERS (x86-64): Add myself.
12274 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12275 changed value_ptr -> struct value *
12277 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12279 * configure.host (sparc64-*-freebsd): Add.
12280 * configure.tgt: Likewise.
12281 * config/sparc/fbsd.mh: New file.
12282 * config/sparc/fbsd.mt: Likewise.
12283 * config/sparc/nm-fbsd.h: Likewise.
12284 * config/sparc/tm-fbsd.h: Likewise.
12286 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12288 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12289 regformats/reg-s390x.dat.
12291 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12293 * utils.c: Add FIXME explaining true/false problem.
12295 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12297 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12299 2002-02-28 Michael Chastain <mec@shout.net>
12301 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12303 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12305 * gdbserver/linux-s390-low.c: New file.
12306 * regformats/reg-s390.dat: New file.
12307 * regformats/reg-s390x.dat: New file.
12308 * gdbserver/configure.srv: Add S/390.
12309 * gdbserver/Makefile.in: Add S/390.
12310 * configure.tgt: Enable gdbserver for S/390.
12312 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12314 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12315 first line of the doc string for "info dos", except at the end of
12316 the sentence, since the short help stops at the first period.
12318 2002-02-28 Jason Merrill <jason@redhat.com>
12320 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12322 2002-02-27 Fred Fish <fnf@redhat.com>
12324 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12325 comment (dumy -> dummy).
12327 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12329 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12331 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12333 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12335 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12337 * gdbserver/acconfig.h: New file.
12338 * gdbserver/i387-fp.c: New file.
12339 * gdbserver/i387-fp.h: New file.
12340 * gdbserver/linux-x86-64.c: New file.
12341 * regformats/reg-x86-64.dat: New file.
12342 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12343 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12344 * gdbserver/configure.in: Add support for regsets.
12345 * gdbserver/config.in: Regenerate.
12346 * gdbserver/configure: Regenerate.
12347 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12348 * gdbserver/linux-low.h: New file.
12349 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12351 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12352 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12353 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12354 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12355 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12356 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12357 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12358 "i387-fp.h". Add PTRACE_GETREGS and friends.
12359 * gdbserver/regcache.c (supply_register): New function.
12360 (supply_register_by_name): New function.
12361 (collect_register): New function.
12362 (collect_register_by_name): New function.
12364 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12366 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12367 (config.status): Add configure.srv dependency.
12368 (server_h): Add config.h dependency.
12370 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12372 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12373 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12374 * gdbserver/configure.srv: Change i386-*-linux* to use
12377 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12379 * x86-64-tdep.c: Re-indent. Update copyright date.
12381 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12383 From Michal Ludvig <mludvig@suse.cz>:
12384 * x86-64-tdep.c (value.h): Delete.
12385 (gdb_assert.h): Include.
12386 (x86_64_register_convert_to_virtual,
12387 x86_64_register_convert_to_raw ): Add check which lets only
12388 floating-point values to be converted.
12389 (value_push): Delete.
12390 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12391 (i386_gdbarch_init): Number of register_bytes fixed.
12393 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12395 * MAINTAINERS: Add x86-64 target.
12397 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12399 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12400 * osfsolib.c (solib_map_sections): Ditto.
12401 * irix5-nat.c (solib_map_sections): Ditto.
12402 * corelow.c (gdb_check_format): Ditto.
12403 * symfile.c (symfile_bfd_open): Ditto.
12404 * solib.c (solib_map_sections): Ditto.
12407 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12409 * remote.c (_initialize_remote): By default, disable ``e'' and
12410 ``E'' step out-of-range packets.
12412 2002-02-26 Andreas Schwab <schwab@suse.de>
12414 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12415 m68k_linux_frame_saved_pc.
12416 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12418 (SIGCONTEXT_PC_OFFSET): Remove.
12419 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12420 m68k_linux_sigtramp_saved_pc): New functions.
12421 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12422 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12423 (UCONTEXT_PC_OFFSET): Define.
12424 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12425 non-RT and RT signal trampolines.
12427 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12429 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12430 (TARGET_NBPG, STACK_END_ADDR): Delete
12431 (VARIABLES_INSIDE_BLOCK): Delete.
12433 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12435 * utils.c (perror_with_name): Make string parameter constant.
12436 (print_sys_errmsg): Ditto.
12438 * defs.h (perror_with_name): Update.
12439 (print_sys_errmsg): Update.
12442 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12444 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12445 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12447 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12449 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12450 if it already matches the current architecture from the exec file.
12451 Include arch-utils.h for gdbarch_info_init prototype.
12452 * Makefile.in (rs6000-nat.o): Update dependencies.
12454 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12456 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12457 list of exported variables.
12459 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12461 * gdbserver/configure.srv: New file.
12462 * gdbserver/configure.in: Use configure.srv instead
12463 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12465 * gdbserver/configure: Regenerated.
12466 * gdbserver/terminal.h: New file.
12467 * gdbserver/Makefile.in: Update for configure changes. Remove
12468 more unneeded include paths.
12470 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12472 From wiz at danbala:
12473 * config/sparc/tm-sp64.h: Fix grammar and typos.
12476 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12478 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12479 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12480 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12481 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12482 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12483 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12484 * s390-tdep.c: Ditto.
12485 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12486 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12487 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12488 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12489 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12490 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12491 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12492 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12493 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12494 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12497 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12499 * lin-thread.c: Delete file.
12500 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12501 to gdb_proc_service.h.
12502 * configure: Re-generate.
12504 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12505 * serial.c (serial_open): Delete check for "ocd".
12508 * Makefile.in (linux-thread.o): Delete target.
12509 * linux-thread.c: Delete file.
12511 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12512 renamed SH files to be consistent.
12514 * symtab.c (sort_search_symbols): Use xfree.
12516 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12518 * arm-linux-tdep.c (arm_linux_init_abi): Register
12519 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12520 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12521 definition with undef, since we don't want the sysvr4 definition.
12522 (SKIP_TRAMPOLINE_CODE): Likewise.
12524 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12526 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12528 * configure.in: (AC_CHECK_FUNCS) Added test for
12529 canonicalize_file_name Regenerated.
12530 * config.in, configure: Regenerated.
12531 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12532 defined use canonicalize_file_name.
12534 2002-02-23 Michael Chastain <mec@shout.net>
12536 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12538 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12540 * README: Remove references to cygnus.com.
12541 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12542 dot com'' form. Remove references to cygnus.com and sourceware.
12544 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12546 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12547 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12548 1003.1-2001 no longer allows "head -1".
12549 * gdb/Makefile.in (version.c): Likewise.
12550 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12551 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12552 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12554 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12556 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12557 * command.h (cmd_cfunc_eq): Declare.
12558 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12560 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12561 ``struct cmd_list_element *''.
12562 * cli/cli-cmds.c (is_complete_command): Update. Use
12564 * top.c (execute_command): Pass the command to
12565 is_complete_command.
12566 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12568 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12570 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12571 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12572 architecture defines.
12573 * s390-tdep.c (s390_gdbarch_init): Likewise.
12575 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12577 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12578 (arm_linux_push_arguments): Likewise.
12579 (arm_linux_init_abi): Register them. Also register linux-specific
12581 (find_minsym_and_objfile): Use strcmp, not STREQ.
12582 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12583 (arm_linux_call_dummy_words): Delete declaration.
12584 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12585 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12587 (LOWEST_PC): Delete.
12589 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12591 * maint.c (print_section_info): Do not prepend `0x' to filepos
12592 output, it will be handled by local_hex_string_custom.
12594 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12596 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12597 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12598 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12600 2002-02-22 Jim Blandy <jimb@redhat.com>
12602 Indicate that the bcache functions don't change the strings
12604 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12605 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12607 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12609 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12611 2002-02-21 Christopher Faylor <cgf@redhat.com>
12613 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12614 find the complete path to a loaded DLL.
12616 2002-02-21 Fred Fish <fnf@redhat.com>
12618 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12619 that marks the end of the range of a function, enter a line number
12620 entry that has a line number of zero and a PC offset that matches
12621 the end of the function. This starts a range of PC's for which no
12622 line number information is known.
12623 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12624 PC's for which no line number info is found (line number is zero)
12625 then we didn't find any valid line information.
12626 * symtab.h: Document use of zero line number entry.
12628 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12630 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12631 (have_ptrace_getvrregs): Define for run time checks.
12632 (gdb_vrregset_t): New type for Altivec register handling.
12633 (fetch_register, store_register): Fetch/store altivec register
12635 (fetch_altivec_register, store_altivec_register): New functions.
12636 (supply_vrregset, fill_vrregset): New functions.
12637 (fetch_altivec_registers, store_altivec_registers): New functions.
12638 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12641 2002-02-21 Jiri Smid <smid@suse.cz>
12643 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12645 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12647 * Makefile.in (armnbsd-nat.o): Update dependencies.
12648 * armnbsd-nat.c (supply_gregset): New function. Common code to
12649 supply the integer register set.
12650 (supply_fparegset): New function. Similar for FPA registers.
12651 (fetch_regs, fetch_fp_regs): Use them.
12652 (fetch_core_registers): Likewise.
12653 (fetch_elfcore_registers): New function.
12654 (arm_netbsd_elfcore_fns): New core-file type specification.
12655 (_initialize_arm_netbsd_nat): Register it.
12657 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12659 * armnbsd-nat.c: Include gdbcore.h.
12660 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12661 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12662 'void' to declaration, to shut up ARI.
12663 (fetch_core_registers): Make static. Rewrite using supply_register.
12664 (arm_netbsd_core_fns): New core-file type specification.
12665 (_initialize_arm_netbsd_nat): New function.
12667 2002-02-21 Christopher Faylor <cgf@redhat.com>
12669 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12672 2002-02-20 Christopher Faylor <cgf@redhat.com>
12674 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12677 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12679 * jv-exp.y (parse_number): Change type of implicit longs
12680 to builtin_type_uint64.
12682 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12684 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12685 to be an integer instead of a `union wait'.
12687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12689 * mips-linux-nat.c: Call the operating system GNU/Linux.
12690 * mips-linux-tdep.c: Likewise.
12691 * mips-tdep.c: Likewise.
12693 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12696 * jv-exp.y (parse_number): Handle 64-bit integers.
12698 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12700 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12701 AC_STDC_HEADERS to AC_HEADER_STDC.
12702 * gdbserver/configure: Regenerated.
12704 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12706 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12708 * sparc-tdep.c (get_longjmp_target): Likewise.
12710 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12712 * News: Add news about ARM and Multi-arch. Mention the new target
12715 2002-02-19 Jim Blandy <jimb@redhat.com>
12717 * stabsread.c (error_type_complaint): Improve error message.
12719 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12721 * gdbserver/README: Update documentation.
12722 * gdbserver/configure.in: Update configury to match documentation.
12723 * gdbserver/Makefile.in: Likewise.
12724 * gdbserver/configure: Regenerated.
12725 * gdbserver/aclocal.m4: New file, generated by aclocal.
12726 * gdbserver/config.in: New file, generated by autoheader.
12728 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12730 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12733 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12735 * arm-tdep.h (enum arm_float_model): New enum.
12736 (struct gdbarch_tdep): Add fp_model.
12737 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12738 up floating-point conversions until we know the floating-point model
12739 in use by the inferior. Don't complain about being unable to
12740 determine the ABI of the inferior when we don't have one.
12741 (arm_extract_return_value): Support different floating-point models.
12742 (arm_store_return_value): Likewise.
12743 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12745 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12747 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12749 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12750 of ``current_gdbarch''.
12752 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12754 * armnbsd-nat.c : ANSIfy all function declarations.
12755 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12756 (fetch_inferior_registers): Re-implement in terms of above.
12757 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12758 (store_inferior_registers): Re-implement in terms of above.
12760 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12762 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12764 * arm-linux-tdep.c: Likewise.
12765 * config/arm/tm-linux.h: Likewise.
12767 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12769 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12770 * config/arm/nbsd.mt (TM_FILE): Delete.
12771 * config/arm/tm-nbsd.h: Delete.
12773 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12775 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12776 Initialize CALL_DUMMY_LENGTH.
12778 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12780 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12782 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12783 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12784 defines one thing and that is incorrect for this port.
12785 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12787 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12789 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12791 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12793 * win32-nat.c (display_selector): New function. Displays information
12794 about the information returned by GetThreadSelectorEntry API function.
12795 (display_selectors): New function. Displays the infomation of
12796 the selector given as argument, or of CS, DS ans FS selectors
12797 if no argument is given.
12798 ( _initialize_inftarg): Add "w32" as info prefix command.
12799 Add "info w32 selector" as command calling display_selectors.
12801 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12803 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12804 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12807 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12809 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12811 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12813 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12814 (arm_fix_call_dummy): Call it.
12815 (arm_call_dummy_breakpoint_offset): Delete.
12816 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12817 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12819 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12821 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12822 Default to func_frame_chain_valid.
12823 * gdbarch.h, gdbarch.c: Re-generate.
12824 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12826 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12828 * ppc-linux-nat.c: Update copyright.
12829 (fetch_register, store_register): Add tid parameter, don't compute
12831 (fetch_ppc_registers, store_ppc_registers): Add tid
12832 parameter. Pass it along to callees.
12833 (fetch_inferior_registers, store_inferior_registers): Compute tid
12834 here, and pass it to calleed functions.
12835 (fill_gregset, supply_fpregset): Clean up formatting.
12837 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12839 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12840 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12842 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12844 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12845 * gdbarch.c gdbarch.h: Regenerate.
12846 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12848 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12849 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12850 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12852 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12853 * arm-tdep.c (arm_get_longjmp_target): New function.
12854 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12855 this to a positive value register arm_get_longjmp_target as the
12857 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12858 (arm_linux_init_abi): Set up longjmp description in tdep.
12859 * armnbsd-nat.c (get_longjmp_target): Delete.
12860 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12861 description in tdep.
12862 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12863 (get_longjmp_target): Delete declaration.
12864 (GET_LONGJMP_TARGET): Delete.
12865 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12866 (GET_LONGJMP_TARGET): Delete.
12868 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12870 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12871 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12872 of ``current_gdbarch''.
12874 2002-02-17 Tom Tromey <tromey@redhat.com>
12876 * cli/cli-cmds.c (compare_strings): New function.
12877 (complete_command): Only print each unique item once.
12878 * completer.h (complete_line): Declare.
12879 * completer.c (complete_line): New function.
12880 (line_completion_function): Use it.
12882 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12884 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12885 * gdbarch.h, gdbarch.c: Re-generate.
12887 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12889 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12891 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12893 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12894 * valops.c (value_arg_coerce): Don't take the address of a reference
12895 to convert an argument to a reference.
12897 2002-02-15 Christopher Faylor <cgf@redhat.com>
12899 * win32-nat.c (get_image_name): New function.
12900 (handle_load_dll): Use get_image_name function.
12901 (get_child_debug_event): Avoid registering debug events until possibly
12902 execed process is started.
12903 (child_create_inferior): Allow invocation via shell so that command
12904 line redirection, etc. works ok.
12905 (_initialize_inftarg): Add new command: "set shell" to control whether
12906 a shell is used to start a process.
12908 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12910 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12911 instead of find_register_by_number.
12912 (cannot_store_register): Likewise.
12914 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12916 * dwarf2read.c: Replace fprintf (stderr, ...) by
12917 fprintf_unfiltered (gdb_stderr, ...).
12919 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12921 * gdbserver/gdbserver.1: Document --attach.
12923 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12925 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12927 * arm-tdep.c (arm_default_arm_le_breakpoint)
12928 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12929 (arm_default_thumb_be_breakpoint): New. Initialize them from
12930 traditional breakpoint defines.
12931 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12932 (arm_gdbarch_init): Initialize new breakpoint variables.
12933 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12934 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12935 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12936 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12938 (arm_netbsd_init_abi_common): ... here; new function.
12939 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12940 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12941 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12942 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12944 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12946 * arm-tdep.h (enum arm_abi): New enum.
12947 (struct gdbarch_tdep): New structure.
12948 (LOWEST_PC): Provide a default.
12949 (arm_gdbarch_register_os_abi): Declare new function.
12950 * arm-tdep.c (arm_abi_names): New array.
12951 (process_note_abi_tag_sections): New function.
12952 (get_elfosabi): New function.
12953 (arm_gdbarch_register_os_abi): New function.
12954 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12955 support for that ABI has been built in, then call the appropriate
12956 configuration routine. Use gdbarch_num_regs() to get the number
12958 (arm_dump_tdep): New function.
12959 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12960 place-holder functions.
12961 (_initialize_arm_tdep): Register them.
12962 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12964 * armnbsd-tdep.c: New file.
12965 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12966 * config/arm/nbsd.mt (TDEPFILES): Add it.
12967 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12969 * armnbsd-nat.c: Include regcache.h.
12970 * Makefile.in (armnbsd-nat.o): Update dependency list.
12972 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12974 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12976 * gdbserver/Makefile.in: Fix typos in target rules.
12978 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12980 Fix part of PR gdb/267.
12981 * linespec.c (find_methods): Handle constructors specially for now.
12983 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12985 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12987 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12988 standard_coerce_float_to_double().
12990 2002-02-14 Christopher Faylor <cgf@redhat.com>
12992 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12995 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12997 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12998 find_variant_by_name, because it confuses the multiarch
12999 framework. Return NULL if there isn't an architecture with the
13000 user supplied name, instead of forcing a different one without
13001 recording the change with the multiarch machinery.
13002 (find_variant_by_name): Delete.
13004 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13006 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13007 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13009 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13011 * stack.c (print_frame_info_base): When calling
13012 print_frame_info_listing_hook, set current_source_symtab.
13014 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13016 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13017 and remove unused $(INCLUDE_DIR).
13018 Add regcache.c to OBS.
13019 Add generated register protocol files to clean target.
13020 Update dependencies for new objects, obsolete old target code.
13022 * gdbserver/linux-low.c: Remove all platform-specific code to
13023 new files. Remove various dead code. Update to use regcache
13025 * gdbserver/remote-utils.c (fromhex): Add return statement
13027 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13029 (input_interrupt): Add integer parameter to match prototype
13030 of a signal handler.
13031 (outreg): Use register_data ().
13032 (prepare_resume_reply): Use gdbserver_expedite_regs.
13033 * gdbserver/server.c (main): Dynamically allocate own_buf because
13034 PBUFSIZ is no longer constant. Use registers_to_string () and
13035 registers_from_string ().
13036 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13037 for error (), fatal (), and warning (). Update definition of
13038 PBUFSIZ to use regcache functionality. Add include guard.
13039 * gdbserver/utils.c (fatal): Add missing ``const''.
13040 (warning): New function.
13042 * regformats/regdat.sh: Include "regcache.h" in generated files.
13043 Provide init_registers () function.
13044 * regformats/regdef.h: Add prototype for set_register_cache ().
13047 * gdbserver/linux-arm-low.c: New file.
13048 * gdbserver/linux-i386-low.c: New file.
13049 * gdbserver/linux-ia64-low.c: New file.
13050 * gdbserver/linux-m68k-low.c: New file.
13051 * gdbserver/linux-mips-low.c: New file.
13052 * gdbserver/linux-ppc-low.c: New file.
13053 * gdbserver/linux-sh-low.c: New file.
13055 * gdbserver/regcache.c: New file.
13056 * gdbserver/regcache.h: New file.
13058 * gdbserver/low-linux.c: Removed obsolete file.
13060 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13062 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13063 * config/i386/linux.mt: Likewise.
13064 * config/ia64/linux.mt: Likewise.
13065 * config/m68k/linux.mh: Likewise.
13066 * config/powerpc/linux.mh: Likewise.
13067 * config/mips/linux.mt: Likewise.
13069 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13071 * config/i386/i386lynx.mh: Mark gdbserver variables
13072 as (currently) obsolete for this target.
13073 * config/i386/nbsd.mt: Likewise.
13074 * config/i386/nbsdelf.mt: Likewise.
13075 * config/m32r/m32r.mt: Likewise.
13076 * config/m68k/m68klynx.mh: Likewise.
13077 * config/m68k/nbsd.mt: Likewise.
13078 * config/m68k/sun3os4.mh: Likewise.
13079 * config/mips/vr5000.mt: Likewise.
13080 * config/ns32k/nbsd.mt: Likewise.
13081 * config/pa/hppabsd.mh: Likewise.
13082 * config/pa/hppaosf.mh: Likewise.
13083 * config/powerpc/nbsd.mt: Likewise.
13084 * config/rs6000/rs6000lynx.mh: Likewise.
13085 * config/s390/s390.mt: Likewise.
13086 * config/s390/s390x.mt: Likewise.
13087 * config/sparc/sparclynx.mh: Likewise.
13088 * config/sparc/sun4os4.mh: Likewise.
13089 * config/i386/x86-64linux.mt: Likewise.
13090 * config/sparc/linux.mh: Likewise.
13092 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13094 * configure.tgt: Configure gdbserver only for known working
13095 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13096 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13097 SUBDIRS if it is configured. Update comment for ${nativefile}.
13098 * configure: Regenerated.
13100 2002-02-13 Michael Snyder <msnyder@redhat.com>
13102 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13104 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13105 (default_gcore_mach): Just return 0, work around a problem in bfd.
13106 (default_gcore_target): OK to return NULL if exec_bfd is null.
13107 (make_mem_sec): Use a cast, avoid a warning.
13109 * procfs.c (find_memory_regions_callback): Use a cast instead of
13110 calling host_pointer_to_address (which complains if
13111 sizeof (host pointer) != sizeof (target pointer)).
13112 (procfs_make_note_section): Avoid overflow in psargs string.
13114 * procfs.c (procfs_make_note_section): Make the default
13115 implementation return an error.
13117 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13119 * procfs.c (procfs_make_note_section): Provide a default definition
13120 (for alpha-dec-osf4.0f). Fix typos.
13122 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13124 * linux-proc.c: Add include of regcache.h.
13125 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13127 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13129 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13130 * memattr.c (create_mem_region): Disallow useless empty region.
13131 Regions are half-open intervals, so allow [A..B) [B..C) as
13134 2002-02-13 Michael Chastain <mec@shout.net>
13136 * defs.h: Kill CONST_PTR.
13137 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13138 * c-lang.c (c_builtin_types): Likewise.
13139 * ch-lang.c (ch_builtin_types): Likewise.
13140 * f-lang.c (f_builtin_types): Likewise.
13141 * language.c (unknown_builtin_types): Likewise.
13142 * m2-lang.c (m2_builtin_types): Likewise.
13143 * p-lang.c (pascal_builtin_types): Likewise.
13144 * scm-lang.c (c_builtin_types): Likewise.
13146 2002-02-13 Keith Seitz <keiths@redhat.com>
13148 * arm-tdep.h (arm_get_next_pc): Add declaration.
13150 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13152 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13153 with other related struct-returning functions.
13154 (arm_extract_struct_value_address): New function.
13155 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13156 initialize float_format, double_format and long_double_format as
13157 appropriate to the endianness of the target.
13158 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13159 (arm_use_struct_convention): Delete declaration.
13160 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13162 2002-02-13 Keith Seitz <keiths@redhat.com>
13164 * defs.h (core_addr_to_string_nz): New function.
13166 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13168 Apply missing bits of 2002-01-15 patch.
13169 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13170 (fill_fpregset): Use i387_fill_fsave.
13172 2002-02-12 Keith Seitz <keiths@redhat.com>
13174 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13175 (core_addr_to_string_nz): New function.
13177 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13179 * arm-linux-nat.c: Really include arm-tdep.h.
13180 * config/arm/tm-linux.h (struct type, struct value): Declare.
13182 2002-02-11 Michael Snyder <msnyder@redhat.com>
13184 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13185 (gcore section): Ifdef for Solaris and Unixware only.
13186 (procfs_do_thread_registers): Unixware needs one lwpstatus
13187 per thread (not one prstatus or pstatus).
13188 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13189 not over all gdb threads. For unixware, call elfcore_write_pstatus
13190 once before iterating over threads.
13192 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13194 * arm-tdep.h: New file.
13195 * arm-tdep.c: Include arm-tdep.h.
13196 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13197 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13198 (arm_print_float_info, arm_register_type, convert_to_extended)
13199 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13200 (arm_extract_return_value, arm_register_name): Make static.
13201 (arm_software_single_step): Similarly. Fix types in declaration.
13202 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13203 (arm_store_return_value, arm_store_struct_return): New functions.
13204 (arm_gdbarch_init): Register the above functions. Also register
13205 call_dummy_start_offset, sizeof_call_dummy_words,
13206 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13207 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13208 max_register_virtual_size, register_size. Set up
13209 prologue_cache.saved_regs here, rather than ...
13210 (_initialize_arm_tdep): ... here.
13211 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13213 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13214 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13215 (arm_print_float_info, arm_register_type, convert_to_extended)
13216 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13217 (arm_extract_return_value, arm_register_name): Delete declarations.
13218 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13219 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13220 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13221 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13222 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13223 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13224 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13225 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13226 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13227 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13228 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13229 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13231 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13232 * remote-rdi.c remote-rdp.c: Likewise.
13233 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13234 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13235 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13238 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13239 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13240 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13241 from non-ARM_ prefixed definitions.
13242 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13244 * remote-rdi.c remote-rdp.c: Likewise.
13245 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13247 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13249 * arm-tdep.c (arm_frameless_function_invocation)
13250 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13251 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13252 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13253 (arm_pop_frame, arm_get_next_pc): Make static.
13254 (arm_gdbarch_init): Register above in gdbarch structure.
13255 (arm_read_fp): Renamed from arm_target_read_fp.
13256 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13257 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13258 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13259 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13260 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13261 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13262 (arm_pc_is_thumb_dummy): Delete declarations.
13263 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13264 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13265 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13266 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13268 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13270 * symtab.c (compare_search_syms): New function.
13271 (sort_search_symbols): New function.
13272 (search_symbols): Sort symbols after searching rather than
13275 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13277 * NEWS: Linux -> GNU/Linux.
13279 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13281 * gdbarch.sh: For for level one methods, disallow a definition
13282 when partially multi-arched. Add comments explaining rationale.
13283 * gdbarch.h: Re-generate.
13285 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13287 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13288 multi-arch partial.
13290 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13292 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13293 field. Use diff -u.
13294 * gdbarch.c: Re-generate.
13296 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13298 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13299 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13302 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13304 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13305 multi-arch partial.
13306 (PUSH_ARGUMENTS): Switch to using predefault.
13307 * gdbarch.c: Regenerate.
13309 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13311 * valops.c (PUSH_ARGUMENTS): Delete definition.
13312 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13313 partial. Default to default_push_arguments.
13314 * gdbarch.h, gdbarch.c: Regenerate.
13316 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13318 * defs.h (throw_exception): Rename return_to_top_level. Update
13320 * utils.c (error_stream, internal_verror, quit): Ditto.
13321 * top.c (throw_exception, catcher): Ditto.
13322 * sparclet-rom.c (sparclet_load): Ditto.
13323 * remote.c (interrupt_query, minitelnet): Ditto.
13324 * remote-sds.c (interrupt_query): Ditto.
13325 * remote-mips.c (mips_error, mips_kill): Ditto.
13326 * ocd.c (interrupt_query): Ditto.
13327 * monitor.c (monitor_interrupt_query): Ditto.
13328 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13329 * target.h: Update comment.
13331 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13333 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13335 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13336 default_double_format.
13337 * gdbarch.h, gdbarch.c: Re-generate.
13338 * findvar.c (floatformat_unknown): Delete variable definition.
13339 * doublest.h (floatformat_unknown): Delete variable declaration.
13341 2002-02-09 Jim Blandy <jimb@redhat.com>
13343 * stabsread.c (read_type): Add code to parse Sun's syntax for
13344 prototyped function types.
13346 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13348 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13349 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13351 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13353 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13354 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13355 now _initialize_xcoffsolib gets called again and overrides the
13356 commands from solib.c in a native configuration.
13358 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13360 * doublest.c (store_typed_floating): Don't try to return a value.
13363 2002-02-08 Jim Blandy <jimb@redhat.com>
13365 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13366 is prototyped and has no arguments, print its argument list as
13369 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13371 * MAINTAINERS (write-after-approval): Add myself.
13372 (paper-trail): I've escaped!
13374 2002-02-08 Christopher Faylor <cgf@redhat.com>
13376 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13378 (_initialize_check_for_gdb_ini): Ditto.
13380 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13382 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13383 xaprintf -> xasprintf.
13385 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13387 * win32-nat.c: Remove use of printf and sprintf functions.
13389 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13391 * arm-tdep.c (arm_frame_chain_valid): Make static.
13392 (arm_push_arguments): Likewise.
13393 (arm_gdbarch_init): New function.
13394 (_initialize_arm_tdep): Call it.
13395 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13396 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13397 (FRAME_CHAIN_VALID): Delete.
13398 (arm_frame_chain_valid): Delete declaration.
13399 (PUSH_ARGUMENTS): Delete.
13400 (arm_push_arguments): Delete declaration.
13401 (CALL_DUMMY_P): Delete.
13403 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13404 Corinna Vinschen <vinschen@redhat.com>
13406 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13407 on builtin float types.
13409 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13411 * utils.c: Include <curses.h> before "bfd.h".
13412 * tui/tui-hooks.c: Likewise.
13413 * tui/tui.c: Likewise.
13414 * tui/tuiCommand.c: Likewise.
13415 * tui/tuiData.c: Likewise.
13416 * tui/tuiDataWin.c: Likewise.
13417 * tui/tuiDisassem.c: Likewise.
13418 * tui/tuiGeneralWin.c: Likewise.
13419 * tui/tuiIO.c: Likewise.
13420 * tui/tuiLayout.c: Likewise.
13421 * tui/tuiRegs.c: Likewise.
13422 * tui/tuiSource.c: Likewise.
13423 * tui/tuiSourceWin.c: Likewise.
13424 * tui/tuiStack.c: Likewise.
13425 * tui/tuiWin.c: Likewise.
13427 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13429 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13430 to include space for pseudoregs as well. Update loops accordingly.
13431 (sh_fp_frame_init_saved_regs): Ditto.
13432 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13434 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13436 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13437 Add Richard Earnshaw to Arm maintainers.
13439 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13441 * defs.h (warning_begin): Delete declaration.
13443 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13446 2002-02-07 Michael Snyder <msnyder@redhat.com>
13448 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13449 Logic bug, remove misplaced else.
13451 2002-02-07 Klee Dienes <klee@apple.com>
13453 * fork-inferior.c (fork_inferior): Add '!' to the list of
13454 characters that need to be quoted when building a string for the
13455 shell. Quote '!' specifically with a backslash, since CSH chokes
13456 when trying to evaluate "str!str".
13458 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13460 * rdi-share/host.h: Only provide a typedef for bool if it is not
13463 2002-02-04 Michael Snyder <msnyder@redhat.com>
13465 * breakpoint.h (enum bptype): Add new overlay event bp type.
13466 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13468 * breakpoint.c (create_internal_breakpoint): New function.
13469 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13470 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13471 (create_thread_event_breakpoint): Ditto.
13472 (create_solib_event_breakpoint): Ditto.
13473 (create_overlay_event_breakpoint): New function.
13474 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13475 (update_breakpoints_after_exec): Delete and re-initialize
13476 overlay event breakpoints after an exec. Add FIXME comment
13477 about longjmp breakpoint.
13478 (print_it_typical): Ignore overlay event breakpoints.
13479 (print_one_breakpoint): Ditto.
13481 (bpstat_what): Do not stop for overlay event breakpoints.
13482 (delete_breakpoint): Don't delete overlay event breakpoints.
13483 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13484 (breakpoint_re_set): Re-create overlay event breakpoint.
13486 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13487 (overlay_manual_command): Disable overlay breakpoints.
13488 (overlay_off_command): Disable overlay breakpoints.
13490 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13492 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13493 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13494 to here from config/tm-arm.h.
13495 (coff_sym_is_thumb): Make static.
13496 (arm_elf_make_msymbol_special): New function.
13497 (arm_coff_make_msymbol_special): New function.
13498 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13499 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13500 (coff_sym_is_thumb): Delete declaration.
13501 (arm_elf_make_msymbol_special): Declare.
13502 (arm_coff_make_msymbol_special): Declare.
13503 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13504 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13506 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13508 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13510 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13512 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13513 * gdbarch.c gdbarch.h: Regenerate.
13514 * arch-utils.c (default_print_float_info): New function.
13515 * arch-utils.h (default_print_float_info): Prototype it.
13516 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13517 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13518 (PRINT_FLOAT_INFO): Document it.
13520 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13521 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13522 (PRINT_FLOAT_INFO): Define.
13524 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13526 * win32-nat.c (_initialize_check_for_gdb_ini):
13527 Add typecast to sprintf argument to suppress a warning.
13529 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13531 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13532 to allow easier handling of pass state.
13533 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13534 that gives exception name and address.
13535 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13536 and set last_sig value to ourstatus->value.sig. Some missing
13538 (child_continue): Correctly report continue_status.
13539 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13540 TARGET_SIGNAL_0 (new default value).
13541 (child_resume): consider sig argument passed to decide if
13542 the exception should be passed to debuggee or not.
13544 2002-02-05 Michael Snyder <msnyder@redhat.com>
13546 * regcache.c (fetch_register): Call target_fetch_register
13547 only if we don't call FETCH_PSEUDO_REGISTER.
13548 (store_register): Call target_store_register only if we
13549 don't call STORE_PSEUDO_REGISTER.
13551 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13553 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13554 ELF_MAKE_MSYMBOL_SPECIAL.
13555 * gdbarch.c, gdbarch.h: Regenerate.
13556 * arch-utils.c (default_make_msymbol_special): New function.
13557 * arch-utils.h (default_make_msymbol_special): Export.
13558 * elfread.c (elf_symtab_read): Compile use of
13559 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13561 * coffread.c (coff_symtab_read): Ditto, for
13562 COFF_MAKE_MSYMBOL_SPECIAL.
13564 2002-02-05 Jim Blandy <jimb@redhat.com>
13566 * solib-svr4.c (svr4_truncate_ptr): New function.
13567 (svr4_relocate_section_addresses): Do the address arithmetic with
13568 the appropriate truncation for target addresses, even when
13569 CORE_ADDR is larger than a target address.
13571 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13573 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13576 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13578 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13581 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13583 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13585 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13587 * gdbserver/linux-low.c: Remove unused include files.
13589 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13591 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13592 (read_inferior_memory): Use it.
13593 (write_inferior_memory): Likewise.
13595 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13597 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13598 grubbing through sys_errlist.
13600 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13602 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13604 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13605 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13607 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13609 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13610 (do_sfunc, set_cmd_sfunc): New functions.
13612 * command.h (struct cmd_list_element): Add field func.
13613 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13614 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13615 * cli/cli-decode.h: Ditto.
13617 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13618 (help_all, help_cmd_list): Ditto.
13619 (find_cmd, complete_on_cmdlist): Ditto.
13620 * top.c (execute_command): Ditto.
13622 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13625 * infcmd.c (notice_args_read): Fix function signature.
13627 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13628 * cli/cli-decode.c (add_set_cmd): Ditto.
13629 * utils.c (initialize_utils): Ditto.
13630 * maint.c (_initialize_maint_cmds): Ditto.
13631 * infrun.c (_initialize_infrun): Ditto.
13632 * demangle.c (_initialize_demangler): Ditto.
13633 * remote.c (add_packet_config_cmd): Ditto.
13634 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13635 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13636 * proc-api.c (_initialize_proc_api): Ditto.
13637 * kod.c (_initialize_kod): Ditto.
13638 * valprint.c (_initialize_valprint): Ditto.
13639 * top.c (init_main): Ditto.
13640 * infcmd.c (_initialize_infcmd): Ditto.
13641 * corefile.c (_initialize_core): Ditto.
13642 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13643 * arch-utils.c (initialize_current_architecture): Ditto.
13644 (_initialize_gdbarch_utils): Ditto.
13645 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13647 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13648 * wince.c (_initialize_inftarg): Ditto.
13649 * symfile.c (_initialize_symfile): Ditto.
13650 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13651 * language.c (_initialize_language): Ditto.
13652 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13654 2002-02-04 Michael Snyder <msnyder@redhat.com>
13656 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13658 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13660 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13661 Add rules for building the register data files.
13663 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13665 * regformats/regdat.sh: Add braces to the definition of
13666 expedite_regs_${arch}.
13668 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13670 * regformats/regdef.h (struct reg): Add comment describing the
13671 requirements for offset and size fields.
13673 2002-02-04 Andreas Schwab <schwab@suse.de>
13675 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13676 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13678 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13680 * gdbarch.sh (copyright): Update years in generated header.
13681 (SMASH_TEXT_ADDRESS): Add rule.
13682 * gdbarch.h, gdbarch.c: Re-generate.
13683 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13684 * dbxread.c: Likewise.
13685 * dwarfread.c: Likewise.
13686 * elfread.c: Likewise.
13687 * somread.c: Likewise.
13689 * arm-tdep.c (arm_smash_text_address): New function.
13690 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13692 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13694 Add support for hardware watchpoints on win32 native.
13695 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13696 CONTEXT_DEBUG_REGISTERS.
13697 (dr variable): New variable. Static array containing a local copy
13698 of debug registers.
13699 (debug_registers_changed): New variable. Reflects when debug registers
13700 are changed and need to be written to inferior.
13701 (debug_registers_used): New variable. Reflects when any debug register
13702 was set, used when new threads are created.
13703 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13705 (thread_rec): Set dr array if id is the thread of current_event .
13706 (child_continue, child_resume): Change the debug registers for all
13707 threads if debug_registers_changed.
13708 (child_add_thread): Change the debug registers if debug_registers_used.
13709 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13710 Link nm.h to new nm-cygwin.h file.
13711 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13712 of hardware registers.
13714 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13716 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13717 Restore behavour broken by 2002-01-20 Andrew Cagney
13718 <ac131313@redhat.com> IEEE_FLOAT removal.
13720 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13722 * c-valprint.c (c_val_print): Pass a proper valaddr to
13723 cp_print_class_method.
13724 * valops.c (search_struct_method): If there is only one method
13725 and args is NULL, return that method.
13727 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13729 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13730 accessing tag_name directly.
13732 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13734 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13735 of accessing tag_name directly.
13737 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13740 * gdbtypes.c (replace_type): New function.
13741 * gdbtypes.h (replace_type): Add prototype.
13742 * stabsread.c (read_type): Use replace_type.
13744 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13746 * Makefile.in (memattr.o): Add missing dependencies rule.
13748 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13750 * breakpoint.c (break_at_finish_command): Really export.
13751 (break_at_finish_at_depth_command): Ditto.
13752 (tbreak_at_finish_command): Ditto.
13753 * hppa-tdep.c: Include completer.h.
13754 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13755 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13757 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13759 * utils.c (do_write): New function.
13760 (error_stream): Rewrite combining the code from error_begin and
13762 (verror): Rewrite using error_stream.
13763 (error_begin): Delete function.
13765 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13767 * utils.c (error_begin): Make static.
13768 * defs.h (error_begin): Delete declaration.
13770 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13771 (decode_line_1): Use cplusplus_error instead of error_begin,
13772 cplusplus_hint and return_to_top_level.
13773 * coffread.c (coff_symfile_read): Use error instead of error_begin
13774 and return_to_top_level.
13775 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13777 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13779 * language.h (type_error, range_error): Make string parameter
13781 * language.c (warning_pre_print): Delete extern declaration.
13782 * dwarfread.c (warning_pre_print): Ditto.
13783 * language.c (type_error, range_error): Rewrite to use verror and
13784 vwarning instead of warning_begin.
13786 2002-02-01 Michael Snyder <msnyder@redhat.com>
13788 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13789 (set_ignore_count): Move misplaced comment back where it belongs.
13791 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13793 * command.h (NO_FUNCTION): Delete macro.
13794 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13795 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13796 * tracepoint.c (_initialize_tracepoint): Ditto.
13797 * cli/cli-decode.c (add_set_cmd): Ditto.
13798 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13800 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13802 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13803 Update ``this'' pointer when calling virtual functions.
13805 2002-02-01 Michael Snyder <msnyder@redhat.com>
13807 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13808 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13810 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13812 * regformats/reg-arm.dat: New file.
13813 * regformats/reg-i386.dat: New file.
13814 * regformats/reg-ia64.dat: New file.
13815 * regformats/reg-m68k.dat: New file.
13816 * regformats/reg-mips.dat: New file.
13817 * regformats/reg-ppc.dat: New file.
13818 * regformats/reg-sh.dat: New file.
13819 * regformats/regdef.h: New file.
13820 * regformats/regdat.sh: New file.
13822 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13824 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13825 (arm_frame_args_address, arm_frame_locals_address): New functions.
13826 (arm_frame_num_args): New function.
13827 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13828 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13829 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13831 2002-01-31 Michael Snyder <msnyder@redhat.com>
13833 * breakpoint.c (break_at_finish_command): Export.
13834 (break_at_finish_at_depth_command): Export.
13835 (tbreak_at_finish_command): Export.
13836 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13837 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13838 "txbreak" commands, which are HPPA specific.
13840 * printcmd.c (disassemble_command): Remove an ancient
13841 artifact of an old merge.
13843 * symfile.h (enum overlay_debugging_state):
13844 Define enum constant values for overlay mode.
13845 * symfile.c (overlay_debugging): Use enums instead of literals.
13846 (overlay_is_mapped, overlay_auto_command,
13847 overlay_manual_command): Ditto.
13849 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13850 breakpoint_here_p, breakpoint_inserted_here_p,
13851 breakpoint_thread_match, bpstat_stop_status,
13852 describe_other_breakpoints, check_duplicates, clear_command):
13853 Coding standard fixes.
13855 * target.c (target_xfer_memory): Add spaces, coding standard.
13856 (do_xfer_memory): Add missing line to trust-readonly
13857 code: check bfd SEC_READONLY flag for section.
13859 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13861 * PROBLEMS: Fix typo, 5.1->5.1.1.
13863 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13865 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13866 data symbols, since we search based on textlow and texthigh.
13867 (find_pc_sect_symtab): Likewise.
13869 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13871 * defs.h (vwarning): Declare.
13872 * utils.c (vwarning): New function.
13873 (warning): Call vwarning.
13874 (warning_begin): Delete function.
13876 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13877 the warning message.
13878 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13881 2002-01-30 Michael Snyder <msnyder@redhat.com>
13883 * NEWS: Mention "set trust-readonly-sections" command.
13884 Mention generate-core-file command.
13886 2002-01-15 Michael Snyder <msnyder@redhat.com>
13888 * target.c: New command, "set trust-readonly-sections on".
13889 (do_xfer_memory): Honor the suggestion to trust readonly sections
13890 by reading them from the object file instead of from the target.
13891 (initialize_targets): Register command "set trust-readonly-sections".
13893 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13895 * parse.c (target_map_name_to_register): Simplify, search regs and
13896 pseudo-regs using a single loop.
13898 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13900 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13902 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13904 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13905 * config/i386/i386v42mp.mh: Add i387-nat.o .
13906 * i386v4-nat.c: Include i387-nat.h.
13907 (supply_fpregset): Use i387_supply_fsave.
13908 (fill_fpregset): Use i387_fill_fsave.
13910 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13912 * arm-tdep.c (arm_call_dummy_words): Define.
13913 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13914 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13915 (CALL_DUMMY_WORDS): Define.
13916 (arm_call_dummy_words): Declare.
13917 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13918 (arm_linux_call_dummy_words): Declare.
13920 2002-01-30 Andreas Schwab <schwab@suse.de>
13922 * m68klinux-nat.c: Fix last change to use regcache_collect
13923 instead of referencing registers[] directly.
13925 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13927 * parse.c (target_map_name_to_register): Delete code wrapped in
13928 #ifdef REGISTER_NAME_ALIAS_HOOK.
13930 2002-01-28 Michael Snyder <msnyder@redhat.com>
13932 * regcache.c (legacy_read_register_gen): Need to be able to
13933 read pseudo-register as well as real register.
13934 (legacy_write_register_gen): Ditto.
13936 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13938 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13939 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13940 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13941 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13942 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13943 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13944 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13945 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13946 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13947 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13948 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13949 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13950 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13951 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13952 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13953 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13954 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13955 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13956 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13957 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13959 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13961 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13962 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13963 (initialize_current_architecture): Update target_byte_order using
13964 information from BFD.
13965 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13966 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13968 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13970 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13971 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13973 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13974 #ifdef INVALID_FLOAT.
13975 * infcmd.c (do_registers_info): Ditto.
13976 * values.c (unpack_double): Ditto. Add comment.
13978 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13979 already commented out.
13981 2002-01-26 Andreas Schwab <schwab@suse.de>
13983 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13984 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13985 registers and add support for PTRACE_GETREGS.
13987 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13989 GDB 5.1.1 released from 5.1 branch.
13990 * NEWS: Add 5.1.1 news.
13991 * README: Sync with 5.1 branch.
13993 2002-01-23 Fred Fish <fnf@redhat.com>
13995 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13996 stabstring on initial malloc. Reallocing will copy it for us,
13999 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14001 * Makefile.in (hpread_h): Delete.
14002 (HFILES_NO_SRCDIR): Remove hpread.h.
14003 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14004 (hpread.o): Update dependencies.
14005 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14007 * hp-psymtab-read.c: Remove file.
14008 * hp-symtab-read.c: Remove file.
14009 * hpread.h: Remove file.
14011 * hpread.c: Merge all contents of hp-psymtab-read.c,
14012 hp-symtab-read.c and hpread.h into this file, as it was prior to
14015 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14016 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14017 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14018 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14020 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14022 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14023 fill_gregset): Call gdbarch_tdep() just once, assign result to
14024 variable and use that, instead of calling the function several
14027 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14029 * configure.host: Accept sparcv9 as alias for sparc64.
14030 * configure.tgt: Likewise.
14032 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14034 * solib-aix5.c (build_so_list_from_mapfile)
14035 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14036 arguments is not reversed.
14037 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14038 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14040 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14042 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14043 modified version of obsolete sh_fetch_pseudo_register.
14044 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14045 (sh4_register_read): New function.
14046 (sh_pseudo_register_write): New function. Renamed and modified
14047 version of obsolete sh_store_pseudo_register.
14048 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14049 (sh4_register_write): New function.
14050 (sh_gdbarch_init): Remove setting of gdbarch function
14051 fetch_pseudo_register and store_pseudo_register. Remove setting of
14052 register_convert_to_raw, register_convert_to_virtual,
14053 register_convertible.
14054 (sh_sh4_register_convertible): Delete. No longer needed. All is
14055 taken care by architecture specific functions
14056 register_read/register_write.
14057 (sh_sh4_register_convert_to_virtual): Make static.
14058 (sh_sh4_register_convert_to_raw): Ditto.
14060 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14062 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14063 (floatformat_is_nan, floatformat_mantissa): Ditto.
14065 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14066 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14067 builtin_type_ieee_double_little,
14068 builtin_type_ieee_double_littlebyte_bigword,
14069 builtin_type_m68881_ext, builtin_type_i960_ext,
14070 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14071 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14072 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14073 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14075 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14077 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14078 parameter. Set frameless flag if it exists and depended of
14079 whether the scanned function is frameless or not.
14080 (xstormy16_skip_prologue): If function is frameless, return
14081 result of xstormy16_scan_prologue().
14082 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14085 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14087 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14088 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14089 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14090 sh_sh4_register_byte, sh_sh4_register_raw_size,
14091 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14092 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14093 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14094 sh_store_pseudo_register, sh_do_pseudo_register): Call
14095 gdbarch_tdep() just once, assign result to variable and use that,
14096 instead of calling the function several times.
14098 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14100 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14101 macros instead of LAST_FPU_CTRL_REGNUM.
14102 (store_register): Likewise.
14104 2002-01-21 Jim Blandy <jimb@redhat.com>
14106 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14107 is up-to-date before running the program, not just when a program
14110 2002-01-21 Fred Fish <fnf@redhat.com>
14112 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14113 when we have found all instructions we are looking for.
14115 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14117 * arm-tdep.c (arm_register_name): New function.
14118 (arm_registers_names): Make static.
14119 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14120 (arm_register_name): Declare.
14121 (REGISTER_NAME): Use it.
14123 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14124 Kevin Buettner <kevinb@redhat.com>
14126 Convert arm targets to new FRAME interface.
14127 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14128 (arm_frame_find_save_regs): Delete.
14129 (arm_frame_init_saved_regs): New.
14130 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14131 Allocate extra_info as required. Convert all uses of fsr.regs
14132 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14134 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14135 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14136 (check_prologue_cache, save_prologue_cache): Likewise.
14137 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14138 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14139 (FRAME_FIND_SAVED_REGS): Delete.
14140 (arm_frame_find_saved_regs): Delete prototype.
14141 (arm_frame_init_saved_regs): New prototype.
14142 (FRAME_INIT_SAVED_REGS): Define.
14144 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14146 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14148 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14150 From Jeff Law <law@redhat.com>:
14151 * infttrace.c: Include <sys/pstat.h>.
14152 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14153 exec file if the ttrace equivalent fails.
14155 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14157 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14158 (closeLogFile): Ditto.
14160 2002-01-20 Michael Chastain <mec@shout.net>
14162 * top.c (print_gdb_version): Bump copyright year to 2002.
14164 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14166 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14167 Zannoni and Eli Zaretskii.
14169 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14171 * buildsym.c: Update copyright years.
14172 * c-typeprint.c: Likewise.
14173 * dwarf2read.c: Likewise.
14174 * f-typeprint.c: Likewise.
14175 * gdbtypes.c: Likewise.
14176 * gdbtypes.h: Likewise.
14177 * hp-symtab-read.c: Likewise.
14178 * hpread.c: Likewise.
14179 * mdebugread.c: Likewise.
14180 * p-typeprint.c: Likewise.
14182 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14184 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14185 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14186 byte-order selectable.
14187 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14188 * arch-utils.c: Ditto.
14189 (set_endian): Ditto.
14190 (set_endian_from_file): Ditto.
14191 * gdbserver/low-sim.c (create_inferior): Ditto.
14192 * gdbarch.sh: Ditto.
14193 * gdbarch.h: Re-generate.
14194 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14195 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14196 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14197 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14198 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14199 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14200 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14201 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14203 * config/mips/tm-wince.h: Remove #undef of macro
14204 TARGET_BYTE_ORDER_SELECTABLE.
14205 * config/sh/tm-wince.h: Ditto.
14207 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14209 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14210 member function fields. Add accessor macro
14211 TYPE_FN_FIELD_ARTIFICIAL.
14212 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14213 * c-typeprint.c (c_type_print_base): Skip artificial member
14216 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14218 * f-typeprint.c: Delete unused function f_type_print_args.
14219 * p-typeprint.c: Delete unused function pascal_type_print_args.
14221 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14223 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14224 comment. Add ``artificial'' to ``union field_location''.
14226 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14228 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14229 * mdebugread.c (parse_symbol): Likewise.
14230 * stabsread.c (define_symbol): Likewise.
14231 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14232 initializing TYPE_FIELD_BITPOS to n (obsolete).
14233 (hpread_doc_function_type): Likewise.
14234 * hpread.c (hpread_function_type): Likewise.
14236 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14238 * configure.in (host_makefile_frag): Only require a host makefile
14239 fragment when a native build.
14240 * configure: Re-generate.
14242 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14244 * doublest.h (floatformat_from_type): Declare.
14245 * doublest.c (floatformat_from_type): New function.
14246 (convert_typed_floating): Use.
14248 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14249 call to function floatformat_from_type.
14251 * gdbarch.sh (IEEE_FLOAT): Delete.
14252 * gdbarch.h, gdbarch.c: Re-generate.
14253 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14254 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14255 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14256 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14257 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14258 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14259 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14260 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14261 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14262 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14263 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14264 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14266 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14267 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14268 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14269 * sh-tdep.c (sh_gdbarch_init): Ditto.
14270 * mips-tdep.c (mips_gdbarch_init): Ditto.
14271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14272 * cris-tdep.c (cris_gdbarch_init): Ditto.
14274 2002-01-20 Jiri Smid <smid@suse.cz>
14276 * configure.host, configure.tgt: Support x86-64.
14277 * NEWS: Note new target x86-64.
14279 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14280 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14281 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14282 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14283 x86-64-linux-nat.o): Fix dependencies.
14285 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14287 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14288 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14289 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14290 * config/sparc/xm-sun4os4.h: Delete file.
14291 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14293 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14295 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14296 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14297 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14298 * config/i386/i386lynx.mh (XM_FILE): Delete.
14299 * config/rs6000/xm-rs6000ly.h: Delete file.
14300 * config/sparc/xm-sparclynx.h: Delete file.
14301 * config/m68k/xm-m68klynx.h: Delete file.
14302 * config/i386/xm-i386lynx.h: Delete file.
14303 * config/xm-lynx.h: Delete file.
14304 * config/djgpp/fnchange.lst: Update.
14306 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14308 * alpha-tdep.c (alpha_register_byte): New function.
14309 (alpha_register_raw_size): Ditto.
14310 (alpha_register_virtual_size): Ditto.
14311 (alpha_skip_prologue_internal): Renamed from
14312 alpha_skip_prologue.
14313 (alpha_skip_prologue): New version that calls
14314 alpha_skip_prologue_internal.
14315 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14316 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14317 second argument from alpha_skip_prologue.
14318 (REGISTER_BYTE): Use alpha_register_byte.
14319 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14320 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14321 (FRAMELESS_FUNCTION_INVOCATION): Use
14322 generic_frameless_function_invocation_not.
14323 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14324 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14326 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14328 * config/mips/xm-news-mips.h: Delete file.
14329 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14331 * config/m88k/xm-m88k.h: Delete file.
14332 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14333 * config/m88k/xm-delta88v4.h: Ditto.
14334 * config/m88k/xm-delta88.h: Ditto.
14336 * config/alpha/xm-fbsd.h: Delete file.
14337 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14339 * config/sparc/xm-sparc.h: Delete file.
14340 * Makefile.in (xm-sun4os4.h): Delete dependency.
14341 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14342 * config/sparc/xm-sun4os4.h: Ditto.
14343 * config/sparc/xm-linux.h: Ditto.
14345 * config/i386/xm-windows.h: Delete file.
14347 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14349 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14350 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14352 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14354 * alpha-tdep.c (alpha_call_dummy_words): New.
14355 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14356 (CALL_DUMMY_P): Define.
14357 (CALL_DUMMY_WORDS): Define.
14358 (SIZEOF_CALL_DUMMY_WORDS): Define.
14360 2002-01-19 Per Bothner <per@bothner.com>
14362 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14363 isn't NULL, which can happen with some gcj-3.x-produced code.
14365 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14367 * alpha-tdep.c (alpha_register_virtual_type): New function.
14368 (alpha_init_frame_pc_first): Ditto.
14369 (alpha_fix_call_dummy): Ditto.
14370 (alpha_store_struct_return): Ditto.
14371 (alpha_extract_struct_value_address): Ditto.
14372 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14373 alpha_register_virtual_type.
14374 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14375 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14376 alpha_extract_struct_value_address.
14377 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14378 (INIT_FRAME_PC): Use init_frame_pc_noop.
14379 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14381 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14383 * i386gnu-nat.c: Include "i386-tdep.h".
14384 (fetch_fpregs): Simplify code dealing with uninitialized floating
14385 point states such that it doesn't require FP7_REGNUM.
14387 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14389 * alpha-tdep.c (frame_extra_info): New.
14390 (alpha_find_saved_regs): Make static. Use
14392 (alpha_frame_init_saved_regs): New function.
14393 (alpha_frame_saved_pc): Use frame->extra_info.
14394 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14395 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14396 (init_extra_frame_info): Rename to...
14397 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14398 (alpha_print_extra_frame_info): New function.
14399 (alpha_frame_locals_address): Ditto.
14400 (alpha_frame_args_address): Ditto.
14401 (alpha_pop_frame): Use frame->extra_info.
14402 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14403 alpha_frame_args_address.
14404 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14405 (alpha_find_saved_regs): Remove prototype.
14406 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14407 (EXTRA_FRAME_INFO): Remove.
14408 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14409 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14411 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14413 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14414 (alpha_cannot_fetch_register): Ditto.
14415 (alpha_cannot_store_register): Ditto.
14416 (alpha_register_convertible): Ditto.
14417 (alpha_use_struct_convention): Ditto.
14418 * config/alpha/tm-alpha.h: Update copyright years.
14419 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14420 (INNER_THAN): Use core_addr_lessthan.
14421 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14422 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14423 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14424 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14425 (FRAME_CHAIN): Remove unnecessary cast.
14427 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14429 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14432 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14434 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14435 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14436 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14437 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14438 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14439 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14440 * x86-64-linux-nat.c: Ditto.
14442 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14444 * alpha-tdep.c (alpha_register_name): New function.
14445 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14446 (REGISTER_NAME): Define.
14448 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14450 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14452 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14454 * alpha-tdep.c: Update copyright years.
14455 (alpha_next_pc): New function.
14456 (alpha_software_single_step): Ditto.
14457 * config/alpha/tm-alpha.h: Add prototype for
14458 alpha_software_single_step.
14460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14462 * alphabsd-nat.c: Update copyright years.
14463 (fill_gregset): Use regcache_collect.
14464 (fill_fpregset): Likewise.
14465 (fetch_inferior_registers): Only fetch integer registers
14466 if requested to do so.
14467 (store_inferior_registers): Only store integer registers
14468 if requested to do so.
14470 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14472 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14473 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14474 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14475 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14476 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14477 * config/arm/linux.mh (XDEPFILES): Delete.
14478 * config/arm/nbsd.mh (XDEPFILES): Delete.
14479 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14480 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14481 * config/i386/i386m3.mh (XDEPFILES): Delete.
14482 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14483 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14484 * config/i386/fbsd.mh (XDEPFILES): Delete.
14485 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14486 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14487 * config/i386/i386v4.mh (XDEPFILES): Delete.
14488 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14489 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14490 * config/i386/i386aix.mh (XDEPFILES): Delete.
14491 * config/i386/go32.mh (XDEPFILES): Delete.
14492 * config/i386/cygwin.mh (XDEPFILES): Delete.
14493 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14494 * config/i386/i386mach.mh (XDEPFILES): Delete.
14495 * config/i386/i386v32.mh (XDEPFILES): Delete.
14496 * config/i386/linux.mh (XDEPFILES): Delete.
14497 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14498 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14499 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14500 * config/i386/i386sco.mh (XDEPFILES): Delete.
14501 * config/i386/i386v.mh (XDEPFILES): Delete.
14502 * config/i386/nbsd.mh (XDEPFILES): Delete.
14503 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14504 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14505 * config/i386/symmetry.mh (XDEPFILES): Delete.
14506 * config/i386/obsd.mh (XDEPFILES): Delete.
14507 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14508 * config/ia64/linux.mh (XDEPFILES): Delete.
14509 * config/ia64/aix.mh (XDEPFILES): Delete.
14510 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14511 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14512 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14513 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14514 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14515 * config/m68k/linux.mh (XDEPFILES): Delete.
14516 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14517 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14518 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14519 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14520 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14521 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14522 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14523 * config/m88k/delta88.mh (XDEPFILES): Delete.
14524 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14525 * config/m88k/m88k.mh (XDEPFILES): Delete.
14526 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14527 * config/mips/linux.mh (XDEPFILES): Delete.
14528 * config/mips/irix6.mh (XDEPFILES): Delete.
14529 * config/mips/irix5.mh (XDEPFILES): Delete.
14530 * config/mips/irix4.mh (XDEPFILES): Delete.
14531 * config/mips/irix3.mh (XDEPFILES): Delete.
14532 * config/mips/decstation.mh (XDEPFILES): Delete.
14533 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14534 (NATDEPFILES): Move core-aout.o to here.
14535 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14536 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14537 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14538 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14539 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14540 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14541 * config/pa/hpux11.mh (XDEPFILES): Delete.
14542 * config/powerpc/aix.mh (XDEPFILES): Delete.
14543 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14544 * config/powerpc/linux.mh (XDEPFILES): Delete.
14545 * config/romp/rtbsd.mh: Rename XDEPFILES.
14546 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14547 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14548 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14549 * config/s390/s390.mh (XDEPFILES): Delete.
14550 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14551 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14552 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14553 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14554 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14555 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14556 * config/sparc/linux.mh (XDEPFILES): Delete.
14557 * config/vax/vaxult.mh (XDEPFILES): Delete.
14558 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14559 * Makefile.in (DEPFILES): Remove XDEPFILES.
14561 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14563 * utils.c (internal_verror): Fix comments, default is yes not no.
14564 Update queries to match. Default to quit and dump core.
14566 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14568 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14570 * defs.h, event-top.c, gdbcmd.h: Ditto.
14571 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14572 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14573 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14574 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14575 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14576 * mi/mi-main.c:Ditto.
14578 * stack.c, symfile.c: Update copyright.
14580 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14582 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14583 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14584 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14585 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14587 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14589 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14590 * gdbserver/low-lynx.c (myattach): Likewise.
14591 * gdbserver/low-nbsd.c (myattach): Likewise.
14592 * gdbserver/low-sim.c (myattach): Likewise.
14593 * gdbserver/low-sparc.c (myattach): Likewise.
14594 * gdbserver/low-sun3.c (myattach): Likewise.
14596 * gdbserver/low-linux.c (myattach): New function.
14598 * gdbserver/server.c (attach_inferior): New function.
14599 (main): Handle "--attach".
14601 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14603 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14606 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14608 * c-typeprint.c (is_type_conversion_operator): Add additional
14609 check for non-conversion operators.
14611 2002-01-15 Michael Snyder <msnyder@redhat.com>
14613 * linux-proc.c: Add "info proc" command, a la procfs.c.
14614 (read_mapping): New function, abstract and re-use code.
14615 (linux_find_memory_regions): Use new func read_mapping.
14616 (linux_info_proc_cmd): New function, implement "info proc".
14617 (_initialize_linux_proc): Add new command "info proc".
14619 2002-01-15 Michael Snyder <msnyder@redhat.com>
14621 * symfile.c (generic_load): Use bfd_map_over_sections method
14622 instead of manipulating bfd structure members directly.
14623 (add_section_size_callback): New function, bfd sections callback
14624 used by generic_load.
14625 (load_sections_callback): New function, bfd sections callback
14626 used by generic_load.
14628 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14630 [Based on work by Jim Blandy]
14631 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14632 (builtin_type_vec128): Export.
14633 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14635 (builtin_type_vec128): New builtin type for 128 bit vector
14637 (build_gdbtypes): Initialize builtin_type_v16qi and
14638 builtin_type_v8hi. Create the vec128 register builtin type
14640 (build_builtin_type_vec128): New function.
14641 (_initialize_gdbtypes): Register builtin_type_v16qi and
14642 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14643 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14644 AltiVec register to new builtin type.
14646 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14648 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14651 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14653 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14654 CLEAN_UP_REGISTER_VALUE.
14655 * regcache.c (supply_register): Update only call.
14657 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14659 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14660 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14661 a29k-*-vxworks* targets as obsolete.
14663 2002-01-14 Michael Snyder <msnyder@redhat.com>
14665 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14666 until we can resolve portability issues.
14667 * gregset.h: Remove references to fpxregs.
14668 * gcore.c (gcore_command): Initialize note_sec to NULL.
14670 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14672 * signals.c (target_signal_to_name): Rewrite. Only use
14673 signals[].name when in bounds and non-NULL.
14675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14677 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14678 * signals.c (target_signal_to_name): Verify that SIG is within the
14679 bounds of the signals array.
14681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14683 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14685 2002-01-13 Keith Seitz <keiths@redhat.com>
14687 * stack.c (print_frame_info_base): Print the frame's pc
14688 only if when print_frame_info_listing_hook is not defined.
14690 2002-01-13 Keith Seitz <keiths@redhat.com>
14692 * varobj.c (varobj_set_value): Make sure that there were no
14693 errors evaluating the object before attempting to set its
14695 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14696 so this offset adjustment is no longer necessary.
14697 (create_child): Don't set the error flag if the child is
14698 a CPLUS_FAKE_CHILD.
14699 (value_of_child): If value_fetch_lazy fails, return NULL
14700 so that callers will be notified that an error occurred.
14701 (c_value_of_variable): Delay check of variable's validity
14702 until later. We actually want all structs and unions to have
14704 Do not return "???" for variables which could not be evaluated.
14705 This error condition must be returned to the caller so that it
14706 can get the error condition from gdb.
14707 (cplus_name_of_child): Adjust index for vptr before figuring
14708 out the name of the child.
14709 (cplus_value_of_child): If a child's (real) parent is not valid,
14710 don't even bother trying to give a value for it. Just return
14711 an error. Change all instances in this function.
14712 (cplus_type_of_child): If our parent is one of the "fake"
14713 parents, we need to get at the type of the real parent, and
14714 derive the child's true type using this information.
14716 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14718 From 2002-01-09 John Marshall <johnm@falch.net>:
14719 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14720 sources.redhat.com, and tweak some related URLs which had
14721 suffered from linkrot.
14723 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14726 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14727 structures passed in registers.
14729 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14731 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14732 white space which prevented compilation. Reported by DSK
14733 <dsk@student.unsw.edu.au>.
14735 2002-01-11 Michael Snyder <msnyder@redhat.com>
14737 * symfile.c (build_section_addr_info_from_section_tab):
14738 Use bfd access method instead of manipulating bfd directly.
14739 (syms_from_objfile): Ditto.
14740 (simple_overlay_update_1): Ditto.
14741 (simple_overlay_update): Ditto.
14742 (generic_load): Ditto.
14743 (overlay_unmapped_address): FIXME comment, bfd access methods.
14744 (sections_overlap): FIXME comment, bfd access methods.
14745 (pc_in_mapped_range): FIXME comment, bfd access methods.
14746 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14747 (section_is_mapped): FIXME comment, bfd access methods.
14748 (section_is_overlay): FIXME comment, bfd access methods.
14750 * symfile.c (generic_load): Whitespace and long line cleanups.
14751 Remove duplicate variable, change several local variables to
14752 more appropriate data types.
14753 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14755 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14757 From Peter Schauer:
14758 * language.c (longest_local_hex_string_custom): Use phex_nz to
14759 convert NUM to a hex string.
14761 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14763 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14765 Update Copyright year.
14767 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14769 * language.c (longest_raw_hex_string): Delete unused function.
14771 2002-01-11 Petr Sorfa <petrs@caldera.com>
14773 * MAINTAINERS (write-after-approval): Add myself.
14774 * dwarf2read.c (read_tag_string_type): Handling of
14776 (read_tag_string_type): FORTRAN fix to prevent propagation of
14778 (set_cu_language): Handling of DW_LANG_Fortran95
14780 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14782 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14783 GETPID(inferior_ptid).
14784 (store_inferior_registers): Likewise.
14786 2002-01-10 Jason Merrill <jason@redhat.com>
14788 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14791 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14793 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14794 and bfd/elf32-sh-nbsd.c.
14796 2002-01-10 Michael Snyder <msnyder@redhat.com>
14798 * NEWS: Mention --pid and corefile/proc-id behavior change.
14800 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14801 * gcore.c: Include cli/cli-decode.h instead of command.h.
14803 * main.c (captured_main): Add new command line option "--pid".
14804 If the second command line argument (following the symbol-file)
14805 begins with a digit, try to attach to it before trying to open
14807 (print_gdb_help): Document the "--pid" argument.
14809 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14811 * completer.c (command_completer): New function.
14813 * completer.h <command_completer>: Add prototype.
14815 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14816 completer for the "help" command.
14818 2002-01-09 Jason Merrill <jason@redhat.com>
14820 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14822 2002-01-09 Michael Snyder <msnyder@redhat.com>
14824 * i386-linux-nat.c (fill_fpxregset): Make global.
14825 (store_fpxregset): Ditto.
14827 * gregset.h (gdb_fpxregset_t): Define.
14828 (supply_fpxregset): Prototype.
14829 (fill_fpxregset): Prototype.
14831 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14833 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14835 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14836 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14837 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14839 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14841 * MAINTAINERS: Update target maintainer rules so that any
14842 Maintainer can approve a tested patch for a maintenance-only
14845 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14847 * MAINTAINERS (write-after-approval): Add myself.
14849 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14852 2002-01-08 Michael Snyder <msnyder@redhat.com>
14854 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14855 real name of the executable, rather than the /proc name.
14857 2002-01-03 Michael Snyder <msnyder@redhat.com>
14859 Implement a "generate-core-file" command in gdb, save target state.
14860 * gcore.c: New file. Implement new command 'generate-core-file'.
14861 Save a corefile image of the current state of the inferior.
14862 * linux-proc.c: Add linux-specific code for saving corefiles.
14863 * target.h (struct target_ops): Add new target vectors for saving
14864 corefiles; to_find_memory_regions and to_make_corefile_notes.
14865 (target_find_memory_regions): New macro.
14866 (target_make_corefile_notes): New macro.
14867 * target.c (update_current_target): Inherit new target methods.
14868 (dummy_find_memory_regions): New place-holder method.
14869 (dummy_make_corefile_notes): New place-holder method.
14870 (init_dummy_target): Initialize new dummy target vectors.
14871 * exec.c (exec_set_find_memory_regions): New function.
14872 Allow the exec_ops vector for memory regions to be taken over.
14873 (exec_make_note_section): New function, target vector method.
14874 * defs.h (exec_set_find_memory_regions): Export prototype.
14875 * procfs.c (proc_find_memory_regions): New function, corefile method.
14876 (procfs_make_note_section): New function, corefile method.
14877 (init_procfs_ops): Set new target vector pointers.
14878 (find_memory_regions_callback): New function.
14879 (procfs_do_thread_registers): New function.
14880 (procfs_corefile_thread_callback): New function.
14881 * sol-thread.c (sol_find_memory_regions): New function.
14882 (sol_make_note_section): New function.
14883 (init_sol_thread_ops): Initialize new target vectors.
14884 * inftarg.c (inftarg_set_find_memory_regions): New function.
14885 Allow to_find_memory_regions vector to be taken over.
14886 (inftarg_set_make_corefile_notes): New function.
14887 Allow to_make_corefile_notes vector to be taken over.
14888 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14889 interface layer if not target_has_execution (may be a corefile).
14890 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14891 * config/sparc/sun4sol2.mh: Ditto.
14892 * config/alpha/alpha-linux.mh: Ditto.
14893 * config/arm/linux.mh: Ditto.
14894 * config/i386/x86-64linux.mh: Ditto.
14895 * config/ia64/linux.mh: Ditto.
14896 * config/m68k/linux.mh: Ditto.
14897 * config/mips/linux.mh: Ditto.
14898 * config/powerpc/linux.mh: Ditto.
14899 * config/sparc/linux.mh: Ditto.
14901 2002-01-07 Michael Snyder <msnyder@redhat.com>
14903 * arm-linux-nat.c: Remove references to regcache.c internal data
14904 (registers[] and register_valid[]).
14906 2002-01-07 Michael Snyder <msnyder@redhat.com>
14908 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14909 so that attaching to a pid will automatically read the process's
14910 symbol file and shlibs.
14911 * Makefile.in: Add rule for linux-proc.o.
14912 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14913 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14914 * config/arm/linux.mh: Ditto.
14915 * config/i386/linux.mh: Ditto.
14916 * config/i386/x86-64linux.mh: Ditto.
14917 * config/ia64/linux.mh: Ditto.
14918 * config/m68k/linux.mh: Ditto.
14919 * config/mips/linux.mh: Ditto.
14920 * config/powerpc/linux.mh: Ditto.
14921 * config/sparc/linux.mh: Ditto.
14923 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14925 * win32-nat.c: Add i386-tdep.h dependency.
14927 2002-01-07 Michael Snyder <msnyder@redhat.com>
14929 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14930 instead of bfd_get_arch_size. Don't bail out just because
14931 there's no exec_bfd.
14933 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14934 * p-valprint.c (pascal_object_print_value): Ditto.
14935 * somread.c (som_symtab_read): Ditto.
14936 * symfile.c (simple_free_overlay_region_table): Ditto.
14937 * valops.c (value_assign): Ditto.
14939 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14940 use tilde_expand and strerror for opening save-tracepoints file.
14942 * thread-db.c (thread_db_new_objfile): Indendation fix.
14944 * infptrace.c (GDB_MAX_ALLOCA): New define.
14945 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14946 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14947 can be overridden with whatever value is appropriate to the host).
14948 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14949 alloca to allocate potentially large buffer.
14950 * rs6000-nat.c (child_xfer_memory): Ditto.
14951 * symm-nat.c (child_xfer_memory): Ditto.
14952 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14954 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14956 From Nick Clifton <nickc@redhat.com>
14957 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14959 2002-01-07 Michael Snyder <msnyder@redhat.com>
14961 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14962 Don't use exec_bfd if it's NULL.
14964 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14966 * valops.c (value_arg_coerce): Fix formatting.
14968 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14970 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14971 * gnu-nat.c: Ditto.
14973 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14975 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14976 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14977 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14978 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14979 z8k-coff have not been multi-arched. Update z8k-coff build
14982 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14984 * MAINTAINERS: Mark a29k target as obsolete.
14985 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14986 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14988 * NEWS: Note that a29k targets are obsolete.
14989 * a29k-tdep.c: Mark as obsolete.
14990 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14991 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14992 a29k-*-vxworks* targets as obsolete.
14993 * remote-adapt.c: Obsolete.
14994 * remote-eb.c: Obsolete.
14995 * remote-mm.c: Obsolete.
14996 * remote-udi.c: Obsolete.
14997 * config/a29k/a29k-udi.mt: Obsolete.
14998 * config/a29k/a29k.mt: Obsolete.
14999 * config/a29k/tm-a29k.h: Obsolete.
15000 * config/a29k/tm-vx29k.h: Obsolete.
15001 * config/a29k/vx29k.mt: Obsolete.
15003 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15005 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15006 with BFD_ENDIAN_BIG.
15008 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15010 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15011 * configure, config.in: Re-generate.
15012 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15013 * defs.h: Do not include <endian.h>.
15015 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15017 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15018 * config.in: Regenerate.
15019 * configure.in: Update copyright years.
15020 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15021 * configure: Regenerate.
15022 * i386bsd-nat.c: Update copyright years.
15023 (fill_gregset): Use regcache_collect.
15024 (fetch_inferior_registers): Only fetch integer registers
15025 if requested to do so. Add support for XMM registers
15026 using PT_GETXMMREGS.
15027 (store_inferior_registers): Only store integer registers
15028 if requested to do so. Add support for XMM registers
15029 using PT_SETXMMREGS.
15030 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15031 (store_inferior_registers): Remove.
15032 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15033 (fetch_elfcore_registers): New function.
15034 (i386nbsd_elfcore_fns): New.
15035 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15036 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15038 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15039 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15040 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15041 * config/i386/tm-nbsd.h: Update copyright years.
15042 (HAVE_SSE_REGS): Define.
15043 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15044 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15045 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15046 (SIGCONTEXT_PC_OFFSET): Remove.
15047 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15049 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15051 * configure.tgt: Remove powerpc-*-macos* target.
15052 * config/m68k/xm-mpw.h: Delete file.
15053 * config/xm-mpw.h: Delete file.
15054 * ser-mac.c: Delete file.
15055 * mpw-make.sed: Delete file.
15056 * mpw-config.in: Delete file.
15057 * mac-xdep.c: Delete file.
15058 * mac-gdb.r: Delete file.
15059 * mac-defs.h: Delete file.
15060 * mac-nat.c: Delete file.
15061 * config/powerpc/macos.mh: Delete file.
15062 * config/powerpc/macos.mt: Delete file.
15063 * config/powerpc/nm-macos.h: Delete file.
15064 * config/powerpc/tm-macos.h: Delete file.
15065 * source.c (openp, open_source_file): Remove obsolete code.
15066 * top.c (gdb_readline): Ditto.
15067 * utils.c (query): Ditto.
15068 * event-top.c (display_gdb_prompt): Ditto.
15069 * Makefile.in (ser-mac.o): Delete obsolete target.
15072 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15074 * defs.h (BIG_ENDIAN): Delete macro definition.
15075 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15076 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15077 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15078 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15079 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15080 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15081 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15082 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15083 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15084 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15085 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15086 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15087 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15088 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15089 * gdbarch.c: Re-generate.
15091 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15093 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15096 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15098 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15100 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15102 * value.h (value_ptr): Delete typedef.
15104 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15106 * i386nbsd-nat.c: Update copyright years.
15107 Include i386-tdep.h.
15109 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15111 * stabsread.c: Update copyright years.
15113 From Debashis Mahata <debashis.mahata@wipro.com>:
15114 (read_struct_fields): Deal with Sun C compiler erroneous stab
15115 output for structs and unions.
15118 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15120 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15123 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15125 * cp-abi.c: Fix whitespace.
15126 (baseclass_offset): New wrapper function.
15127 * cp-abi.h (baseclass_offset): Add prototype.
15128 (struct cp_abi_ops): Add baseclass_offset pointer.
15130 * valops.c (vb_match): Move to...
15131 * gnu-v2-abi.c (vb_match): here.
15132 * valops.c (baseclass_offset): Move to...
15133 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15135 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15137 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15138 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15139 * hpacc-abi.c (init_hpacc_ops): Likewise.
15141 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15143 * valops.c (find_overload_match): Accept obj as a
15144 reference parameter. Update it before returning.
15145 * value.h (find_overload_match): Update prototype.
15146 * eval.c (evaluate_subexp_standard): Pass object to
15147 find_overload_match by reference.
15149 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15151 * valarith.c: Replace value_ptr with struct value pointer. Remove
15152 register attribute from value declarations.
15155 * scm-lang.c (scm_lookup_name): Ditto.
15157 2002-01-03 Michael Snyder <msnyder@redhat.com>
15159 Abstract the functionality of iterating over mapped memory
15160 regions into a general purpose iterator function.
15161 * procfs.c (iterate_over_mappings): New function, general purpose
15162 iterator for memory sections.
15163 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15164 (solib_mappings_callback): New function, callback for above.
15165 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15166 (info_mappings_callback): New function, callback for above.
15168 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15170 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15172 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15173 * i386-tdep.c: Include "elf-bfd.h".
15174 (process_note_abi_tag_sections): New function.
15175 (i386_gdbarch_init): Add code to recognize various OS/ABI
15178 * maint.c (_initialize_maint_cmds): Add missing \ in
15181 For older changes see ChangeLog-2001
15187 version-control: never