1 2003-01-03 J. Brobecker <brobecker@gnat.com>
3 * mdebugread.c (parse_symbol): Count until the stEnd matching
6 2003-01-02 Mark Kettenis <kettenis@gnu.org>
8 * configure.in: Remove --with-cpu option.
9 subscripts. Remove evil changequotes here.
10 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11 * config.in, configure: Regenerated.
13 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14 * configure.in: Cleanup section that sources GDB and BFD configure
15 subscripts. Remove evil changequotes here.
16 * config.in, configure: Regenerated.
18 2003-01-02 Andrew Cagney <ac131313@redhat.com>
20 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
21 frame accessor methods.
22 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
23 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
24 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
25 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
26 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
27 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
30 2003-01-02 Mark Kettenis <kettenis@gnu.org>
32 * configure.in: Remove UI_OUT configuration code.
33 * ada-lang.c: Update assuming UI_OUT is always true.
34 * Makefile.in (UIOUT_CFLAGS): Remove.
35 * configure: Regenerated.
36 * TODO: Remove blurb about elimination of -DUI_OUT.
38 * configure.in: Move code that provides the --enable-gdbcli,
39 --enable-gdbmi options right before the code that handles the
40 --enable-tui option. Polish a bit.
41 * configure: Regenerated.
43 * configure.in: Rewrite check for GNU regex and the
44 --without-included regex option, and move it into the "Checks for
45 library functions" section. This makes us use the system regex
46 again by default on systems with version 2 of the GNU C library.
47 This was apparently broken.
48 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
49 * acconfig.h (USE_INCLUDED_REGEX): Remove.
50 * config.in, configure: Regenerated.
52 * configure.in: Move code that provides the --enable-tui option
53 before the "Checks for libraries" section. Polish the code
54 somewhat and set need_curses to yes if we build the TUI. Rewrite
55 code that looks for a library providing termcap functionality to
56 match more closely what's done in the Readline library, and move
57 it into to the "Checks for libraries" section.
58 * configure: Regenerated.
59 * Makefile.in (TERMCAP): Remove variable.
60 * config/i386/go32.mh (TERMCAP): Remove variable.
62 2003-01-02 Andrew Cagney <ac131313@redhat.com>
64 * MAINTAINERS: Mention gdb_mbuild.sh.
65 * gdb_mbuild.sh: Rewrite.
67 2003-01-02 Mark Kettenis <kettenis@gnu.org>
69 * configure.in: Fix typo in last change.
70 * config.in, configure: Regenerated.
72 2003-01-02 Andrew Cagney <ac131313@redhat.com>
74 * valarith.c (value_binop): Delete obsolete code and comments.
75 * configure.host: Ditto.
76 * buildsym.h (make_blockvector): Ditto.
77 * buildsym.c (make_blockvector): Ditto.
78 * defs.h (enum language): Ditto.
79 (chill_demangle): Ditto.
80 * elfread.c (elf_symtab_read): Ditto.
81 * dwarfread.c (CHILL_PRODUCER): Ditto.
82 (set_cu_language): Ditto.
83 (handle_producer): Ditto.
84 * expprint.c (print_subexp): Ditto.
85 * gdbtypes.c (chill_varying_type): Ditto.
86 * gdbtypes.h (builtin_type_chill_bool): Ditto.
87 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
88 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
89 (chill_varying_type): Ditto.
90 * language.h (_LANG_chill): Ditto.
91 * language.c (binop_result_type, integral_type): Ditto.
92 (character_type, string_type, structured_type): Ditto.
93 (lang_bool_type, binop_type_check): Ditto.
94 * stabsread.h (os9k_stabs): Ditto.
95 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
96 (define_symbol, read_type, read_struct_fields): Ditto.
97 (read_array_type, read_enum_type, read_huge_number): Ditto.
98 (read_range_type, start_stabs): Ditto.
99 * symfile.c (init_filename_language_table): Ditto.
100 (add_psymbol_with_dem_name_to_list): Ditto.
101 * symtab.c (symbol_init_language_specific): Ditto.
102 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
103 * symtab.h (struct general_symbol_info): Ditto.
104 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
105 * typeprint.c (typedef_print): Ditto.
106 * utils.c (fprintf_symbol_filtered): Ditto.
107 * valops.c (value_cast, search_struct_field, value_slice): Delete
109 (varying_to_slice): Delete function.
110 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
111 (varying_to_slice): Delete declaration.
112 * MAINTAINERS: Update.
114 2003-01-02 Mark Kettenis <kettenis@gnu.org>
116 * configure.in: Reorganize "Checks for library functions section"
117 a bit. Remove check for `btowc' and `isascii' functions.
118 * configure: Regenerated.
120 * acconfig.h (_MSE_INT_H): Remove.
121 * configure.in: Create "Checks for header files" section, and move
122 appropriate tests there. Don't check for objlist.h, wchar.h,
123 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
124 misdetection fix. Also add "Checks for types", "Checks for
125 compiler characteristics" and "Checks for library functions"
127 * config.in, configure: Regenerated.
129 * configure.in: Create "Checks for programs" section, and move
130 appropriate tests there.
132 2003-01-01 Mark Kettenis <kettenis@gnu.org>
134 * configure.in: Create "Checks for libraries" section, and move
135 appropriate tests there. Cleanup check for wctype in libw. Use
136 AC_SEARCH_LIBS to see whether we need libsocket.
137 * configure: Regenerated.
139 2002-12-31 Mark Kettenis <kettenis@gnu.org>
141 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
142 * config.in, configure: Regenerated.
144 2002-12-31 Mark Kettenis <kettenis@gnu.org>
146 * gdb_dirent.h: Cleanup and update code to match the example in
148 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
149 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
150 * configure: Regenerated.
152 2002-12-30 Adam Fedor <fedor@gnu.org>
154 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
155 (yylex): Initialize c to avoid uninitialized warning.
157 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
159 * doc/fdl.texi: Revert the last change.
161 2002-12-29 Mark Kettenis <kettenis@gnu.org>
163 * tracepoint.c (ISATTY): Removed.
165 2002-12-26 J. Brobecker <brobecker@gnat.com>
167 Continuing work to convert the hppa targets to multiarch partil.
169 * hppa-tdep.c: Add some missing forward declarations.
170 (frameless_function_invocation): Prefix the function name
171 by "hppa_" to avoid polluting the namespace. Update all calls
172 to use the new function name.
173 (saved_pc_after_call): Ditto.
174 (init_extra_frame_info): Ditto.
175 (frame_chain): Ditto.
176 (push_dummy_frame): Ditto.
177 (target_read_pc): Ditto.
178 (target_write_pc): Ditto.
179 (in_solib_call_trampoline): Ditto.
180 (in_solib_return_trampoline): Ditto.
181 (skip_trampoline_code): Ditto.
182 (hppa_read_fp): New function, renamed from target_read_fp.
183 (hppa_target_read_fp): New function, using hppa_read_fp.
184 This function conforms to the function profile for the
185 READ_FP gdbarch method.
186 (hppa_extract_struct_value_address): New function, extracted
187 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
189 (hppa_frame_num_args): New function.
190 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
192 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
193 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
194 for the switch to multiarch partial.
195 Update some of the macros definitions to match some changes
196 described above in the name of the function they are calling.
197 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
198 not be straightforward to convert. Do now wrap it inside
199 "#if !... #endif" to remember that this macro has still not
201 (FIX_CALL_DUMMY): Likewise.
203 2002-12-26 J. Brobecker <brobecker@gnat.com>
205 Continuing work to convert the hppa targets to multiarch partial.
207 * hppa-tdep.c (hppa_register_raw_size): New function replacing
208 the body of macro REGISTER_RAW_SIZE.
209 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
210 config/pa/tm-hppah.h. These functions will be used to initialize
211 the gdbarch structure.
212 (hppa_hpux_pc_in_sigtramp): New function.
213 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
214 (hppa_hpux_frame_base_before_sigtramp): New function.
215 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
216 Add gdbcore.h #include.
217 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
218 of this gdbarch-eligible macro to a call to the new associated
220 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
221 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
222 into a call to the new associated function.
223 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
224 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
225 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
227 2002-12-24 David Carlton <carlton@math.stanford.edu>
229 * config/sparc/tm-sparc.h: Delete duplicate definition of
230 DEPRECATED_PC_IN_CALL_DUMMY.
232 2002-12-24 Kevin Buettner <kevinb@redhat.com>
234 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
236 * configure.tgt: Recognize mips64*-*-linux*.
237 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
238 (supply_32_bit_reg): New function.
239 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
240 (fill_gregset): Use regcache_collect() instead of
241 deprecated_registers[].
242 (register_addr): Change name to mips_linux_register_addr().
243 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
244 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
245 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
246 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
247 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
248 (MIPS64_LINUX_JB_PC): New defines.
249 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
250 (mips64_elf_fpregset_t): New typedefs.
251 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
252 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
253 (mips64_linux_register_addr, set_mips_linux_register_addr)
254 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
255 (init_register_addr_data)
257 (fetch_core_registers): Add support for core file formats with 64-bit
259 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
260 (register_addr_data): New static global variable.
261 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
262 gdbarch_register_osabi() for each MIPS machine.
263 * config/mips/linux64.mt: New file.
264 * config/mips/tm-linux64.h: New file.
266 2002-12-23 Adam Fedor <fedor@gnu.org>
268 * maint.c (maintenance_demangle): Add switch to demangle
269 ObjC language symbols as well.
271 2002-12-23 Adam Fedor <fedor@gnu.org>
273 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
274 last argument from complaint function call.
276 2002-12-23 Kevin Buettner <kevinb@redhat.com>
278 * exec.c (print_section_info): Add FIXME comments regarding format
281 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
283 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
284 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
286 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
288 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
290 2002-12-23 David Carlton <carlton@math.stanford.edu>
292 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
293 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
294 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
295 information associated to a minsym, not lookup_symbol.
297 2002-12-21 Mark Kettenis <kettenis@gnu.org>
299 * x86-64-tdep.h (x86_64_init_abi): New prototype.
300 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
301 (x86_64_init_abi): Make non-static. Set number of pseudo
303 (x86_64_gdbarch_init): Remove function.
304 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
305 Remove code dealing with dissambly.
306 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
307 (_initialize_x86_64_linux_tdep): New function.
308 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
311 2002-12-14 Mark Kettenis <kettenis@gnu.org>
313 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
314 (struct gdb_osabi_handler): Remove member `arch'. Add member
316 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
317 construct a `struct bfd_arch_info' and store it in the `struct
318 gdb_osabi_handler' that is created.
319 (gdbarch_init_osabi): Check for compatibility based on machine
320 type and architecture.
321 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
323 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
324 second argument in call to gdbarch_register_osabi.
325 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
326 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
327 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
328 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
329 * arm-tdep.c (_initialize_arm_tdep): Likewise.
330 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
331 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
332 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
333 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
334 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
335 * i386-tdep.c (_initialize_i386_tdep): Likewise.
336 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
337 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
338 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
339 _initialize_i386bsd_tdep and updated likewise.
340 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
341 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
342 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
343 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
344 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
345 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
346 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
347 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
348 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
349 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
351 2002-12-20 Kevin Buettner <kevinb@redhat.com>
353 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
354 DT_MIPS_RLD_MAP case for 64-bit targets.
356 2002-12-20 Kevin Buettner <kevinb@redhat.com>
358 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
359 ``temp_saved_regs'', not the pointer or other storage contiguous
362 2002-12-20 Kevin Buettner <kevinb@redhat.com>
364 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
365 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
366 (mips_linux_get_longjmp_target): Delete declarations.
367 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
368 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
369 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
370 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
371 (mips_linux_get_longjmp_target)
372 (mips_linux_svr4_fetch_link_map_offsets): Make static.
373 (mips_linux_init_abi): New function.
374 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
376 2002-12-19 Keith Seitz <keiths@redhat.com>
378 patch committed by Elena Zannoni <ezannoni@redhat.com>
379 * thread.c (do_captured_list_thread_ids): Call prune_threads and
380 target_find_new_threads. Fix for PR mi/669.
382 2002-12-19 David Carlton <carlton@math.stanford.edu>
384 * linespec.c (decode_line_1): Move code into decode_all_digits.
385 (decode_all_digits): New function.
387 2002-12-19 Kevin Buettner <kevinb@redhat.com>
389 * exec.c (print_section_info): Select a format string to use with
390 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
392 2002-12-18 Andrew Cagney <ac131313@redhat.com>
394 * frame.c (deprecated_update_current_frame_pc_hack): Replace
395 deprecated_update_current_frame_pc_hack.
396 (deprecated_update_frame_base_hack): New function.
397 * frame.h (deprecated_update_frame_pc_hack): Replace
398 (deprecated_update_frame_base_hack): Declare.
399 * infrun.c (normal_stop): Update.
401 2002-12-18 Andrew Cagney <ac131313@redhat.com>
403 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
404 frame_extra_info_zalloc.
405 (rs6000_frame_args_address): Use get_frame_extra_info.
406 (frame_get_saved_regs): Use get_frame_saved_regs.
407 (frame_initial_stack_address): Use get_frame_saved_regs and
408 get_frame_extra_info.
409 (frame_initial_stack_address): Use get_frame_extra_info.
411 2002-12-17 Kevin Buettner <kevinb@redhat.com>
413 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
415 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
416 checks for r3900_regnames[].
418 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
420 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
422 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
424 2002-12-17 David Carlton <carlton@math.stanford.edu>
426 * symtab.c (lookup_partial_symbol): Don't search past the end of
429 2002-12-17 Andrew Cagney <ac131313@redhat.com>
431 * stack.c (frame_info): Use get_frame_saved_regs.
432 * breakpoint.c (until_break_command): Use get_frame_pc.
434 2002-12-16 Kevin Buettner <kevinb@redhat.com>
436 * buildsym.c (block_end_complaint, anon_block_end_complaint)
437 (innerblock_complaint, innerblock_anon_complaint)
438 (blockvector_complaint): Delete deprecated complaint structs.
439 (finish_block, make_blockvector, end_symtab): Replace calls
440 to complain() with calls to complaint().
441 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
442 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
443 (unexpected_type_complaint, bad_sclass_complaint)
444 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
445 Delete deprecated complaint structs.
446 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
447 Replace calls to complain() with calls to complaint().
448 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
449 (unknown_symtype_complaint, unknown_symchar_complaint)
450 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
451 (lbrac_mismatch_complaint, repeated_header_complaint)
452 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
453 Delete deprecated complaint structs.
454 (unknown_symtype_complaint, lbrac_mismatch_complaint)
455 (repeated_header_complaint)
456 (function_outside_compiliation_unit_complaint): New functions.
457 (add_old_header_file, find_corresponding_bincl_psymtab)
458 (set_namestring, find_stab_function_addr, read_dbx_symtab)
459 (process_one_symbol): Replace calls to complain() with, possibly
460 indirect, calls to complaint().
461 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
462 (unknown_attribute_form, unknown_attribute_length)
463 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
464 (const_ignored, botched_modified_type, op_deref2, op_deref4)
465 (basereg_not_handled, dup_user_type_allocation)
466 (dup_user_type_definition, missing_tag, bad_array_element_type)
467 (subscript_data_items, unhandled_array_subscript_format)
468 (unknown_array_subscript_format, not_row_major)
469 (missing_at_name): Delete deprecated complaint structs.
470 (bad_die_ref_complaint, unknown_attribute_form_complaint)
471 (dup_user_type_definition_complaint)
472 (bad_array_element_type_complaint): New functions.
473 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
474 (decode_subscript_data_item, dwarf_read_array_type)
475 (read_tag_string_type, read_subroutine_type, read_func_scope)
476 (locval, scan_partial_symbols, decode_modified_type)
477 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
478 (attribute_size): Replace calls to complain() with, possibly
479 indirect, calls to complaint().
480 * elfread.c (section_info_complaint, section_info_dup_complaint)
481 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
482 Delete deprecated complaint structs.
483 (elf_symtab_read, elfstab_offset_sections): Replace calls to
484 complain() with calls to complaint().
485 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
487 (stub_noname_complaint): New function.
488 (check_typedef, add_mangled_type): Replace calls to complain()
489 with calls to complaint().
490 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
491 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
492 (hpread_unhandled_type_complaint, hpread_struct_complaint)
493 (hpread_array_complaint, hpread_type_lookup_complaint)
494 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
495 (hpread_unhandled_common_complaint)
496 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
497 struct definitions and declarations.
498 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
499 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
500 Replace calls to complain() with, possibly indirect, calls to
502 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
504 * mdebugread.c (bad_file_number_complaint, index_complaint)
505 (aux_index_complaint, block_index_complaint)
506 (unknown_ext_complaint, unknown_sym_complaint)
507 (unknown_st_complaint, block_overflow_complaint)
508 (basic_type_complaint, unknown_type_qual_complaint)
509 (array_index_type_complaint, bad_tag_guess_complaint)
510 (block_member_complaint, stEnd_complaint)
511 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
512 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
513 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
514 (bad_continued_complaint, bad_rfd_entry_complaint)
515 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
516 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
517 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
518 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
520 (index_complaint, unknown_ext_complaint, basic_type_complaint)
521 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
522 (unexpected_type_code_complaint)
523 (function_outside_compilation_unit_complaint): New functions.
524 (parse_symbol, parse_type, upgrade_type, parse_procedure)
525 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
526 Replace calls to complain() with, possibly indirect calls to
528 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
529 Delete deprecated complaint structs.
530 (lookup__objc_class, lookup_child_selector): Replace complain()
532 * remote-vx.c (cant_contact_target): Delete deprecated complaint
534 (vx_lookup_symbol): Replace complain() with complaint().
535 * stabsread.c (invalid_cpp_abbrev_complaint)
536 (invalid_cpp_type_complaint, member_fn_complaint)
537 (const_vol_complaint, error_type_complaint)
538 (invalid_member_complaint, range_type_base_complaint)
539 (reg_value_complaint, vtbl_notfound_complaint)
540 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
541 (unresolved_sym_chain_complaint, stabs_general_complaint)
542 (lrs_general_complaint, multiply_defined_struct): Delete
543 deprecated complaint structs.
544 (invalid_cpp_abbrev_complaint, ref_value_complaint)
545 (stabs_general_complaint, lrs_general_complaint)
546 (msg_unknown_complaint): New functions.
547 (dbx_lookup_type, read_cfront_baseclasses)
548 (read_cfront_member_functions, resolve_symbol_reference)
549 (define_symbol, resolve_live_range, add_live_range, read_type)
550 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
551 (read_one_struct_field, read_baseclasses, read_tilde_fields)
552 (read_cfront_static_fields, attach_fields_to_type)
553 (complain_about_struct_wipeout, read_range_type)
554 (common_block_start, common_block_end, cleanup_undefined_types)
555 (scan_file_globals): Replace complain() with complaint().
556 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
557 Delete deprecated complaint struct declarations.
558 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
559 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
560 (bf_not_found_complaint, ef_complaint, eb_complaint)
561 (function_outside_compilation_unit_complaint): New functions.
562 (record_include_begin, record_include_end, enter_line_range)
563 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
564 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
565 complain() with complaint().
567 2002-12-16 Andrew Cagney <ac131313@redhat.com>
569 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
570 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
571 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
572 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
573 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
574 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
575 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
576 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
577 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
578 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
579 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
580 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
581 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
582 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
583 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
584 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
585 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
586 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
587 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
588 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
589 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
590 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
591 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
592 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
593 * config/m88k/xm-dgux.h: Delete.
594 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
595 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
596 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
597 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
598 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
599 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
600 * ch-valprint.c: Delete.
602 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
604 * infrun.c (handle_inferior_event): Rearrange code to resume if
605 no catchpoint triggers for an event.
607 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
609 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
610 and TARGET_WAITKIND_VFORKED cases.
612 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
614 * infrun.c (handle_inferior_event): Assume that catchpoints
615 are not affected by DECR_PC_AFTER_BREAK.
617 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
619 * target.c (update_current_target): Don't inherit DONT_USE.
620 * target.h (struct target_ops): Remove DONT_USE.
621 (target_next): Remove macro.
623 2002-12-15 Mark Kettenis <kettenis@gnu.org>
625 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
627 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
629 * arm-tdep.c (convert_from_extended): New argument to hold the
630 type of floating point result we want to convert to. Make input
631 argument const. Fix all callers.
632 (convert_to_extended): Similarly.
633 (arm_extract_return_value): Now takes a regcache argument. Change
634 code to use regcache accessor functions. Correctly extract
635 smaller-than-word results on big-endian machines.
636 (arm_store_return_value): Now takes a regcache argument. Change
637 code to use regcache accessor functions. Correctly zero/sign extend
638 smaller than word results before storing into r0.
639 (arm_gdbarch_init): Register new-style extract_return_value and
640 store_return_value functions.
642 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
644 * thread-db.c (thread_from_lwp): Uniquify error msg.
645 (lwp_from_thread): Ditto.
646 (check_event): Ditto.
647 (find_new_threads_callback): Ditto.
648 (thread_db_pid_to_str): Ditto.
650 2002-12-13 Andrew Cagney <ac131313@redhat.com>
652 * frame.h (get_frame_saved_regs): Declare.
653 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
655 * frame.c (get_frame_saved_regs): New function.
656 (frame_saved_regs_zalloc): Return the allocated saved_regs.
658 2002-12-13 Andrew Cagney <ac131313@redhat.com>
660 * frame.c (deprecated_update_current_frame_pc_hack): New
662 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
663 * infrun.c (normal_stop): Use said function instead of directly
664 modifying the frame's PC.
666 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
668 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
670 2002-12-13 Kevin Buettner <kevinb@redhat.com>
672 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
673 config/mips/tm-irix6.h (NUM_REGS): Delete.
674 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
675 (temp_saved_regs): Declare as a pointer rather than an array.
676 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
677 that ``temp_saved_regs'' has storage allocated to it and that
678 it's the correct size.
680 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
682 * defs.h (init_last_source_visited): New prototype.
684 * source.c (add_path): New function that adds to a specified path.
685 (mod_path): Change to call add_path.
686 (init_last_source_visited): New function to allow interfaces to
687 initialize static variable: last_source_visited. Part of fix
689 * Makefile.in: Add support for mi/mi-cmd-env.c.
691 2002-12-13 Andrew Cagney <ac131313@redhat.com>
693 * frame.h (frame_id_unwind): Declare.
694 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
696 (frame_id_unwind_ftype): Declare.
697 * frame.c (frame_id_unwind): New function.
698 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
699 (create_new_frame, get_prev_frame): Pass id_unwind to
701 (frame_saved_regs_id_unwind): New function.
702 (frame_saved_regs_id_unwind): New function.
703 * dummy-frame.c (dummy_frame_id_unwind): New function.
704 (struct dummy_frame): Add field id.
705 (generic_push_dummy_frame): Initialize `id'.
706 * dummy-frame.h (dummy_frame_id_unwind): Declare.
708 2002-12-13 Andrew Cagney <ac131313@redhat.com>
710 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
711 pass that to set_momentary_breakpoint. Move comments to where they
713 * frame.h (set_current_frame): Delete declaration.
714 * frame.c (set_current_frame): Delete function.
716 2002-12-13 Andrew Cagney <ac131313@redhat.com>
718 * frame.c (frame_extra_info_zalloc): New function.
719 * frame.h (frame_extra_info_zalloc): Declare.
721 2002-12-13 Joel Brobecker <brobecker@gnat.com>
723 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
724 in the previous prototype change to set_momentary_breakpoint.
726 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
728 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
730 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
731 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
732 (stop_stepping): Remove outdated check for child vfork events.
734 2002-12-12 Andrew Cagney <ac131313@redhat.com>
736 * GDB 5.3 released from gdb_5_3-branch.
738 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
740 * corelow.c (init_core_ops): Delete references to to_require_attach
741 and to_require_detach.
742 * exec.c (init_exec_ops): Likewise.
743 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
744 hppa_require_detach directly.
745 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
746 * inftarg.c (child_detach): Remove.
747 (child_detach_from_process): Rename to child_detach, remove
749 (child_attach): Remove.
750 (child_attach_to_process): Rename to child_attach, remove after_fork
752 (init_child_ops): Delete references to to_require_attach
753 and to_require_detach.
754 * infttrace.c (hppa_require_attach): Update comment.
755 * target.c (cleanup_target, update_current_target)
756 (init_dummy_target, setup_target_debug): Delete references to
757 to_require_attach and to_require_detach.
758 (find_default_require_detach, find_default_require_attach)
759 (debug_to_require_attach, debug_to_require_detach): Remove
761 * target.h (struct target_ops): Remove to_require_attach
762 and to_require_detach.
763 (target_require_attach, target_require_detach): Delete macros.
764 (find_default_require_detach, find_default_require_attach): Delete
766 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
768 2002-12-11 Andrew Cagney <ac131313@redhat.com>
770 * frame.c (get_frame_extra_info): New function.
771 * frame.h (get_frame_extra_info): Declare.
773 2002-12-11 Andrew Cagney <ac131313@redhat.com>
775 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
776 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
777 with `struct frame_id'.
778 (set_longjmp_resume_breakpoint): Ditto.
779 * infrun.c (handle_inferior_event): Update.
780 * breakpoint.c (watch_command_1, until_break_command): Update.
781 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
782 (handle_inferior_event, step_over_function): Update.
783 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
784 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
785 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
786 * infcmd.c (finish_command, run_stack_dummy): Update.
788 2002-12-11 Kevin Buettner <kevinb@redhat.com>
790 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
791 (dwarf2_non_const_array_bound_ignored)
792 (dwarf2_missing_line_number_section)
793 (dwarf2_statement_list_fits_in_line_number_section)
794 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
795 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
796 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
797 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
798 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
799 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
800 (dwarf2_missing_member_fn_type_complaint)
801 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
802 (dwarf2_const_value_length_mismatch)
803 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
804 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
805 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
806 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
807 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
808 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
809 complaints using deprecated struct..
810 (dwarf2_non_const_array_bound_ignored_complaint)
811 (dwarf2_complex_location_expr_complaint)
812 (dwarf2_unsupported_at_frame_base_complaint)
813 (dwarf2_const_value_length_mismatch_complaint)
814 (dwarf2_macros_too_long_complaint)
815 (dwarf2_macro_malformed_definition_complaint)
816 (dwarf2_invalid_attrib_class_complaint): New functions.
817 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
818 (read_structure_scope, read_array_type, read_common_block)
819 (read_tag_pointer_type, read_base_type, read_partial_die)
820 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
821 (new_symbol, dwarf2_const_value, read_type_die)
822 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
823 (parse_macro_definition, dwarf_decode_macros): Replace calls to
824 complain() with, possibly indirect, calls to complaint().
826 2002-12-11 Andrew Cagney <cagney@redhat.com>
828 * frame.c (deprecated_get_frame_saved_regs): Rename
829 get_frame_saved_regs.
830 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
831 * sparc-tdep.c: Update.
832 * hppa-tdep.c: Update.
833 * h8500-tdep.c: Update.
835 2002-12-11 Kevin Buettner <kevinb@redhat.com>
837 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
838 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
839 ``char *'' for return and parameter types.
840 * gdbarch.h, gdbarch.c: Regenerate.
841 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
842 return type from ``char *'' to ``const char *''.
843 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
846 2002-12-11 Mark Kettenis <kettenis@gnu.org>
848 * i386-tdep.c: Include "dummy-frame.h".
849 (i386_frame_chain, i386_frame_saved_pc): Replace
850 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
851 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
853 2002-12-10 Andrew Cagney <cagney@redhat.com>
855 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
856 Change to a function with predicate.
857 * gdbarch.h, gdbarch.c: Re-generate.
858 * frame.c (get_prev_frame): Update. Test
859 DEPRECATED_INIT_FRAME_PC_P.
860 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
861 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
862 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
863 * alpha-tdep.c (alpha_gdbarch_init): Update.
864 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
865 * mips-tdep.c (mips_gdbarch_init): Update.
866 * i386-interix-tdep.c (i386_interix_init_abi): Update.
867 * arm-tdep.c: Update comments.
868 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
869 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
870 * frv-tdep.c (frv_gdbarch_init): Ditto.
871 * x86-64-tdep.c (x86_64_init_abi): Ditto.
872 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
873 * s390-tdep.c (s390_gdbarch_init): Ditto.
874 * v850-tdep.c (v850_gdbarch_init): Ditto.
875 * vax-tdep.c (vax_gdbarch_init): Ditto.
876 * sh-tdep.c (sh_gdbarch_init): Ditto.
877 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
879 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
880 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
881 * i386-tdep.c (i386_gdbarch_init): Ditto.
882 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
883 * cris-tdep.c (cris_gdbarch_init): Ditto.
884 * avr-tdep.c (avr_gdbarch_init): Ditto.
885 * arm-tdep.c (arm_gdbarch_init): Ditto.
886 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
887 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
889 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
891 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
893 * hppah-nat.c (saved_vfork_pid): Add.
894 (child_post_follow_vfork): Remove.
895 (child_follow_fork): New function.
896 (child_wait): Call detach_breakpoints after receiving the child vfork.
897 Call child_resume directly instead of going through resume ().
898 Make sure we have the exec before reporting the vfork.
899 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
900 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
901 (follow_fork): New function. Call target_follow_fork.
902 (follow_inferior_reset_breakpoints): New function broken out from
903 old follow_inferior_fork.
904 (resume): Remove hack to follow exec after vfork.
905 * inftarg.c (child_post_follow_vfork): Remove.
906 (child_follow_fork): New function.
907 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
908 * target.c (cleanup_target): Replace to_post_follow_vfork with
910 (update_current_target): Likewise.
911 (setup_target_debug): Likewise.
912 (debug_to_post_follow_vfork): Remove.
913 (debug_to_follow_fork): New function.
914 * target.h (struct target_ops): Replace to_post_folow_vfork with
916 (child_post_follow_vfork): Remove prototype.
917 (child_follow_fork): Add prototype.
918 (target_post_follow_vfork): Remove macro.
919 (target_follow_fork): Add macro.
921 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
923 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
924 (child_post_follow_vfork): Cancel pending exec event if we follow
926 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
927 events have been processed. Return a fake TARGET_WAITKIND_EXECD
928 event at the following wait call if necessary.
929 * infrun.c (follow_vfork): Don't follow_exec here.
930 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
931 case about HP/UX 10.20. Remove code pushed down to
932 hppah-nat.c:child_wait.
933 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
934 vfork_in_flight is set.
936 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
938 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
939 for the parent's fork event.
940 * infrun.c (handle_inferior_event): Only expect one fork event.
941 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
942 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
944 2002-12-10 Andrew Cagney <ac131313@redhat.com>
946 * PROBLEMS: Delete reference to PR gdb/725.
948 * MAINTAINERS (gdb.c++): Add David Carlton.
950 2002-12-09 David Carlton <carlton@math.stanford.edu>
952 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
953 * cli/cli-cmds.c: Ditto.
955 2002-12-09 Andrew Cagney <cagney@redhat.com>
957 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
958 function address in <>.
959 * gdbarch.c: Re-generate.
961 2002-12-09 David Carlton <carlton@math.stanford.edu>
963 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
965 2002-12-09 David Carlton <carlton@math.stanford.edu>
967 * linespec.c (symtab_from_filename): New function.
968 (decode_line_1): Move code into symtab_from_filename.
970 2002-12-09 Kevin Buettner <kevinb@redhat.com>
972 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
974 2002-12-07 Andrew Cagney <ac131313@redhat.com>
976 * f-valprint.c (info_common_command): Use get_frame_pc.
977 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
978 * ax-gdb.c (agent_command): Ditto.
979 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
980 (rs6000_pop_frame): Ditto.
981 (rs6000_frameless_function_invocation): Ditto.
982 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
983 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
984 * macroscope.c (default_macro_scope): Ditto.
985 * stack.c (print_frame_info_base): Ditto.
986 (print_frame, frame_info, print_frame_label_vars): Ditto.
987 (return_command, func_command, get_frame_language): Ditto.
988 * infcmd.c (finish_command): Ditto.
989 * dummy-frame.c (cached_find_dummy_frame): Ditto.
990 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
991 (break_at_finish_at_depth_command_1): Ditto.
992 (break_at_finish_command_1): Ditto.
993 (until_break_command, get_catch_sals): Ditto.
994 * blockframe.c (func_frame_chain_valid): Ditto.
995 (frameless_look_for_prologue): Ditto.
996 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
998 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1000 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1001 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1003 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1005 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1007 * gdbarch.h, gdbarch.c: Re-generate.
1008 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1009 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1011 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1012 declaration to a function returning a CORE_ADDR.
1013 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1014 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1015 (init_frame_pc_default): Ditto.
1016 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1017 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1018 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1019 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1020 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1021 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1023 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1024 to init_frame_pc_noop.
1025 (i386_interix_init_frame_pc): Delete function.
1026 * z8k-tdep.c (init_frame_pc): Delete function.
1027 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1028 (INIT_FRAME_PC_FIRST): Ditto.
1029 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1030 (INIT_FRAME_PC_FIRST): Ditto.
1031 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1032 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1034 (INIT_FRAME_PC_FIRST): Convert to an expression.
1035 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1037 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1039 * blockframe.c: Use get_frame_base instead of directly accessing
1040 the `struct frame_info' member frame.
1041 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1042 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1044 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1046 * Makefile.in (readline_h): Define.
1047 (completer.o): Depend on readline_h.
1049 (event-top.o): Ditto.
1056 (tracepoint.o): Ditto.
1058 (cli-dump.o): Ditto.
1059 (tui-hooks.o): Ditto.
1062 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1064 More cleanup from import of readline 4.3.
1065 * completer.h (complete_line, readline_line_completion_function):
1067 (line_completion_function): Removed, not used outside of completer.c.
1068 * completer.c (readline_line_completion_function,
1069 complete_function, line_completion_function): Use const for first
1071 (line_completion_function): Make static.
1072 (filename_completer): filename_completion_function is now called
1073 rl_filename_completion_function
1074 * corelow.c: Include <readline/readline.h>.
1080 * top.c (init_main): No need to coerce
1081 readline_line_completion_function anymore.
1082 * cli/cli-dump.c: Include <readline/readline.h>.
1084 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1086 * stack.c (frame_info): Use get_prev_frame.
1087 * blockframe.c (frame_address_in_block): Ditto.
1088 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1089 (rs6000_frameless_function_invocation): Ditto.
1090 (rs6000_frame_saved_pc): Ditto.
1091 (rs6000_frame_chain): Ditto.
1092 * arch-utils.c (init_frame_pc_default): Ditto.
1094 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1096 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1097 Delete redundant definition.
1099 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1101 Import of readline 4.3:
1102 * cli/cli-cmds.c: Include readline/tilde.h.
1103 * cli/cli-setshow.c: Ditto.
1104 * defs.h: Don't declare tilde_expand anymore, since readline
1107 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1109 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1110 -Werror on this file.
1112 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1114 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1116 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1117 * gdbarch.c: Regenerate.
1119 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1121 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1122 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1123 provide a default value.
1124 * gdbarch.h, gdbarch.c: Regenerate.
1125 * frame.c (get_prev_frame): Update. Check
1126 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1127 * s390-tdep.c (s390_gdbarch_init): Update.
1128 * mips-tdep.c (mips_gdbarch_init): Update.
1129 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1130 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1131 * alpha-tdep.c (alpha_gdbarch_init): Update.
1133 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1135 * ia64-linux-nat.c: Include gdb_string.h.
1136 * alpha-nat.c: Ditto.
1137 * ppc-linux-nat.c: Ditto.
1138 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1139 Update dependencies.
1141 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1143 * gdbthread.h: Include "frame.h".
1144 (struct thread_info): Replace step_frame_address with
1146 * inferior.h: Include "frame.h".
1147 (step_frame_id): Replace external variable step_frame_address.
1148 * gdbthread.h (save_infrun_state): Replace step_frame_address
1149 parameter with step_frame_id parameter.
1150 (load_infrun_state): Ditto.
1151 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1152 * infcmd.c (step_frame_id, step_1, step_once): Update.
1153 * thread.c (load_infrun_state, save_infrun_state): Update.
1154 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1155 (handle_inferior_event, step_over_function): Update.
1156 (normal_stop, context_switch, restore_inferior_status): Update.
1157 (struct inferior_status): Replace step_frame_address with
1160 2002-12-05 David Carlton <carlton@math.stanford.edu>
1162 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1163 DW_TAG_member as well as a declaration as being a C++ static data
1165 (read_structure_scope): Combine tests for DW_TAG_member and
1168 2002-12-05 David Carlton <carlton@math.stanford.edu>
1170 * linespec.c (decode_compound): New function.
1171 (decode_line_1): Move code into decode_compound.
1173 2002-12-05 David Carlton <carlton@math.stanford.edu>
1175 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1177 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1178 the static block. See PR gdb/804.
1180 2002-12-05 David Carlton <carlton@math.stanford.edu>
1182 * symtab.c (lookup_symbol_aux_block): New function.
1183 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1185 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1187 * gdbarch.sh: Dump the predicate function and macro values.
1188 (read): Print error on standard error.
1189 * gdbarch.c: Regenerate.
1191 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1193 * Makefile.in (mips_tdep_h): Define.
1194 (mips-tdep.o): Add mips_tdep_h to dependency list.
1195 * mips-tdep.h: New file.
1196 * mips-tdep.c (mips-tdep.h): Include.
1197 (enum mips_abi): Move to mips-tdep.h.
1198 (mips_abi): New function.
1200 2002-12-04 David Carlton <carlton@math.stanford.edu>
1202 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1204 2002-12-04 David Carlton <carlton@math.stanford.edu>
1206 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1208 (lookup_symbol_aux_minsyms): New function.
1210 2002-12-04 J. Brobecker <brobecker@gnat.com>
1212 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1214 2002-12-04 J. Brobecker <brobecker@gnat.com>
1216 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1217 which is an obsolete macro name.
1219 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1221 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1222 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1224 2002-12-03 H.J. Lu (hjl@gnu.org)
1226 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1227 (create_breakpoints): Make sure the addr_string field is not
1230 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1232 * sparc-nat.c (fetch_inferior_registers)
1233 (store_inferior_registers): Add comment on problem of LWP vs
1236 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1237 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1238 (lin_lwp_store_registers): Remove.
1239 (init_lin_lwp_ops): Use fetch_inferior_registers
1240 and store_inferior_registers directly.
1241 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1242 (store_inferior_registers): Likewise.
1245 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1247 * frame.h (get_frame_id): Convert to a function.
1248 (null_frame_id, frame_id_p): Declare.
1249 (frame_id_eq, frame_id_inner): Declare.
1250 (frame_id_build): New function.
1251 * frame.c (get_frame_id): Update. Use null_frame_id.
1252 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1254 (null_frame_id, frame_id_p): Define.
1255 (frame_id_eq, frame_id_inner): Define.
1256 (frame_id_build): New function.
1257 * varobj.c (varobj_create): Update.
1258 (varobj_update): Update.
1259 * valops.c (value_assign): Update.
1260 (new_root_variable): Update.
1261 * infrun.c (save_inferior_status): Update.
1262 * breakpoint.c (watch_command_1): Update.
1264 2002-12-03 J. Brobecker <brobecker@gnat.com>
1266 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1269 2002-12-03 Andrew Cagney <cagney@redhat.com>
1271 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1274 * PROBLEMS: Mention PR gdb/725.
1276 2002-12-03 Andreas Schwab <schwab@suse.de>
1278 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1280 2002-12-02 Adam Fedor <fedor@gnu.org>
1281 Klee Dienes <kdienes@apple.com>
1283 * objc-lang.c (objc_printstr): Add width arg to match
1285 (compare_selectors): Add 'const' to arg types.
1286 (compare_classes): Likewise.
1287 (find_imps): Cast msym pointer to avoid compiler warning.
1288 (print_object_command): Validate the address before
1289 passing it to the print routine.
1290 (find_objc_msgcall_submethod): Change function argument to
1292 * objc-lang.h: Add 'extern' to all function declarations.
1293 (value_nsstring): Add declaration.
1295 2002-12-02 J. Brobecker <brobecker@gnat.com>
1297 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1298 Fixes a build failure on HP/UX.
1300 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1302 (hpread_has_name): Advance declaration to avoid a compilation warning.
1303 (pst_syms_count): Add missing variable type. By change, the compiler
1304 was defaulting to int, which seems a good choice. Fixes a compilation
1306 (pst_syms_size): Likewise.
1308 2002-12-02 J. Brobecker <brobecker@gnat.com>
1310 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1311 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1312 later to set the proper gdbarch methods depending on the osabi.
1313 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1315 2002-12-02 J. Brobecker <brobecker@gnat.com>
1317 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1318 * osabi.c (gdb_osabi_name): Add strings images for the two new
1320 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1322 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1324 * MAINTAINERS (Java): Global maintainers are responible for Java.
1325 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1326 part Java maintainers.
1328 2002-12-02 J. Brobecker <brobecker@gnat.com>
1330 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1331 Fixes a compilation failure on AiX.
1333 2002-12-02 J. Brobecker <brobecker@gnat.com>
1335 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1336 why aix-thread.o is not listed.
1338 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1340 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1341 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1342 * gdbarch.h, gdbarch.c: Re-generate.
1343 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1344 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1345 * config/pa/tm-hppa.h, frame.h: Update.
1346 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1347 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1348 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1349 * cris-tdep.c, alpha-tdep.c: Update.
1350 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1351 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1352 (get_prev_frame): Ditto.
1354 2002-11-30 Andrew Cagney <cagney@redhat.com>
1356 * exec.c (xfer_memory): Replace boolean with int.
1357 * p-exp.y: Use 0 instead of false.
1358 * corelow.c (gdb_check_format): Change return type to int from
1360 * utils.c: Don't include <curses.h> or <term.h> first.
1362 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1364 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1365 (m68hc11_register_byte): Remove.
1366 (m68hc11_gdbarch_init): Don't set the above.
1368 2002-11-29 Andrew Cagney <cagney@redhat.com>
1370 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1371 by calling get_selected_frame.
1372 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1373 set_current_frame, create_new_frame, select_frame and
1375 * remote-e7000.c (e7000_start_remote): Ditto.
1376 * remote-mips.c (common_open): Ditto
1377 * remote-rdp.c (remote_rdp_open): Ditto.
1379 2002-11-29 Andreas Schwab <schwab@suse.de>
1381 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1382 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1383 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1384 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1385 read_memory_unsigned_integer instead of read_memory_integer when
1386 dealing with addresses and instruction opcodes.
1387 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1388 (m68k_linux_frame_saved_pc): Likewise.
1390 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1392 * stack.c (selected_frame, select_frame): Move from here ...
1393 * frame.c (selected_frame, select_frame): ... to here. Include
1395 * Makefile.in (frame.o): Update dependencies.
1396 * frame.c (get_selected_frame): New function.
1397 * frame.h (get_selected_frame): Declare.
1398 (deprecated_selected_frame): Rename selected_frame.
1399 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1400 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1401 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1402 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1403 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1404 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1405 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1406 * z8k-tdep.c, cli/cli-cmds.c: Update.
1408 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1410 * frame.h (get_selected_block): Add comments.
1412 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1414 * frame.c (pc_notcurrent): New function.
1415 (find_frame_sal): New function.
1416 * frame.h (find_frame_sal): Declare.
1417 (struct symtab_and_line): Add opaque declaration.
1418 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1420 (frame_info): Ditto.
1421 * ada-lang.c (find_printable_frame): Ditto.
1423 2002-11-28 J. Brobecker <brobecker@gnat.com>
1425 * configure.in: Check that the pthdebug library is recent enough
1426 before enabling thread support on native AiX.
1427 * configure: Regenerate.
1429 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1430 from the list of object files as it is now appended by configure
1431 if thread support is enabled.
1432 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1433 if thread support is enabled.
1435 2002-11-28 Andrew Cagney <cagney@redhat.com>
1437 * stack.c (get_selected_block): In-line get_current_block.
1438 * frame.h (get_current_block): Delete declaration.
1439 * blockframe.c (get_current_block): Delete function.
1441 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1443 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1444 USE_GENERIC_DUMMY_FRAMES.
1445 * gdbarch.h, gdbarch.c: Regenerate.
1446 * valops.c, frame.c: Update.
1447 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1448 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1449 * config/pa/tm-hppa.h, blockframe.c: Update.
1450 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1451 * m68k-tdep.c, alpha-tdep.c: Ditto.
1453 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1454 * mips-tdep.c: Ditto.
1456 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1458 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1459 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1460 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1461 * gdbarch.c, gdbarch.h: Re-generate.
1462 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1463 (CALL_DUMMY_LOCATION): Delete macro definition.
1464 (PC_IN_CALL_DUMMY): Delete macro definitions.
1466 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1467 default is already generic_pc_in_call_dummy.
1468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1469 * v850-tdep.c (v850_gdbarch_init): Ditto.
1470 * sh-tdep.c (sh_gdbarch_init): Ditto.
1471 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1472 * mips-tdep.c (mips_gdbarch_init): Ditto.
1473 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1475 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1476 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1478 * avr-tdep.c (avr_gdbarch_init): Ditto.
1480 * arm-tdep.c (arm_gdbarch_init): Do not set
1481 use_generic_dummy_frames, default is already 1.
1482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1483 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1484 * v850-tdep.c (v850_gdbarch_init): Ditto.
1485 * sh-tdep.c (sh_gdbarch_init): Ditto.
1486 * s390-tdep.c (s390_gdbarch_init): Ditto.
1487 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1488 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1489 * mips-tdep.c (mips_gdbarch_init): Ditto.
1490 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1492 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1493 * i386-tdep.c (i386_gdbarch_init): Ditto.
1494 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1495 * frv-tdep.c (frv_gdbarch_init): Ditto.
1496 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1497 * cris-tdep.c (cris_gdbarch_init): Ditto.
1498 * avr-tdep.c (avr_gdbarch_init): Ditto.
1500 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1501 call_dummy_location, default is already AT_ENTRY_POINT.
1502 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1503 * v850-tdep.c (v850_gdbarch_init): Ditto.
1504 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1505 * sh-tdep.c (sh_gdbarch_init): Ditto.
1506 * s390-tdep.c (s390_gdbarch_init): Ditto.
1507 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1508 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1509 * mips-tdep.c (mips_gdbarch_init): Ditto.
1510 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1511 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1512 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1513 * i386-tdep.c (i386_gdbarch_init): Ditto.
1514 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1515 * frv-tdep.c (frv_gdbarch_init): Ditto.
1516 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1517 * cris-tdep.c (cris_gdbarch_init): Ditto.
1518 * avr-tdep.c (avr_gdbarch_init): Ditto.
1519 * arm-tdep.c (arm_gdbarch_init): Ditto.
1520 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1522 2002-11-28 Andrew Cagney <cagney@redhat.com>
1524 * frame.h: Update comments on set_current_frame, create_new_frame,
1525 flush_cached_frames, reinit_frame_cache, select_frame and
1528 2002-11-27 Andrew Cagney <cagney@redhat.com>
1530 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1531 deprecated pc_in_call_dummy function.
1532 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1533 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1534 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1535 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1536 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1538 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1540 * Makefile.in: Remove Tix dependencies.
1541 * acinclude.m4: Ditto.
1542 * aclocal.m4: Ditto.
1543 * configure.in: Ditto.
1544 * configure: Regenerated.
1546 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1548 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1549 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1550 * gdbarch.c: Re-generate.
1552 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1554 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1555 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1556 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1557 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1558 pc_in_call_dummy_at_entry_point.
1559 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1560 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1561 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1562 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1563 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1564 pc_in_call_dummy_on_stack.
1565 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1566 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1567 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1568 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1569 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1571 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1573 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1574 pc_in_call_dummy_before_text_end
1575 (deprecated_pc_in_call_dummy_after_text_end): Rename
1576 pc_in_call_dummy_after_text_end.
1577 (deprecated_pc_in_call_dummy_on_stack): Rename
1578 pc_in_call_dummy_on_stack.
1579 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1580 pc_in_call_dummy_at_entry_point.
1581 * m68k-tdep.c (m68k_gdbarch_init): Update.
1582 * s390-tdep.c (s390_gdbarch_init): Update.
1583 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1584 * vax-tdep.c (vax_gdbarch_init): Update.
1585 * sparc-tdep.c (sparc_gdbarch_init): Update.
1586 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1588 * i386-tdep.c (i386_gdbarch_init): Update.
1589 * frv-tdep.c (frv_gdbarch_init): Update.
1590 * cris-tdep.c (cris_gdbarch_init): Update.
1591 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1592 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1593 (deprecated_pc_in_call_dummy_after_text_end)
1594 (deprecated_pc_in_call_dummy_on_stack)
1595 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1596 * alpha-tdep.c (alpha_gdbarch_init): Update.
1598 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1600 * acconfig.h (HAVE_PREAD64): Add.
1601 * configure.in: Check for pread64.
1602 * config.in: Regenerated.
1603 * configure: Regenerated.
1604 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1605 * linux-proc.c (linux_proc_xfer_memory): New function.
1606 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1608 2002-11-25 David Carlton <carlton@math.stanford.edu>
1610 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1613 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1615 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1616 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1618 2002-11-25 Jim Blandy <jimb@redhat.com>
1620 * symfile.c (init_objfile_sect_indices): New function.
1621 (default_symfile_offsets): Move the section-index-initializing
1622 stuff into init_objfile_sect_indices, and call that.
1624 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1625 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1627 * symfile.c (syms_from_objfile): Adjust indentation.
1629 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1630 || info_verbose isn't true.
1632 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1634 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1635 default to get_frame_base.
1636 * gdbarch.h, gdbarch.c: Regenerate.
1637 * arch-utils.c (default_frame_address): Delete function.
1638 * arch-utils.h (default_frame_address): Delete declaration
1640 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1642 * varobj.c (find_frame_addr_in_frame_chain):
1643 Use get_frame_base instead of FRAME_FP,
1646 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1648 * frame.h (FRAME_FP): Delete macro.
1649 (get_frame_base): New function declaration.
1650 * frame.c (get_frame_base): New function.
1651 (get_frame_id): Use ->frame.
1652 (frame_find_by_id): Rewrite to use get_frame_id.
1653 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1654 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1655 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1656 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1657 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1658 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1659 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1661 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1663 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1665 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1667 * frame.c (set_unwind_by_pc): Revert change below, use
1669 (get_prev_frame): Ditto.
1671 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1673 * dummy-frame.c (pc_in_dummy_frame): New function.
1674 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1675 (find_dummy_frame): Update comment.
1676 (generic_pop_current_frame): Use get_frame_type.
1677 * dummy-frame.h (pc_in_dummy_frame): Declare.
1678 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1679 (create_new_frame): Use pc_in_dummy_frame.
1680 (get_prev_frame): Use pc_in_dummy_frame.
1681 (frame_saved_regs_register_unwind): Use get_prev_frame.
1682 (deprecated_generic_get_saved_register): Use get_prev_frame.
1684 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1686 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1688 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1689 (varobj_create): Note that frame ID should be used.
1690 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1692 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1694 * breakpoint.c: Include "gdb_assert.h".
1695 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1697 * Makefile.in (breakpoint.o): Update dependencies.
1698 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1699 deprecated_frame_in_dummy.
1700 * stack.c (print_frame_info_base): Ditto.
1701 (frame_info): Ditto.
1702 (print_frame_info_base): Ditto. Delete dead code.
1704 2002-11-23 Andreas Schwab <schwab@suse.de>
1706 * Makefile.in (m68k_tdep_h): Define.
1707 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1708 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1709 * m68k-tdep.c: Move register number enum ...
1710 * m68k-tdep.h: ... to this new file and rename the constants from
1711 E_* to M68K_*. All uses changed.
1712 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1713 * abug-rom.c: Include "m68k-tdep.h". Use
1714 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1715 * cpu32bug-rom.c: Likewise.
1716 * dbug-rom.c: Likewise.
1717 * m68k-tdep.c: Likewise.
1718 * m68klinux-nat.c: Likewise.
1719 * remote-est.c: Likewise.
1720 * rom68k-rom.c: Likewise.
1721 * config/m68k/tm-linux.h: Likewise.
1723 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1725 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1726 dummy frame initialization code.
1727 * mips-tdep.c (mips_gdbarch_init): Ditto.
1729 2002-11-22 Christopher Faylor <cgf@redhat.com>
1731 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1734 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1736 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1737 to default_frame_address.
1738 * gdbarch.h, gdbarch.c: Re-generate.
1740 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1741 or frame_locals_address to default_frame_address.
1742 * m68k-tdep.c (m68k_gdbarch_init): Update.
1743 * i386-tdep.c (i386_gdbarch_init): Update.
1744 * frv-tdep.c (frv_gdbarch_init): Update.
1745 * sh-tdep.c (sh_gdbarch_init): Update.
1746 * v850-tdep.c (v850_gdbarch_init): Update.
1747 * sparc-tdep.c (sparc_gdbarch_init): Update.
1748 * mips-tdep.c (mips_gdbarch_init): Update.
1749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1750 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1753 * cris-tdep.c (cris_frame_args_address): Delete function.
1754 (cris_frame_locals_address): Delete function.
1755 (cris_gdbarch_init): Do not set frame_args_address or
1756 frame_locals_address.
1758 2002-11-22 Michael Snyder <msnyder@redhat.com>
1760 * thread-db.c (thread_db_load): Tell the user what's going on
1761 if dlopen fails on libthread_db.
1763 2002-11-23 Andreas Schwab <schwab@suse.de>
1765 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1766 invariant return values.
1768 2002-11-22 Andreas Schwab <schwab@suse.de>
1770 * valops.c (value_slice): Move declaration of `offset' to avoid
1773 2002-11-22 Christopher Faylor <cgf@redhat.com>
1775 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1776 (struct so_stuff): Add end_addr field.
1777 (register_loaded_dll): Calculate and store end address of loaded dll.
1778 (solib_address): New function.
1779 (child_solib_loaded_library_pathname): Pass carefully constructed
1780 section info to safe_symbol_file_add rather than ignoring it.
1781 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1783 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1784 (child_create_inferior): Fix a compiler warning.
1785 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1786 (solib_address): Declare new function.
1788 2002-11-22 Andreas Schwab <schwab@suse.de>
1790 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1793 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1795 * maint.c (_initialize_maint_cmds): Fix typo. From
1796 Francesco Potorti` <pot@gnu.org>.
1798 2002-11-21 Andrew Cagney <cagney@redhat.com>
1800 * mips-tdep.c (mips_dump_tdep): Delete references to
1801 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1802 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1803 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1804 * printcmd.c (build_address_symbolic): Delete calls to
1805 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1806 (address_info): Ditto.
1809 2002-11-19 Klee Dienes <kdienes@apple.com>
1810 Adam Fedor <fedor@gnu.org>
1812 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1813 the ability to explicitly specify the quote characters and word
1814 break characters; if NULL is specified for either, use the old
1815 behavior of using the characters used by the completer.
1816 (skip_chars): New function. Convenience wrapper around
1817 skip_quoted_chars to provide the original skip_chars behavior.
1818 * completer.h (skip_quoted_chars): Add prototype.
1820 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1822 Problems reported by Paul Eggert.
1823 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1825 2002-11-19 Andreas Schwab <schwab@suse.de>
1827 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1828 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1829 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1830 (m68k_linux_frame_saved_pc): Move to ...
1831 * m68klinux-tdep.c: ... here. New file.
1832 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1833 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1835 2002-11-19 Adam Fedor <fedor@gnu.org>
1837 * objc-exp.y: Revert to old skip_quoted usage.
1839 2002-11-19 Adam Fedor <fedor@gnu.org>
1841 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1842 (objc_lang_h): Define.
1843 (YYFILES): Add objc-exp.tab.c.
1844 (local-maintainer-clean): Remove objc-exp.tab.c.
1845 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1847 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1849 * p-exp.y (typecast rule): Add automatic dereference of
1850 pascal classes if needed.
1851 (THIS): Set current_type.
1852 Automatically dereference pascal classes.
1853 (typebase rule): Add ^typebase recognition.
1855 2002-11-18 Adam Fedor <fedor@gnu.org>
1857 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1858 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1859 (op_name): Handle OP_OBJC_SELF.
1860 * Makefile.in (expprint.o): Add additional depends.
1862 2002-11-18 Adam Fedor <fedor@gnu.org>
1864 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1865 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1866 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1867 * objc-exp.y: Likewise.
1869 2002-11-18 Adam Fedor <fedor@gnu.org>
1871 * gdb/parser-defs.h: (struct objc_class_str): New structure
1872 for parsing ObjC classes.
1874 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1876 * stack.c (frame_relative_level): Copy function from here ...
1877 * frame.c (frame_relative_level): ...to here.
1879 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1881 * frame.h (enum frame_type): Define.
1882 (get_frame_type): Declare.
1883 (struct frame_info): Add field `type'. Delete field
1884 signal_handler_caller.
1885 (deprecated_set_frame_signal_handler_caller): Declare.
1886 * frame.c (get_frame_type): New function.
1887 (deprecated_set_frame_type): New function.
1888 (create_new_frame): Set the frame's type.
1889 (get_prev_frame): Similar.
1890 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1891 * s390-tdep.c: Ditto.
1892 * m68klinux-nat.c: Ditto.
1893 * ns32k-tdep.c: Ditto.
1894 * x86-64-linux-tdep.c: Ditto.
1895 * vax-tdep.c: Ditto.
1896 * rs6000-tdep.c: Ditto.
1897 * ppc-linux-tdep.c: Ditto.
1898 * i386-interix-tdep.c: Ditto.
1899 * mips-tdep.c: Ditto.
1900 * m68k-tdep.c: Ditto.
1901 * hppa-tdep.c: Ditto.
1902 * ia64-tdep.c: Ditto.
1903 * cris-tdep.c: Ditto.
1904 * arm-tdep.c: Ditto.
1905 * alpha-tdep.c: Ditto.
1906 * i386-tdep.c: Ditto.
1908 * ada-lang.c: Ditto.
1909 * blockframe.c: Update.
1910 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1911 deprecated_set_frame_type instead of signal_handler_caller.
1912 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1913 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1914 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1916 2002-11-18 Klee Dienes <kdienes@apple.com>
1918 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1920 2002-11-18 Klee Dienes <kdienes@apple.com>
1922 * buildsym.c (pop_context): Add comment.
1924 2002-11-18 Klee Dienes <kdienes@apple.com>
1926 * buildsym.h (pop_context): Convert to function, defined in
1928 * buildsym.c: Include gdb_assert.h.
1929 (pop_context): Implement as C function. Add check for stack
1931 * dbxread.c (process_one_symbol): Complain and stop processing
1932 that symbol if we are already at the top of the context stack for
1933 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1934 when processing N_RBRAC.
1936 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1938 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1940 (struct target_waitstatus): Add opaque definition.
1941 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1942 * exec.c (init_exec_ops): Likewise.
1943 * fork-child.c (clone_and_follow_inferior): Remove.
1944 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1945 * inferior.h (clone_and_follow_inferior): Remove prototype.
1946 * infrun.c (follow_fork_mode_both): Remove.
1947 (follow_fork_mode_kind_names): Remove commented out "both".
1948 (follow_inferior_fork): Remove follow_fork_mode_both support.
1949 * inftarg.c (child_clone_and_follow_inferior): Remove.
1950 (child_post_follow_inferior_by_clone): Remove.
1951 (init_child_ops): Don't set to_clone_and_follow_inferior
1952 or to_post_follow_inferior_by_clone.
1953 * target.c (default_clone_and_follow_inferior): Remove.
1954 (cleanup_target): Don't set to_clone_and_follow_inferior
1955 or to_post_follow_inferior_by_clone.
1956 (find_default_clone_and_follow_inferior): Remove.
1957 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1958 (debug_to_clone_and_follow_inferior): Remove.
1959 (debug_to_post_follow_inferior_by_clone): Remove.
1960 (setup_target_debug): Don't set to_clone_and_follow_inferior
1961 or to_post_follow_inferior_by_clone.
1962 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1963 and to_post_follow_inferior_by_clone.
1964 (child_clone_and_follow_inferior): Remove prototype.
1965 (child_post_follow_inferior_by_clone): Remove prototype.
1966 (target_clone_and_follow_inferior): Remove macro.
1967 (target_post_follow_inferior_by_clone): Remove macro.
1968 (find_default_clone_and_follow_inferior): Remove prototype.
1970 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1972 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1973 inferior_has_vforked, and inferior_has_execd instead of
1974 target_has_forked, target_has_vforked, and target_has_execd.
1975 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1976 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1977 (CHILD_WAIT): Define.
1978 (child_wait): Add prototype.
1979 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1981 (hpux_has_vforked): Likewise, from child_has_vforked.
1982 (hpux_has_execd): Likewise, from child_has_execd.
1983 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1984 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1985 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1986 and hpux_has_syscall_event instead of the target hooks.
1987 * infrun.c (inferior_has_forked, inferior_has_vforked)
1988 (inferior_has_execd): New functions.
1989 * inftarg.c (not_same_real_pid): Remove.
1990 (child_wait): Remove references to not_same_real_pid,
1991 target_has_forked, target_has_vforked, target_has_execd,
1992 and target_has_syscall_event.
1993 (child_has_forked, child_has_vforked, child_has_execd)
1994 (child_has_syscall_event): Remove.
1995 (init_child_ops): Remove references to child_has_forked,
1996 child_has_vforked, child_has_execd, and child_has_syscall_event.
1997 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1998 (hpux_has_vforked): Likewise, from child_has_vforked.
1999 (hpux_has_execd): Likewise, from child_has_execd.
2000 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2001 * target.c (cleanup_target): Remove references to
2002 to_has_forked, to_has_vforked, to_has_execd, and
2003 to_has_syscall_event.
2004 (update_current_target): Likewise.
2005 (setup_target_debug): Likewise.
2006 (debug_to_has_forked): Remove.
2007 (debug_to_has_vforked): Remove.
2008 (debug_to_has_execd): Remove.
2009 (debug_to_has_syscall_event): Remove.
2010 * target.h (struct target_ops): Remove to_has_forked.
2011 to_has_vforked, to_has_execd, and to_has_syscall_event.
2012 (child_has_forked, child_has_vforked, child_has_execd)
2013 (child_has_syscall_event): Remove prototypes.
2014 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2016 (target_has_forked, target_has_vforked, target_has_execd)
2017 (target_has_syscall_event): Remove macros.
2019 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2021 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2022 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2023 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2024 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2025 * target.c (cleanup_target): Remove reference to
2026 to_can_follow_vfork_prior_to_exec.
2027 (update_current_target): Likewise.
2028 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2029 (setup_target_debug): Remove reference to
2030 to_can_follow_vfork_prior_to_exec.
2031 * target.h (struct target_ops): Remove
2032 to_can_follow_vfork_prior_to_exec.
2033 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2034 (target_can_follow_vfork_prior_to_exec): Remove definition.
2035 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2037 * infrun.c (follow_vfork_when_exec): Remove.
2038 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2039 (follow_exec): Likewise.
2040 (handle_inferior_event): Likewise.
2041 (keep_going): Likewise.
2043 2002-11-15 Andrew Cagney <cagney@redhat.com>
2045 * frame.c (generic_unwind_get_saved_register): Make static.
2046 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2047 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2048 defaults to generic_unwind_get_saved_register.
2049 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2051 * frv-tdep.c (frv_gdbarch_init): Ditto.
2052 * i386-tdep.c (i386_gdbarch_init): Ditto.
2053 * s390-tdep.c (s390_gdbarch_init): Ditto.
2054 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2055 * v850-tdep.c (v850_gdbarch_init): Ditto.
2056 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2057 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2058 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2060 2002-11-15 Andrew Cagney <cagney@redhat.com>
2062 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2065 2002-11-15 Andrew Cagney <cagney@redhat.com>
2067 * frame.h (sigtramp_saved_pc): Delete declaration.
2068 * blockframe.c (sigtramp_saved_pc): Delete function.
2069 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2070 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2071 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2072 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2074 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2076 * frame.c (frame_pc_unwind): New function.
2077 (frame_saved_regs_pc_unwind): New function.
2078 (frame_register_unwind): Pass unwind_cache instead of
2079 register_unwind_cache.
2080 (set_unwind_by_pc): Add unwind_pc parameter, set.
2081 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2082 (get_prev_frame): Ditto.
2083 * frame.h (frame_pc_unwind_ftype): Declare.
2084 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2085 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2086 (frame_pc_unwind): Declare.
2087 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2088 (struct dummy_frame): Add comment mentioning that values are for
2090 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2091 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2092 (generic_file_frame_chain_valid): Ditto.
2093 * stack.c (frame_info): Ditto.
2095 2002-11-15 David Carlton <carlton@math.stanford.edu>
2097 * linespec.c (locate_first_half): New function.
2098 (decode_line_1): Move code into locate_first_half.
2100 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2102 * complaints.h: Add comment explaining how to eliminate a
2103 deprecated_complain call.
2104 * complaints.h: Fix spelling errors.
2106 2002-11-15 David Carlton <carlton@math.stanford.edu>
2108 * printcmd.c: Remove #include "disasm.h".
2110 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2112 * frame.h: Move the most relevant interface functions to the start
2115 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2117 * regcache.h (deprecated_registers): Rename registers.
2118 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2119 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2120 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2121 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2122 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2123 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2124 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2125 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2126 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2127 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2128 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2129 * v850ice.c: Update.
2131 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2133 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2136 2002-11-13 Andrew Cagney <cagney@redhat.com>
2138 * regcache.h (deprecated_read_register_bytes): Rename
2139 read_register_bytes.
2140 (deprecated_write_register_bytes): Rename write_register_bytes.
2141 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2142 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2143 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2144 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2145 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2146 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2147 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2148 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2149 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2150 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2151 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2152 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2153 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2154 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2156 2002-11-13 Jim Blandy <jimb@redhat.com>
2158 * findvar.c (read_var_value): Doc fix.
2160 2002-11-13 Andrew Cagney <cagney@redhat.com>
2162 * regcache.c (struct regcache): Replace passthough_p with
2164 (regcache_xmalloc): Initialize readonly_p.
2165 (build_regcache): Initialize readonly_p.
2166 (regcache_save): New function.
2167 (regcache_restore): New function.
2168 (regcache_cpy): Re-implement using regcache_save and
2170 (regcache_raw_read): Update.
2171 (regcache_cooked_read): When a read-only cache, checked for cached
2172 pseudo register values.
2173 (regcache_raw_write): Assert that the cache is not read-only.
2174 Remove code handling a non-passthrough cache.
2175 * regcache.h (regcache_save): Declare.
2176 (regcache_restore): Declare.
2178 2002-11-13 Andrew Cagney <cagney@redhat.com>
2180 * regcache.c (struct regcache_descr): Add fields
2181 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2182 (init_legacy_regcache_descr): Compute the size of a cooked
2183 register cache and then assign that to sizeof_raw_registers. Set
2184 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2185 (init_legacy_regcache_descr): Ditto.
2187 2002-11-13 Andrew Cagney <cagney@redhat.com>
2189 * regcache.c (register_buffer): Move to near start of file, update
2191 (regcache_raw_read): Use.
2192 (regcache_raw_write): Use.
2193 (struct regcache): Rename raw_registers to registers and
2194 raw_register_valid_p to register_valid_p.
2195 (regcache_xmalloc): Update.
2196 (regcache_xfree): Update.
2197 (register_buffer): Update.
2198 (regcache_cpy): Update.
2199 (regcache_cpy_no_passthrough): Update.
2200 (regcache_valid_p): Update.
2201 (deprecated_grub_regcache_for_registers): Update.
2202 (deprecated_grub_regcache_for_register_valid): Update.
2203 (set_register_cached): Update.
2204 (regcache_raw_write): Update.
2206 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2208 * p-exp.y (name_not_typename): Use copy_name to
2209 set current_type variable for fields of THIS.
2211 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2213 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2214 * monitor.c (init_base_monitor_ops): Likewise.
2215 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2216 * remote-array.c (init_array_ops): Likewise.
2217 * remote-e7000.c (init_e7000_ops): Likewise.
2218 * remote-es.c (init_es1800_ops): Likewise.
2219 (init_es1800_child_ops): Likewise.
2220 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2221 * remote-sim.c (init_gdbsim_ops): Likewise.
2222 * remote-st.c (init_st2000_ops): Likewise.
2223 * sol-thread.c (init_sol_core_ops): Likewise.
2224 (init_sol_thread_ops): Likewise.
2225 * v850ice.c (init_850ice_ops): Likewise.
2226 * win32-nat.c (init_child_ops): Likewise.
2227 * wince.c (init_child_ops): Likewise.
2229 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2231 * utils.c (gdb_realpath): Make rp a constant pointer.
2233 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2235 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2236 a constant buffer; cannonicalize_file_name(); realpath() with a
2237 pathconf() defined buffer, xstrdup().
2239 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2241 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2242 to hang2.C; hang3.c to hang3.C.
2244 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2246 * findvar.c (read_var_value): Reenable TLS code.
2248 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2249 Jim Blandy <jimb@redhat.com>
2251 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2252 * target.c (update_current_target): Add
2253 to_get_thread_local_address.
2254 * target.h (to_get_thread_local_address): Export.
2255 (target_get_thread_local_address): Define.
2256 (target_get_thread_local_address_p): Define.
2257 * thread-db.c: Include solib-svr4.h.
2258 (td_thr_tls_get_addr_p): Define.
2259 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2260 (thread_db_get_thread_local_address): New function.
2261 (init_thread_db_ops): Initialize to_get_thread_local_address.
2262 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2263 * configure: Regenerate.
2264 * config.in: Regenerate.
2266 2002-11-11 David Carlton <carlton@math.stanford.edu>
2268 * linespec.c (set_flags): New function.
2269 (decode_line_1): Move code into set_flags.
2271 2002-11-11 David Carlton <carlton@math.stanford.edu>
2273 * linespec.c (decode_line_1): Move chunks of code to separate
2275 (initialize_defaults): New function.
2276 (decode_indirect): New function.
2278 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2280 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2281 instead of void_code_ptr.
2282 (sigtramp_saved_pc): Ditto.
2284 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2287 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2289 * gdbtypes.h (struct main_type): Move artificial flag out of
2290 loc. New member of ``struct field'' named static_kind. Reduce
2291 overloaded meaning of bitsize.
2292 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2293 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2294 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2296 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2298 (template_to_fixed_record_type, template_to_static_fixed_type)
2299 (to_record_with_fixed_variant_part): Likewise.
2300 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2301 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2302 * dwarfread.c (struct_type, enum_type): Likewise.
2303 * hpread.c (hpread_read_enum_type)
2304 (hpread_read_function_type, hpread_read_doc_function_type)
2305 (hpread_read_struct_type): Likewise.
2306 * mdebugread.c (parse_symbol): Likewise.
2308 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2310 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2311 * stack.c (print_frame_info_base): Update.
2312 (print_frame_info_base, frame_info): Update.
2313 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2314 (sparc_frame_saved_pc): Update.
2315 * ada-lang.c (find_printable_frame): Update.
2316 * breakpoint.c (deprecated_frame_in_dummy): Update.
2318 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2320 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2322 (regmap): Extend to cover all registers.
2323 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2324 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2326 (fetch_register, sore_register): Simplify.
2327 (old_fetch_inferior_registers, old_store_inferior_registers):
2329 (cannot_fetch_register, cannot_store_register): Change
2330 implementation to use regmap array to decide which registers
2331 cannot be fetched/stored. This removes $orig_eax from the
2332 registers that cannot be fetched/stored.
2333 (fetch_inferior_registers): Call fetch_register directly instead
2334 of calling old_fetch_inferior_registers.
2335 (store_inferior_registers): Call store_register directly instead
2336 of calling old_store_inferior_registers.
2337 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2338 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2339 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2341 2002-11-09 Klee Dienes <kdienes@apple.com>
2343 * i387-tdep.c (i387_supply_register): When called with NULL as a
2344 buffer, mark the register as not provided (to mirror the behavior
2345 of supply_register).
2346 (i387_supply_fxsave): Ditto.
2347 (i387_supply_fsave): Ditto (inherits the behavior from
2348 i387_supply_register).
2350 2002-11-09 Klee Dienes <kdienes@apple.com>
2352 * blockframe.c (sigtramp_saved_pc): Use
2353 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2354 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2355 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2357 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2359 * frame.c (get_prev_frame): Test prev_p to identify a previously
2360 unwound frame. Initialize prev_p.
2361 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2364 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2366 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2367 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2368 more comments. Zap dead code.
2370 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2372 * infcmd.c (print_vector_info, print_float_info): Move code that
2373 checks whether the target has any registers and whether there is a
2374 selected frame up, such that it is also used if a target provides
2375 multi-arch definitions of these functions.
2377 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2379 * Makefile.in (DESTDIR): Define.
2380 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2383 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2384 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2386 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2388 * i386-linux-tdep.c: Include "reggroups.h".
2389 (i386_linux_register_reggroup_p): New function.
2390 (i386_linux_init_abi): Set register_reggroup_p to
2391 i386_linux_register_reggroup_p.
2392 * i386-tdep.h (i386_register_reggroup_p): Declare.
2393 * i386-tdep.c: Include "reggroups.h".
2394 (i386_init_reggroups): New function.
2395 (i386_add_reggroups): New function.
2396 (i386_register_reggroup_p): New function.
2397 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2398 (_initialize_i386_tdep): Call i386_init_reggroups.
2399 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2402 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2404 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2405 request that's available in *BSD.
2407 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2409 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2412 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2414 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2415 * dummy-frame.c (find_dummy_frame): Rename
2416 generic_find_dummy_frame, make static. Return the dummy frame
2417 instead of the regcache.
2418 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2419 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2420 (dummy_frame_register_unwind): Rename
2421 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2422 * dummy-frame.h (dummy_frame_register_unwind): Rename
2423 generic_call_dummy_register_unwind.
2425 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2427 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2428 except the inclusion of "i386/tm-i386.h", to...
2429 * config/i386/nm-i386v42mp.h: ...here.
2430 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2432 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2434 * Makefile.in (frame.o): Update dependencies.
2435 * blockframe.c (current_frame, frame_obstack_alloc)
2436 (frame_saved_regs_zalloc, get_current_frame)
2437 (set_current_frame, create_new_frame)
2438 (set_unwind_by_pc, get_next_frame)
2439 (flush_cached_frames, reinit_frame_cache)
2440 (frame_saved_regs_register_unwind)
2441 (deprecated_generic_get_saved_register)
2442 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2443 (_initialize_blockframe): Move frame code from here...
2444 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2445 "annotate.h" and "dummy-frame.h".
2446 (_initialize_frame): New function.
2448 2002-11-08 Jim Blandy <jimb@redhat.com>
2450 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2451 when we finish a function a context.
2452 * buildsym.h (outermost_context_p): New macro.
2453 (Bug analyzed by David Edelsohn.)
2455 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2457 * blockframe.c: Include "dummy-frame.h".
2458 (struct dummy_frame, dummy_frame_stack)
2459 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2460 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2461 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2462 (generic_save_call_dummy_addr, generic_pop_current_frame)
2463 (generic_pop_dummy_frame, generic_fix_call_dummy)
2464 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2465 dummy frame code from here...
2466 * dummy-frame.c: ...to here. New file.
2467 * dummy-frame.h: New file.
2468 (generic_call_dummy_register_unwind): Declare.
2469 (generic_find_dummy_frame): Declare.
2470 * Makefile.in (SFILES): Add dummy-frame.c.
2471 (dummy-frame.o): Specify dependencies.
2472 (dummy_frame_h): Define.
2473 (COMMON_OBS): Add dummy-frame.o.
2474 (blockframe.o): Update dependencies.
2476 2002-11-08 Jim Blandy <jimb@redhat.com>
2478 * dwarf2read.c (read_func_scope): Restore local_symbols and
2479 param_symbols after we finish the function context. (Based on a
2480 patch from David Edelsohn.)
2482 2002-11-08 David Carlton <carlton@math.stanford.edu>
2484 * linespec.c (symbol_found): New function.
2485 (minsym_found): New function.
2486 (decode_line_1): Separate out some code into separate functions.
2488 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2490 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2491 the benefit of the interix target.
2492 * i386-tdep.h (i386_frameless_signal_p): Declare.
2494 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2496 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2497 declaration that snuck in from change below.
2499 2002-11-06 Andrew Cagney <cagney@redhat.com>
2501 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2503 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2504 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2505 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2506 (i386_mxcsr_regnum_p): new function. Use instead of
2508 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2509 (i386_sse_regnum_p): Declare.
2510 (i386_mxcsr_regnum_p): Declare.
2511 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2512 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2513 (IS_FP_REGNUM): Update definition.
2514 (IS_FPU_CTRL_REGNUM): Update definition..
2515 (IS_SSE_REGNUM): Update definition..
2516 * i386v-nat.c (register_u_addr): Update.
2517 * go32-nat.c (fetch_register): Update.
2518 (store_register): Update.
2520 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2522 Preparation work to convert the hppa targets to multiarch partial.
2524 * hppa-tdep.c: Add new functions replacing macro bodies from
2525 config/pa/tm-hppa.h. These function will be used to initialize
2526 the gdbarch structure. Import some comments from tm-hppa.h,
2527 and place them where appropriate, to avoid loosing them when
2528 we cleanup this file.
2529 (hppa_reg_struct_has_addr): New function.
2530 (hppa_inner_than): New function.
2531 (hppa_stack_align): New function.
2532 (hppa_pc_requires_run_before_use): New function.
2533 (hppa_instruction_nullified): New function.
2534 (hppa_register_byte): New function.
2535 (hppa_register_virtual_type): New function.
2536 (hppa_store_struct_return): New function.
2537 (hppa_cannot_store_register): New function.
2538 (hppa_frame_args_address): New function.
2539 (hppa_frame_locals_address): New function.
2540 (hppa_smash_text_address): New function.
2541 (hppa_coerce_float_to_double): New function. Requires the inclusion
2544 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2546 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2547 gdbarch-eligible macro to a call to the new associated function
2548 created in hppa-tdep.c.
2549 (INNER_THAN): Likewise.
2550 (STACK_ALIGN): Likewise.
2551 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2552 (INSTRUCTION_NULLIFIED): Likewise.
2553 (REGISTER_BYTE): Likewise.
2554 (REGISTER_VIRTUAL_TYPE): Likewise.
2555 (STORE_STRUCT_RETURN): Likewise.
2556 (CANNOT_STORE_REGISTER): Likewise.
2557 (FRAME_ARGS_ADDRESS): Likewise.
2558 (FRAME_LOCALS_ADDRESS): Likewise.
2559 (SMASH_TEXT_ADDRESS): Likewise.
2560 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2561 (ABOUT_TO_RETURN): Delete, as no longer used.
2563 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2565 * printcmd.c (disassemble_command): Remove obsolete function.
2566 (_initialize_printcmd): Do not create disassemble command here.
2567 * cli/cli-cmds.c (disassemble_command): New function. Implements
2568 disassemble command.
2569 (init_cli_cmds): Create disassemble command here instead.
2571 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2573 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2575 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2577 * regcache.h (regcache_cooked_read_using_offset_hack)
2578 (regcache_cooked_write_using_offset_hack): Delete declarations.
2579 (register_changed): Delete declaration.
2580 * regcache.c (regcache_cooked_read_using_offset_hack)
2581 (regcache_cooked_write_using_offset_hack): Delete functions.
2582 (cooked_xfer_using_offset_hack): Delete function.
2583 (register_changed): Delete function.
2585 2002-11-07 Jim Blandy <jimb@redhat.com>
2587 * macroscope.c: #include "complaints.h".
2588 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2589 but not in the macro table.
2590 * Makefile.in (macroscope.o): Record dependency.
2592 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2594 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2596 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2598 * regcache.c (deprecated_registers_fetched): Update.
2599 * regcache.h (deprecated_registers_fetched): Rename
2601 * remote-vxsparc.c (vx_read_register): Update.
2602 * remote-vxmips.c (vx_read_register): Update.
2603 * remote-vx68.c (vx_read_register): Update.
2604 * irix5-nat.c (fetch_core_registers): Update.
2605 * mipsm3-nat.c (fetch_inferior_registers): Update.
2606 * sun3-nat.c (fetch_inferior_registers): Update.
2607 * symm-nat.c (fetch_inferior_registers): Update.
2608 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2609 (fetch_core_registers): Update.
2610 (fetch_kcore_registers): Update.
2611 * mips-nat.c (fetch_inferior_registers): Update.
2612 * corelow.c (get_core_registers): Update.
2613 * a68v-nat.c (fetch_inferior_registers): Update.
2615 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2617 Put in place the framework necessary for multiarching the hppa targets.
2618 * hppa-tdep.c (hppa_gdbarch_init): New function.
2619 (hppa_dump_tdep): New function.
2620 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2621 tdep structure dumper.
2622 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2623 until the multi-arching conversion has partially been completed.
2625 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2627 * valops.c (value_assign): Merge lval_register case into
2628 lval_reg_frame_relative. Use frame_register and
2629 regcache_cooked_write instead of get_saved_register and
2630 write_register_bytes. After flushing the register cache, try to
2631 re-select the selected frame.
2633 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2635 * regcache.h (deprecated_register_valid): Rename register_valid.
2636 * regcache.c: Update.
2637 * ia64-aix-nat.c: Update.
2638 * i386gnu-nat.c: Update.
2639 * alpha-nat.c: Update.
2640 * sparc-nat.c: Update.
2641 * lynx-nat.c: Update.
2642 * remote-mips.c: Update.
2644 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2646 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2647 to end of file, to be more consistent with the pratice followed
2650 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2652 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2653 (print_float_info): Print registers in float_reggroup.
2654 (print_vector_info): Print registers in vector_reggroup.
2655 (default_print_registers_info): When all, print registers in
2656 all_reggroup. Otherwize, print registers in general_reggroup.
2657 (registers_info): Rewrite. Add support for register groups.
2660 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2662 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2664 (symtab_symbol_info): Remove eons old ifdeffed out code.
2665 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2668 2002-11-06 Theodore A. Roth <troth@openavr.org>
2670 * c-exp.y: Add missing semi-colons.
2671 * f-exp.y: Add missing semi-colons.
2672 * m2-exp.y: Add missing semi-colons.
2673 * p-exp.y: Add missing semi-colons.
2674 Add empty action to start rule to avoid a type clash error when
2675 building with bison >= 1.50.
2677 2002-11-06 Jim Blandy <jimb@redhat.com>
2679 * macrotab.h (struct macro_source_file): Doc fix.
2681 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2683 * varobj.c (child_exists, cplus_number_of_children): Change
2684 STREQ macro references to strcmp.
2685 (cplus_name_of_child): Change code to handle the fact that
2686 fields are not necessarily contiguous with regards to their
2687 access control. This is a fix for PR gdb/792.
2689 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2691 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2692 * gdbarch.h, gdbarch.c: Regnerate.
2693 * frame.h (frame_register): Declare.
2694 * frame.c (frame_register): New function.
2695 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2696 GET_SAVED_REGISTER, otherwize call
2697 generic_unwind_get_saved_register.
2698 (frame_register_read): Use frame_register instead of
2701 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2703 From Jim Ingham <jingham@apple.com>:
2704 * event-top.c (gdb_disable_readline): New function.
2705 (_initialize_event_loop): Move comment.
2707 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2709 * event-loop.c (start_event_loop): Add comment.
2712 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2714 * infcmd.c (default_print_registers_info): Do not call
2715 PRINT_REGISTER_HOOK.
2717 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2719 * sparc-tdep.c (sparc_print_register_hook): Make static.
2720 (sparc_print_registers_info): New function.
2721 (sparc_do_registers_info): New function.
2722 (sparclet_print_registers_info): New function.
2723 (sparclet_do_registers_info): New function.
2724 (do_sparc_print_registers_info): New function.
2725 (sparc_print_registers): New static function, clone of infcmd.c's
2726 default_print_registers_info.
2727 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2728 (sparclet_do_registers_info): Declare.
2729 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2730 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2732 (sparc_do_registers_info): Declare.
2733 (PRINT_REGISTER_HOOK): Delete macro.
2734 (sparc_print_register_hook): Delete declaration.
2736 2002-11-05 David Carlton <carlton@math.stanford.edu>
2738 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2740 (lookup_symbol_aux_local): New function.
2741 (lookup_symbol_aux_symtabs): New function.
2742 (lookup_symbol_aux_psymtabs): New function.
2744 2002-11-05 David Carlton <carlton@math.stanford.edu>
2746 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2747 previous values of 'objfile' and 'block'.
2749 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2751 * values.c (value_change_enclosing_type): Set
2752 enclosing_type field correctly also for the case where
2753 more memory needs to be allocated.
2755 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2757 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2760 * i387-tdep.c (i387_print_float_info): Replace calls to
2761 register_read and deprecated_read_register_gen with calls to
2762 frame_register_read, and make the necessary adjustments to the
2765 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2767 * gdbarch.sh (register_reggroup_p): Allow default value.
2768 * gdbarch.h, gdbarch.c: Regenerate.
2770 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2772 * regcache.h: Add coment indicating replacements for deprecated
2775 2002-11-02 Andrew Cagney <cagney@redhat.com>
2777 * reggroups.h, reggroups.c: New files.
2778 * regcache.c: Include "reggroups.h".
2779 (enum regcache_dump_what): Add `regcache_dump_groups'.
2780 (regcache_dump): Contract size of the "Type" column. When
2781 specified, dump the register's groups.
2782 (maintenance_print_register_groups): New function.
2783 (_initialize_regcache): Add command `maint print register-groups'.
2784 * Makefile.in (COMMON_OBS): Add reggroups.o
2785 (SFILES): Add reggroups.c.
2786 (reggroups_h): Define.
2787 (regcache.o, gdbarch.o): Update dependencies.
2788 (reggroups.o): Specify dependencies.
2789 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2790 Add opaque declaration for `struct reggroup' in generated .h file.
2791 Include "reggroups.h" in generated .c file.
2792 gdbarch.h, gdbarch.c: Re-generate.
2794 2002-11-02 Andrew Cagney <cagney@redhat.com>
2796 * regcache.h (deprecated_read_register_gen): Rename
2798 (deprecated_write_register_gen): Rename write_register_gen.
2799 * i387-tdep.c: Update.
2800 * x86-64-linux-nat.c: Update
2802 * thread-db.c: Update.
2803 * win32-nat.c: Update.
2804 * mips-tdep.c: Update.
2805 * d10v-tdep.c: Update.
2806 * cris-tdep.c: Update.
2807 * remote-sim.c: Update.
2808 * remote-rdi.c: Update.
2809 * remote-rdp.c: Update.
2812 * blockframe.c: Update.
2813 * x86-64-tdep.c: Update.
2814 * xstormy16-tdep.c: Update.
2815 * sh-tdep.c: Update.
2816 * s390-tdep.c: Update.
2817 * rs6000-tdep.c: Update.
2818 * sparc-tdep.c: Update.
2819 * i386-tdep.c: Update.
2820 * dwarf2cfi.c: Update.
2821 * regcache.c: Update.
2823 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2825 New interix-specific files:
2826 * config/i386/nm-interix.h: New file.
2827 * config/i386/interix.mh: New file.
2828 * config/i386/interix.mt: New file.
2829 * i386-interix-nat.c: New file.
2830 * i386-interix-tdep.c: New file.
2832 2002-11-01 Andrew Cagney <cagney@redhat.com>
2834 * frame.h (deprecated_generic_get_saved_register): Rename
2835 generic_get_saved_register.
2836 * blockframe.c (deprecated_generic_get_saved_register): Update.
2837 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2838 (xstormy16_frame_saved_register): Update.
2839 * sh-tdep.c (sh_gdbarch_init): Update.
2840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2841 * ia64-tdep.c (ia64_get_saved_register): Update.
2842 * cris-tdep.c (cris_gdbarch_init): Update.
2843 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2844 * arm-tdep.c (arm_gdbarch_init): Update.
2846 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2848 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2850 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2852 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2853 trampolines in sigaction.
2855 2002-10-31 Andrew Cagney <cagney@redhat.com>
2857 * h8300-tdep.c: Include "gdb_assert.h".
2858 (h8300_print_register): Add gdbarch, file and frame parameters.
2859 Use frame_read_unsigned_register to read the register's value.
2860 Use fprintf_filtered to display output.
2861 (h8300_print_registers_info): Replace h8300_do_registers_info.
2862 (h8300_gdbarch_init): Set print_registers_info.
2864 2002-10-31 Andrew Cagney <cagney@redhat.com>
2866 * frame.c (frame_read_unsigned_register): New function.
2867 (frame_read_signed_register): New function.
2868 * frame.h (frame_read_unsigned_register): Declare.
2869 (frame_read_signed_register): Declare.
2871 2002-10-31 Andrew Cagney <cagney@redhat.com>
2873 * h8500-tdep.c (h8500_print_registers_info): New static function,
2874 clone of infcmd.c's default_print_registers_info.
2875 (h8500_do_registers_info): New funtion.
2876 (h8500_print_register_hook): Rename print_register_hook, make
2879 * config/h8500/tm-h8500.h: Update copyright.
2880 (DEPRECATED_DO_REGISTERS_INFO): Define.
2881 (h8500_do_registers_info: Declare.
2882 (PRINT_REGISTER_HOOK): Delete macro.
2883 (print_register_hook): Delete function.
2885 2002-10-31 Andrew Cagney <cagney@redhat.com>
2887 * z8k-tdep.c (z8k_print_register_hook): Make static.
2888 (z8k_print_registers_info): New static function, clone of
2889 infcmd.c's default_print_registers_info.
2890 (z8k_do_registers_info): New function. Wrap
2891 z8k_print_registers_info.
2892 * config/z8k/tm-z8k.h: Update copyright.
2893 (PRINT_REGISTER_HOOK): Delete macro.
2894 (z8k_print_register_hook): Delete declaration.
2895 (DEPRECATED_DO_REGISTERS_INFO): Define.
2896 (z8k_do_registers_info): Declare.
2898 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2900 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2901 as this is already provided by value.h, and was actually causing
2902 a compilation error because of a conflict in parameter type
2903 declaration due to a missing const keyword.
2904 (low_text_segment_addres): Fix a compilation warning.
2906 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2908 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2909 registers without a name.
2910 (mips_linux_cannot_store_register): Don't store registers without
2913 2002-10-28 David Carlton <carlton@math.stanford.edu>
2915 * symtab.c (find_addr_symbol): Delete. (It was already commented
2917 * symtab.h: Delete prototype for find_addr_symbol.
2919 2002-10-26 Andrew Cagney <cagney@redhat.com>
2921 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2923 gdbarch.h, gdbarch.c: Re-generate.
2924 * infcmd.c (default_print_registers_info): Update reference.
2925 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2926 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2927 * sh-tdep.c (sh_gdbarch_init): Ditto.
2928 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2929 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2931 2002-10-26 Mark Kettenis <kettenis@gnu.org>
2933 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2934 cfi_init_extra_frame_info.
2935 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2936 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2938 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2939 target where necessary. Add more comments and remove the ones
2940 that don't provide any useful information.
2942 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2943 deprecated_read_register_dummy with
2944 frame_unwind_unsigned_register.
2946 * i386-tdep.c (i386_extract_struct_value_address): Use
2947 regcache_raw_read_unsigned instead of
2948 regcache_cooked_read_unsigned since we know that the register
2949 we're reading isn't a pseudo register. Rename variable 'val' into
2950 the more descriptive 'addr'.
2952 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2953 (x86_64_push_return_address): Add comment.
2954 (x86_64_pop_frame): Make static.
2955 (examine_argument): Clarify comment.
2956 (x86_64_skip_prologue): Make prolog_expact variable static.
2958 * dwarf2cfi.c: Fix some formatting problems.
2959 (context_cpy, read_encoded_pointer): Clarify comments.
2961 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2962 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2963 i386 target back into x86_64_gdbarch_init. Add some comments and
2964 remove meaningless ones.
2966 2002-10-25 Andrew Cagney <cagney@redhat.com>
2968 * complaints.h (struct deprecated_complaint): Rename `struct
2970 * complaints.c (complain): Update.
2971 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2972 incorrect comment indicating that "symfile.h" was being included
2973 for the `struct complaint' definition.
2974 * remote-vx.c: Update.
2975 * objc-lang.c: Update.
2976 * xcoffread.c: Update.
2978 * mdebugread.c: Update.
2979 * stabsread.c: Update.
2980 * dwarf2read.c: Update.
2981 * dwarfread.c: Update.
2982 * elfread.c: Update.
2983 * coffread.c: Update.
2984 * stabsread.h: Update.
2985 * dbxread.c: Update.
2986 * buildsym.c: Update.
2987 * gdbtypes.c: Update.
2988 * macrotab.c: Update.
2990 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2992 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2993 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2994 (x86_64_init_abi): ...new function.
2996 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2997 * i386v-nat.c: Include "i386-tdep.h".
2999 2002-10-25 Andrew Cagney <cagney@redhat.com>
3001 * gdbtypes.c (address_space_name_to_int): Update.
3002 (address_space_int_to_name): Update.
3003 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3004 multi-arch predicate.
3005 (address_class_name_to_type_flags): Ditto.
3006 * gdbarch.h, gdbarch.c: Re-generate.
3008 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3010 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3012 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3014 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3016 * symtab.h (INIT_SAL): Delete macro.
3018 * symtab.c (init_sal): New function.
3020 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3021 to init_sal function call.
3022 (find_sal_from_funcs_and_line): Ditto.
3023 (all_sals_for_line): Ditto.
3024 * breakpoint.c (create_internal_breakpoint): Ditto.
3025 (create_fork_vfork_event_catchpoint): Ditto.
3026 (create_exec_event_catchpoint): Ditto.
3027 (parse_breakpoint_sals): Ditto.
3028 (watch_command_1): Ditto.
3029 (handle_gnu_4_16_catch_command): Ditto.
3030 (clear_command): Ditto.
3031 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3032 * infcmd.c (run_stack_dummy): Ditto.
3033 * infrun.c (process_event_stop_test): Ditto.
3034 (check_sigtramp2): Ditto.
3035 (step_over_function): Ditto.
3036 * linespec.c (decode_line_2): Ditto.
3037 (decode_line_1): Ditto.
3038 * source.c (line_info): Ditto.
3039 * symtab.c (find_pc_sect_line): Ditto.
3041 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3043 * dwarf2cfi.c (struct context)
3044 (struct context_reg): Moved to dwarf2cfi.h
3045 (context_alloc, frame_state_alloc, context_cpy):
3046 Made extern instead of static, removed prototypes.
3047 * dwarf2cfi.h (struct context)
3048 (struct context_reg): New, moved from dwarf2cfi.c
3049 (context_alloc, frame_state_alloc, context_cpy):
3051 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3052 Changed from static to extern.
3053 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3054 (LINUX_SIGCONTEXT_FP_OFFSET)
3055 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3056 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3057 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3058 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3059 set_gdbarch_*() calls now use x86-64 specific functions
3060 instead of DWARF2 CFI ones.
3061 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3062 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3063 (x86_64_init_extra_frame_info): New prototypes.
3065 2002-10-23 David Carlton <carlton@math.stanford.edu>
3067 * linespec.c: #include "parser-defs.h".
3068 Delete prototype for find_template_name_end.
3069 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3071 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3073 * NEWS: add recent mi fixes.
3074 * varobj.c (struct varobj): Add new "updated" flag.
3075 (new_variable): Default "updated" flag to 0.
3076 (varobj_set_value): Set "updated" flag to 1 if value
3078 (varobj_update): Check varobj "updated" flag before
3079 comparing old and refreshed values. Fix for
3082 2002-10-23 David Carlton <carlton@math.stanford.edu>
3084 * parse.c (parse_exp_1): Use BLOCK_START.
3085 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3087 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3089 2002-10-23 David Carlton <carlton@math.stanford.edu>
3091 * symtab.c: Delete cplusplus_hint.
3092 Delete prototype for find_template_name_end.
3094 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3096 * symtab.h: Update comment.
3098 2002-10-23 Michael Snyder <msnyder@redhat.com>
3100 * printcmd.c (address_info): Restore quotes in output.
3101 * valops.c (value_of_local): Restore quotes in error message.
3103 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3105 * symtab.c (symbol_demangled_name): New function.
3106 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3107 turning most of it into a function.
3108 (symbol_demangled_name): Export.
3110 2002-10-23 Michael Snyder <msnyder@redhat.com>
3112 * valops.c (value_of_local): Restore quotes in error message.
3114 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3116 * symtab.c (symbol_init_language_specific): New function.
3117 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3118 turning most of it into a function.
3119 (symbol_init_language_specific): Export.
3121 2002-10-23 David Carlton <carlton@math.stanford.edu>
3123 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3124 (dwarf_attr_name): Ditto.
3125 (dwarf_type_encoding_name): Ditto.
3126 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3127 (process_die): Handle DW_TAG_namespace,
3128 DW_TAG_imported_declaration, DW_TAG_imported_module.
3129 (read_namespace): New function.
3131 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3133 * configure.in: Define NEW_PROC_API on Interix too.
3134 * configure: Regenerate.
3136 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3138 * configure: Regenerate using the proper version of autoconf.
3140 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3142 * findvar.c (read_var_value): Temporarily disable TLS code, until
3143 complete TLS support is added.
3145 2002-10-21 Jim Blandy <jimb@redhat.com>
3146 Elena Zannoni <ezannoni@redhat.com>
3148 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3149 for thread local storage locations.
3150 (struct symbol): Add objfile field.
3151 (SYMBOL_OBJFILE): Define.
3152 * dwarf2read.c (is_thread_local): New static variable.
3153 (new_symbol): If variable is in thread local fill in address class
3154 and objfile appropriately.
3155 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3157 * printcmd.c (address_info): Print the information for thread
3158 local storage variable.
3159 * findvar.c (read_var_value): In case of thread local variable,
3160 defer to the target vector code to compute address.
3162 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3164 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3165 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3167 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3169 * symtab.h (address_class): Rename
3170 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3171 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3172 * printcmd.c (address_info): Ditto.
3173 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3175 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3177 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3178 DBREG_DRX macro to acces debug registers.
3180 * Makefile.in (i386obsd-tdep.o): New target.
3182 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3183 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3185 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3186 * config/i386/obsd.mt: New file.
3187 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3188 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3189 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3190 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3191 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3192 * i386obsd-tdep.c: New file.
3194 2002-10-19 Adam Fedor <fedor@gnu.org>
3196 * objc-exp.y (name_not_typename): Fix invalid comment.
3198 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3200 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3201 to allocate partial syms and macro byte caches.
3203 2002-10-18 David Carlton <carlton@math.stanford.edu>
3205 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3207 2002-10-18 Adam Fedor <fedor@gnu.org>
3209 * stabsread.c (find_name_end): New function.
3210 (define_symbol): Use it.
3212 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3214 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3215 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3216 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3217 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3219 2002-10-17 David Carlton <carlton@math.stanford.edu>
3221 * symfile.h: Add opaque declaration for struct obstack.
3222 Declare obsavestring to take a const char *.
3223 * symfile.c (obsavestring): Make first argument a const char *.
3225 2002-10-16 Adam Fedor <fedor@gnu.org>
3227 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3228 names when matching breakpoints in current file.
3230 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3232 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3233 (read_tag_pointer_type): Add address class support.
3234 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3235 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3237 * gdbarch.h, gdbarch.c: Regenerate.
3238 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3239 (make_type_with_address_space, recursive_type_dump): Add address
3241 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3242 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3243 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3245 2002-10-16 Klee Dienes <kdienes@apple.com>
3247 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3248 to get the last character of a char[] buffer, not
3249 name[sizeof(vptr_name)-1].
3251 2002-10-14 Adam Fedor <fedor@gnu.org>
3253 * symtab.h: New objc_specific struct.
3254 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3255 (SYMBOL_DEMANGLED_NAME): Likewise.
3257 2002-10-14 Adam Fedor <fedor@gnu.org>
3259 * symfile.c (init_filename_language_table): Add ObjC file extension.
3261 2002-10-14 Adam Fedor <fedor@gnu.org>
3263 * utils.c (puts_filtered_tabular): New function.
3264 (fprintf_symbol_filtered): Get ObjC demangled name.
3265 * defs.h (puts_filtered_tabular): Declared.
3267 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3269 * c-lang.h (c_type_print_varspec_prefix): Delete.
3270 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3271 ``need_post_space'' parameter. Adjust all callers.
3273 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3275 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3276 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3277 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3278 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3280 2002-10-13 Adam Fedor <fedor@gnu.org>
3282 * source.c (print_source_lines): Update comments.
3284 2002-10-13 Adam Fedor <fedor@gnu.org>
3286 * valops.c (value_of_local): New function.
3287 (value_of_this): Use it.
3288 * value.h (value_of_local): Declared.
3290 2002-10-13 Adam Fedor <fedor@gnu.org>
3292 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3293 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3295 2002-10-12 Adam Fedor <fedor@gnu.org>
3297 * language.c (binop_result_type): Add language_objc to case.
3298 (integral_type): Likewise.
3299 (character_type): Likewise.
3300 (string_type): Likewise.
3301 (boolean_type): Likewise.
3302 (structured_type): Likewise.
3303 (binop_type_check): Likewise.
3305 2002-10-11 Adam Fedor <fedor@gnu.org>
3307 * printcmd.c (address_info): Print 'self' for ObjC.
3309 2002-10-11 Adam Fedor <fedor@gnu.org>
3311 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3314 2002-10-11 Adam Fedor <fedor@gnu.org>
3316 * language.h (CAST_IS_CONVERSION): Add language_objc.
3318 2002-10-11 Adam Fedor <fedor@gnu.org>
3320 * defs.h (enum language): Add language_objc.
3322 2002-10-11 Klee Dienes <kdienes@apple.com>
3324 * corefile.c (read_memory_typed_address): New function.
3325 * gdbcore.h (read_memory_typed_address): Add prototype.
3326 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3327 to read a value destined for a CORE_ADDR, not read_memory_integer.
3328 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3329 (f77_get_dynamic_lowerbound): Ditto.
3331 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3333 * utils.c (string_to_core_addr): After turning string into
3334 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3335 which will do necessary sign-extension, etc.
3337 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3339 * c-exp.y (THIS): Delete token and grammar rule.
3340 (yylex): Don't return THIS.
3341 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3342 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3343 * demangle.c (cplus_markers): Update comment. Put '$'
3344 first. Remove CPLUS_MARKER.
3345 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3346 * jv-exp.y (THIS): Delete token and grammar rule.
3347 (yylex): Don't return THIS.
3348 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3349 * objc-exp.y (THIS): Delete token and grammar rule.
3350 (yylex): Don't return THIS.
3351 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3352 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3353 (read_member_functions): Likewise for opname.
3354 (read_tilde_fields): Use is_cplus_marker.
3356 * defs.h (CPLUS_MARKER): Don't define.
3357 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3358 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3359 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3360 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3361 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3363 * config/i386/tm-i386v4.h: Delete file.
3364 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3365 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3366 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3367 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3368 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3369 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3370 * config/i386/i386v4.mt (TM_FILE): Likewise.
3371 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3373 2002-10-10 Marko Mlinar <markom@opencores.org>
3375 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3376 accidentially not commited 2002-10-09
3377 * gdbarch.h, gdbarch.c: Re-generate.
3379 2002-10-09 Marko Mlinar <markom@opencores.org>
3381 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3382 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3383 * gdbarch.h, gdbarch.c: Re-generate.
3385 2002-10-08 Petr Sorfa <petrs@caldera.com>
3387 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3389 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3390 so we can work on more than one compilation unit at a time. This
3391 helps prepare GDB to handle inter-CU die references.
3392 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3393 the code to be defined before struct comp_unit_head.
3394 (comp_unit_head): Added new members - offset, cu_head,
3395 begin_die, next and dwarf2_abbrevs.
3396 (dwarf2_abbrevs): Removed single static var; now member of
3397 struct comp_unit_head.
3398 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3400 (psymtab_to_symtab_1): Changed to work with the new
3401 struct comp_unit_head.
3402 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3403 constructs the dwarf2_abbrevs[] inside the cu_header.
3404 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3405 dwarf2_abbrev table to clean up.
3406 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3407 handling of dwarf2_abbrevs inside the cu_header.
3408 (read_partial_die): Now supports the call to the new
3409 dwarf2_lookup_abbrev.
3410 (read_full_die): Now supports the call to the new
3411 dwarf2_lookup_abbrev.
3413 2002-10-06 Christopher Faylor <cgf@redhat.com>
3415 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3416 insure that shell variables, such as "transformed_name" are propagated
3417 to later shell statements in rule.
3419 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3421 * config/i386/nm-i386sco.h: Add protection against
3422 multiple-inclusion. Include "i386/nm-i386v.h".
3423 (REGISTER_U_ADDR): Remove define.
3424 (i386_register_u_addr): Remove prototype.
3426 2002-10-04 Michael Snyder <msnyder@redhat.com>
3428 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3429 before treating it as a single-step event.
3431 2002-10-03 Adam Fedor <fedor@gnu.org>
3433 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3434 (objc_demangle): Remove assignment in if statements, Replace
3436 (add_msglist): Likewise.
3437 (end_msglist): Likewise.
3438 (complare_selectors): Likewise.
3439 (selectors_info): Likewise.
3440 (compare_classes): Likewise.
3441 (classes_info): Likewise.
3442 (print_object_command): Likewise.
3443 (find_objc_msgcall_submethod): Replace PTR with void *.
3444 * objc-lang.h: Remove check for __STDC__.
3446 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3448 * ui-out.h (ui_out_field_fmt_int): New prototype.
3449 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3450 of field width and alignment.
3451 * stack.c (print_frame_info_base): When printing frame level, use
3452 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3455 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3457 * MAINTAINERS: Add self to Write After Approval list.
3459 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3461 * infcmd.c (interrupt_target_command_wrapper): Delete.
3462 (interrupt_target_command): Make non static.
3463 (nofp_registers_info): Make static.
3464 * stack.c (return_command_wrapper): Delete.
3465 (return_command): Make non static.
3467 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3469 * event-top.c (gdb_setup_readline): New function. Code moved from
3470 _initialize_event_loop().
3471 (_initialize_event_loop): Call gdb_setup_readline().
3473 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3475 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3476 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3477 * gdbarch.h, gdbarch.c: Re-generate.
3479 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3482 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3484 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3485 of fill_in_vptr_fieldno.
3487 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3489 * inferior.h (registers_info, stepi_command, nexti_command,
3490 continue_command, interrupt_target_command): Export from infcmd.c.
3491 * frame.h (args_info, selected_frame_level_changed_hook,
3492 return_command): Export from stack.c.
3493 * v850ice.c (stepi_command, nexti_command, continue_command): use
3494 prototypes from inferior.h.
3495 * tracepoint.c (registers_info, args_info, locals_info): Use
3496 prototypes from frame.h and inferior.h.
3497 * Makefile.in (mi-main.o): Add dependency on frame.h.
3499 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3501 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3502 value in register 3 adjusted by ppc_gp0_regnum.
3504 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3506 2002-10-02 Marko Mlinar <markom@opencores.org>
3508 * MAINTAINERS: Add myself to the Write After Approval list.
3510 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3512 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3513 of the section for the N64 ABI, fixed.
3515 * config/mips/tm-irix6.h: Include solib.h.
3517 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3519 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3522 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3524 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3525 and that "mi0" syntax has been removed.
3527 2002-09-30 David Carlton <carlton@math.stanford.edu>
3529 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3530 * ppc-sysv-tdep.c: #include "gdb_string.h".
3531 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3534 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3536 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3537 "vrsave"'s register number.
3539 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3541 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3542 use frame_unwind_signed_register to obtain the PC.
3543 (mips_frame_chain): Handle a generic dummy frame.
3544 (mips_init_extra_frame_info): When a generic dummy frame, don't
3545 re-compute the frame base.
3546 (mips_pop_frame): Handle generic dummy frames.
3547 (mips_gdbarch_init): When generic dummy frames, set
3548 use_generic_dummy_frames, push_dummy_frame to
3549 generic_push_dummy_frame, pc_in_call_dummy to
3550 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3551 generic_save_dummy_frame_tos.
3553 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3555 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3556 against TOP when TOP was explictly set.
3557 (generic_push_dummy_frame): Set TOP to zero.
3559 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3561 * event-loop.c (start_event_loop): Rename variable 'result' to
3562 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3564 2002-09-30 Keith Seitz <keiths@redhat.com>
3566 * gdb-events.sh (selected_thread_changed): New event.
3567 * gdb-events.c: Regenerated.
3568 * gdb-events.h: Regenerated.
3570 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3572 * MAINTAINERS: Add self to Write After Approval list.
3574 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3576 * disasm.c: New file.
3577 * disasm.h: New file.
3578 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3579 (compare_lines): Ditto.
3580 (dump_insns): Ditto.
3581 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3583 (do_assembly_only): Ditto.
3584 (do_disassembly): Renamed to gdb_disassembly and moved to
3585 disasm.c. Sdded uiout argument.
3586 * Makefile.in: Add new files. Reorder SFILES list. Update
3587 dependencies. Include libgdb.a later in the insight executable.
3589 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3591 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3592 bfd/elf64-alpha-fbsd.c.
3594 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3596 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3599 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3601 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3603 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3605 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3606 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3607 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3608 (S_msg_sig_post_reply): Ditto.
3610 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3612 * sh-tdep.c (sh_use_struct_convention): Use definition according
3614 (sh_push_arguments): Store in register with correct endianess.
3615 (sh_default_store_return_value): Ditto.
3616 (sh_gdbarch_init): Set sizeof long double to 8.
3618 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3620 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3621 Fix some whitespace problems.
3623 2002-09-27 David Carlton <carlton@math.stanford.edu>
3625 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3626 (mcore-tdep.o): Ditto.
3627 (ns32k-tdep.o): Ditto.
3628 (ns32knbsd-tdep.o): Ditto.
3630 (vax-tdep.o): Ditto.
3631 * cris-tdep.c: #include "gdb_string.h"
3632 * mcore-tdep.c: Ditto.
3633 * ns32k-tdep.c: Ditto.
3634 * ns32knbsd-tdep.c: Ditto.
3636 * vax-tdep.c: Ditto.
3638 2002-09-27 David Carlton <carlton@math.stanford.edu>
3640 * config/djgpp/fnchange.lst: Add entries for
3641 gdb/testsuite/gdb.c++/m-static files.
3643 2002-09-27 Jim Wilson <wilson@redhat.com>
3645 * MAINTAINERS: Add myself to the Write After Approval list.
3647 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3649 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3652 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3654 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3657 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3659 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3660 (rs6000_struct_return_address): Delete variable.
3661 (rs6000_store_struct_return): Update.
3662 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3663 deprecated_extract_struct_value_address.
3664 (rs6000_frame_align): New function.
3665 (rs6000_gdbarch_init): Set frame_align.
3667 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3669 From Grace Sainsbury <graces@redhat.com>:
3670 * Makefile.in (gdbtk-main.o): New target.
3671 (gdb.o): New target.
3673 (main.o): Update dependencies.
3674 (gdb$(EXEEXT)): Add gdb.o.
3675 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3676 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3677 (SUBDIR_GDBTK_CLEAN): Set.
3678 (install-gdbtk): Install the insight binary.
3679 (uninstall-gdbtk): New target.
3680 (all-gdbtk, clean-gdbtk): New rule.
3681 * top.c (use_windows): Default to zero.
3682 * main.c: Include "main.h".
3684 (struct captured_main_args): Delete.
3685 (gdb_main): New function.
3689 2002-09-25 Andrew Cagney <cagney@redhat.com>
3691 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3692 (frame_map_regnum_to_name): New function.
3693 (frame_map_name_to_regnum): New function.
3694 * frame.h (frame_map_name_to_regnum): Declare.
3695 (frame_map_regnum_to_name): Declare.
3696 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3697 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3698 * parse.c: Do not include "builtin-regs.h".
3699 (target_map_name_to_register): Delete function.
3700 (write_dollar_variable): Use frame_map_name_to_regnum.
3701 * parser-defs.h (target_map_name_to_register): Delete declaration.
3702 * expprint.c: Include "frame.h".
3703 (print_subexp): Use frame_map_regnum_to_name.
3704 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3705 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3707 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3709 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3710 wasn't saved, and the next innermost frame is a dummy, return the
3711 dummy frame's link register.
3713 2002-09-24 Jim Blandy <jimb@redhat.com>
3715 Fix from Paul Breed:
3716 * main.c (captured_main): Add a `break' after the case for 'b'.
3718 2002-09-24 Keith Seitz <keiths@redhat.com>
3720 * varobj.c (c_type_of_child): Use get_target_type instead
3721 of TYPE_TARGET_TYPE.
3723 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3725 * source.c (get_current_or_default_source_symtab_and_line): Remove
3727 (set_default_source_symtab_and_line): New function. Attempts to
3728 determine a source file to list lines from if one is not currently
3730 (get_current_source_symtab_and_line): Initialize sal.pc and
3732 (set_current_source_symtab_and_line): Mark argument as const.
3733 * source.h: Update declarations and comments.
3734 * linespec.c (decode_line_1): Replace call to removed routine above.
3735 * stack.c (print_frame_info_base): Ditto.
3736 * cli/cli-cmds.c (edit_command): Ditto.
3737 (list_command): Ditto.
3739 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3741 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3742 sal.pc and sal.end fields.
3743 (get_current_or_default_source_symtab_and_line): Ditto.
3744 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3745 so we do not cause a new source symtab to be searched for (reverting an
3746 unintentional change from the 2002-09-20 patch).
3747 * scm-lang.c (scm_unpac): Ditto.
3749 2002-09-21 Andrew Cagney <cagney@redhat.com>
3751 * complaints.c (symfile_explanations): Remove new-line from
3752 ``isolated_message''.
3753 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3754 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3756 2002-09-20 Nick Clifton <nickc@redhat.com>
3758 * NEWS: Announce that V850EA ISA is no longer supported.
3759 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3761 2002-09-20 David Carlton <carlton@math.stanford.edu>
3763 * Makefile.in (c-lang.o): Correct dependencies.
3764 (utils.o): Gather dependencies.
3766 * c-lang.c: #include "gdb_string.h"
3768 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3770 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3771 * cli/cli-cmds.c (list_command): New function. Implements the new
3773 (_init_cli_cmds): Add new command definition.
3774 * gdb.1: Document edit command.
3775 * doc/gdb.texinfo: Document edit command.
3777 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3779 * source.c: Make global variables current_source_symtab and
3780 current_source_line static.
3781 (list_command): Moved to cli/cli-cmds.c.
3782 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3783 (get_first_line_listed): New accessor function.
3784 (get_lines_to_list): New accessor function.
3785 (get_current_source_symtab_and_line): New function. Retrieves the
3786 position in the source code that we consider current.
3787 (get_current_or_default_source_symtab_and_line): New function.
3788 Like the above but attempts to determine a default position if one
3789 is not currently defined.
3790 (set_current_source_symtab_and_line): New function. Sets the source
3791 code position considered current and returns the previously set one.
3792 (clear_current_source_symtab_and_line): Reset stored information about
3793 a current source line.
3794 (_initialize_source): Remove registration for the "list" command and
3796 * source.h: Add declarations for the new functions above.
3797 * symtab.h: Remove declarations for the global variables mentioned
3799 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3800 obtain current source line.
3801 * linespec.c (decode_line_1): Ditto.
3802 * macroscope.c (default_macro_scope): Ditto.
3803 * scm-lang.c (scm_unpac): Ditto.
3804 * stack.c (print_frame_info_base): Ditto.
3805 * symfile.c (clear_symtab_users): Ditto.
3806 * symtab.c (decode_line_spec): Ditto.
3807 * cli/cli-cmds.c (list_command): Moved here from source.c.
3808 (ambiguous_line_spec): Moved here from source.c.
3809 (_init_cli_cmds): Add definition for "list" and its alias.
3810 * Makefile.in: Update dependencies.
3812 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3814 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3815 with what gcc thinks is correct.
3817 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3819 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3820 multiple register push instruction.
3822 2002-09-19 Jim Blandy <jimb@redhat.com>
3824 Add support for distinct host and target character sets.
3825 * charset.c, charset.h: New files.
3826 * c-exp.y: #include "charset.h".
3827 (yylex): Convert character and string literals to the target
3828 character set, before returning them as the semantic value of the
3830 * c-lang.c: #include "charset.h".
3831 (c_emit_char): Use charset-specific methods to recognize
3832 characters with backslash escape forms, to decide which characters
3833 to print literally and which to print using numeric escape
3834 sequences, and to convert target characters to host characters
3836 * utils.c: #include "charset.h".
3837 (no_control_char_error): New function.
3838 (parse_escape): Use charset-specific methods to recognize
3839 backslash escapes, parse `control character' notation, and convert
3840 characters from the host character set to the target character set.
3841 * configure.in: Set the default host character set.
3842 Check where to find iconv, and what its argument types might be.
3843 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3844 * Makefile.in (SFILES): List charset.c.
3845 (COMMON_OBS): List charset.o.
3846 (charset.o): New rule.
3847 (charset_h): New header dependency variable.
3848 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3849 (LIBICONV): New variable, set by configure.
3850 (CLIBS): Include $(LIBICONV) here.
3851 * aclocal.m4, config.in, configure: Regenerated.
3853 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3855 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3858 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3860 * gdb_mbuild.sh: New file.
3862 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3864 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3866 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3868 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3869 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3870 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3871 valops.c, value.h: Revert previous change.
3873 2002-09-18 Michael Snyder <msnyder@redhat.com>
3875 Preliminary support for Objective-C:
3876 * defs.h (language_objc): New enum value.
3877 (puts_filtered_tabular): Declaration only, exported from utils.c.
3878 (skip_quoted): Delete, declared in completer.h.
3879 * c-exp.y: Include completer.h.
3882 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3883 New operator enum values.
3884 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3885 * language.c (binop_result_type): Handle language_objc case.
3886 (integral_type, character_type, string_type, boolean_type,
3887 structured_type, binop_type_check): Ditto.
3888 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3889 (struct objc_specific): Add to general_symbol_info.
3890 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3891 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3892 * parser-defs.h (struct objc_class_str): New struct type.
3893 (start_msglist, end_msglist, add_msglist): Declaration only,
3894 exported from objc-lang.c.
3895 * value.h (value_of_local, value_nsstring,
3896 call_function_by_hand_expecting_type): Exported from valops.c.
3897 * valops.c (find_function_addr): Export.
3898 (call_function_by_hand_expecting_type): New function.
3899 (value_of_local): New function.
3900 * symfile.c (init_filename_language_table): Add ".m" extension
3902 * utils.c (puts_filtered_tabular): New function.
3903 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3904 (set/show demangle): Extend help-string to refer to ObjC.
3905 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3906 * stabsread.c (symbol_reference_defined): Objective-C symbols
3907 may contain colons: make allowances when scanning stabs strings
3909 (objc_find_colon): New function.
3910 * printcmd.c (address_info): If language == objc then print
3911 "self" instead of "this".
3912 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3913 OP_NSSTRING, and OP_SELF.
3914 (prefixify_subexp): Ditto.
3915 * source.c (print_source_lines): Mention objc in comment.
3916 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3919 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3921 * complaints.h: Update copyright.
3922 (struct complaints): Declare.
3923 (struct complaint): Make `message' constant.
3924 (internal_complaint): Declare.
3925 (complaint): Declare.
3926 (complaint_root): Delete declaration.
3927 (symfile_complaints): Delete declaration.
3928 (struct complaints): Add opaque declaration.
3929 (clear_complaints): Add a complaints parameter.
3930 * complaints.c: Update copyright.
3931 (enum complaint_series): Define.
3932 (complaint_root): Delete.
3933 (struct complaints): Define.
3934 (complaint_sentinel, symfile_complaint_book): New variables.
3935 (symfile_explanations, symfile_complaints): New variables.
3937 (get_complaints): New function.
3938 (vcomplaint): New function.
3939 (complaint): New function.
3940 (internal_complaint): New function.
3941 (complain): Call vcomplain with symfile_complaint.
3942 (clear_complaints): Rewrite.
3943 (_initialize_complaints): Use add_setshow_command.
3944 * Makefile.in (complaints.o): Update dependencies.
3945 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3946 to call to clear_complaints.
3947 (new_symfile_objfile, reread_symbols): Ditto.
3948 (oldsyms_complaint): Delete.
3949 (empty_symtab_complaint, unknown_option_complaint): Delete.
3950 (free_named_symtabs): Use complaint instead of complain.
3952 2002-09-18 Michael Snyder <msnyder@redhat.com>
3954 Contributed by Apple Computer, Inc. Merged with current sources
3955 by Adam Fedor <fedor@doc.com> [cagney].
3957 * objc-lang.c: First clean-up round: comments, indentation.
3958 * objc-lang.h: Ditto.
3959 * objc-lang.y: Ditto.
3961 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3963 * maint.c (maintenance_internal_error): Print the parameter as the
3965 (maintenance_internal_warning): New function.
3966 (_initialize_maint_cmds): Add command `maint internal-warning'.
3968 * defs.h (internal_warning, internal_vwarning): Declare.
3969 * utils.c (struct internal_problem): Define.
3970 (internal_vproblem): New function.
3971 (internal_warning): New function.
3972 (internal_vwarning): New function.
3973 (internal_warning_problem, internal_error_problem): New variables.
3974 (internal_verror): Just call internal_vproblem.
3976 2002-09-18 Michael Snyder <msnyder@redhat.com>
3978 * objc-lang.c: New file, support for Objective-C.
3979 Preliminary check-in, not yet integrated into gdb.
3980 * objc-lang.h: New file.
3981 * objc-exp.y: New file.
3983 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3985 * infrun.c (signal_stop_update): Convert definition to ISO C.
3986 (signal_print_update): Ditto.
3987 (signal_pass_update): Ditto.
3988 * inflow.c (terminal_save_ours): Ditto.
3990 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3993 * config/djgpp/fnchange.lst: Handle name clashes between
3994 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3997 * i386-linux-tdep.h: Fix tipo.
3999 2002-09-18 Adam Fedor <fedor@gnu.org>
4001 * MAINTAINERS: Add myself to the Write After Approval list.
4003 2002-09-18 Jim Blandy <jimb@redhat.com>
4005 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4006 texthigh and textlow to reader-specific structs caused
4007 objfile_relocate to miss them. This is fixable, but the work that
4008 the change was supposed to prepare GDB for never got done anyway.
4010 2002-09-18 David Carlton <carlton@math.stanford.edu>
4012 * MAINTAINERS: Alphabetize Write After Approval list.
4014 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4017 * values.c (value_static_field): Call read_var_value.
4019 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4021 * valops.c (hand_function_call): Align the initial stack pointer
4022 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4023 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4025 * mips-tdep.c (mips_frame_align): New function.
4026 (mips_gdbarch_init): Set frame_align.
4027 * gdbarch.sh (FRAME_ALIGN): New method.
4028 * gdbarch.h, gdbarch.c: Re-generate.
4030 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4032 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4035 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4037 * NEWS: Mention that MIPS $fp behavior changed.
4038 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4039 reference to FP_REGNUM.
4040 (mipsnbsd_cannot_store_register): Ditto.
4041 * mips-linux-nat.c: Update copyright.
4042 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4043 (mips_linux_cannot_store_register): Ditto.
4044 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4045 * config/mips/tm-mips.h: Update copyright.
4046 (FP_REGNUM): Delete macro.
4047 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4048 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4049 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4050 (mips_r3041_reg_names, mips_r3051_reg_names)
4051 (mips_r3081_reg_names): Replace "fp" with "".
4054 2002-09-17 Theodore A. Roth <troth@verinet.com>
4056 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4057 generic_read_register_dummy() (PR gdb/703).
4058 (avr_push_return_address): #if 0 out unused vars.
4059 (avr_gdbarch_init): Enable use of avr_push_return_address().
4061 2002-09-17 Michael Snyder <msnyder@redhat.com>
4063 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4064 RTE will take care of it.
4066 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4068 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4069 invalid, return SP_REGNUM.
4071 2002-09-17 Michael Snyder <msnyder@redhat.com>
4073 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4074 point registers without sign extension.
4076 2002-09-17 Andrew Cagney <cagney@redhat.com>
4078 * blockframe.c (deprecated_read_register_dummy): Rename
4079 generic_read_register_dummy.
4080 * frame.c (frame_unwind_signed_register): New function.
4081 (frame_unwind_unsigned_register): New function.
4082 * frame.h (frame_unwind_signed_register): Declare.
4083 (frame_unwind_unsigned_register): Declare.
4084 (deprecated_read_register_dummy): Rename
4085 generic_read_register_dummy.
4087 * h8300-tdep.c (h8300_frame_chain): Update.
4088 (h8300_frame_saved_pc): Update.
4089 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4090 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4091 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4092 (s390_frame_chain): Update.
4093 * v850-tdep.c (v850_find_callers_reg): Update.
4094 (v850_frame_saved_pc): Update.
4095 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4096 (m32r_find_callers_reg): Update.
4097 (m32r_frame_saved_pc): Update.
4098 * sh-tdep.c (sh_find_callers_reg): Update.
4099 (sh64_get_saved_pr): Update.
4100 (sh_init_extra_frame_info): Update.
4101 (sh_init_extra_frame_info): Update.
4102 (sh64_init_extra_frame_info): Update.
4103 (sh64_init_extra_frame_info): Update.
4104 * mcore-tdep.c (mcore_find_callers_reg): Update.
4105 (mcore_frame_saved_pc): Update.
4106 (mcore_init_extra_frame_info): Update.
4107 * i386-tdep.c (i386_frame_saved_pc): Update.
4108 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4109 (ia64_init_extra_frame_info): Update.
4110 (ia64_init_extra_frame_info): Update.
4111 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4112 * cris-tdep.c (cris_init_extra_frame_info): Update.
4113 * avr-tdep.c (avr_frame_chain): Update.
4114 (avr_init_extra_frame_info): Update.
4115 (avr_frame_saved_pc): Update.
4116 * arm-tdep.c (arm_find_callers_reg): Update.
4117 (arm_init_extra_frame_info): Update.
4118 (arm_frame_saved_pc): Update.
4120 2002-09-17 Tom Tromey <tromey@redhat.com>
4122 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4125 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4127 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4128 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4130 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4133 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4135 * osfsolib.c: Remove file, replaced by solib-osf.c.
4136 * Makefile.in: Remove compilation rules for osfsolib.c.
4138 2002-09-16 David Carlton <carlton@math.stanford.edu>
4140 * cp-valprint.c (cp_print_class_method): Correct args to
4141 check_stub_method_group.
4143 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4145 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4146 `set architecture'. Unify naming convention of functions.
4147 (h8300_skip_prologue): Improve prologue analysis.
4148 (h8300_push_arguments): Rewritten to more closely match GCC's
4149 bizarre argument-passing behavior, along with the comment describing
4151 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4152 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4153 sim, remote-e7000.c, remote-hms.c and remote.c
4155 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4157 * i386-tdep.c (gdb_print_insn_i386): Removed.
4158 (i386_print_insn): New function.
4159 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4160 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4163 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4165 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4168 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4170 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4171 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4172 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4174 2002-09-13 Christopher Faylor <cgf@redhat.com>
4176 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4178 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4180 * gdbtypes.c (check_stub_method): Make static.
4181 (check_stub_method_group): New function.
4182 * gdbtypes.h: Update prototypes.
4183 * cp-support.c: New file.
4184 * cp-support.h: New file.
4186 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4187 (update_method_name_from_physname): New function.
4188 (read_member_functions): Correct method names for operators
4189 and v3 constructors/destructors. Separate v2 constructors and
4191 * Makefile.in (stabsread.o): Update dependencies.
4192 (SFILES): Add cp-support.c.
4193 (COMMON_OBS): Add cp-support.o.
4194 (cp_support_h, cp-support.o): Add.
4196 * cp-valprint.c (cp_print_class_method): Call
4197 check_stub_method_group instead of check_stub_method. Remove
4199 * p-valprint.c (pascal_object_print_class_method): Likewise.
4200 * valops.c (search_struct_method): Likewise.
4201 (find_method_list, value_struct_elt_for_reference): Likewise.
4203 2002-09-13 Andrew Cagney <cagney@redhat.com>
4205 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4206 * gdbarch.h, gdbarch.c: Regenerate.
4208 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4210 * frame.c (find_saved_register): Delete function.
4211 * frame.h (find_saved_register): Delete declaration.
4214 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4216 * mips-tdep.c (read_next_frame_reg): Re-hack using
4217 frame_register_unwind.
4219 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4221 * mips-tdep.c (mips_get_saved_register): Re-hack using
4222 frame_register_unwind.
4224 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4226 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4227 vector. Will be useful for Interix.
4228 * gdbarch.h, gdbarch.c: Regenerate.
4230 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4231 name of the malloc function by NAME_OF_MALLOC.
4233 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4235 * value.h (find_function_in_inferior): Add const keyword to
4236 one of the parameters. Allows us to invoke this function with
4238 * valops.c (find_function_in_inferior): Likewise.
4240 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4242 * exec.c (xfer_memory): Fix compilation warning with old versions
4244 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4246 2002-09-12 David Carlton <carlton@math.stanford.edu>
4248 * symtab.h: Run through gdb_indent.h.
4249 Add 2002 to Copyright year list.
4251 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4253 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4255 * MAINTAINERS: Add myself to write after approval list.
4257 2002-09-11 J. Brobecker <brobecker@gnat.com>
4259 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4261 2002-09-11 J. Brobecker <brobecker@gnat.com>
4263 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4266 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4268 * procfs.c (do_detach): Clear current signal, not just fault.
4269 Corrects problem with breakpoint trap signal leaking to detached
4272 2002-09-10 Michael Snyder <msnyder@redhat.com>
4274 * buildsym.c (finish_block): Protect against null pointer.
4276 2002-09-10 Andrew Cagney <cagney@redhat.com>
4278 * infcmd.c (default_print_registers_info): Send all output to
4279 ``file'' instead of ``gdb_stdout''.
4281 2002-09-10 Michael Snyder <msnyder@redhat.com>
4283 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4284 LONGEST, and use signed register read (addresses are sign-
4287 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4289 * event-loop.c (gdb_do_one_event): Make public.
4290 * event-loop.h (gdb_do_one_event): Declare.
4292 2002-09-10 Jeff Law <law@redhat.com>
4294 * infttrace.c (child_resume): Simplify and rework to avoid
4297 2002-09-09 Fred Fish <fnf@intrinsity.com>
4299 * printcmd.c (print_scalar_formatted): "len" is the number of
4300 target bytes, NOT the number of target bits.
4302 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4304 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4305 * top.c (init_main): Set rl_terminal_name.
4307 2002-09-08 Aidan Skinner <aidan@velvet.net>
4309 * ada-lang.c (ada_array_bound, ada_type_match,
4310 _initialize_ada_language): Fix K&R definitions.
4311 * ada-tasks.c (get_current_task): Fix K&R definitions.
4312 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4314 2002-09-07 Christopher Faylor <cgf@redhat.com>
4316 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4319 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4321 * i386-tdep.c (i386_register_virtual_type,
4322 i386_register_convertible, i386_register_convert_to_virtual,
4323 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4324 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4325 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4326 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4327 Don't set push_arguments twice.
4329 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4330 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4331 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4332 sigtramp_end to NULL.
4333 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4335 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4337 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4340 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4341 * gdbarch.h, gdbarch.c: Re-generate.
4342 * blockframe.c (find_pc_sect_partial_function): Convert to use
4343 SIGTRAMP_START_P predicate.
4345 2002-09-05 Michael Snyder <msnyder@redhat.com>
4347 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4348 generic_dummy_frame method and old method. Also distinguish
4349 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4350 (arm_extract_return_value): Use new regcache method.
4352 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4353 adjustment that doesn't conform to the ABI.
4354 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4355 saved regcache, not from current regcache.
4357 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4359 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4362 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4364 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4365 if arm_apcs_32 is false.
4367 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4369 GDB 5.3 branch created.
4371 2002-09-03 Theodore A. Roth <troth@verinet.com>
4373 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4374 generic_unwind_get_saved_register.
4376 2002-09-03 David Carlton <carlton@math.stanford.edu>
4378 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4379 argument (PR gdb/653). Update call to smash_to_method_type.
4380 (read_structure_scope): Update call to dwarf2_add_member_fn.
4382 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4384 * x86-64-linux-tdep.c: Include gdb_string.h
4385 * x86-64-linux-nat.c: Ditto.
4387 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4389 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4390 when YYDEBUG is set to 1.
4391 * c-exp.y: Likewise.
4392 * f-exp.y: Likewise.
4393 * jv-exp.y: Likewise.
4394 * m2-exp.y: Likewise.
4395 * p-exp.y: Likewise.
4397 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4399 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4401 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4402 solib_svr4_fetch_link_map_offsets to
4403 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4404 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4405 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4406 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4407 solib-svr4.o, and solib-legacy.o.
4408 * config/i386/tm-nbsd.h: Include solib.h.
4410 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4412 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4413 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4414 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4415 comment noting that this needs its own target configuration.
4416 * config/i386/nbsd.mt: New file.
4417 * config/i386/nbsdaout.mt: Remove.
4418 * config/i386/nbsdelf.mt: Ditto.
4419 * config/i386/tm-nbsdaout.h: Ditto.
4421 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4423 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4424 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4425 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4427 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4428 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4429 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4431 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4433 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4434 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4435 * i386-tdep.h (i386bsd_init_abi): New prototype.
4436 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4437 function declaration.
4438 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4439 for NetBSD-a.out or NetBSD-ELF.
4440 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4441 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4442 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4443 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4445 (i386nbsd_pc_in_sigtramp): New function.
4446 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4447 i386nbsd_pc_in_sigtramp.
4448 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4449 and i386nbsdelf_init_abi OS ABI handlers.
4450 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4451 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4453 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4455 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4456 registers if the target really has them.
4458 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4460 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4463 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4465 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4467 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4468 (alphanbsd_skip_sigtramp_frame): New functions.
4469 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4470 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4471 to alphanbsd_sigcontext_addr.
4473 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4475 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4477 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4478 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4479 nbsd_pc_in_sigtramp.
4480 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4481 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4482 * nbsd-tdep.c: Include gdb_string.h.
4483 (nbsd_pc_in_sigtramp): New function.
4484 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4485 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4486 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4487 ppcnbsd_pc_in_sigtramp.
4488 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4489 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4490 shnbsd_pc_in_sigtramp.
4491 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4492 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4493 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4495 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4497 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4498 watchpoints to NULL.
4499 (insert_breakpoints): set val field of watchpoints if NULL.
4502 2002-08-29 Jim Blandy <jimb@redhat.com>
4504 * symtab.c (lookup_symbol_aux): In the cases where we find a
4505 minimal symbol of an appropriate name and use its address to
4506 select a symtab to read and search, use `name' (as passed to us)
4507 as the demangled name when searching the symtab's global and
4508 static blocks, not the minsym's name.
4510 2002-08-29 Keith Seitz <keiths@redhat.com>
4512 * stack.c (print_frame_info_base): Always set current_source_symtab
4513 and current_source_line.
4515 2002-08-29 Donn Terry <donnte@microsoft.com>
4517 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4519 2002-08-28 Keith Seitz <keiths@redhat.com>
4521 * stack.c (select_frame): Add FIXME concerning selected-frame
4523 (select_frame_command): Send selected-frame-level-changed
4524 event notification, but only if the level actually changed.
4525 (up_silently_base): Add selected-frame-level-changed event
4527 (down_silently_base): Likewise.
4529 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4531 * Makefile.in: Update dependencies for all gdb/*.c files.
4533 2002-08-27 Tom Tromey <tromey@redhat.com>
4535 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4536 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4537 Update dependencies.
4538 * i387-tdep.c: Include gdb_string.h.
4539 * osabi.c: Likewise.
4540 * i386-linux-nat.c: Likewise.
4541 * lin-lwp.c: Likewise.
4542 * ax-gdb.c: Likewise.
4543 * signals/signals.c: Likewise.
4544 * jv-valprint.c: Likewise.
4545 * p-lang.c: Likewise.
4546 * c-valprint.c: Likewise.
4547 * cp-abi.c: Likewise.
4549 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4551 * cli/cli-script.h (copy_command_lines): Export.
4552 * breakpoint.c: Include cli/cli-script.h.
4553 * Makefile.in (breakpoint.o): Update dependencies.
4555 2002-08-26 Michael Snyder <msnyder@redhat.com>
4557 * breakpoint.c (insert_breakpoints): Protect all references
4558 to 'process_warning'. Shorten long lines.
4560 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4562 * cli/cli-script.c (copy_command_lines): New function.
4563 * defs.h (copy_command_lines): Export.
4564 * testsuite/gdb.base/commands.exp: New tests for commands
4565 attached to a temporary breakpoint, and for commands that
4566 delete the breakpoint they are attached to.
4568 2002-08-26 Michael Snyder <msnyder@redhat.com>
4570 * breakpoint.c (bpstat_stop_status): Instead of copying the
4571 pointer to the breakpoint commands struct, make a new copy
4572 of the struct and point to that.
4573 (bpstat_clear): Free the commands struct.
4574 (bpstat_clear_actions): Free the commands struct.
4575 (bpstat_do_actions): Free the command actions. Also execute
4576 the local cleanups, instead of deleting them.
4577 (delete_breakpoint): Leave the commands field of the bpstat
4578 chain alone -- it will be freed later.
4580 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4582 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4583 deleted in 2002-08-20 commit. This function is still used by
4586 2002-08-26 Keith Seitz <keiths@redhat.com>
4588 * gdb-events.sh: Add selected-frame-level-changed event.
4589 * gdb-events.c: Regenerated.
4590 * gdb-events.h: Regenerated.
4592 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4595 * inflow.c (terminal_save_ours): New function to save terminal
4597 * inferior.h (terminal_save_ours): Declare.
4598 * target.c (debug_to_terminal_save_ours): New function.
4599 (cleanup_target): Defaults to_terminal_save_ours.
4600 (update_current_target): Inherit to_terminal_save_ours.
4601 (setup_target_debug): Set to_terminal_save_ours.
4602 * target.h (target_terminal_save_ours): New to save terminal settings.
4603 (target_ops): New member to_terminal_save_ours.
4604 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4605 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4606 * inftarg.c (init_child_ops): Likewise.
4607 * m3-nat.c (init_m3_ops): Likewise.
4608 * procfs.c (init_procfs_ops): Likewise.
4609 * wince.c (init_child_ops): Likewise.
4610 * win32-nat.c (init_child_ops): Likewise.
4611 * sol-thread.c (init_sol_thread_ops): Likewise.
4613 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4615 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4616 use regcache_* functions.
4617 (i386_gdbarch_init): Set store_return_value instead of
4618 deprecated_store_return_value.
4620 * regcache.c (regcache_raw_write_signed,
4621 regcache_raw_write_unsigned): New functions.
4622 * regcache.h (regcache_raw_write_signed,
4623 regcache_raw_write_unsigned): New prototypes.
4625 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4627 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4628 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4629 source file dependencies. Cleanup corresponding generator rules.
4631 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4633 * regcache.h (register_offset_hack): Declare.
4634 (regcache_cooked_read_using_offset_hack): Declare.
4635 (regcache_cooked_write_using_offset_hack): Declare.
4637 * regcache.c (register_offset_hack): New function.
4638 (regcache_cooked_read_using_offset_hack): New function.
4639 (regcache_cooked_write_using_offset_hack): New function.
4640 (regcache_dump): Check that the registers, according to their
4641 offset, are packed hard against each other.
4642 (cooked_xfer_using_offset_hack): New function.
4644 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4646 * regcache.c (struct regcache_descr): Add field register_type.
4647 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4649 (init_regcache_descr): Initialize register_type. Pass the descr
4650 to init_legacy_regcache_descr. Use register_type instead of
4651 REGISTER_VIRTUAL_TYPE.
4652 (register_type): New function.
4653 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4654 * regcache.h (register_type): Declare.
4656 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4658 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4659 instead of deprecated_store_return_value. Fix fallout from
4660 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4662 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4664 * regcache.c (max_register_size): New function.
4665 (init_legacy_regcache_descr): Ensure that max_register_size is
4666 large enough for REGISTER_VIRTUAL_SIZE.
4667 * regcache.h (max_register_size): Declare.
4669 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4671 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4673 (e500_extract_return_value): Change type of valbuf pointer to
4676 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4678 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4681 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4682 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4683 long long) to prevent compiler warning on 64-bit systems.
4685 2002-08-23 Andrew Cagney <cagney@redhat.com>
4687 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4688 (DEPRECATED_STORE_RETURN_VALUE): New method.
4689 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4690 * gdbarch.h, gdbarch.c: Re-generate.
4692 * values.c (set_return_value): Pass current_regcache to
4694 * arch-utils.h (legacy_store_return_value): Declare.
4695 * arch-utils.c (legacy_store_return_value): New function.
4696 (legacy_extract_return_value): Update parameters.
4698 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4700 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4701 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4702 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4703 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4704 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4705 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4706 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4707 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4708 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4709 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4712 * i386-tdep.c (i386_extract_return_value): Update.
4713 * arch-utils.c (legacy_extract_return_value): Update.
4714 * frv-tdep.c (frv_gdbarch_init): Update.
4715 * cris-tdep.c (cris_gdbarch_init): Update.
4716 * d10v-tdep.c (d10v_gdbarch_init): Update.
4717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4718 * m68k-tdep.c (m68k_gdbarch_init): Update.
4719 * mcore-tdep.c (mcore_gdbarch_init): Update.
4720 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4721 * s390-tdep.c (s390_gdbarch_init): Update.
4722 * sparc-tdep.c (sparc_gdbarch_init): Update.
4723 * sh-tdep.c (sh_gdbarch_init): Update.
4724 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4725 * v850-tdep.c (v850_gdbarch_init): Update.
4726 * avr-tdep.c (avr_gdbarch_init): Update.
4727 * ia64-tdep.c (ia64_gdbarch_init): Update.
4728 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4729 * vax-tdep.c (vax_gdbarch_init): Update.
4730 * alpha-tdep.c (alpha_gdbarch_init): Update.
4731 * arm-tdep.c (arm_gdbarch_init): Update.
4732 * mips-tdep.c (mips_gdbarch_init): Update.
4733 * i386-tdep.c (i386_gdbarch_init): Update.
4735 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4737 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4738 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4740 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4742 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4745 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4747 * infrun.c (handle_inferior_event): Move a comment outside of a
4748 function call, in order to avoid indent reformatting this part
4749 of the code in an unreadable way.
4751 2002-08-23 Grace Sainsbury <graces@redhat.com>
4753 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4754 when breakpoints fail. Move general breakpoint error messages to
4756 * breakpoint.c (insert_breakpoints): Change warnings when
4757 breakpoints are nto inserted to specify the type. Remove call to
4758 memory_error when hardware breakpoints can't be inserted. Remove
4759 multiple calls to warning so all messages are sent to the user at
4761 (delete_breakpoints): Make insert error messsages more explicit.
4763 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4765 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4766 gdbserver/ChangeLog.
4768 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4770 * i386-tdep.c: Include "objfiles.h".
4771 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4772 skip_trampoline_code.
4773 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4774 (CPLUS_MARKER): Define to '.'.
4776 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4778 (linux_corefile_thread_callback): Increase args->num_notes.
4779 (linux_make_note_section): Initialize thread_args.num_notes, and
4780 use it to determine whether notes for any threads were created.
4782 2002-08-23 Donn Terry <donnte@microsoft.com>
4784 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4785 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4787 (write_with_trace): Conditionalize out the switch branch handling
4788 PCSHOLD if the corresponding macro is not defined. Likewise for
4789 PRSABORT and PRSTOP.
4790 This change will be needed by the Interix port.
4792 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4794 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4795 write_register wherever possible instead of manipulating the
4796 register bytes directly.
4797 Assign VALUE_CONTENTS to a variable and use that.
4798 The GPR numbers are now dependent on the architecture.
4800 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4802 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4804 (skip_prologue): Add support for BookE/e500 instructions.
4805 (e500_extract_return_value): New function.
4806 (frame_get_saved_regs): Add support for saving ev registers and
4808 (e500_store_return_value): New function.
4809 (rs6000_gdbarch_init): Move up default intializations of
4810 deprecated_extract_return_value and store_return_value. Overwrite
4811 init of store_return_value with e500 specific version.
4812 Set extract_return_value for e500.
4814 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4816 * blockframe.c (generic_call_dummy_register_unwind): Use
4817 regcache_cooked_read to catch cases in which the variable is
4818 stored in a pseudo register.
4820 2002-08-22 Andrew Cagney <cagney@redhat.com>
4822 * NEWS: Mention that the i960 has been made obsolete.
4823 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4825 (remote-nrom.o): Obsolete target.
4826 (remote-nindy.o, i960-tdep.o): Ditto.
4827 * remote-nrom.c: Make file obsolete.
4828 * remote-nindy.c, remote-vx960.c: Ditto.
4829 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4830 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4831 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4832 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4833 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4834 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4835 i960-*-vxworks* obsolete.
4836 * MAINTAINERS: Note that the i960 is obsolete.
4838 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4840 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4841 detach to allow reinitialization.
4843 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4845 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4848 2002-08-22 Jim Blandy <jimb@redhat.com>
4850 * coffread.c (coff_symfile_read): Don't try to read the line
4851 number table from disk if the image file doesn't have a symbol
4852 table; we'll never actually look at the info anyway, and Windows
4853 ships DLL's with bogus file offsets for the line number data.
4855 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4857 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4860 2002-08-21 Michael Snyder <msnyder@redhat.com>
4862 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4863 (MSYMBOL_SIZE): Replace macro with function.
4864 (DEFAULT_MIPS_TYPE): Delete unused macro.
4865 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4866 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4868 2002-08-21 Jim Blandy <jimb@redhat.com>
4870 * valops.c (value_cast): Simplify and correct logic for doing a
4871 static cast from a pointer to a base class to a pointer to a
4874 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4876 * infcmd.c (default_print_registers_info): Replace
4878 (registers_info): Use gdbarch_print_registers_info instead of
4880 * inferior.h (default_print_registers_info): Replace
4882 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4883 (DO_REGISTERS_INFO): Change to a predicate function.
4884 * gdbarch.h, gdbarch.c: Regenerate.
4886 2002-08-21 Keith Seitz <keiths@redhat.com>
4888 * gdb-events.sh: Add target-changed event.
4889 * gdb-events.c: Regenerated.
4890 * gdb-events.c: Regenerated.
4891 * valops.c (value_assign): Add target-changed event notification
4892 to inlval_register, lval_memory, and lval_reg_frame_relative.
4894 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4896 * NEWS: Add an entry regarding the improvement of the next/step
4897 operation on Alpha Tru64 multi-processor machines.
4899 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4901 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4903 * Makefile.in: Update all _h macro definitions.
4904 * Makefile.in (install-gdbtk): Move to install section.
4905 (rdi-share/libangsd.a): Move to end of file.
4907 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4909 * frame.c (frame_register_unwind): When a register, set addrp to
4910 the register's byte.
4912 2002-08-20 Michael Snyder <msnyder@redhat.com>
4914 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4915 used locally, so move them from the target machine header to here.
4916 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4917 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4919 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4921 2002-08-20 Andrew Cagney <cagney@redhat.com>
4923 * NEWS: Mention that the Apollo line was made obsolete.
4924 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4925 m68*-hp-hpux* obsolete.
4926 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4927 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4928 * buildsym.c (make_blockvector): Make static.
4929 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4930 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4931 (ALLDEPFILES): Remove dstread.c.
4932 (dstread.o): Obsolete make rule.
4933 * dstread.c: Makefile obsolete.
4935 * config/m68k/hp300hpux.mt: Ditto.
4936 * config/m68k/hp300hpux.mh: Ditto.
4937 * config/m68k/hp300bsd.mt: Ditto.
4938 * config/m68k/hp300bsd.mh: Ditto.
4939 * config/m68k/apollo68b.mt: Ditto.
4940 * config/m68k/apollo68v.mh: Ditto.
4941 * config/m68k/apollo68b.mh: Ditto.
4943 2002-08-20 Michael Snyder <msnyder@redhat.com>
4945 * mips-tdep.c (mips_in_return_stub): Make static.
4946 (mips_gdbarch_init): Set in_solib_return_trampoline.
4947 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4949 2002-08-20 Michael Snyder <msnyder@redhat.com>
4951 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4952 * gdbarch.c, gdbarch.h: Regenerate.
4953 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4955 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4957 2002-08-20 Michael Snyder <msnyder@redhat.com>
4959 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4960 (mips_gdbarch_init): Set skip_trampoline_code,
4961 in_solib_call_trampoline.
4962 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4963 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4965 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4967 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4969 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4970 vector type for ev registers.
4971 (e500_pseudo_register_read): New function.
4972 (e500_pseudo_register_write): New function.
4973 (e500_dwarf2_reg_to_regnum): New function.
4974 (PPC_UISA_NOFP_SPRS): New macro.
4975 (PPC_EV_REGS): New macro.
4976 (PPC_GPRS_PSEUDO_REGS): New macro.
4977 (registers_e500): New register set for e500.
4978 (variants): Add e500 variant.
4979 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4980 before setting architectural dependent variations. Initialize ev
4981 registers numbers. Add case for e500 architecture. Set the
4982 number of pseudo registers.
4984 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4986 * rs6000-tdep.c: Clean up comments.
4988 2002-08-20 Andrew Cagney <cagney@redhat.com>
4990 * h8300-tdep.c: Re-indent file.
4992 2002-08-20 Jim Blandy <jimb@redhat.com>
4994 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4997 2002-08-20 Keith Seitz <keiths@redhat.com>
4999 * breakpoints.c (watch_command_1): Use internal breakpoint
5000 when setting a watchpoint_scope breakpoint.
5002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5004 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5005 (build_builtin_type_vec64i): Ditto.
5006 (build_builtin_type_vec128): Ditto.
5007 (build_builtin_type_vec128i): Ditto.
5009 2002-08-19 Michael Snyder <msnyder@redhat.com>
5011 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5012 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5013 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5014 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5015 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5016 CALL_DUMMY_ADDRESS): Delete.
5017 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5018 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5019 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5020 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5021 push_return_address.
5022 (mips_register_raw_size, mips_eabi_use_struct_convention,
5023 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5024 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5025 mips_init_extra_frame_info, mips_eabi_push_arguments,
5026 mips_n32n64_push_arguments, mips_push_return_address,
5027 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5028 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5030 2002-08-19 Michael Snyder <msnyder@redhat.com>
5032 * mips-tdep.c (mips_frame_num_args): New function.
5033 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5034 frame_saved_pc, frame_args_address, frame_locals_address,
5035 frame_num_args, and frame_args_skip.
5036 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5037 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5038 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5039 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5041 2002-08-20 Michael Snyder <msnyder@redhat.com>
5043 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5044 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5045 * mips-tdep.c (mips_store_struct_return): New function.
5046 (mips_extract_struct_value_address): New function.
5047 (mips_gdbarch_init): Set store_struct_return and
5048 extract_struct_value_address.
5050 2002-08-20 David Carlton <carlton@math.stanford.edu>
5052 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5053 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5054 (read_file_scope): Check that line_header is nonzero before
5055 decoding macro information.
5057 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5059 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5060 flag the general-purpose registers as floating-point on targets
5061 that don't support the floating-point registers.
5063 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5065 * rs6000-tdep.c (altivec_register_p): Delete.
5066 (rs6000_do_altivec_registers): Delete.
5067 (rs6000_altivec_registers_info): Delete.
5068 (rs6000_do_registers_info): Delete.
5069 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5070 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5072 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5074 * infcmd.c (do_registers_info): Print vector registers in hex
5076 (print_vector_info): Check that printing registers
5078 (print_float_info): Ditto.
5080 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5082 * mips-tdep.c (mips_gdbarch_init): Update.
5083 (mips_o32_extract_return_value): Rewrite.
5084 (mips_o32_store_return_value): Rewrite.
5085 (mips_o32_xfer_return_value): New function.
5086 (mips_xfer_register): Tweak debug print message. Allow for
5087 buf_offset when dumping the value transfered.
5089 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5091 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5092 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5093 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5094 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5095 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5097 2002-08-14 Michael Snyder <msnyder@redhat.com>
5099 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5101 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5103 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5105 (P): New macro to define a register as a pseudo register.
5106 (R, R4, R8, R16, FR32, R64, R0): Updated.
5107 (struct variant): Add new fields for number of pseudo registers
5108 and number of total registers.
5109 (tot_num_registers): New macro replacing....
5110 (num_registers): ...deleted macro.
5111 (num_registers): New function.
5112 (num_pseudo_registers): New function.
5113 (variants): Update all variants to intialize new fields correctly.
5114 Postpone initialization of number of pseudo regs and real regs.
5115 (init_variants): New function.
5116 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5119 2002-08-19 David Carlton <carlton@math.stanford.edu>
5121 * valops.c (search_struct_field): Change error message to treat
5122 return value of 0 from value_static_field as meaning that field is
5124 (value_struct_elt_for_reference): Ditto.
5125 * values.c (value_static_field): Treat an unresolved location the
5126 same as a nonexistent symbol. Fix PR gdb/635.
5127 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5128 enclosed. Fix PR gdb/574.
5129 * MAINTAINERS: Add self to Write After Approval list.
5131 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5133 * mips-tdep.c (mips_xfer_register): New function.
5134 (mips_n32n64_extract_return_value): Rewrite.
5135 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5136 instead of deprecated_extract_return_value.
5138 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5140 * rs6000-tdep.c (TDEP): Delete macro.
5141 (branch_dest): Replace use of TDEP macro with its body.
5142 (rs6000_pop_frame): Ditto.
5143 (rs6000_push_arguments): Ditto.
5144 (rs6000_skip_trampoline_code): Ditto.
5145 (rs6000_frame_saved_pc): Ditto.
5146 (rs6000_frame_chain): Ditto.
5147 (rs6000_register_name): Ditto.
5148 (rs6000_register_byte): Ditto.
5149 (rs6000_register_raw_size): Ditto.
5150 (rs6000_register_virtual_type): Ditto.
5151 (rs6000_register_convertible): Ditto.
5152 (rs6000_convert_from_func_ptr_addr): Ditto.
5154 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5156 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5158 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5159 MIPS_LINUX_JB_ELEMENT_SIZE.
5160 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5161 for MAX_REGISTER_RAW_SIZE arrays.
5162 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5163 MIPS_LINUX_JB_ELEMENT_SIZE.
5165 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5167 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5169 2002-08-19 Aidan Skinner <aidan@velvet.net>
5171 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5172 ada-valprint.c ada-tasks.c.
5173 (YYFILES): Add ada-exp.y.
5174 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5175 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5176 (ada-exp.tab.o): New target.
5178 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5180 * regcache.c (regcache_xfer_part): New function.
5181 (regcache_raw_read_part): New function.
5182 (regcache_raw_write_part): New function.
5183 (regcache_cooked_read_part): New function.
5184 (regcache_cooked_write_part): New function.
5185 * regcache.h (regcache_raw_read_part): Declare.
5186 (regcache_raw_write_part): Declare.
5187 (regcache_cooked_read_part): Declare.
5188 (regcache_cooked_write_part): Declare.
5190 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5192 * remote.c (remote_open_1): Add async_p.
5193 (remote_async_open_1): Delete.
5194 (open_remote_target): Delete.
5195 (remote_open, extended_remote_open): Update calls to remote_open_1.
5196 (remote_async_open, extended_remote_async_open): Call
5197 remote_open_1 instead of remote_async_open_1.
5199 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5201 * blockframe.c: Fix a few coding standard violations.
5203 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5205 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5207 * config/i386/tm-i386sco5.h: ... here. File removed.
5208 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5210 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5211 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5212 (TM_FILE): Set to tm-i386.h.
5213 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5214 * config/i386/tm-i386v.h: Remove file.
5215 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5216 instead of "i386/tm-i386v.h".
5217 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5218 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5220 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5221 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5224 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5226 * config/i386/nm-i386v.h: Add protection against
5228 (i386_register_u_addr): Remove prototype.
5229 (register_u_addr): New prototype.
5230 (REGISTER_U_ADDR): Redefine accordingly.
5231 * i386v-nat.c: Improve several comments.
5232 (i386_register_u_addr): Change signature and rename to
5233 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5236 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5238 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5239 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5240 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5241 deprecated_extract_return_value.
5242 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5243 rename mips_o32o64_push_arguments.
5244 (mips_gdbarch_init): Update.
5245 (mips_extract_return_value): Delete.
5246 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5247 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5248 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5249 (mips_n32n64_extract_return_value): Clone
5250 mips_extract_return_value.
5251 (mips_store_return_value): Delete.
5252 (mips_o32_store_return_value): Clone mips_store_return_value.
5253 (mips_o64_store_return_value): Clone mips_store_return_value.
5254 (mips_eabi_store_return_value): Clone mips_store_return_value.
5255 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5257 2002-08-18 Aidan Skinner <aidan@velvet.net>
5259 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5260 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5262 2002-08-18 Aidan Skinner <aidan@velvet.net>
5264 * ada-lang.c: Run through gdb_indent.sh.
5265 * ada-lang.h: Run through gdb_indent.sh.
5266 * ada-tasks.c: Run through gdb_indent.sh.
5267 * ada-typeprint.c: Run through gdb_indent.sh.
5268 * ada-valprint.c: Run through gdb_indent.sh.
5270 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5272 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5275 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5277 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5279 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5280 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5282 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5283 write_register_gen instead of write_register_bytes.
5285 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5286 i[3456]-*-osf1mk* configurations have been made obsolete.
5287 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5288 i[3456]86-*-osf1mk* hosts obsolete.
5289 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5291 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5292 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5293 config/i386/i386m3.mt, config/i386/nm-m3.h,
5294 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5295 config/i386/i386mk.mh, config/i386/i386mk.mt,
5296 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5298 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5299 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5300 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5302 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5304 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5305 (hppa_value_returned_from_stack): Declare.
5306 (hppa_extract_return_value): Declare.
5307 * config/pa/hppa.mt: New file.
5308 * configure.tgt: Recognize hppa*-*-*.
5309 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5311 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5313 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5316 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5318 * top.c (gdb_rl_operate_and_get_next): Make sure
5319 operate-and-get-next functions correctly even when the history
5320 list is completely filled.
5322 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5324 * MAINTAINERS (Target Instruction Set Architectures): Rename
5325 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5326 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5327 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5328 already listed under Host/Native.
5330 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5331 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5334 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5336 * config/ia64/ia64.mt: New file.
5337 * config/alpha/alpha.mt: New file.
5338 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5339 ia64-linux-gnu. Mention that ia64-elf is broken.
5340 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5342 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5344 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5345 generic_func_frame_valid instead of func_frame_valid.
5347 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5349 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5350 procfs appears to be broken when debugging on multi-processor
5351 machines. So enable software single stepping in order to avoid
5352 using the procfs interface to do next/step operations, using
5353 internal breakpoints instead.
5355 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5356 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5357 make this pc address equal to the value it would have if the
5358 system stepping capability was used. Also set a new flag used
5359 to ensure that we don't readjust the PC one more time later.
5361 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5362 address by DECR_PC_AFTER_BREAK when software single step is
5363 in use for this architecture, as this has already been taken
5364 care of in handle_inferior_event().
5366 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5368 * infrun.c (handle_inferior_event): Minor reformatting, to make
5369 a rather long condition expression easier to read.
5371 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5373 * Makefile.in (gdbtk.o): Move to end of file.
5374 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5375 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5376 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5377 (gdbtk-wrapper.o, gdbres.o): Ditto.
5379 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5381 * Makefile.in (copying.o): Separate out compile rule.
5382 (hpux-thread.o, procfs.o, signals.o): Ditto.
5383 (v850ice.o, z8k-tdep.o): Ditto.
5384 (tui-file.o): Move to TUI section.
5385 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5386 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5388 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5390 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5391 skip_trampoline_code, for better namespace-proofing.
5393 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5395 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5397 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5399 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5401 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5402 signal, check whether we hit a breakpoint before checking for a
5403 single step breakpoint. Otherwise, GDB fails to notice that a
5404 breakpoint has been hit when stepping onto a breakpoint.
5406 2002-08-16 Keith Seitz <keiths@redhat.com>
5408 * gdb-events.sh (clear_gdb_event_hooks): New function.
5409 * gdb-events.c: Regenerate.
5410 * gdb-events.h: Regenerate.
5412 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5414 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5415 not_a_sw_breakpoint.
5416 * breakpoint.h (bpstat_stop_status): Add parameter names.
5418 2002-08-16 Grace Sainsbury <graces@redhat.com>
5420 * remote.c (remote_insert_hw_breakpoint)
5421 (remote_remove_hw_breakpoint): Fix calculation of length field
5424 2002-08-15 Michael Snyder <msnyder@redhat.com>
5426 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5427 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5428 (supply_fpregset): Ditto.
5430 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5431 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5432 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5433 (TARGET_READ_SP): Delete.
5434 (DO_REGISTERS_INFO): Delete.
5435 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5437 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5438 from macros to functions.
5440 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5441 (mips_register_convertible, mips_register_convert_to_virtual,
5442 mips_register_convert_to_raw): Make static.
5443 (mips_read_sp): New function.
5444 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5445 (mips_do_registers_info): Make static.
5446 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5447 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5448 (mips_register_convert_from_type, mips_register_convert_to_type):
5450 (mips_gdbarch_init): Set up function_start_offset,
5451 register_virtual_size, pc_in_sigtramp.
5453 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5455 * infcmd.c (vector_info): New function.
5456 (_initialize_infcmd): Add command "info vector".
5457 (print_vector_info): New function.
5459 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5460 * gdbarch.h, gdbarch.c: Regenerate.
5462 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5464 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5465 ``print_all''. Only print vector registers when ``print_all''.
5467 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5469 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5470 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5472 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5473 Add `args' parameter.
5474 * gdbarch.h, gdbarch.c: Regenerate.
5476 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5478 * infcmd.c (float_info): Call print_float_info.
5479 (print_float_info): New function. By default, print the
5480 floating-point registers.
5482 * arch-utils.h (default_print_float_info): Delete declaration.
5483 * arch-utils.c (default_print_float_info): Delete function.
5485 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5487 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5490 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5493 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5494 * configure.host: Make i[3456]86-*-aix host obsolete.
5495 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5496 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5497 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5498 config/i386/xm-i386aix.h: Make files obsolete.
5499 * i386aix-nat.c: Make file obsolete.
5500 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5501 (i386aix-nat.o): Make target obsolete.
5503 * config/i386/nm-gnu.h: Removed.
5504 * config/i386/nm-i386gnu.h: New file.
5505 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5506 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5508 * config/i386/tm-i386gnu.h: ... here. Removed.
5509 * config/i386/xm-i386gnu.h: Removed.
5510 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5511 (NAT_FILE): Set to nm-i386gnu.h.
5512 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5513 * i386-tdep.c: New file.
5514 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5515 (i386gnu-tdep.o): Specify dependencies.
5517 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5519 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5520 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5521 Adjust a few comments to reflect reality a bit closer.
5522 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5523 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5524 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5525 target_insert_watchpoint, target_remove_watchpoint):
5527 * config/i386/nm-i386sco5.h: ... here.
5528 (kernel_u_size): Add prototype. Improve a few comments and add
5529 protection against multiple inclusion.
5531 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5534 * uw-thread.c (SP_ARG0): Define if not already defined.
5535 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5537 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5539 * config/i386/tm-i386.h: Don't include "regcache.h".
5541 * i387-tdep.h (i387_print_float_info): New prototype.
5542 * i387-tdep.c (print_i387_value, print_i387_ext,
5543 print_i387_status_word, print_i387_control_word): Add `struct
5544 ui_file *' argument and use it for output.
5545 (i387_print_float_info): Renamed from i387_float_info. Add
5546 `struct gdbarch *' and `struct ui_file *' arguments and use the
5548 * i386-tdep.c: Include "i387-tdep.h".
5549 (i386_gdbarch_init): Set print_float_info.
5550 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5551 (FLOAT_INFO): Remove define.
5553 2002-08-13 Michael Snyder <msnyder@redhat.com>
5555 * mips-tdep.c (mips_push_arguments): Rename to
5556 mips_eabi_push_arguments, and tune for EABI.
5557 (MIPS_REGS_HAVE_HOME_P): Delete.
5558 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5559 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5560 Delete references to mips_regs_have_home_p.
5562 2002-08-14 Keith Seitz <keiths@redhat.com>
5564 * Makefile.in (install-gdbtk): Create insight plugin directory.
5565 Install plugins.tcl file.
5567 2002-08-14 Keith Seitz <keiths@redhat.com>
5569 * configure.in: Move SUBDIRS to near top of the file so that
5570 --enable options may add things to it.
5571 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5572 * configure: Regenerate.
5574 2002-08-13 Michael Snyder <msnyder@redhat.com>
5576 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5577 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5578 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5580 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5582 * vax-tdep.c (vax_get_saved_register): Delete function.
5583 (vax_gdbarch_init): Update.
5584 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5585 (ns32k_gdbarch_init): Update.
5586 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5587 (alpha_gdbarch_init): Update.
5589 2002-08-13 Andrew Cagney <cagney@redhat.com>
5591 * regcache.c (init_regcache_descr): Overallocate the
5592 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5593 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5595 (set_register_cached): Add range checking assertions. Use
5598 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5600 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5601 numbers for MMX registers.
5603 2002-08-13 Andrew Cagney <cagney@redhat.com>
5605 * i386-tdep.c (i386_gdbarch_init): Use
5606 generic_unwind_get_saved_register.
5608 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5610 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5611 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5613 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5614 Delete. Add comment regarding this now-deleted target method.
5616 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5618 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5619 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5620 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5621 real PC and the page number (if it's within the memory bank window).
5622 (m68hc11_pseudo_register_write): Likewise when saving.
5623 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5624 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5625 (m68hc11_register_raw_size): And use 32-bit for it.
5626 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5627 16K memory bank is used by the prog; also use the virtual pc.
5629 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5631 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5632 (m68hc11_gdbarch_init): Install it in gdbarch.
5633 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5634 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5635 (MSYMBOL_SIZE): New for documentation.
5636 (insn_return_kind): Enum to specify how a function returns.
5637 (frame_extra_info): Cleanup and record the return mode.
5638 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5639 register in address computation.
5640 (m68hc11_get_return_insn): New to obtain the return instruction used
5642 (m68hc11_frame_init_saved_regs): Take into account the return
5643 instruction used by the function for far and interrupt functions.
5644 (m68hc11_init_extra_frame_info): Take into account page register.
5645 (m68hc11_frame_args_address): Adjust according to the return mode.
5646 (show_regs): Print page register only when it's used.
5648 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5650 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5651 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5652 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5654 (m68hc11_register_raw_size): Likewise.
5656 2002-08-13 Andrew Cagney <cagney@redhat.com>
5658 * i386-tdep.c (i386_register_name): Handle mmx registers.
5659 (mmx_regnum_p): New function.
5660 (i386_mmx_names): New array.
5661 (mmx_num_regs): New variable.
5662 (i386_pseudo_register_read): New function.
5663 (i386_pseudo_register_write): New function.
5664 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5666 * regcache.c (regcache_raw_read_unsigned): New function.
5667 (regcache_raw_read_signed): New function.
5668 * regcache.h (regcache_raw_read_unsigned): Declare.
5669 (regcache_raw_read_signed): Declare.
5671 2002-08-13 Andrew Cagney <cagney@redhat.com>
5673 * regcache.c (regcache_raw_read_as_address): Delete function.
5674 (regcache_cooked_read_signed): New function.
5675 (regcache_cooked_read_unsigned): New function.
5676 * regcache.h (regcache_cooked_read_signed): Declare.
5677 (regcache_cooked_read_unsigned): Declare.
5678 (regcache_raw_read_as_address): Delete declaration.
5680 * blockframe.c (generic_read_register_dummy): Use
5681 regcache_cooked_read_unsigned.
5682 * i386-tdep.c (i386_extract_struct_value_address): Use
5683 regcache_cooked_read_unsigned.
5685 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5688 double sizes according to ELF ABI flags.
5689 (gdbarch_tdep): Record elf_flags.
5691 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5693 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5694 (m6812_prolog): They can appear in 68HC12 function prologue.
5695 (m68hc11_frame_chain): Cleanup.
5697 2002-08-12 Andrew Cagney <cagney@redhat.com>
5699 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5701 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5702 (i386_linux_register_raw_size): Delete function.
5703 (i386_linux_init_abi): Update.
5704 * i386-tdep.c (i386_register_raw_size): Delete function.
5705 (i386_register_byte): Delete function.
5706 (i386_gdbarch_init): Update.
5707 (i386_register_size): Delete array.
5708 (i386_register_offset): Delete array.
5710 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5711 (REGISTER_RAW_SIZE): Delete macro.
5712 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5713 (REGISTER_BYTE): Delete macro.
5715 2002-08-11 Aidan Skinner <aidan@velvet.net>
5717 * ada-lang.c (ada_lookup_partial_symbol)
5718 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5719 prototype names so that grep ^func works properly.
5721 * ada-lang.c (ada_array_element_type)
5722 (ada_lookup_partial_symbol): Fix typos in parameter list.
5724 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5725 Fix prototype names so that grep ^func works properly.
5727 2002-08-10 Andrew Cagney <cagney@redhat.com>
5728 Elena Zannoni <ezannoni@redhat.com>
5729 Martin M. Hunt <hunt@redhat.com>
5731 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5732 (build_builtin_type_vec128i): Set the vector bit.
5733 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5734 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5735 (build_builtin_type_vec64): New function.
5736 (build_builtin_type_vec64i): New function.
5737 (build_gdbtypes): Initialize builtin_type_vec64 and
5738 builtin_type_vec64i.
5740 2002-08-09 Andrew Cagney <cagney@redhat.com>
5742 * regcache.c (regcache_dump): Compare the register offset
5744 * arch-utils.c (generic_register_byte): New function.
5745 * arch-utils.h (generic_register_byte): Declare.
5746 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5747 * gdbarch.h, gdbarch.c: Regenerate.
5749 2002-08-09 Andrew Cagney <cagney@redhat.com>
5751 * regcache.c: Include "gdbcmd.h"
5752 (_initialize_regcache): Add commands "maintenance print
5753 registers", "maintenance print raw-registers" and "maintenance
5754 print cooked-registers".
5755 (enum regcache_dump_what): Define.
5756 (dump_endian_bytes): New function.
5757 (regcache_dump): New function.
5758 (regcache_print): New function.
5759 (maintenance_print_registers): New function.
5760 (maintenance_print_raw_registers): New function.
5761 (maintenance_print_cooked_registers): New function.
5762 * Makefile.in (regcache.o): Update dependencies.
5764 2002-08-09 Michael Snyder <msnyder@redhat.com>
5766 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5767 (mips_push_arguments): Correct some comments. Use paddr_nz
5768 for printing addresses in debug output. Replace static
5769 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5770 (mips_n32n64_push_arguments): New function, cloned from
5771 mips_push_arguments and tuned for the n32/n64 ABI.
5772 (mips_push_register): Buffer needs dynamic allocation.
5773 (mips_print_register): Ditto.
5774 (do_gp_register_row): Ditto.
5775 (mips_store_return_value): Ditto.
5776 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5778 2002-08-09 Don Howard <dhoward@redhat.com>
5780 * memattr.c (mem_info_command): Print special case of upper bound
5781 as max CORE_ADDR + 1.
5783 2002-08-08 Michael Snyder <msnyder@redhat.com>
5785 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5786 returns structs by ref if they're too big to fit in two registers.
5788 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5790 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5792 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5793 mips_find_saved_regs().
5794 (mips_pop_frame): Likewise.
5796 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5798 * blockframe.c (frame_saved_regs_register_unwind): Revise
5799 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5802 2002-08-09 Grace Sainsbury <graces@redhat.com>
5804 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5805 T-packets; the 'a' is not taken as a register number.
5806 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5807 (remote_stopped_data_address): New functions; add to target
5809 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5810 prototypes to match other implementations of this
5811 function. replace integer argument with pointer -- the length
5812 field in the Z-packet is the length of what is pointed to or 1 if
5813 pointer is null. Add to target vector.
5814 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5818 * remote.c (remote_wait): Add support to extract optional
5819 watchpoint information from T-packet. Ignore unrecognized
5820 optional info in T-packet.
5821 (remote_async_wait): Ditto.
5823 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5825 * cli/cli-dump.c: Change fopen modes to use binary open modes
5826 as defined in include/fopen-bin.h throughout.
5828 2002-08-08 Michael Snyder <msnyder@redhat.com>
5830 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5832 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5834 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5835 assertion failure by returning early after a warning.
5837 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5839 * mips-tdep.c (mips_find_saved_regs): Make static.
5840 (mips_frame_init_saved_regs): New function.
5841 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5842 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5843 (mips_find_saved_regs): Delete declaration.
5845 2002-08-08 Grace Sainsbury <graces@redhat.com>
5847 * remote.c (remote_wait, remote_async_wait): Change
5848 thread_num from int to ULONGEST.
5849 (unpack_varlen_hex): Change result parameter from
5850 int * to ULONGEST *.
5852 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5854 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5855 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5857 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5859 2002-08-08 Andrew Cagney <cagney@redhat.com>
5861 * gcore.c (override_derive_stack_segment): Delete variable.
5862 (preempt_derive_stack_segment): Delete function.
5863 (derive_stack_segment): Delete function.
5864 (default_derive_stack_segment): Renamed to derive_stack_segment.
5865 (override_derive_heap_segment): Delete variable.
5866 (preempt_derive_heap_segment): Delete function.
5867 (derive_heap_segment): Delete function.
5868 (default_derive_heap_segment): Rename to derive_heap_segment.
5870 2002-08-06 Michael Snyder <msnyder@redhat.com>
5872 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5873 * mips-tdep.c (mips_EABI_use_struct_convention,
5874 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5875 New functions. (mips_use_struct_convention): Delete.
5876 (mips_gdbarch_init): set use_gdbarch_convention.
5878 2002-08-06 Michael Snyder <msnyder@redhat.com>
5880 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5881 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5882 mips_o32_reg_struct_has_addr): New functions.
5883 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5885 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5887 * regcache.c (pseudo_register): Delete function.
5888 (fetch_register): Delete function.
5889 (store_register): Delete function.
5890 (regcache_raw_read, legacy_read_register_gen): Use
5891 target_fetch_registers instead of fetch_register.
5892 (legacy_write_register_gen, regcache_raw_write): Use
5893 target_store_register instead of store_register.
5894 (write_register_bytes): Ditto.
5896 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5897 (STORE_PSEUDO_REGISTER): Delete.
5898 * gdbarch.h, gdbarch.c: Regenerate.
5900 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5902 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5903 write dump file binary.
5905 2002-08-05 Michael Snyder <msnyder@redhat.com>
5907 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5908 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5909 (mips_gdbarch_init): Set N32 target to be mips64.
5911 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5913 * frame.c (find_saved_register): Break out of loop once saved
5914 register address is found. Don't mention sparc in loop comment
5917 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5919 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5920 mips_default_saved_regsize to 8.
5922 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5924 * gcore.c: Do not include <sys/procfs.h>.
5925 * Makefile.in (gcore.o): Update dependencies.
5927 2002-08-06 Andrew Cagney <cagney@redhat.com>
5929 * configure.tgt: Make arc-*-* obsolete.
5930 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5931 * MAINTAINERS: Make arc-elf obsolete.
5932 * arc-tdep.c: Make file obsolete.
5933 * config/arc/arc.mt: Ditto.
5934 * config/arc/tm-arc.h: Ditto.
5936 2002-08-05 Theodore A. Roth <troth@verinet.com>
5938 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
5940 2002-08-05 Andrew Cagney <ac131313@redhat.com>
5942 * mcore-tdep.c (mcore_gdbarch_init): Use
5943 generic_unwind_get_saved_register instead of
5944 generic_get_saved_register.
5945 * v850-tdep.c (v850_gdbarch_init): Ditto.
5946 * frv-tdep.c (frv_gdbarch_init): Ditto.
5947 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5948 * s390-tdep.c (s390_gdbarch_init): Ditto.
5949 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5950 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5951 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5953 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5955 * objfiles.h: Add missing #include "symfile.h"
5957 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5959 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5961 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5962 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5965 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5967 * NEWS: Cleanup and nitpick.
5969 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5971 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5973 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5975 * Makefile.in (gdbtk-bp.o): Update dependencies.
5976 (gdbtk-register.o): Ditto.
5977 (gdbtk-varobj.o): Ditto.
5979 2002-08-03 Andrew Cagney <cagney@redhat.com>
5981 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5982 m68hc11_fetch_pseudo_register.
5983 (m68hc11_pseudo_register_write): Replace
5984 m68hc11_store_pseudo_register.
5985 (m68hc11_gdbarch_init): Update.
5987 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5989 * gdbarch.sh: Include "gdb_string.h".
5990 * gdbarch.c: Regenerate.
5992 * regcache.c: Include "gdb_string.h".
5993 * ax-general.c: Ditto.
5995 * std-regs.c: Ditto.
5996 * fbsd-proc.c: Ditto.
5999 * Makefile.in (regcache.o): Update dependencies.
6000 (thread.o, gdbarch.o): Ditto.
6001 (ax-general.o, gdbarch.o): Ditto.
6002 (varobj.o, std-regs.o): Ditto.
6003 (fbsd-proc.o): Specify dependencies.
6005 2002-08-02 Andrew Cagney <cagney@redhat.com>
6007 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6009 (regcache_cooked_write): Ditto.
6011 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6013 * regcache.c (regcache_cooked_read): New function.
6014 (regcache_cooked_write): New function.
6015 (read_register_gen): Rewrite using regcache_cooked_read.
6016 (write_register_gen): Rewrite using regcache_cooked_write.
6018 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6021 2002-08-02 Andrew Cagney <cagney@redhat.com>
6023 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6024 Replace the architecture methods register_read and register_write.
6025 * gdbarch.h, gdbarch.c: Regenerate.
6026 * regcache.c (init_regcache_descr): Update.
6027 (read_register_gen): Update.
6028 (write_register_gen): Update.
6029 (supply_register): Update comment.
6031 * sh-tdep.c (sh_gdbarch_init): Update.
6032 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6033 `regcache' and `gdbarch' parameters. Make `buffer' a void
6034 pointer. Update code.
6035 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6036 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6037 void pointer. Update code.
6038 (sh64_register_write): Delete.
6039 (sh4_register_read): Delete.
6040 (sh64_register_read): Delete.
6041 (sh4_register_write): Delete.
6042 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6043 void pointer, `to' parameter a void pointer.
6044 (sh_sh64_register_convert_to_raw): Ditto.
6046 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6048 * mips-tdep.c (mips_register_virtual_type): Use architecture
6049 invariant return values.
6051 2002-08-01 Andrew Cagney <cagney@redhat.com>
6053 * linux-proc.c: Include "gdb_string.h".
6054 * Makefile.in (linux-proc.o): Update dependency list.
6056 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6058 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6061 2002-08-01 Grace Sainsbury <graces@redhat.com>
6063 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6064 to_insert_watchpoint, to_remove_watchpoint,
6065 to_stopped_by_watchpoint, to_stopped_data_address,
6066 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6067 target vecctor. Define their corresponding macros so they call
6070 * target.c: Add default and debug versions of for
6071 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6072 to_insert_watchpoint, to_remove_watchpoint,
6073 to_stopped_by_watchpoint, to_stopped_data_address,
6074 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6076 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6078 * mips-tdep.c (mips_register_virtual_type): New function.
6079 (mips_gdbarch_init): Register mips_register_virtual_type()
6080 with gdbarch machinery.
6081 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6082 this file instead of tm-bigmips.h.
6083 (MIPS_REGSIZE): Delete this macro.
6084 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6085 multiarch version in mips-tdep.c will be found.
6087 2002-08-01 Andrew Cagney <cagney@redhat.com>
6089 * NEWS: Menion that CHILL has been made obsolete.
6091 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6092 * stabsread.c (read_range_type): Ditto.
6093 * gdbtypes.h: Ditto.
6094 * language.c (binop_type_check): Ditto.
6095 (binop_result_type): Ditto.
6096 (integral_type): Ditto.
6097 (character_type): Ditto.
6098 (string_type): Ditto.
6099 (boolean_type): Ditto.
6100 (structured_type): Ditto.
6101 (lang_bool_type): Ditto.
6102 (binop_type_check): Ditto.
6103 * language.h (_LANG_chill): Ditto.
6104 * dwarfread.c (set_cu_language): Ditto.
6105 * dwarfread.c (CHILL_PRODUCER): Ditto.
6106 * dwarfread.c (handle_producer): Ditto.
6107 * expression.h (enum exp_opcode): Ditto.
6108 * eval.c: Ditto for comments.
6109 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6110 * expprint.c (print_subexp): Ditto.
6111 (print_subexp): Ditto.
6112 * valops.c (value_cast): Ditto.
6113 (search_struct_field): Ditto.
6114 * value.h (COERCE_VARYING_ARRAY): Ditto.
6115 * symfile.c (init_filename_language_table): Ditto.
6116 (add_psymbol_with_dem_name_to_list): Ditto.
6117 * valarith.c (value_binop): Ditto.
6119 * valops.c (value_slice): Ditto.
6120 * symtab.h (union language_specific): Ditto.
6121 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6122 (SYMBOL_DEMANGLED_NAME): Ditto.
6123 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6124 * defs.h (enum language): Ditto.
6125 * symtab.c (got_symtab): Ditto.
6126 * utils.c (fprintf_symbol_filtered): Ditto.
6128 * ch-typeprint.c: Make file obsolete.
6129 * ch-valprint.c: Make file obsolete.
6130 * ch-lang.h: Make file obsolete.
6131 * ch-exp.c: Make file obsolete.
6132 * ch-lang.c: Make file obsolete.
6134 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6136 (TARGET_FLAGS_TO_PASS): Ditto.
6137 (CHILLFLAGS): Obsolete.
6139 (CHILL_FOR_TARGET): Obsolete.
6140 (CHILL_LIB): Obsolete.
6141 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6143 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6144 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6146 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6149 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6151 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6152 This does not change anything at the moment, but will be helpful
6153 later when full Ada support is integrated.
6155 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6157 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6160 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6162 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6163 and save it in a local variable. Use variable in later test.
6165 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6167 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6168 test. (Thanks to Daniel Jacobowitz.)
6170 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6172 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6173 (mips_abi_strings): Add "n64".
6174 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6176 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6178 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6179 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6181 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6183 * utils.c (host_pointer_to_address, address_to_host_pointer):
6184 Use gdb_assert() instead of explicit call to internal_error().
6186 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6188 * Makefile.in (rs6000-nat.o): Update dependencies.
6190 From Nicholas Duffek:
6191 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6192 (aix-thread.o): New rule.
6193 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6194 * config/powerpc/aix432.mh: New file.
6196 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6198 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6199 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6200 (fetch_core_registers, ppc_linux_supply_gregset)
6201 (ppc_linux_supply_fpregset): New functions.
6202 (ppc_linux_regset_core_fns): New.
6203 (_initialize_ppc_linux_tdep): Call add_core_fns.
6204 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6205 and ppc_linux_supply_gregset.
6206 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6207 (supply_fpregset): Call ppc_linux_supply_fpregset.
6208 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6210 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6212 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6214 * symtab.c (lookup_symbol): Demangle before lowercasing.
6216 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6218 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6220 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6221 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6222 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6223 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6225 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6226 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6227 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6228 (avr-tdep.o, mon960-rom.o): Ditto.
6229 (aout_stabs_gnu_h): Define.
6230 (symtab_h): Remove $(gdb_obstack_h).
6232 2002-07-30 Jim Blandy <jimb@redhat.com>
6234 Patch from David Carlton <carlton@math.stanford.edu>:
6235 * gdbinit.in: Move the `dir' commands that add GDB's own source
6236 directory to the search path to the end, so that the `gdb' source
6237 directory will be searched first.
6239 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6241 * gdb_obstack.h: New file.
6242 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6243 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6244 * objfiles.h: Include "gdb_obstack.h".
6245 * Makefile.in (gdb_obstack_h): Define.
6246 (symtab_h): Add $(gdb_obstack_h).
6247 (objfiles_h): Add $(gdb_obstack_h).
6249 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6250 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6251 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6252 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6253 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6254 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6255 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6256 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6258 * Makefile.in (bcache.o): Update dependencies.
6259 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6260 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6261 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6262 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6263 (stabsread.o, symfile.o, symmisc.o): Ditto.
6264 (symtab.o, typeprint.o, macroexp.o): Ditto.
6265 (macrotab.o, mdebugread.o): Ditto.
6266 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6267 (coff_ecoff_h, aout_aout64_h): Define.
6268 (aout_stabs_gnu_h, libaout_h): Define.
6270 2002-07-29 Andrew Cagney <cagney@redhat.com>
6272 * regcache.c (struct regcache_descr): Rename nr_registers to
6273 nr_cooked_registers. Revise comments describing the structure
6275 (init_regcache_descr): Update.
6276 (init_legacy_regcache_descr): Update.
6277 (read_register_gen, write_register_gen): When a cooked register in
6278 the raw register range, directly access the value from the raw
6281 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6283 * z8k-tdep.c: Do not include "obstack.h".
6284 * h8300-tdep.c, h8500-tdep.c: Ditto.
6285 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6286 * valprint.c, v850-tdep.c: Ditto.
6287 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6288 * mn10200-tdep.c: Ditto.
6290 * Makefile.in (z8k-tdep.o): Update dependencies.
6291 (m68hc11-tdep.o, valprint.o): Ditto.
6292 (v850-tdep.o, d10v-tdep.o): Ditto.
6293 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6294 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6295 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6296 (sh_opc_h, gdb_sim_sh_h): Define.
6297 (elf_sh_h, elf_bfd_h): Define.
6298 (opcode_m68hc11_h): Define.
6299 (OPCODES_SRC, OPCODES_DIR): define.
6300 (OPCODES): Use $(OPCODES_DIR).
6301 (gdb_sim_d10v_h): Rename sim_d10v_h.
6302 (gdb_sim_arm_h): Rename sim_arm_h.
6304 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6306 * utils.c (host_pointer_to_address, address_to_host_pointer):
6307 Change internal_error() message to indicate function responsible
6310 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6312 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6313 calls to local_hex_string_custom().
6315 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6317 * irix5-nat.c: Move IRIX shared library support from here...
6318 * solib-irix.c: ...to here. Revised substantially to work with
6319 generic solib framework.
6321 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6322 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6323 * mips-irix-tdep.c: New file.
6325 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6326 (mips-irix-tdep.o, solib-irix.o): New rules.
6327 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6329 * config/mips/irix6.mt (TDEPFILES): Likewise.
6330 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6332 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6334 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6335 disabled (via ``#if 0'') includes.
6337 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6339 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6340 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6341 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6342 Add support for the fpscr register.
6343 * rs6000-nat.c (regmap, fetch_inferior_registers)
6344 (store_inferior_registers, fetch_core_registers): Likewise.
6346 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6348 * rs6000-nat.c (language.h): Include.
6349 (special_regs): Delete this array.
6350 (regmap): New function.
6351 (fetch_register, store_register): Use regmap() to map gdb
6352 register numbers to ptrace register numbers. Also, use
6353 outputs from regmap() to make decisions regarding type of
6354 ptrace() call to make. In particular, don't compare against
6355 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6356 (fetch_inferior_registers, store_inferior_registers): Where
6357 possible, obtain register numbers from tdep struct. Don't
6358 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6359 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6360 (LAST_UISA_SP_REGNUM): Delete.
6362 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6364 * rs6000-nat.c (ppc-tdep.h): Include.
6365 (fetch_registers, store_register, fetch_core_registers): Don't
6366 access registers[] directly. Instead, use supply_register() or
6367 regcache_collect() as appropriate.
6368 (find_toc_address): Format hex address with local_hex_string().
6370 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6372 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6375 2002-07-24 Tom Tromey <tromey@redhat.com>
6377 * jv-exp.y: Marked all strings with _().
6378 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6380 (MethodInvocation, CastExpression, parse_number, yyerror,
6381 java_type_from_name, push_expression_name, yylex): Typo fixes.
6383 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6385 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6386 (tee_file_flush, tee_file_write, tee_file_fputs)
6387 (tee_file_isatty): New.
6388 * ui-file.h (tee_file_new): Add prototype.
6390 2002-07-24 Aidan Skinner <aidan@velvet.net>
6392 * ada-lang.c: Change k&r style function definitions to prototyped
6394 * ada-typeprint.c: Change k&r style function definitions to prototyped
6396 * ada-valprint.c: Change k&r style function definitions to prototyped
6399 2002-07-24 Andrew Cagney <cagney@redhat.com>
6401 * README: Remove reference to remote-bug.
6402 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6404 (m88k-nat.o): Delete rule.
6405 (m88k-tdep.o): Delete rule.
6406 (remote-bug.o): Delete rule.
6407 * MAINTAINERS: Mark as obsolete.
6408 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6409 * m88k-tdep.c: Make file obsolete.
6410 * config/m88k/m88k.mh: Ditto.
6411 * config/m88k/delta88v4.mh: Ditto.
6412 * config/m88k/delta88v4.mt: Ditto.
6413 * config/m88k/delta88.mt: Ditto.
6414 * config/m88k/delta88.mh: Ditto.
6415 * remote-bug.c: Ditto.
6416 * config/m88k/tm-delta88.h: Ditto.
6417 * config/m88k/nm-delta88v4.h: Ditto.
6418 * config/m88k/xm-delta88.h: Ditto.
6419 * config/m88k/xm-dgux.h: Ditto.
6420 * config/m88k/tm-m88k.h: Ditto.
6421 * config/m88k/nm-m88k.h: Ditto.
6422 * config/m88k/tm-delta88v4.h: Ditto.
6423 * m88k-nat.c: Ditto.
6424 * cxux-nat.c: Ditto.
6425 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6426 and m88*-*-* obsolete.
6427 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6430 2002-07-24 Andrew Cagney <cagney@redhat.com>
6432 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6433 constant. Same for local pointer variables.
6434 (extract_signed_integer): Ditto.
6435 * defs.h (extract_unsigned_integer): Update.
6436 (extract_signed_integer): Update.
6438 2002-07-24 Andrew Cagney <cagney@redhat.com>
6440 * regcache.c (regcache_raw_write): Change buf parameter to a
6441 constant void pointer.
6442 (regcache_raw_read): Change buf parameter to a void pointer.
6443 (legacy_write_register_gen): Change myaddr parameter a constant
6445 (supply_register): Change val parameter to a const void pointer.
6446 * regcache.h (regcache_raw_write): Update declaration.
6447 (regcache_raw_read): Update declaration.
6448 (supply_register): Update declaration.
6450 2002-07-24 Tom Tromey <tromey@redhat.com>
6452 * defs.h (gdb_readline_wrapper): Declare.
6453 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6454 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6455 * top.c (gdb_readline_wrapper): New function.
6456 (command_line_input): Use it.
6458 2002-07-24 Andrew Cagney <cagney@redhat.com>
6460 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6461 regcache_read and regcache_write.
6462 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6463 * regcache.c: Update.
6464 * sh-tdep.c (sh64_push_arguments): Update comment.
6465 (sh_pseudo_register_read): Update.
6466 (sh_pseudo_register_write): Update.
6467 (sh4_register_read): Update.
6468 (sh4_register_write): Update.
6469 (sh64_pseudo_register_read): Update.
6470 (sh64_pseudo_register_write): Update.
6471 (sh64_register_read): Update.
6472 (sh64_register_write): Update.
6473 * i386-tdep.c (i386_extract_return_value): Update.
6474 (i386_extract_struct_value_address): Update.
6475 (i386_extract_return_value): Update.
6476 * blockframe.c (generic_read_register_dummy): Update.
6477 (generic_call_dummy_register_unwind): Update
6478 * infrun.c (write_inferior_status_register): Update.
6480 2002-07-23 Jim Blandy <jimb@redhat.com>
6482 * parser-defs.h (expression_context_pc): Make this extern.
6483 (Thanks to Michael Snyder.)
6485 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6487 GDB 5.2.1 released from 5.2 branch.
6488 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6489 * README: Update to mention 5.2.1.
6491 2002-07-23 Mark Salter <msalter@redhat.com>
6493 * remote.c (remote_read_bytes): Fix check for error.
6495 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6497 * aix-thread.c (language.h): Include.
6498 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6499 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6500 Print newlines at end of debug messages.
6501 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6502 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6504 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6506 * aix-thread.c (ppc-tdep.h): Include.
6507 (special_register_p): New function.
6508 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6509 (store_regs_user_thread): Use register number information from
6510 gdbarch_tdep struct instead of hardcoded offsets relative to
6511 FIRST_UISA_SP_REGNUM.
6512 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6513 special_register_p() instead of using FPLAST_REGNUM and
6514 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6515 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6516 will be MQ's register number.
6518 2002-07-22 Michael Snyder <msnyder@redhat.com>
6520 * aix-thread.c (ops): Rename to aix_thread_ops.
6521 (base_ops): Rename to base_target.
6522 (ops_attach): Rename to aix_thread_attach.
6523 (ops_detach): Rename to aix_thread_detach.
6524 (ops_resume): Rename to aix_thread_detach.
6525 (ops_wait): Rename to aix_thread_wait.
6526 (ops_kill): Rename to aix_thread_kill.
6527 (init_ops): Rename to init_aix_thread_ops.
6528 (ops_fetch_register): Rename to aix_thread_fetch_register.
6529 (ops_store_register): Rename to aix_thread_store_register.
6530 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6531 (ops_thread_alive): Rename to aix_thread_thread_alive.
6532 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6533 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6534 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6535 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6536 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6537 (store_regs_lib): Rename to store_regs_user_thread.
6538 (store_regs_kern): Rename to store_regs_kernel_thread.
6540 2002-07-22 Michael Snyder <msnyder@redhat.com>
6542 * aix-thread.c (ops_prepare_to_store): Eliminate.
6543 (init_ops): Don't initialize ops.prepare_to_store.
6544 (store_regs_kern): Pre-fetch register buffers from child,
6545 because some registers may not be in the cache. Copy
6546 regs from register cache only if they are cached.
6547 (store_regs_lib): Copy regs from register cache only
6549 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6550 fill_gprs64): Ditto.
6552 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6554 * aix-thread.c (gdb_assert.h): Include.
6555 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6556 register sizes (from register cache) match size of buffer holding
6558 (fill_sprs32): Change parameter types to match those in the ptrace()
6560 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6561 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6563 2002-07-22 Michael Snyder <msnyder@redhat.com>
6565 * aix-thread.c (supply_sprs64): Cosmetic change.
6566 (supply_sprs32): Cosmetic change.
6567 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6568 (fill_sprs64): Use regcache_collect instead of read_register.
6569 (store_regs_lib): Use regcache_collect instead of
6570 read_register. Use fill_sprs32 instead of fill_sprs64,
6571 if debugging a 32-bit architecture.
6572 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6573 out of the register cache, instead of passing a pointer into
6574 the register cache directly to ptrace. Use regcache_collect
6575 insteaad of read_register.
6576 (ops_prepare_to_store): Use target_read_registers instead
6577 of read_register_bytes.
6579 2002-07-20 Aidan Skinner <aidan@velvet.net>
6581 * MAINTAINERS: Add self under write after approval.
6583 2002-07-20 Aidan Skinner <aidan@velvet.net>
6585 * ada-tasks.c: Change k&r style function definitions to prototyped
6588 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6590 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6591 * x86-64-tdep.c: Include "objfiles.h".
6592 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6593 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6595 2002-07-17 Michal Ludvig <michal@suse.cz>
6597 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6598 (update_context): Initialise cfa variable.
6600 2002-07-17 Michael Snyder <msnyder@redhat.com>
6602 * aix-thread.c: Shorten some long lines.
6603 Bring comments into line with code spec.
6605 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6607 * infrun.c: Re-indent using gdb_indent.sh.
6609 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6611 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6612 Leave the indentation temporarily untouched, to minimize the diffs.
6614 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6616 * stabsread.c: Make os9k sections of the code obsolete,
6618 * stabsread.h: Make os9k sections of the code obsolete.
6620 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6622 * linux-low.c (regsets_store_inferior_registers): Add free()
6623 at the end of a loop to prevent memory leak.
6624 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6625 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6626 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6628 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6630 2002-07-17 Jim Blandy <jimb@redhat.com>
6632 * macrocmd.c (info_macro_command): Remove newline from error
6635 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6637 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6638 (sh_gdbarch_init): Use it for sh-dsp.
6640 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6642 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6643 64-bit DWARF2 format.
6645 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6647 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6648 <sys/proc.h> when not available.
6650 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6652 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6653 * stabsread.c: Make os9k sections of the code obsolete.
6654 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6655 * config/i386/i386os9k.mt: Make file obsolete.
6656 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6657 (COMMON_OBS): Remove os9kread.o
6658 (SFILES): Remove os9kread.c.
6659 (os9kread.o, remote-os9k.o): Make target obsolete.
6660 * remote-os9k.c: Make file obsolete.
6661 * os9kread.c: Make file obsolete.
6664 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6666 * NEWS: Mention that the FR30 has been made obsolete.
6667 * fr30-tdep.c: Make file obsolete.
6668 * config/fr30/tm-fr30.h: Ditto.
6669 * config/fr30/fr30.mt: Ditto.
6670 * configure.tgt: Make fr30-*-elf obsolete.
6671 * MAINTAINERS: Make fr30-elf obsolete.
6673 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6675 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6676 found is not inside a section.
6678 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6680 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6682 (pdc_realloc): Use xrealloc() instead of realloc().
6684 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6686 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6687 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6688 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6691 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6693 * aix-thread.c (ptrace_check): Eliminate goto.
6694 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6697 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6699 * aix-thread.c (gdbcmd.h): Include.
6700 (DEBUG, DBG, DBG2, dbg): Eliminate.
6701 (debug_aix_thread): New static global.
6702 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6703 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6704 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6705 invocations to DBG and DBG2 macros to test against
6706 ``debug_aix_thread'' and call fprintf_unfiltered().
6707 (_initialize_aix_thread): Add new command "set debug aix-thread".
6709 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6711 From Gerhard Tonn <TON@de.ibm.com>:
6712 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6713 instead of supply_register.
6715 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6717 * dwarf2cfi.c: Include "gdb_assert.h".
6718 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6720 (update_context): Do not use __func__. Add missing ``break''.
6721 (update_context): Do not use __func__.
6723 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6725 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6726 and its setting. Set gdbarch instruction printing functions
6727 directly. For non-rs6000 case use new function
6728 gdb_print_insn_powerpc.
6729 (gdb_print_insn_powerpc): New function.
6731 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6733 * NEWS: Mention that the d30v has been marked obsolete.
6734 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6735 * configure.tgt: Mark d30v-*-* as obsolete.
6736 * d30v-tdep.c: Mark file as obsolete.
6737 * config/d30v/d30v.mt: Ditto.
6738 * config/d30v/tm-d30v.h: Ditto.
6740 2002-07-13 Aidan Skinner <aidan@velvet.net>
6742 * ada-tasks.c (add_task_entry): replace calls to
6743 malloc() with xmalloc
6744 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6746 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6747 ada_finish_decode_line_1, all_sals_for_line
6748 ada_breakpoint_rewrite): replace calls to free() with xfree()
6750 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6752 From Nicholas Duffek (with minor changes by Martin Hunt,
6753 Louis Hamilton, and Kevin Buettner):
6754 * aix-thread.c: New file.
6756 2002-07-12 Petr Sorfa <petrs@caldera.com>
6758 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6759 complaint for invalid attribute class or form.
6760 (read_func_scope): DW_AT_frame_base
6761 better handling of DW_AT_block*.
6762 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6763 better handling of DW_AT_block*.
6764 (read_common_block): DW_AT_location
6765 better handling of DW_AT_block*.
6766 (read_partial_die): DW_AT_location better handling
6768 (new_symbol): DW_AT_external better handling of
6769 DW_AT_block*. Proper initialization of variable
6771 (attr_form_is_block): New function that returns true
6772 if the attribute's form is of DW_FORM_block*.
6774 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6776 * valops.c (find_method_list): Remove comment about
6777 removed STATIC_MEMFUNCP argument.
6778 (value_find_oload_method_list): Likewise.
6780 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6782 From Nicholas Duffek:
6783 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6784 target_new_objfile_hook.
6786 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6788 From Nicholas Duffek:
6789 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6792 2002-07-12 Andrew Cagney <cagney@redhat.com>
6794 * MAINTAINERS: Mention --enable-sim-build-warnings.
6795 (m68hc11-elf): Disable sim build warnings.
6796 (m32r-elf): Mark as broken obsolete candidate.
6797 (x86_64-linux-gnu): Mark as buildable with -Werror.
6798 (arm-elf): Change -w to ``,'' which enables warnings but not
6801 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6803 * bcache.h: Update copyright.
6804 (struct bstring, struct bcache): Move definition to "bcache.c".
6805 Replaced by opaque declaration.
6806 (bcache_xfree): Replace free_bcache.
6807 (bcache_xmalloc, bcache_memory_used): Declare.
6809 * bcache.c: Update copyright.
6810 (struct bstring, struct bcache): Moved to here from "bcache.h".
6812 (bcache_xmalloc, bcache_memory_used): New functions.
6813 (bcache_xfree): Replace function free_bcache.
6815 * Makefile.in (objfiles.o): Add $(bcache_h).
6816 (objfiles_h): Remove $(bcache_h).
6817 (symfile.o): Add $(bcache_h).
6819 * symmisc.c: Update copyright.
6820 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6821 (print_objfile_statistics): Use bcache_memory_used.
6823 * symfile.c: Include "bcache.h".
6824 (reread_symbols): Use bcache_xfree.
6825 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6826 (add_psymbol_to_list): Pass psymbol_cache by value.
6827 (add_psymbol_with_dem_name_to_list): Ditto.
6829 * objfiles.h: Update copyright.
6830 (struct bcache): Declare opaque. Do not include "bcache.h".
6831 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6833 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6835 * objfiles.c: Include "bcache.h". Update copyright.
6836 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6838 (free_objfile): Use bcache_xfree.
6840 2002-07-11 Grace Sainsbury <graces@redhat.com>
6842 * monitor.c (monitor_fetch_register): Make name a constant.
6843 (monitor_store_register): Same.
6845 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6847 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6848 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6849 (finish_block) For non-function blocks, hash the symbol table. For
6850 function blocks, mark the symbol table as unhashed.
6851 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6852 (msymbol_hash_iw): Likewise.
6853 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6855 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6856 (lookup_minimal_symbol): Likewise for both.
6857 * symtab.h (struct block): Add `hashtable' flag. Comment the
6859 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6860 (ALL_BLOCK_SYMBOLS): Update.
6861 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6862 (struct symbol): Add `hash_next' pointer.
6863 * symtab.c (lookup_block_symbol): Search using the hash table when
6865 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6866 (search_symbols, find_addr_symbol): Likewise.
6868 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6869 (read_dst_symtab): Likewise.
6870 * jv-lang.c (get_java_class_symtab): Likewise.
6871 * mdebugread.c: Include "gdb_assert.h".
6872 (shrink_block): Assert that the block being modified is not hashed.
6873 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6874 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6876 (dump_symtab): Recognize hashed blocks.
6877 * printcmd.c (print_frame_args): Assert that function blocks do not
6878 have hashed symbol tables.
6879 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6880 (fill_in_ada_prototype, debug_print_block): Likewise.
6881 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6883 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6885 * stack.c (print_frame): Use result of frame_address_in_block()
6886 instead of fi->pc when evaluating symbols.
6887 (backtrace_command_1): Ditto.
6889 2002-07-11 Andrew Cagney <cagney@redhat.com>
6891 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6894 * arm-tdep.c (arm_register_name): Make return type constant.
6896 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6898 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6900 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6901 * s390-tdep.c (s390_fp_regnum): Ditto.
6902 (s390_read_fp): Ditto.
6903 (s390_pop_frame): Ditto.
6904 (_initialize_s390_tdep): Ditto.
6905 * remote.c (get_remote_state): Ditto.
6906 * procfs.c (mappingflags): Ditto.
6907 * memattr.c (_initialize_mem): Ditto.
6908 * mcore-tdep.c (mcore_pop_frame): Ditto.
6909 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6910 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6911 * language.c (set_case_str): Ditto.
6912 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6913 * frv-tdep.c (new_variant): Ditto.
6914 (frv_stopped_data_address): Ditto.
6915 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6916 (context_alloc): Ditto.
6917 (frame_state_alloc): Ditto.
6918 (unwind_tmp_obstack_init): Ditto.
6919 (unwind_tmp_obstack_free): Ditto.
6920 (cfi_read_fp): Ditto.
6921 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6922 (cris_pop_frame): Ditto.
6923 * c-lang.c (scanning_macro_expansion): Ditto.
6924 (finished_macro_expansion): Ditto.
6925 (c_preprocess_and_parse): Ditto.
6926 * gdbarch.sh: Ditto.
6927 * gdbarch.h, gdbarch.c: Regenerate.
6928 * config/mn10200/tm-mn10200.h: Adjust indentation.
6929 * target.c: Adjust indentation.
6930 * symtab.h: Adjust indentation.
6931 * stabsread.h: Adjust indentation.
6932 * remote-es.c: Adjust indentation.
6933 * os9kread.c: Adjust indentation.
6935 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6937 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6938 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6940 2002-07-10 Grace Sainsbury <graces@redhat.com>
6942 * NEWS: Mention m68k, mcore multi-arching.
6943 * MAINTAINERS: Change status of m68k, mcore to reflect
6946 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6948 * valops.c (find_overload_match): Free oload_syms.
6950 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6952 Define HAVE_SYS_PROC_H if sys/proc.h exists
6953 * configure.in: Add check for sys/proc.h
6954 * config.in: Regenerate.
6955 * configure: Regenerate.
6957 2002-07-09 Grace Sainsbury <graces@redhat.com>
6959 * config/m68k/tm-m68k.h: Remove macros wrapped in
6960 #if !GDB_MULTI_ARCH.
6962 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6964 * config.in, configure: Regenerate.
6966 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6968 * dwarf2cfi.c: Include "gcore.h".
6969 (execute_stack_op): Fix implementation of the
6970 DW_OP_deref and DW_OP_deref_size operators by letting do their
6971 lookup in the target.
6973 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6975 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6976 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6979 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6981 Fix PR gdb/595, gdb/602
6982 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6983 Don't call value_cast, just read the vtable pointer; update comments
6986 2002-07-05 Grace Sainsbury <graces@redhat.com>
6988 * config/mcore/tm-mcore.h: Remove file.
6989 * config/mcore/mcore.mt: Remove definition of TM_FILE
6990 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6992 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6994 * i386bsd-tdep.c: Include "gdb_string.h".
6996 2002-07-04 Grace Sainsbury <graces@redhat.com>
6998 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6999 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7001 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7002 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7003 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7004 (RETVAL_REGNUM): Move macros from tm-mcore.h
7005 (mcore_reg_struct_has_addr): New function.
7006 (mcore_gdbarch_init): Added initializations for the macros removed
7009 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7011 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7012 traditonal string branding within the ELF header.
7014 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7016 * symtab.c (remove_params): New function.
7017 (make_symbol_overload_list): Use it instead of cplus_demangle.
7018 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7020 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7022 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7024 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7026 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7027 and tdep->sigtramp_end.
7028 * i386obsd-nat.c: New file.
7029 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7031 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7032 Don't call get_current_frame().
7034 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7036 * i386-nat.c (child_post_startup_inferior): New function
7037 calling i386_cleanup_dregs if
7038 I386_USE_GENERIC_WATCHPOINTS is defined.
7039 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7040 conditional to acknowledge that i386-nat.c has its
7041 own child_post_startup_inferior function.
7043 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7045 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7046 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7047 instead of MAX_REGISTER_RAW_SIZE.
7048 (i386_extract_return_value, i386_extract_struct_value_address):
7049 Convert to use regcache.
7050 (i386_gdbarch_init): Set max_register_raw_size and
7051 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7052 Set extract_return_value and extract_struct_value_address instead
7053 of their deprecated variants.
7055 Convert i386 target to generic dummy frames.
7056 * i386-tdep.c: Include "symfile.h".
7057 (i386_frameless_signal_p): Consider a function to be frameless if
7058 the pc points at the first instruction of the function.
7059 (i386_frame_chain): Handle (generic) call dummies.
7060 (i386_frame_saved_pc): Likewise.
7061 (i386_frame_init_saved_regs): Remove code dealing with call
7062 dummies on the stack.
7063 (i386_push_dummy_frame): Removed.
7064 (i386_call_dummy_words): Removed.
7065 (i386_fix_call_dummy): Removed.
7066 (i386_push_return_address): New function.
7067 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7068 parameter, and don't call get_current_frame.
7069 (i386_pop_frame): New function.
7070 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7071 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7072 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7073 call_dummy_length to 0, set call_dummy_words to NULL, set
7074 sizeof_call_dummy_words to 0, set fix_call_dummy to
7075 generic_fix_call_dummy, set pc_in_call_dummy to
7076 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7077 generic_push_dummy_frame, set push_return_address to
7078 i386_push_return_address and set frame_chain_valid to
7079 generic_file_frame_chain_valid.
7081 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7083 * gdbarch.sh (struct regcache): Add opaque declaration.
7084 (EXTRACT_RETURN_VALUE): New architecture method.
7085 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7086 * gdbarch.h, gdbarch.c: Regenerate.
7087 * arch-utils.c (legacy_extract_return_value): New function.
7088 * arch-utils.h (legacy_extract_return_value): Declare.
7089 * values.c (value_being_returned): Re-enable code handling
7090 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7091 deprecated_grub_regcache_for_registers call to block handling
7092 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7093 (EXTRACT_RETURN_VALUE): Do not define.
7095 2002-07-03 Grace Sainsbury <graces@redhat.com>
7097 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7098 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7099 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7100 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7101 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7102 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7103 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7104 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7105 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7106 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7107 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7108 argument so the function fits the prototype in the architecture
7110 (mcore_pop_frame): Remove argument so the function fits the
7111 prototype. Use get_current_frame instead of the argument.
7112 (mcore_push_arguments): Change type of struct_return so the
7113 function can be used in the architecture vector.
7114 (mcore_store_struct_return): Add.
7115 (mcore_frame_init_saved_regs): Add.
7116 (mcore_gdbarch_init): Add function calls to replace the macros
7117 removed from tm-mcore.h
7119 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7121 * infcmd.c (print_return_value): Remove compatibility code calling
7122 deprecated_grub_regcache_for_registers.
7124 * values.c: Include "regcache.h".
7125 (value_being_returned): Update. Use
7126 deprecated_grub_regcache_for_registers to extract the register
7128 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7129 ``struct regcache''.
7130 * Makefile.in (values.o): Add dependency on $(regcache_h).
7132 * inferior.h (run_stack_dummy): Change type of second parameter to
7133 a ``struct regcache''.
7134 * valops.c (hand_function_call): Change type of retbuf to ``struct
7135 regcache''. Allocate using regcache_xmalloc, clean using
7136 make_cleanup_regcache_xfree.
7137 * infcmd.c (run_stack_dummy): Update. Use
7138 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7140 * regcache.c (do_regcache_xfree): New function.
7141 (make_cleanup_regcache_xfree): New function.
7142 * regcache.h (make_cleanup_regcache_xfree): Declare.
7144 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7146 * event-top.c (command_line_handler): Don't read past
7147 beginning of buffer.
7149 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7151 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7153 (varobj_create): Store frame_id for root.
7154 (varobj_gen_name): Use xasprintf.
7155 (varobj_update): Save and restore frame using get_frame_id() and
7157 (create_child): Use xasprintf.
7158 (new_root_variable): Initialize frame_id.
7159 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7160 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7161 to prevent memory leak.
7163 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7165 * valops.c (hand_function_call): Move declaration of retbuf to
7166 start of function, allocate using malloc, add a cleanup but before
7167 the inf_status cleanup, cleanup the buffer. Rename local variable
7168 old_chain to inf_status_cleanup.
7170 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7172 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7174 * cli/cli-decode.c (cmd_func_p): New function.
7175 (cmd_func): New function.
7177 * command.h: Add cmd_func() and cmd_func_p().
7179 2002-07-03 Grace Sainsbury <graces@redhat.com>
7181 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7182 (REGISTER_SIZE): Remove.
7183 (MAX_REGISTER_RAW_SIZE): Remove.
7184 (REGISTER_VIRTUAL_TYPE): Remove.
7185 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7186 (REGISTER_NAME): Remove.
7187 (USE_GENERIC_DUMMY_FRAMES): Remove.
7188 (CALL_DUMMY): Remove.
7189 (CALL_DUMMY_START_OFFSET): Remove.
7190 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7191 (CALL_DUMMY_LOCATION): Remove.
7192 (FIX_CALL_DUMMY): Remove.
7193 (CALL_DUMMY_ADDRESS): Remove.
7194 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7195 (SAVE_DUMMY_FRAME_TOS): Remove.
7196 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7197 (mcore_register_virtual_type): New function.
7198 (mcore_register_byte): New function.
7199 (mcore_register_size): New function.
7200 (mcore_register_name): New function.
7201 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7202 macros removed from tm-mcore.h.
7203 (mcore_dump_tdep): Add.
7204 (_initialize_mcore_tdep): Add gdbarch_register call.
7206 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7208 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7209 frameless_look_for_prologue, such that we actually call this
7212 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7214 * frame.h (frame_address_in_block): New function.
7216 * blockframe.c (frame_address_in_block): New function extracted
7217 from get_frame_block().
7218 (get_frame_block): Use frame_address_in_block().
7219 (block_innermost_frame): Use frame_address_in_block() to match
7220 the frame pc address against the block boundaries rather than
7221 the frame pc directly. This prevents a failure when a frame pc
7222 is actually a return-address pointing immediately after the end
7225 2002-07-02 Grace Sainsbury <graces@redhat.com>
7227 * MAINTAINERS: Add self under write after approval.
7229 2002-07-02 Grace Sainsbury <graces@redhat.com>
7231 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7232 used in architecture vector. The default is
7233 m68k_local_breakpoint_from_pc.
7234 (m68k_local_breakpoint_from_pc): Add.
7235 (enum): Add register numbers from tm-m68k.h.
7236 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7238 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7239 GDB_MULTI_ARCH_PARTIAL.
7240 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7241 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7243 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7244 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7245 to enum in m68k-tdep.c
7247 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7249 * solib-osf.c (open_map): Compute the list of shared libraries
7250 loaded by the inferior, rather than the list of libraries loaded
7251 by GDB itself. Otherwise, GDB ends up reading the symbols from
7252 the wrong shared libraries...
7254 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7256 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7257 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7259 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7261 (FRAMELESS_SIGNAL): Remove function.
7262 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7263 i386_linux_saved_pc_after_call): Removed.
7264 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7265 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7266 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7268 * i386-tdep.c (i386_frameless_signal_p): New function.
7269 (i386_frame_chain): Deal with frameless signals.
7270 (i386_sigtramp_saved_sp): New function.
7271 (i386_frame_saved_pc): Deal with frameless signals.
7272 (i386_saved_pc_after_call): Make sure the correct value is
7273 returned just after entry into a sigtramp.
7274 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7275 i386fbsd4_sc_sp_offset): New variables.
7276 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7277 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7278 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7279 similiar to what we already did for sc_pc_offset.
7280 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7283 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7285 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7287 * config/i386/tm-x86-64linux.h: New.
7288 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7290 * config/i386/nm-x86-64.h: Rename to ...
7291 * config/i386/nm-x86-64linux.h: ... this one.
7292 * config/i386/x86-64linux.mh: Reflect the above change.
7294 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7296 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7297 with sigcontext_addr. Add sc_sp_offset.
7298 (i386bsd_sigtramp_saved_pc): Remove prototype.
7299 (i386bsd_sicontext_addr): Add prototype.
7300 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7301 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7302 (i386_svr4_sigtramp_saved_pc): Removed.
7303 (i386_svr4_sigcontext_addr): New function.
7304 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7305 Initialize tdep->sigcontext_addr instead. Initialize
7306 tdep->sc_pc_offset and tdep->sc_sp_offset.
7307 (i386_gdbarch_init): Likewise.
7308 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7310 (i386bsd_sigtramp_saved_pc): Remove function.
7311 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7312 Initialize tdep->sigcontext_addr instead. Initialize
7314 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7315 of tdep->sigtramp_saved_pc.
7316 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7317 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7320 * i386-tdep.c (i386_frameless_function_invocation,
7321 i386_frame_num_args, i386_frame_init_saved_regs,
7322 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7323 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7324 i386_extract_return_value, i386_store_return_value,
7325 i386_extract_struct_value_address, i386_register_virtual_type,
7326 i386_register_convertible, i386_register_convert_to_virtual,
7327 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7328 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7331 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7333 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7335 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7336 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7337 this macro. Include "value.h".
7339 2002-06-30 Aidan Skinner <aidan@velvet.net>
7341 * ada-exp.tab.c: remove as it's a generated file
7342 * ada-lex.c: remove as it's a generated file
7344 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7346 * config/i386/tm-i386.h (struct frame_info, struct
7347 frame_saved_regs, struct value, struct type): Remove forward
7350 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7351 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7352 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7353 (FILL_FPXREGSET): Define.
7355 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7357 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7358 i[3456]86-*-netbsd* case.
7359 * config/i386/tm-obsd.h: Removed.
7360 * config/i386/obsd.mt: Removed.
7361 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7363 (MH_CFLAGS): Add -DYYDEBUG=0.
7365 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7366 i386nbsd_sc_pc_offset on OpenBSD too.
7368 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7369 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7370 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7372 * i386bsd-tdep.c: Include "arch-utils.h".
7373 (i386bsd_aout_in_solib_call_trampoline): New function.
7374 (i386bsd_init_abi): Set in_solib_call_trampoline to
7375 i386bsd_aout_in_solib_call_trampoline.
7376 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7377 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7379 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7381 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7382 (struct obstack, struct bcache): Add opaque declarations.
7383 * Makefile.in (macrotab_h): Update
7385 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7387 * blockframe.c (generic_find_dummy_frame): Change return type to
7388 ``struct regcache''.
7389 (struct dummy_frame): Replace field ``registers'' with regcache, a
7390 struct regcache object.
7391 (generic_find_dummy_frame): Update.
7392 (generic_push_dummy_frame): Update. Use regcache_xfree,
7393 regcache_xmalloc and regcache_cpy.
7394 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7396 (deprecated_generic_find_dummy_frame): Update.
7397 (generic_read_register_dummy): Update. Use
7398 regcache_read_as_address.
7399 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7400 (generic_get_saved_register): Update. Use regcache_read.
7402 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7404 * Makefile.in (objfiles_h): Add $(bcache_h).
7405 * objfiles.h: Include "bcache.h".
7407 * Makefile.in (symtab_h): Remove $(bcache_h).
7408 * symtab.h: Do not include "bcache.h".
7410 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7412 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7413 generic_func_frame_chain_valid.
7415 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7417 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7418 * config/i386/tm-fbsd.h: Likewise.
7420 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7422 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7423 generic_unwind_get_saved_register.
7425 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7427 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7428 * regcache.c (supply_register): Add missing argument to
7429 register_buffer call.
7431 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7433 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7434 Solaris /bin/grep does not not like it. From Peter Schauer.
7436 2002-06-26 Tom Tromey <tromey@redhat.com>
7438 * command.h (add_setshow_cmd): Declare.
7439 (add_setshow_cmd_full): Declare.
7440 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7441 returns void. Use add_setshow_cmd_full.
7442 (add_setshow_cmd_full): New function.
7443 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7444 (add_setshow_boolean_cmd): Likewise.
7446 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7448 * config/vax/tm-vax.h: Protect from multiple inclusion.
7449 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7450 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7451 * config/vax/tm-vaxbsd.h: ...here. New file.
7452 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7454 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7456 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7457 (BELIEVE_PCC_PROMOTION): Remove.
7458 (AP_REGNUM): Move to...
7459 * config/vax/nm-vax.h: ...here.
7460 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7461 (vax_breakpoint_from_pc): New function.
7462 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7463 and gdbarch_believe_pcc_promotion.
7465 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7467 * Makefile.in (vax_tdep_h): Define.
7468 (vax-tdep.o): Use $(vax_tdep_h).
7469 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7470 (vax_dump_tdep): New function.
7471 (_initialize_vax_tdep): Register vax_dump_tdep.
7472 * vax-tdep.h: Include osabi.h.
7473 (struct gdbarch_tdep): New.
7475 2002-06-26 Andrew Cagney <cagney@redhat.com>
7477 * frame.h (deprecated_generic_find_dummy_frame): Rename
7478 generic_find_dummy_frame.
7479 * blockframe.c (generic_find_dummy_frame): Make static.
7480 (deprecated_generic_find_dummy_frame): New function.
7481 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7482 generic_find_dummy_frame with deprecated_find_dummy_frame.
7483 (sh64_nofp_frame_init_saved_regs): Ditto.
7484 (sh_fp_frame_init_saved_regs): Ditto.
7485 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7486 (s390_frame_chain): Ditto.
7487 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7489 2002-06-26 Grace Sainsbury <graces@redhat.com>
7491 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7492 gdbarch vector are at the top.
7494 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7495 (FRAME_ARGS_ADDRESS): Remove.
7496 (FRAME_LOCALS_ADDRESS): Remove.
7497 (FRAME_NUM_ARGS): Remove.
7498 (FRAME_ARGS_SKIP): Remove.
7499 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7500 (m68k_gdbarch_init): Add gdbarch initializations for macros
7501 undefined in tm-m68k.h
7503 2002-06-26 Grace Sainsbury <graces@redhat.com>
7505 * monitor.h: Add the function regname to monitor_ops
7506 structure. This way NUM_REGS does not have to be a constant.
7507 * monitor.c (monitor_fetch_register): Added support for regname
7508 function. The function is called if the array regnames is NULL.
7509 (monitor_store_register): Same.
7510 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7512 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7513 cpu32bug_cmds.regname to point to new function.
7514 * abug-rom.c (abug_regname): Same as above.
7515 (init_abug_cmds): Same.
7516 * dbug-rom.c (dbug_regname): Same as above.
7517 (init_dbug_cmds): Same.
7518 * remote-est.c (est_regname): Same.
7519 (init_est_cmds): Same.
7520 * rom68k-rom.c (rom68k_regname): Same.
7521 (init_rom68k_cmds): Same.
7523 2002-06-25 Tom Tromey <tromey@redhat.com>
7525 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7527 2002-06-25 Andrew Cagney <cagney@redhat.com>
7529 * infrun.c (stop_registers): Change variable's type to ``struct
7531 (xmalloc_inferior_status): Delete function.
7532 (free_inferior_status): Delete function.
7533 (normal_stop): Use regcache_cpy.
7534 (struct inferior_status): Change type of fields ``stop_registers''
7535 and ``registers'' to ``struct regcache''.
7536 (write_inferior_status_register): Use regcache_write.
7537 (save_inferior_status): Instead of calling
7538 xmalloc_inferior_status, allocate the inf_status buffer directly.
7539 Use regcache_dup_no_passthrough and regcache_dup to save the
7541 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7542 Replace the stop_registers regcache instead of overriding it. Use
7543 regcache_xfree. Instead of calling free_inferior_status, xfree
7544 the buffer directly.
7545 (discard_inferior_status): Use regcache_xfree. Instead of calling
7546 free_inferior_status, xfree the buffer directly.
7547 (build_infrun): Use regcache_xmalloc.
7548 (_initialize_infrun): Delete redundant call to build_infrun.
7550 * Makefile.in (infcmd.o): Add $(regcache_h).
7552 * infcmd.c: Include "regcache.h".
7553 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7554 obtain the address of `stop_registers' register buffer.
7555 (print_return_value): Ditto.
7557 * inferior.h (struct regcache): Add opaque declaration.
7558 (stop_registers): Change variable's declared type to ``struct
7561 2002-06-24 Tom Tromey <tromey@redhat.com>
7563 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7564 * target.c (initialize_targets): Fixed typo in
7565 trust-readonly-sections `show' documentation.
7567 * main.c: Marked all strings with _().
7569 2002-06-24 Don Howard <dhoward@redhat.com>
7571 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7572 that means max CORE_ADDR+1.
7573 (lookup_mem_region): Ditto.
7574 (mem_info_command): Ditto.
7576 2002-06-24 Grace Sainsbury <graces@redhat.com>
7578 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7579 (REGISTER_BYTES_OK): Remove.
7580 (REGISTER_BYTES): Remove.
7581 (STORE_STRUCT_RETURN): Remove.
7582 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7583 (STORE_RETURN_VALUE): Remove.
7584 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7585 (FRAME_CHAIN): Remove.
7586 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7587 (FRAME_SAVED_PC): Remove.
7588 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7589 (m68k_store_struct_return): Add.
7590 (m68k_deprecated_extract_return_value): Add.
7591 (m68k_deprecated_extract_struct_value_address): Add.
7592 (m68k_store_return_value): Add.
7593 (m68k_frame_chain): Add.
7594 (m68k_frameless_function_invocation): Add.
7595 (m68k_frame_saved_pc): Add.
7596 (m68k_gdbarch_init): added set_gdbarch calls for new
7597 functions and deleted macros.
7599 2002-06-23 Tom Tromey <tromey@redhat.com>
7601 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7602 (ALLDEPFILES): Likewise.
7603 (udiheaders): Removed.
7604 (udip2soc.o): Likewise.
7605 (udi2go32.o): Likewise.
7607 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7609 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7611 * infrun.c (_initialize_infrun): Delete unnecessary call to
7614 * regcache.h: Update comments describing the regcache_cpy family
7616 (regcache_save, regcache_restore): Delete declaration.
7617 (regcache_save_no_passthrough): Delete declaration.
7618 (regcache_restore_no_passthrough): Delete declaration.
7619 * regcache.c (regcache_save): Delete function.
7620 (regcache_save_no_passthrough): Delete function.
7621 (regcache_restore): Delete function.
7622 (regcache_restore_no_passthrough): Delete function.
7624 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7626 * config/m68k/tm-m68k.h: Fix typo.
7627 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7628 (m68k_frame_init_saved_regs): Declare.
7630 2002-06-21 Jim Blandy <jimb@redhat.com>
7632 Remove some vestiges of Harris 88k support.
7633 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7634 register numbering quirk.
7635 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7636 odd symbols occurring in Harris 88k ELF targets.
7638 2002-06-21 Tom Tromey <tromey@redhat.com>
7640 * gdb_locale.h: New file.
7641 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7642 (defs_h): Added gdb_locale.h.
7643 * configure, config.in: Rebuilt.
7644 * configure.in (PACKAGE): Define.
7645 * defs.h: Include gdb_locale.h.
7646 * main.c (captured_main): Call setlocale, bindtextdomain,
7649 2002-06-21 Dave Brolley <brolley@redhat.com>
7651 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7652 * config/frv/frv.mt: New file.
7653 * config/frv/tm-frv.h: New file.
7654 * configure.tgt: Support frv-*-*.
7655 * Makefile.in (frv-tdep.o): New target.
7656 * frv-tdep.c: New file.
7657 * NEWS: Mention frv.
7659 2002-06-21 Dave Brolley <brolley@redhat.com>
7661 * MAINTAINERS: Add self to "Write After Approval" list.
7663 2002-06-21 Grace Sainsbury <graces@redhat.com>
7665 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7666 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7667 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7668 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7669 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7671 * m68k-tdep.c: Include arch-utils.h
7672 (m68k_register_raw_size): Add.
7673 (m68k_register_virtual_size): Add.
7674 (m68k_register_virtual_type): Add.
7675 (m68k_register_name): Add.
7676 (m68k_stack_align): Add.
7677 (m68k_register_byte): Add.
7678 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7681 2002-06-21 Grace Sainsbury <graces@redhat.com>
7683 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7684 m68k_find_saved_regs.
7685 (m68k_pop_frame): Removed saved_regs structure, and replaced
7686 references to it with frame->saved_regs.
7687 (m68k_gdbarch_init): Added function calls to initialize the
7689 (m68k_fix_call_dummy): Add.
7690 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7691 (CALL_DUMMY): Remove.
7692 (CALL_DUMMY_LENGTH): Remove.
7693 (CALL_DUMMY_START_OFFSET): Remove.
7694 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7695 (FIX_CALL_DUMMY): Remove.
7696 (PUSH_DUMMY_FRAME): Remove.
7697 (POP_FRAME): Remove.
7699 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7701 * parse.c (parse_fprintf): New function used to avoid calls to
7702 fprintf in bison parser generated debug code.
7703 * parser-defs.h: Declaration of new parse_fprintf function.
7704 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7705 Set YYDEBUG to 1 by default.
7706 Set YYFPRINTF as parse_fprintf.
7708 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7710 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7712 (pointer_encoding, enum ptr_encoding): New.
7713 (execute_cfa_program): Take care about pointer encoding.
7714 (dwarf2_build_frame_info): Only call parse_frame_info for
7715 .debug_frame and .eh_frame.
7716 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7717 fixed augmentation handling, added relative addressing,
7718 ignore duplicate FDEs. Added comments.
7719 * dwarf2cfi.c: Reindented.
7721 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7723 * event-top.c (command_handler): Don't use space_at_cmd_start
7724 unless there is sbrk() on the host. Assign time and space data
7725 to union fields of the appropriate length.
7727 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7729 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7730 x86_64_register_name. Return type changed to 'const char *'.
7731 (x86_64_register_name2nr): Rename to x86_64_register_number.
7732 (x86_64_gdbarch_init): Update to reflect the change.
7733 * x86-64-tdep.h: Ditto.
7734 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7735 (supply_fpregset): Ditto.
7737 2002-06-19 Andrew Cagney <cagney@redhat.com>
7739 * regcache.h: Update copyright.
7740 (struct regcache, struct gdbarch): Add opaque declarations.
7741 (current_regcache): Declare global variable.
7742 (regcache_read, regcache_write): Add gdbarch parameter.
7743 (regcache_save, regcache_save_no_passthrough)
7744 (regcache_restore, regcache_restore_no_passthrough)
7745 (regcache_dup, regcache_dup_no_passthrough)
7746 (regcache_cpy, regcache_cpy_no_passthrough)
7747 (deprecated_grub_regcache_for_registers)
7748 (deprecated_grub_regcache_for_register_valid)
7749 (regcache_valid_p): Add function declarations.
7751 * regcache.c: Update copyright.
7752 (regcache_descr_handle): New global variable.
7753 (struct regcache_descr): Define.
7754 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7755 (regcache_descr, xfree_regcache_descr): New functions.
7756 (struct regcache): Define.
7757 (regcache_xmalloc, regcache_xfree): New functions.
7758 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7759 (regcache_dup, regcache_dup_no_passthrough): New functions.
7760 (regcache_valid_p, regcache_read_as_address): New functions.
7761 (deprecated_grub_regcache_for_registers): New function.
7762 (deprecated_grub_regcache_for_register_valid): New function.
7763 (current_regcache): New global variable.
7764 (register_buffer): Add regcache parameter. Update calls.
7765 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7766 (read_register_gen, write_register_gen): Update register_buffer
7767 call. Test for legacy_p instead of gdbarch_register_read_p or
7768 gdbarch_register_write_p.
7769 (regcache_collect): Update register_buffer call.
7770 (build_regcache): Rewrite. Use deprecated grub functions.
7771 (regcache_save, regcache_save_no_passthrough): New functions.
7772 (regcache_restore, regcache_restore_no_passthrough): New
7774 (_initialize_regcache): Create the regcache_data_handle. Swap
7775 current_regcache global variable.
7777 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7778 parameter to regcache_read and regcache_write calls.
7779 (sh4_register_read): Ditto.
7780 (sh64_pseudo_register_read): Ditto.
7781 (sh64_register_read): Ditto.
7782 (sh_pseudo_register_write): Ditto.
7783 (sh4_register_write): Ditto.
7784 (sh64_pseudo_register_write): Ditto.
7785 (sh64_register_write): Ditto.
7787 * defs.h (XCALLOC): Define.
7789 2002-06-19 Grace Sainsbury <graces@redhat.com>
7791 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7792 * m68k-tdep.c (m68k_gdbarch_init): Added.
7793 (m68k_dump_tdep): Added.
7795 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7797 * ada-lang.c (fill_in_ada_prototype): Update comment.
7799 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7801 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7803 (mips_abi_string, mips_abi_strings): New.
7804 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7805 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7806 tdep->mips_abi_string. Honor mips_abi_string. Default to
7807 O32 if no ABI is found.
7808 (mips_dump_tdep): Use mips_abi_strings.
7809 (mips_abi_update): New function.
7810 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7811 ``set mips abi'' and ``show mips abi''. Check the size of
7814 2002-06-19 Andrew Cagney <cagney@redhat.com>
7816 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7819 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7821 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7822 current frame using only the first stack size adjustment. All
7823 subsequent size adjustments are not considered to be part of
7824 the "static" part of the current frame.
7825 Compute the address of the saved registers relative to the
7826 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7827 in use in this frame.
7829 2002-06-18 Don Howard <dhoward@redhat.com>
7831 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7832 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7833 suggesting this solution.
7835 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7837 * config/romp/xm-rtbsd.h: Delete file.
7838 * config/romp/rtbsd.mh: Delete file.
7840 2002-06-18 Keith Seitz <keiths@redhat.com>
7842 * breakpoint.c (condition_command): Post breakpoint_modify
7843 when a condition is added to an existing breakpoint.
7844 (commands_command): Likewise for commands.
7845 (set_ignore_count): Likewise for ignore counts.
7846 If no tty, do not simply return, still need to send event
7848 (ignore_command): Only print a newline if the command came
7850 Don't call breakpoints_changed, since this is now properly
7851 handled by set_ignore_count.
7853 2002-06-18 Andrew Cagney <cagney@redhat.com>
7855 * MAINTAINERS: Note that cris-elf target can be compiled with
7857 * cris-tdep.c (cris_register_name): Make return type constant.
7858 (cris_breakpoint_from_pc): Ditto.
7860 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7862 * frame.h (struct frame_info): Change type of context to
7865 2002-06-17 Andrew Cagney <cagney@redhat.com>
7867 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7869 * gdbarch.h, gdbarch.c: Regenerate.
7870 * config/mips/tm-mips.h (mips_register_name): Update.
7871 * i386-tdep.h (i386_register_name): Update.
7872 * mips-tdep.c (mips_register_name): Update
7873 * alpha-tdep.c (alpha_register_name): Update.
7874 * arch-utils.c (legacy_register_name): Update.
7875 * arch-utils.h (legacy_register_name): Update.
7876 * avr-tdep.c (avr_register_name): Update.
7877 * ia64-tdep.c (ia64_register_name): Update.
7878 * i386-tdep.c (i386_register_name): Update.
7879 * sparc-tdep.c (sparc32_register_name): Update.
7880 (sparc64_register_name): Update.
7881 (sparclite_register_name): Update.
7882 (sparclet_register_name): Update.
7883 * sh-tdep.c (sh_generic_register_name): Update.
7884 (sh_sh_register_name): Update.
7885 (sh_sh3_register_name): Update.
7886 (sh_sh3e_register_name): Update.
7887 (sh_sh_dsp_register_name): Update.
7888 (sh_sh3_dsp_register_name): Update.
7889 (sh_sh4_register_name): Update.
7890 (sh_sh64_register_name): Update.
7891 * s390-tdep.c (s390_register_name): Update.
7892 * rs6000-tdep.c (rs6000_register_name): Update.
7893 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7894 (ns32k_register_name_32382): Update.
7895 * d10v-tdep.c (d10v_ts2_register_name): Update.
7896 (d10v_ts3_register_name): Update.
7897 * xstormy16-tdep.c (xstormy16_register_name): Update.
7898 * vax-tdep.c (vax_register_name): Update.
7899 * v850-tdep.c (v850_register_name): Update.
7900 * m68hc11-tdep.c (m68hc11_register_name): Update.
7901 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7902 (am33_register_name): Update.
7904 2002-06-17 Grace Sainsbury <graces@redhat.com>
7906 * m68k-tdep.c: Reindented.
7908 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7910 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7911 list of predefined types.
7913 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7915 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7916 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7917 REGISTER_CONVERT_TO_RAW): Remove defines.
7918 (i386_register_virtual_type, i386_register_convertible,
7919 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7921 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7922 macros mentioned above.
7924 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7925 (i386lynx_saved_pc_after_call): Remove prototype.
7926 * i386ly-tdep.c: Include "i386-tdep.h".
7927 (i386lynx_saved_pc_after_call): Make static. Use
7928 read_memory_nobpt instead of read_memory. Use
7929 read_memory_unsigned_integer instead of read_memory_integer.
7930 (i386lynx_init_abi): New function.
7931 (i386lynx_coff_osabi_sniffer): New function.
7932 (_initialize_i386bsd_tdep): New function.
7934 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7935 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7936 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7937 (i386_fix_call_dummy): Remove prototype.
7938 * i386-tdep.c (i386_call_dummy_words): New variable.
7939 (i386_gdbarch_init): Adjust for removal of the
7940 macros mentioned above.
7942 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7944 * command.h (add_setshow_auto_boolean_cmd): Replace
7945 add_set_auto_boolean_cmd.
7946 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7947 add_set_auto_boolean_cmd.
7948 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7949 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7950 mask-address'' command.
7951 (show_mask_address): Add cmd parameter.
7952 * remote.c (add_packet_config_cmd): Update. Change type of
7953 set_func and show_func to cmd_sfunc_ftype.
7954 (_initialize_remote): Update `set remote Z-packet'
7955 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7956 (show_remote_protocol_e_packet_cmd): Ditto.
7957 (show_remote_protocol_E_packet_cmd): Ditto.
7958 (show_remote_protocol_P_packet_cmd): Ditto.
7959 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7960 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7961 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7962 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7963 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7964 (show_remote_protocol_Z_packet_cmd): Ditto.
7965 (show_remote_protocol_binary_download_cmd): Ditto.
7966 (show_remote_cmd): Pass NULL to all of above.
7968 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7970 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7971 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7972 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7973 POP_FRAME): Remove defines.
7974 (i386_push_arguments, i386_store_struct_return,
7975 i386_extract_return_value, i386_store_return_value,
7976 i386_extract_struct_value_address, i386_push_dummy_frame,
7977 i386_pop_frame): Renove prototypes.
7978 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7979 macros mentioned above.
7981 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7983 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7984 add_set_boolean_cmd.
7985 (add_setshow_cmd): New function.
7986 * command.h (add_setshow_boolean_cmd): Replace
7987 add_set_boolean_cmd.
7988 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7989 and ``set rdiromatzero''.
7990 * maint.c (_initialize_maint_cmds): Update commented out code.
7991 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7992 * target.c (initialize_targets): Update `set
7993 trust-readonly-sections'.
7994 * remote.c (_initialize_remote): Update `set remotebreak'.
7996 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7998 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7999 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8000 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8001 fit into multi-arch framework.
8002 (i386_breakpoint_from_pc): New function.
8003 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8006 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8007 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8008 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8009 (i386_frameless_function_invocation, i386_frame_num_args,
8010 i386_frame_init_saved_regs): Remove prototypes.
8011 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8012 macros mentioned above.
8014 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8016 * cli/cli-decode.c (set_cmd_cfunc): Update.
8017 (set_cmd_sfunc): Update.
8018 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8019 (set_cmd_sfunc, set_cmd_cfunc): Update.
8020 * cli/cli-decode.h: Update.
8022 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8024 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8025 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8027 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8029 * defs.h (auto_boolean): Declare enum.
8030 * command.h (cmd_auto_boolean): Delete enum.
8031 * mips-tdep.c (mask_address_var): Update.
8032 (mips_mask_address_p): Update.
8033 (show_mask_address): Update.
8034 * remote.c (struct packet_config): Update.
8035 (update_packet_config): Update.
8036 (show_packet_config_cmd): Update.
8037 (packet_ok): Update.
8038 (add_packet_config_cmd): Update.
8039 (_initialize_remote):
8040 * command.h: Update.
8041 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8042 (do_setshow_command): Update.
8043 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8044 * cli/cli-decode.h: Update.
8046 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8048 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8049 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8050 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8051 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8052 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8053 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8055 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8056 list of DJGPP COFF targets.
8058 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8059 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8060 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8061 (FP0_REGNUM): Remove define.
8062 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8063 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8064 (i386_register_virtual_size): Remove protoype.
8065 * i386-tdep.c (i386_register_virtual_size): Removed.
8066 (i386_extract_return_value, i386_store_return_value): Use
8067 FP0_REGNUM instead of NUM_FREGS to determine whether the
8068 floating-point registers are available.
8069 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8070 Adjust for removal of macros mentioned above.
8072 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8074 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8076 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8078 (supply_gregset, fill_gregset): Remove use of register keyword and
8079 remove declaration for regmap. Use I386_NUM_GREGS instead of
8080 NUM_REGS and NUM_FREGS.
8081 (FPREGSET_FSAVE_OFFSET): Remove.
8082 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8083 NUM_FREGS to determine whether the floating-point registers are
8086 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8087 gnu_store_registers): Replace usage of NUM_GREGS with
8090 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8091 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8092 usage of NUM_GREGS with I386_NUM_GREGS.
8094 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8096 * i386bsd-nat.c: Include "i386-tdep.h".
8097 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8100 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8101 and associated comment. They no longer make any sense, since we
8102 don't use this file anymore on Linux.
8104 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8105 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8106 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8107 elements in these arrays.
8108 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8111 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8113 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8114 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8116 2002-06-14 Andrew Cagney <cagney@redhat.com>
8118 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8119 EXTRACT_RETURN_VALUE.
8120 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8121 EXTRACT_STRUCT_VALUE_ADDRESS.
8122 * gdbarch.h, gdbarch.c: Regenerate.
8124 * values.c (value_being_returned): Handle
8125 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8126 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8128 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8129 * arm-tdep.c (arm_gdbarch_init): Update.
8130 * avr-tdep.c (avr_gdbarch_init): Update.
8131 * cris-tdep.c (cris_gdbarch_init): Update.
8132 * d10v-tdep.c (d10v_gdbarch_init): Update.
8133 * ia64-tdep.c (ia64_gdbarch_init): Update.
8134 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8135 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8136 * s390-tdep.c (s390_gdbarch_init): Update.
8137 * sh-tdep.c (sh_gdbarch_init): Update.
8138 * s390-tdep.c (s390_gdbarch_init): Update.
8139 * sparc-tdep.c (sparc_gdbarch_init): Update.
8140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8141 * v850-tdep.c (v850_gdbarch_init): Update.
8142 * vax-tdep.c (vax_gdbarch_init): Update.
8143 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8146 * config/arc/tm-arc.h: Update.
8147 * config/d30v/tm-d30v.h: Update.
8148 * config/fr30/tm-fr30.h: Update.
8149 * config/h8300/tm-h8300.h: Update.
8150 * config/h8500/tm-h8500.h: Update.
8151 * config/i386/tm-i386.h: Update.
8152 * config/i386/tm-ptx.h: Update.
8153 * config/i386/tm-symmetry.h: Update.
8154 * config/i960/tm-i960.h: Update.
8155 * config/m32r/tm-m32r.h: Update.
8156 * config/m68k/tm-delta68.h: Update.
8157 * config/m68k/tm-linux.h: Update.
8158 * config/m68k/tm-m68k.h: Update.
8159 * config/m88k/tm-m88k.h: Update.
8160 * config/mcore/tm-mcore.h: Update.
8161 * config/mips/tm-mips.h: Update.
8162 * config/mn10200/tm-mn10200.h: Update.
8163 * config/pa/tm-hppa.h: Update.
8164 * config/pa/tm-hppa64.h: Update.
8165 * config/sparc/tm-sp64.h: Update.
8166 * config/sparc/tm-sparc.h: Update.
8167 * config/sparc/tm-sparclet.h: Update.
8168 * config/z8k/tm-z8k.h: Update.
8170 2002-06-14 Andrew Cagney <cagney@redhat.com>
8172 * Makefile.in (i386_linux_tdep_h): Define.
8173 (i386_tdep_h, i387_tdep_h): Define.
8174 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8175 $(i386_tdep_h) and $(i387_tdep_h).
8176 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8178 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8180 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8181 Already covered by the default.
8183 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8184 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8185 (i386_gdbarch_init): Initialize long_double_format and long_double
8188 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8189 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8191 * config/i386/i386sol2.mh: ... here.
8192 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8193 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8194 (SIGCONTEXT_PC_OFFSET): Remove define.
8195 (IN_SIGTRAMP): Remove define.
8196 * i386-sol2-tdep.c: New file.
8198 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8199 * config/i386/tm-i386nw.h: Removed.
8201 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8202 USE_STRUCT_CONVENTION): Remove defines.
8203 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8204 (get_longjmp_target): Remove prototype.
8205 (IN_SIGTRAMP): Remove define.
8206 (i386bsd_in_sigtramp): Remove prototype.
8207 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8208 function. Update comment accordingly
8209 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8210 (FRAME_SAVED_PC): Remove define.
8211 (i386bsd_frame_saved_pc): Remove prototype.
8212 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8213 GET_LONGJMP_TARGET): Remove defines.
8214 (get_longjmp_target): Remove prototype.
8215 (IN_SIGTRAMP): Remove define.
8216 (i386bsd_in_sigtramp): Remove prototype.
8217 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8218 function. Update comment accordingly
8219 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8220 (FRAME_SAVED_PC): Remove define.
8221 (i386bsd_frame_saved_pc): Remove prototype.
8222 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8224 (USE_STRUCT_CONVENTION): Remove prototype.
8225 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8227 (_initialize_i386bsd_nat): Revise logic to determine some
8228 constants at compile time when compiling a native GDB. Warn if
8229 things don't match up with what we expect.
8230 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8232 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8233 to use date stored in `struct gdbarch_tdep'.
8234 (i386bsd_sigcontext_offset): Remove varaible.
8235 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8236 stored in `struct gdbarch_tdep'.
8237 (i386bsd_frame_saved_pc): Make static.
8238 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8239 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8240 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8241 i386fbsd4_sc_pc_offset): New variables.
8242 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8243 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8245 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8247 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8248 Modify the value of i386fbsd_sigtramp_start and
8249 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8250 i386fbsd_sigtramp_end.
8251 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8254 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8255 define to i386-linux-tdep.h.
8256 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8257 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8259 (i386_linux_register_name, i386_linux_register_byte,
8260 i386_linux_register_raw_size): Remove prototypes.
8261 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8262 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8263 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8264 TARGET_WRITE_PC): Remove defines.
8265 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8266 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8267 i386_linux_write_pc): Remove prototypes.
8268 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8269 (get_longjmp_target): Remove prototype.
8270 * i386-linux-tdep.h: New file.
8271 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8272 * i386-linux-tdep.c: Include "i386-tdep.h" and
8273 "i386-linux-tdep.h".
8274 (i386_linux_register_name, i386_linux_register_byte,
8275 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8276 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8278 (i386_linux_init_abi): New function.
8279 (_initialize_i386_linux_tdep): New function.
8281 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8282 (i386_saved_pc_after_call): Remove prototype.
8283 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8284 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8285 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8286 (i386_register_name, i386_stab_reg_to_regnum,
8287 i386_dwarf_reg_to_regnum): Remove prototypes.
8288 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8289 SIZEOF_SSE_REGS): Remove defines.
8290 (REGISTER_BYTES): Remove define.
8291 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8292 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8293 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8294 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8295 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8296 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8297 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8298 (get_longjmp_target): Remove prototype.
8299 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8300 (sigtramp_saved_pc): Remove define.
8301 (i386v4_sigtramp_saved_pc): Remove prototype.
8302 * config/i386/tm-go32.h (FRAME_CHAIN,
8303 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8304 (i386go32_frame_saved_pc): Remove prototype.
8305 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8306 (get_longjmp_target): Remove prototype.
8307 * i386-tdep.h: Include "osabi.h".
8308 (enum i386_abi): Removed.
8309 (enum struct_return): New enum.
8310 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8311 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8312 sc_pc_offset members.
8313 (i386_gdbarch_register_os_abi): Remove prototype.
8314 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8315 I386_SSE_NUM_REGS): New defines.
8316 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8317 I386_SSE_SIZEOF_REGS): New defines.
8318 (i386_register_name, i386_register_byte, i386_register_raw_size):
8320 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8321 (i386bsd_sigtramp_saved_pc): New prototype.
8322 * i386-tdep.c: Don't include "elf-bfd.h".
8323 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8324 i386_frame_chain, i386_saved_pc_after_call): Make static.
8325 (i386_frame_saved_pc): Rewrite to call architecture dependent
8326 function to deal with signal handlers. Make static.
8327 (i386go32_frame_saved_pc): Removed.
8328 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8330 (i386_get_longjmp_target): New function.
8331 (default_struct_convention, pcc_struct_convention,
8332 reg_struct_convention, valid_conventions, struct_convention): New
8334 (i386_use_struct_convention): New function.
8335 (i386v4_sigtramp_saved_pc): Renamed to
8336 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8337 (i386_pc_in_sigtramp): New function.
8338 (i386_abi_names): Removed.
8339 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8340 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8342 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8343 i386_gdbarch_register_os_abi): Removed.
8344 (struct i386_abi_handler): Removed.
8345 (i386_abi_handler_list): Removed.
8346 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8348 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8349 i386_nw_init_abi): New functions.
8350 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8351 Use set_gdbarch_xxx() calls instead of relying on macros for a
8353 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8354 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8355 Register the various architecture variants defined in this file.
8357 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8359 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8360 (struct main_type): Remove arg_types member. Update comments for
8362 (TYPE_ARG_TYPES): Remove.
8363 (TYPE_FN_FIELD_ARGS): Update.
8364 (smash_to_method_type): Update prototype.
8366 * c-typeprint.c (cp_type_print_method_args): Take method type
8367 instead of argument list. Use new argument layout. Simplify.
8368 (c_type_print_args): Use new argument layout. Simplify.
8369 (c_type_print_base): Update call to cp_type_print_method_args.
8370 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8371 argument; use die->type instead. Update call to
8372 smash_to_method_type.
8373 (read_structure_scope): Update call to dwarf2_add_member_fn.
8374 * gdbtypes.c (allocate_stub_method): Update comment.
8375 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8376 Use new argument layout.
8377 (check_stub_method): Use new argument layout. Don't count
8378 void as an argument.
8379 (print_arg_types): Update comments. Use new argument layout.
8380 (recursive_dump_type): Don't print arg_types member.
8381 * hpread.c (hpread_read_struct_type): Use new argument layout.
8382 (fixup_class_method_type): Likewise.
8383 (hpread_type_lookup): Likewise.
8384 * stabsread.c (read_type): Update calls to read_args and
8385 smash_to_method_type.
8386 (read_args): Use new argument layout. Simplify.
8387 * valops.c (typecmp): Use new argument layout. Update parameters
8388 and comments. Simplify.
8389 (hand_function_call): Use new argument layout.
8390 (search_struct_method): Update call to typecmp.
8391 (find_overload_match): Use new argument layout.
8393 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8395 * NEWS: Mention multithreaded debug support for gdbserver.
8397 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8399 * MAINTAINERS: Mention NEWS.
8401 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8403 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8404 (struct mips_objfile_private, compare_pdr_entries): New.
8405 (non_heuristic_proc_desc): Read the ".pdr" section if it
8408 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8410 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8411 (arm_debug): New static variable.
8412 (_initialize_arm_tdep): Add ``set debug arm'' command.
8414 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8416 * Makefile.in (sim_arm_h): Define.
8417 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8418 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8419 (arm_register_sim_regno): New function, map an internal REGNUM
8420 onto a simulator register number.
8421 (arm_gdbarch_init): Set register_sim_regno.
8423 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8425 * MAINTAINERS: Add self.
8427 2002-06-11 Jim Blandy <jimb@redhat.com>
8429 * source.c (source_info): Mention whether the symtab has
8430 information about preprocessor macros.
8432 Call the command `info macro', not `show macro'.
8433 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8435 (_initialize_macrocmd): Register `info_macro_command' in
8436 `infolist', not `showlist'.
8438 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8440 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8441 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8442 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8443 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8444 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8446 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8447 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8448 (_initialize_mips_tdep): Remove dead code.
8449 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8450 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8451 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8452 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8453 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8454 MIPS_LAST_FP_ARG_REGNUM): Remove.
8456 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8458 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8459 (unwind_tmp_obstack_free, parse_frame_info)
8460 (update_context, cfi_read_fp, cfi_write_fp)
8461 (cfi_frame_chain, cfi_init_extra_frame_info)
8462 (cfi_virtual_frame_pointer): Use the above function.
8463 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8465 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8467 * v850-tdep.c (v850_type_is_scalar): New function.
8468 (v850_use_struct_convention): Match current gcc implementation
8469 as close as possible.
8470 (v850_push_arguments): Fix stack_offset handling. Don't write
8471 struct_addr into register. This is done by v850_store_struct_return.
8472 (v850_extract_return_value): Care for structs.
8473 (v850_store_return_value): Ditto.
8474 (v850_store_struct_return): Actually write address.
8476 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8478 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8479 without debug information too.
8481 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8483 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8484 Make multi-arch pure.
8485 * gdbarch.h, gdbarch.c: Re-generate.
8486 * arm-tdep.c (arm_print_float_info): Update.
8487 * arch-utils.h (default_print_float_info): Update.
8488 * arch-utils.c (default_print_float_info): Update.
8489 * infcmd.c (float_info): Update call.
8491 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8493 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8494 the front of the initialize list.
8496 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8498 * infrun.c (struct inferior_status): Replace fields
8499 selected_frame_address and selected_level with field
8501 (save_inferior_status): Update. Use get_frame_id.
8502 (struct restore_selected_frame_args): Delete.
8503 (restore_selected_frame): Update. Use frame_find_by_id.
8504 (restore_inferior_status): Update.
8506 * breakpoint.h (struct breakpoint): Change type of
8507 watchpoint_frame to frame_id.
8508 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8509 call to get_current_frame.
8510 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8512 (watchpoint_check): Use frame_find_by_id.
8514 * frame.h (record_selected_frame): Delete declaration.
8515 * stack.c (record_selected_frame): Delete function.
8517 * frame.h (struct frame_id): Define.
8518 (get_frame_id): Declare.
8519 (frame_find_by_id): Declare.
8520 * frame.c (frame_find_by_id): New function.
8521 (get_frame_id): New function.
8523 2002-06-10 Andrey Volkov <avolkov@transas.com>
8525 * ser-e7kpc.c: Fix duplicated define and call of
8526 _initialize_ser_e7000pc
8528 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8530 * signals/signals.c (target_signal_from_host): Fix #ifdef
8532 (do_target_signal_to_host): Likewise.
8534 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8536 * mips-tdep.c (mips_find_abi_section): New function.
8537 (mips_gdbarch_init): Call it.
8539 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8541 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8542 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8543 after Andrew's 2002-06-08 gdbarch change.
8545 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8547 * i386-linux-nat.c (suppy_gregset): Don't supply
8548 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8550 (fill_gregset): Don't fetch it under the same circumstances.
8552 2002-06-09 Andrew Cagney <cagney@redhat.com>
8554 * Makefile.in (callback_h): Define.
8555 (remote_sim_h): Update path to remote-sim.h.
8556 (remote-rdp.o): Add $(callback_h).
8557 (remote-sim.o): Use $(callback_h).
8558 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8559 * remote-rdp.c: Include "gdb/callback.h".
8561 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8563 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8564 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8566 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8568 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8569 * rdi-share/serpardr.c: Ditto.
8570 * rdi-share/unixcomm.c: Ditto.
8571 * rdi-share/serdrv.c: Ditto.
8572 * rdi-share/hostchan.h: Ditto.
8573 * rdi-share/hostchan.c: Ditto.
8574 * rdi-share/host.h: Ditto.
8575 * rdi-share/devsw.c: Ditto.
8577 * objfiles.h: Change type of obj_private to void pointer.
8578 * pa64solib.c: Update copyright. Don't include "assert.h", use
8579 strcmp instead of STREQ, use LONGEST, do not use PTR
8580 * somsolib.c: Ditto.
8582 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8583 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8584 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8586 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8588 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8589 (default_get_saved_register): Delete function.
8590 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8591 generic_unwind_get_saved_register.
8592 * gdbarch.h, gdbarch.c: Re-generate.
8594 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8596 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8597 generic_func_frame_chain_valid.
8598 * gdbarch.h, gdbarch.c: Re-generate.
8599 * blockframe.c (generic_func_frame_chain_valid): Only check
8600 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8601 passing FP to PC_IN_CALL_DUMMY.
8604 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8606 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8607 (register_gdbarch_data): Initialize init_p.
8608 (gdbarch_data): Initialize data pointer using the init function.
8609 (init_gdbarch_data): Delete function.
8610 (gdbarch_update_p): Update.
8611 (initialize_non_multiarch): Update.
8612 (struct gdbarch): Add field initialized_p.
8613 * gdbarch.h, gdbarch.c: Re-generate.
8615 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8617 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8618 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8619 better do the things actually here.
8620 * x86-64-tdep.c (x86_64_register_name2nr): New.
8621 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8622 (x86_64_gdbarch_init): Respect the above change.
8623 * x86-64-tdep.h (x86_64_register_name2nr)
8624 (x86_64_register_nr2name): Add prototypes.
8625 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8627 2002-06-06 Michael Snyder <msnyder@redhat.com>
8629 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8630 Delete extra braces and re-indent.
8631 (d10v_store_return_value): Char return values
8632 must be shifted over by one byte in R0.
8633 (d10v_extract_return_value): Delete extra braces, re-indent.
8635 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8637 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8638 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8639 (d10v_integer_to_address): Rewrite.
8640 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8641 the d10v specific functions which take care of converting to the
8644 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8646 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8647 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8649 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8651 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8653 * config/tm-linux.h: Ditto.
8654 * config/alpha/tm-alphalinux.h: Ditto.
8655 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8656 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8657 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8658 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8659 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8660 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8661 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8662 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8663 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8664 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8665 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8666 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8667 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8668 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8669 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8670 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8671 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8672 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8673 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8674 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8675 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8676 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8677 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8678 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8679 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8680 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8681 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8682 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8683 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8684 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8685 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8686 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8687 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8688 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8689 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8690 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8691 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8693 2002-05-04 Aidan Skinner <aidan@velvet.net>
8695 * ada-exp.tab.c: New file
8696 * ada-exp.y: New file
8697 * ada-lang.c: New file
8698 * ada-lang.h: New file
8699 * ada-lex.c: New file
8700 * ada-lex.l: New file
8701 * ada-tasks.c: New file
8702 * ada-typeprint.c: New file
8703 * ada-valprint.c: New file
8705 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8707 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8708 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8710 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8712 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8713 insetead of ppc-linux-tdep.o.
8714 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8715 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8717 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8719 2002-05-07 Christian Groessler <chris@groessler.org>
8720 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8721 bit register contents for little endian hosts.
8723 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8725 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8728 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8730 * gdbarch.h: Regenerate.
8732 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8734 * MAINTAINERS: Add everyone to write-after-approval list.
8736 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8738 * stack.c (frame_info): Use frame_register_unwind instead of
8739 saved_regs. Mention when the SP is on the stack or in a register.
8741 * frame.h (frame_register_unwind_ftype): Define. Document.
8742 (struct frame_info): Add field register_unwind and
8743 register_unwind_cache.
8744 (frame_register_unwind): Declare.
8745 (generic_unwind_get_saved_register): Declare.
8747 * frame.c (frame_register_unwind): New function.
8748 (generic_unwind_get_saved_register): New function.
8750 * blockframe.c (generic_call_dummy_register_unwind): New function.
8751 (frame_saved_regs_register_unwind): New function.
8752 (set_unwind_by_pc): New function.
8753 (create_new_frame): New function.
8754 (get_prev_frame): New function.
8756 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8758 * a29k-share/: Delete directory.
8759 * remote-vx29k.c: Delete file.
8761 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8763 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8764 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8766 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8768 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8769 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8772 (sparcnbsd-tdep.o): New dependency lists.
8773 * NEWS: Note new UltraSPARC NetBSD native configuration.
8774 * configure.host (sparc64-*-netbsd*): New host.
8775 * configure.tgt (sparc-*-netbsdelf*)
8776 (sparc-*-netbsd*): Set gdb_target to nbsd.
8777 (sparc64-*-netbsd*): New target.
8778 * sparc64nbsd-nat.c: New file.
8779 * sparcnbsd-nat.c: New file.
8780 * sparcnbsd-tdep.c: New file.
8781 * sparcnbsd-tdep.h: New file.
8782 * config/sparc/nbsd.mt: New file.
8783 * config/sparc/nbsd64.mh: New file.
8784 * config/sparc/nbsd64.mt: New file.
8785 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8786 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8788 * config/sparc/nbsdaout.mt: Remove.
8789 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8790 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8792 * config/sparc/nbsdelf.mt: Remove.
8793 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8794 sparc-nat.c compatiblity defines.
8795 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8796 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8797 * config/sparc/tm-nbsd64.h: New file.
8798 * config/sparc/tm-nbsdaout.h: Remove.
8799 * config/sparc/xm-nbsd.h: Remove.
8801 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8803 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8804 * sparc-tdep.c: Include osabi.h.
8805 (gdbarch_tdep): Add osabi member.
8806 (_initialize_sparc_tdep): Use gdbarch_register.
8807 (sparc_gdbarch_init): Use generic OS ABI framework.
8808 (sparc_dump_tdep): New function.
8810 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8812 * corefile.c (do_captured_read_memory_integer): Return non-zero
8814 (safe_read_memory_integer): Copy result of memory read when
8815 status is non-zero. Also, add comments.
8817 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8819 * Makefile.in (ppc_tdep_h): Define.
8822 (rs6000-tdep.o): Use $(ppc_tdep_h).
8825 (ppcnbsd-tdep.o): New dependency lists.
8826 * ppc-tdep.h: Use generic OS ABI framework.
8827 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8828 (ppc_linux_init_abi): New functions.
8829 (ppc_sysv_abi_broken_use_struct_convention)
8830 (ppc_sysv_abi_use_struct_convention)
8831 (ppc_sysv_abi_push_arguments): Move to...
8832 * ppc-sysv-tdep.c: ...here.
8833 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8834 * rs6000-tdep.c (process_note_abi_tag_sections)
8835 (get_elfosabi): Remove.
8836 (rs6000_gdbarch_init): Use generic OS ABI framework.
8837 (rs6000_dump_tdep): New function.
8838 (_initialize_rs6000_tdep): Use gdbarch_register.
8839 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8840 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8841 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8842 of ppc-linux-tdep.o.
8843 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8844 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8845 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8846 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8847 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8848 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8850 2002-05-29 Jim Blandy <jimb@redhat.com>
8852 * macroscope.c (default_macro_scope): Put `void' in empty argument
8855 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8857 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8858 * arch-utils.c: Include "sim-regno.h".
8859 * gdbarch.sh: Don't include "sim-regno.h".
8860 * gdbarch.h, gdbarch.c: Regenerate.
8861 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8863 * arch-utils.h (legacy_register_sim_regno): To here.
8864 * remote-sim.c (legacy_register_sim_regno): Move function from
8866 * arch-utils.c (legacy_register_sim_regno): To here.
8868 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8870 * sim-regno.h: New file.
8871 * Makefile.in (sim_regno_h): Define.
8872 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8873 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8874 (legacy_register_sim_regno): New function.
8875 (one2one_register_sim_regno): New function.
8876 (gdbsim_fetch_register): Rewrite.
8877 (gdbsim_store_register): Only store a register when
8878 REGISTER_SIM_REGNO is valid.
8879 * d10v-tdep.c: Include "sim-regno.h".
8880 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8881 (d10v_ts3_register_sim_regno): Ditto.
8882 * gdbarch.sh: Include "sim-regno.h".
8883 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8884 * gdbarch.h, gdbarch.c: Regenerate.
8885 * arch-utils.h (default_register_sim_regno): Delete declaration.
8886 * arch-utils.c (default_register_sim_regno): Delete function.
8888 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8890 * ppcnbsd-nat.c: Rewrite.
8891 * ppcnbsd-tdep.c: New file.
8892 * ppcnbsd-tdep.h: New file.
8893 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8894 solib.o, and solib-svr4.o.
8895 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8896 nbsd-tdep.o, and corelow.o.
8898 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8900 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8901 `tr' and `sed'. Mention that `broken' targets are not expected to
8904 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8906 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8907 Let PC point right after the prologue before looking up symbols.
8909 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8911 * i386-tdep.c (i386_register_virtual_type): Return
8912 builtin_type_vec128i for SSE registers.
8914 * gdbtypes.h (builtin_type_vec128i): Declare.
8916 * gdbtypes.c (build_builtin_type_vec128i): New function.
8917 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8918 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8919 (build_gdbtypes): Initialize new builtin vector types.
8920 (_initialize_gdbtypes): Register new vector types with gdbarch.
8922 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8924 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8925 since it has been multi-arch'd.
8926 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8927 Move Alpha and VAX multi-arch news entries to same section
8928 as other multi-arch news.
8930 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8932 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8933 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8934 static. Rename some register numbers to put them in ns32k-tdep
8936 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8937 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8939 (_initialize_ns32k_tdep): Use gdbarch_register.
8940 * ns32k-tdep.h: New file.
8941 * ns32knbsd-tdep.c: New file.
8942 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8943 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8944 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8945 REGISTER_BYTES, REGISTER_BYTE): Remove.
8946 * config/ns32k/tm-ns32k.h: New file.
8947 * config/ns32k/tm-umax.h: Remove.
8949 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8951 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8952 ns32k_store_struct_return, ns32k_extract_return_value,
8953 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8955 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8956 ns32k_saved_pc_after_call.
8957 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8958 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8959 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8960 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8961 ns32k_extract_struct_value_address.
8963 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8965 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8966 ns32k_fix_call_dummy): New.
8967 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8968 ns32k_call_dummy_words.
8969 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8970 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8971 CALL_DUMMY_NARGS): Remove.
8972 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8974 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8976 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8977 ns32k_frame_saved_pc, ns32k_frame_args_address,
8978 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8979 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8980 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8981 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8982 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8983 (BREAKPOINT): Remove..
8984 (FRAME_CHAIN): Define as ns32k_frame_chain.
8985 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8986 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8987 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8988 (FRAME_FIND_SAVED_REGS): Remove.
8989 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8990 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8991 (POP_FRAME): Define as ns32k_pop_frame.
8993 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8995 * ns32k-tdep.c (ns32k_register_byte_32082,
8996 ns32k_register_byte_32382, ns32k_register_raw_size,
8997 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8999 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9000 ns32k_register_byte_32382.
9001 * config/ns32k/tm-umax.h: Update copyright years.
9002 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9003 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9004 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9005 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9006 (ns32k_get_enter_addr): Fix prototype.
9008 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9010 * ns32k-tdep.c: Update copyright years.
9011 (ns32k_register_name_32082): New function.
9012 (ns32k_register_name_32382): Ditto.
9013 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9014 (REGISTER_NAME): Define as ns32k_register_name_32382.
9015 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9016 (REGISTER_NAME): Define as ns32k_register_name_32082.
9018 2002-05-24 Jim Blandy <jimb@redhat.com>
9020 * dwarf2read.c (free_line_header): Use xfree, not free.
9022 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9024 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9025 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9027 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9029 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9031 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9033 From Ross Alexander at NEC Europe:
9034 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9036 2002-05-23 Michael Snyder <msnyder@redhat.com>
9038 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9039 for input, rather than parse_and_eval_address.
9041 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9043 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9044 * Makefile.in (sim_d10v_h): Update definition.
9046 2002-05-24 Andrew Cagney <cagney@redhat.com>
9048 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9049 change `2002-05-22 Michael Snyder' below.
9050 (d10v_push_arguments): Ditto.
9051 (d10v_extract_return_value): Ditto.
9053 2002-05-23 Jim Blandy <jimb@redhat.com>
9055 * macrotab.c (check_for_redefinition): Don't complain if the new
9056 definition is the same as the previous one. Take more arguments
9057 to allow the comparison.
9058 (macro_define_object, macro_define_function): Pass more arguments
9059 to check_for_redefinition.
9061 2002-05-22 Michael Snyder <msnyder@redhat.com>
9063 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9064 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9065 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9066 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9067 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9068 Add a temp variable to save a call (and a memory read).
9069 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9070 if possible (so that PC_IN_CALL_DUMMY will work).
9072 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9074 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9076 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9078 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9080 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9081 (dwarf2_build_frame_info): Add offset to fde->initial_location
9082 so that frames of shared libraries are mapped correctly.
9083 (execute_stack_op): Change type of 'result' from ULONGEST to
9086 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9088 * config/alpha/tm-nbsd.h: Include solib.h.
9090 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9092 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9093 assumptions about the host's byte order.
9095 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9097 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9099 * alphanbsd-tdep.c: Include solib-svr4.h.
9100 * shnbsd-tdep.c: Ditto.
9102 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9104 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9105 nbsd-tdep.h to dependency list.
9106 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9107 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9108 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9109 nbsdaout.mh and nbsdelf.mh consistently.
9110 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9111 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9112 nbsdaout.mt and nbsdelf.mh consistently.
9113 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9114 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9115 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9116 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9117 a.out shared library stuff from here...
9118 * config/nm-nbsdaout.h: ...to here.
9119 * config/tm-nbsd.h: Remove.
9120 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9121 * config/arm/nbsd.mh: Remove.
9122 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9124 * config/arm/nbsdaout.mh: New file.
9125 * config/arm/nbsdelf.mh: New file.
9126 * config/arm/nm-nbsdaout.h: New file.
9127 * config/i386/nbsd.mh: Remove.
9128 * config/i386/nbsd.mt: Remove.
9129 * config/i386/nbsdaout.mh: New file.
9130 * config/i386/nbsdaout.mt: New file.
9131 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9132 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9133 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9134 i386_register_u_addr): Remove.
9135 * config/i386/nm-nbsdaout.h: New file.
9136 * config/i386/nm-nbsdelf.h: Remove.
9137 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9138 (USE_STRUCT_CONVENTION): Remove.
9139 * config/i386/tm-nbsdaout.h: New file.
9140 * config/i386/tm-nbsdelf.h: Remove.
9141 * config/m68k/nbsd.mh: Remove.
9142 * config/m68k/nbsd.mt: Remove.
9143 * config/m68k/nbsdaout.mh: New file.
9144 * config/m68k/nbsdaout.mt: New file.
9145 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9146 * config/m68k/nm-nbsdaout.h: New file.
9147 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9148 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9149 * config/ns32k/nbsd.mh: Remove.
9150 * config/ns32k/nbsd.mt: Remove.
9151 * config/ns32k/nbsdaout.mh: New file.
9152 * config/ns32k/nbsdaout.mt: New file.
9153 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9154 * config/ns32k/nm-nbsdaout.h: New file.
9155 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9156 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9157 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9158 (SVR4_SHARED_LIBS): Remove.
9159 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9160 * config/sparc/nbsd.mh: Remove.
9161 * config/sparc/nbsd.mt: Remove.
9162 * config/sparc/nbsdaout.mh: New file.
9163 * config/sparc/nbsdaout.mt: New file.
9164 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9165 * config/sparc/nbsdelf.mt: New file.
9166 * config/sparc/nm-nbsdaout.h: New file.
9167 * config/sparc/nm-nbsdelf.h: Remove.
9168 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9169 * config/sparc/tm-nbsdaout.h: New file.
9171 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9173 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9175 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9177 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9179 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9181 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9183 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9185 * NEWS: Note new MIPS NetBSD native configuration.
9186 * configure.host (mips*-*-netbsd*): New host.
9187 * configure.tgt (mips*-*-netbsd*): New target.
9188 * mipsnbsd-nat.c: New file.
9189 * mipsnbsd-tdep.c: New file.
9190 * mipsnbsd-tdep.h: New file.
9191 * config/mips/nbsd.mh: New file.
9192 * config/mips/nbsd.mt: New file.
9193 * config/mips/nm-nbsd.h: New file.
9194 * config/mips/tm-nbsd.h: New file.
9196 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9198 * Makefile.in (SFILES): Add osabi.c.
9199 (COMMON_OBS): Add osabi.o.
9200 (osabi.o): New dependency list.
9201 * osabi.c: New file.
9202 * osabi.h: New file.
9203 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9205 * Makefile.in (alpha_tdep_h): Define and use instead of
9207 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9208 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9210 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9211 * alpha-tdep.h: Include osabi.h.
9212 (alpha_abi): Remove.
9213 (gdbarch_tdep): Use generic OS ABI framework.
9214 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9215 gdbarch_register_osabi.
9216 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9217 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9218 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9220 * Makefile.in (sh_tdep_h): Add osabi.h.
9221 * sh-tdep.h (sh_osabi): Remove.
9222 (gdbarch_tdep): Use generic OS ABI framework.
9223 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9224 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9225 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9226 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9228 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9229 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9230 gdbarch_register_osabi.
9231 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9232 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9233 (get_elfosabi): Rename to...
9234 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9235 ABI framework support routines.
9236 (arm_gdbarch_init): Use generic OS ABI framework.
9237 (arm_dump_tdep): Likewise.
9238 (_initialize_arm_tdep): Likewise.
9239 * arm-tdep.h: Include osabi.h.
9241 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9243 (arm_gdbarch_register_os_abi): Remove prototype.
9244 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9245 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9247 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9248 * mips-tdep.c: Include osabi.h.
9249 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9252 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9254 * h8300-tdep.c: Fix formatting.
9256 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9258 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9259 printing vector registers.
9261 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9263 From Fernando Nasser:
9264 * remote.c (remote_async_open_1): Re-throw the exception when the
9266 (remote_cisco_open): Ditto.
9267 (remote_open_1): Ditto.
9269 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9271 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9272 (remote_start_remote): Add uiout parameter. Pass through to
9273 remote_start_remote_dummy.
9274 (remote_open_1): Use catch_exception instead of catch_errors.
9275 (remote_async_open_1): Ditto.
9276 (remote_cisco_open): Ditto.
9278 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9280 * remote.c (remote_start_remote): Replace PTR with void pointer.
9281 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9284 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9286 * gdb_indent.sh: Allow the script to be run in the sim directory.
9288 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9290 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9291 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9293 * corelow.c (core_open): Only call set_gdbarch_from_file if
9296 2002-05-17 Andrey Volkov <avolkov@transas.com>
9298 * h8300-tdep.c: Add support of EXR register
9299 * config/h8300/tm-h8300.h: Ditto.
9301 2002-05-17 Andrey Volkov <avolkov@transas.com>
9303 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9305 2002-05-17 Andrey Volkov <avolkov@transas.com>
9307 * h8300-tdep.c: Change literal regnums to REGNO.
9309 2002-05-17 Jim Blandy <jimb@redhat.com>
9311 * NEWS: Note addition of macro support.
9313 Expand preprocessor macros in C expressions.
9314 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9315 (scan_macro_expansion, scanning_macro_expansion,
9316 finished_macro_expansion): New function declarations.
9317 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9318 variable declarations.
9319 * parser-defs.h (expression_context_pc): New declaration.
9320 * parse.c (expression_context_pc): New variable.
9321 (parse_exp_1): Set expression_context_pc, as well as
9322 expression_context_block.
9323 * c-exp.y (yylex): If we're not already reading the result of a
9324 macro expansion, try to macro-expand the next token. When we're
9325 done scanning a macro expansion, switch back to the mainline text.
9326 Commas and `if's in a macro's expansion don't terminate the input.
9327 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9328 (macro_original_text, macro_expanded_text,
9329 expression_macro_lookup_func, expression_macro_lookup_baton): New
9331 (scan_macro_expansion, scanning_macro_expansion,
9332 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9333 c_preprocess_and_parse): New functions.
9334 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9335 c_preprocess_and_parse, instead of c_parse.
9336 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9337 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9339 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9341 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9342 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9343 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9345 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9347 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9349 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9351 * Makefile.in (sh_tdep_h): Define and use.
9352 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9353 register enum): Move to...
9354 * * sh-tdep.h: ...here.
9355 * sh-tdep.c: Include sh-tdep.h.
9356 * sh3-rom.c: Likewise.
9357 * shnbsd-tdep.c: Likewise.
9359 2002-05-16 Michael Snyder <msnyder@redhat.com>
9361 * arm-tdep.c: Spelling fix in comment.
9363 2002-05-16 Jim Blandy <jimb@redhat.com>
9365 Add commands for manually expanding macros and showing their
9367 * macrocmd.c, macroscope.c, macroscope.h: New files.
9368 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9369 (macroscope_h): New variable.
9370 (HFILES_NO_SRCDIR): Add macroscope.h.
9371 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9372 (macroscope.o, macrocmd.o): New rules.
9374 Teach the Dwarf 2 reader to read macro information.
9375 * dwarf2read.c: #include "macrotab.h".
9376 (dwarf_macinfo_buffer): New variable.
9377 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9379 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9380 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9381 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9382 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9383 dwarf2_macro_spaces_in_definition): New complaints.
9384 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9385 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9386 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9387 the partial symbol table.
9388 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9389 from what's recorded in the partial symbol table.
9390 (read_file_scope): If the compilation unit has a
9391 `DW_AT_macro_info' attribute, read its macro information.
9392 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9394 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9397 * ser-tcp.c: Don't include <netinet/udp.h>.
9399 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9401 * MAINTAINERS: Update my email address.
9403 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9405 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9406 include file of the same name.
9408 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9410 * configure.tgt: Mark v850 as multi-arched.
9411 * config/v850/tm-v850.h: Remove file.
9412 * config/v850/v850.mt: Eliminate TM_FILE.
9414 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9416 * v850-tdep.c: Full multi-arch.
9417 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9418 Define GDB_MULTI_ARCH to 2.
9420 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9422 * p-exp.y (current_type): New static variable.
9423 Carries the type of the expression at the position that is parsed.
9424 (push_current_type, pop_current_type): Two new functions. Used
9425 to store/restore current_type in expression on specific tokens.
9426 (search_field): New static variable. Set to one after parsing a point
9427 as at that point only a FIELDNAME token should be searched.
9428 (FIELDNAME): New token. After a point only a token belonging to
9429 current_type type definition is allowed.
9430 (all over token rules): reset and change current_type according
9432 (exp '[' rule): insert implicit array index field if
9433 exp is a pascal string type.
9435 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9437 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9438 frame info. Use frame_info's saved_regs instead of matching member
9439 in extra_frame_info throughout.
9440 (v850_frame_init_saved_regs): New function.
9441 (v850_init_extra_frame_info): Move most functionality into
9442 v850_frame_init_saved_regs().
9443 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9444 (v850_frame_find_saved_regs): Remove declaration.
9445 (FRAME_FIND_SAVED_REGS): Remove definition.
9446 (v850_frame_init_saved_regs): Add declaration.
9447 (FRAME_INIT_SAVED_REGS): Add definition.
9449 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9451 * v850-tdep.c: Begin multi-arch'ing v850.
9452 (v850_target_architecture_hook): Remove function.
9453 (v850_gdbarch_init): New function. Add code previously in
9454 v850_target_architecture_hook().
9455 (_initialize_v850_tdep): Don't set target_architecture_hook.
9456 Call register_gdbarch_init() instead.
9458 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9460 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9461 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9462 (fixup_class_method_type): Likewise.
9464 2002-05-15 Jim Blandy <jimb@redhat.com>
9466 Add macro structures to GDB's symbol tables. Nobody puts anything
9468 * symtab.h (struct symtab): New member: `macro_table'.
9469 * buildsym.h (pending_macros): New global variable.
9470 * buildsym.c: #include "macrotab.h".
9471 (buildsym_init): Initialize `pending_macros'.
9472 (end_symtab): If we found macro information while reading a CU's
9473 debugging info, do build a symtab structure for it. Make the
9474 symtab point to the macro information, and clear the
9475 `pending_macros' pointer which held it while we were reading the
9477 (really_free_pendings): Free any pending macro table.
9478 * objfiles.h (struct objfile): New member: `macro_cache'.
9479 * objfiles.c (allocate_objfile): Set allocate and free functions
9480 for the macro cache's objstack.
9481 (free_objfile): Empty the macro cache's obstack.
9482 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9483 set new allocate and free functions for it.
9484 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9485 free functions for the macro cache's objstack. (Why is this
9486 function building its own objfile?)
9487 * symmisc.c (print_objfile_statistics): Print statistics on the
9489 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9491 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9493 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9494 (REGISTER_U_ADDR): Delete definition.
9495 (arm_register_u_addr): Delete declaration.
9497 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9499 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9500 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9502 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9504 * regcache.c (register_valid): Revise comments refering to "Not
9505 available" and "unavailable".
9506 * frame.c (frame_register_read): Ditto.
9507 * findvar.c (value_of_register): Ditto.
9509 2002-05-15 Andrew Cagney <cagney@redhat.com>
9511 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9512 (remote-sim.o): Update dependencies.
9513 (d10v-tdep.o): Specify dependencies.
9514 (sim_d10v_h): Define.
9516 2002-05-14 Jim Blandy <jimb@redhat.com>
9518 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9519 * macrotab.c (macro_lookup_inclusion, find_definition,
9520 new_macro_table): Same.
9522 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9523 not `! strcmp ()'. This is a dubious improvement.
9524 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9526 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9527 although it's not necessary, to avoid a warning.
9529 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9531 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9532 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9533 TYPE_INSTANCE_FLAGS.
9534 (struct main_type): New.
9535 (struct type): Move most members to struct main_type. Change
9536 cv_type and as_type to new type_chain member. Add instance_flags.
9537 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9538 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9539 (finish_cv_type): Remove prototype.
9540 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9542 (alloc_type_instance): New function.
9543 (smash_type): New function.
9544 (make_pointer_type, make_reference_type, make_function_type)
9545 (smash_to_member_type, smash_to_method_type): Call smash_type.
9546 (make_qualified_type): New function.
9547 (make_type_with_address_space): Call make_qualified_type.
9548 (make_cv_type): Likewise.
9549 (finish_cv_type): Remove unnecessary function.
9550 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9551 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9552 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9553 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9554 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9555 * hpread.c (hpread_read_struct_type): Likewise.
9556 * stabsread.c (read_struct_type): Likewise.
9558 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9560 * configure.tgt: Add a catch all sh* target, for cases like
9561 sh[2,3,4]-elf and sh-hms.
9563 2002-05-14 Keith Seitz <keiths@redhat.com>
9565 * event-loop.c (create_file_handler): Don't do anything but
9566 update data when we are given a fd which we are already
9569 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9571 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9572 (update_context): Use __func__ in warnings.
9574 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9576 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9577 and tcp_close to net_open and net_close.
9578 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9579 using UDP if requested. Don't try to disable Nagle on UDP
9581 * remote.c (remote_serial_open): New function. Warn about UDP.
9582 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9584 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9586 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9588 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9590 * configure.tgt: Remove sh-hms target.
9591 * MAINTAINERS: Don't list sh-hms as a separate target.
9593 2002-05-13 Jim Blandy <jimb@redhat.com>
9595 Add first preprocessor macro-expansion files.
9596 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9597 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9598 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9599 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9600 (COMMON_OBS): Add macrotab.o, macroexp.o.
9601 (macroexp.o, macrotab.o): New rules.
9603 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9605 * config/m88k/tm-m88k.h: Update copyright.
9606 (m88k_target_write_pc): Declare
9607 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9608 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9609 (SHIFT_INST_REGS): Update definition.
9610 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9611 using old definition of TARGET_WRITE_PC.
9612 * regcache.c (generic_target_write_pc): Delete code handling
9614 * gdbarch.sh (NNPC_REGNUM): Delete.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9617 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9619 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9622 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9624 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9625 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9626 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9628 * c-typeprint.c (cp_type_print_method_args): Likewise.
9629 (c_type_print_args): Likewise.
9630 * d10v-tdep.c (d10v_push_arguments): Likewise.
9631 (d10v_extract_return_value): Likewise.
9632 * expprint.c (print_subexp): Likewise.
9633 * gdbtypes.c (lookup_primitive_typename): Likewise.
9634 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9635 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9636 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9637 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9638 (TYPE_VECTOR): Likewise.
9639 * hpread.c (hpread_read_struct_type)
9640 (fix_static_member_physnames, fixup_class_method_type)
9641 (hpread_type_lookup): Likewise.
9642 * mdebugread.c (parse_symbol, parse_type): Likewise.
9643 * p-lang.c (is_pascal_string_type): Likewise.
9644 * valops.c (hand_function_call): Likewise.
9645 * x86-64-tdep.c (classify_argument): Likewise.
9647 * hpread.c (hpread_read_function_type)
9648 (hpread_read_doc_function_type): Call replace_type.
9649 * dstread.c (create_new_type): Delete.
9650 (decode_dst_structure, process_dst_function): Call alloc_type.
9651 Use type access macros.
9653 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9655 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9656 the're not supported by the current architecture.
9657 (i387_fill_fxsave): Likewise.
9659 2002-05-12 Fred Fish <fnf@redhat.com>
9661 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9662 sect_index_xxx members to index the first slot in section_offsets
9663 if all of the section_offsets are zero.
9665 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9667 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9668 checked in with last change.
9670 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9672 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9673 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9676 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9678 * Makefile.in: Update dependencies.
9680 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9682 * language.c (local_hex_string_custom): Simplify. Do not depend
9683 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9685 * memattr.c (mem_info_command): Replace calls to
9686 longest_local_hex_string and longest_local_hex_string_custom.
9687 * buildsym.c (make_blockvector): Ditto.
9688 * solib.c (info_sharedlibrary_command): Ditto.
9689 * tracepoint.c (tracepoints_info): Ditto.
9690 * symtab.c (print_msymbol_info): Ditto.
9692 * language.c (local_hex_string): Delete.
9693 (local_hex_string_custom): Delete.
9694 (longest_local_hex_string): Rename to local_hex_string.
9695 (longest_local_hex_string_custom): Rename to
9696 local_hex_string_custom.
9697 * language.h (local_hex_string): Change parameter type to LONGEST.
9698 (local_hex_string_custom): Ditto.
9699 (longest_local_hex_string): Delete declaration.
9700 (longest_local_hex_string_custom): Ditto.
9702 * solib.c: Update copyright.
9703 * memattr.c: Update copyright.
9705 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9707 * arch-utils.h (legacy_register_to_value): Declare.
9708 (legacy_value_to_register): Declare.
9709 (legacy_convert_register_p): Declare.
9710 * arch-utils.c (legacy_register_to_value): New function.
9711 (legacy_value_to_register): New function.
9712 (legacy_convert_register_p): New function.
9714 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9715 (VALUE_TO_REGISTER): Define.
9716 (CONVERT_REGISTER_P): Define.
9717 * gdbarch.h, gdbarch.c: Regenerate.
9719 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9721 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9724 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9725 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9727 * Makefile.in: Update dependencies for valops.c.
9728 * valops.c: Include "gdb_assert.h".
9729 (typecmp): Skip THIS parameter to methods.
9730 (find_method_list): Remove static_memfuncp argument,
9731 update callers. Check for stub methods.
9732 (find_value_oload_method_list): Don't set *static_memfuncp.
9733 (find_overload_match): Don't check for stub methods. Assert
9734 that methods are not stubbed. Handle static methods.
9735 (value_find_oload_method_list): Remove static_memfuncp argument.
9736 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9737 to the argument list for static stub methods.
9738 * value.h (value_find_oload_method_list): Update prototype.
9740 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9742 * arch-utils.h (generic_register_size): Declare.
9743 (generic_register_raw_size, generic_register_virtual_size): Delete
9745 * arch-utils.c (generic_register_raw_size): Delete.
9746 (generic_register_size): New function.
9747 (generic_register_virtual_size): Delete.
9749 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9750 default generic_register_size.
9751 * gdbarch.h, gdbarch.c: Re-generate.
9753 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9754 register_virtual_size.
9755 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9756 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9758 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9760 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9761 * gdbarch.h, gdbarch.c: Regenerate.
9762 * gnu-v3-abi.c: Update copyright.
9763 (vtable_address_point_offset): Update.
9764 (gnuv3_rtti_type): Update.
9765 (gnuv3_baseclass_offset): Update.
9766 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9767 (init_fetch_link_map_offsets): Update.
9768 * remote.c (get_remote_state): Update.
9770 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9772 * TODO: Remove value_headof/value_from_vtable_info comment.
9773 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9774 * values.c (value_headof, value_from_vtable_info): Delete.
9775 * value.h (value_from_vtable_info): Delete prototype.
9777 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9779 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9780 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9782 (gdb_assert_h): Define.
9783 (gdb_wait_h): Define.
9784 (gdb_regex_h): Define.
9786 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9788 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9789 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9791 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9793 * nbsd-tdep.c: Fix comment.
9795 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9797 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9798 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9799 (nbsd-tdep.o): New dependency list.
9800 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9802 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9803 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9804 * nbsd-tdep.c: New file.
9805 * nbsd-tdep.h: New file.
9806 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9808 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9809 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9810 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9811 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9813 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9815 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9816 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9817 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9818 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9819 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9820 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9822 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9824 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9825 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9826 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9827 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9828 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9829 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9830 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9832 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9834 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9835 fetch_elfcore_registers to...
9836 * i386nbsd-tdep.c: ...here.
9837 (i386nbsd_use_struct_convention): Rename to...
9838 (i386nbsd_aout_use_struct_convention): ...this.
9839 (i386nbsd_supply_reg): New function.
9840 (i386nbsd_fill_reg): New function.
9841 (fetch_core_registers): Use i386nbsd_supply_reg.
9842 (fetch_elfcore_registers): Likewise.
9843 (_initialize_i386nbsd_tdep): New function.
9844 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9845 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9846 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9847 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9848 (i386nbsd_aout_use_struct_convention): ...this.
9850 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9852 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9853 (store_inferior_registers): Use shnbsd_fill_reg.
9854 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9855 sh_nbsd_supply_register): Collapse into...
9856 (shnbsd_supply_reg): ...this.
9857 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9858 (shnbsd_fill_reg): ...this.
9859 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9860 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9861 (fetch_core_registers): Use shnbsd_supply_reg.
9862 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9863 (sh_nbsd_core_fns): Rename to...
9864 (shnbsd_core_fns): ...this.
9865 (sh_nbsd_elfcore_fns): Rename to...
9866 (shnbsd_elfcore_fns): ...this.
9867 (sh_nbsd_init_abi): Rename to...
9868 (shnbsd_init_abi): ...this.
9869 (_initialize_sh_nbsd_tdep): Rename to...
9870 (_initialize_shnbsd_tdep): ...this.
9871 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9872 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9873 sh_nbsd_fill_register): Remove prototypes.
9874 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9876 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9878 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9879 (i387-nat.o): Delete dependency list.
9880 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9881 (x86-64-linux-nat.o): Likewise.
9882 * i387-nat.c: Delete file, moving contents to...
9883 * i387-tdep.c: ...here.
9884 * i387-nat.h: Rename...
9885 * i387-tdep.h: ...to this.
9886 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9887 * i386-linux-nat.c: Likewise.
9888 * i386bsd-nat.c: Likewise.
9889 * i386gnu-nat.c: Likewise.
9890 * i386nbsd-nat.c: Likewise.
9891 * i386v4-nat.c: Likewise.
9892 * x86-64-linux-nat.c: Likewise.
9893 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9894 * config/i386/go32.mh (NATDEPFILES): Likewise.
9895 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9896 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9897 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9898 * config/i386/linux.mh (NATDEPFILES): Likewise.
9899 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9900 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9901 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9902 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9904 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9906 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9907 (alphanbsd-nat.o): Remove dependency list.
9908 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9909 * alphanbsd-nat.c: Delete. Contents moved to...
9910 * alphanbsd-tdep.c: ...here.
9911 (_initialize_alphanbsd_tdep): Register core functions.
9912 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9914 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9916 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9917 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9918 (alphanbsd-nat.o): Likewise.
9919 (alphabsd-tdep.o): New dependency list.
9920 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9921 (fill_gregset): Use alphabsd_fill_reg.
9922 (supply_fpregset): Use alphabsd_supply_fpreg.
9923 (fill_fpregset): Use alphabsd_fill_fpreg.
9924 (fetch_inferior_registers): Use struct reg and struct fpreg
9925 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9926 and alphabsd_supply_fpreg.
9927 (store_inferior_registers): Use struct reg and struct fpreg
9928 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9929 and alphabsd_fill_fpreg.
9930 * alphabsd-tdep.c: New file.
9931 * alphabsd-tdep.h: New file.
9932 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9933 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9934 alphabsd_supply_fpreg.
9935 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9936 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9938 2002-05-11 Eric Christopher <echristo@redhat.com>
9940 * mips-tdep.c (mips_double_register_type): Fix thinko.
9941 (mips_single_register_type): Ditto.
9942 * MAINTAINERS: Add self.
9944 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9946 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9947 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9948 right thing on architectures with different endianness and/or
9951 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9953 From Christian Limpach <chris@Pin.LU>
9954 * configure.in: Change sed expression which comments out
9955 NATDEPFILES to also comment out continuation lines.
9956 * configure: Regenerate.
9958 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9960 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9963 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9965 * sh-tdep.c: Include correct file.
9967 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9969 New support for sh64-elf (sh5) target.
9971 * configure.tgt: For sh64-elf target, default to sh-elf.
9973 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9974 (struct gdbarch_tdep): Add new fields for new registers and ABI
9977 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9978 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9979 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9980 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9981 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9982 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9983 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9984 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9985 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9986 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9987 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9988 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9989 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9990 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9991 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9992 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9993 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9994 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9995 sign_extend, sh64_nofp_frame_init_saved_regs,
9996 sh64_init_extra_frame_info, sh64_get_saved_register,
9997 sh64_extract_struct_value_address, sh64_pop_frame,
9998 sh64_push_arguments, sh64_extract_return_value,
9999 sh64_store_return_value, sh64_show_media_regs,
10000 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10001 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10002 sh_sh64_register_virtual_type,
10003 sh_sh64_register_convert_to_virtual,
10004 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10005 sh64_register_read, sh64_pseudo_register_write,
10006 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10007 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10008 sh64_do_pseudo_register, sh_compact_do_registers_info,
10009 sh64_do_registers_info, sh_gdbarch_init): New functions.
10011 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10013 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10015 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10017 * linespec.c (decode_line_1): Check for a double quote after
10018 a filename correctly.
10020 2002-05-10 Jim Blandy <jimb@redhat.com>
10022 Properly track the size of the current objfile's .debug_line section.
10023 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10024 (DWARF_LINE_SIZE): New macro.
10025 (dwarf2_build_psymtabs_hard): Record the line section's size in
10026 the partial symbol table.
10027 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10030 2002-05-10 Petr Sorfa <petrs@caldera.com>
10032 * ia64-tdep.c: Handle breakpoints on L instruction type
10033 in MLX instruction bundle by moving the breakpoint to
10034 the third slot (X instruction type) as L holds only data.
10036 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10038 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10039 (process_one_symbol): Complain about discarding local symbols
10040 due to a misplaced N_LBRAC entry.
10042 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10044 From Daniel Berlin <dan@cgsoftware.com>
10045 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10046 decrease the depth we are at, in the case of templates.
10048 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10050 * mips-tdep.c (mips_float_register_type): New function.
10051 (mips_double_register_type): New function.
10052 (mips_print_register): Use them.
10053 (do_fp_register_row): Likewise.
10055 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10057 * signals/signals.c (signals): Remove conditional compilation around
10058 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10059 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10061 2002-05-09 Michael Snyder <msnyder@redhat.com>
10063 * remote-rdp.c (remote_rdp_can_run): Remove.
10065 2002-05-09 Tom Tromey <tromey@redhat.com>
10067 * jv-valprint.c (java_val_print): Handle `char' as a special case
10070 2002-05-09 Michael Snyder <msnyder@redhat.com>
10072 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10073 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10074 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10075 str r(0123),[sp,#nn].
10076 (arm_skip_prologue): Ditto. Also make disassembly
10077 order-independent by placing it in a loop.
10079 2002-05-06 Michael Snyder <msnyder@redhat.com>
10081 * stabsread.c (read_type): Add recognition for new attribute:
10082 "@V;" means that an array type is actually a vector.
10083 This is analogous to the vector flag that's been added to dwarf2.
10085 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10087 * i386-tdep.h (i386_abi): New enum.
10088 (struct gdbarch_tdep): Replace os_ident member with abi.
10089 (i386_gdbarch_register_os_abi): New prototype.
10090 * i386-tdep.c (i386_abi_names): New array.
10091 (process_note_abi_tag_sections): Removed.
10092 (process_note_sections): New function.
10093 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10094 (struct i386_abi_handler): New struct.
10095 (i386_abi_handler_list): New variable.
10096 (i386_gdbarch_register_os_abi): New function.
10097 (i386_gdbarch_init): Adapt for the changes given above.
10099 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10101 * gregset.h: Say "GNU/Linux".
10103 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10105 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10106 (build_gdbtypes): Build builtin_type_v2_float.
10107 (_initialize_gdbtypes): Register new builtin type.
10109 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10111 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10112 (clear_gdbarch_swap): New function.
10113 (initialize_non_multiarch): Call.
10114 (gdbarch_update_p): Before calling init(), swap out and clear the
10115 existing architecture.
10116 * gdbarch.c: Regenerate.
10118 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10120 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10123 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10125 * sh-nbsd-nat.c: Rename to...
10126 * shnbsd-nat.c: ...this.
10127 * sh-nbsd-tdep.c: Rename to...
10128 * shnbsd-tdep.c: ...this.
10129 * sh-nbsd-tdep.h: Rename to...
10130 * shnbsd-tdep.h: ...this.
10131 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10132 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10134 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10136 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10137 concatenation for command help messages.
10139 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10141 * NEWS: Note new sh*-*-netbsdelf* configuration.
10142 * configure.host: Set gdb_host_cpu to sh for all sh*.
10143 (sh*-*-netbsdelf*): New host.
10144 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10145 (sh*-*-netbsdelf*): New target.
10146 * sh-nbsd-nat.c: New file.
10147 * sh-nbsd-tdep.c: New file.
10148 * sh-nbsd-tdep.h: New file.
10149 * config/sh/nbsd.mh: New file.
10150 * config/sh/nbsd.mt: New file.
10151 * config/sh/nm-nbsd.h: New file.
10152 * config/sh/tm-nbsd.h: New file.
10154 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10156 * sh-tdep.c (sh_osabi_names): Declare.
10157 (process_note_abi_tag_sections): New function.
10158 (get_elfosabi): Ditto.
10159 (sh_gdbarch_register_os_abi): Ditto.
10160 (sh_dump_tdep): Ditto.
10161 _initialize_sh_tdep): Use gdbarch_register to register
10162 sh_gdbarch_init and sh_dump_tdep.
10163 * config/sh/tm-sh.h (sh_osabi): Declare.
10164 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10166 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10168 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10169 (thumb_scan_prologue): Ditto.
10170 (arm_find_callers_reg): Ditto.
10171 (arm_frame_chain): Ditto.
10172 (arm_init_extra_frame_info): Ditto.
10173 (arm_frame_saved_pc): Ditto.
10174 (arm_pop_frame): Ditto.
10175 (arm_push_return_address): New function.
10176 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10177 call_dummy_location, call_dummy_breakpoint_offset_p,
10178 call_dummy_breakpoint_offset, call_dummy_p,
10179 call_dummy_stack_adjust_p, call_dummy_words,
10180 sizeof_call_dummy_words, call_dummy_start_offset,
10181 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10182 call_dummy_address, push_return_address and push_dummy_frame for
10183 generic dummy frames.
10185 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10187 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10188 size computation for alloca.
10189 (sh_fp_frame_init_saved_regs): Likewise.
10191 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10193 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10194 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10195 * arm-tdep.c (arm_store_return_value): Use them.
10196 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10197 * remote-rdp.c (remote_rdp_fetch_register): Use
10198 ARM_MAX_REGISTER_RAW_SIZE.
10199 (remote_rdp_store_register): Likewise.
10201 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10203 * dwarf2cfi.c: Code cleanup, removed unused variables,
10204 added default labels to switch {} statements.
10205 * x86-64-tdep.c: Ditto.
10206 * x86-64-linux-nat.c: Ditto.
10208 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10210 * solib.h: Protect against multiple inclusion.
10212 2002-05-06 Jim Blandy <jimb@redhat.com>
10214 Add first preprocessor macro-expansion files.
10215 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10216 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10217 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10218 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10219 (COMMON_OBS): Add macrotab.o, macroexp.o.
10220 (macroexp.o, macrotab.o): New rules.
10222 Separate the job of reading the line number info statement program
10223 header (...expialidocious) out into its own function.
10224 * dwarf2read.c (struct line_head, struct filenames, struct
10225 directories): Replace with...
10226 (struct line_header): New structure, containing the full
10227 contents of the statement program header, including the
10228 include directory and file name tables.
10229 (read_file_scope): If we have line number info, instead of just
10230 calling dwarf_decode_lines to do all the work, call
10231 dwarf_decode_line_header first to get a `struct line_header'
10232 containing the data in the statement program header, and then
10233 pass that to dwarf_decode_lines, which will pick up where that
10234 left off. Be sure to clean up the `struct line_header' object.
10235 (dwarf_decode_line_header, free_line_header, add_include_dir,
10236 add_file_name): New functions.
10237 (dwarf_decode_lines): Move all the code to read the statement
10238 program header into dwarf_decode_line_header. Take the line
10239 header it built as the first argument, instead of the offset to
10240 the compilation unit's line number info. Use the new `struct
10241 line_header' type instead of the old structures. No need to do
10242 cleanups here now, since we don't allocate anything.
10243 (dwarf2_statement_list_fits_in_line_number_section,
10244 dwarf2_line_header_too_long): New complaints.
10246 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10248 * gdbtypes.c (init_vector_type): New function.
10249 (build_builtin_type_vec128): Simplify the representation of SIMD
10251 (build_gdbtypes): Initialize new builtin vector types.
10252 (_initialize_gdbtypes): Register new vector types with gdbarch.
10253 (builtin_type_v4_float, builtin_type_v4_int32,
10254 builtin_type_v8_int16, builtin_type_v16_int8,
10255 builtin_type_v2_int32, builtin_type_v4_int16,
10256 builtin_type_v8_int8): New (renamed) SIMD types.
10258 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10260 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10261 (i387_fill_fxsave): Likewise.
10263 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10265 * alpha-tdep.c (alpha_extract_return_value): Don't use
10266 non-constant array size in prototype.
10268 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10270 From Brian Taylor <briant at model dot com>:
10271 * ui-out.c (ui_out_field_core_addr): Use the function
10272 longest_local_hex_string_custom'to format addresses > 32 bits
10275 * ui-out.c (ui_out_field_core_addr): Update comment.
10277 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10279 * stack.c (select_and_print_frame): Make static. Delete the
10281 (func_command): Update call.
10282 (select_frame_command): Delete code computing the frame level.
10283 * frame.h (select_and_print_frame): Delete declaration.
10285 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10287 * sparc-tdep.c (sparc_get_saved_register): Comment why
10288 get_prev_frame call is safe.
10290 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10292 * frame.h (select_frame): Delete level parameter.
10293 * stack.c (select_frame): Update. Use frame_relative_level to
10294 obtain the frame's level.
10295 (select_and_print_frame): Update call.
10296 (select_frame_command): Ditto.
10297 (up_silently_base): Ditto.
10298 (down_silently_base): Ditto.
10299 * ocd.c (ocd_start_remote): Ditto.
10300 * remote-rdp.c (remote_rdp_open): Ditto.
10301 * remote-mips.c (mips_initialize): Ditto.
10302 (common_open): Ditto.
10303 * remote-e7000.c (e7000_start_remote): Ditto.
10304 * m3-nat.c (select_thread): Ditto.
10305 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10306 (child_get_current_exception_event): Ditto.
10307 * varobj.c (varobj_create): Ditto.
10308 (varobj_update): Ditto.
10309 (c_value_of_root): Ditto.
10310 * tracepoint.c (finish_tfind_command): Ditto.
10311 * corelow.c (core_open): Ditto.
10312 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10313 * thread.c (info_threads_command): Ditto.
10314 (switch_to_thread): Ditto.
10315 * infrun.c (normal_stop): Ditto.
10316 (restore_selected_frame): Ditto.
10317 (restore_inferior_status): Ditto.
10318 * breakpoint.c (insert_breakpoints): Ditto.
10319 (watchpoint_check): Ditto.
10320 (bpstat_stop_status): Ditto.
10321 (do_enable_breakpoint): Ditto.
10322 * blockframe.c (flush_cached_frames): Ditto.
10323 (reinit_frame_cache): Ditto.
10325 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10327 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10330 2002-05-04 Jim Blandy <jimb@redhat.com>
10332 * gdbtypes.c (replace_type): Doc fix.
10334 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10336 * valprint.c (strcat_longest): Delete commented out function.
10339 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10341 * MAINTAINERS: Mark a29k as deleted.
10342 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10343 Move new configurations to the top.
10344 * configure.tgt: Remove a29k.
10345 * config/a29k/tm-vx29k.h: Delete.
10346 * config/a29k/vx29k.mt: Delete.
10347 * config/a29k/tm-a29k.h: Delete.
10348 * config/a29k/a29k-udi.mt: Delete.
10349 * config/a29k/a29k.mt: Delete.
10350 * a29k-tdep.c: Delete.
10351 * remote-udi.c: Delete.
10352 * remote-mm.c: Delete.
10353 * remote-eb.c: Delete.
10354 * remote-adapt.c: Delete.
10355 * Makefile.in: Remove obsolete code.
10356 * config/s390/s390x.mt: Ditto.
10357 * config/s390/s390.mt: Ditto.
10358 * config/sparc/sparclynx.mh: Ditto.
10359 * config/sparc/linux.mh: Ditto.
10360 * config/pa/hppaosf.mh: Ditto.
10361 * config/pa/hppabsd.mh: Ditto.
10362 * config/ns32k/nbsd.mt: Ditto.
10363 * config/mips/vr5000.mt: Ditto.
10364 * config/m68k/sun3os4.mh: Ditto.
10365 * config/m68k/nbsd.mt: Ditto.
10366 * config/m68k/m68klynx.mh: Ditto.
10367 * config/m32r/m32r.mt: Ditto.
10368 * config/i386/x86-64linux.mt: Ditto.
10369 * config/i386/nbsdelf.mt: Ditto.
10370 * config/i386/nbsd.mt: Ditto.
10371 * config/i386/i386lynx.mh: Ditto.
10373 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10375 * target.c (debug_print_register): New function. Handle oversize
10377 (debug_to_fetch_registers): Call.
10378 (debug_to_store_registers): Call.
10380 2002-05-03 Jim Blandy <jimb@redhat.com>
10382 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10383 (read_type): Doc fix.
10384 * gdbtypes.c (replace_type): Doc fix.
10386 * stabsread.c (multiply_defined_struct): New complaint.
10387 (read_struct_type): If the type we were passed isn't empty, or
10388 incomplete, don't read the new struct type into it; complain,
10389 and return the original type unchanged. Take a new `type_code'
10390 argument, which is the type code for the new type.
10391 (read_type): Rather than storing the type's type code here, pass
10392 it as an argument to read_struct_type, and let that take care of
10393 storing it. That way, we don't overwrite the original type code,
10394 so read_struct_type can use it to decide whether we're overwriting
10395 something we shouldn't.
10396 (complain_about_struct_wipeout): New function.
10398 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10400 * gdbarch.sh: Assert that gdbarch is non-NULL.
10401 * gdbarch.c: Regenerate.
10403 2002-05-03 Jason Merrill <jason@redhat.com>
10405 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10408 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10410 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10411 (x86_64_dwarf2gdb_regno_map_length),
10412 (x86_64_dwarf2_reg_to_regnum): Added.
10413 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10414 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10415 (_initialize_x86_64_tdep): Synced with the change above.
10416 (x86_64_skip_prologue): Reformulated message.
10418 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10420 * f-exp.y: Also use new prev_lexptr variable
10421 to improve error reporting. Based on Michael Snyder
10422 2002-04-24 dated patch to c-exp.y.
10423 * jv-exp.y: Likewise.
10424 * m2-exp.y: Likewise.
10426 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10428 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10429 we are dealing with vectors.
10431 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10433 * config/m68k/tm-nbsd.h: Obvious fix,
10434 correct machine name.
10436 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10438 * p-typeprint.c (pascal_type_print_base): Add support
10439 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10441 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10443 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10444 for fondamental pascal 'char' type.
10446 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10448 * p-lang.h (is_pascal_string_type): Declaration changed,
10449 new sixth argument of type char ** added.
10450 * p-lang.c (is_pascal_string_type): Implementation
10451 changed. Args length_pos, length_size, string_pos, char_size
10452 can now be NULL. New argument arrayname set to the field
10453 name of the char array. Return value set to char array
10454 field index plus one.
10455 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10456 is_pascal_string_type function.
10458 2002-05-02 Andrew Cagney <cagney@redhat.com>
10460 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10461 <cagney@redhat.com> change.
10462 * gdbarch.c: Regenerate.
10464 2002-05-02 Andrew Cagney <cagney@redhat.com>
10466 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10467 before probing for a new one. Detect errorenous gdbarch_init
10469 * gdbarch.c: Regenerate.
10471 2002-05-01 Andrew Cagney <cagney@redhat.com>
10473 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10474 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10475 * config/v850/tm-v850.h: Ditto. Update copyright.
10477 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10479 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10482 2002-04-30 Michael Snyder <msnyder@redhat.com>
10484 * arm-tdep.c: Whitespace clean-ups.
10485 (arm_skip_prologue): Fix thinko; two lines
10486 should have been removed as part of 4/24 change.
10488 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10490 * rs6000-tdep.c: Added comment describing how fpscr register
10491 numbers were chosen.
10493 2002-04-30 Michael Snyder <msnyder@redhat.com>
10495 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10497 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10499 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10500 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10501 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10503 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10505 From Louis Hamilton <hamilton@redhat.com>:
10506 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10507 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10508 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10509 not bfd-private xcoff data, to determine wordsize.
10510 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10512 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10514 GDB 5.2 released from 5.2 branch.
10516 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10518 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10519 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10520 (x86_64_register_info_table): Added comments with register numbers.
10522 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10524 * rs6000-tdep.c (rs6000_extract_return_value,
10525 rs6000_store_return_value): Handle returning vectors.
10526 (rs6000_gdbarch_init): Use
10527 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10528 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10530 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10532 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10533 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10535 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10537 * hpread.c (hpread_psymtab_to_symtab_1,
10538 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10539 with fprintf_unfiltered (gdb_stderr,...).
10541 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10543 * remote-array.c (printf_monitor, write_monitor,
10544 array_insert_breakpoint, array_remove_breakpoint ):
10545 Replace fprintf (stderr,...
10546 with fprintf_unfiltered (gdb_stderr,....
10547 * remote-es.c: Likewise.
10548 * remote-os9k.c: Likewise.
10549 * remote-st.c: Likewise.
10551 2002-04-28 Andreas Schwab <schwab@suse.de>
10553 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10554 linux-proc.o and gcore.o.
10556 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10558 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10559 code without frame pointers.
10561 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10563 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10564 ON_STACK is needed.
10566 2002-04-26 Ben Elliston <bje@redhat.com>
10568 * target.c (do_xfer_memory): Correct reference to the new option
10569 "trust-readonly-sections".
10571 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10573 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10574 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10575 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10577 (read_array_type): Record the fact that this array type is really a
10578 vector (i.e. are passed in by value).
10580 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10582 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10583 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10584 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10585 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10586 * alpha-linux-tdep.c: Include frame.h.
10587 (alpha_linux_sigcontext_addr): New function.
10588 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10589 alpha_linux_sigcontext_addr.
10590 * alpha-osf1-tdep.c: Include gdbcore.h.
10591 (alpha_osf1_sigcontext_addr): New function.
10592 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10593 alpha_osf1_sigcontext_addr.
10594 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10595 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10597 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10599 * stack.c (selected_frame_level):
10600 (select_frame): Do not set selected_frame_level.
10601 * frame.h (selected_frame_level): Delete declaration.
10603 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10605 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10606 convert_from_func_ptr-addr when AIX / PowerOpen.
10608 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10610 * valops.c (hand_function_call): Call
10611 generic_save_call_dummy_addr.
10612 * frame.h (generic_save_call_dummy_addr): Declare.
10613 * blockframe.c (struct dummy_frame): Add fields call_lo and
10615 (generic_find_dummy_frame): Check for PC in range call_lo to
10616 call_hi instead of entry_point_address.
10617 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10618 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10619 (generic_save_call_dummy_addr): New function.
10621 2002-04-24 David S. Miller <davem@redhat.com>
10623 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10624 sparc_skip_prologue.
10625 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10626 information to find prologue when possible.
10627 (sparc_prologue_frameless_p): Call examine_prologue directly.
10628 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10629 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10631 (SKIP_PROLOGUE): Likewise.
10633 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10635 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10636 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10637 indicate that the condition it was testing is always true.
10638 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10639 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10640 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10642 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10644 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10645 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10646 tdep->jb_pc and tdep->jb_elt_size.
10647 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10648 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10649 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10650 * alpha-nat.c (get_longjmp_target): Remove.
10651 (JB_ELEMENT_SIZE): Ditto.
10653 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10654 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10655 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10656 to alpha_get_longjmp_target.
10657 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10658 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10659 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10661 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10663 * README: Update to GDB 5.2.
10665 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10667 * gdbarch.sh (LC_ALL): Set to `c'.
10669 2002-04-25 Theodore A. Roth <troth@verinet.com>
10671 * avr-tdep.c: Ran through gdb_indent.sh.
10673 2002-04-25 Theodore A. Roth <troth@verinet.com>
10675 * MAINTAINERS: Add myself as AVR maintainer.
10676 * NEWS: Note new target avr.
10678 2002-04-25 Theodore A. Roth <troth@verinet.com>
10680 * Makefile.in: Add support for AVR target.
10681 * configure.tgt: Add support for AVR target.
10682 * avr-tdep.c: New file
10683 * config/avr/avr.mt: New file.
10685 2002-04-25 Theodore A. Roth <troth@verinet.com>
10687 * MAINTAINERS: Add myself to write-after-approval.
10689 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10691 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10692 with fprintf_unfiltered (gdb_stderr,....
10694 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10697 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10699 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10701 * p-exp.y: Also use new prev_lexptr variable
10702 to improve error reporting. Based on Michael Snyder
10703 2002-04-24 dated patch to c-exp.y.
10705 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10707 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10708 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10709 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10711 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10713 (FUNCTION_START_OFFSET): Remove.
10714 (BREAKPOINT): Ditto.
10716 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10718 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10721 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10723 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10724 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10725 alpha_linux_pc_in_sigtramp.
10726 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10727 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10728 alpha_osf1_pc_in_sigtramp.
10729 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10730 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10731 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10732 alphafbsd_pc_in_sigtramp.
10733 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10734 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10735 alphanbsd_pc_in_sigtramp.
10736 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10737 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10741 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10743 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10745 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10747 (alphanbsd-nat.o): New dependency list.
10748 (alphanbsd-tdep.o): Ditto.
10749 * NEWS: Note new native NetBSD/alpha configuration.
10750 * alphanbsd-nat.c: New file.
10751 * alphanbsd-tdep.c: Ditto.
10752 * configure.host (alpha*-*-netbsd*): New host.
10753 * configure.tgt (alpha*-*-netbsd*): New target.
10754 * config/alpha/nbsd.mh: New file.
10755 * config/alpha/nbsd.mt: Ditto.
10756 * config/alpha/nm-nbsd.h: Ditto.
10757 * config/alpha/tm-nbsd.h: Ditto.
10759 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10761 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10762 (alpha-osf1-tdep.o): New dependency list.
10763 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10764 and skip_sigtramp_frame members.
10765 * alpha-linux-tdep.c: Include gdbcore.h.
10766 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10767 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10768 * alpha-osf1-tdep.c: New file.
10769 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10771 (alpha_frame_past_sigtramp_frame): New function.
10772 (alpha_dynamic_sigtramp_offset): Ditto.
10773 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10774 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10775 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10776 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10777 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10778 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10779 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10780 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10781 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10782 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10783 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10784 to find_solib_trampoline_target.
10785 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10786 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10787 (SKIP_TRAMPOLINE_CODE): Remove.
10788 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10789 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10790 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10791 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10792 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10793 (PROC_SIGTRAMP_MAGIC): Ditto.
10794 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10795 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10796 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10797 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10798 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10800 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10802 * NEWS: Note that Alpha targets are now multi-arch.
10804 2002-04-24 Michael Snyder <msnyder@redhat.com>
10806 * parser-defs.h (prev_lexptr): New external variable.
10807 * parse.c (parse_exp_1): Set prev_lexptr to null before
10808 calling the language-specific parser.
10809 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10810 (yyerror): Use prev_lexptr in error reporting.
10812 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10814 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10815 * gregset.h: If FILL_FPXREGSET is defined, provide
10816 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10817 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10818 is defined, call fill_fpxregset.
10820 2002-04-24 Roland McGrath <roland@frob.com>
10822 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10823 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10824 (supply_gregset, supply_fpregset): New functions.
10826 * gnu-nat.c (gnu_find_memory_regions): New function.
10827 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10828 (gnu_xfer_memory): Add a cast.
10830 2002-04-24 Michael Snyder <msnyder@redhat.com>
10832 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10833 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10834 of argument regs ("str r(0123), [r11, #-nn"]).
10835 (arm_skip_prologue): Better handling for frameless functions.
10836 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10837 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10839 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10841 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10842 NUM_PSEUDO_REGS can be used.
10844 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10846 * arch-utils.h: Update copyright.
10848 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10849 * gdbarch.h, gdbarch.c: Re-generate.
10851 * inferior.h (IN_SIGTRAMP): Delete definition.
10852 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10853 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10855 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10856 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10857 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10858 (find_proc_framesize): Ditto.
10859 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10860 (alpha_init_extra_frame_info): Ditto.
10861 * infrun.c (handle_inferior_event): Ditto.
10862 (handle_inferior_event): Ditto.
10863 (check_sigtramp2): Ditto.
10864 * blockframe.c (create_new_frame): Ditto.
10865 (get_prev_frame): Ditto.
10866 * ppc-linux-tdep.c: Update comments.
10867 * i386-linux-tdep.c: Update comments.
10868 * breakpoint.c (bpstat_what): Update comment.
10870 2002-04-24 David S. Miller <davem@redhat.com>
10872 * i960-tdep.c (register_in_window_p): New function.
10873 (i960_find_saved_register): Use it instead of
10874 REGISTER_IN_WINDOW_P.
10875 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10877 * symtab.h (find_stab_function_addr): Kill extern.
10878 * minsyms.c (find_stab_function_addr): Remove from here...
10879 * dbxread.c: ... to here, and mark it static.
10881 2002-04-20 David S. Miller <davem@redhat.com>
10883 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10884 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10886 2002-04-21 David S. Miller <davem@redhat.com>
10888 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10889 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10890 (vx_write_register): Likewise.
10892 2002-04-23 J. Brobecker <brobecker@gnat.com>
10894 * source.c (is_regular_file): New function.
10895 (openp): Check wether file to open is a regular file
10896 to avoid opening directories.
10898 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10900 * findvar.c (extract_signed_integer): Cast printf argument
10901 to suppress format warning.
10902 (extract_unsigned_integer): Likewise.
10903 * infcmd.c (registers_info): Likewise.
10904 * top.c (get_prompt_1): Likewise.
10905 * valops.c (value_assign): Likewise.
10906 * valprint.c (print_decimal): Likewise.
10908 2002-04-22 H.J. Lu (hjl@gnu.org)
10910 * c-exp.y (typebase): Support
10912 [long|long long|short] [signed|unsigned] [int|]
10916 signed [long|long long|short] int
10918 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10920 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10922 * vax-tdep.h: New file.
10923 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10924 Make several routines static.
10925 (vax_get_saved_register): New function.
10926 (vax_gdbarch_init): New function.
10927 (_initialize_vax_tdep): Register vax_gdbarch_init.
10928 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10929 Remove macros now under the control of gdbarch.
10931 2002-04-22 Michael Snyder <msnyder@redhat.com>
10933 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10934 Some whitespace and coding standards tweaks.
10936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10938 * vax-tdep.c: Include regcache.h.
10939 (vax_call_dummy_words): New.
10940 (sizeof_vax_call_dummy_words): New.
10941 (vax_fix_call_dummy): New function.
10942 (vax_saved_pc_after_call): Ditto.
10943 * config/vax/tm-vax.h: Don't include regcache.h.
10944 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10945 (CALL_DUMMY): Remove.
10946 (CALL_DUMMY_WORDS): Define.
10947 (SIZEOF_CALL_DUMMY_WORDS): Define.
10948 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10950 2002-04-18 Michael Snyder <msnyder@redhat.com>
10952 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10954 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10956 * vax-tdep.c (vax_frame_chain): New function.
10957 (vax_push_dummy_frame): Ditto.
10958 (vax_pop_frame): Ditto.
10959 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10960 (FRAMELESS_FUNCTION_INVOCATION): Use
10961 generic_frameless_function_invocation_not.
10962 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10963 (POP_FRAME): Use vax_pop_frame.
10965 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10967 * vax-tdep.c (vax_store_struct_return): New function.
10968 (vax_extract_return_value): Ditto.
10969 (vax_store_return_value): Ditto.
10970 (vax_extract_struct_value_address): Ditto.
10971 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10972 vax_store_struct_return.
10973 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10974 (STORE_RETURN_VALUE): Use vax_store_return_value.
10975 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10977 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10979 * vax-tdep.c (vax_frame_saved_pc): New function.
10980 (vax_frame_args_address_correct): Ditto.
10981 (vax_frame_args_address): Ditto.
10982 (vax_frame_locals_address): Ditto.
10983 (vax_frame_num_args): Move code to be in proximity to
10984 other frame-related functions.
10985 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10986 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10987 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10988 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10989 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10991 2002-04-22 H.J. Lu (hjl@gnu.org)
10993 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10996 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10998 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10999 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11000 (FRAME_INIT_SAVED_REGS): New macro.
11002 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11004 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11006 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11008 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11010 (fetch_osf_core_registers): Likewise.
11011 (supply_gregset): Likewise.
11013 2002-04-22 J. Brobecker <brobecker@gnat.com>
11015 * symfile.h (get_section_index): Define.
11016 * symfile.c (get_section_index): New function.
11017 * mdebugread.c (SC_IS_SBSS): New macro.
11018 (SC_IS_BSS): Return true for the scBss storage class only, as
11019 the scSBss storage class refers to the .sbss section.
11020 (parse_partial_symbols): Discard the symbols which associated
11021 section does not exist.
11022 Make sure to use the .sbss section index for symbols which
11023 storage class is scBss, rather than using the .bss section index.
11025 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11027 * vax-tdep.c: Update copyright years.
11028 (vax_register_name): New function.
11029 (vax_register_byte): Ditto.
11030 (vax_register_raw_size): Ditto.
11031 (vax_register_virtual_size): Ditto.
11032 (vax_register_virtual_type): Ditto.
11033 * config/vax/tm-vax.h: Update copyright years.
11034 (REGISTER_NAMES): Remove.
11035 (REGISTER_NAME): Define.
11036 (REGISTER_BYTE): Use vax_register_byte.
11037 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11038 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11039 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11041 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11043 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11045 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11047 2002-04-21 David S. Miller <davem@redhat.com>
11049 * arch-utils.c (generic_prologue_frameless_p): Kill
11050 SKIP_PROLOGUE_FRAMELESS_P code.
11051 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11053 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11054 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11055 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11057 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11058 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11059 (sparc_gdbarch_init): Pass it to
11060 set_gdbarch_prologue_frameless_p.
11062 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11064 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11065 (alphabsd-nat.o): New dependency list.
11067 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11069 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11071 (alpha-linux-tdep.o): New dependency list.
11072 (alphafbsd-tdep.o): Likewise.
11074 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11076 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11078 * alpha-tdep.c: ...from here.
11079 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11081 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11083 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11084 prototype from here...
11085 * alpha-tdep.h: ...to here.
11087 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11089 * frame.h (selected_frame_level): Document as deprecated.
11090 (frame_relative_level): Declare.
11091 * stack.c (frame_relative_level): New function.
11092 (selected_frame_level): Document as deprecated.
11093 (select_frame): Do not set the selected_frame_level.
11095 * stack.c (frame_info, record_selected_frame): Update.
11096 (frame_command, current_frame_command): Update.
11097 (up_silently_base, up_command, down_silently_base): Update.
11098 (down_command): Update.
11099 * inflow.c (kill_command): Update.
11100 * tracepoint.c (finish_tfind_command): Update.
11101 * corelow.c (core_open): Update.
11102 * thread.c (info_threads_command): Update.
11103 (do_captured_thread_select): Update.
11104 * infcmd.c (finish_command): Update.
11105 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11109 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11111 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11113 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11116 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11118 * alphafbsd-tdep.c: Update copyright years. Include
11120 (alphafbsd_use_struct_convention): Make static.
11121 (alphafbsd_init_abi): New function.
11122 (_initialize_alphafbsd_tdep): New function.
11123 * config/alpha/tm-fbsd.h: Update copyright years.
11124 (USE_STRUCT_CONVENTION): Remove.
11126 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11128 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11129 an Alpha ABI variant.
11130 (alpha_abi_handler_list): Declare.
11131 (alpha_gdbarch_register_os_abi): New function.
11132 (alpha_gdbarch_init): Give registered ABI variant handlers a
11133 chance to tweak the gdbarch once we have set up defaults.
11134 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11136 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11138 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11139 to standard_coerce_float_to_double.
11140 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11142 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11144 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11145 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11146 from gdbarch_tdep rather than a constant.
11147 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11148 the default text address for all Alpha Unix ABIs.
11149 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11150 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11152 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11154 * alpha-tdep.h: New file. Includes several Alpha target constants
11156 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11157 let gdbarch deal with.
11158 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11159 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11160 to dependency list.
11161 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11162 Alpha target register names.
11163 * alphabsd-nat.c: Likewise.
11164 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11165 Alpha target register names. Make serveral routines static.
11166 (alpha_get_saved_register): New function.
11167 (alpha_abi_names): New.
11168 (process_note_abi_tag_sections): New function.
11169 (get_elfosabi): New function.
11170 (alpha_gdbarch_init): New function.
11171 (alpha_dump_tdep): New function.
11172 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11174 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11176 * frame.c (find_saved_register): Delete #ifdef
11177 HAVE_REGISTER_WINDOWS code.
11178 * config/sparc/tm-sparc.h: Update comments.
11179 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11181 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11183 * i960-tdep.c (i960_find_saved_register): New function.
11184 (i960_get_saved_register): New function.
11185 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11186 (i960_get_saved_register): Declare.
11187 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11189 2002-04-20 David S. Miller <davem@redhat.com>
11191 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11193 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11195 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11196 instead of NUM_PSEUDO_REGS.
11198 2002-04-20 David S. Miller <davem@redhat.com>
11200 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11201 GDB_MULTI_ARCH_PARTIAL
11202 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11203 define, let tm-sp64.h do it.
11205 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11207 * frame.c (find_saved_register): Avoid a NULL pointer
11208 dereference and actually walk the frame list.
11210 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11212 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11213 sorted in most most-recent-used order. Document.
11214 * gdbarch.h, gdbarch.c: Regenerate.
11216 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11218 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11220 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11221 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11222 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11225 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11228 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11229 (build_builtin_type_vec128): Ditto.
11230 (append_composite_type_field): Fix calculation of type length in
11233 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11235 * config/djgpp/README: Update.
11237 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11240 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11242 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11243 (alpha_setup_arbitrary_frame): ...to this.
11244 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11245 for alpha_setup_arbitrary_frame.
11247 2002-04-18 Andrew Cagney <cagney@redhat.com>
11249 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11250 * gdbarch.h, gdbarch.c: Regenerate.
11252 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11253 * target.h (memory_breakpoint_from_pc): Update declaration.
11254 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11256 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11257 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11258 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11259 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11260 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11261 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11262 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11263 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11264 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11265 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11266 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11267 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11269 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11271 * monitor.c (monitor_insert_breakpoint): Ditto.
11272 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11274 * config/mcore/tm-mcore.h: Update copyright.
11275 * mem-break.c: Ditto.
11276 * xstormy16-tdep.c: Ditto.
11278 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11280 * p-exp.y: Add precedence rule for '^' token.
11281 This removes the shift/reduce conflicts.
11282 Remove the comment concerning these shift/reduce conflicts.
11284 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11286 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11287 (registers_powerpc_nofp): New register set for processors
11288 without floating point unit.
11290 2002-04-18 David S. Miller <davem@redhat.com>
11292 * MAINTAINERS: Add myself to write-after-approval.
11294 2002-04-17 Michael Snyder <msnyder@redhat.com>
11296 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11298 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11300 * rs6000-tdep.c (frame_initial_stack_address): Use
11301 frame_register_read to read the alloca_reg.
11303 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11305 * frame.c (find_saved_register): Find saved registers in the next
11309 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11311 * gdbarch.sh (LANG): Set to ``c''.
11313 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11315 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11317 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11319 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11322 * hpread.c (hpread_get_lntt): Add declaration.
11323 Also fix PR gdb/391.
11325 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11327 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11328 * aclocal.m4, configure: Re-generate.
11331 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11333 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11334 instead of tm_print_insn.
11336 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11338 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11340 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11342 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11343 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11344 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11346 2002-04-12 Don Howard <dhoward@redhat.com>
11348 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11349 max_user_call_depth.
11350 (init_cmd_lists): Initialize the new value;
11351 * cli/cli-script.c (execute_user_command): Limit the call depth of
11352 user defined commands. This avoids a core-dump when user commands
11353 are infinitly recursive.
11355 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11357 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11358 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11359 from tdep struct instead of DEFAULT_LR_SAVE.
11360 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11361 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11362 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11364 2002-04-12 Michael Snyder <msnyder@redhat.com>
11366 * Remote.c: Spelling fix.
11367 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11368 If no symbol found for "sbrk", try "_sbrk".
11369 (make_output_phdrs): Use bfd_section_name.
11370 (gcore_copy_callback): Use bfd_section_name.
11371 * eval.c: Indentation fix-ups.
11372 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11373 in case it gets applied to an address that is already
11374 in the instruction space.
11375 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11376 * symfile.c: Fix indentation, long lines.
11377 * source.c: White space fix-up.
11379 2002-04-12 Andrew Cagney <cagney@redhat.com>
11381 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11382 * frame.c (frame_register_read): New function. Return non-zero on
11384 (read_relative_register_raw_bytes_for_frame): Delete.
11385 (read_relative_register_raw_bytes): Delete.
11386 * frame.h (frame_register_read): Declare.
11387 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11388 * sh-tdep.c: Ditto.
11389 * infcmd.c (do_registers_info): Ditto.
11390 * hppa-tdep.c: Ditto.
11391 * rs6000-tdep.c: Ditto.
11392 * h8500-tdep.c: Ditto.
11393 * mips-tdep.c: Ditto.
11394 * h8300-tdep.c: Ditto.
11395 * z8k-tdep.c: Ditto.
11397 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11399 From Jimi X <jimix@watson.ibm.com>:
11400 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11403 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11405 From Jimi X <jimix@watson.ibm.com>:
11406 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11409 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11411 From Jimi X <jimix@watson.ibm.com>:
11412 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11413 register sets for these processor variants.
11415 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11417 * regformats/reg-ppc.dat: Support FPSCR.
11419 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11421 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11422 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11423 Add fpscr as an invalid/unfetchable register.
11424 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11425 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11426 (fill_fpregset): Add support for register fpscr.
11427 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11428 (fill_gregset): Account for the fact that register ``mq'' might
11430 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11431 (registers_power): Add fpscr to register set at slot 71.
11432 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11433 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11435 2002-04-11 Michael Snyder <msnyder@redhat.com>
11437 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11438 * configure: Regenerate.
11439 * config.in: Regenerate.
11440 * acconfig.h: Add define for _SYSCALL32.
11441 * core-sol2.c: Remove #define _SYSCALL32.
11442 * solib-legacy.c: Remove #define _SYSCALL32.
11444 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11446 * stack.c (select_frame): Cleanup internal error message, do not
11449 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11451 * stack.c (select_frame): Check that selected_frame and the
11452 specified level are as expected.
11453 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11455 * frame.h (struct frame_info): Add field `level'. Update
11457 Work-in-progress PR gdb/464.
11459 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11461 * maint.c (maint_print_section_info): Rename print_section_info.
11462 (print_bfd_section_info, print_objfile_section_info): Update.
11463 * inferior.h (struct gdbarch): Add opaque declaration.
11464 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11465 * gdbarch.h: Regenerate.
11467 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11469 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11470 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11471 (kernel_u_size): Added.
11472 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11473 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11475 2002-04-04 Jim Ingham <jingham@apple.com>
11477 * valarith.c (find_size_for_pointer_math): New function, either returns
11478 the size for a pointer's target, returns 1 for void *, or errors for
11480 (value_add, value_sub): use find_size_for_pointer_math.
11482 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11484 * linux-low.c (linux_look_up_symbols): New hook.
11485 (linux_target_ops): Add linux_look_up_symbols.
11486 * remote-utils.c (decode_address): New function.
11487 (look_up_one_symbol): New function.
11488 * server.c (handle_query): Call target look_up_symbols hook.
11489 * server.h (look_up_one_symbol): Add prototype.
11490 * target.h (struct target_ops): Add look_up_symbols hook.
11492 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11494 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11495 override FP_REGNUM with frame->fp. Update copyright.
11496 * parse.c (num_std_regs, std_regs): Delete.
11497 (target_map_name_to_register): Do not search std_regs. Update
11498 function description.
11499 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11500 declarations. Update copyright.
11503 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11505 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11506 after the last symbol in a block.
11508 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11510 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11511 is non zero as a found symbol.
11513 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11515 * findvar.c: Include "builtin-regs.h".
11516 (value_of_register): Call value_of_builtin_reg when applicable.
11517 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11518 (target_map_name_to_register): Call
11519 builtin_reg_map_name_to_regnum.
11520 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11521 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11522 (builtin_regs_h): Define.
11523 (builtin-regs.o): New target.
11524 (findvar.o): Add $(builtin_regs_h).
11525 * builtin-regs.c, builtin-regs.h: New files.
11526 * std-regs.c: New file.
11527 Partial fix for PR gdb/251.
11529 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11531 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11532 it's no longer required.
11534 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11536 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11538 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11540 From Jimi X <jimix@watson.ibm.com>:
11541 * rs6000-tdep.c (rs6000_software_single_step): Use
11542 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11543 and size. Use target_insert_breakpoint() and
11544 target_remove_breakpoint() to insert and remove breakpoints
11545 instead of explicit memory reads and writes.
11547 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11549 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11550 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11551 ELF_OBJECT_FORMAT ifdef.
11553 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11555 From Jimi X <jimix@watson.ibm.com>:
11556 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11558 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11560 From Jimi X <jimix@watson.ibm.com>:
11561 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11562 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11564 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11566 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11567 s/asprintf/xasprintf/.
11568 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11570 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11572 I believe Jeff Law denies responsability for this one:
11573 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11574 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11575 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11576 Work-around for PR gdb/366.
11578 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11580 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11581 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11582 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11584 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11586 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11587 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11590 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11592 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11595 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11597 * README (Reporting Bugs in GDB): Document the bug web page as the
11598 prefered way of submitting bugs.
11601 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11603 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11604 -1. Update comment.
11605 * gdbarch.h, gdbarch.c: Re-generate.
11607 2002-04-07 Andreas Schwab <schwab@suse.de>
11609 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11610 buffer to regcache_collect.
11612 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11614 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11615 * gdbarch.c, gdbarch.h: Re-generate.
11617 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11619 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11620 declaration. Fix -Werror.
11622 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11624 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11625 * gdbarch.c: Regenerate.
11627 2002-04-05 Michael Snyder <msnyder@redhat.com>
11629 * breakpoint.c (clear_command): Rewrite middle section to
11630 combine two loops with identical control conditions.
11631 Add a cleanup to eliminate a memory leak.
11632 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11634 2002-04-05 H.J. Lu (hjl@gnu.org)
11636 * solib-svr4.c (bkpt_names): Add "__start".
11638 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11640 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11641 as test for 64 bit target.
11643 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11645 * h8500-tdep.c (h8500_write_fp): Delete function.
11646 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11647 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11648 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11650 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11651 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11653 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11654 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11655 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11656 (d10v_write_fp): Delete function.
11657 * inferior.h (write_fp, generic_target_write_fp): Delete
11659 * regcache.c (generic_target_write_fp): Delete function.
11660 (write_fp): Delete function.
11661 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11662 * gdbarch.h, gdbarch.c: Regenerate.
11663 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11664 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11665 (sparc64_write_fp): Delete declaration.
11666 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11667 (h8500_write_fp): Delete declaration.
11669 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11671 * sparc-tdep.c (sparc64_write_fp): Delete.
11672 (sparc_push_dummy_frame): Replace write_fp call with code to store
11674 (sparc_gdbarch_init): Do not initialize write_fp.
11676 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11678 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11681 2002-03-29 Jim Blandy <jimb@redhat.com>
11683 * stack.c (get_selected_block): Add new argument `addr_in_block',
11684 used to return the exact code address we used to select the block,
11685 not just the block.
11686 * blockframe.c (get_frame_block, get_current_block): Same.
11687 * frame.h (get_frame_block, get_current_block,
11688 get_selected_block): Update declarations.
11689 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11690 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11692 2002-04-05 Michael Snyder <msnyder@redhat.com>
11694 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11697 2002-04-05 J. Brobecker <brobecker@gnat.com>
11699 * utils.c (xfullpath): New function.
11700 * defs.h (xfullpath): Add declaration.
11701 * source.c (openp): Use xfullpath in place of gdb_realpath to
11702 avoid resolving the basename part of filenames when the
11703 associated file is a symbolic link. This fixes a potential
11704 inconsistency between the filenames known to GDB and the
11705 filenames it prints in the annotations.
11706 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11707 to be able to match a filename with either the real filename, or
11708 the name of any symbolic link to this file.
11709 (lookup_partial_symtab): Ditto.
11711 2002-04-04 Michael Snyder <msnyder@redhat.com>
11713 * breakpoint.c: Add support for hardware breakpoints in overlays.
11714 (overlay_events_enabled): New state variable.
11715 (insert_breakpoints): Use overlay_events_enabled to decide
11716 whether to attempt to set a breakpoint at the overlay load addr.
11717 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11718 (remove_breakpoint): Use overlay_events_enabled to decide
11719 whether breakpoints need to be removed from overlay load addr.
11720 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11721 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11722 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11723 disable_overlay_breakpoints): Update overlay_events_enabled.
11725 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11727 * dwarf2read.c (struct function_range): New.
11728 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11729 (check_cu_functions): New.
11730 (read_file_scope): Initialize global function lists.
11731 Call dwarf_decode_line after processing children.
11732 (read_func_scope): Add to global function list.
11733 (dwarf_decode_lines): Call check_cu_functions everywhere
11734 record_line is called. Call record_line with a linenumber
11735 of 0 to mark sequence ends.
11737 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11739 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11740 change sync with glibc.
11742 2002-04-03 Jim Blandy <jimb@redhat.com>
11744 * configure.in: Call AC_C_INLINE.
11745 * configure: Regenerated.
11747 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11749 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11750 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11752 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11754 * NEWS: Mention gcore support on FreeBSD/i386.
11756 * fbsd-proc.c: New file.
11757 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11758 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11760 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11763 2002-03-29 Jim Blandy <jimb@redhat.com>
11765 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11766 unescaped newlines in string literals, but newer ones don't. So
11769 2002-03-26 Michael Snyder <msnyder@redhat.com>
11770 Andrew Cagney <cagney@redhat.com>
11772 * cli/cli-dump.c: New file. Dump memory to file,
11773 restore file to memory.
11774 * cli/cli-dump.h: New file.
11775 * Makefile.in: Add rules, dependencies for cli-dump.o.
11776 * NEWS: Mention new commands.
11778 2002-03-28 Michael Snyder <msnyder@redhat.com>
11780 * symfile.c (symbol_file_add): Move test for null symbols to later.
11782 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11784 From veksler at il.ibm.com:
11785 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11786 the xstrduped original path.
11789 2002-03-27 Michael Snyder <msnyder@redhat.com>
11791 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11792 * infcmd.c (_initialize_infcmd): Ditto.
11793 * language.c (_initialize_language): Ditto.
11794 * symfile.c (_initialize_symfile): Ditto.
11795 * top.c (_init_main): Ditto.
11796 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11798 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11800 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11801 vector registers handling.
11802 (skip_prologue): Handle new AltiVec instructions. Fill in new
11803 fields of frame data.
11804 (frame_get_saved_regs): Fill in information for AltiVec registers.
11806 2002-03-27 Jim Blandy <jimb@redhat.com>
11808 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11809 a function; leave this macro here to invoke that function.
11810 (symbol_init_mangled_name): Declaration for that function.
11811 * symtab.c (symbol_init_mangled_name): New function.
11813 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11815 * valarith.c: Replace strerror with safe_strerror.
11816 * tracepoint.c: Ditto.
11817 * lin-lwp.c: Ditto.
11818 * go32-nat.c: Ditto.
11820 * gnu-nat.c: Ditto.
11822 2002-03-27 Andreas Schwab <schwab@suse.de>
11824 * event-top.c (command_line_handler): Remove useless if.
11826 2002-03-27 Andreas Jaeger <aj@suse.de>
11828 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11831 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11833 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11834 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11835 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11836 (x86_64_linux_dr_get_status, supply_gregset),
11837 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11838 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11839 (x86_64_register_info_table): Add.
11840 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11841 (x86_64_register_raw_size, x86_64_register_virtual_type),
11842 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11843 general x86_64_register_info_table.
11844 (i386_gdbarch_init): gdbarch_register_bytes is now set
11845 dynamicaly during initialization.
11846 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11847 * gdbserver/linux-x86-64-low.c: Ditto.
11849 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11851 * gdbserver/server.c (main): Call target_signal_to_host_p
11852 and target_signal_to_host on signals received from the remote.
11853 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11854 target_signal_from_host on signals sent to the remote.
11855 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11856 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11858 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11860 * signals/signals.c: Include "server.h" in gdbserver build.
11861 (target_signal_from_name): Don't use STREQ.
11862 (_initialize_signals): Likewise. Don't include function in
11865 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11867 * signals.c: Moved to...
11868 * signals/signals.c: Here.
11869 * Makefile (signals.o): Update.
11871 2002-03-26 Jeff Law (law@redhat.com)
11873 * somread.c (som_symtab_read): Remove some commented out code and
11874 updated related comments. Do not set the minimal symbol table to
11875 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11876 in a dynamic executable.
11877 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11878 where we are unable to find the minimal symbol for the given
11881 2002-03-25 Jeff Law (law@redhat.com)
11883 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11885 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11887 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11889 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11891 * command.h: Update copyright.
11892 (struct cmd_list_element): Replace definition with opaque
11894 (enum cmd_types): Document that it will eventually be moved to
11896 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11897 (MALLOCED_REPLACEMENT): Delete macro.
11898 * Makefile.in (cli_decode_h): Add $(command_h).
11899 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11900 * top.c: Include "cli/cli-decode.h".
11901 * completer.c: Include "cli/cli-decode.h".
11902 * maint.c: Include "cli/cli-decode.h".
11903 * cli/cli-decode.h: Include "command.h".
11904 (enum command_class): Delete.
11905 (enum cmd_types): Comment out.
11906 (enum cmd_auto_boolean): Delete.
11907 (enum var_types): Delete.
11909 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11911 * cli/cli-decode.c: Include "gdb_assert.h".
11912 (add_set_or_show_cmd): New static function.
11913 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11914 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11915 all fields, such as func, from the set command.
11917 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11919 * MAINTAINERS (sh-elf): Change warning flag to -w.
11921 2002-03-23 Andrew Cagney <cagney@redhat.com>
11923 * defs.h (error): Add printf format attribute.
11924 * thread-db.c (thread_from_lwp): Fix error format string.
11925 * stack.c (parse_frame_specification): Ditto.
11926 * cli/cli-decode.c (undef_cmd_error): Ditto.
11927 * scm-lang.c (scm_lookup_name): Ditto.
11928 * tracepoint.c (trace_error): Ditto.
11929 * remote-utils.c (usage): Ditto.
11930 * remote.c (compare_sections_command): Ditto.
11933 2002-03-22 Andrew Cagney <ac131313@redhat.com>
11935 * gdbtypes.c (append_composite_type_field): New function.
11936 (init_composite_type): New function.
11937 * gdbtypes.h (append_composite_type_field): Declare.
11938 (init_composite_type): Ditto.
11940 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
11942 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
11944 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11945 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11946 structure returning convention for SYSV ABI case, but not
11947 for GNU/Linux, FreeBSD, or NetBSD.
11949 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11951 * symtab.h (lookup_block_symbol): Add mangled_name argument
11954 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11955 with new mangled_name argument.
11956 * linespec.c (decode_line_1): Likewise.
11957 * valops (value_of_this): Likewise.
11958 * symtab.c (lookup_transparent_type): Likewise.
11959 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11960 (lookup_symbol): If we are given a mangled name, pass it down
11961 to lookup_symbol_aux.
11962 (lookup_block_symbol): If we are given a mangled name to check
11963 against, only return symbols which match it.
11965 2002-03-22 Christopher Faylor <cgf@redhat.com>
11967 * win32-nat.c (child_create_inferior): Check for proper shell to use
11968 here, in case the user changes it on the fly.
11969 (_initialize_inftarg): Remove shell path considerations.
11971 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11973 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11974 for gdbarch_max_register_raw_size and max_register_virtual_size.
11975 Adjust copyright year.
11977 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11979 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11980 in a function to cover the entire beginning of the function
11981 as well if it does not already.
11983 2002-03-21 Tom Rix <trix@redhat.com>
11985 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11986 (rs6000_ptrace64): Renamed from ptrace64.
11988 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11990 * gdbserver/remote-utils.c (remote_open): Don't call
11991 getprotobyname, we're all using TCP here so just use
11993 * gdbserver/gdbreplay.c (remote_open): Ditto.
11995 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11997 * regcache.c (_initialize_regcache): No need to call
11998 build_regcache() at this time; it gets called whenever
11999 the gdbarch changes.
12001 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12003 * sparc-nat.c: Include sys/param.h where possible.
12005 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12008 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12009 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12010 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12012 * stabsread.c (rs6000_builtin_type): Likewise.
12013 (read_sun_floating_type): Likewise.
12015 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12017 * stabsread.c (read_member_functions): Remove skip code for duplicate
12018 constructor/destructor methods. Use standard parsing for these
12019 methods and just do not chain them to the list of methods after
12022 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12024 * coffread.c: Remove redundant static declarations. Replace
12025 occurrences of `PTR' with `void *'.
12026 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12027 * top.h (quit_cover): Likewise.
12028 * defs.h (catch_errors): Likewise.
12030 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12032 * defs.h (XMALLOC): Define.
12033 * gdb-events.sh (XMALLOC): Delete macro.
12034 * gdb-events.c, gdb-events.h: Regenerate.
12035 * gdbarch.sh (XMALLOC): Delete macro.
12036 * gdbarch.c: Regenerate.
12037 * serial.c (XMALLOC): Delete macro.
12038 * ui-file.c (XMALLOC): Ditto.
12039 * ser-unix.h (XMALLOC): Ditto.
12040 * sh-tdep.c (XMALLOC): Ditto.
12041 * ui-out.c (XMALLOC): Ditto.
12042 * utils.c (XMALLOC): Ditto.
12043 * i386-tdep.c (XMALLOC): Ditto.
12044 * gdb-events.c (XMALLOC): Ditto.
12045 * d10v-tdep.c (XMALLOC): Ditto.
12046 * cli-out.c (XMALLOC): Ditto.
12048 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12049 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12050 * ui-file.c, ui-out.c: Ditto.
12052 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12054 * command.h (struct cmd_list_element): Add field context.
12055 (set_cmd_context, get_cmd_context): Declare.
12056 * cli/cli-decode.h: Ditto.
12057 * cli/cli-decode.c (get_cmd_context): New function.
12058 (set_cmd_context): New function.
12059 (add_cmd): Initialize context.
12060 Part of fixing PR gdb/145 and PR gdb/146.
12062 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12064 * cli/cli-decode.c (cmd_type): New function.
12065 * command.h (cmd_type): Declare.
12066 * infrun.c (set_schedlock_func): Call function cmd_type.
12067 * kod.c (kod_set_os): Call cmd_type.
12068 * cris-tdep.c (cris_version_update): Use function cmd_type.
12069 (cris_mode_update, cris_abi_update): Ditto.
12071 * command.h: (execute_cmd_post_hook): Declare.
12072 (execute_cmd_pre_hook): Declare.
12073 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12074 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12075 functions. Execute pre/post hook while ensuring that afterwords
12076 hook_in is cleared.
12077 * top.c (execute_command): Use execute_cmd_post_hook, and
12078 execute_cmd_pre_hook to execute pre/post commands.
12079 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12081 (hook_stop_stub): Call execute_cmd_pre_hook.
12083 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12085 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12086 set'' and this leads to a core dump. Move xstrdup of
12087 operating_system to after check that it is not NULL.
12089 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12091 * kod.c (kod_set_os): Remove unnecessary check that
12092 ``command->type'' is set_cmd.
12094 * valprint.c (set_input_radix): Use input_radix.
12095 (set_output_radix): Use output_radix.
12096 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12099 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12101 * value.h (struct value): Delete field ``substring_addr''. Change
12102 aligner fields to force_doublest_align, force_longest_align,
12103 force_core_addr_align and force_pointer_aligh.
12105 * value.h (struct value): Fix typo in above change.
12107 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12109 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12110 to fix internal_error from ``maintenance print architecture''.
12112 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12114 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12115 for gcc versions after gcc-2.8.1.
12117 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12119 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12120 for method resolution. Restore adjustment of ``this'' pointer after
12121 calling value_struct_elt, which was accidentally removed during the
12124 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12126 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12128 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12129 get_saved_register.
12130 * value.h (value_of_register): Update.
12132 2002-03-14 Richard Henderson <rth@redhat.com>
12134 * configure.in: Detect declaration for canonicalize_file_name.
12135 * utils.c (canonicalize_file_name): Declare, if needed.
12136 (gdb_realpath): Prefer realpath if available and usable.
12137 * config.in, configure: Rebuild.
12139 2002-03-14 Richard Henderson <rth@redhat.com>
12141 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12142 a constant array bound.
12144 * MAINTAINERS: Add myself to write-after-approval.
12146 2002-03-14 Michael Snyder <msnyder@redhat.com>
12148 * symfile.c (syms_from_objfile): Return immediately if no syms.
12149 (symbol_file_add): Return immediately if no syms.
12150 (find_sym_fns): Return immediately if no syms.
12152 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12154 * gdbserver/remote-util.c (remote_open): Print remote-side's
12155 IP address when remote debugging over the network.
12157 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12159 * config/sparc/fbsd.mh: Fix copyright.
12160 * config/sparc/fbsd.mt: Likewise.
12162 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12164 * MAINTAINERS: Fix typo in name of gdb warnings option.
12165 (x86-64): Fix formating so that this can be parsed by awk.
12167 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12169 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12170 * defs.h: Include "gdb/signals.h".
12171 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12173 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12175 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12176 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12179 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12180 Don Howard <dhoward@redhat.com>
12182 * mips-tdep.c (ST0_FR): Define.
12183 (mips2_fp_compat): New function, temporarily disabled.
12184 (mips_read_fp_register_single): New function.
12185 (mips_read_fp_register_double): New function.
12186 (mips_print_register): Use them.
12187 (do_fp_register_row): Likewise.
12189 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12191 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12194 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12196 * stabsread.c (read_member_functions): Fix is_stub test for
12197 static member functions, improve comment.
12199 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12201 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12202 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12203 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12204 commands that set boolean values.
12205 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12206 (arm_rdi_resume): Always initialize PC.
12207 (arm_rdi_open): Don't use rslt as a boolean.
12208 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12209 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12210 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12211 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12213 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12215 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12216 * configure: Rebuilt.
12218 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12220 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12221 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12223 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12225 * cli/cli-decode.c (set_cmd_completer): New function.
12226 * command.h (set_cmd_completer): Declare.
12227 * cli/cli-decode.h (set_cmd_completer): Ditto.
12229 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12230 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12231 * win32-nat.c (_initialize_inftarg): Ditto.
12232 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12233 * proc-api.c (_initialize_proc_api): Ditto.
12234 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12235 * source.c (_initialize_source): Ditto.
12236 * exec.c (_initialize_exec): Ditto.
12237 * solib.c (_initialize_solib): Ditto.
12238 * top.c (init_main): Ditto.
12239 * tracepoint.c (_initialize_tracepoint): Ditto.
12240 * symfile.c (_initialize_symfile): Ditto.
12241 * printcmd.c (_initialize_printcmd): Ditto.
12242 * infcmd.c (_initialize_infcmd): Ditto.
12243 * corefile.c (_initialize_core): Ditto.
12245 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12247 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12249 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12251 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12253 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12255 * NEWS: Update headings, 5.2 has branched.
12257 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12259 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12260 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12261 (register_addr, REGISTER_RAW_SIZE): Likewise.
12262 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12263 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12265 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12267 * MAINTAINERS (x86-64): Add myself.
12268 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12269 changed value_ptr -> struct value *
12271 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12273 * configure.host (sparc64-*-freebsd): Add.
12274 * configure.tgt: Likewise.
12275 * config/sparc/fbsd.mh: New file.
12276 * config/sparc/fbsd.mt: Likewise.
12277 * config/sparc/nm-fbsd.h: Likewise.
12278 * config/sparc/tm-fbsd.h: Likewise.
12280 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12282 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12283 regformats/reg-s390x.dat.
12285 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12287 * utils.c: Add FIXME explaining true/false problem.
12289 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12291 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12293 2002-02-28 Michael Chastain <mec@shout.net>
12295 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12297 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12299 * gdbserver/linux-s390-low.c: New file.
12300 * regformats/reg-s390.dat: New file.
12301 * regformats/reg-s390x.dat: New file.
12302 * gdbserver/configure.srv: Add S/390.
12303 * gdbserver/Makefile.in: Add S/390.
12304 * configure.tgt: Enable gdbserver for S/390.
12306 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12308 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12309 first line of the doc string for "info dos", except at the end of
12310 the sentence, since the short help stops at the first period.
12312 2002-02-28 Jason Merrill <jason@redhat.com>
12314 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12316 2002-02-27 Fred Fish <fnf@redhat.com>
12318 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12319 comment (dumy -> dummy).
12321 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12323 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12325 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12327 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12329 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12331 * gdbserver/acconfig.h: New file.
12332 * gdbserver/i387-fp.c: New file.
12333 * gdbserver/i387-fp.h: New file.
12334 * gdbserver/linux-x86-64.c: New file.
12335 * regformats/reg-x86-64.dat: New file.
12336 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12337 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12338 * gdbserver/configure.in: Add support for regsets.
12339 * gdbserver/config.in: Regenerate.
12340 * gdbserver/configure: Regenerate.
12341 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12342 * gdbserver/linux-low.h: New file.
12343 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12345 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12346 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12347 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12348 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12349 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12350 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12351 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12352 "i387-fp.h". Add PTRACE_GETREGS and friends.
12353 * gdbserver/regcache.c (supply_register): New function.
12354 (supply_register_by_name): New function.
12355 (collect_register): New function.
12356 (collect_register_by_name): New function.
12358 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12360 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12361 (config.status): Add configure.srv dependency.
12362 (server_h): Add config.h dependency.
12364 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12366 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12367 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12368 * gdbserver/configure.srv: Change i386-*-linux* to use
12371 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12373 * x86-64-tdep.c: Re-indent. Update copyright date.
12375 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12377 From Michal Ludvig <mludvig@suse.cz>:
12378 * x86-64-tdep.c (value.h): Delete.
12379 (gdb_assert.h): Include.
12380 (x86_64_register_convert_to_virtual,
12381 x86_64_register_convert_to_raw ): Add check which lets only
12382 floating-point values to be converted.
12383 (value_push): Delete.
12384 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12385 (i386_gdbarch_init): Number of register_bytes fixed.
12387 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12389 * MAINTAINERS: Add x86-64 target.
12391 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12393 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12394 * osfsolib.c (solib_map_sections): Ditto.
12395 * irix5-nat.c (solib_map_sections): Ditto.
12396 * corelow.c (gdb_check_format): Ditto.
12397 * symfile.c (symfile_bfd_open): Ditto.
12398 * solib.c (solib_map_sections): Ditto.
12401 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12403 * remote.c (_initialize_remote): By default, disable ``e'' and
12404 ``E'' step out-of-range packets.
12406 2002-02-26 Andreas Schwab <schwab@suse.de>
12408 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12409 m68k_linux_frame_saved_pc.
12410 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12412 (SIGCONTEXT_PC_OFFSET): Remove.
12413 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12414 m68k_linux_sigtramp_saved_pc): New functions.
12415 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12416 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12417 (UCONTEXT_PC_OFFSET): Define.
12418 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12419 non-RT and RT signal trampolines.
12421 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12423 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12424 (TARGET_NBPG, STACK_END_ADDR): Delete
12425 (VARIABLES_INSIDE_BLOCK): Delete.
12427 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12429 * utils.c (perror_with_name): Make string parameter constant.
12430 (print_sys_errmsg): Ditto.
12432 * defs.h (perror_with_name): Update.
12433 (print_sys_errmsg): Update.
12436 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12438 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12439 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12441 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12443 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12444 if it already matches the current architecture from the exec file.
12445 Include arch-utils.h for gdbarch_info_init prototype.
12446 * Makefile.in (rs6000-nat.o): Update dependencies.
12448 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12450 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12451 list of exported variables.
12453 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12455 * gdbserver/configure.srv: New file.
12456 * gdbserver/configure.in: Use configure.srv instead
12457 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12459 * gdbserver/configure: Regenerated.
12460 * gdbserver/terminal.h: New file.
12461 * gdbserver/Makefile.in: Update for configure changes. Remove
12462 more unneeded include paths.
12464 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12466 From wiz at danbala:
12467 * config/sparc/tm-sp64.h: Fix grammar and typos.
12470 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12472 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12473 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12474 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12475 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12476 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12477 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12478 * s390-tdep.c: Ditto.
12479 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12480 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12481 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12482 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12483 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12484 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12485 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12486 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12487 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12488 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12491 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12493 * lin-thread.c: Delete file.
12494 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12495 to gdb_proc_service.h.
12496 * configure: Re-generate.
12498 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12499 * serial.c (serial_open): Delete check for "ocd".
12502 * Makefile.in (linux-thread.o): Delete target.
12503 * linux-thread.c: Delete file.
12505 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12506 renamed SH files to be consistent.
12508 * symtab.c (sort_search_symbols): Use xfree.
12510 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12512 * arm-linux-tdep.c (arm_linux_init_abi): Register
12513 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12514 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12515 definition with undef, since we don't want the sysvr4 definition.
12516 (SKIP_TRAMPOLINE_CODE): Likewise.
12518 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12520 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12522 * configure.in: (AC_CHECK_FUNCS) Added test for
12523 canonicalize_file_name Regenerated.
12524 * config.in, configure: Regenerated.
12525 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12526 defined use canonicalize_file_name.
12528 2002-02-23 Michael Chastain <mec@shout.net>
12530 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12532 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12534 * README: Remove references to cygnus.com.
12535 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12536 dot com'' form. Remove references to cygnus.com and sourceware.
12538 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12540 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12541 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12542 1003.1-2001 no longer allows "head -1".
12543 * gdb/Makefile.in (version.c): Likewise.
12544 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12545 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12546 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12548 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12550 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12551 * command.h (cmd_cfunc_eq): Declare.
12552 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12554 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12555 ``struct cmd_list_element *''.
12556 * cli/cli-cmds.c (is_complete_command): Update. Use
12558 * top.c (execute_command): Pass the command to
12559 is_complete_command.
12560 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12562 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12564 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12565 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12566 architecture defines.
12567 * s390-tdep.c (s390_gdbarch_init): Likewise.
12569 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12571 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12572 (arm_linux_push_arguments): Likewise.
12573 (arm_linux_init_abi): Register them. Also register linux-specific
12575 (find_minsym_and_objfile): Use strcmp, not STREQ.
12576 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12577 (arm_linux_call_dummy_words): Delete declaration.
12578 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12579 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12581 (LOWEST_PC): Delete.
12583 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12585 * maint.c (print_section_info): Do not prepend `0x' to filepos
12586 output, it will be handled by local_hex_string_custom.
12588 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12590 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12591 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12592 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12594 2002-02-22 Jim Blandy <jimb@redhat.com>
12596 Indicate that the bcache functions don't change the strings
12598 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12599 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12601 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12603 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12605 2002-02-21 Christopher Faylor <cgf@redhat.com>
12607 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12608 find the complete path to a loaded DLL.
12610 2002-02-21 Fred Fish <fnf@redhat.com>
12612 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12613 that marks the end of the range of a function, enter a line number
12614 entry that has a line number of zero and a PC offset that matches
12615 the end of the function. This starts a range of PC's for which no
12616 line number information is known.
12617 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12618 PC's for which no line number info is found (line number is zero)
12619 then we didn't find any valid line information.
12620 * symtab.h: Document use of zero line number entry.
12622 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12624 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12625 (have_ptrace_getvrregs): Define for run time checks.
12626 (gdb_vrregset_t): New type for Altivec register handling.
12627 (fetch_register, store_register): Fetch/store altivec register
12629 (fetch_altivec_register, store_altivec_register): New functions.
12630 (supply_vrregset, fill_vrregset): New functions.
12631 (fetch_altivec_registers, store_altivec_registers): New functions.
12632 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12635 2002-02-21 Jiri Smid <smid@suse.cz>
12637 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12639 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12641 * Makefile.in (armnbsd-nat.o): Update dependencies.
12642 * armnbsd-nat.c (supply_gregset): New function. Common code to
12643 supply the integer register set.
12644 (supply_fparegset): New function. Similar for FPA registers.
12645 (fetch_regs, fetch_fp_regs): Use them.
12646 (fetch_core_registers): Likewise.
12647 (fetch_elfcore_registers): New function.
12648 (arm_netbsd_elfcore_fns): New core-file type specification.
12649 (_initialize_arm_netbsd_nat): Register it.
12651 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12653 * armnbsd-nat.c: Include gdbcore.h.
12654 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12655 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12656 'void' to declaration, to shut up ARI.
12657 (fetch_core_registers): Make static. Rewrite using supply_register.
12658 (arm_netbsd_core_fns): New core-file type specification.
12659 (_initialize_arm_netbsd_nat): New function.
12661 2002-02-21 Christopher Faylor <cgf@redhat.com>
12663 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12666 2002-02-20 Christopher Faylor <cgf@redhat.com>
12668 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12671 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12673 * jv-exp.y (parse_number): Change type of implicit longs
12674 to builtin_type_uint64.
12676 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12678 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12679 to be an integer instead of a `union wait'.
12681 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12683 * mips-linux-nat.c: Call the operating system GNU/Linux.
12684 * mips-linux-tdep.c: Likewise.
12685 * mips-tdep.c: Likewise.
12687 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12690 * jv-exp.y (parse_number): Handle 64-bit integers.
12692 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12694 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12695 AC_STDC_HEADERS to AC_HEADER_STDC.
12696 * gdbserver/configure: Regenerated.
12698 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12700 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12702 * sparc-tdep.c (get_longjmp_target): Likewise.
12704 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12706 * News: Add news about ARM and Multi-arch. Mention the new target
12709 2002-02-19 Jim Blandy <jimb@redhat.com>
12711 * stabsread.c (error_type_complaint): Improve error message.
12713 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12715 * gdbserver/README: Update documentation.
12716 * gdbserver/configure.in: Update configury to match documentation.
12717 * gdbserver/Makefile.in: Likewise.
12718 * gdbserver/configure: Regenerated.
12719 * gdbserver/aclocal.m4: New file, generated by aclocal.
12720 * gdbserver/config.in: New file, generated by autoheader.
12722 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12724 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12727 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12729 * arm-tdep.h (enum arm_float_model): New enum.
12730 (struct gdbarch_tdep): Add fp_model.
12731 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12732 up floating-point conversions until we know the floating-point model
12733 in use by the inferior. Don't complain about being unable to
12734 determine the ABI of the inferior when we don't have one.
12735 (arm_extract_return_value): Support different floating-point models.
12736 (arm_store_return_value): Likewise.
12737 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12739 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12741 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12743 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12744 of ``current_gdbarch''.
12746 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12748 * armnbsd-nat.c : ANSIfy all function declarations.
12749 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12750 (fetch_inferior_registers): Re-implement in terms of above.
12751 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12752 (store_inferior_registers): Re-implement in terms of above.
12754 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12756 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12758 * arm-linux-tdep.c: Likewise.
12759 * config/arm/tm-linux.h: Likewise.
12761 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12763 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12764 * config/arm/nbsd.mt (TM_FILE): Delete.
12765 * config/arm/tm-nbsd.h: Delete.
12767 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12769 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12770 Initialize CALL_DUMMY_LENGTH.
12772 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12774 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12776 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12777 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12778 defines one thing and that is incorrect for this port.
12779 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12781 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12783 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12785 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12787 * win32-nat.c (display_selector): New function. Displays information
12788 about the information returned by GetThreadSelectorEntry API function.
12789 (display_selectors): New function. Displays the infomation of
12790 the selector given as argument, or of CS, DS ans FS selectors
12791 if no argument is given.
12792 ( _initialize_inftarg): Add "w32" as info prefix command.
12793 Add "info w32 selector" as command calling display_selectors.
12795 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12797 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12798 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12801 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12803 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12805 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12807 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12808 (arm_fix_call_dummy): Call it.
12809 (arm_call_dummy_breakpoint_offset): Delete.
12810 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12811 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12813 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12815 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12816 Default to func_frame_chain_valid.
12817 * gdbarch.h, gdbarch.c: Re-generate.
12818 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12820 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12822 * ppc-linux-nat.c: Update copyright.
12823 (fetch_register, store_register): Add tid parameter, don't compute
12825 (fetch_ppc_registers, store_ppc_registers): Add tid
12826 parameter. Pass it along to callees.
12827 (fetch_inferior_registers, store_inferior_registers): Compute tid
12828 here, and pass it to calleed functions.
12829 (fill_gregset, supply_fpregset): Clean up formatting.
12831 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12833 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12834 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12836 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12838 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12839 * gdbarch.c gdbarch.h: Regenerate.
12840 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12842 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12843 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12844 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12846 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12847 * arm-tdep.c (arm_get_longjmp_target): New function.
12848 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12849 this to a positive value register arm_get_longjmp_target as the
12851 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12852 (arm_linux_init_abi): Set up longjmp description in tdep.
12853 * armnbsd-nat.c (get_longjmp_target): Delete.
12854 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12855 description in tdep.
12856 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12857 (get_longjmp_target): Delete declaration.
12858 (GET_LONGJMP_TARGET): Delete.
12859 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12860 (GET_LONGJMP_TARGET): Delete.
12862 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12864 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12865 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12866 of ``current_gdbarch''.
12868 2002-02-17 Tom Tromey <tromey@redhat.com>
12870 * cli/cli-cmds.c (compare_strings): New function.
12871 (complete_command): Only print each unique item once.
12872 * completer.h (complete_line): Declare.
12873 * completer.c (complete_line): New function.
12874 (line_completion_function): Use it.
12876 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12878 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12879 * gdbarch.h, gdbarch.c: Re-generate.
12881 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12883 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12885 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12887 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12888 * valops.c (value_arg_coerce): Don't take the address of a reference
12889 to convert an argument to a reference.
12891 2002-02-15 Christopher Faylor <cgf@redhat.com>
12893 * win32-nat.c (get_image_name): New function.
12894 (handle_load_dll): Use get_image_name function.
12895 (get_child_debug_event): Avoid registering debug events until possibly
12896 execed process is started.
12897 (child_create_inferior): Allow invocation via shell so that command
12898 line redirection, etc. works ok.
12899 (_initialize_inftarg): Add new command: "set shell" to control whether
12900 a shell is used to start a process.
12902 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12904 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12905 instead of find_register_by_number.
12906 (cannot_store_register): Likewise.
12908 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12910 * dwarf2read.c: Replace fprintf (stderr, ...) by
12911 fprintf_unfiltered (gdb_stderr, ...).
12913 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12915 * gdbserver/gdbserver.1: Document --attach.
12917 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12919 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12921 * arm-tdep.c (arm_default_arm_le_breakpoint)
12922 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12923 (arm_default_thumb_be_breakpoint): New. Initialize them from
12924 traditional breakpoint defines.
12925 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12926 (arm_gdbarch_init): Initialize new breakpoint variables.
12927 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12928 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12929 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12930 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12932 (arm_netbsd_init_abi_common): ... here; new function.
12933 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12934 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12935 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12936 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12938 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12940 * arm-tdep.h (enum arm_abi): New enum.
12941 (struct gdbarch_tdep): New structure.
12942 (LOWEST_PC): Provide a default.
12943 (arm_gdbarch_register_os_abi): Declare new function.
12944 * arm-tdep.c (arm_abi_names): New array.
12945 (process_note_abi_tag_sections): New function.
12946 (get_elfosabi): New function.
12947 (arm_gdbarch_register_os_abi): New function.
12948 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12949 support for that ABI has been built in, then call the appropriate
12950 configuration routine. Use gdbarch_num_regs() to get the number
12952 (arm_dump_tdep): New function.
12953 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12954 place-holder functions.
12955 (_initialize_arm_tdep): Register them.
12956 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12958 * armnbsd-tdep.c: New file.
12959 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12960 * config/arm/nbsd.mt (TDEPFILES): Add it.
12961 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12963 * armnbsd-nat.c: Include regcache.h.
12964 * Makefile.in (armnbsd-nat.o): Update dependency list.
12966 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12968 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12970 * gdbserver/Makefile.in: Fix typos in target rules.
12972 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12974 Fix part of PR gdb/267.
12975 * linespec.c (find_methods): Handle constructors specially for now.
12977 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12979 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12981 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12982 standard_coerce_float_to_double().
12984 2002-02-14 Christopher Faylor <cgf@redhat.com>
12986 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12989 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12991 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12992 find_variant_by_name, because it confuses the multiarch
12993 framework. Return NULL if there isn't an architecture with the
12994 user supplied name, instead of forcing a different one without
12995 recording the change with the multiarch machinery.
12996 (find_variant_by_name): Delete.
12998 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13000 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13001 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13003 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13005 * stack.c (print_frame_info_base): When calling
13006 print_frame_info_listing_hook, set current_source_symtab.
13008 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13010 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13011 and remove unused $(INCLUDE_DIR).
13012 Add regcache.c to OBS.
13013 Add generated register protocol files to clean target.
13014 Update dependencies for new objects, obsolete old target code.
13016 * gdbserver/linux-low.c: Remove all platform-specific code to
13017 new files. Remove various dead code. Update to use regcache
13019 * gdbserver/remote-utils.c (fromhex): Add return statement
13021 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13023 (input_interrupt): Add integer parameter to match prototype
13024 of a signal handler.
13025 (outreg): Use register_data ().
13026 (prepare_resume_reply): Use gdbserver_expedite_regs.
13027 * gdbserver/server.c (main): Dynamically allocate own_buf because
13028 PBUFSIZ is no longer constant. Use registers_to_string () and
13029 registers_from_string ().
13030 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13031 for error (), fatal (), and warning (). Update definition of
13032 PBUFSIZ to use regcache functionality. Add include guard.
13033 * gdbserver/utils.c (fatal): Add missing ``const''.
13034 (warning): New function.
13036 * regformats/regdat.sh: Include "regcache.h" in generated files.
13037 Provide init_registers () function.
13038 * regformats/regdef.h: Add prototype for set_register_cache ().
13041 * gdbserver/linux-arm-low.c: New file.
13042 * gdbserver/linux-i386-low.c: New file.
13043 * gdbserver/linux-ia64-low.c: New file.
13044 * gdbserver/linux-m68k-low.c: New file.
13045 * gdbserver/linux-mips-low.c: New file.
13046 * gdbserver/linux-ppc-low.c: New file.
13047 * gdbserver/linux-sh-low.c: New file.
13049 * gdbserver/regcache.c: New file.
13050 * gdbserver/regcache.h: New file.
13052 * gdbserver/low-linux.c: Removed obsolete file.
13054 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13056 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13057 * config/i386/linux.mt: Likewise.
13058 * config/ia64/linux.mt: Likewise.
13059 * config/m68k/linux.mh: Likewise.
13060 * config/powerpc/linux.mh: Likewise.
13061 * config/mips/linux.mt: Likewise.
13063 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13065 * config/i386/i386lynx.mh: Mark gdbserver variables
13066 as (currently) obsolete for this target.
13067 * config/i386/nbsd.mt: Likewise.
13068 * config/i386/nbsdelf.mt: Likewise.
13069 * config/m32r/m32r.mt: Likewise.
13070 * config/m68k/m68klynx.mh: Likewise.
13071 * config/m68k/nbsd.mt: Likewise.
13072 * config/m68k/sun3os4.mh: Likewise.
13073 * config/mips/vr5000.mt: Likewise.
13074 * config/ns32k/nbsd.mt: Likewise.
13075 * config/pa/hppabsd.mh: Likewise.
13076 * config/pa/hppaosf.mh: Likewise.
13077 * config/powerpc/nbsd.mt: Likewise.
13078 * config/rs6000/rs6000lynx.mh: Likewise.
13079 * config/s390/s390.mt: Likewise.
13080 * config/s390/s390x.mt: Likewise.
13081 * config/sparc/sparclynx.mh: Likewise.
13082 * config/sparc/sun4os4.mh: Likewise.
13083 * config/i386/x86-64linux.mt: Likewise.
13084 * config/sparc/linux.mh: Likewise.
13086 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13088 * configure.tgt: Configure gdbserver only for known working
13089 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13090 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13091 SUBDIRS if it is configured. Update comment for ${nativefile}.
13092 * configure: Regenerated.
13094 2002-02-13 Michael Snyder <msnyder@redhat.com>
13096 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13098 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13099 (default_gcore_mach): Just return 0, work around a problem in bfd.
13100 (default_gcore_target): OK to return NULL if exec_bfd is null.
13101 (make_mem_sec): Use a cast, avoid a warning.
13103 * procfs.c (find_memory_regions_callback): Use a cast instead of
13104 calling host_pointer_to_address (which complains if
13105 sizeof (host pointer) != sizeof (target pointer)).
13106 (procfs_make_note_section): Avoid overflow in psargs string.
13108 * procfs.c (procfs_make_note_section): Make the default
13109 implementation return an error.
13111 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13113 * procfs.c (procfs_make_note_section): Provide a default definition
13114 (for alpha-dec-osf4.0f). Fix typos.
13116 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13118 * linux-proc.c: Add include of regcache.h.
13119 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13121 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13123 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13124 * memattr.c (create_mem_region): Disallow useless empty region.
13125 Regions are half-open intervals, so allow [A..B) [B..C) as
13128 2002-02-13 Michael Chastain <mec@shout.net>
13130 * defs.h: Kill CONST_PTR.
13131 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13132 * c-lang.c (c_builtin_types): Likewise.
13133 * ch-lang.c (ch_builtin_types): Likewise.
13134 * f-lang.c (f_builtin_types): Likewise.
13135 * language.c (unknown_builtin_types): Likewise.
13136 * m2-lang.c (m2_builtin_types): Likewise.
13137 * p-lang.c (pascal_builtin_types): Likewise.
13138 * scm-lang.c (c_builtin_types): Likewise.
13140 2002-02-13 Keith Seitz <keiths@redhat.com>
13142 * arm-tdep.h (arm_get_next_pc): Add declaration.
13144 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13146 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13147 with other related struct-returning functions.
13148 (arm_extract_struct_value_address): New function.
13149 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13150 initialize float_format, double_format and long_double_format as
13151 appropriate to the endianness of the target.
13152 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13153 (arm_use_struct_convention): Delete declaration.
13154 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13156 2002-02-13 Keith Seitz <keiths@redhat.com>
13158 * defs.h (core_addr_to_string_nz): New function.
13160 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13162 Apply missing bits of 2002-01-15 patch.
13163 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13164 (fill_fpregset): Use i387_fill_fsave.
13166 2002-02-12 Keith Seitz <keiths@redhat.com>
13168 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13169 (core_addr_to_string_nz): New function.
13171 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13173 * arm-linux-nat.c: Really include arm-tdep.h.
13174 * config/arm/tm-linux.h (struct type, struct value): Declare.
13176 2002-02-11 Michael Snyder <msnyder@redhat.com>
13178 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13179 (gcore section): Ifdef for Solaris and Unixware only.
13180 (procfs_do_thread_registers): Unixware needs one lwpstatus
13181 per thread (not one prstatus or pstatus).
13182 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13183 not over all gdb threads. For unixware, call elfcore_write_pstatus
13184 once before iterating over threads.
13186 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13188 * arm-tdep.h: New file.
13189 * arm-tdep.c: Include arm-tdep.h.
13190 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13191 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13192 (arm_print_float_info, arm_register_type, convert_to_extended)
13193 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13194 (arm_extract_return_value, arm_register_name): Make static.
13195 (arm_software_single_step): Similarly. Fix types in declaration.
13196 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13197 (arm_store_return_value, arm_store_struct_return): New functions.
13198 (arm_gdbarch_init): Register the above functions. Also register
13199 call_dummy_start_offset, sizeof_call_dummy_words,
13200 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13201 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13202 max_register_virtual_size, register_size. Set up
13203 prologue_cache.saved_regs here, rather than ...
13204 (_initialize_arm_tdep): ... here.
13205 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13207 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13208 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13209 (arm_print_float_info, arm_register_type, convert_to_extended)
13210 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13211 (arm_extract_return_value, arm_register_name): Delete declarations.
13212 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13213 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13214 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13215 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13216 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13217 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13218 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13219 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13220 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13221 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13222 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13223 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13225 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13226 * remote-rdi.c remote-rdp.c: Likewise.
13227 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13228 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13229 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13232 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13233 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13234 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13235 from non-ARM_ prefixed definitions.
13236 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13238 * remote-rdi.c remote-rdp.c: Likewise.
13239 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13241 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13243 * arm-tdep.c (arm_frameless_function_invocation)
13244 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13245 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13246 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13247 (arm_pop_frame, arm_get_next_pc): Make static.
13248 (arm_gdbarch_init): Register above in gdbarch structure.
13249 (arm_read_fp): Renamed from arm_target_read_fp.
13250 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13251 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13252 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13253 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13254 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13255 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13256 (arm_pc_is_thumb_dummy): Delete declarations.
13257 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13258 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13259 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13260 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13262 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13264 * symtab.c (compare_search_syms): New function.
13265 (sort_search_symbols): New function.
13266 (search_symbols): Sort symbols after searching rather than
13269 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13271 * NEWS: Linux -> GNU/Linux.
13273 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13275 * gdbarch.sh: For for level one methods, disallow a definition
13276 when partially multi-arched. Add comments explaining rationale.
13277 * gdbarch.h: Re-generate.
13279 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13281 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13282 multi-arch partial.
13284 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13286 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13287 field. Use diff -u.
13288 * gdbarch.c: Re-generate.
13290 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13292 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13293 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13296 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13298 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13299 multi-arch partial.
13300 (PUSH_ARGUMENTS): Switch to using predefault.
13301 * gdbarch.c: Regenerate.
13303 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13305 * valops.c (PUSH_ARGUMENTS): Delete definition.
13306 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13307 partial. Default to default_push_arguments.
13308 * gdbarch.h, gdbarch.c: Regenerate.
13310 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13312 * defs.h (throw_exception): Rename return_to_top_level. Update
13314 * utils.c (error_stream, internal_verror, quit): Ditto.
13315 * top.c (throw_exception, catcher): Ditto.
13316 * sparclet-rom.c (sparclet_load): Ditto.
13317 * remote.c (interrupt_query, minitelnet): Ditto.
13318 * remote-sds.c (interrupt_query): Ditto.
13319 * remote-mips.c (mips_error, mips_kill): Ditto.
13320 * ocd.c (interrupt_query): Ditto.
13321 * monitor.c (monitor_interrupt_query): Ditto.
13322 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13323 * target.h: Update comment.
13325 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13327 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13329 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13330 default_double_format.
13331 * gdbarch.h, gdbarch.c: Re-generate.
13332 * findvar.c (floatformat_unknown): Delete variable definition.
13333 * doublest.h (floatformat_unknown): Delete variable declaration.
13335 2002-02-09 Jim Blandy <jimb@redhat.com>
13337 * stabsread.c (read_type): Add code to parse Sun's syntax for
13338 prototyped function types.
13340 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13342 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13343 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13345 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13347 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13348 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13349 now _initialize_xcoffsolib gets called again and overrides the
13350 commands from solib.c in a native configuration.
13352 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13354 * doublest.c (store_typed_floating): Don't try to return a value.
13357 2002-02-08 Jim Blandy <jimb@redhat.com>
13359 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13360 is prototyped and has no arguments, print its argument list as
13363 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13365 * MAINTAINERS (write-after-approval): Add myself.
13366 (paper-trail): I've escaped!
13368 2002-02-08 Christopher Faylor <cgf@redhat.com>
13370 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13372 (_initialize_check_for_gdb_ini): Ditto.
13374 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13376 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13377 xaprintf -> xasprintf.
13379 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13381 * win32-nat.c: Remove use of printf and sprintf functions.
13383 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13385 * arm-tdep.c (arm_frame_chain_valid): Make static.
13386 (arm_push_arguments): Likewise.
13387 (arm_gdbarch_init): New function.
13388 (_initialize_arm_tdep): Call it.
13389 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13390 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13391 (FRAME_CHAIN_VALID): Delete.
13392 (arm_frame_chain_valid): Delete declaration.
13393 (PUSH_ARGUMENTS): Delete.
13394 (arm_push_arguments): Delete declaration.
13395 (CALL_DUMMY_P): Delete.
13397 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13398 Corinna Vinschen <vinschen@redhat.com>
13400 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13401 on builtin float types.
13403 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13405 * utils.c: Include <curses.h> before "bfd.h".
13406 * tui/tui-hooks.c: Likewise.
13407 * tui/tui.c: Likewise.
13408 * tui/tuiCommand.c: Likewise.
13409 * tui/tuiData.c: Likewise.
13410 * tui/tuiDataWin.c: Likewise.
13411 * tui/tuiDisassem.c: Likewise.
13412 * tui/tuiGeneralWin.c: Likewise.
13413 * tui/tuiIO.c: Likewise.
13414 * tui/tuiLayout.c: Likewise.
13415 * tui/tuiRegs.c: Likewise.
13416 * tui/tuiSource.c: Likewise.
13417 * tui/tuiSourceWin.c: Likewise.
13418 * tui/tuiStack.c: Likewise.
13419 * tui/tuiWin.c: Likewise.
13421 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13423 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13424 to include space for pseudoregs as well. Update loops accordingly.
13425 (sh_fp_frame_init_saved_regs): Ditto.
13426 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13428 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13430 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13431 Add Richard Earnshaw to Arm maintainers.
13433 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13435 * defs.h (warning_begin): Delete declaration.
13437 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13440 2002-02-07 Michael Snyder <msnyder@redhat.com>
13442 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13443 Logic bug, remove misplaced else.
13445 2002-02-07 Klee Dienes <klee@apple.com>
13447 * fork-inferior.c (fork_inferior): Add '!' to the list of
13448 characters that need to be quoted when building a string for the
13449 shell. Quote '!' specifically with a backslash, since CSH chokes
13450 when trying to evaluate "str!str".
13452 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13454 * rdi-share/host.h: Only provide a typedef for bool if it is not
13457 2002-02-04 Michael Snyder <msnyder@redhat.com>
13459 * breakpoint.h (enum bptype): Add new overlay event bp type.
13460 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13462 * breakpoint.c (create_internal_breakpoint): New function.
13463 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13464 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13465 (create_thread_event_breakpoint): Ditto.
13466 (create_solib_event_breakpoint): Ditto.
13467 (create_overlay_event_breakpoint): New function.
13468 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13469 (update_breakpoints_after_exec): Delete and re-initialize
13470 overlay event breakpoints after an exec. Add FIXME comment
13471 about longjmp breakpoint.
13472 (print_it_typical): Ignore overlay event breakpoints.
13473 (print_one_breakpoint): Ditto.
13475 (bpstat_what): Do not stop for overlay event breakpoints.
13476 (delete_breakpoint): Don't delete overlay event breakpoints.
13477 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13478 (breakpoint_re_set): Re-create overlay event breakpoint.
13480 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13481 (overlay_manual_command): Disable overlay breakpoints.
13482 (overlay_off_command): Disable overlay breakpoints.
13484 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13486 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13487 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13488 to here from config/tm-arm.h.
13489 (coff_sym_is_thumb): Make static.
13490 (arm_elf_make_msymbol_special): New function.
13491 (arm_coff_make_msymbol_special): New function.
13492 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13493 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13494 (coff_sym_is_thumb): Delete declaration.
13495 (arm_elf_make_msymbol_special): Declare.
13496 (arm_coff_make_msymbol_special): Declare.
13497 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13498 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13500 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13502 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13504 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13506 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13507 * gdbarch.c gdbarch.h: Regenerate.
13508 * arch-utils.c (default_print_float_info): New function.
13509 * arch-utils.h (default_print_float_info): Prototype it.
13510 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13511 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13512 (PRINT_FLOAT_INFO): Document it.
13514 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13515 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13516 (PRINT_FLOAT_INFO): Define.
13518 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13520 * win32-nat.c (_initialize_check_for_gdb_ini):
13521 Add typecast to sprintf argument to suppress a warning.
13523 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13525 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13526 to allow easier handling of pass state.
13527 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13528 that gives exception name and address.
13529 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13530 and set last_sig value to ourstatus->value.sig. Some missing
13532 (child_continue): Correctly report continue_status.
13533 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13534 TARGET_SIGNAL_0 (new default value).
13535 (child_resume): consider sig argument passed to decide if
13536 the exception should be passed to debuggee or not.
13538 2002-02-05 Michael Snyder <msnyder@redhat.com>
13540 * regcache.c (fetch_register): Call target_fetch_register
13541 only if we don't call FETCH_PSEUDO_REGISTER.
13542 (store_register): Call target_store_register only if we
13543 don't call STORE_PSEUDO_REGISTER.
13545 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13547 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13548 ELF_MAKE_MSYMBOL_SPECIAL.
13549 * gdbarch.c, gdbarch.h: Regenerate.
13550 * arch-utils.c (default_make_msymbol_special): New function.
13551 * arch-utils.h (default_make_msymbol_special): Export.
13552 * elfread.c (elf_symtab_read): Compile use of
13553 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13555 * coffread.c (coff_symtab_read): Ditto, for
13556 COFF_MAKE_MSYMBOL_SPECIAL.
13558 2002-02-05 Jim Blandy <jimb@redhat.com>
13560 * solib-svr4.c (svr4_truncate_ptr): New function.
13561 (svr4_relocate_section_addresses): Do the address arithmetic with
13562 the appropriate truncation for target addresses, even when
13563 CORE_ADDR is larger than a target address.
13565 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13567 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13570 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13572 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13575 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13577 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13579 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13581 * gdbserver/linux-low.c: Remove unused include files.
13583 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13585 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13586 (read_inferior_memory): Use it.
13587 (write_inferior_memory): Likewise.
13589 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13591 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13592 grubbing through sys_errlist.
13594 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13596 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13598 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13599 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13601 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13603 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13604 (do_sfunc, set_cmd_sfunc): New functions.
13606 * command.h (struct cmd_list_element): Add field func.
13607 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13608 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13609 * cli/cli-decode.h: Ditto.
13611 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13612 (help_all, help_cmd_list): Ditto.
13613 (find_cmd, complete_on_cmdlist): Ditto.
13614 * top.c (execute_command): Ditto.
13616 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13619 * infcmd.c (notice_args_read): Fix function signature.
13621 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13622 * cli/cli-decode.c (add_set_cmd): Ditto.
13623 * utils.c (initialize_utils): Ditto.
13624 * maint.c (_initialize_maint_cmds): Ditto.
13625 * infrun.c (_initialize_infrun): Ditto.
13626 * demangle.c (_initialize_demangler): Ditto.
13627 * remote.c (add_packet_config_cmd): Ditto.
13628 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13629 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13630 * proc-api.c (_initialize_proc_api): Ditto.
13631 * kod.c (_initialize_kod): Ditto.
13632 * valprint.c (_initialize_valprint): Ditto.
13633 * top.c (init_main): Ditto.
13634 * infcmd.c (_initialize_infcmd): Ditto.
13635 * corefile.c (_initialize_core): Ditto.
13636 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13637 * arch-utils.c (initialize_current_architecture): Ditto.
13638 (_initialize_gdbarch_utils): Ditto.
13639 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13641 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13642 * wince.c (_initialize_inftarg): Ditto.
13643 * symfile.c (_initialize_symfile): Ditto.
13644 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13645 * language.c (_initialize_language): Ditto.
13646 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13648 2002-02-04 Michael Snyder <msnyder@redhat.com>
13650 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13652 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13654 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13655 Add rules for building the register data files.
13657 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13659 * regformats/regdat.sh: Add braces to the definition of
13660 expedite_regs_${arch}.
13662 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13664 * regformats/regdef.h (struct reg): Add comment describing the
13665 requirements for offset and size fields.
13667 2002-02-04 Andreas Schwab <schwab@suse.de>
13669 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13670 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13672 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13674 * gdbarch.sh (copyright): Update years in generated header.
13675 (SMASH_TEXT_ADDRESS): Add rule.
13676 * gdbarch.h, gdbarch.c: Re-generate.
13677 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13678 * dbxread.c: Likewise.
13679 * dwarfread.c: Likewise.
13680 * elfread.c: Likewise.
13681 * somread.c: Likewise.
13683 * arm-tdep.c (arm_smash_text_address): New function.
13684 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13686 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13688 Add support for hardware watchpoints on win32 native.
13689 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13690 CONTEXT_DEBUG_REGISTERS.
13691 (dr variable): New variable. Static array containing a local copy
13692 of debug registers.
13693 (debug_registers_changed): New variable. Reflects when debug registers
13694 are changed and need to be written to inferior.
13695 (debug_registers_used): New variable. Reflects when any debug register
13696 was set, used when new threads are created.
13697 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13699 (thread_rec): Set dr array if id is the thread of current_event .
13700 (child_continue, child_resume): Change the debug registers for all
13701 threads if debug_registers_changed.
13702 (child_add_thread): Change the debug registers if debug_registers_used.
13703 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13704 Link nm.h to new nm-cygwin.h file.
13705 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13706 of hardware registers.
13708 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13710 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13711 Restore behavour broken by 2002-01-20 Andrew Cagney
13712 <ac131313@redhat.com> IEEE_FLOAT removal.
13714 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13716 * c-valprint.c (c_val_print): Pass a proper valaddr to
13717 cp_print_class_method.
13718 * valops.c (search_struct_method): If there is only one method
13719 and args is NULL, return that method.
13721 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13723 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13724 accessing tag_name directly.
13726 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13728 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13729 of accessing tag_name directly.
13731 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13734 * gdbtypes.c (replace_type): New function.
13735 * gdbtypes.h (replace_type): Add prototype.
13736 * stabsread.c (read_type): Use replace_type.
13738 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13740 * Makefile.in (memattr.o): Add missing dependencies rule.
13742 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13744 * breakpoint.c (break_at_finish_command): Really export.
13745 (break_at_finish_at_depth_command): Ditto.
13746 (tbreak_at_finish_command): Ditto.
13747 * hppa-tdep.c: Include completer.h.
13748 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13749 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13751 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13753 * utils.c (do_write): New function.
13754 (error_stream): Rewrite combining the code from error_begin and
13756 (verror): Rewrite using error_stream.
13757 (error_begin): Delete function.
13759 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13761 * utils.c (error_begin): Make static.
13762 * defs.h (error_begin): Delete declaration.
13764 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13765 (decode_line_1): Use cplusplus_error instead of error_begin,
13766 cplusplus_hint and return_to_top_level.
13767 * coffread.c (coff_symfile_read): Use error instead of error_begin
13768 and return_to_top_level.
13769 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13771 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13773 * language.h (type_error, range_error): Make string parameter
13775 * language.c (warning_pre_print): Delete extern declaration.
13776 * dwarfread.c (warning_pre_print): Ditto.
13777 * language.c (type_error, range_error): Rewrite to use verror and
13778 vwarning instead of warning_begin.
13780 2002-02-01 Michael Snyder <msnyder@redhat.com>
13782 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13783 (set_ignore_count): Move misplaced comment back where it belongs.
13785 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13787 * command.h (NO_FUNCTION): Delete macro.
13788 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13789 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13790 * tracepoint.c (_initialize_tracepoint): Ditto.
13791 * cli/cli-decode.c (add_set_cmd): Ditto.
13792 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13794 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13796 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13797 Update ``this'' pointer when calling virtual functions.
13799 2002-02-01 Michael Snyder <msnyder@redhat.com>
13801 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13802 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13804 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13806 * regformats/reg-arm.dat: New file.
13807 * regformats/reg-i386.dat: New file.
13808 * regformats/reg-ia64.dat: New file.
13809 * regformats/reg-m68k.dat: New file.
13810 * regformats/reg-mips.dat: New file.
13811 * regformats/reg-ppc.dat: New file.
13812 * regformats/reg-sh.dat: New file.
13813 * regformats/regdef.h: New file.
13814 * regformats/regdat.sh: New file.
13816 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13818 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13819 (arm_frame_args_address, arm_frame_locals_address): New functions.
13820 (arm_frame_num_args): New function.
13821 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13822 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13823 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13825 2002-01-31 Michael Snyder <msnyder@redhat.com>
13827 * breakpoint.c (break_at_finish_command): Export.
13828 (break_at_finish_at_depth_command): Export.
13829 (tbreak_at_finish_command): Export.
13830 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13831 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13832 "txbreak" commands, which are HPPA specific.
13834 * printcmd.c (disassemble_command): Remove an ancient
13835 artifact of an old merge.
13837 * symfile.h (enum overlay_debugging_state):
13838 Define enum constant values for overlay mode.
13839 * symfile.c (overlay_debugging): Use enums instead of literals.
13840 (overlay_is_mapped, overlay_auto_command,
13841 overlay_manual_command): Ditto.
13843 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13844 breakpoint_here_p, breakpoint_inserted_here_p,
13845 breakpoint_thread_match, bpstat_stop_status,
13846 describe_other_breakpoints, check_duplicates, clear_command):
13847 Coding standard fixes.
13849 * target.c (target_xfer_memory): Add spaces, coding standard.
13850 (do_xfer_memory): Add missing line to trust-readonly
13851 code: check bfd SEC_READONLY flag for section.
13853 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13855 * PROBLEMS: Fix typo, 5.1->5.1.1.
13857 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13859 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13860 data symbols, since we search based on textlow and texthigh.
13861 (find_pc_sect_symtab): Likewise.
13863 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13865 * defs.h (vwarning): Declare.
13866 * utils.c (vwarning): New function.
13867 (warning): Call vwarning.
13868 (warning_begin): Delete function.
13870 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13871 the warning message.
13872 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13875 2002-01-30 Michael Snyder <msnyder@redhat.com>
13877 * NEWS: Mention "set trust-readonly-sections" command.
13878 Mention generate-core-file command.
13880 2002-01-15 Michael Snyder <msnyder@redhat.com>
13882 * target.c: New command, "set trust-readonly-sections on".
13883 (do_xfer_memory): Honor the suggestion to trust readonly sections
13884 by reading them from the object file instead of from the target.
13885 (initialize_targets): Register command "set trust-readonly-sections".
13887 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13889 * parse.c (target_map_name_to_register): Simplify, search regs and
13890 pseudo-regs using a single loop.
13892 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13894 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13896 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13898 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13899 * config/i386/i386v42mp.mh: Add i387-nat.o .
13900 * i386v4-nat.c: Include i387-nat.h.
13901 (supply_fpregset): Use i387_supply_fsave.
13902 (fill_fpregset): Use i387_fill_fsave.
13904 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13906 * arm-tdep.c (arm_call_dummy_words): Define.
13907 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13908 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13909 (CALL_DUMMY_WORDS): Define.
13910 (arm_call_dummy_words): Declare.
13911 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13912 (arm_linux_call_dummy_words): Declare.
13914 2002-01-30 Andreas Schwab <schwab@suse.de>
13916 * m68klinux-nat.c: Fix last change to use regcache_collect
13917 instead of referencing registers[] directly.
13919 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13921 * parse.c (target_map_name_to_register): Delete code wrapped in
13922 #ifdef REGISTER_NAME_ALIAS_HOOK.
13924 2002-01-28 Michael Snyder <msnyder@redhat.com>
13926 * regcache.c (legacy_read_register_gen): Need to be able to
13927 read pseudo-register as well as real register.
13928 (legacy_write_register_gen): Ditto.
13930 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13932 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13933 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13934 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13935 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13936 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13937 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13938 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13939 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13940 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13941 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13942 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13943 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13944 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13945 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13946 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13947 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13948 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13949 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13950 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13951 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13953 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13955 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13956 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13957 (initialize_current_architecture): Update target_byte_order using
13958 information from BFD.
13959 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13960 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13962 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13964 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13965 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13967 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13968 #ifdef INVALID_FLOAT.
13969 * infcmd.c (do_registers_info): Ditto.
13970 * values.c (unpack_double): Ditto. Add comment.
13972 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13973 already commented out.
13975 2002-01-26 Andreas Schwab <schwab@suse.de>
13977 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13978 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13979 registers and add support for PTRACE_GETREGS.
13981 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13983 GDB 5.1.1 released from 5.1 branch.
13984 * NEWS: Add 5.1.1 news.
13985 * README: Sync with 5.1 branch.
13987 2002-01-23 Fred Fish <fnf@redhat.com>
13989 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13990 stabstring on initial malloc. Reallocing will copy it for us,
13993 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13995 * Makefile.in (hpread_h): Delete.
13996 (HFILES_NO_SRCDIR): Remove hpread.h.
13997 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13998 (hpread.o): Update dependencies.
13999 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14001 * hp-psymtab-read.c: Remove file.
14002 * hp-symtab-read.c: Remove file.
14003 * hpread.h: Remove file.
14005 * hpread.c: Merge all contents of hp-psymtab-read.c,
14006 hp-symtab-read.c and hpread.h into this file, as it was prior to
14009 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14010 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14011 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14012 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14014 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14016 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14017 fill_gregset): Call gdbarch_tdep() just once, assign result to
14018 variable and use that, instead of calling the function several
14021 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14023 * configure.host: Accept sparcv9 as alias for sparc64.
14024 * configure.tgt: Likewise.
14026 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14028 * solib-aix5.c (build_so_list_from_mapfile)
14029 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14030 arguments is not reversed.
14031 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14032 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14034 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14036 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14037 modified version of obsolete sh_fetch_pseudo_register.
14038 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14039 (sh4_register_read): New function.
14040 (sh_pseudo_register_write): New function. Renamed and modified
14041 version of obsolete sh_store_pseudo_register.
14042 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14043 (sh4_register_write): New function.
14044 (sh_gdbarch_init): Remove setting of gdbarch function
14045 fetch_pseudo_register and store_pseudo_register. Remove setting of
14046 register_convert_to_raw, register_convert_to_virtual,
14047 register_convertible.
14048 (sh_sh4_register_convertible): Delete. No longer needed. All is
14049 taken care by architecture specific functions
14050 register_read/register_write.
14051 (sh_sh4_register_convert_to_virtual): Make static.
14052 (sh_sh4_register_convert_to_raw): Ditto.
14054 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14056 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14057 (floatformat_is_nan, floatformat_mantissa): Ditto.
14059 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14060 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14061 builtin_type_ieee_double_little,
14062 builtin_type_ieee_double_littlebyte_bigword,
14063 builtin_type_m68881_ext, builtin_type_i960_ext,
14064 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14065 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14066 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14067 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14069 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14071 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14072 parameter. Set frameless flag if it exists and depended of
14073 whether the scanned function is frameless or not.
14074 (xstormy16_skip_prologue): If function is frameless, return
14075 result of xstormy16_scan_prologue().
14076 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14079 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14081 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14082 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14083 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14084 sh_sh4_register_byte, sh_sh4_register_raw_size,
14085 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14086 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14087 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14088 sh_store_pseudo_register, sh_do_pseudo_register): Call
14089 gdbarch_tdep() just once, assign result to variable and use that,
14090 instead of calling the function several times.
14092 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14094 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14095 macros instead of LAST_FPU_CTRL_REGNUM.
14096 (store_register): Likewise.
14098 2002-01-21 Jim Blandy <jimb@redhat.com>
14100 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14101 is up-to-date before running the program, not just when a program
14104 2002-01-21 Fred Fish <fnf@redhat.com>
14106 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14107 when we have found all instructions we are looking for.
14109 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14111 * arm-tdep.c (arm_register_name): New function.
14112 (arm_registers_names): Make static.
14113 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14114 (arm_register_name): Declare.
14115 (REGISTER_NAME): Use it.
14117 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14118 Kevin Buettner <kevinb@redhat.com>
14120 Convert arm targets to new FRAME interface.
14121 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14122 (arm_frame_find_save_regs): Delete.
14123 (arm_frame_init_saved_regs): New.
14124 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14125 Allocate extra_info as required. Convert all uses of fsr.regs
14126 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14128 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14129 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14130 (check_prologue_cache, save_prologue_cache): Likewise.
14131 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14132 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14133 (FRAME_FIND_SAVED_REGS): Delete.
14134 (arm_frame_find_saved_regs): Delete prototype.
14135 (arm_frame_init_saved_regs): New prototype.
14136 (FRAME_INIT_SAVED_REGS): Define.
14138 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14140 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14142 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14144 From Jeff Law <law@redhat.com>:
14145 * infttrace.c: Include <sys/pstat.h>.
14146 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14147 exec file if the ttrace equivalent fails.
14149 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14151 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14152 (closeLogFile): Ditto.
14154 2002-01-20 Michael Chastain <mec@shout.net>
14156 * top.c (print_gdb_version): Bump copyright year to 2002.
14158 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14160 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14161 Zannoni and Eli Zaretskii.
14163 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14165 * buildsym.c: Update copyright years.
14166 * c-typeprint.c: Likewise.
14167 * dwarf2read.c: Likewise.
14168 * f-typeprint.c: Likewise.
14169 * gdbtypes.c: Likewise.
14170 * gdbtypes.h: Likewise.
14171 * hp-symtab-read.c: Likewise.
14172 * hpread.c: Likewise.
14173 * mdebugread.c: Likewise.
14174 * p-typeprint.c: Likewise.
14176 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14178 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14179 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14180 byte-order selectable.
14181 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14182 * arch-utils.c: Ditto.
14183 (set_endian): Ditto.
14184 (set_endian_from_file): Ditto.
14185 * gdbserver/low-sim.c (create_inferior): Ditto.
14186 * gdbarch.sh: Ditto.
14187 * gdbarch.h: Re-generate.
14188 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14189 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14190 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14191 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14192 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14193 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14194 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14195 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14197 * config/mips/tm-wince.h: Remove #undef of macro
14198 TARGET_BYTE_ORDER_SELECTABLE.
14199 * config/sh/tm-wince.h: Ditto.
14201 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14203 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14204 member function fields. Add accessor macro
14205 TYPE_FN_FIELD_ARTIFICIAL.
14206 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14207 * c-typeprint.c (c_type_print_base): Skip artificial member
14210 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14212 * f-typeprint.c: Delete unused function f_type_print_args.
14213 * p-typeprint.c: Delete unused function pascal_type_print_args.
14215 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14217 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14218 comment. Add ``artificial'' to ``union field_location''.
14220 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14222 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14223 * mdebugread.c (parse_symbol): Likewise.
14224 * stabsread.c (define_symbol): Likewise.
14225 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14226 initializing TYPE_FIELD_BITPOS to n (obsolete).
14227 (hpread_doc_function_type): Likewise.
14228 * hpread.c (hpread_function_type): Likewise.
14230 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14232 * configure.in (host_makefile_frag): Only require a host makefile
14233 fragment when a native build.
14234 * configure: Re-generate.
14236 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14238 * doublest.h (floatformat_from_type): Declare.
14239 * doublest.c (floatformat_from_type): New function.
14240 (convert_typed_floating): Use.
14242 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14243 call to function floatformat_from_type.
14245 * gdbarch.sh (IEEE_FLOAT): Delete.
14246 * gdbarch.h, gdbarch.c: Re-generate.
14247 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14248 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14249 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14250 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14251 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14252 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14253 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14254 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14255 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14256 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14257 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14258 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14260 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14261 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14262 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14263 * sh-tdep.c (sh_gdbarch_init): Ditto.
14264 * mips-tdep.c (mips_gdbarch_init): Ditto.
14265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14266 * cris-tdep.c (cris_gdbarch_init): Ditto.
14268 2002-01-20 Jiri Smid <smid@suse.cz>
14270 * configure.host, configure.tgt: Support x86-64.
14271 * NEWS: Note new target x86-64.
14273 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14274 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14275 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14276 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14277 x86-64-linux-nat.o): Fix dependencies.
14279 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14281 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14282 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14283 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14284 * config/sparc/xm-sun4os4.h: Delete file.
14285 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14287 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14289 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14290 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14291 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14292 * config/i386/i386lynx.mh (XM_FILE): Delete.
14293 * config/rs6000/xm-rs6000ly.h: Delete file.
14294 * config/sparc/xm-sparclynx.h: Delete file.
14295 * config/m68k/xm-m68klynx.h: Delete file.
14296 * config/i386/xm-i386lynx.h: Delete file.
14297 * config/xm-lynx.h: Delete file.
14298 * config/djgpp/fnchange.lst: Update.
14300 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14302 * alpha-tdep.c (alpha_register_byte): New function.
14303 (alpha_register_raw_size): Ditto.
14304 (alpha_register_virtual_size): Ditto.
14305 (alpha_skip_prologue_internal): Renamed from
14306 alpha_skip_prologue.
14307 (alpha_skip_prologue): New version that calls
14308 alpha_skip_prologue_internal.
14309 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14310 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14311 second argument from alpha_skip_prologue.
14312 (REGISTER_BYTE): Use alpha_register_byte.
14313 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14314 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14315 (FRAMELESS_FUNCTION_INVOCATION): Use
14316 generic_frameless_function_invocation_not.
14317 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14318 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14320 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14322 * config/mips/xm-news-mips.h: Delete file.
14323 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14325 * config/m88k/xm-m88k.h: Delete file.
14326 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14327 * config/m88k/xm-delta88v4.h: Ditto.
14328 * config/m88k/xm-delta88.h: Ditto.
14330 * config/alpha/xm-fbsd.h: Delete file.
14331 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14333 * config/sparc/xm-sparc.h: Delete file.
14334 * Makefile.in (xm-sun4os4.h): Delete dependency.
14335 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14336 * config/sparc/xm-sun4os4.h: Ditto.
14337 * config/sparc/xm-linux.h: Ditto.
14339 * config/i386/xm-windows.h: Delete file.
14341 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14343 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14344 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14346 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14348 * alpha-tdep.c (alpha_call_dummy_words): New.
14349 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14350 (CALL_DUMMY_P): Define.
14351 (CALL_DUMMY_WORDS): Define.
14352 (SIZEOF_CALL_DUMMY_WORDS): Define.
14354 2002-01-19 Per Bothner <per@bothner.com>
14356 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14357 isn't NULL, which can happen with some gcj-3.x-produced code.
14359 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14361 * alpha-tdep.c (alpha_register_virtual_type): New function.
14362 (alpha_init_frame_pc_first): Ditto.
14363 (alpha_fix_call_dummy): Ditto.
14364 (alpha_store_struct_return): Ditto.
14365 (alpha_extract_struct_value_address): Ditto.
14366 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14367 alpha_register_virtual_type.
14368 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14369 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14370 alpha_extract_struct_value_address.
14371 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14372 (INIT_FRAME_PC): Use init_frame_pc_noop.
14373 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14375 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14377 * i386gnu-nat.c: Include "i386-tdep.h".
14378 (fetch_fpregs): Simplify code dealing with uninitialized floating
14379 point states such that it doesn't require FP7_REGNUM.
14381 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14383 * alpha-tdep.c (frame_extra_info): New.
14384 (alpha_find_saved_regs): Make static. Use
14386 (alpha_frame_init_saved_regs): New function.
14387 (alpha_frame_saved_pc): Use frame->extra_info.
14388 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14389 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14390 (init_extra_frame_info): Rename to...
14391 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14392 (alpha_print_extra_frame_info): New function.
14393 (alpha_frame_locals_address): Ditto.
14394 (alpha_frame_args_address): Ditto.
14395 (alpha_pop_frame): Use frame->extra_info.
14396 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14397 alpha_frame_args_address.
14398 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14399 (alpha_find_saved_regs): Remove prototype.
14400 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14401 (EXTRA_FRAME_INFO): Remove.
14402 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14403 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14405 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14407 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14408 (alpha_cannot_fetch_register): Ditto.
14409 (alpha_cannot_store_register): Ditto.
14410 (alpha_register_convertible): Ditto.
14411 (alpha_use_struct_convention): Ditto.
14412 * config/alpha/tm-alpha.h: Update copyright years.
14413 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14414 (INNER_THAN): Use core_addr_lessthan.
14415 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14416 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14417 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14418 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14419 (FRAME_CHAIN): Remove unnecessary cast.
14421 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14423 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14426 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14428 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14429 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14430 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14431 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14432 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14433 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14434 * x86-64-linux-nat.c: Ditto.
14436 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14438 * alpha-tdep.c (alpha_register_name): New function.
14439 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14440 (REGISTER_NAME): Define.
14442 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14444 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14446 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14448 * alpha-tdep.c: Update copyright years.
14449 (alpha_next_pc): New function.
14450 (alpha_software_single_step): Ditto.
14451 * config/alpha/tm-alpha.h: Add prototype for
14452 alpha_software_single_step.
14454 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14456 * alphabsd-nat.c: Update copyright years.
14457 (fill_gregset): Use regcache_collect.
14458 (fill_fpregset): Likewise.
14459 (fetch_inferior_registers): Only fetch integer registers
14460 if requested to do so.
14461 (store_inferior_registers): Only store integer registers
14462 if requested to do so.
14464 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14466 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14467 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14468 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14469 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14470 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14471 * config/arm/linux.mh (XDEPFILES): Delete.
14472 * config/arm/nbsd.mh (XDEPFILES): Delete.
14473 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14474 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14475 * config/i386/i386m3.mh (XDEPFILES): Delete.
14476 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14477 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14478 * config/i386/fbsd.mh (XDEPFILES): Delete.
14479 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14480 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14481 * config/i386/i386v4.mh (XDEPFILES): Delete.
14482 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14483 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14484 * config/i386/i386aix.mh (XDEPFILES): Delete.
14485 * config/i386/go32.mh (XDEPFILES): Delete.
14486 * config/i386/cygwin.mh (XDEPFILES): Delete.
14487 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14488 * config/i386/i386mach.mh (XDEPFILES): Delete.
14489 * config/i386/i386v32.mh (XDEPFILES): Delete.
14490 * config/i386/linux.mh (XDEPFILES): Delete.
14491 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14492 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14493 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14494 * config/i386/i386sco.mh (XDEPFILES): Delete.
14495 * config/i386/i386v.mh (XDEPFILES): Delete.
14496 * config/i386/nbsd.mh (XDEPFILES): Delete.
14497 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14498 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14499 * config/i386/symmetry.mh (XDEPFILES): Delete.
14500 * config/i386/obsd.mh (XDEPFILES): Delete.
14501 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14502 * config/ia64/linux.mh (XDEPFILES): Delete.
14503 * config/ia64/aix.mh (XDEPFILES): Delete.
14504 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14505 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14506 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14507 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14508 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14509 * config/m68k/linux.mh (XDEPFILES): Delete.
14510 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14511 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14512 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14513 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14514 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14515 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14516 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14517 * config/m88k/delta88.mh (XDEPFILES): Delete.
14518 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14519 * config/m88k/m88k.mh (XDEPFILES): Delete.
14520 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14521 * config/mips/linux.mh (XDEPFILES): Delete.
14522 * config/mips/irix6.mh (XDEPFILES): Delete.
14523 * config/mips/irix5.mh (XDEPFILES): Delete.
14524 * config/mips/irix4.mh (XDEPFILES): Delete.
14525 * config/mips/irix3.mh (XDEPFILES): Delete.
14526 * config/mips/decstation.mh (XDEPFILES): Delete.
14527 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14528 (NATDEPFILES): Move core-aout.o to here.
14529 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14530 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14531 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14532 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14533 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14534 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14535 * config/pa/hpux11.mh (XDEPFILES): Delete.
14536 * config/powerpc/aix.mh (XDEPFILES): Delete.
14537 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14538 * config/powerpc/linux.mh (XDEPFILES): Delete.
14539 * config/romp/rtbsd.mh: Rename XDEPFILES.
14540 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14541 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14542 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14543 * config/s390/s390.mh (XDEPFILES): Delete.
14544 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14545 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14546 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14547 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14548 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14549 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14550 * config/sparc/linux.mh (XDEPFILES): Delete.
14551 * config/vax/vaxult.mh (XDEPFILES): Delete.
14552 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14553 * Makefile.in (DEPFILES): Remove XDEPFILES.
14555 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14557 * utils.c (internal_verror): Fix comments, default is yes not no.
14558 Update queries to match. Default to quit and dump core.
14560 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14562 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14564 * defs.h, event-top.c, gdbcmd.h: Ditto.
14565 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14566 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14567 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14568 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14569 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14570 * mi/mi-main.c:Ditto.
14572 * stack.c, symfile.c: Update copyright.
14574 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14576 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14577 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14578 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14579 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14581 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14583 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14584 * gdbserver/low-lynx.c (myattach): Likewise.
14585 * gdbserver/low-nbsd.c (myattach): Likewise.
14586 * gdbserver/low-sim.c (myattach): Likewise.
14587 * gdbserver/low-sparc.c (myattach): Likewise.
14588 * gdbserver/low-sun3.c (myattach): Likewise.
14590 * gdbserver/low-linux.c (myattach): New function.
14592 * gdbserver/server.c (attach_inferior): New function.
14593 (main): Handle "--attach".
14595 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14597 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14600 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14602 * c-typeprint.c (is_type_conversion_operator): Add additional
14603 check for non-conversion operators.
14605 2002-01-15 Michael Snyder <msnyder@redhat.com>
14607 * linux-proc.c: Add "info proc" command, a la procfs.c.
14608 (read_mapping): New function, abstract and re-use code.
14609 (linux_find_memory_regions): Use new func read_mapping.
14610 (linux_info_proc_cmd): New function, implement "info proc".
14611 (_initialize_linux_proc): Add new command "info proc".
14613 2002-01-15 Michael Snyder <msnyder@redhat.com>
14615 * symfile.c (generic_load): Use bfd_map_over_sections method
14616 instead of manipulating bfd structure members directly.
14617 (add_section_size_callback): New function, bfd sections callback
14618 used by generic_load.
14619 (load_sections_callback): New function, bfd sections callback
14620 used by generic_load.
14622 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14624 [Based on work by Jim Blandy]
14625 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14626 (builtin_type_vec128): Export.
14627 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14629 (builtin_type_vec128): New builtin type for 128 bit vector
14631 (build_gdbtypes): Initialize builtin_type_v16qi and
14632 builtin_type_v8hi. Create the vec128 register builtin type
14634 (build_builtin_type_vec128): New function.
14635 (_initialize_gdbtypes): Register builtin_type_v16qi and
14636 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14637 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14638 AltiVec register to new builtin type.
14640 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14642 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14645 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14647 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14648 CLEAN_UP_REGISTER_VALUE.
14649 * regcache.c (supply_register): Update only call.
14651 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14653 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14654 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14655 a29k-*-vxworks* targets as obsolete.
14657 2002-01-14 Michael Snyder <msnyder@redhat.com>
14659 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14660 until we can resolve portability issues.
14661 * gregset.h: Remove references to fpxregs.
14662 * gcore.c (gcore_command): Initialize note_sec to NULL.
14664 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14666 * signals.c (target_signal_to_name): Rewrite. Only use
14667 signals[].name when in bounds and non-NULL.
14669 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14671 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14672 * signals.c (target_signal_to_name): Verify that SIG is within the
14673 bounds of the signals array.
14675 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14677 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14679 2002-01-13 Keith Seitz <keiths@redhat.com>
14681 * stack.c (print_frame_info_base): Print the frame's pc
14682 only if when print_frame_info_listing_hook is not defined.
14684 2002-01-13 Keith Seitz <keiths@redhat.com>
14686 * varobj.c (varobj_set_value): Make sure that there were no
14687 errors evaluating the object before attempting to set its
14689 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14690 so this offset adjustment is no longer necessary.
14691 (create_child): Don't set the error flag if the child is
14692 a CPLUS_FAKE_CHILD.
14693 (value_of_child): If value_fetch_lazy fails, return NULL
14694 so that callers will be notified that an error occurred.
14695 (c_value_of_variable): Delay check of variable's validity
14696 until later. We actually want all structs and unions to have
14698 Do not return "???" for variables which could not be evaluated.
14699 This error condition must be returned to the caller so that it
14700 can get the error condition from gdb.
14701 (cplus_name_of_child): Adjust index for vptr before figuring
14702 out the name of the child.
14703 (cplus_value_of_child): If a child's (real) parent is not valid,
14704 don't even bother trying to give a value for it. Just return
14705 an error. Change all instances in this function.
14706 (cplus_type_of_child): If our parent is one of the "fake"
14707 parents, we need to get at the type of the real parent, and
14708 derive the child's true type using this information.
14710 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14712 From 2002-01-09 John Marshall <johnm@falch.net>:
14713 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14714 sources.redhat.com, and tweak some related URLs which had
14715 suffered from linkrot.
14717 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14720 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14721 structures passed in registers.
14723 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14725 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14726 white space which prevented compilation. Reported by DSK
14727 <dsk@student.unsw.edu.au>.
14729 2002-01-11 Michael Snyder <msnyder@redhat.com>
14731 * symfile.c (build_section_addr_info_from_section_tab):
14732 Use bfd access method instead of manipulating bfd directly.
14733 (syms_from_objfile): Ditto.
14734 (simple_overlay_update_1): Ditto.
14735 (simple_overlay_update): Ditto.
14736 (generic_load): Ditto.
14737 (overlay_unmapped_address): FIXME comment, bfd access methods.
14738 (sections_overlap): FIXME comment, bfd access methods.
14739 (pc_in_mapped_range): FIXME comment, bfd access methods.
14740 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14741 (section_is_mapped): FIXME comment, bfd access methods.
14742 (section_is_overlay): FIXME comment, bfd access methods.
14744 * symfile.c (generic_load): Whitespace and long line cleanups.
14745 Remove duplicate variable, change several local variables to
14746 more appropriate data types.
14747 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14749 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14751 From Peter Schauer:
14752 * language.c (longest_local_hex_string_custom): Use phex_nz to
14753 convert NUM to a hex string.
14755 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14757 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14759 Update Copyright year.
14761 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14763 * language.c (longest_raw_hex_string): Delete unused function.
14765 2002-01-11 Petr Sorfa <petrs@caldera.com>
14767 * MAINTAINERS (write-after-approval): Add myself.
14768 * dwarf2read.c (read_tag_string_type): Handling of
14770 (read_tag_string_type): FORTRAN fix to prevent propagation of
14772 (set_cu_language): Handling of DW_LANG_Fortran95
14774 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14776 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14777 GETPID(inferior_ptid).
14778 (store_inferior_registers): Likewise.
14780 2002-01-10 Jason Merrill <jason@redhat.com>
14782 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14785 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14787 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14788 and bfd/elf32-sh-nbsd.c.
14790 2002-01-10 Michael Snyder <msnyder@redhat.com>
14792 * NEWS: Mention --pid and corefile/proc-id behavior change.
14794 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14795 * gcore.c: Include cli/cli-decode.h instead of command.h.
14797 * main.c (captured_main): Add new command line option "--pid".
14798 If the second command line argument (following the symbol-file)
14799 begins with a digit, try to attach to it before trying to open
14801 (print_gdb_help): Document the "--pid" argument.
14803 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14805 * completer.c (command_completer): New function.
14807 * completer.h <command_completer>: Add prototype.
14809 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14810 completer for the "help" command.
14812 2002-01-09 Jason Merrill <jason@redhat.com>
14814 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14816 2002-01-09 Michael Snyder <msnyder@redhat.com>
14818 * i386-linux-nat.c (fill_fpxregset): Make global.
14819 (store_fpxregset): Ditto.
14821 * gregset.h (gdb_fpxregset_t): Define.
14822 (supply_fpxregset): Prototype.
14823 (fill_fpxregset): Prototype.
14825 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14827 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14829 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14830 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14831 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14833 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14835 * MAINTAINERS: Update target maintainer rules so that any
14836 Maintainer can approve a tested patch for a maintenance-only
14839 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14841 * MAINTAINERS (write-after-approval): Add myself.
14843 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14846 2002-01-08 Michael Snyder <msnyder@redhat.com>
14848 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14849 real name of the executable, rather than the /proc name.
14851 2002-01-03 Michael Snyder <msnyder@redhat.com>
14853 Implement a "generate-core-file" command in gdb, save target state.
14854 * gcore.c: New file. Implement new command 'generate-core-file'.
14855 Save a corefile image of the current state of the inferior.
14856 * linux-proc.c: Add linux-specific code for saving corefiles.
14857 * target.h (struct target_ops): Add new target vectors for saving
14858 corefiles; to_find_memory_regions and to_make_corefile_notes.
14859 (target_find_memory_regions): New macro.
14860 (target_make_corefile_notes): New macro.
14861 * target.c (update_current_target): Inherit new target methods.
14862 (dummy_find_memory_regions): New place-holder method.
14863 (dummy_make_corefile_notes): New place-holder method.
14864 (init_dummy_target): Initialize new dummy target vectors.
14865 * exec.c (exec_set_find_memory_regions): New function.
14866 Allow the exec_ops vector for memory regions to be taken over.
14867 (exec_make_note_section): New function, target vector method.
14868 * defs.h (exec_set_find_memory_regions): Export prototype.
14869 * procfs.c (proc_find_memory_regions): New function, corefile method.
14870 (procfs_make_note_section): New function, corefile method.
14871 (init_procfs_ops): Set new target vector pointers.
14872 (find_memory_regions_callback): New function.
14873 (procfs_do_thread_registers): New function.
14874 (procfs_corefile_thread_callback): New function.
14875 * sol-thread.c (sol_find_memory_regions): New function.
14876 (sol_make_note_section): New function.
14877 (init_sol_thread_ops): Initialize new target vectors.
14878 * inftarg.c (inftarg_set_find_memory_regions): New function.
14879 Allow to_find_memory_regions vector to be taken over.
14880 (inftarg_set_make_corefile_notes): New function.
14881 Allow to_make_corefile_notes vector to be taken over.
14882 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14883 interface layer if not target_has_execution (may be a corefile).
14884 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14885 * config/sparc/sun4sol2.mh: Ditto.
14886 * config/alpha/alpha-linux.mh: Ditto.
14887 * config/arm/linux.mh: Ditto.
14888 * config/i386/x86-64linux.mh: Ditto.
14889 * config/ia64/linux.mh: Ditto.
14890 * config/m68k/linux.mh: Ditto.
14891 * config/mips/linux.mh: Ditto.
14892 * config/powerpc/linux.mh: Ditto.
14893 * config/sparc/linux.mh: Ditto.
14895 2002-01-07 Michael Snyder <msnyder@redhat.com>
14897 * arm-linux-nat.c: Remove references to regcache.c internal data
14898 (registers[] and register_valid[]).
14900 2002-01-07 Michael Snyder <msnyder@redhat.com>
14902 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14903 so that attaching to a pid will automatically read the process's
14904 symbol file and shlibs.
14905 * Makefile.in: Add rule for linux-proc.o.
14906 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14907 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14908 * config/arm/linux.mh: Ditto.
14909 * config/i386/linux.mh: Ditto.
14910 * config/i386/x86-64linux.mh: Ditto.
14911 * config/ia64/linux.mh: Ditto.
14912 * config/m68k/linux.mh: Ditto.
14913 * config/mips/linux.mh: Ditto.
14914 * config/powerpc/linux.mh: Ditto.
14915 * config/sparc/linux.mh: Ditto.
14917 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14919 * win32-nat.c: Add i386-tdep.h dependency.
14921 2002-01-07 Michael Snyder <msnyder@redhat.com>
14923 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14924 instead of bfd_get_arch_size. Don't bail out just because
14925 there's no exec_bfd.
14927 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14928 * p-valprint.c (pascal_object_print_value): Ditto.
14929 * somread.c (som_symtab_read): Ditto.
14930 * symfile.c (simple_free_overlay_region_table): Ditto.
14931 * valops.c (value_assign): Ditto.
14933 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14934 use tilde_expand and strerror for opening save-tracepoints file.
14936 * thread-db.c (thread_db_new_objfile): Indendation fix.
14938 * infptrace.c (GDB_MAX_ALLOCA): New define.
14939 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
14940 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
14941 can be overridden with whatever value is appropriate to the host).
14942 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14943 alloca to allocate potentially large buffer.
14944 * rs6000-nat.c (child_xfer_memory): Ditto.
14945 * symm-nat.c (child_xfer_memory): Ditto.
14946 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14948 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14950 From Nick Clifton <nickc@redhat.com>
14951 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14953 2002-01-07 Michael Snyder <msnyder@redhat.com>
14955 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14956 Don't use exec_bfd if it's NULL.
14958 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14960 * valops.c (value_arg_coerce): Fix formatting.
14962 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14964 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14965 * gnu-nat.c: Ditto.
14967 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14969 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14970 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14971 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14972 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14973 z8k-coff have not been multi-arched. Update z8k-coff build
14976 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14978 * MAINTAINERS: Mark a29k target as obsolete.
14979 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14980 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14982 * NEWS: Note that a29k targets are obsolete.
14983 * a29k-tdep.c: Mark as obsolete.
14984 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14985 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14986 a29k-*-vxworks* targets as obsolete.
14987 * remote-adapt.c: Obsolete.
14988 * remote-eb.c: Obsolete.
14989 * remote-mm.c: Obsolete.
14990 * remote-udi.c: Obsolete.
14991 * config/a29k/a29k-udi.mt: Obsolete.
14992 * config/a29k/a29k.mt: Obsolete.
14993 * config/a29k/tm-a29k.h: Obsolete.
14994 * config/a29k/tm-vx29k.h: Obsolete.
14995 * config/a29k/vx29k.mt: Obsolete.
14997 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14999 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15000 with BFD_ENDIAN_BIG.
15002 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15004 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15005 * configure, config.in: Re-generate.
15006 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15007 * defs.h: Do not include <endian.h>.
15009 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15011 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15012 * config.in: Regenerate.
15013 * configure.in: Update copyright years.
15014 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15015 * configure: Regenerate.
15016 * i386bsd-nat.c: Update copyright years.
15017 (fill_gregset): Use regcache_collect.
15018 (fetch_inferior_registers): Only fetch integer registers
15019 if requested to do so. Add support for XMM registers
15020 using PT_GETXMMREGS.
15021 (store_inferior_registers): Only store integer registers
15022 if requested to do so. Add support for XMM registers
15023 using PT_SETXMMREGS.
15024 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15025 (store_inferior_registers): Remove.
15026 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15027 (fetch_elfcore_registers): New function.
15028 (i386nbsd_elfcore_fns): New.
15029 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15030 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15032 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15033 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15034 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15035 * config/i386/tm-nbsd.h: Update copyright years.
15036 (HAVE_SSE_REGS): Define.
15037 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15038 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15039 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15040 (SIGCONTEXT_PC_OFFSET): Remove.
15041 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15043 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15045 * configure.tgt: Remove powerpc-*-macos* target.
15046 * config/m68k/xm-mpw.h: Delete file.
15047 * config/xm-mpw.h: Delete file.
15048 * ser-mac.c: Delete file.
15049 * mpw-make.sed: Delete file.
15050 * mpw-config.in: Delete file.
15051 * mac-xdep.c: Delete file.
15052 * mac-gdb.r: Delete file.
15053 * mac-defs.h: Delete file.
15054 * mac-nat.c: Delete file.
15055 * config/powerpc/macos.mh: Delete file.
15056 * config/powerpc/macos.mt: Delete file.
15057 * config/powerpc/nm-macos.h: Delete file.
15058 * config/powerpc/tm-macos.h: Delete file.
15059 * source.c (openp, open_source_file): Remove obsolete code.
15060 * top.c (gdb_readline): Ditto.
15061 * utils.c (query): Ditto.
15062 * event-top.c (display_gdb_prompt): Ditto.
15063 * Makefile.in (ser-mac.o): Delete obsolete target.
15066 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15068 * defs.h (BIG_ENDIAN): Delete macro definition.
15069 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15070 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15071 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15072 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15073 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15074 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15075 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15076 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15077 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15078 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15079 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15080 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15081 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15082 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15083 * gdbarch.c: Re-generate.
15085 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15087 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15090 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15092 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15094 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15096 * value.h (value_ptr): Delete typedef.
15098 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15100 * i386nbsd-nat.c: Update copyright years.
15101 Include i386-tdep.h.
15103 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15105 * stabsread.c: Update copyright years.
15107 From Debashis Mahata <debashis.mahata@wipro.com>:
15108 (read_struct_fields): Deal with Sun C compiler erroneous stab
15109 output for structs and unions.
15112 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15114 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15117 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15119 * cp-abi.c: Fix whitespace.
15120 (baseclass_offset): New wrapper function.
15121 * cp-abi.h (baseclass_offset): Add prototype.
15122 (struct cp_abi_ops): Add baseclass_offset pointer.
15124 * valops.c (vb_match): Move to...
15125 * gnu-v2-abi.c (vb_match): here.
15126 * valops.c (baseclass_offset): Move to...
15127 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15129 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15131 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15132 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15133 * hpacc-abi.c (init_hpacc_ops): Likewise.
15135 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15137 * valops.c (find_overload_match): Accept obj as a
15138 reference parameter. Update it before returning.
15139 * value.h (find_overload_match): Update prototype.
15140 * eval.c (evaluate_subexp_standard): Pass object to
15141 find_overload_match by reference.
15143 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15145 * valarith.c: Replace value_ptr with struct value pointer. Remove
15146 register attribute from value declarations.
15149 * scm-lang.c (scm_lookup_name): Ditto.
15151 2002-01-03 Michael Snyder <msnyder@redhat.com>
15153 Abstract the functionality of iterating over mapped memory
15154 regions into a general purpose iterator function.
15155 * procfs.c (iterate_over_mappings): New function, general purpose
15156 iterator for memory sections.
15157 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15158 (solib_mappings_callback): New function, callback for above.
15159 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15160 (info_mappings_callback): New function, callback for above.
15162 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15164 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15166 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15167 * i386-tdep.c: Include "elf-bfd.h".
15168 (process_note_abi_tag_sections): New function.
15169 (i386_gdbarch_init): Add code to recognize various OS/ABI
15172 * maint.c (_initialize_maint_cmds): Add missing \ in
15175 For older changes see ChangeLog-2001
15181 version-control: never