1 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3 * configure.in: Don't set and AC_SUBST SUBDIRS.
4 * configure: Regenerated.
6 * configure.in: Remove code dealing with shared libraries.
7 * Makefile.in: Remove HLDFLAGS and HLDENV.
8 * configure: Regenerated.
10 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12 * frame.c (deprecated_frame_xmalloc): New function.
13 (deprecated_set_frame_saved_regs_hack): New function.
14 (deprecated_set_frame_extra_info_hack): New function.
15 * frame.h (deprecated_frame_xmalloc): Declare.
16 (deprecated_set_frame_saved_regs_hack): Declare.
17 (deprecated_set_frame_extra_info_hack): Declare.
19 2003-01-04 Mark Kettenis <kettenis@gnu.org>
21 * configure.in: Move code that provides the --enable-gdbtk option
22 right after the code that handles the --enable-tui option, and
24 * configure: Regenerated.
26 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
27 AC_CHECK_FUNCS and remove the old check for pread64.
28 * acinclude.m4 (AC_GNU_SOURCE): New macro.
29 * acconfig.h (_GNU_SOURCE): Add.
30 (HAVE_PREAD64): Remove.
31 * configure, aclocal.m4, config.in: Regenerated.
33 2003-01-03 Andrew Cagney <ac131313@redhat.com>
35 * alpha-tdep.c: Use get_frame_saved_regs.
36 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
37 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
38 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
39 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
40 * vax-tdep.c, xstormy16-tdep.c: Ditto.
42 2003-01-03 Mark Kettenis <kettenis@gnu.org>
44 * configure.in: Remove all use of the SUBDIRS variable; add
45 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
46 code providing the --enable-multi-ice option, and move it right in
47 front of the code that checks whether gdbserver is supported.
49 * configure: Regenerated.
50 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
53 2003-01-03 Andrew Cagney <cagney@redhat.com>
55 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
56 * avr-tdep.c, cris-tdep.c: Ditto.
57 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
58 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
60 2003-01-03 Mark Kettenis <kettenis@gnu.org>
62 * configure.in: Remove --enable-netrom option.
63 * configure: Regenerated.
65 2003-01-03 Mark Kettenis <kettenis@gnu.org>
67 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
68 declaration for `struct re_pattern_buffer' instead.
69 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
71 2003-01-03 J. Brobecker <brobecker@gnat.com>
73 * mdebugread.c (parse_symbol): Count until the stEnd matching
76 2003-01-02 Mark Kettenis <kettenis@gnu.org>
78 * configure.in: Remove --with-cpu option.
79 subscripts. Remove evil changequotes here.
80 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
81 * config.in, configure: Regenerated.
83 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
84 * configure.in: Cleanup section that sources GDB and BFD configure
85 subscripts. Remove evil changequotes here.
86 * config.in, configure: Regenerated.
88 2003-01-02 Andrew Cagney <ac131313@redhat.com>
90 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
91 frame accessor methods.
92 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
93 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
94 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
95 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
96 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
97 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
100 2003-01-02 Mark Kettenis <kettenis@gnu.org>
102 * configure.in: Remove UI_OUT configuration code.
103 * ada-lang.c: Update assuming UI_OUT is always true.
104 * Makefile.in (UIOUT_CFLAGS): Remove.
105 * configure: Regenerated.
106 * TODO: Remove blurb about elimination of -DUI_OUT.
108 * configure.in: Move code that provides the --enable-gdbcli,
109 --enable-gdbmi options right before the code that handles the
110 --enable-tui option. Polish a bit.
111 * configure: Regenerated.
113 * configure.in: Rewrite check for GNU regex and the
114 --without-included regex option, and move it into the "Checks for
115 library functions" section. This makes us use the system regex
116 again by default on systems with version 2 of the GNU C library.
117 This was apparently broken.
118 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
119 * acconfig.h (USE_INCLUDED_REGEX): Remove.
120 * config.in, configure: Regenerated.
122 * configure.in: Move code that provides the --enable-tui option
123 before the "Checks for libraries" section. Polish the code
124 somewhat and set need_curses to yes if we build the TUI. Rewrite
125 code that looks for a library providing termcap functionality to
126 match more closely what's done in the Readline library, and move
127 it into to the "Checks for libraries" section.
128 * configure: Regenerated.
129 * Makefile.in (TERMCAP): Remove variable.
130 * config/i386/go32.mh (TERMCAP): Remove variable.
132 2003-01-02 Andrew Cagney <ac131313@redhat.com>
134 * MAINTAINERS: Mention gdb_mbuild.sh.
135 * gdb_mbuild.sh: Rewrite.
137 2003-01-02 Mark Kettenis <kettenis@gnu.org>
139 * configure.in: Fix typo in last change.
140 * config.in, configure: Regenerated.
142 2003-01-02 Andrew Cagney <ac131313@redhat.com>
144 * valarith.c (value_binop): Delete obsolete code and comments.
145 * configure.host: Ditto.
146 * buildsym.h (make_blockvector): Ditto.
147 * buildsym.c (make_blockvector): Ditto.
148 * defs.h (enum language): Ditto.
149 (chill_demangle): Ditto.
150 * elfread.c (elf_symtab_read): Ditto.
151 * dwarfread.c (CHILL_PRODUCER): Ditto.
152 (set_cu_language): Ditto.
153 (handle_producer): Ditto.
154 * expprint.c (print_subexp): Ditto.
155 * gdbtypes.c (chill_varying_type): Ditto.
156 * gdbtypes.h (builtin_type_chill_bool): Ditto.
157 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
158 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
159 (chill_varying_type): Ditto.
160 * language.h (_LANG_chill): Ditto.
161 * language.c (binop_result_type, integral_type): Ditto.
162 (character_type, string_type, structured_type): Ditto.
163 (lang_bool_type, binop_type_check): Ditto.
164 * stabsread.h (os9k_stabs): Ditto.
165 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
166 (define_symbol, read_type, read_struct_fields): Ditto.
167 (read_array_type, read_enum_type, read_huge_number): Ditto.
168 (read_range_type, start_stabs): Ditto.
169 * symfile.c (init_filename_language_table): Ditto.
170 (add_psymbol_with_dem_name_to_list): Ditto.
171 * symtab.c (symbol_init_language_specific): Ditto.
172 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
173 * symtab.h (struct general_symbol_info): Ditto.
174 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
175 * typeprint.c (typedef_print): Ditto.
176 * utils.c (fprintf_symbol_filtered): Ditto.
177 * valops.c (value_cast, search_struct_field, value_slice): Delete
179 (varying_to_slice): Delete function.
180 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
181 (varying_to_slice): Delete declaration.
182 * MAINTAINERS: Update.
184 2003-01-02 Mark Kettenis <kettenis@gnu.org>
186 * configure.in: Reorganize "Checks for library functions section"
187 a bit. Remove check for `btowc' and `isascii' functions.
188 * configure: Regenerated.
190 * acconfig.h (_MSE_INT_H): Remove.
191 * configure.in: Create "Checks for header files" section, and move
192 appropriate tests there. Don't check for objlist.h, wchar.h,
193 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
194 misdetection fix. Also add "Checks for types", "Checks for
195 compiler characteristics" and "Checks for library functions"
197 * config.in, configure: Regenerated.
199 * configure.in: Create "Checks for programs" section, and move
200 appropriate tests there.
202 2003-01-01 Mark Kettenis <kettenis@gnu.org>
204 * configure.in: Create "Checks for libraries" section, and move
205 appropriate tests there. Cleanup check for wctype in libw. Use
206 AC_SEARCH_LIBS to see whether we need libsocket.
207 * configure: Regenerated.
209 2002-12-31 Mark Kettenis <kettenis@gnu.org>
211 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
212 * config.in, configure: Regenerated.
214 2002-12-31 Mark Kettenis <kettenis@gnu.org>
216 * gdb_dirent.h: Cleanup and update code to match the example in
218 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
219 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
220 * configure: Regenerated.
222 2002-12-30 Adam Fedor <fedor@gnu.org>
224 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
225 (yylex): Initialize c to avoid uninitialized warning.
227 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
229 * doc/fdl.texi: Revert the last change.
231 2002-12-29 Mark Kettenis <kettenis@gnu.org>
233 * tracepoint.c (ISATTY): Removed.
235 2002-12-26 J. Brobecker <brobecker@gnat.com>
237 Continuing work to convert the hppa targets to multiarch partil.
239 * hppa-tdep.c: Add some missing forward declarations.
240 (frameless_function_invocation): Prefix the function name
241 by "hppa_" to avoid polluting the namespace. Update all calls
242 to use the new function name.
243 (saved_pc_after_call): Ditto.
244 (init_extra_frame_info): Ditto.
245 (frame_chain): Ditto.
246 (push_dummy_frame): Ditto.
247 (target_read_pc): Ditto.
248 (target_write_pc): Ditto.
249 (in_solib_call_trampoline): Ditto.
250 (in_solib_return_trampoline): Ditto.
251 (skip_trampoline_code): Ditto.
252 (hppa_read_fp): New function, renamed from target_read_fp.
253 (hppa_target_read_fp): New function, using hppa_read_fp.
254 This function conforms to the function profile for the
255 READ_FP gdbarch method.
256 (hppa_extract_struct_value_address): New function, extracted
257 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
259 (hppa_frame_num_args): New function.
260 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
262 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
263 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
264 for the switch to multiarch partial.
265 Update some of the macros definitions to match some changes
266 described above in the name of the function they are calling.
267 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
268 not be straightforward to convert. Do now wrap it inside
269 "#if !... #endif" to remember that this macro has still not
271 (FIX_CALL_DUMMY): Likewise.
273 2002-12-26 J. Brobecker <brobecker@gnat.com>
275 Continuing work to convert the hppa targets to multiarch partial.
277 * hppa-tdep.c (hppa_register_raw_size): New function replacing
278 the body of macro REGISTER_RAW_SIZE.
279 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
280 config/pa/tm-hppah.h. These functions will be used to initialize
281 the gdbarch structure.
282 (hppa_hpux_pc_in_sigtramp): New function.
283 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
284 (hppa_hpux_frame_base_before_sigtramp): New function.
285 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
286 Add gdbcore.h #include.
287 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
288 of this gdbarch-eligible macro to a call to the new associated
290 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
291 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
292 into a call to the new associated function.
293 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
294 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
295 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
297 2002-12-24 David Carlton <carlton@math.stanford.edu>
299 * config/sparc/tm-sparc.h: Delete duplicate definition of
300 DEPRECATED_PC_IN_CALL_DUMMY.
302 2002-12-24 Kevin Buettner <kevinb@redhat.com>
304 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
306 * configure.tgt: Recognize mips64*-*-linux*.
307 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
308 (supply_32_bit_reg): New function.
309 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
310 (fill_gregset): Use regcache_collect() instead of
311 deprecated_registers[].
312 (register_addr): Change name to mips_linux_register_addr().
313 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
314 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
315 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
316 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
317 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
318 (MIPS64_LINUX_JB_PC): New defines.
319 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
320 (mips64_elf_fpregset_t): New typedefs.
321 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
322 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
323 (mips64_linux_register_addr, set_mips_linux_register_addr)
324 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
325 (init_register_addr_data)
327 (fetch_core_registers): Add support for core file formats with 64-bit
329 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
330 (register_addr_data): New static global variable.
331 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
332 gdbarch_register_osabi() for each MIPS machine.
333 * config/mips/linux64.mt: New file.
334 * config/mips/tm-linux64.h: New file.
336 2002-12-23 Adam Fedor <fedor@gnu.org>
338 * maint.c (maintenance_demangle): Add switch to demangle
339 ObjC language symbols as well.
341 2002-12-23 Adam Fedor <fedor@gnu.org>
343 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
344 last argument from complaint function call.
346 2002-12-23 Kevin Buettner <kevinb@redhat.com>
348 * exec.c (print_section_info): Add FIXME comments regarding format
351 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
353 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
354 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
356 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
358 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
360 2002-12-23 David Carlton <carlton@math.stanford.edu>
362 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
363 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
364 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
365 information associated to a minsym, not lookup_symbol.
367 2002-12-21 Mark Kettenis <kettenis@gnu.org>
369 * x86-64-tdep.h (x86_64_init_abi): New prototype.
370 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
371 (x86_64_init_abi): Make non-static. Set number of pseudo
373 (x86_64_gdbarch_init): Remove function.
374 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
375 Remove code dealing with dissambly.
376 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
377 (_initialize_x86_64_linux_tdep): New function.
378 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
381 2002-12-14 Mark Kettenis <kettenis@gnu.org>
383 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
384 (struct gdb_osabi_handler): Remove member `arch'. Add member
386 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
387 construct a `struct bfd_arch_info' and store it in the `struct
388 gdb_osabi_handler' that is created.
389 (gdbarch_init_osabi): Check for compatibility based on machine
390 type and architecture.
391 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
393 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
394 second argument in call to gdbarch_register_osabi.
395 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
396 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
397 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
398 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
399 * arm-tdep.c (_initialize_arm_tdep): Likewise.
400 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
401 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
402 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
403 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
404 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
405 * i386-tdep.c (_initialize_i386_tdep): Likewise.
406 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
407 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
408 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
409 _initialize_i386bsd_tdep and updated likewise.
410 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
411 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
412 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
413 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
414 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
415 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
416 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
417 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
418 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
419 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
421 2002-12-20 Kevin Buettner <kevinb@redhat.com>
423 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
424 DT_MIPS_RLD_MAP case for 64-bit targets.
426 2002-12-20 Kevin Buettner <kevinb@redhat.com>
428 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
429 ``temp_saved_regs'', not the pointer or other storage contiguous
432 2002-12-20 Kevin Buettner <kevinb@redhat.com>
434 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
435 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
436 (mips_linux_get_longjmp_target): Delete declarations.
437 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
438 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
439 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
440 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
441 (mips_linux_get_longjmp_target)
442 (mips_linux_svr4_fetch_link_map_offsets): Make static.
443 (mips_linux_init_abi): New function.
444 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
446 2002-12-19 Keith Seitz <keiths@redhat.com>
448 patch committed by Elena Zannoni <ezannoni@redhat.com>
449 * thread.c (do_captured_list_thread_ids): Call prune_threads and
450 target_find_new_threads. Fix for PR mi/669.
452 2002-12-19 David Carlton <carlton@math.stanford.edu>
454 * linespec.c (decode_line_1): Move code into decode_all_digits.
455 (decode_all_digits): New function.
457 2002-12-19 Kevin Buettner <kevinb@redhat.com>
459 * exec.c (print_section_info): Select a format string to use with
460 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
462 2002-12-18 Andrew Cagney <ac131313@redhat.com>
464 * frame.c (deprecated_update_current_frame_pc_hack): Replace
465 deprecated_update_current_frame_pc_hack.
466 (deprecated_update_frame_base_hack): New function.
467 * frame.h (deprecated_update_frame_pc_hack): Replace
468 (deprecated_update_frame_base_hack): Declare.
469 * infrun.c (normal_stop): Update.
471 2002-12-18 Andrew Cagney <ac131313@redhat.com>
473 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
474 frame_extra_info_zalloc.
475 (rs6000_frame_args_address): Use get_frame_extra_info.
476 (frame_get_saved_regs): Use get_frame_saved_regs.
477 (frame_initial_stack_address): Use get_frame_saved_regs and
478 get_frame_extra_info.
479 (frame_initial_stack_address): Use get_frame_extra_info.
481 2002-12-17 Kevin Buettner <kevinb@redhat.com>
483 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
485 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
486 checks for r3900_regnames[].
488 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
490 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
492 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
494 2002-12-17 David Carlton <carlton@math.stanford.edu>
496 * symtab.c (lookup_partial_symbol): Don't search past the end of
499 2002-12-17 Andrew Cagney <ac131313@redhat.com>
501 * stack.c (frame_info): Use get_frame_saved_regs.
502 * breakpoint.c (until_break_command): Use get_frame_pc.
504 2002-12-16 Kevin Buettner <kevinb@redhat.com>
506 * buildsym.c (block_end_complaint, anon_block_end_complaint)
507 (innerblock_complaint, innerblock_anon_complaint)
508 (blockvector_complaint): Delete deprecated complaint structs.
509 (finish_block, make_blockvector, end_symtab): Replace calls
510 to complain() with calls to complaint().
511 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
512 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
513 (unexpected_type_complaint, bad_sclass_complaint)
514 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
515 Delete deprecated complaint structs.
516 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
517 Replace calls to complain() with calls to complaint().
518 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
519 (unknown_symtype_complaint, unknown_symchar_complaint)
520 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
521 (lbrac_mismatch_complaint, repeated_header_complaint)
522 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
523 Delete deprecated complaint structs.
524 (unknown_symtype_complaint, lbrac_mismatch_complaint)
525 (repeated_header_complaint)
526 (function_outside_compiliation_unit_complaint): New functions.
527 (add_old_header_file, find_corresponding_bincl_psymtab)
528 (set_namestring, find_stab_function_addr, read_dbx_symtab)
529 (process_one_symbol): Replace calls to complain() with, possibly
530 indirect, calls to complaint().
531 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
532 (unknown_attribute_form, unknown_attribute_length)
533 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
534 (const_ignored, botched_modified_type, op_deref2, op_deref4)
535 (basereg_not_handled, dup_user_type_allocation)
536 (dup_user_type_definition, missing_tag, bad_array_element_type)
537 (subscript_data_items, unhandled_array_subscript_format)
538 (unknown_array_subscript_format, not_row_major)
539 (missing_at_name): Delete deprecated complaint structs.
540 (bad_die_ref_complaint, unknown_attribute_form_complaint)
541 (dup_user_type_definition_complaint)
542 (bad_array_element_type_complaint): New functions.
543 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
544 (decode_subscript_data_item, dwarf_read_array_type)
545 (read_tag_string_type, read_subroutine_type, read_func_scope)
546 (locval, scan_partial_symbols, decode_modified_type)
547 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
548 (attribute_size): Replace calls to complain() with, possibly
549 indirect, calls to complaint().
550 * elfread.c (section_info_complaint, section_info_dup_complaint)
551 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
552 Delete deprecated complaint structs.
553 (elf_symtab_read, elfstab_offset_sections): Replace calls to
554 complain() with calls to complaint().
555 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
557 (stub_noname_complaint): New function.
558 (check_typedef, add_mangled_type): Replace calls to complain()
559 with calls to complaint().
560 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
561 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
562 (hpread_unhandled_type_complaint, hpread_struct_complaint)
563 (hpread_array_complaint, hpread_type_lookup_complaint)
564 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
565 (hpread_unhandled_common_complaint)
566 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
567 struct definitions and declarations.
568 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
569 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
570 Replace calls to complain() with, possibly indirect, calls to
572 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
574 * mdebugread.c (bad_file_number_complaint, index_complaint)
575 (aux_index_complaint, block_index_complaint)
576 (unknown_ext_complaint, unknown_sym_complaint)
577 (unknown_st_complaint, block_overflow_complaint)
578 (basic_type_complaint, unknown_type_qual_complaint)
579 (array_index_type_complaint, bad_tag_guess_complaint)
580 (block_member_complaint, stEnd_complaint)
581 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
582 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
583 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
584 (bad_continued_complaint, bad_rfd_entry_complaint)
585 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
586 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
587 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
588 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
590 (index_complaint, unknown_ext_complaint, basic_type_complaint)
591 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
592 (unexpected_type_code_complaint)
593 (function_outside_compilation_unit_complaint): New functions.
594 (parse_symbol, parse_type, upgrade_type, parse_procedure)
595 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
596 Replace calls to complain() with, possibly indirect calls to
598 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
599 Delete deprecated complaint structs.
600 (lookup__objc_class, lookup_child_selector): Replace complain()
602 * remote-vx.c (cant_contact_target): Delete deprecated complaint
604 (vx_lookup_symbol): Replace complain() with complaint().
605 * stabsread.c (invalid_cpp_abbrev_complaint)
606 (invalid_cpp_type_complaint, member_fn_complaint)
607 (const_vol_complaint, error_type_complaint)
608 (invalid_member_complaint, range_type_base_complaint)
609 (reg_value_complaint, vtbl_notfound_complaint)
610 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
611 (unresolved_sym_chain_complaint, stabs_general_complaint)
612 (lrs_general_complaint, multiply_defined_struct): Delete
613 deprecated complaint structs.
614 (invalid_cpp_abbrev_complaint, ref_value_complaint)
615 (stabs_general_complaint, lrs_general_complaint)
616 (msg_unknown_complaint): New functions.
617 (dbx_lookup_type, read_cfront_baseclasses)
618 (read_cfront_member_functions, resolve_symbol_reference)
619 (define_symbol, resolve_live_range, add_live_range, read_type)
620 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
621 (read_one_struct_field, read_baseclasses, read_tilde_fields)
622 (read_cfront_static_fields, attach_fields_to_type)
623 (complain_about_struct_wipeout, read_range_type)
624 (common_block_start, common_block_end, cleanup_undefined_types)
625 (scan_file_globals): Replace complain() with complaint().
626 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
627 Delete deprecated complaint struct declarations.
628 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
629 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
630 (bf_not_found_complaint, ef_complaint, eb_complaint)
631 (function_outside_compilation_unit_complaint): New functions.
632 (record_include_begin, record_include_end, enter_line_range)
633 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
634 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
635 complain() with complaint().
637 2002-12-16 Andrew Cagney <ac131313@redhat.com>
639 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
640 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
641 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
642 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
643 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
644 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
645 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
646 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
647 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
648 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
649 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
650 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
651 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
652 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
653 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
654 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
655 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
656 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
657 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
658 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
659 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
660 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
661 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
662 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
663 * config/m88k/xm-dgux.h: Delete.
664 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
665 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
666 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
667 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
668 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
669 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
670 * ch-valprint.c: Delete.
672 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
674 * infrun.c (handle_inferior_event): Rearrange code to resume if
675 no catchpoint triggers for an event.
677 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
679 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
680 and TARGET_WAITKIND_VFORKED cases.
682 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
684 * infrun.c (handle_inferior_event): Assume that catchpoints
685 are not affected by DECR_PC_AFTER_BREAK.
687 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
689 * target.c (update_current_target): Don't inherit DONT_USE.
690 * target.h (struct target_ops): Remove DONT_USE.
691 (target_next): Remove macro.
693 2002-12-15 Mark Kettenis <kettenis@gnu.org>
695 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
697 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
699 * arm-tdep.c (convert_from_extended): New argument to hold the
700 type of floating point result we want to convert to. Make input
701 argument const. Fix all callers.
702 (convert_to_extended): Similarly.
703 (arm_extract_return_value): Now takes a regcache argument. Change
704 code to use regcache accessor functions. Correctly extract
705 smaller-than-word results on big-endian machines.
706 (arm_store_return_value): Now takes a regcache argument. Change
707 code to use regcache accessor functions. Correctly zero/sign extend
708 smaller than word results before storing into r0.
709 (arm_gdbarch_init): Register new-style extract_return_value and
710 store_return_value functions.
712 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
714 * thread-db.c (thread_from_lwp): Uniquify error msg.
715 (lwp_from_thread): Ditto.
716 (check_event): Ditto.
717 (find_new_threads_callback): Ditto.
718 (thread_db_pid_to_str): Ditto.
720 2002-12-13 Andrew Cagney <ac131313@redhat.com>
722 * frame.h (get_frame_saved_regs): Declare.
723 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
725 * frame.c (get_frame_saved_regs): New function.
726 (frame_saved_regs_zalloc): Return the allocated saved_regs.
728 2002-12-13 Andrew Cagney <ac131313@redhat.com>
730 * frame.c (deprecated_update_current_frame_pc_hack): New
732 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
733 * infrun.c (normal_stop): Use said function instead of directly
734 modifying the frame's PC.
736 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
738 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
740 2002-12-13 Kevin Buettner <kevinb@redhat.com>
742 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
743 config/mips/tm-irix6.h (NUM_REGS): Delete.
744 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
745 (temp_saved_regs): Declare as a pointer rather than an array.
746 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
747 that ``temp_saved_regs'' has storage allocated to it and that
748 it's the correct size.
750 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
752 * defs.h (init_last_source_visited): New prototype.
754 * source.c (add_path): New function that adds to a specified path.
755 (mod_path): Change to call add_path.
756 (init_last_source_visited): New function to allow interfaces to
757 initialize static variable: last_source_visited. Part of fix
759 * Makefile.in: Add support for mi/mi-cmd-env.c.
761 2002-12-13 Andrew Cagney <ac131313@redhat.com>
763 * frame.h (frame_id_unwind): Declare.
764 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
766 (frame_id_unwind_ftype): Declare.
767 * frame.c (frame_id_unwind): New function.
768 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
769 (create_new_frame, get_prev_frame): Pass id_unwind to
771 (frame_saved_regs_id_unwind): New function.
772 (frame_saved_regs_id_unwind): New function.
773 * dummy-frame.c (dummy_frame_id_unwind): New function.
774 (struct dummy_frame): Add field id.
775 (generic_push_dummy_frame): Initialize `id'.
776 * dummy-frame.h (dummy_frame_id_unwind): Declare.
778 2002-12-13 Andrew Cagney <ac131313@redhat.com>
780 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
781 pass that to set_momentary_breakpoint. Move comments to where they
783 * frame.h (set_current_frame): Delete declaration.
784 * frame.c (set_current_frame): Delete function.
786 2002-12-13 Andrew Cagney <ac131313@redhat.com>
788 * frame.c (frame_extra_info_zalloc): New function.
789 * frame.h (frame_extra_info_zalloc): Declare.
791 2002-12-13 Joel Brobecker <brobecker@gnat.com>
793 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
794 in the previous prototype change to set_momentary_breakpoint.
796 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
798 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
800 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
801 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
802 (stop_stepping): Remove outdated check for child vfork events.
804 2002-12-12 Andrew Cagney <ac131313@redhat.com>
806 * GDB 5.3 released from gdb_5_3-branch.
808 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
810 * corelow.c (init_core_ops): Delete references to to_require_attach
811 and to_require_detach.
812 * exec.c (init_exec_ops): Likewise.
813 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
814 hppa_require_detach directly.
815 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
816 * inftarg.c (child_detach): Remove.
817 (child_detach_from_process): Rename to child_detach, remove
819 (child_attach): Remove.
820 (child_attach_to_process): Rename to child_attach, remove after_fork
822 (init_child_ops): Delete references to to_require_attach
823 and to_require_detach.
824 * infttrace.c (hppa_require_attach): Update comment.
825 * target.c (cleanup_target, update_current_target)
826 (init_dummy_target, setup_target_debug): Delete references to
827 to_require_attach and to_require_detach.
828 (find_default_require_detach, find_default_require_attach)
829 (debug_to_require_attach, debug_to_require_detach): Remove
831 * target.h (struct target_ops): Remove to_require_attach
832 and to_require_detach.
833 (target_require_attach, target_require_detach): Delete macros.
834 (find_default_require_detach, find_default_require_attach): Delete
836 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
838 2002-12-11 Andrew Cagney <ac131313@redhat.com>
840 * frame.c (get_frame_extra_info): New function.
841 * frame.h (get_frame_extra_info): Declare.
843 2002-12-11 Andrew Cagney <ac131313@redhat.com>
845 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
846 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
847 with `struct frame_id'.
848 (set_longjmp_resume_breakpoint): Ditto.
849 * infrun.c (handle_inferior_event): Update.
850 * breakpoint.c (watch_command_1, until_break_command): Update.
851 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
852 (handle_inferior_event, step_over_function): Update.
853 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
854 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
855 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
856 * infcmd.c (finish_command, run_stack_dummy): Update.
858 2002-12-11 Kevin Buettner <kevinb@redhat.com>
860 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
861 (dwarf2_non_const_array_bound_ignored)
862 (dwarf2_missing_line_number_section)
863 (dwarf2_statement_list_fits_in_line_number_section)
864 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
865 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
866 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
867 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
868 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
869 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
870 (dwarf2_missing_member_fn_type_complaint)
871 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
872 (dwarf2_const_value_length_mismatch)
873 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
874 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
875 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
876 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
877 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
878 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
879 complaints using deprecated struct..
880 (dwarf2_non_const_array_bound_ignored_complaint)
881 (dwarf2_complex_location_expr_complaint)
882 (dwarf2_unsupported_at_frame_base_complaint)
883 (dwarf2_const_value_length_mismatch_complaint)
884 (dwarf2_macros_too_long_complaint)
885 (dwarf2_macro_malformed_definition_complaint)
886 (dwarf2_invalid_attrib_class_complaint): New functions.
887 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
888 (read_structure_scope, read_array_type, read_common_block)
889 (read_tag_pointer_type, read_base_type, read_partial_die)
890 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
891 (new_symbol, dwarf2_const_value, read_type_die)
892 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
893 (parse_macro_definition, dwarf_decode_macros): Replace calls to
894 complain() with, possibly indirect, calls to complaint().
896 2002-12-11 Andrew Cagney <cagney@redhat.com>
898 * frame.c (deprecated_get_frame_saved_regs): Rename
899 get_frame_saved_regs.
900 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
901 * sparc-tdep.c: Update.
902 * hppa-tdep.c: Update.
903 * h8500-tdep.c: Update.
905 2002-12-11 Kevin Buettner <kevinb@redhat.com>
907 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
908 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
909 ``char *'' for return and parameter types.
910 * gdbarch.h, gdbarch.c: Regenerate.
911 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
912 return type from ``char *'' to ``const char *''.
913 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
916 2002-12-11 Mark Kettenis <kettenis@gnu.org>
918 * i386-tdep.c: Include "dummy-frame.h".
919 (i386_frame_chain, i386_frame_saved_pc): Replace
920 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
921 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
923 2002-12-10 Andrew Cagney <cagney@redhat.com>
925 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
926 Change to a function with predicate.
927 * gdbarch.h, gdbarch.c: Re-generate.
928 * frame.c (get_prev_frame): Update. Test
929 DEPRECATED_INIT_FRAME_PC_P.
930 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
931 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
932 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
933 * alpha-tdep.c (alpha_gdbarch_init): Update.
934 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
935 * mips-tdep.c (mips_gdbarch_init): Update.
936 * i386-interix-tdep.c (i386_interix_init_abi): Update.
937 * arm-tdep.c: Update comments.
938 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
939 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
940 * frv-tdep.c (frv_gdbarch_init): Ditto.
941 * x86-64-tdep.c (x86_64_init_abi): Ditto.
942 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
943 * s390-tdep.c (s390_gdbarch_init): Ditto.
944 * v850-tdep.c (v850_gdbarch_init): Ditto.
945 * vax-tdep.c (vax_gdbarch_init): Ditto.
946 * sh-tdep.c (sh_gdbarch_init): Ditto.
947 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
948 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
950 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
951 * i386-tdep.c (i386_gdbarch_init): Ditto.
952 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
953 * cris-tdep.c (cris_gdbarch_init): Ditto.
954 * avr-tdep.c (avr_gdbarch_init): Ditto.
955 * arm-tdep.c (arm_gdbarch_init): Ditto.
956 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
957 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
959 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
961 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
963 * hppah-nat.c (saved_vfork_pid): Add.
964 (child_post_follow_vfork): Remove.
965 (child_follow_fork): New function.
966 (child_wait): Call detach_breakpoints after receiving the child vfork.
967 Call child_resume directly instead of going through resume ().
968 Make sure we have the exec before reporting the vfork.
969 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
970 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
971 (follow_fork): New function. Call target_follow_fork.
972 (follow_inferior_reset_breakpoints): New function broken out from
973 old follow_inferior_fork.
974 (resume): Remove hack to follow exec after vfork.
975 * inftarg.c (child_post_follow_vfork): Remove.
976 (child_follow_fork): New function.
977 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
978 * target.c (cleanup_target): Replace to_post_follow_vfork with
980 (update_current_target): Likewise.
981 (setup_target_debug): Likewise.
982 (debug_to_post_follow_vfork): Remove.
983 (debug_to_follow_fork): New function.
984 * target.h (struct target_ops): Replace to_post_folow_vfork with
986 (child_post_follow_vfork): Remove prototype.
987 (child_follow_fork): Add prototype.
988 (target_post_follow_vfork): Remove macro.
989 (target_follow_fork): Add macro.
991 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
993 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
994 (child_post_follow_vfork): Cancel pending exec event if we follow
996 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
997 events have been processed. Return a fake TARGET_WAITKIND_EXECD
998 event at the following wait call if necessary.
999 * infrun.c (follow_vfork): Don't follow_exec here.
1000 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1001 case about HP/UX 10.20. Remove code pushed down to
1002 hppah-nat.c:child_wait.
1003 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1004 vfork_in_flight is set.
1006 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1008 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1009 for the parent's fork event.
1010 * infrun.c (handle_inferior_event): Only expect one fork event.
1011 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1012 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1014 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1016 * PROBLEMS: Delete reference to PR gdb/725.
1018 * MAINTAINERS (gdb.c++): Add David Carlton.
1020 2002-12-09 David Carlton <carlton@math.stanford.edu>
1022 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1023 * cli/cli-cmds.c: Ditto.
1025 2002-12-09 Andrew Cagney <cagney@redhat.com>
1027 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1028 function address in <>.
1029 * gdbarch.c: Re-generate.
1031 2002-12-09 David Carlton <carlton@math.stanford.edu>
1033 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1035 2002-12-09 David Carlton <carlton@math.stanford.edu>
1037 * linespec.c (symtab_from_filename): New function.
1038 (decode_line_1): Move code into symtab_from_filename.
1040 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1042 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1044 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1046 * f-valprint.c (info_common_command): Use get_frame_pc.
1047 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1048 * ax-gdb.c (agent_command): Ditto.
1049 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1050 (rs6000_pop_frame): Ditto.
1051 (rs6000_frameless_function_invocation): Ditto.
1052 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1053 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1054 * macroscope.c (default_macro_scope): Ditto.
1055 * stack.c (print_frame_info_base): Ditto.
1056 (print_frame, frame_info, print_frame_label_vars): Ditto.
1057 (return_command, func_command, get_frame_language): Ditto.
1058 * infcmd.c (finish_command): Ditto.
1059 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1060 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1061 (break_at_finish_at_depth_command_1): Ditto.
1062 (break_at_finish_command_1): Ditto.
1063 (until_break_command, get_catch_sals): Ditto.
1064 * blockframe.c (func_frame_chain_valid): Ditto.
1065 (frameless_look_for_prologue): Ditto.
1066 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1068 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1070 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1071 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1073 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1075 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1077 * gdbarch.h, gdbarch.c: Re-generate.
1078 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1079 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1081 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1082 declaration to a function returning a CORE_ADDR.
1083 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1084 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1085 (init_frame_pc_default): Ditto.
1086 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1087 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1088 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1089 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1090 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1091 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1093 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1094 to init_frame_pc_noop.
1095 (i386_interix_init_frame_pc): Delete function.
1096 * z8k-tdep.c (init_frame_pc): Delete function.
1097 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1098 (INIT_FRAME_PC_FIRST): Ditto.
1099 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1100 (INIT_FRAME_PC_FIRST): Ditto.
1101 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1102 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1104 (INIT_FRAME_PC_FIRST): Convert to an expression.
1105 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1107 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1109 * blockframe.c: Use get_frame_base instead of directly accessing
1110 the `struct frame_info' member frame.
1111 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1112 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1114 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1116 * Makefile.in (readline_h): Define.
1117 (completer.o): Depend on readline_h.
1119 (event-top.o): Ditto.
1126 (tracepoint.o): Ditto.
1128 (cli-dump.o): Ditto.
1129 (tui-hooks.o): Ditto.
1132 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1134 More cleanup from import of readline 4.3.
1135 * completer.h (complete_line, readline_line_completion_function):
1137 (line_completion_function): Removed, not used outside of completer.c.
1138 * completer.c (readline_line_completion_function,
1139 complete_function, line_completion_function): Use const for first
1141 (line_completion_function): Make static.
1142 (filename_completer): filename_completion_function is now called
1143 rl_filename_completion_function
1144 * corelow.c: Include <readline/readline.h>.
1150 * top.c (init_main): No need to coerce
1151 readline_line_completion_function anymore.
1152 * cli/cli-dump.c: Include <readline/readline.h>.
1154 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1156 * stack.c (frame_info): Use get_prev_frame.
1157 * blockframe.c (frame_address_in_block): Ditto.
1158 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1159 (rs6000_frameless_function_invocation): Ditto.
1160 (rs6000_frame_saved_pc): Ditto.
1161 (rs6000_frame_chain): Ditto.
1162 * arch-utils.c (init_frame_pc_default): Ditto.
1164 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1166 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1167 Delete redundant definition.
1169 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1171 Import of readline 4.3:
1172 * cli/cli-cmds.c: Include readline/tilde.h.
1173 * cli/cli-setshow.c: Ditto.
1174 * defs.h: Don't declare tilde_expand anymore, since readline
1177 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1179 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1180 -Werror on this file.
1182 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1184 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1186 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1187 * gdbarch.c: Regenerate.
1189 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1191 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1192 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1193 provide a default value.
1194 * gdbarch.h, gdbarch.c: Regenerate.
1195 * frame.c (get_prev_frame): Update. Check
1196 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1197 * s390-tdep.c (s390_gdbarch_init): Update.
1198 * mips-tdep.c (mips_gdbarch_init): Update.
1199 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1200 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1201 * alpha-tdep.c (alpha_gdbarch_init): Update.
1203 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1205 * ia64-linux-nat.c: Include gdb_string.h.
1206 * alpha-nat.c: Ditto.
1207 * ppc-linux-nat.c: Ditto.
1208 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1209 Update dependencies.
1211 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1213 * gdbthread.h: Include "frame.h".
1214 (struct thread_info): Replace step_frame_address with
1216 * inferior.h: Include "frame.h".
1217 (step_frame_id): Replace external variable step_frame_address.
1218 * gdbthread.h (save_infrun_state): Replace step_frame_address
1219 parameter with step_frame_id parameter.
1220 (load_infrun_state): Ditto.
1221 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1222 * infcmd.c (step_frame_id, step_1, step_once): Update.
1223 * thread.c (load_infrun_state, save_infrun_state): Update.
1224 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1225 (handle_inferior_event, step_over_function): Update.
1226 (normal_stop, context_switch, restore_inferior_status): Update.
1227 (struct inferior_status): Replace step_frame_address with
1230 2002-12-05 David Carlton <carlton@math.stanford.edu>
1232 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1233 DW_TAG_member as well as a declaration as being a C++ static data
1235 (read_structure_scope): Combine tests for DW_TAG_member and
1238 2002-12-05 David Carlton <carlton@math.stanford.edu>
1240 * linespec.c (decode_compound): New function.
1241 (decode_line_1): Move code into decode_compound.
1243 2002-12-05 David Carlton <carlton@math.stanford.edu>
1245 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1247 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1248 the static block. See PR gdb/804.
1250 2002-12-05 David Carlton <carlton@math.stanford.edu>
1252 * symtab.c (lookup_symbol_aux_block): New function.
1253 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1255 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1257 * gdbarch.sh: Dump the predicate function and macro values.
1258 (read): Print error on standard error.
1259 * gdbarch.c: Regenerate.
1261 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1263 * Makefile.in (mips_tdep_h): Define.
1264 (mips-tdep.o): Add mips_tdep_h to dependency list.
1265 * mips-tdep.h: New file.
1266 * mips-tdep.c (mips-tdep.h): Include.
1267 (enum mips_abi): Move to mips-tdep.h.
1268 (mips_abi): New function.
1270 2002-12-04 David Carlton <carlton@math.stanford.edu>
1272 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1274 2002-12-04 David Carlton <carlton@math.stanford.edu>
1276 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1278 (lookup_symbol_aux_minsyms): New function.
1280 2002-12-04 J. Brobecker <brobecker@gnat.com>
1282 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1284 2002-12-04 J. Brobecker <brobecker@gnat.com>
1286 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1287 which is an obsolete macro name.
1289 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1291 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1292 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1294 2002-12-03 H.J. Lu (hjl@gnu.org)
1296 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1297 (create_breakpoints): Make sure the addr_string field is not
1300 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1302 * sparc-nat.c (fetch_inferior_registers)
1303 (store_inferior_registers): Add comment on problem of LWP vs
1306 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1307 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1308 (lin_lwp_store_registers): Remove.
1309 (init_lin_lwp_ops): Use fetch_inferior_registers
1310 and store_inferior_registers directly.
1311 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1312 (store_inferior_registers): Likewise.
1315 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1317 * frame.h (get_frame_id): Convert to a function.
1318 (null_frame_id, frame_id_p): Declare.
1319 (frame_id_eq, frame_id_inner): Declare.
1320 (frame_id_build): New function.
1321 * frame.c (get_frame_id): Update. Use null_frame_id.
1322 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1324 (null_frame_id, frame_id_p): Define.
1325 (frame_id_eq, frame_id_inner): Define.
1326 (frame_id_build): New function.
1327 * varobj.c (varobj_create): Update.
1328 (varobj_update): Update.
1329 * valops.c (value_assign): Update.
1330 (new_root_variable): Update.
1331 * infrun.c (save_inferior_status): Update.
1332 * breakpoint.c (watch_command_1): Update.
1334 2002-12-03 J. Brobecker <brobecker@gnat.com>
1336 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1339 2002-12-03 Andrew Cagney <cagney@redhat.com>
1341 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1344 * PROBLEMS: Mention PR gdb/725.
1346 2002-12-03 Andreas Schwab <schwab@suse.de>
1348 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1350 2002-12-02 Adam Fedor <fedor@gnu.org>
1351 Klee Dienes <kdienes@apple.com>
1353 * objc-lang.c (objc_printstr): Add width arg to match
1355 (compare_selectors): Add 'const' to arg types.
1356 (compare_classes): Likewise.
1357 (find_imps): Cast msym pointer to avoid compiler warning.
1358 (print_object_command): Validate the address before
1359 passing it to the print routine.
1360 (find_objc_msgcall_submethod): Change function argument to
1362 * objc-lang.h: Add 'extern' to all function declarations.
1363 (value_nsstring): Add declaration.
1365 2002-12-02 J. Brobecker <brobecker@gnat.com>
1367 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1368 Fixes a build failure on HP/UX.
1370 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1372 (hpread_has_name): Advance declaration to avoid a compilation warning.
1373 (pst_syms_count): Add missing variable type. By change, the compiler
1374 was defaulting to int, which seems a good choice. Fixes a compilation
1376 (pst_syms_size): Likewise.
1378 2002-12-02 J. Brobecker <brobecker@gnat.com>
1380 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1381 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1382 later to set the proper gdbarch methods depending on the osabi.
1383 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1385 2002-12-02 J. Brobecker <brobecker@gnat.com>
1387 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1388 * osabi.c (gdb_osabi_name): Add strings images for the two new
1390 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1392 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1394 * MAINTAINERS (Java): Global maintainers are responible for Java.
1395 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1396 part Java maintainers.
1398 2002-12-02 J. Brobecker <brobecker@gnat.com>
1400 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1401 Fixes a compilation failure on AiX.
1403 2002-12-02 J. Brobecker <brobecker@gnat.com>
1405 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1406 why aix-thread.o is not listed.
1408 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1410 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1411 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1412 * gdbarch.h, gdbarch.c: Re-generate.
1413 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1414 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1415 * config/pa/tm-hppa.h, frame.h: Update.
1416 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1417 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1418 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1419 * cris-tdep.c, alpha-tdep.c: Update.
1420 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1421 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1422 (get_prev_frame): Ditto.
1424 2002-11-30 Andrew Cagney <cagney@redhat.com>
1426 * exec.c (xfer_memory): Replace boolean with int.
1427 * p-exp.y: Use 0 instead of false.
1428 * corelow.c (gdb_check_format): Change return type to int from
1430 * utils.c: Don't include <curses.h> or <term.h> first.
1432 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1434 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1435 (m68hc11_register_byte): Remove.
1436 (m68hc11_gdbarch_init): Don't set the above.
1438 2002-11-29 Andrew Cagney <cagney@redhat.com>
1440 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1441 by calling get_selected_frame.
1442 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1443 set_current_frame, create_new_frame, select_frame and
1445 * remote-e7000.c (e7000_start_remote): Ditto.
1446 * remote-mips.c (common_open): Ditto
1447 * remote-rdp.c (remote_rdp_open): Ditto.
1449 2002-11-29 Andreas Schwab <schwab@suse.de>
1451 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1452 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1453 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1454 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1455 read_memory_unsigned_integer instead of read_memory_integer when
1456 dealing with addresses and instruction opcodes.
1457 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1458 (m68k_linux_frame_saved_pc): Likewise.
1460 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1462 * stack.c (selected_frame, select_frame): Move from here ...
1463 * frame.c (selected_frame, select_frame): ... to here. Include
1465 * Makefile.in (frame.o): Update dependencies.
1466 * frame.c (get_selected_frame): New function.
1467 * frame.h (get_selected_frame): Declare.
1468 (deprecated_selected_frame): Rename selected_frame.
1469 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1470 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1471 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1472 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1473 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1474 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1475 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1476 * z8k-tdep.c, cli/cli-cmds.c: Update.
1478 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1480 * frame.h (get_selected_block): Add comments.
1482 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1484 * frame.c (pc_notcurrent): New function.
1485 (find_frame_sal): New function.
1486 * frame.h (find_frame_sal): Declare.
1487 (struct symtab_and_line): Add opaque declaration.
1488 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1490 (frame_info): Ditto.
1491 * ada-lang.c (find_printable_frame): Ditto.
1493 2002-11-28 J. Brobecker <brobecker@gnat.com>
1495 * configure.in: Check that the pthdebug library is recent enough
1496 before enabling thread support on native AiX.
1497 * configure: Regenerate.
1499 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1500 from the list of object files as it is now appended by configure
1501 if thread support is enabled.
1502 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1503 if thread support is enabled.
1505 2002-11-28 Andrew Cagney <cagney@redhat.com>
1507 * stack.c (get_selected_block): In-line get_current_block.
1508 * frame.h (get_current_block): Delete declaration.
1509 * blockframe.c (get_current_block): Delete function.
1511 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1513 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1514 USE_GENERIC_DUMMY_FRAMES.
1515 * gdbarch.h, gdbarch.c: Regenerate.
1516 * valops.c, frame.c: Update.
1517 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1518 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1519 * config/pa/tm-hppa.h, blockframe.c: Update.
1520 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1521 * m68k-tdep.c, alpha-tdep.c: Ditto.
1523 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1524 * mips-tdep.c: Ditto.
1526 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1528 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1529 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1530 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1531 * gdbarch.c, gdbarch.h: Re-generate.
1532 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1533 (CALL_DUMMY_LOCATION): Delete macro definition.
1534 (PC_IN_CALL_DUMMY): Delete macro definitions.
1536 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1537 default is already generic_pc_in_call_dummy.
1538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1539 * v850-tdep.c (v850_gdbarch_init): Ditto.
1540 * sh-tdep.c (sh_gdbarch_init): Ditto.
1541 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1542 * mips-tdep.c (mips_gdbarch_init): Ditto.
1543 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1546 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1548 * avr-tdep.c (avr_gdbarch_init): Ditto.
1550 * arm-tdep.c (arm_gdbarch_init): Do not set
1551 use_generic_dummy_frames, default is already 1.
1552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1553 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1554 * v850-tdep.c (v850_gdbarch_init): Ditto.
1555 * sh-tdep.c (sh_gdbarch_init): Ditto.
1556 * s390-tdep.c (s390_gdbarch_init): Ditto.
1557 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1559 * mips-tdep.c (mips_gdbarch_init): Ditto.
1560 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1562 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1563 * i386-tdep.c (i386_gdbarch_init): Ditto.
1564 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1565 * frv-tdep.c (frv_gdbarch_init): Ditto.
1566 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1567 * cris-tdep.c (cris_gdbarch_init): Ditto.
1568 * avr-tdep.c (avr_gdbarch_init): Ditto.
1570 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1571 call_dummy_location, default is already AT_ENTRY_POINT.
1572 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1573 * v850-tdep.c (v850_gdbarch_init): Ditto.
1574 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1575 * sh-tdep.c (sh_gdbarch_init): Ditto.
1576 * s390-tdep.c (s390_gdbarch_init): Ditto.
1577 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1578 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1579 * mips-tdep.c (mips_gdbarch_init): Ditto.
1580 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1582 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1583 * i386-tdep.c (i386_gdbarch_init): Ditto.
1584 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1585 * frv-tdep.c (frv_gdbarch_init): Ditto.
1586 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1587 * cris-tdep.c (cris_gdbarch_init): Ditto.
1588 * avr-tdep.c (avr_gdbarch_init): Ditto.
1589 * arm-tdep.c (arm_gdbarch_init): Ditto.
1590 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1592 2002-11-28 Andrew Cagney <cagney@redhat.com>
1594 * frame.h: Update comments on set_current_frame, create_new_frame,
1595 flush_cached_frames, reinit_frame_cache, select_frame and
1598 2002-11-27 Andrew Cagney <cagney@redhat.com>
1600 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1601 deprecated pc_in_call_dummy function.
1602 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1603 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1604 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1605 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1606 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1608 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1610 * Makefile.in: Remove Tix dependencies.
1611 * acinclude.m4: Ditto.
1612 * aclocal.m4: Ditto.
1613 * configure.in: Ditto.
1614 * configure: Regenerated.
1616 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1618 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1619 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1620 * gdbarch.c: Re-generate.
1622 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1624 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1625 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1626 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1627 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1628 pc_in_call_dummy_at_entry_point.
1629 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1630 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1631 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1632 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1633 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1634 pc_in_call_dummy_on_stack.
1635 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1636 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1637 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1638 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1639 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1641 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1643 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1644 pc_in_call_dummy_before_text_end
1645 (deprecated_pc_in_call_dummy_after_text_end): Rename
1646 pc_in_call_dummy_after_text_end.
1647 (deprecated_pc_in_call_dummy_on_stack): Rename
1648 pc_in_call_dummy_on_stack.
1649 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1650 pc_in_call_dummy_at_entry_point.
1651 * m68k-tdep.c (m68k_gdbarch_init): Update.
1652 * s390-tdep.c (s390_gdbarch_init): Update.
1653 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1654 * vax-tdep.c (vax_gdbarch_init): Update.
1655 * sparc-tdep.c (sparc_gdbarch_init): Update.
1656 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1658 * i386-tdep.c (i386_gdbarch_init): Update.
1659 * frv-tdep.c (frv_gdbarch_init): Update.
1660 * cris-tdep.c (cris_gdbarch_init): Update.
1661 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1662 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1663 (deprecated_pc_in_call_dummy_after_text_end)
1664 (deprecated_pc_in_call_dummy_on_stack)
1665 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1666 * alpha-tdep.c (alpha_gdbarch_init): Update.
1668 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1670 * acconfig.h (HAVE_PREAD64): Add.
1671 * configure.in: Check for pread64.
1672 * config.in: Regenerated.
1673 * configure: Regenerated.
1674 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1675 * linux-proc.c (linux_proc_xfer_memory): New function.
1676 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1678 2002-11-25 David Carlton <carlton@math.stanford.edu>
1680 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1683 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1685 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1686 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1688 2002-11-25 Jim Blandy <jimb@redhat.com>
1690 * symfile.c (init_objfile_sect_indices): New function.
1691 (default_symfile_offsets): Move the section-index-initializing
1692 stuff into init_objfile_sect_indices, and call that.
1694 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1695 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1697 * symfile.c (syms_from_objfile): Adjust indentation.
1699 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1700 || info_verbose isn't true.
1702 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1704 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1705 default to get_frame_base.
1706 * gdbarch.h, gdbarch.c: Regenerate.
1707 * arch-utils.c (default_frame_address): Delete function.
1708 * arch-utils.h (default_frame_address): Delete declaration
1710 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1712 * varobj.c (find_frame_addr_in_frame_chain):
1713 Use get_frame_base instead of FRAME_FP,
1716 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1718 * frame.h (FRAME_FP): Delete macro.
1719 (get_frame_base): New function declaration.
1720 * frame.c (get_frame_base): New function.
1721 (get_frame_id): Use ->frame.
1722 (frame_find_by_id): Rewrite to use get_frame_id.
1723 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1724 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1725 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1726 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1727 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1728 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1729 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1731 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1733 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1735 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1737 * frame.c (set_unwind_by_pc): Revert change below, use
1739 (get_prev_frame): Ditto.
1741 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1743 * dummy-frame.c (pc_in_dummy_frame): New function.
1744 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1745 (find_dummy_frame): Update comment.
1746 (generic_pop_current_frame): Use get_frame_type.
1747 * dummy-frame.h (pc_in_dummy_frame): Declare.
1748 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1749 (create_new_frame): Use pc_in_dummy_frame.
1750 (get_prev_frame): Use pc_in_dummy_frame.
1751 (frame_saved_regs_register_unwind): Use get_prev_frame.
1752 (deprecated_generic_get_saved_register): Use get_prev_frame.
1754 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1756 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1758 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1759 (varobj_create): Note that frame ID should be used.
1760 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1762 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1764 * breakpoint.c: Include "gdb_assert.h".
1765 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1767 * Makefile.in (breakpoint.o): Update dependencies.
1768 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1769 deprecated_frame_in_dummy.
1770 * stack.c (print_frame_info_base): Ditto.
1771 (frame_info): Ditto.
1772 (print_frame_info_base): Ditto. Delete dead code.
1774 2002-11-23 Andreas Schwab <schwab@suse.de>
1776 * Makefile.in (m68k_tdep_h): Define.
1777 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1778 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1779 * m68k-tdep.c: Move register number enum ...
1780 * m68k-tdep.h: ... to this new file and rename the constants from
1781 E_* to M68K_*. All uses changed.
1782 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1783 * abug-rom.c: Include "m68k-tdep.h". Use
1784 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1785 * cpu32bug-rom.c: Likewise.
1786 * dbug-rom.c: Likewise.
1787 * m68k-tdep.c: Likewise.
1788 * m68klinux-nat.c: Likewise.
1789 * remote-est.c: Likewise.
1790 * rom68k-rom.c: Likewise.
1791 * config/m68k/tm-linux.h: Likewise.
1793 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1795 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1796 dummy frame initialization code.
1797 * mips-tdep.c (mips_gdbarch_init): Ditto.
1799 2002-11-22 Christopher Faylor <cgf@redhat.com>
1801 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1804 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1806 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1807 to default_frame_address.
1808 * gdbarch.h, gdbarch.c: Re-generate.
1810 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1811 or frame_locals_address to default_frame_address.
1812 * m68k-tdep.c (m68k_gdbarch_init): Update.
1813 * i386-tdep.c (i386_gdbarch_init): Update.
1814 * frv-tdep.c (frv_gdbarch_init): Update.
1815 * sh-tdep.c (sh_gdbarch_init): Update.
1816 * v850-tdep.c (v850_gdbarch_init): Update.
1817 * sparc-tdep.c (sparc_gdbarch_init): Update.
1818 * mips-tdep.c (mips_gdbarch_init): Update.
1819 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1820 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1821 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1823 * cris-tdep.c (cris_frame_args_address): Delete function.
1824 (cris_frame_locals_address): Delete function.
1825 (cris_gdbarch_init): Do not set frame_args_address or
1826 frame_locals_address.
1828 2002-11-22 Michael Snyder <msnyder@redhat.com>
1830 * thread-db.c (thread_db_load): Tell the user what's going on
1831 if dlopen fails on libthread_db.
1833 2002-11-23 Andreas Schwab <schwab@suse.de>
1835 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1836 invariant return values.
1838 2002-11-22 Andreas Schwab <schwab@suse.de>
1840 * valops.c (value_slice): Move declaration of `offset' to avoid
1843 2002-11-22 Christopher Faylor <cgf@redhat.com>
1845 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1846 (struct so_stuff): Add end_addr field.
1847 (register_loaded_dll): Calculate and store end address of loaded dll.
1848 (solib_address): New function.
1849 (child_solib_loaded_library_pathname): Pass carefully constructed
1850 section info to safe_symbol_file_add rather than ignoring it.
1851 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1853 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1854 (child_create_inferior): Fix a compiler warning.
1855 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1856 (solib_address): Declare new function.
1858 2002-11-22 Andreas Schwab <schwab@suse.de>
1860 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1863 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1865 * maint.c (_initialize_maint_cmds): Fix typo. From
1866 Francesco Potorti` <pot@gnu.org>.
1868 2002-11-21 Andrew Cagney <cagney@redhat.com>
1870 * mips-tdep.c (mips_dump_tdep): Delete references to
1871 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1872 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1873 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1874 * printcmd.c (build_address_symbolic): Delete calls to
1875 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1876 (address_info): Ditto.
1879 2002-11-19 Klee Dienes <kdienes@apple.com>
1880 Adam Fedor <fedor@gnu.org>
1882 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1883 the ability to explicitly specify the quote characters and word
1884 break characters; if NULL is specified for either, use the old
1885 behavior of using the characters used by the completer.
1886 (skip_chars): New function. Convenience wrapper around
1887 skip_quoted_chars to provide the original skip_chars behavior.
1888 * completer.h (skip_quoted_chars): Add prototype.
1890 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1892 Problems reported by Paul Eggert.
1893 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1895 2002-11-19 Andreas Schwab <schwab@suse.de>
1897 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1898 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1899 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1900 (m68k_linux_frame_saved_pc): Move to ...
1901 * m68klinux-tdep.c: ... here. New file.
1902 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1903 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1905 2002-11-19 Adam Fedor <fedor@gnu.org>
1907 * objc-exp.y: Revert to old skip_quoted usage.
1909 2002-11-19 Adam Fedor <fedor@gnu.org>
1911 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1912 (objc_lang_h): Define.
1913 (YYFILES): Add objc-exp.tab.c.
1914 (local-maintainer-clean): Remove objc-exp.tab.c.
1915 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1917 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1919 * p-exp.y (typecast rule): Add automatic dereference of
1920 pascal classes if needed.
1921 (THIS): Set current_type.
1922 Automatically dereference pascal classes.
1923 (typebase rule): Add ^typebase recognition.
1925 2002-11-18 Adam Fedor <fedor@gnu.org>
1927 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1928 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1929 (op_name): Handle OP_OBJC_SELF.
1930 * Makefile.in (expprint.o): Add additional depends.
1932 2002-11-18 Adam Fedor <fedor@gnu.org>
1934 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1935 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1936 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1937 * objc-exp.y: Likewise.
1939 2002-11-18 Adam Fedor <fedor@gnu.org>
1941 * gdb/parser-defs.h: (struct objc_class_str): New structure
1942 for parsing ObjC classes.
1944 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1946 * stack.c (frame_relative_level): Copy function from here ...
1947 * frame.c (frame_relative_level): ...to here.
1949 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1951 * frame.h (enum frame_type): Define.
1952 (get_frame_type): Declare.
1953 (struct frame_info): Add field `type'. Delete field
1954 signal_handler_caller.
1955 (deprecated_set_frame_signal_handler_caller): Declare.
1956 * frame.c (get_frame_type): New function.
1957 (deprecated_set_frame_type): New function.
1958 (create_new_frame): Set the frame's type.
1959 (get_prev_frame): Similar.
1960 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1961 * s390-tdep.c: Ditto.
1962 * m68klinux-nat.c: Ditto.
1963 * ns32k-tdep.c: Ditto.
1964 * x86-64-linux-tdep.c: Ditto.
1965 * vax-tdep.c: Ditto.
1966 * rs6000-tdep.c: Ditto.
1967 * ppc-linux-tdep.c: Ditto.
1968 * i386-interix-tdep.c: Ditto.
1969 * mips-tdep.c: Ditto.
1970 * m68k-tdep.c: Ditto.
1971 * hppa-tdep.c: Ditto.
1972 * ia64-tdep.c: Ditto.
1973 * cris-tdep.c: Ditto.
1974 * arm-tdep.c: Ditto.
1975 * alpha-tdep.c: Ditto.
1976 * i386-tdep.c: Ditto.
1978 * ada-lang.c: Ditto.
1979 * blockframe.c: Update.
1980 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1981 deprecated_set_frame_type instead of signal_handler_caller.
1982 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1983 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1984 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1986 2002-11-18 Klee Dienes <kdienes@apple.com>
1988 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1990 2002-11-18 Klee Dienes <kdienes@apple.com>
1992 * buildsym.c (pop_context): Add comment.
1994 2002-11-18 Klee Dienes <kdienes@apple.com>
1996 * buildsym.h (pop_context): Convert to function, defined in
1998 * buildsym.c: Include gdb_assert.h.
1999 (pop_context): Implement as C function. Add check for stack
2001 * dbxread.c (process_one_symbol): Complain and stop processing
2002 that symbol if we are already at the top of the context stack for
2003 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2004 when processing N_RBRAC.
2006 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2008 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2010 (struct target_waitstatus): Add opaque definition.
2011 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2012 * exec.c (init_exec_ops): Likewise.
2013 * fork-child.c (clone_and_follow_inferior): Remove.
2014 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2015 * inferior.h (clone_and_follow_inferior): Remove prototype.
2016 * infrun.c (follow_fork_mode_both): Remove.
2017 (follow_fork_mode_kind_names): Remove commented out "both".
2018 (follow_inferior_fork): Remove follow_fork_mode_both support.
2019 * inftarg.c (child_clone_and_follow_inferior): Remove.
2020 (child_post_follow_inferior_by_clone): Remove.
2021 (init_child_ops): Don't set to_clone_and_follow_inferior
2022 or to_post_follow_inferior_by_clone.
2023 * target.c (default_clone_and_follow_inferior): Remove.
2024 (cleanup_target): Don't set to_clone_and_follow_inferior
2025 or to_post_follow_inferior_by_clone.
2026 (find_default_clone_and_follow_inferior): Remove.
2027 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2028 (debug_to_clone_and_follow_inferior): Remove.
2029 (debug_to_post_follow_inferior_by_clone): Remove.
2030 (setup_target_debug): Don't set to_clone_and_follow_inferior
2031 or to_post_follow_inferior_by_clone.
2032 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2033 and to_post_follow_inferior_by_clone.
2034 (child_clone_and_follow_inferior): Remove prototype.
2035 (child_post_follow_inferior_by_clone): Remove prototype.
2036 (target_clone_and_follow_inferior): Remove macro.
2037 (target_post_follow_inferior_by_clone): Remove macro.
2038 (find_default_clone_and_follow_inferior): Remove prototype.
2040 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2042 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2043 inferior_has_vforked, and inferior_has_execd instead of
2044 target_has_forked, target_has_vforked, and target_has_execd.
2045 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2046 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2047 (CHILD_WAIT): Define.
2048 (child_wait): Add prototype.
2049 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2051 (hpux_has_vforked): Likewise, from child_has_vforked.
2052 (hpux_has_execd): Likewise, from child_has_execd.
2053 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2054 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2055 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2056 and hpux_has_syscall_event instead of the target hooks.
2057 * infrun.c (inferior_has_forked, inferior_has_vforked)
2058 (inferior_has_execd): New functions.
2059 * inftarg.c (not_same_real_pid): Remove.
2060 (child_wait): Remove references to not_same_real_pid,
2061 target_has_forked, target_has_vforked, target_has_execd,
2062 and target_has_syscall_event.
2063 (child_has_forked, child_has_vforked, child_has_execd)
2064 (child_has_syscall_event): Remove.
2065 (init_child_ops): Remove references to child_has_forked,
2066 child_has_vforked, child_has_execd, and child_has_syscall_event.
2067 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2068 (hpux_has_vforked): Likewise, from child_has_vforked.
2069 (hpux_has_execd): Likewise, from child_has_execd.
2070 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2071 * target.c (cleanup_target): Remove references to
2072 to_has_forked, to_has_vforked, to_has_execd, and
2073 to_has_syscall_event.
2074 (update_current_target): Likewise.
2075 (setup_target_debug): Likewise.
2076 (debug_to_has_forked): Remove.
2077 (debug_to_has_vforked): Remove.
2078 (debug_to_has_execd): Remove.
2079 (debug_to_has_syscall_event): Remove.
2080 * target.h (struct target_ops): Remove to_has_forked.
2081 to_has_vforked, to_has_execd, and to_has_syscall_event.
2082 (child_has_forked, child_has_vforked, child_has_execd)
2083 (child_has_syscall_event): Remove prototypes.
2084 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2086 (target_has_forked, target_has_vforked, target_has_execd)
2087 (target_has_syscall_event): Remove macros.
2089 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2091 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2092 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2093 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2094 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2095 * target.c (cleanup_target): Remove reference to
2096 to_can_follow_vfork_prior_to_exec.
2097 (update_current_target): Likewise.
2098 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2099 (setup_target_debug): Remove reference to
2100 to_can_follow_vfork_prior_to_exec.
2101 * target.h (struct target_ops): Remove
2102 to_can_follow_vfork_prior_to_exec.
2103 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2104 (target_can_follow_vfork_prior_to_exec): Remove definition.
2105 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2107 * infrun.c (follow_vfork_when_exec): Remove.
2108 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2109 (follow_exec): Likewise.
2110 (handle_inferior_event): Likewise.
2111 (keep_going): Likewise.
2113 2002-11-15 Andrew Cagney <cagney@redhat.com>
2115 * frame.c (generic_unwind_get_saved_register): Make static.
2116 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2117 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2118 defaults to generic_unwind_get_saved_register.
2119 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2120 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2121 * frv-tdep.c (frv_gdbarch_init): Ditto.
2122 * i386-tdep.c (i386_gdbarch_init): Ditto.
2123 * s390-tdep.c (s390_gdbarch_init): Ditto.
2124 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2125 * v850-tdep.c (v850_gdbarch_init): Ditto.
2126 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2127 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2128 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2130 2002-11-15 Andrew Cagney <cagney@redhat.com>
2132 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2135 2002-11-15 Andrew Cagney <cagney@redhat.com>
2137 * frame.h (sigtramp_saved_pc): Delete declaration.
2138 * blockframe.c (sigtramp_saved_pc): Delete function.
2139 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2140 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2141 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2142 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2144 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2146 * frame.c (frame_pc_unwind): New function.
2147 (frame_saved_regs_pc_unwind): New function.
2148 (frame_register_unwind): Pass unwind_cache instead of
2149 register_unwind_cache.
2150 (set_unwind_by_pc): Add unwind_pc parameter, set.
2151 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2152 (get_prev_frame): Ditto.
2153 * frame.h (frame_pc_unwind_ftype): Declare.
2154 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2155 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2156 (frame_pc_unwind): Declare.
2157 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2158 (struct dummy_frame): Add comment mentioning that values are for
2160 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2161 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2162 (generic_file_frame_chain_valid): Ditto.
2163 * stack.c (frame_info): Ditto.
2165 2002-11-15 David Carlton <carlton@math.stanford.edu>
2167 * linespec.c (locate_first_half): New function.
2168 (decode_line_1): Move code into locate_first_half.
2170 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2172 * complaints.h: Add comment explaining how to eliminate a
2173 deprecated_complain call.
2174 * complaints.h: Fix spelling errors.
2176 2002-11-15 David Carlton <carlton@math.stanford.edu>
2178 * printcmd.c: Remove #include "disasm.h".
2180 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2182 * frame.h: Move the most relevant interface functions to the start
2185 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2187 * regcache.h (deprecated_registers): Rename registers.
2188 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2189 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2190 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2191 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2192 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2193 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2194 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2195 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2196 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2197 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2198 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2199 * v850ice.c: Update.
2201 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2203 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2206 2002-11-13 Andrew Cagney <cagney@redhat.com>
2208 * regcache.h (deprecated_read_register_bytes): Rename
2209 read_register_bytes.
2210 (deprecated_write_register_bytes): Rename write_register_bytes.
2211 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2212 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2213 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2214 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2215 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2216 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2217 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2218 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2219 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2220 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2221 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2222 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2223 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2224 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2226 2002-11-13 Jim Blandy <jimb@redhat.com>
2228 * findvar.c (read_var_value): Doc fix.
2230 2002-11-13 Andrew Cagney <cagney@redhat.com>
2232 * regcache.c (struct regcache): Replace passthough_p with
2234 (regcache_xmalloc): Initialize readonly_p.
2235 (build_regcache): Initialize readonly_p.
2236 (regcache_save): New function.
2237 (regcache_restore): New function.
2238 (regcache_cpy): Re-implement using regcache_save and
2240 (regcache_raw_read): Update.
2241 (regcache_cooked_read): When a read-only cache, checked for cached
2242 pseudo register values.
2243 (regcache_raw_write): Assert that the cache is not read-only.
2244 Remove code handling a non-passthrough cache.
2245 * regcache.h (regcache_save): Declare.
2246 (regcache_restore): Declare.
2248 2002-11-13 Andrew Cagney <cagney@redhat.com>
2250 * regcache.c (struct regcache_descr): Add fields
2251 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2252 (init_legacy_regcache_descr): Compute the size of a cooked
2253 register cache and then assign that to sizeof_raw_registers. Set
2254 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2255 (init_legacy_regcache_descr): Ditto.
2257 2002-11-13 Andrew Cagney <cagney@redhat.com>
2259 * regcache.c (register_buffer): Move to near start of file, update
2261 (regcache_raw_read): Use.
2262 (regcache_raw_write): Use.
2263 (struct regcache): Rename raw_registers to registers and
2264 raw_register_valid_p to register_valid_p.
2265 (regcache_xmalloc): Update.
2266 (regcache_xfree): Update.
2267 (register_buffer): Update.
2268 (regcache_cpy): Update.
2269 (regcache_cpy_no_passthrough): Update.
2270 (regcache_valid_p): Update.
2271 (deprecated_grub_regcache_for_registers): Update.
2272 (deprecated_grub_regcache_for_register_valid): Update.
2273 (set_register_cached): Update.
2274 (regcache_raw_write): Update.
2276 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2278 * p-exp.y (name_not_typename): Use copy_name to
2279 set current_type variable for fields of THIS.
2281 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2283 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2284 * monitor.c (init_base_monitor_ops): Likewise.
2285 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2286 * remote-array.c (init_array_ops): Likewise.
2287 * remote-e7000.c (init_e7000_ops): Likewise.
2288 * remote-es.c (init_es1800_ops): Likewise.
2289 (init_es1800_child_ops): Likewise.
2290 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2291 * remote-sim.c (init_gdbsim_ops): Likewise.
2292 * remote-st.c (init_st2000_ops): Likewise.
2293 * sol-thread.c (init_sol_core_ops): Likewise.
2294 (init_sol_thread_ops): Likewise.
2295 * v850ice.c (init_850ice_ops): Likewise.
2296 * win32-nat.c (init_child_ops): Likewise.
2297 * wince.c (init_child_ops): Likewise.
2299 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2301 * utils.c (gdb_realpath): Make rp a constant pointer.
2303 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2305 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2306 a constant buffer; cannonicalize_file_name(); realpath() with a
2307 pathconf() defined buffer, xstrdup().
2309 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2311 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2312 to hang2.C; hang3.c to hang3.C.
2314 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2316 * findvar.c (read_var_value): Reenable TLS code.
2318 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2319 Jim Blandy <jimb@redhat.com>
2321 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2322 * target.c (update_current_target): Add
2323 to_get_thread_local_address.
2324 * target.h (to_get_thread_local_address): Export.
2325 (target_get_thread_local_address): Define.
2326 (target_get_thread_local_address_p): Define.
2327 * thread-db.c: Include solib-svr4.h.
2328 (td_thr_tls_get_addr_p): Define.
2329 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2330 (thread_db_get_thread_local_address): New function.
2331 (init_thread_db_ops): Initialize to_get_thread_local_address.
2332 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2333 * configure: Regenerate.
2334 * config.in: Regenerate.
2336 2002-11-11 David Carlton <carlton@math.stanford.edu>
2338 * linespec.c (set_flags): New function.
2339 (decode_line_1): Move code into set_flags.
2341 2002-11-11 David Carlton <carlton@math.stanford.edu>
2343 * linespec.c (decode_line_1): Move chunks of code to separate
2345 (initialize_defaults): New function.
2346 (decode_indirect): New function.
2348 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2350 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2351 instead of void_code_ptr.
2352 (sigtramp_saved_pc): Ditto.
2354 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2357 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2359 * gdbtypes.h (struct main_type): Move artificial flag out of
2360 loc. New member of ``struct field'' named static_kind. Reduce
2361 overloaded meaning of bitsize.
2362 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2363 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2364 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2366 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2368 (template_to_fixed_record_type, template_to_static_fixed_type)
2369 (to_record_with_fixed_variant_part): Likewise.
2370 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2371 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2372 * dwarfread.c (struct_type, enum_type): Likewise.
2373 * hpread.c (hpread_read_enum_type)
2374 (hpread_read_function_type, hpread_read_doc_function_type)
2375 (hpread_read_struct_type): Likewise.
2376 * mdebugread.c (parse_symbol): Likewise.
2378 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2380 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2381 * stack.c (print_frame_info_base): Update.
2382 (print_frame_info_base, frame_info): Update.
2383 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2384 (sparc_frame_saved_pc): Update.
2385 * ada-lang.c (find_printable_frame): Update.
2386 * breakpoint.c (deprecated_frame_in_dummy): Update.
2388 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2390 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2392 (regmap): Extend to cover all registers.
2393 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2394 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2396 (fetch_register, sore_register): Simplify.
2397 (old_fetch_inferior_registers, old_store_inferior_registers):
2399 (cannot_fetch_register, cannot_store_register): Change
2400 implementation to use regmap array to decide which registers
2401 cannot be fetched/stored. This removes $orig_eax from the
2402 registers that cannot be fetched/stored.
2403 (fetch_inferior_registers): Call fetch_register directly instead
2404 of calling old_fetch_inferior_registers.
2405 (store_inferior_registers): Call store_register directly instead
2406 of calling old_store_inferior_registers.
2407 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2408 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2409 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2411 2002-11-09 Klee Dienes <kdienes@apple.com>
2413 * i387-tdep.c (i387_supply_register): When called with NULL as a
2414 buffer, mark the register as not provided (to mirror the behavior
2415 of supply_register).
2416 (i387_supply_fxsave): Ditto.
2417 (i387_supply_fsave): Ditto (inherits the behavior from
2418 i387_supply_register).
2420 2002-11-09 Klee Dienes <kdienes@apple.com>
2422 * blockframe.c (sigtramp_saved_pc): Use
2423 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2424 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2425 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2427 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2429 * frame.c (get_prev_frame): Test prev_p to identify a previously
2430 unwound frame. Initialize prev_p.
2431 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2434 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2436 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2437 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2438 more comments. Zap dead code.
2440 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2442 * infcmd.c (print_vector_info, print_float_info): Move code that
2443 checks whether the target has any registers and whether there is a
2444 selected frame up, such that it is also used if a target provides
2445 multi-arch definitions of these functions.
2447 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2449 * Makefile.in (DESTDIR): Define.
2450 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2453 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2454 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2456 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2458 * i386-linux-tdep.c: Include "reggroups.h".
2459 (i386_linux_register_reggroup_p): New function.
2460 (i386_linux_init_abi): Set register_reggroup_p to
2461 i386_linux_register_reggroup_p.
2462 * i386-tdep.h (i386_register_reggroup_p): Declare.
2463 * i386-tdep.c: Include "reggroups.h".
2464 (i386_init_reggroups): New function.
2465 (i386_add_reggroups): New function.
2466 (i386_register_reggroup_p): New function.
2467 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2468 (_initialize_i386_tdep): Call i386_init_reggroups.
2469 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2472 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2474 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2475 request that's available in *BSD.
2477 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2479 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2482 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2484 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2485 * dummy-frame.c (find_dummy_frame): Rename
2486 generic_find_dummy_frame, make static. Return the dummy frame
2487 instead of the regcache.
2488 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2489 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2490 (dummy_frame_register_unwind): Rename
2491 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2492 * dummy-frame.h (dummy_frame_register_unwind): Rename
2493 generic_call_dummy_register_unwind.
2495 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2497 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2498 except the inclusion of "i386/tm-i386.h", to...
2499 * config/i386/nm-i386v42mp.h: ...here.
2500 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2502 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2504 * Makefile.in (frame.o): Update dependencies.
2505 * blockframe.c (current_frame, frame_obstack_alloc)
2506 (frame_saved_regs_zalloc, get_current_frame)
2507 (set_current_frame, create_new_frame)
2508 (set_unwind_by_pc, get_next_frame)
2509 (flush_cached_frames, reinit_frame_cache)
2510 (frame_saved_regs_register_unwind)
2511 (deprecated_generic_get_saved_register)
2512 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2513 (_initialize_blockframe): Move frame code from here...
2514 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2515 "annotate.h" and "dummy-frame.h".
2516 (_initialize_frame): New function.
2518 2002-11-08 Jim Blandy <jimb@redhat.com>
2520 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2521 when we finish a function a context.
2522 * buildsym.h (outermost_context_p): New macro.
2523 (Bug analyzed by David Edelsohn.)
2525 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2527 * blockframe.c: Include "dummy-frame.h".
2528 (struct dummy_frame, dummy_frame_stack)
2529 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2530 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2531 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2532 (generic_save_call_dummy_addr, generic_pop_current_frame)
2533 (generic_pop_dummy_frame, generic_fix_call_dummy)
2534 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2535 dummy frame code from here...
2536 * dummy-frame.c: ...to here. New file.
2537 * dummy-frame.h: New file.
2538 (generic_call_dummy_register_unwind): Declare.
2539 (generic_find_dummy_frame): Declare.
2540 * Makefile.in (SFILES): Add dummy-frame.c.
2541 (dummy-frame.o): Specify dependencies.
2542 (dummy_frame_h): Define.
2543 (COMMON_OBS): Add dummy-frame.o.
2544 (blockframe.o): Update dependencies.
2546 2002-11-08 Jim Blandy <jimb@redhat.com>
2548 * dwarf2read.c (read_func_scope): Restore local_symbols and
2549 param_symbols after we finish the function context. (Based on a
2550 patch from David Edelsohn.)
2552 2002-11-08 David Carlton <carlton@math.stanford.edu>
2554 * linespec.c (symbol_found): New function.
2555 (minsym_found): New function.
2556 (decode_line_1): Separate out some code into separate functions.
2558 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2560 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2561 the benefit of the interix target.
2562 * i386-tdep.h (i386_frameless_signal_p): Declare.
2564 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2566 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2567 declaration that snuck in from change below.
2569 2002-11-06 Andrew Cagney <cagney@redhat.com>
2571 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2573 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2574 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2575 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2576 (i386_mxcsr_regnum_p): new function. Use instead of
2578 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2579 (i386_sse_regnum_p): Declare.
2580 (i386_mxcsr_regnum_p): Declare.
2581 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2582 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2583 (IS_FP_REGNUM): Update definition.
2584 (IS_FPU_CTRL_REGNUM): Update definition..
2585 (IS_SSE_REGNUM): Update definition..
2586 * i386v-nat.c (register_u_addr): Update.
2587 * go32-nat.c (fetch_register): Update.
2588 (store_register): Update.
2590 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2592 Preparation work to convert the hppa targets to multiarch partial.
2594 * hppa-tdep.c: Add new functions replacing macro bodies from
2595 config/pa/tm-hppa.h. These function will be used to initialize
2596 the gdbarch structure. Import some comments from tm-hppa.h,
2597 and place them where appropriate, to avoid loosing them when
2598 we cleanup this file.
2599 (hppa_reg_struct_has_addr): New function.
2600 (hppa_inner_than): New function.
2601 (hppa_stack_align): New function.
2602 (hppa_pc_requires_run_before_use): New function.
2603 (hppa_instruction_nullified): New function.
2604 (hppa_register_byte): New function.
2605 (hppa_register_virtual_type): New function.
2606 (hppa_store_struct_return): New function.
2607 (hppa_cannot_store_register): New function.
2608 (hppa_frame_args_address): New function.
2609 (hppa_frame_locals_address): New function.
2610 (hppa_smash_text_address): New function.
2611 (hppa_coerce_float_to_double): New function. Requires the inclusion
2614 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2616 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2617 gdbarch-eligible macro to a call to the new associated function
2618 created in hppa-tdep.c.
2619 (INNER_THAN): Likewise.
2620 (STACK_ALIGN): Likewise.
2621 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2622 (INSTRUCTION_NULLIFIED): Likewise.
2623 (REGISTER_BYTE): Likewise.
2624 (REGISTER_VIRTUAL_TYPE): Likewise.
2625 (STORE_STRUCT_RETURN): Likewise.
2626 (CANNOT_STORE_REGISTER): Likewise.
2627 (FRAME_ARGS_ADDRESS): Likewise.
2628 (FRAME_LOCALS_ADDRESS): Likewise.
2629 (SMASH_TEXT_ADDRESS): Likewise.
2630 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2631 (ABOUT_TO_RETURN): Delete, as no longer used.
2633 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2635 * printcmd.c (disassemble_command): Remove obsolete function.
2636 (_initialize_printcmd): Do not create disassemble command here.
2637 * cli/cli-cmds.c (disassemble_command): New function. Implements
2638 disassemble command.
2639 (init_cli_cmds): Create disassemble command here instead.
2641 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2643 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2645 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2647 * regcache.h (regcache_cooked_read_using_offset_hack)
2648 (regcache_cooked_write_using_offset_hack): Delete declarations.
2649 (register_changed): Delete declaration.
2650 * regcache.c (regcache_cooked_read_using_offset_hack)
2651 (regcache_cooked_write_using_offset_hack): Delete functions.
2652 (cooked_xfer_using_offset_hack): Delete function.
2653 (register_changed): Delete function.
2655 2002-11-07 Jim Blandy <jimb@redhat.com>
2657 * macroscope.c: #include "complaints.h".
2658 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2659 but not in the macro table.
2660 * Makefile.in (macroscope.o): Record dependency.
2662 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2664 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2666 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2668 * regcache.c (deprecated_registers_fetched): Update.
2669 * regcache.h (deprecated_registers_fetched): Rename
2671 * remote-vxsparc.c (vx_read_register): Update.
2672 * remote-vxmips.c (vx_read_register): Update.
2673 * remote-vx68.c (vx_read_register): Update.
2674 * irix5-nat.c (fetch_core_registers): Update.
2675 * mipsm3-nat.c (fetch_inferior_registers): Update.
2676 * sun3-nat.c (fetch_inferior_registers): Update.
2677 * symm-nat.c (fetch_inferior_registers): Update.
2678 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2679 (fetch_core_registers): Update.
2680 (fetch_kcore_registers): Update.
2681 * mips-nat.c (fetch_inferior_registers): Update.
2682 * corelow.c (get_core_registers): Update.
2683 * a68v-nat.c (fetch_inferior_registers): Update.
2685 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2687 Put in place the framework necessary for multiarching the hppa targets.
2688 * hppa-tdep.c (hppa_gdbarch_init): New function.
2689 (hppa_dump_tdep): New function.
2690 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2691 tdep structure dumper.
2692 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2693 until the multi-arching conversion has partially been completed.
2695 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2697 * valops.c (value_assign): Merge lval_register case into
2698 lval_reg_frame_relative. Use frame_register and
2699 regcache_cooked_write instead of get_saved_register and
2700 write_register_bytes. After flushing the register cache, try to
2701 re-select the selected frame.
2703 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2705 * regcache.h (deprecated_register_valid): Rename register_valid.
2706 * regcache.c: Update.
2707 * ia64-aix-nat.c: Update.
2708 * i386gnu-nat.c: Update.
2709 * alpha-nat.c: Update.
2710 * sparc-nat.c: Update.
2711 * lynx-nat.c: Update.
2712 * remote-mips.c: Update.
2714 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2716 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2717 to end of file, to be more consistent with the pratice followed
2720 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2722 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2723 (print_float_info): Print registers in float_reggroup.
2724 (print_vector_info): Print registers in vector_reggroup.
2725 (default_print_registers_info): When all, print registers in
2726 all_reggroup. Otherwize, print registers in general_reggroup.
2727 (registers_info): Rewrite. Add support for register groups.
2730 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2732 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2734 (symtab_symbol_info): Remove eons old ifdeffed out code.
2735 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2738 2002-11-06 Theodore A. Roth <troth@openavr.org>
2740 * c-exp.y: Add missing semi-colons.
2741 * f-exp.y: Add missing semi-colons.
2742 * m2-exp.y: Add missing semi-colons.
2743 * p-exp.y: Add missing semi-colons.
2744 Add empty action to start rule to avoid a type clash error when
2745 building with bison >= 1.50.
2747 2002-11-06 Jim Blandy <jimb@redhat.com>
2749 * macrotab.h (struct macro_source_file): Doc fix.
2751 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2753 * varobj.c (child_exists, cplus_number_of_children): Change
2754 STREQ macro references to strcmp.
2755 (cplus_name_of_child): Change code to handle the fact that
2756 fields are not necessarily contiguous with regards to their
2757 access control. This is a fix for PR gdb/792.
2759 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2761 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2762 * gdbarch.h, gdbarch.c: Regnerate.
2763 * frame.h (frame_register): Declare.
2764 * frame.c (frame_register): New function.
2765 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2766 GET_SAVED_REGISTER, otherwize call
2767 generic_unwind_get_saved_register.
2768 (frame_register_read): Use frame_register instead of
2771 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2773 From Jim Ingham <jingham@apple.com>:
2774 * event-top.c (gdb_disable_readline): New function.
2775 (_initialize_event_loop): Move comment.
2777 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2779 * event-loop.c (start_event_loop): Add comment.
2782 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2784 * infcmd.c (default_print_registers_info): Do not call
2785 PRINT_REGISTER_HOOK.
2787 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2789 * sparc-tdep.c (sparc_print_register_hook): Make static.
2790 (sparc_print_registers_info): New function.
2791 (sparc_do_registers_info): New function.
2792 (sparclet_print_registers_info): New function.
2793 (sparclet_do_registers_info): New function.
2794 (do_sparc_print_registers_info): New function.
2795 (sparc_print_registers): New static function, clone of infcmd.c's
2796 default_print_registers_info.
2797 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2798 (sparclet_do_registers_info): Declare.
2799 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2800 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2802 (sparc_do_registers_info): Declare.
2803 (PRINT_REGISTER_HOOK): Delete macro.
2804 (sparc_print_register_hook): Delete declaration.
2806 2002-11-05 David Carlton <carlton@math.stanford.edu>
2808 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2810 (lookup_symbol_aux_local): New function.
2811 (lookup_symbol_aux_symtabs): New function.
2812 (lookup_symbol_aux_psymtabs): New function.
2814 2002-11-05 David Carlton <carlton@math.stanford.edu>
2816 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2817 previous values of 'objfile' and 'block'.
2819 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2821 * values.c (value_change_enclosing_type): Set
2822 enclosing_type field correctly also for the case where
2823 more memory needs to be allocated.
2825 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2827 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2830 * i387-tdep.c (i387_print_float_info): Replace calls to
2831 register_read and deprecated_read_register_gen with calls to
2832 frame_register_read, and make the necessary adjustments to the
2835 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2837 * gdbarch.sh (register_reggroup_p): Allow default value.
2838 * gdbarch.h, gdbarch.c: Regenerate.
2840 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2842 * regcache.h: Add coment indicating replacements for deprecated
2845 2002-11-02 Andrew Cagney <cagney@redhat.com>
2847 * reggroups.h, reggroups.c: New files.
2848 * regcache.c: Include "reggroups.h".
2849 (enum regcache_dump_what): Add `regcache_dump_groups'.
2850 (regcache_dump): Contract size of the "Type" column. When
2851 specified, dump the register's groups.
2852 (maintenance_print_register_groups): New function.
2853 (_initialize_regcache): Add command `maint print register-groups'.
2854 * Makefile.in (COMMON_OBS): Add reggroups.o
2855 (SFILES): Add reggroups.c.
2856 (reggroups_h): Define.
2857 (regcache.o, gdbarch.o): Update dependencies.
2858 (reggroups.o): Specify dependencies.
2859 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2860 Add opaque declaration for `struct reggroup' in generated .h file.
2861 Include "reggroups.h" in generated .c file.
2862 gdbarch.h, gdbarch.c: Re-generate.
2864 2002-11-02 Andrew Cagney <cagney@redhat.com>
2866 * regcache.h (deprecated_read_register_gen): Rename
2868 (deprecated_write_register_gen): Rename write_register_gen.
2869 * i387-tdep.c: Update.
2870 * x86-64-linux-nat.c: Update
2872 * thread-db.c: Update.
2873 * win32-nat.c: Update.
2874 * mips-tdep.c: Update.
2875 * d10v-tdep.c: Update.
2876 * cris-tdep.c: Update.
2877 * remote-sim.c: Update.
2878 * remote-rdi.c: Update.
2879 * remote-rdp.c: Update.
2882 * blockframe.c: Update.
2883 * x86-64-tdep.c: Update.
2884 * xstormy16-tdep.c: Update.
2885 * sh-tdep.c: Update.
2886 * s390-tdep.c: Update.
2887 * rs6000-tdep.c: Update.
2888 * sparc-tdep.c: Update.
2889 * i386-tdep.c: Update.
2890 * dwarf2cfi.c: Update.
2891 * regcache.c: Update.
2893 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2895 New interix-specific files:
2896 * config/i386/nm-interix.h: New file.
2897 * config/i386/interix.mh: New file.
2898 * config/i386/interix.mt: New file.
2899 * i386-interix-nat.c: New file.
2900 * i386-interix-tdep.c: New file.
2902 2002-11-01 Andrew Cagney <cagney@redhat.com>
2904 * frame.h (deprecated_generic_get_saved_register): Rename
2905 generic_get_saved_register.
2906 * blockframe.c (deprecated_generic_get_saved_register): Update.
2907 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2908 (xstormy16_frame_saved_register): Update.
2909 * sh-tdep.c (sh_gdbarch_init): Update.
2910 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2911 * ia64-tdep.c (ia64_get_saved_register): Update.
2912 * cris-tdep.c (cris_gdbarch_init): Update.
2913 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2914 * arm-tdep.c (arm_gdbarch_init): Update.
2916 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2918 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2920 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2922 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2923 trampolines in sigaction.
2925 2002-10-31 Andrew Cagney <cagney@redhat.com>
2927 * h8300-tdep.c: Include "gdb_assert.h".
2928 (h8300_print_register): Add gdbarch, file and frame parameters.
2929 Use frame_read_unsigned_register to read the register's value.
2930 Use fprintf_filtered to display output.
2931 (h8300_print_registers_info): Replace h8300_do_registers_info.
2932 (h8300_gdbarch_init): Set print_registers_info.
2934 2002-10-31 Andrew Cagney <cagney@redhat.com>
2936 * frame.c (frame_read_unsigned_register): New function.
2937 (frame_read_signed_register): New function.
2938 * frame.h (frame_read_unsigned_register): Declare.
2939 (frame_read_signed_register): Declare.
2941 2002-10-31 Andrew Cagney <cagney@redhat.com>
2943 * h8500-tdep.c (h8500_print_registers_info): New static function,
2944 clone of infcmd.c's default_print_registers_info.
2945 (h8500_do_registers_info): New funtion.
2946 (h8500_print_register_hook): Rename print_register_hook, make
2949 * config/h8500/tm-h8500.h: Update copyright.
2950 (DEPRECATED_DO_REGISTERS_INFO): Define.
2951 (h8500_do_registers_info: Declare.
2952 (PRINT_REGISTER_HOOK): Delete macro.
2953 (print_register_hook): Delete function.
2955 2002-10-31 Andrew Cagney <cagney@redhat.com>
2957 * z8k-tdep.c (z8k_print_register_hook): Make static.
2958 (z8k_print_registers_info): New static function, clone of
2959 infcmd.c's default_print_registers_info.
2960 (z8k_do_registers_info): New function. Wrap
2961 z8k_print_registers_info.
2962 * config/z8k/tm-z8k.h: Update copyright.
2963 (PRINT_REGISTER_HOOK): Delete macro.
2964 (z8k_print_register_hook): Delete declaration.
2965 (DEPRECATED_DO_REGISTERS_INFO): Define.
2966 (z8k_do_registers_info): Declare.
2968 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2970 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2971 as this is already provided by value.h, and was actually causing
2972 a compilation error because of a conflict in parameter type
2973 declaration due to a missing const keyword.
2974 (low_text_segment_addres): Fix a compilation warning.
2976 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2978 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2979 registers without a name.
2980 (mips_linux_cannot_store_register): Don't store registers without
2983 2002-10-28 David Carlton <carlton@math.stanford.edu>
2985 * symtab.c (find_addr_symbol): Delete. (It was already commented
2987 * symtab.h: Delete prototype for find_addr_symbol.
2989 2002-10-26 Andrew Cagney <cagney@redhat.com>
2991 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2993 gdbarch.h, gdbarch.c: Re-generate.
2994 * infcmd.c (default_print_registers_info): Update reference.
2995 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2996 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2997 * sh-tdep.c (sh_gdbarch_init): Ditto.
2998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2999 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3001 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3003 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3004 cfi_init_extra_frame_info.
3005 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3006 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3008 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3009 target where necessary. Add more comments and remove the ones
3010 that don't provide any useful information.
3012 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3013 deprecated_read_register_dummy with
3014 frame_unwind_unsigned_register.
3016 * i386-tdep.c (i386_extract_struct_value_address): Use
3017 regcache_raw_read_unsigned instead of
3018 regcache_cooked_read_unsigned since we know that the register
3019 we're reading isn't a pseudo register. Rename variable 'val' into
3020 the more descriptive 'addr'.
3022 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3023 (x86_64_push_return_address): Add comment.
3024 (x86_64_pop_frame): Make static.
3025 (examine_argument): Clarify comment.
3026 (x86_64_skip_prologue): Make prolog_expact variable static.
3028 * dwarf2cfi.c: Fix some formatting problems.
3029 (context_cpy, read_encoded_pointer): Clarify comments.
3031 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3032 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3033 i386 target back into x86_64_gdbarch_init. Add some comments and
3034 remove meaningless ones.
3036 2002-10-25 Andrew Cagney <cagney@redhat.com>
3038 * complaints.h (struct deprecated_complaint): Rename `struct
3040 * complaints.c (complain): Update.
3041 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3042 incorrect comment indicating that "symfile.h" was being included
3043 for the `struct complaint' definition.
3044 * remote-vx.c: Update.
3045 * objc-lang.c: Update.
3046 * xcoffread.c: Update.
3048 * mdebugread.c: Update.
3049 * stabsread.c: Update.
3050 * dwarf2read.c: Update.
3051 * dwarfread.c: Update.
3052 * elfread.c: Update.
3053 * coffread.c: Update.
3054 * stabsread.h: Update.
3055 * dbxread.c: Update.
3056 * buildsym.c: Update.
3057 * gdbtypes.c: Update.
3058 * macrotab.c: Update.
3060 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3062 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3063 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3064 (x86_64_init_abi): ...new function.
3066 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3067 * i386v-nat.c: Include "i386-tdep.h".
3069 2002-10-25 Andrew Cagney <cagney@redhat.com>
3071 * gdbtypes.c (address_space_name_to_int): Update.
3072 (address_space_int_to_name): Update.
3073 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3074 multi-arch predicate.
3075 (address_class_name_to_type_flags): Ditto.
3076 * gdbarch.h, gdbarch.c: Re-generate.
3078 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3080 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3082 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3084 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3086 * symtab.h (INIT_SAL): Delete macro.
3088 * symtab.c (init_sal): New function.
3090 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3091 to init_sal function call.
3092 (find_sal_from_funcs_and_line): Ditto.
3093 (all_sals_for_line): Ditto.
3094 * breakpoint.c (create_internal_breakpoint): Ditto.
3095 (create_fork_vfork_event_catchpoint): Ditto.
3096 (create_exec_event_catchpoint): Ditto.
3097 (parse_breakpoint_sals): Ditto.
3098 (watch_command_1): Ditto.
3099 (handle_gnu_4_16_catch_command): Ditto.
3100 (clear_command): Ditto.
3101 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3102 * infcmd.c (run_stack_dummy): Ditto.
3103 * infrun.c (process_event_stop_test): Ditto.
3104 (check_sigtramp2): Ditto.
3105 (step_over_function): Ditto.
3106 * linespec.c (decode_line_2): Ditto.
3107 (decode_line_1): Ditto.
3108 * source.c (line_info): Ditto.
3109 * symtab.c (find_pc_sect_line): Ditto.
3111 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3113 * dwarf2cfi.c (struct context)
3114 (struct context_reg): Moved to dwarf2cfi.h
3115 (context_alloc, frame_state_alloc, context_cpy):
3116 Made extern instead of static, removed prototypes.
3117 * dwarf2cfi.h (struct context)
3118 (struct context_reg): New, moved from dwarf2cfi.c
3119 (context_alloc, frame_state_alloc, context_cpy):
3121 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3122 Changed from static to extern.
3123 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3124 (LINUX_SIGCONTEXT_FP_OFFSET)
3125 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3126 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3127 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3128 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3129 set_gdbarch_*() calls now use x86-64 specific functions
3130 instead of DWARF2 CFI ones.
3131 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3132 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3133 (x86_64_init_extra_frame_info): New prototypes.
3135 2002-10-23 David Carlton <carlton@math.stanford.edu>
3137 * linespec.c: #include "parser-defs.h".
3138 Delete prototype for find_template_name_end.
3139 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3141 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3143 * NEWS: add recent mi fixes.
3144 * varobj.c (struct varobj): Add new "updated" flag.
3145 (new_variable): Default "updated" flag to 0.
3146 (varobj_set_value): Set "updated" flag to 1 if value
3148 (varobj_update): Check varobj "updated" flag before
3149 comparing old and refreshed values. Fix for
3152 2002-10-23 David Carlton <carlton@math.stanford.edu>
3154 * parse.c (parse_exp_1): Use BLOCK_START.
3155 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3157 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3159 2002-10-23 David Carlton <carlton@math.stanford.edu>
3161 * symtab.c: Delete cplusplus_hint.
3162 Delete prototype for find_template_name_end.
3164 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3166 * symtab.h: Update comment.
3168 2002-10-23 Michael Snyder <msnyder@redhat.com>
3170 * printcmd.c (address_info): Restore quotes in output.
3171 * valops.c (value_of_local): Restore quotes in error message.
3173 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3175 * symtab.c (symbol_demangled_name): New function.
3176 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3177 turning most of it into a function.
3178 (symbol_demangled_name): Export.
3180 2002-10-23 Michael Snyder <msnyder@redhat.com>
3182 * valops.c (value_of_local): Restore quotes in error message.
3184 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3186 * symtab.c (symbol_init_language_specific): New function.
3187 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3188 turning most of it into a function.
3189 (symbol_init_language_specific): Export.
3191 2002-10-23 David Carlton <carlton@math.stanford.edu>
3193 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3194 (dwarf_attr_name): Ditto.
3195 (dwarf_type_encoding_name): Ditto.
3196 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3197 (process_die): Handle DW_TAG_namespace,
3198 DW_TAG_imported_declaration, DW_TAG_imported_module.
3199 (read_namespace): New function.
3201 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3203 * configure.in: Define NEW_PROC_API on Interix too.
3204 * configure: Regenerate.
3206 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3208 * configure: Regenerate using the proper version of autoconf.
3210 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3212 * findvar.c (read_var_value): Temporarily disable TLS code, until
3213 complete TLS support is added.
3215 2002-10-21 Jim Blandy <jimb@redhat.com>
3216 Elena Zannoni <ezannoni@redhat.com>
3218 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3219 for thread local storage locations.
3220 (struct symbol): Add objfile field.
3221 (SYMBOL_OBJFILE): Define.
3222 * dwarf2read.c (is_thread_local): New static variable.
3223 (new_symbol): If variable is in thread local fill in address class
3224 and objfile appropriately.
3225 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3227 * printcmd.c (address_info): Print the information for thread
3228 local storage variable.
3229 * findvar.c (read_var_value): In case of thread local variable,
3230 defer to the target vector code to compute address.
3232 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3234 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3235 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3237 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3239 * symtab.h (address_class): Rename
3240 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3241 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3242 * printcmd.c (address_info): Ditto.
3243 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3245 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3247 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3248 DBREG_DRX macro to acces debug registers.
3250 * Makefile.in (i386obsd-tdep.o): New target.
3252 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3253 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3255 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3256 * config/i386/obsd.mt: New file.
3257 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3258 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3259 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3260 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3261 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3262 * i386obsd-tdep.c: New file.
3264 2002-10-19 Adam Fedor <fedor@gnu.org>
3266 * objc-exp.y (name_not_typename): Fix invalid comment.
3268 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3270 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3271 to allocate partial syms and macro byte caches.
3273 2002-10-18 David Carlton <carlton@math.stanford.edu>
3275 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3277 2002-10-18 Adam Fedor <fedor@gnu.org>
3279 * stabsread.c (find_name_end): New function.
3280 (define_symbol): Use it.
3282 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3284 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3285 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3286 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3287 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3289 2002-10-17 David Carlton <carlton@math.stanford.edu>
3291 * symfile.h: Add opaque declaration for struct obstack.
3292 Declare obsavestring to take a const char *.
3293 * symfile.c (obsavestring): Make first argument a const char *.
3295 2002-10-16 Adam Fedor <fedor@gnu.org>
3297 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3298 names when matching breakpoints in current file.
3300 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3302 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3303 (read_tag_pointer_type): Add address class support.
3304 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3305 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3307 * gdbarch.h, gdbarch.c: Regenerate.
3308 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3309 (make_type_with_address_space, recursive_type_dump): Add address
3311 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3312 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3313 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3315 2002-10-16 Klee Dienes <kdienes@apple.com>
3317 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3318 to get the last character of a char[] buffer, not
3319 name[sizeof(vptr_name)-1].
3321 2002-10-14 Adam Fedor <fedor@gnu.org>
3323 * symtab.h: New objc_specific struct.
3324 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3325 (SYMBOL_DEMANGLED_NAME): Likewise.
3327 2002-10-14 Adam Fedor <fedor@gnu.org>
3329 * symfile.c (init_filename_language_table): Add ObjC file extension.
3331 2002-10-14 Adam Fedor <fedor@gnu.org>
3333 * utils.c (puts_filtered_tabular): New function.
3334 (fprintf_symbol_filtered): Get ObjC demangled name.
3335 * defs.h (puts_filtered_tabular): Declared.
3337 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3339 * c-lang.h (c_type_print_varspec_prefix): Delete.
3340 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3341 ``need_post_space'' parameter. Adjust all callers.
3343 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3345 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3346 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3347 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3348 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3350 2002-10-13 Adam Fedor <fedor@gnu.org>
3352 * source.c (print_source_lines): Update comments.
3354 2002-10-13 Adam Fedor <fedor@gnu.org>
3356 * valops.c (value_of_local): New function.
3357 (value_of_this): Use it.
3358 * value.h (value_of_local): Declared.
3360 2002-10-13 Adam Fedor <fedor@gnu.org>
3362 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3363 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3365 2002-10-12 Adam Fedor <fedor@gnu.org>
3367 * language.c (binop_result_type): Add language_objc to case.
3368 (integral_type): Likewise.
3369 (character_type): Likewise.
3370 (string_type): Likewise.
3371 (boolean_type): Likewise.
3372 (structured_type): Likewise.
3373 (binop_type_check): Likewise.
3375 2002-10-11 Adam Fedor <fedor@gnu.org>
3377 * printcmd.c (address_info): Print 'self' for ObjC.
3379 2002-10-11 Adam Fedor <fedor@gnu.org>
3381 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3384 2002-10-11 Adam Fedor <fedor@gnu.org>
3386 * language.h (CAST_IS_CONVERSION): Add language_objc.
3388 2002-10-11 Adam Fedor <fedor@gnu.org>
3390 * defs.h (enum language): Add language_objc.
3392 2002-10-11 Klee Dienes <kdienes@apple.com>
3394 * corefile.c (read_memory_typed_address): New function.
3395 * gdbcore.h (read_memory_typed_address): Add prototype.
3396 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3397 to read a value destined for a CORE_ADDR, not read_memory_integer.
3398 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3399 (f77_get_dynamic_lowerbound): Ditto.
3401 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3403 * utils.c (string_to_core_addr): After turning string into
3404 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3405 which will do necessary sign-extension, etc.
3407 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3409 * c-exp.y (THIS): Delete token and grammar rule.
3410 (yylex): Don't return THIS.
3411 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3412 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3413 * demangle.c (cplus_markers): Update comment. Put '$'
3414 first. Remove CPLUS_MARKER.
3415 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3416 * jv-exp.y (THIS): Delete token and grammar rule.
3417 (yylex): Don't return THIS.
3418 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3419 * objc-exp.y (THIS): Delete token and grammar rule.
3420 (yylex): Don't return THIS.
3421 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3422 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3423 (read_member_functions): Likewise for opname.
3424 (read_tilde_fields): Use is_cplus_marker.
3426 * defs.h (CPLUS_MARKER): Don't define.
3427 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3428 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3429 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3430 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3431 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3433 * config/i386/tm-i386v4.h: Delete file.
3434 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3435 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3436 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3437 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3438 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3439 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3440 * config/i386/i386v4.mt (TM_FILE): Likewise.
3441 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3443 2002-10-10 Marko Mlinar <markom@opencores.org>
3445 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3446 accidentially not commited 2002-10-09
3447 * gdbarch.h, gdbarch.c: Re-generate.
3449 2002-10-09 Marko Mlinar <markom@opencores.org>
3451 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3452 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3453 * gdbarch.h, gdbarch.c: Re-generate.
3455 2002-10-08 Petr Sorfa <petrs@caldera.com>
3457 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3459 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3460 so we can work on more than one compilation unit at a time. This
3461 helps prepare GDB to handle inter-CU die references.
3462 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3463 the code to be defined before struct comp_unit_head.
3464 (comp_unit_head): Added new members - offset, cu_head,
3465 begin_die, next and dwarf2_abbrevs.
3466 (dwarf2_abbrevs): Removed single static var; now member of
3467 struct comp_unit_head.
3468 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3470 (psymtab_to_symtab_1): Changed to work with the new
3471 struct comp_unit_head.
3472 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3473 constructs the dwarf2_abbrevs[] inside the cu_header.
3474 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3475 dwarf2_abbrev table to clean up.
3476 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3477 handling of dwarf2_abbrevs inside the cu_header.
3478 (read_partial_die): Now supports the call to the new
3479 dwarf2_lookup_abbrev.
3480 (read_full_die): Now supports the call to the new
3481 dwarf2_lookup_abbrev.
3483 2002-10-06 Christopher Faylor <cgf@redhat.com>
3485 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3486 insure that shell variables, such as "transformed_name" are propagated
3487 to later shell statements in rule.
3489 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3491 * config/i386/nm-i386sco.h: Add protection against
3492 multiple-inclusion. Include "i386/nm-i386v.h".
3493 (REGISTER_U_ADDR): Remove define.
3494 (i386_register_u_addr): Remove prototype.
3496 2002-10-04 Michael Snyder <msnyder@redhat.com>
3498 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3499 before treating it as a single-step event.
3501 2002-10-03 Adam Fedor <fedor@gnu.org>
3503 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3504 (objc_demangle): Remove assignment in if statements, Replace
3506 (add_msglist): Likewise.
3507 (end_msglist): Likewise.
3508 (complare_selectors): Likewise.
3509 (selectors_info): Likewise.
3510 (compare_classes): Likewise.
3511 (classes_info): Likewise.
3512 (print_object_command): Likewise.
3513 (find_objc_msgcall_submethod): Replace PTR with void *.
3514 * objc-lang.h: Remove check for __STDC__.
3516 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3518 * ui-out.h (ui_out_field_fmt_int): New prototype.
3519 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3520 of field width and alignment.
3521 * stack.c (print_frame_info_base): When printing frame level, use
3522 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3525 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3527 * MAINTAINERS: Add self to Write After Approval list.
3529 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3531 * infcmd.c (interrupt_target_command_wrapper): Delete.
3532 (interrupt_target_command): Make non static.
3533 (nofp_registers_info): Make static.
3534 * stack.c (return_command_wrapper): Delete.
3535 (return_command): Make non static.
3537 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3539 * event-top.c (gdb_setup_readline): New function. Code moved from
3540 _initialize_event_loop().
3541 (_initialize_event_loop): Call gdb_setup_readline().
3543 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3545 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3546 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3547 * gdbarch.h, gdbarch.c: Re-generate.
3549 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3552 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3554 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3555 of fill_in_vptr_fieldno.
3557 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3559 * inferior.h (registers_info, stepi_command, nexti_command,
3560 continue_command, interrupt_target_command): Export from infcmd.c.
3561 * frame.h (args_info, selected_frame_level_changed_hook,
3562 return_command): Export from stack.c.
3563 * v850ice.c (stepi_command, nexti_command, continue_command): use
3564 prototypes from inferior.h.
3565 * tracepoint.c (registers_info, args_info, locals_info): Use
3566 prototypes from frame.h and inferior.h.
3567 * Makefile.in (mi-main.o): Add dependency on frame.h.
3569 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3571 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3572 value in register 3 adjusted by ppc_gp0_regnum.
3574 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3576 2002-10-02 Marko Mlinar <markom@opencores.org>
3578 * MAINTAINERS: Add myself to the Write After Approval list.
3580 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3582 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3583 of the section for the N64 ABI, fixed.
3585 * config/mips/tm-irix6.h: Include solib.h.
3587 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3589 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3592 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3594 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3595 and that "mi0" syntax has been removed.
3597 2002-09-30 David Carlton <carlton@math.stanford.edu>
3599 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3600 * ppc-sysv-tdep.c: #include "gdb_string.h".
3601 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3604 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3606 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3607 "vrsave"'s register number.
3609 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3611 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3612 use frame_unwind_signed_register to obtain the PC.
3613 (mips_frame_chain): Handle a generic dummy frame.
3614 (mips_init_extra_frame_info): When a generic dummy frame, don't
3615 re-compute the frame base.
3616 (mips_pop_frame): Handle generic dummy frames.
3617 (mips_gdbarch_init): When generic dummy frames, set
3618 use_generic_dummy_frames, push_dummy_frame to
3619 generic_push_dummy_frame, pc_in_call_dummy to
3620 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3621 generic_save_dummy_frame_tos.
3623 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3625 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3626 against TOP when TOP was explictly set.
3627 (generic_push_dummy_frame): Set TOP to zero.
3629 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3631 * event-loop.c (start_event_loop): Rename variable 'result' to
3632 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3634 2002-09-30 Keith Seitz <keiths@redhat.com>
3636 * gdb-events.sh (selected_thread_changed): New event.
3637 * gdb-events.c: Regenerated.
3638 * gdb-events.h: Regenerated.
3640 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3642 * MAINTAINERS: Add self to Write After Approval list.
3644 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3646 * disasm.c: New file.
3647 * disasm.h: New file.
3648 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3649 (compare_lines): Ditto.
3650 (dump_insns): Ditto.
3651 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3653 (do_assembly_only): Ditto.
3654 (do_disassembly): Renamed to gdb_disassembly and moved to
3655 disasm.c. Sdded uiout argument.
3656 * Makefile.in: Add new files. Reorder SFILES list. Update
3657 dependencies. Include libgdb.a later in the insight executable.
3659 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3661 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3662 bfd/elf64-alpha-fbsd.c.
3664 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3666 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3669 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3671 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3673 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3675 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3676 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3677 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3678 (S_msg_sig_post_reply): Ditto.
3680 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3682 * sh-tdep.c (sh_use_struct_convention): Use definition according
3684 (sh_push_arguments): Store in register with correct endianess.
3685 (sh_default_store_return_value): Ditto.
3686 (sh_gdbarch_init): Set sizeof long double to 8.
3688 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3690 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3691 Fix some whitespace problems.
3693 2002-09-27 David Carlton <carlton@math.stanford.edu>
3695 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3696 (mcore-tdep.o): Ditto.
3697 (ns32k-tdep.o): Ditto.
3698 (ns32knbsd-tdep.o): Ditto.
3700 (vax-tdep.o): Ditto.
3701 * cris-tdep.c: #include "gdb_string.h"
3702 * mcore-tdep.c: Ditto.
3703 * ns32k-tdep.c: Ditto.
3704 * ns32knbsd-tdep.c: Ditto.
3706 * vax-tdep.c: Ditto.
3708 2002-09-27 David Carlton <carlton@math.stanford.edu>
3710 * config/djgpp/fnchange.lst: Add entries for
3711 gdb/testsuite/gdb.c++/m-static files.
3713 2002-09-27 Jim Wilson <wilson@redhat.com>
3715 * MAINTAINERS: Add myself to the Write After Approval list.
3717 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3719 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3722 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3724 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3727 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3729 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3730 (rs6000_struct_return_address): Delete variable.
3731 (rs6000_store_struct_return): Update.
3732 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3733 deprecated_extract_struct_value_address.
3734 (rs6000_frame_align): New function.
3735 (rs6000_gdbarch_init): Set frame_align.
3737 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3739 From Grace Sainsbury <graces@redhat.com>:
3740 * Makefile.in (gdbtk-main.o): New target.
3741 (gdb.o): New target.
3743 (main.o): Update dependencies.
3744 (gdb$(EXEEXT)): Add gdb.o.
3745 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3746 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3747 (SUBDIR_GDBTK_CLEAN): Set.
3748 (install-gdbtk): Install the insight binary.
3749 (uninstall-gdbtk): New target.
3750 (all-gdbtk, clean-gdbtk): New rule.
3751 * top.c (use_windows): Default to zero.
3752 * main.c: Include "main.h".
3754 (struct captured_main_args): Delete.
3755 (gdb_main): New function.
3759 2002-09-25 Andrew Cagney <cagney@redhat.com>
3761 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3762 (frame_map_regnum_to_name): New function.
3763 (frame_map_name_to_regnum): New function.
3764 * frame.h (frame_map_name_to_regnum): Declare.
3765 (frame_map_regnum_to_name): Declare.
3766 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3767 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3768 * parse.c: Do not include "builtin-regs.h".
3769 (target_map_name_to_register): Delete function.
3770 (write_dollar_variable): Use frame_map_name_to_regnum.
3771 * parser-defs.h (target_map_name_to_register): Delete declaration.
3772 * expprint.c: Include "frame.h".
3773 (print_subexp): Use frame_map_regnum_to_name.
3774 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3775 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3777 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3779 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3780 wasn't saved, and the next innermost frame is a dummy, return the
3781 dummy frame's link register.
3783 2002-09-24 Jim Blandy <jimb@redhat.com>
3785 Fix from Paul Breed:
3786 * main.c (captured_main): Add a `break' after the case for 'b'.
3788 2002-09-24 Keith Seitz <keiths@redhat.com>
3790 * varobj.c (c_type_of_child): Use get_target_type instead
3791 of TYPE_TARGET_TYPE.
3793 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3795 * source.c (get_current_or_default_source_symtab_and_line): Remove
3797 (set_default_source_symtab_and_line): New function. Attempts to
3798 determine a source file to list lines from if one is not currently
3800 (get_current_source_symtab_and_line): Initialize sal.pc and
3802 (set_current_source_symtab_and_line): Mark argument as const.
3803 * source.h: Update declarations and comments.
3804 * linespec.c (decode_line_1): Replace call to removed routine above.
3805 * stack.c (print_frame_info_base): Ditto.
3806 * cli/cli-cmds.c (edit_command): Ditto.
3807 (list_command): Ditto.
3809 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3811 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3812 sal.pc and sal.end fields.
3813 (get_current_or_default_source_symtab_and_line): Ditto.
3814 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3815 so we do not cause a new source symtab to be searched for (reverting an
3816 unintentional change from the 2002-09-20 patch).
3817 * scm-lang.c (scm_unpac): Ditto.
3819 2002-09-21 Andrew Cagney <cagney@redhat.com>
3821 * complaints.c (symfile_explanations): Remove new-line from
3822 ``isolated_message''.
3823 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3824 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3826 2002-09-20 Nick Clifton <nickc@redhat.com>
3828 * NEWS: Announce that V850EA ISA is no longer supported.
3829 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3831 2002-09-20 David Carlton <carlton@math.stanford.edu>
3833 * Makefile.in (c-lang.o): Correct dependencies.
3834 (utils.o): Gather dependencies.
3836 * c-lang.c: #include "gdb_string.h"
3838 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3840 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3841 * cli/cli-cmds.c (list_command): New function. Implements the new
3843 (_init_cli_cmds): Add new command definition.
3844 * gdb.1: Document edit command.
3845 * doc/gdb.texinfo: Document edit command.
3847 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3849 * source.c: Make global variables current_source_symtab and
3850 current_source_line static.
3851 (list_command): Moved to cli/cli-cmds.c.
3852 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3853 (get_first_line_listed): New accessor function.
3854 (get_lines_to_list): New accessor function.
3855 (get_current_source_symtab_and_line): New function. Retrieves the
3856 position in the source code that we consider current.
3857 (get_current_or_default_source_symtab_and_line): New function.
3858 Like the above but attempts to determine a default position if one
3859 is not currently defined.
3860 (set_current_source_symtab_and_line): New function. Sets the source
3861 code position considered current and returns the previously set one.
3862 (clear_current_source_symtab_and_line): Reset stored information about
3863 a current source line.
3864 (_initialize_source): Remove registration for the "list" command and
3866 * source.h: Add declarations for the new functions above.
3867 * symtab.h: Remove declarations for the global variables mentioned
3869 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3870 obtain current source line.
3871 * linespec.c (decode_line_1): Ditto.
3872 * macroscope.c (default_macro_scope): Ditto.
3873 * scm-lang.c (scm_unpac): Ditto.
3874 * stack.c (print_frame_info_base): Ditto.
3875 * symfile.c (clear_symtab_users): Ditto.
3876 * symtab.c (decode_line_spec): Ditto.
3877 * cli/cli-cmds.c (list_command): Moved here from source.c.
3878 (ambiguous_line_spec): Moved here from source.c.
3879 (_init_cli_cmds): Add definition for "list" and its alias.
3880 * Makefile.in: Update dependencies.
3882 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3884 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3885 with what gcc thinks is correct.
3887 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3889 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3890 multiple register push instruction.
3892 2002-09-19 Jim Blandy <jimb@redhat.com>
3894 Add support for distinct host and target character sets.
3895 * charset.c, charset.h: New files.
3896 * c-exp.y: #include "charset.h".
3897 (yylex): Convert character and string literals to the target
3898 character set, before returning them as the semantic value of the
3900 * c-lang.c: #include "charset.h".
3901 (c_emit_char): Use charset-specific methods to recognize
3902 characters with backslash escape forms, to decide which characters
3903 to print literally and which to print using numeric escape
3904 sequences, and to convert target characters to host characters
3906 * utils.c: #include "charset.h".
3907 (no_control_char_error): New function.
3908 (parse_escape): Use charset-specific methods to recognize
3909 backslash escapes, parse `control character' notation, and convert
3910 characters from the host character set to the target character set.
3911 * configure.in: Set the default host character set.
3912 Check where to find iconv, and what its argument types might be.
3913 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3914 * Makefile.in (SFILES): List charset.c.
3915 (COMMON_OBS): List charset.o.
3916 (charset.o): New rule.
3917 (charset_h): New header dependency variable.
3918 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3919 (LIBICONV): New variable, set by configure.
3920 (CLIBS): Include $(LIBICONV) here.
3921 * aclocal.m4, config.in, configure: Regenerated.
3923 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3925 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3928 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3930 * gdb_mbuild.sh: New file.
3932 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3934 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3936 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3938 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3939 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3940 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3941 valops.c, value.h: Revert previous change.
3943 2002-09-18 Michael Snyder <msnyder@redhat.com>
3945 Preliminary support for Objective-C:
3946 * defs.h (language_objc): New enum value.
3947 (puts_filtered_tabular): Declaration only, exported from utils.c.
3948 (skip_quoted): Delete, declared in completer.h.
3949 * c-exp.y: Include completer.h.
3952 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3953 New operator enum values.
3954 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3955 * language.c (binop_result_type): Handle language_objc case.
3956 (integral_type, character_type, string_type, boolean_type,
3957 structured_type, binop_type_check): Ditto.
3958 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3959 (struct objc_specific): Add to general_symbol_info.
3960 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3961 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3962 * parser-defs.h (struct objc_class_str): New struct type.
3963 (start_msglist, end_msglist, add_msglist): Declaration only,
3964 exported from objc-lang.c.
3965 * value.h (value_of_local, value_nsstring,
3966 call_function_by_hand_expecting_type): Exported from valops.c.
3967 * valops.c (find_function_addr): Export.
3968 (call_function_by_hand_expecting_type): New function.
3969 (value_of_local): New function.
3970 * symfile.c (init_filename_language_table): Add ".m" extension
3972 * utils.c (puts_filtered_tabular): New function.
3973 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3974 (set/show demangle): Extend help-string to refer to ObjC.
3975 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3976 * stabsread.c (symbol_reference_defined): Objective-C symbols
3977 may contain colons: make allowances when scanning stabs strings
3979 (objc_find_colon): New function.
3980 * printcmd.c (address_info): If language == objc then print
3981 "self" instead of "this".
3982 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3983 OP_NSSTRING, and OP_SELF.
3984 (prefixify_subexp): Ditto.
3985 * source.c (print_source_lines): Mention objc in comment.
3986 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3989 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3991 * complaints.h: Update copyright.
3992 (struct complaints): Declare.
3993 (struct complaint): Make `message' constant.
3994 (internal_complaint): Declare.
3995 (complaint): Declare.
3996 (complaint_root): Delete declaration.
3997 (symfile_complaints): Delete declaration.
3998 (struct complaints): Add opaque declaration.
3999 (clear_complaints): Add a complaints parameter.
4000 * complaints.c: Update copyright.
4001 (enum complaint_series): Define.
4002 (complaint_root): Delete.
4003 (struct complaints): Define.
4004 (complaint_sentinel, symfile_complaint_book): New variables.
4005 (symfile_explanations, symfile_complaints): New variables.
4007 (get_complaints): New function.
4008 (vcomplaint): New function.
4009 (complaint): New function.
4010 (internal_complaint): New function.
4011 (complain): Call vcomplain with symfile_complaint.
4012 (clear_complaints): Rewrite.
4013 (_initialize_complaints): Use add_setshow_command.
4014 * Makefile.in (complaints.o): Update dependencies.
4015 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4016 to call to clear_complaints.
4017 (new_symfile_objfile, reread_symbols): Ditto.
4018 (oldsyms_complaint): Delete.
4019 (empty_symtab_complaint, unknown_option_complaint): Delete.
4020 (free_named_symtabs): Use complaint instead of complain.
4022 2002-09-18 Michael Snyder <msnyder@redhat.com>
4024 Contributed by Apple Computer, Inc. Merged with current sources
4025 by Adam Fedor <fedor@doc.com> [cagney].
4027 * objc-lang.c: First clean-up round: comments, indentation.
4028 * objc-lang.h: Ditto.
4029 * objc-lang.y: Ditto.
4031 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4033 * maint.c (maintenance_internal_error): Print the parameter as the
4035 (maintenance_internal_warning): New function.
4036 (_initialize_maint_cmds): Add command `maint internal-warning'.
4038 * defs.h (internal_warning, internal_vwarning): Declare.
4039 * utils.c (struct internal_problem): Define.
4040 (internal_vproblem): New function.
4041 (internal_warning): New function.
4042 (internal_vwarning): New function.
4043 (internal_warning_problem, internal_error_problem): New variables.
4044 (internal_verror): Just call internal_vproblem.
4046 2002-09-18 Michael Snyder <msnyder@redhat.com>
4048 * objc-lang.c: New file, support for Objective-C.
4049 Preliminary check-in, not yet integrated into gdb.
4050 * objc-lang.h: New file.
4051 * objc-exp.y: New file.
4053 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4055 * infrun.c (signal_stop_update): Convert definition to ISO C.
4056 (signal_print_update): Ditto.
4057 (signal_pass_update): Ditto.
4058 * inflow.c (terminal_save_ours): Ditto.
4060 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4063 * config/djgpp/fnchange.lst: Handle name clashes between
4064 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4067 * i386-linux-tdep.h: Fix tipo.
4069 2002-09-18 Adam Fedor <fedor@gnu.org>
4071 * MAINTAINERS: Add myself to the Write After Approval list.
4073 2002-09-18 Jim Blandy <jimb@redhat.com>
4075 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4076 texthigh and textlow to reader-specific structs caused
4077 objfile_relocate to miss them. This is fixable, but the work that
4078 the change was supposed to prepare GDB for never got done anyway.
4080 2002-09-18 David Carlton <carlton@math.stanford.edu>
4082 * MAINTAINERS: Alphabetize Write After Approval list.
4084 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4087 * values.c (value_static_field): Call read_var_value.
4089 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4091 * valops.c (hand_function_call): Align the initial stack pointer
4092 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4093 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4095 * mips-tdep.c (mips_frame_align): New function.
4096 (mips_gdbarch_init): Set frame_align.
4097 * gdbarch.sh (FRAME_ALIGN): New method.
4098 * gdbarch.h, gdbarch.c: Re-generate.
4100 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4102 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4105 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4107 * NEWS: Mention that MIPS $fp behavior changed.
4108 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4109 reference to FP_REGNUM.
4110 (mipsnbsd_cannot_store_register): Ditto.
4111 * mips-linux-nat.c: Update copyright.
4112 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4113 (mips_linux_cannot_store_register): Ditto.
4114 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4115 * config/mips/tm-mips.h: Update copyright.
4116 (FP_REGNUM): Delete macro.
4117 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4118 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4119 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4120 (mips_r3041_reg_names, mips_r3051_reg_names)
4121 (mips_r3081_reg_names): Replace "fp" with "".
4124 2002-09-17 Theodore A. Roth <troth@verinet.com>
4126 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4127 generic_read_register_dummy() (PR gdb/703).
4128 (avr_push_return_address): #if 0 out unused vars.
4129 (avr_gdbarch_init): Enable use of avr_push_return_address().
4131 2002-09-17 Michael Snyder <msnyder@redhat.com>
4133 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4134 RTE will take care of it.
4136 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4138 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4139 invalid, return SP_REGNUM.
4141 2002-09-17 Michael Snyder <msnyder@redhat.com>
4143 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4144 point registers without sign extension.
4146 2002-09-17 Andrew Cagney <cagney@redhat.com>
4148 * blockframe.c (deprecated_read_register_dummy): Rename
4149 generic_read_register_dummy.
4150 * frame.c (frame_unwind_signed_register): New function.
4151 (frame_unwind_unsigned_register): New function.
4152 * frame.h (frame_unwind_signed_register): Declare.
4153 (frame_unwind_unsigned_register): Declare.
4154 (deprecated_read_register_dummy): Rename
4155 generic_read_register_dummy.
4157 * h8300-tdep.c (h8300_frame_chain): Update.
4158 (h8300_frame_saved_pc): Update.
4159 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4160 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4161 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4162 (s390_frame_chain): Update.
4163 * v850-tdep.c (v850_find_callers_reg): Update.
4164 (v850_frame_saved_pc): Update.
4165 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4166 (m32r_find_callers_reg): Update.
4167 (m32r_frame_saved_pc): Update.
4168 * sh-tdep.c (sh_find_callers_reg): Update.
4169 (sh64_get_saved_pr): Update.
4170 (sh_init_extra_frame_info): Update.
4171 (sh_init_extra_frame_info): Update.
4172 (sh64_init_extra_frame_info): Update.
4173 (sh64_init_extra_frame_info): Update.
4174 * mcore-tdep.c (mcore_find_callers_reg): Update.
4175 (mcore_frame_saved_pc): Update.
4176 (mcore_init_extra_frame_info): Update.
4177 * i386-tdep.c (i386_frame_saved_pc): Update.
4178 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4179 (ia64_init_extra_frame_info): Update.
4180 (ia64_init_extra_frame_info): Update.
4181 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4182 * cris-tdep.c (cris_init_extra_frame_info): Update.
4183 * avr-tdep.c (avr_frame_chain): Update.
4184 (avr_init_extra_frame_info): Update.
4185 (avr_frame_saved_pc): Update.
4186 * arm-tdep.c (arm_find_callers_reg): Update.
4187 (arm_init_extra_frame_info): Update.
4188 (arm_frame_saved_pc): Update.
4190 2002-09-17 Tom Tromey <tromey@redhat.com>
4192 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4195 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4197 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4198 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4200 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4203 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4205 * osfsolib.c: Remove file, replaced by solib-osf.c.
4206 * Makefile.in: Remove compilation rules for osfsolib.c.
4208 2002-09-16 David Carlton <carlton@math.stanford.edu>
4210 * cp-valprint.c (cp_print_class_method): Correct args to
4211 check_stub_method_group.
4213 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4215 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4216 `set architecture'. Unify naming convention of functions.
4217 (h8300_skip_prologue): Improve prologue analysis.
4218 (h8300_push_arguments): Rewritten to more closely match GCC's
4219 bizarre argument-passing behavior, along with the comment describing
4221 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4222 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4223 sim, remote-e7000.c, remote-hms.c and remote.c
4225 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4227 * i386-tdep.c (gdb_print_insn_i386): Removed.
4228 (i386_print_insn): New function.
4229 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4230 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4233 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4235 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4238 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4240 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4241 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4242 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4244 2002-09-13 Christopher Faylor <cgf@redhat.com>
4246 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4248 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4250 * gdbtypes.c (check_stub_method): Make static.
4251 (check_stub_method_group): New function.
4252 * gdbtypes.h: Update prototypes.
4253 * cp-support.c: New file.
4254 * cp-support.h: New file.
4256 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4257 (update_method_name_from_physname): New function.
4258 (read_member_functions): Correct method names for operators
4259 and v3 constructors/destructors. Separate v2 constructors and
4261 * Makefile.in (stabsread.o): Update dependencies.
4262 (SFILES): Add cp-support.c.
4263 (COMMON_OBS): Add cp-support.o.
4264 (cp_support_h, cp-support.o): Add.
4266 * cp-valprint.c (cp_print_class_method): Call
4267 check_stub_method_group instead of check_stub_method. Remove
4269 * p-valprint.c (pascal_object_print_class_method): Likewise.
4270 * valops.c (search_struct_method): Likewise.
4271 (find_method_list, value_struct_elt_for_reference): Likewise.
4273 2002-09-13 Andrew Cagney <cagney@redhat.com>
4275 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4276 * gdbarch.h, gdbarch.c: Regenerate.
4278 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4280 * frame.c (find_saved_register): Delete function.
4281 * frame.h (find_saved_register): Delete declaration.
4284 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4286 * mips-tdep.c (read_next_frame_reg): Re-hack using
4287 frame_register_unwind.
4289 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4291 * mips-tdep.c (mips_get_saved_register): Re-hack using
4292 frame_register_unwind.
4294 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4296 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4297 vector. Will be useful for Interix.
4298 * gdbarch.h, gdbarch.c: Regenerate.
4300 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4301 name of the malloc function by NAME_OF_MALLOC.
4303 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4305 * value.h (find_function_in_inferior): Add const keyword to
4306 one of the parameters. Allows us to invoke this function with
4308 * valops.c (find_function_in_inferior): Likewise.
4310 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4312 * exec.c (xfer_memory): Fix compilation warning with old versions
4314 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4316 2002-09-12 David Carlton <carlton@math.stanford.edu>
4318 * symtab.h: Run through gdb_indent.h.
4319 Add 2002 to Copyright year list.
4321 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4323 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4325 * MAINTAINERS: Add myself to write after approval list.
4327 2002-09-11 J. Brobecker <brobecker@gnat.com>
4329 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4331 2002-09-11 J. Brobecker <brobecker@gnat.com>
4333 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4336 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4338 * procfs.c (do_detach): Clear current signal, not just fault.
4339 Corrects problem with breakpoint trap signal leaking to detached
4342 2002-09-10 Michael Snyder <msnyder@redhat.com>
4344 * buildsym.c (finish_block): Protect against null pointer.
4346 2002-09-10 Andrew Cagney <cagney@redhat.com>
4348 * infcmd.c (default_print_registers_info): Send all output to
4349 ``file'' instead of ``gdb_stdout''.
4351 2002-09-10 Michael Snyder <msnyder@redhat.com>
4353 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4354 LONGEST, and use signed register read (addresses are sign-
4357 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4359 * event-loop.c (gdb_do_one_event): Make public.
4360 * event-loop.h (gdb_do_one_event): Declare.
4362 2002-09-10 Jeff Law <law@redhat.com>
4364 * infttrace.c (child_resume): Simplify and rework to avoid
4367 2002-09-09 Fred Fish <fnf@intrinsity.com>
4369 * printcmd.c (print_scalar_formatted): "len" is the number of
4370 target bytes, NOT the number of target bits.
4372 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4374 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4375 * top.c (init_main): Set rl_terminal_name.
4377 2002-09-08 Aidan Skinner <aidan@velvet.net>
4379 * ada-lang.c (ada_array_bound, ada_type_match,
4380 _initialize_ada_language): Fix K&R definitions.
4381 * ada-tasks.c (get_current_task): Fix K&R definitions.
4382 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4384 2002-09-07 Christopher Faylor <cgf@redhat.com>
4386 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4389 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4391 * i386-tdep.c (i386_register_virtual_type,
4392 i386_register_convertible, i386_register_convert_to_virtual,
4393 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4394 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4395 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4396 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4397 Don't set push_arguments twice.
4399 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4400 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4401 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4402 sigtramp_end to NULL.
4403 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4405 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4407 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4410 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4411 * gdbarch.h, gdbarch.c: Re-generate.
4412 * blockframe.c (find_pc_sect_partial_function): Convert to use
4413 SIGTRAMP_START_P predicate.
4415 2002-09-05 Michael Snyder <msnyder@redhat.com>
4417 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4418 generic_dummy_frame method and old method. Also distinguish
4419 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4420 (arm_extract_return_value): Use new regcache method.
4422 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4423 adjustment that doesn't conform to the ABI.
4424 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4425 saved regcache, not from current regcache.
4427 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4429 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4432 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4434 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4435 if arm_apcs_32 is false.
4437 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4439 GDB 5.3 branch created.
4441 2002-09-03 Theodore A. Roth <troth@verinet.com>
4443 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4444 generic_unwind_get_saved_register.
4446 2002-09-03 David Carlton <carlton@math.stanford.edu>
4448 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4449 argument (PR gdb/653). Update call to smash_to_method_type.
4450 (read_structure_scope): Update call to dwarf2_add_member_fn.
4452 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4454 * x86-64-linux-tdep.c: Include gdb_string.h
4455 * x86-64-linux-nat.c: Ditto.
4457 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4459 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4460 when YYDEBUG is set to 1.
4461 * c-exp.y: Likewise.
4462 * f-exp.y: Likewise.
4463 * jv-exp.y: Likewise.
4464 * m2-exp.y: Likewise.
4465 * p-exp.y: Likewise.
4467 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4469 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4471 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4472 solib_svr4_fetch_link_map_offsets to
4473 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4474 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4475 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4476 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4477 solib-svr4.o, and solib-legacy.o.
4478 * config/i386/tm-nbsd.h: Include solib.h.
4480 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4482 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4483 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4484 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4485 comment noting that this needs its own target configuration.
4486 * config/i386/nbsd.mt: New file.
4487 * config/i386/nbsdaout.mt: Remove.
4488 * config/i386/nbsdelf.mt: Ditto.
4489 * config/i386/tm-nbsdaout.h: Ditto.
4491 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4493 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4494 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4495 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4497 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4498 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4499 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4501 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4503 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4504 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4505 * i386-tdep.h (i386bsd_init_abi): New prototype.
4506 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4507 function declaration.
4508 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4509 for NetBSD-a.out or NetBSD-ELF.
4510 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4511 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4512 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4513 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4515 (i386nbsd_pc_in_sigtramp): New function.
4516 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4517 i386nbsd_pc_in_sigtramp.
4518 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4519 and i386nbsdelf_init_abi OS ABI handlers.
4520 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4521 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4523 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4525 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4526 registers if the target really has them.
4528 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4530 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4533 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4535 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4537 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4538 (alphanbsd_skip_sigtramp_frame): New functions.
4539 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4540 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4541 to alphanbsd_sigcontext_addr.
4543 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4545 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4547 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4548 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4549 nbsd_pc_in_sigtramp.
4550 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4551 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4552 * nbsd-tdep.c: Include gdb_string.h.
4553 (nbsd_pc_in_sigtramp): New function.
4554 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4555 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4556 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4557 ppcnbsd_pc_in_sigtramp.
4558 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4559 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4560 shnbsd_pc_in_sigtramp.
4561 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4562 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4563 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4565 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4567 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4568 watchpoints to NULL.
4569 (insert_breakpoints): set val field of watchpoints if NULL.
4572 2002-08-29 Jim Blandy <jimb@redhat.com>
4574 * symtab.c (lookup_symbol_aux): In the cases where we find a
4575 minimal symbol of an appropriate name and use its address to
4576 select a symtab to read and search, use `name' (as passed to us)
4577 as the demangled name when searching the symtab's global and
4578 static blocks, not the minsym's name.
4580 2002-08-29 Keith Seitz <keiths@redhat.com>
4582 * stack.c (print_frame_info_base): Always set current_source_symtab
4583 and current_source_line.
4585 2002-08-29 Donn Terry <donnte@microsoft.com>
4587 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4589 2002-08-28 Keith Seitz <keiths@redhat.com>
4591 * stack.c (select_frame): Add FIXME concerning selected-frame
4593 (select_frame_command): Send selected-frame-level-changed
4594 event notification, but only if the level actually changed.
4595 (up_silently_base): Add selected-frame-level-changed event
4597 (down_silently_base): Likewise.
4599 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4601 * Makefile.in: Update dependencies for all gdb/*.c files.
4603 2002-08-27 Tom Tromey <tromey@redhat.com>
4605 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4606 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4607 Update dependencies.
4608 * i387-tdep.c: Include gdb_string.h.
4609 * osabi.c: Likewise.
4610 * i386-linux-nat.c: Likewise.
4611 * lin-lwp.c: Likewise.
4612 * ax-gdb.c: Likewise.
4613 * signals/signals.c: Likewise.
4614 * jv-valprint.c: Likewise.
4615 * p-lang.c: Likewise.
4616 * c-valprint.c: Likewise.
4617 * cp-abi.c: Likewise.
4619 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4621 * cli/cli-script.h (copy_command_lines): Export.
4622 * breakpoint.c: Include cli/cli-script.h.
4623 * Makefile.in (breakpoint.o): Update dependencies.
4625 2002-08-26 Michael Snyder <msnyder@redhat.com>
4627 * breakpoint.c (insert_breakpoints): Protect all references
4628 to 'process_warning'. Shorten long lines.
4630 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4632 * cli/cli-script.c (copy_command_lines): New function.
4633 * defs.h (copy_command_lines): Export.
4634 * testsuite/gdb.base/commands.exp: New tests for commands
4635 attached to a temporary breakpoint, and for commands that
4636 delete the breakpoint they are attached to.
4638 2002-08-26 Michael Snyder <msnyder@redhat.com>
4640 * breakpoint.c (bpstat_stop_status): Instead of copying the
4641 pointer to the breakpoint commands struct, make a new copy
4642 of the struct and point to that.
4643 (bpstat_clear): Free the commands struct.
4644 (bpstat_clear_actions): Free the commands struct.
4645 (bpstat_do_actions): Free the command actions. Also execute
4646 the local cleanups, instead of deleting them.
4647 (delete_breakpoint): Leave the commands field of the bpstat
4648 chain alone -- it will be freed later.
4650 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4652 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4653 deleted in 2002-08-20 commit. This function is still used by
4656 2002-08-26 Keith Seitz <keiths@redhat.com>
4658 * gdb-events.sh: Add selected-frame-level-changed event.
4659 * gdb-events.c: Regenerated.
4660 * gdb-events.h: Regenerated.
4662 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4665 * inflow.c (terminal_save_ours): New function to save terminal
4667 * inferior.h (terminal_save_ours): Declare.
4668 * target.c (debug_to_terminal_save_ours): New function.
4669 (cleanup_target): Defaults to_terminal_save_ours.
4670 (update_current_target): Inherit to_terminal_save_ours.
4671 (setup_target_debug): Set to_terminal_save_ours.
4672 * target.h (target_terminal_save_ours): New to save terminal settings.
4673 (target_ops): New member to_terminal_save_ours.
4674 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4675 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4676 * inftarg.c (init_child_ops): Likewise.
4677 * m3-nat.c (init_m3_ops): Likewise.
4678 * procfs.c (init_procfs_ops): Likewise.
4679 * wince.c (init_child_ops): Likewise.
4680 * win32-nat.c (init_child_ops): Likewise.
4681 * sol-thread.c (init_sol_thread_ops): Likewise.
4683 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4685 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4686 use regcache_* functions.
4687 (i386_gdbarch_init): Set store_return_value instead of
4688 deprecated_store_return_value.
4690 * regcache.c (regcache_raw_write_signed,
4691 regcache_raw_write_unsigned): New functions.
4692 * regcache.h (regcache_raw_write_signed,
4693 regcache_raw_write_unsigned): New prototypes.
4695 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4697 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4698 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4699 source file dependencies. Cleanup corresponding generator rules.
4701 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4703 * regcache.h (register_offset_hack): Declare.
4704 (regcache_cooked_read_using_offset_hack): Declare.
4705 (regcache_cooked_write_using_offset_hack): Declare.
4707 * regcache.c (register_offset_hack): New function.
4708 (regcache_cooked_read_using_offset_hack): New function.
4709 (regcache_cooked_write_using_offset_hack): New function.
4710 (regcache_dump): Check that the registers, according to their
4711 offset, are packed hard against each other.
4712 (cooked_xfer_using_offset_hack): New function.
4714 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4716 * regcache.c (struct regcache_descr): Add field register_type.
4717 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4719 (init_regcache_descr): Initialize register_type. Pass the descr
4720 to init_legacy_regcache_descr. Use register_type instead of
4721 REGISTER_VIRTUAL_TYPE.
4722 (register_type): New function.
4723 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4724 * regcache.h (register_type): Declare.
4726 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4728 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4729 instead of deprecated_store_return_value. Fix fallout from
4730 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4732 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4734 * regcache.c (max_register_size): New function.
4735 (init_legacy_regcache_descr): Ensure that max_register_size is
4736 large enough for REGISTER_VIRTUAL_SIZE.
4737 * regcache.h (max_register_size): Declare.
4739 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4741 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4743 (e500_extract_return_value): Change type of valbuf pointer to
4746 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4748 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4751 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4752 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4753 long long) to prevent compiler warning on 64-bit systems.
4755 2002-08-23 Andrew Cagney <cagney@redhat.com>
4757 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4758 (DEPRECATED_STORE_RETURN_VALUE): New method.
4759 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4762 * values.c (set_return_value): Pass current_regcache to
4764 * arch-utils.h (legacy_store_return_value): Declare.
4765 * arch-utils.c (legacy_store_return_value): New function.
4766 (legacy_extract_return_value): Update parameters.
4768 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4770 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4771 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4772 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4773 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4774 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4775 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4776 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4777 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4778 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4779 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4782 * i386-tdep.c (i386_extract_return_value): Update.
4783 * arch-utils.c (legacy_extract_return_value): Update.
4784 * frv-tdep.c (frv_gdbarch_init): Update.
4785 * cris-tdep.c (cris_gdbarch_init): Update.
4786 * d10v-tdep.c (d10v_gdbarch_init): Update.
4787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4788 * m68k-tdep.c (m68k_gdbarch_init): Update.
4789 * mcore-tdep.c (mcore_gdbarch_init): Update.
4790 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4791 * s390-tdep.c (s390_gdbarch_init): Update.
4792 * sparc-tdep.c (sparc_gdbarch_init): Update.
4793 * sh-tdep.c (sh_gdbarch_init): Update.
4794 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4795 * v850-tdep.c (v850_gdbarch_init): Update.
4796 * avr-tdep.c (avr_gdbarch_init): Update.
4797 * ia64-tdep.c (ia64_gdbarch_init): Update.
4798 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4799 * vax-tdep.c (vax_gdbarch_init): Update.
4800 * alpha-tdep.c (alpha_gdbarch_init): Update.
4801 * arm-tdep.c (arm_gdbarch_init): Update.
4802 * mips-tdep.c (mips_gdbarch_init): Update.
4803 * i386-tdep.c (i386_gdbarch_init): Update.
4805 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4807 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4808 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4810 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4812 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4815 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4817 * infrun.c (handle_inferior_event): Move a comment outside of a
4818 function call, in order to avoid indent reformatting this part
4819 of the code in an unreadable way.
4821 2002-08-23 Grace Sainsbury <graces@redhat.com>
4823 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4824 when breakpoints fail. Move general breakpoint error messages to
4826 * breakpoint.c (insert_breakpoints): Change warnings when
4827 breakpoints are nto inserted to specify the type. Remove call to
4828 memory_error when hardware breakpoints can't be inserted. Remove
4829 multiple calls to warning so all messages are sent to the user at
4831 (delete_breakpoints): Make insert error messsages more explicit.
4833 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4835 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4836 gdbserver/ChangeLog.
4838 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4840 * i386-tdep.c: Include "objfiles.h".
4841 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4842 skip_trampoline_code.
4843 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4844 (CPLUS_MARKER): Define to '.'.
4846 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4848 (linux_corefile_thread_callback): Increase args->num_notes.
4849 (linux_make_note_section): Initialize thread_args.num_notes, and
4850 use it to determine whether notes for any threads were created.
4852 2002-08-23 Donn Terry <donnte@microsoft.com>
4854 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4855 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4857 (write_with_trace): Conditionalize out the switch branch handling
4858 PCSHOLD if the corresponding macro is not defined. Likewise for
4859 PRSABORT and PRSTOP.
4860 This change will be needed by the Interix port.
4862 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4864 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4865 write_register wherever possible instead of manipulating the
4866 register bytes directly.
4867 Assign VALUE_CONTENTS to a variable and use that.
4868 The GPR numbers are now dependent on the architecture.
4870 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4872 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4874 (skip_prologue): Add support for BookE/e500 instructions.
4875 (e500_extract_return_value): New function.
4876 (frame_get_saved_regs): Add support for saving ev registers and
4878 (e500_store_return_value): New function.
4879 (rs6000_gdbarch_init): Move up default intializations of
4880 deprecated_extract_return_value and store_return_value. Overwrite
4881 init of store_return_value with e500 specific version.
4882 Set extract_return_value for e500.
4884 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4886 * blockframe.c (generic_call_dummy_register_unwind): Use
4887 regcache_cooked_read to catch cases in which the variable is
4888 stored in a pseudo register.
4890 2002-08-22 Andrew Cagney <cagney@redhat.com>
4892 * NEWS: Mention that the i960 has been made obsolete.
4893 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4895 (remote-nrom.o): Obsolete target.
4896 (remote-nindy.o, i960-tdep.o): Ditto.
4897 * remote-nrom.c: Make file obsolete.
4898 * remote-nindy.c, remote-vx960.c: Ditto.
4899 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4900 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4901 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4902 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4903 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4904 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4905 i960-*-vxworks* obsolete.
4906 * MAINTAINERS: Note that the i960 is obsolete.
4908 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4910 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4911 detach to allow reinitialization.
4913 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4915 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4918 2002-08-22 Jim Blandy <jimb@redhat.com>
4920 * coffread.c (coff_symfile_read): Don't try to read the line
4921 number table from disk if the image file doesn't have a symbol
4922 table; we'll never actually look at the info anyway, and Windows
4923 ships DLL's with bogus file offsets for the line number data.
4925 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4927 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4930 2002-08-21 Michael Snyder <msnyder@redhat.com>
4932 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4933 (MSYMBOL_SIZE): Replace macro with function.
4934 (DEFAULT_MIPS_TYPE): Delete unused macro.
4935 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4936 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4938 2002-08-21 Jim Blandy <jimb@redhat.com>
4940 * valops.c (value_cast): Simplify and correct logic for doing a
4941 static cast from a pointer to a base class to a pointer to a
4944 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4946 * infcmd.c (default_print_registers_info): Replace
4948 (registers_info): Use gdbarch_print_registers_info instead of
4950 * inferior.h (default_print_registers_info): Replace
4952 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4953 (DO_REGISTERS_INFO): Change to a predicate function.
4954 * gdbarch.h, gdbarch.c: Regenerate.
4956 2002-08-21 Keith Seitz <keiths@redhat.com>
4958 * gdb-events.sh: Add target-changed event.
4959 * gdb-events.c: Regenerated.
4960 * gdb-events.c: Regenerated.
4961 * valops.c (value_assign): Add target-changed event notification
4962 to inlval_register, lval_memory, and lval_reg_frame_relative.
4964 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4966 * NEWS: Add an entry regarding the improvement of the next/step
4967 operation on Alpha Tru64 multi-processor machines.
4969 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4971 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4973 * Makefile.in: Update all _h macro definitions.
4974 * Makefile.in (install-gdbtk): Move to install section.
4975 (rdi-share/libangsd.a): Move to end of file.
4977 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4979 * frame.c (frame_register_unwind): When a register, set addrp to
4980 the register's byte.
4982 2002-08-20 Michael Snyder <msnyder@redhat.com>
4984 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4985 used locally, so move them from the target machine header to here.
4986 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4987 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4989 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4991 2002-08-20 Andrew Cagney <cagney@redhat.com>
4993 * NEWS: Mention that the Apollo line was made obsolete.
4994 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4995 m68*-hp-hpux* obsolete.
4996 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4997 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4998 * buildsym.c (make_blockvector): Make static.
4999 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5000 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5001 (ALLDEPFILES): Remove dstread.c.
5002 (dstread.o): Obsolete make rule.
5003 * dstread.c: Makefile obsolete.
5005 * config/m68k/hp300hpux.mt: Ditto.
5006 * config/m68k/hp300hpux.mh: Ditto.
5007 * config/m68k/hp300bsd.mt: Ditto.
5008 * config/m68k/hp300bsd.mh: Ditto.
5009 * config/m68k/apollo68b.mt: Ditto.
5010 * config/m68k/apollo68v.mh: Ditto.
5011 * config/m68k/apollo68b.mh: Ditto.
5013 2002-08-20 Michael Snyder <msnyder@redhat.com>
5015 * mips-tdep.c (mips_in_return_stub): Make static.
5016 (mips_gdbarch_init): Set in_solib_return_trampoline.
5017 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5019 2002-08-20 Michael Snyder <msnyder@redhat.com>
5021 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5022 * gdbarch.c, gdbarch.h: Regenerate.
5023 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5025 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5027 2002-08-20 Michael Snyder <msnyder@redhat.com>
5029 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5030 (mips_gdbarch_init): Set skip_trampoline_code,
5031 in_solib_call_trampoline.
5032 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5033 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5035 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5037 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5039 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5040 vector type for ev registers.
5041 (e500_pseudo_register_read): New function.
5042 (e500_pseudo_register_write): New function.
5043 (e500_dwarf2_reg_to_regnum): New function.
5044 (PPC_UISA_NOFP_SPRS): New macro.
5045 (PPC_EV_REGS): New macro.
5046 (PPC_GPRS_PSEUDO_REGS): New macro.
5047 (registers_e500): New register set for e500.
5048 (variants): Add e500 variant.
5049 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5050 before setting architectural dependent variations. Initialize ev
5051 registers numbers. Add case for e500 architecture. Set the
5052 number of pseudo registers.
5054 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5056 * rs6000-tdep.c: Clean up comments.
5058 2002-08-20 Andrew Cagney <cagney@redhat.com>
5060 * h8300-tdep.c: Re-indent file.
5062 2002-08-20 Jim Blandy <jimb@redhat.com>
5064 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5067 2002-08-20 Keith Seitz <keiths@redhat.com>
5069 * breakpoints.c (watch_command_1): Use internal breakpoint
5070 when setting a watchpoint_scope breakpoint.
5072 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5074 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5075 (build_builtin_type_vec64i): Ditto.
5076 (build_builtin_type_vec128): Ditto.
5077 (build_builtin_type_vec128i): Ditto.
5079 2002-08-19 Michael Snyder <msnyder@redhat.com>
5081 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5082 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5083 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5084 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5085 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5086 CALL_DUMMY_ADDRESS): Delete.
5087 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5088 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5089 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5090 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5091 push_return_address.
5092 (mips_register_raw_size, mips_eabi_use_struct_convention,
5093 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5094 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5095 mips_init_extra_frame_info, mips_eabi_push_arguments,
5096 mips_n32n64_push_arguments, mips_push_return_address,
5097 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5098 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5100 2002-08-19 Michael Snyder <msnyder@redhat.com>
5102 * mips-tdep.c (mips_frame_num_args): New function.
5103 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5104 frame_saved_pc, frame_args_address, frame_locals_address,
5105 frame_num_args, and frame_args_skip.
5106 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5107 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5108 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5109 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5111 2002-08-20 Michael Snyder <msnyder@redhat.com>
5113 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5114 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5115 * mips-tdep.c (mips_store_struct_return): New function.
5116 (mips_extract_struct_value_address): New function.
5117 (mips_gdbarch_init): Set store_struct_return and
5118 extract_struct_value_address.
5120 2002-08-20 David Carlton <carlton@math.stanford.edu>
5122 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5123 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5124 (read_file_scope): Check that line_header is nonzero before
5125 decoding macro information.
5127 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5129 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5130 flag the general-purpose registers as floating-point on targets
5131 that don't support the floating-point registers.
5133 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5135 * rs6000-tdep.c (altivec_register_p): Delete.
5136 (rs6000_do_altivec_registers): Delete.
5137 (rs6000_altivec_registers_info): Delete.
5138 (rs6000_do_registers_info): Delete.
5139 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5140 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5142 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5144 * infcmd.c (do_registers_info): Print vector registers in hex
5146 (print_vector_info): Check that printing registers
5148 (print_float_info): Ditto.
5150 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5152 * mips-tdep.c (mips_gdbarch_init): Update.
5153 (mips_o32_extract_return_value): Rewrite.
5154 (mips_o32_store_return_value): Rewrite.
5155 (mips_o32_xfer_return_value): New function.
5156 (mips_xfer_register): Tweak debug print message. Allow for
5157 buf_offset when dumping the value transfered.
5159 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5161 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5162 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5163 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5164 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5165 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5167 2002-08-14 Michael Snyder <msnyder@redhat.com>
5169 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5171 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5173 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5175 (P): New macro to define a register as a pseudo register.
5176 (R, R4, R8, R16, FR32, R64, R0): Updated.
5177 (struct variant): Add new fields for number of pseudo registers
5178 and number of total registers.
5179 (tot_num_registers): New macro replacing....
5180 (num_registers): ...deleted macro.
5181 (num_registers): New function.
5182 (num_pseudo_registers): New function.
5183 (variants): Update all variants to intialize new fields correctly.
5184 Postpone initialization of number of pseudo regs and real regs.
5185 (init_variants): New function.
5186 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5189 2002-08-19 David Carlton <carlton@math.stanford.edu>
5191 * valops.c (search_struct_field): Change error message to treat
5192 return value of 0 from value_static_field as meaning that field is
5194 (value_struct_elt_for_reference): Ditto.
5195 * values.c (value_static_field): Treat an unresolved location the
5196 same as a nonexistent symbol. Fix PR gdb/635.
5197 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5198 enclosed. Fix PR gdb/574.
5199 * MAINTAINERS: Add self to Write After Approval list.
5201 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5203 * mips-tdep.c (mips_xfer_register): New function.
5204 (mips_n32n64_extract_return_value): Rewrite.
5205 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5206 instead of deprecated_extract_return_value.
5208 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5210 * rs6000-tdep.c (TDEP): Delete macro.
5211 (branch_dest): Replace use of TDEP macro with its body.
5212 (rs6000_pop_frame): Ditto.
5213 (rs6000_push_arguments): Ditto.
5214 (rs6000_skip_trampoline_code): Ditto.
5215 (rs6000_frame_saved_pc): Ditto.
5216 (rs6000_frame_chain): Ditto.
5217 (rs6000_register_name): Ditto.
5218 (rs6000_register_byte): Ditto.
5219 (rs6000_register_raw_size): Ditto.
5220 (rs6000_register_virtual_type): Ditto.
5221 (rs6000_register_convertible): Ditto.
5222 (rs6000_convert_from_func_ptr_addr): Ditto.
5224 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5226 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5228 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5229 MIPS_LINUX_JB_ELEMENT_SIZE.
5230 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5231 for MAX_REGISTER_RAW_SIZE arrays.
5232 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5233 MIPS_LINUX_JB_ELEMENT_SIZE.
5235 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5237 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5239 2002-08-19 Aidan Skinner <aidan@velvet.net>
5241 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5242 ada-valprint.c ada-tasks.c.
5243 (YYFILES): Add ada-exp.y.
5244 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5245 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5246 (ada-exp.tab.o): New target.
5248 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5250 * regcache.c (regcache_xfer_part): New function.
5251 (regcache_raw_read_part): New function.
5252 (regcache_raw_write_part): New function.
5253 (regcache_cooked_read_part): New function.
5254 (regcache_cooked_write_part): New function.
5255 * regcache.h (regcache_raw_read_part): Declare.
5256 (regcache_raw_write_part): Declare.
5257 (regcache_cooked_read_part): Declare.
5258 (regcache_cooked_write_part): Declare.
5260 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5262 * remote.c (remote_open_1): Add async_p.
5263 (remote_async_open_1): Delete.
5264 (open_remote_target): Delete.
5265 (remote_open, extended_remote_open): Update calls to remote_open_1.
5266 (remote_async_open, extended_remote_async_open): Call
5267 remote_open_1 instead of remote_async_open_1.
5269 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5271 * blockframe.c: Fix a few coding standard violations.
5273 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5275 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5277 * config/i386/tm-i386sco5.h: ... here. File removed.
5278 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5280 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5281 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5282 (TM_FILE): Set to tm-i386.h.
5283 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5284 * config/i386/tm-i386v.h: Remove file.
5285 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5286 instead of "i386/tm-i386v.h".
5287 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5288 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5290 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5291 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5294 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5296 * config/i386/nm-i386v.h: Add protection against
5298 (i386_register_u_addr): Remove prototype.
5299 (register_u_addr): New prototype.
5300 (REGISTER_U_ADDR): Redefine accordingly.
5301 * i386v-nat.c: Improve several comments.
5302 (i386_register_u_addr): Change signature and rename to
5303 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5306 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5308 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5309 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5310 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5311 deprecated_extract_return_value.
5312 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5313 rename mips_o32o64_push_arguments.
5314 (mips_gdbarch_init): Update.
5315 (mips_extract_return_value): Delete.
5316 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5317 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5318 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5319 (mips_n32n64_extract_return_value): Clone
5320 mips_extract_return_value.
5321 (mips_store_return_value): Delete.
5322 (mips_o32_store_return_value): Clone mips_store_return_value.
5323 (mips_o64_store_return_value): Clone mips_store_return_value.
5324 (mips_eabi_store_return_value): Clone mips_store_return_value.
5325 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5327 2002-08-18 Aidan Skinner <aidan@velvet.net>
5329 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5330 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5332 2002-08-18 Aidan Skinner <aidan@velvet.net>
5334 * ada-lang.c: Run through gdb_indent.sh.
5335 * ada-lang.h: Run through gdb_indent.sh.
5336 * ada-tasks.c: Run through gdb_indent.sh.
5337 * ada-typeprint.c: Run through gdb_indent.sh.
5338 * ada-valprint.c: Run through gdb_indent.sh.
5340 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5342 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5345 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5347 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5349 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5350 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5352 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5353 write_register_gen instead of write_register_bytes.
5355 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5356 i[3456]-*-osf1mk* configurations have been made obsolete.
5357 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5358 i[3456]86-*-osf1mk* hosts obsolete.
5359 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5361 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5362 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5363 config/i386/i386m3.mt, config/i386/nm-m3.h,
5364 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5365 config/i386/i386mk.mh, config/i386/i386mk.mt,
5366 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5368 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5369 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5370 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5372 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5374 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5375 (hppa_value_returned_from_stack): Declare.
5376 (hppa_extract_return_value): Declare.
5377 * config/pa/hppa.mt: New file.
5378 * configure.tgt: Recognize hppa*-*-*.
5379 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5381 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5383 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5386 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5388 * top.c (gdb_rl_operate_and_get_next): Make sure
5389 operate-and-get-next functions correctly even when the history
5390 list is completely filled.
5392 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5394 * MAINTAINERS (Target Instruction Set Architectures): Rename
5395 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5396 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5397 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5398 already listed under Host/Native.
5400 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5401 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5404 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5406 * config/ia64/ia64.mt: New file.
5407 * config/alpha/alpha.mt: New file.
5408 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5409 ia64-linux-gnu. Mention that ia64-elf is broken.
5410 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5412 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5414 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5415 generic_func_frame_valid instead of func_frame_valid.
5417 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5419 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5420 procfs appears to be broken when debugging on multi-processor
5421 machines. So enable software single stepping in order to avoid
5422 using the procfs interface to do next/step operations, using
5423 internal breakpoints instead.
5425 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5426 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5427 make this pc address equal to the value it would have if the
5428 system stepping capability was used. Also set a new flag used
5429 to ensure that we don't readjust the PC one more time later.
5431 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5432 address by DECR_PC_AFTER_BREAK when software single step is
5433 in use for this architecture, as this has already been taken
5434 care of in handle_inferior_event().
5436 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5438 * infrun.c (handle_inferior_event): Minor reformatting, to make
5439 a rather long condition expression easier to read.
5441 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5443 * Makefile.in (gdbtk.o): Move to end of file.
5444 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5445 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5446 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5447 (gdbtk-wrapper.o, gdbres.o): Ditto.
5449 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5451 * Makefile.in (copying.o): Separate out compile rule.
5452 (hpux-thread.o, procfs.o, signals.o): Ditto.
5453 (v850ice.o, z8k-tdep.o): Ditto.
5454 (tui-file.o): Move to TUI section.
5455 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5456 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5458 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5460 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5461 skip_trampoline_code, for better namespace-proofing.
5463 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5465 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5467 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5469 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5471 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5472 signal, check whether we hit a breakpoint before checking for a
5473 single step breakpoint. Otherwise, GDB fails to notice that a
5474 breakpoint has been hit when stepping onto a breakpoint.
5476 2002-08-16 Keith Seitz <keiths@redhat.com>
5478 * gdb-events.sh (clear_gdb_event_hooks): New function.
5479 * gdb-events.c: Regenerate.
5480 * gdb-events.h: Regenerate.
5482 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5484 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5485 not_a_sw_breakpoint.
5486 * breakpoint.h (bpstat_stop_status): Add parameter names.
5488 2002-08-16 Grace Sainsbury <graces@redhat.com>
5490 * remote.c (remote_insert_hw_breakpoint)
5491 (remote_remove_hw_breakpoint): Fix calculation of length field
5494 2002-08-15 Michael Snyder <msnyder@redhat.com>
5496 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5497 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5498 (supply_fpregset): Ditto.
5500 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5501 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5502 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5503 (TARGET_READ_SP): Delete.
5504 (DO_REGISTERS_INFO): Delete.
5505 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5507 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5508 from macros to functions.
5510 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5511 (mips_register_convertible, mips_register_convert_to_virtual,
5512 mips_register_convert_to_raw): Make static.
5513 (mips_read_sp): New function.
5514 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5515 (mips_do_registers_info): Make static.
5516 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5517 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5518 (mips_register_convert_from_type, mips_register_convert_to_type):
5520 (mips_gdbarch_init): Set up function_start_offset,
5521 register_virtual_size, pc_in_sigtramp.
5523 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5525 * infcmd.c (vector_info): New function.
5526 (_initialize_infcmd): Add command "info vector".
5527 (print_vector_info): New function.
5529 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5530 * gdbarch.h, gdbarch.c: Regenerate.
5532 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5534 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5535 ``print_all''. Only print vector registers when ``print_all''.
5537 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5539 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5540 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5542 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5543 Add `args' parameter.
5544 * gdbarch.h, gdbarch.c: Regenerate.
5546 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5548 * infcmd.c (float_info): Call print_float_info.
5549 (print_float_info): New function. By default, print the
5550 floating-point registers.
5552 * arch-utils.h (default_print_float_info): Delete declaration.
5553 * arch-utils.c (default_print_float_info): Delete function.
5555 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5557 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5560 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5563 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5564 * configure.host: Make i[3456]86-*-aix host obsolete.
5565 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5566 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5567 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5568 config/i386/xm-i386aix.h: Make files obsolete.
5569 * i386aix-nat.c: Make file obsolete.
5570 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5571 (i386aix-nat.o): Make target obsolete.
5573 * config/i386/nm-gnu.h: Removed.
5574 * config/i386/nm-i386gnu.h: New file.
5575 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5576 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5578 * config/i386/tm-i386gnu.h: ... here. Removed.
5579 * config/i386/xm-i386gnu.h: Removed.
5580 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5581 (NAT_FILE): Set to nm-i386gnu.h.
5582 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5583 * i386-tdep.c: New file.
5584 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5585 (i386gnu-tdep.o): Specify dependencies.
5587 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5589 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5590 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5591 Adjust a few comments to reflect reality a bit closer.
5592 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5593 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5594 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5595 target_insert_watchpoint, target_remove_watchpoint):
5597 * config/i386/nm-i386sco5.h: ... here.
5598 (kernel_u_size): Add prototype. Improve a few comments and add
5599 protection against multiple inclusion.
5601 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5604 * uw-thread.c (SP_ARG0): Define if not already defined.
5605 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5607 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5609 * config/i386/tm-i386.h: Don't include "regcache.h".
5611 * i387-tdep.h (i387_print_float_info): New prototype.
5612 * i387-tdep.c (print_i387_value, print_i387_ext,
5613 print_i387_status_word, print_i387_control_word): Add `struct
5614 ui_file *' argument and use it for output.
5615 (i387_print_float_info): Renamed from i387_float_info. Add
5616 `struct gdbarch *' and `struct ui_file *' arguments and use the
5618 * i386-tdep.c: Include "i387-tdep.h".
5619 (i386_gdbarch_init): Set print_float_info.
5620 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5621 (FLOAT_INFO): Remove define.
5623 2002-08-13 Michael Snyder <msnyder@redhat.com>
5625 * mips-tdep.c (mips_push_arguments): Rename to
5626 mips_eabi_push_arguments, and tune for EABI.
5627 (MIPS_REGS_HAVE_HOME_P): Delete.
5628 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5629 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5630 Delete references to mips_regs_have_home_p.
5632 2002-08-14 Keith Seitz <keiths@redhat.com>
5634 * Makefile.in (install-gdbtk): Create insight plugin directory.
5635 Install plugins.tcl file.
5637 2002-08-14 Keith Seitz <keiths@redhat.com>
5639 * configure.in: Move SUBDIRS to near top of the file so that
5640 --enable options may add things to it.
5641 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5642 * configure: Regenerate.
5644 2002-08-13 Michael Snyder <msnyder@redhat.com>
5646 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5647 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5648 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5650 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5652 * vax-tdep.c (vax_get_saved_register): Delete function.
5653 (vax_gdbarch_init): Update.
5654 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5655 (ns32k_gdbarch_init): Update.
5656 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5657 (alpha_gdbarch_init): Update.
5659 2002-08-13 Andrew Cagney <cagney@redhat.com>
5661 * regcache.c (init_regcache_descr): Overallocate the
5662 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5663 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5665 (set_register_cached): Add range checking assertions. Use
5668 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5670 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5671 numbers for MMX registers.
5673 2002-08-13 Andrew Cagney <cagney@redhat.com>
5675 * i386-tdep.c (i386_gdbarch_init): Use
5676 generic_unwind_get_saved_register.
5678 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5680 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5681 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5683 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5684 Delete. Add comment regarding this now-deleted target method.
5686 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5688 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5689 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5690 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5691 real PC and the page number (if it's within the memory bank window).
5692 (m68hc11_pseudo_register_write): Likewise when saving.
5693 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5694 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5695 (m68hc11_register_raw_size): And use 32-bit for it.
5696 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5697 16K memory bank is used by the prog; also use the virtual pc.
5699 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5701 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5702 (m68hc11_gdbarch_init): Install it in gdbarch.
5703 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5704 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5705 (MSYMBOL_SIZE): New for documentation.
5706 (insn_return_kind): Enum to specify how a function returns.
5707 (frame_extra_info): Cleanup and record the return mode.
5708 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5709 register in address computation.
5710 (m68hc11_get_return_insn): New to obtain the return instruction used
5712 (m68hc11_frame_init_saved_regs): Take into account the return
5713 instruction used by the function for far and interrupt functions.
5714 (m68hc11_init_extra_frame_info): Take into account page register.
5715 (m68hc11_frame_args_address): Adjust according to the return mode.
5716 (show_regs): Print page register only when it's used.
5718 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5720 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5721 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5722 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5724 (m68hc11_register_raw_size): Likewise.
5726 2002-08-13 Andrew Cagney <cagney@redhat.com>
5728 * i386-tdep.c (i386_register_name): Handle mmx registers.
5729 (mmx_regnum_p): New function.
5730 (i386_mmx_names): New array.
5731 (mmx_num_regs): New variable.
5732 (i386_pseudo_register_read): New function.
5733 (i386_pseudo_register_write): New function.
5734 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5736 * regcache.c (regcache_raw_read_unsigned): New function.
5737 (regcache_raw_read_signed): New function.
5738 * regcache.h (regcache_raw_read_unsigned): Declare.
5739 (regcache_raw_read_signed): Declare.
5741 2002-08-13 Andrew Cagney <cagney@redhat.com>
5743 * regcache.c (regcache_raw_read_as_address): Delete function.
5744 (regcache_cooked_read_signed): New function.
5745 (regcache_cooked_read_unsigned): New function.
5746 * regcache.h (regcache_cooked_read_signed): Declare.
5747 (regcache_cooked_read_unsigned): Declare.
5748 (regcache_raw_read_as_address): Delete declaration.
5750 * blockframe.c (generic_read_register_dummy): Use
5751 regcache_cooked_read_unsigned.
5752 * i386-tdep.c (i386_extract_struct_value_address): Use
5753 regcache_cooked_read_unsigned.
5755 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5758 double sizes according to ELF ABI flags.
5759 (gdbarch_tdep): Record elf_flags.
5761 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5763 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5764 (m6812_prolog): They can appear in 68HC12 function prologue.
5765 (m68hc11_frame_chain): Cleanup.
5767 2002-08-12 Andrew Cagney <cagney@redhat.com>
5769 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5771 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5772 (i386_linux_register_raw_size): Delete function.
5773 (i386_linux_init_abi): Update.
5774 * i386-tdep.c (i386_register_raw_size): Delete function.
5775 (i386_register_byte): Delete function.
5776 (i386_gdbarch_init): Update.
5777 (i386_register_size): Delete array.
5778 (i386_register_offset): Delete array.
5780 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5781 (REGISTER_RAW_SIZE): Delete macro.
5782 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5783 (REGISTER_BYTE): Delete macro.
5785 2002-08-11 Aidan Skinner <aidan@velvet.net>
5787 * ada-lang.c (ada_lookup_partial_symbol)
5788 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5789 prototype names so that grep ^func works properly.
5791 * ada-lang.c (ada_array_element_type)
5792 (ada_lookup_partial_symbol): Fix typos in parameter list.
5794 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5795 Fix prototype names so that grep ^func works properly.
5797 2002-08-10 Andrew Cagney <cagney@redhat.com>
5798 Elena Zannoni <ezannoni@redhat.com>
5799 Martin M. Hunt <hunt@redhat.com>
5801 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5802 (build_builtin_type_vec128i): Set the vector bit.
5803 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5804 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5805 (build_builtin_type_vec64): New function.
5806 (build_builtin_type_vec64i): New function.
5807 (build_gdbtypes): Initialize builtin_type_vec64 and
5808 builtin_type_vec64i.
5810 2002-08-09 Andrew Cagney <cagney@redhat.com>
5812 * regcache.c (regcache_dump): Compare the register offset
5814 * arch-utils.c (generic_register_byte): New function.
5815 * arch-utils.h (generic_register_byte): Declare.
5816 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5817 * gdbarch.h, gdbarch.c: Regenerate.
5819 2002-08-09 Andrew Cagney <cagney@redhat.com>
5821 * regcache.c: Include "gdbcmd.h"
5822 (_initialize_regcache): Add commands "maintenance print
5823 registers", "maintenance print raw-registers" and "maintenance
5824 print cooked-registers".
5825 (enum regcache_dump_what): Define.
5826 (dump_endian_bytes): New function.
5827 (regcache_dump): New function.
5828 (regcache_print): New function.
5829 (maintenance_print_registers): New function.
5830 (maintenance_print_raw_registers): New function.
5831 (maintenance_print_cooked_registers): New function.
5832 * Makefile.in (regcache.o): Update dependencies.
5834 2002-08-09 Michael Snyder <msnyder@redhat.com>
5836 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5837 (mips_push_arguments): Correct some comments. Use paddr_nz
5838 for printing addresses in debug output. Replace static
5839 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5840 (mips_n32n64_push_arguments): New function, cloned from
5841 mips_push_arguments and tuned for the n32/n64 ABI.
5842 (mips_push_register): Buffer needs dynamic allocation.
5843 (mips_print_register): Ditto.
5844 (do_gp_register_row): Ditto.
5845 (mips_store_return_value): Ditto.
5846 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5848 2002-08-09 Don Howard <dhoward@redhat.com>
5850 * memattr.c (mem_info_command): Print special case of upper bound
5851 as max CORE_ADDR + 1.
5853 2002-08-08 Michael Snyder <msnyder@redhat.com>
5855 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5856 returns structs by ref if they're too big to fit in two registers.
5858 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5860 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5862 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5863 mips_find_saved_regs().
5864 (mips_pop_frame): Likewise.
5866 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5868 * blockframe.c (frame_saved_regs_register_unwind): Revise
5869 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5872 2002-08-09 Grace Sainsbury <graces@redhat.com>
5874 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5875 T-packets; the 'a' is not taken as a register number.
5876 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5877 (remote_stopped_data_address): New functions; add to target
5879 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5880 prototypes to match other implementations of this
5881 function. replace integer argument with pointer -- the length
5882 field in the Z-packet is the length of what is pointed to or 1 if
5883 pointer is null. Add to target vector.
5884 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5888 * remote.c (remote_wait): Add support to extract optional
5889 watchpoint information from T-packet. Ignore unrecognized
5890 optional info in T-packet.
5891 (remote_async_wait): Ditto.
5893 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5895 * cli/cli-dump.c: Change fopen modes to use binary open modes
5896 as defined in include/fopen-bin.h throughout.
5898 2002-08-08 Michael Snyder <msnyder@redhat.com>
5900 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5902 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5904 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5905 assertion failure by returning early after a warning.
5907 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5909 * mips-tdep.c (mips_find_saved_regs): Make static.
5910 (mips_frame_init_saved_regs): New function.
5911 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5912 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5913 (mips_find_saved_regs): Delete declaration.
5915 2002-08-08 Grace Sainsbury <graces@redhat.com>
5917 * remote.c (remote_wait, remote_async_wait): Change
5918 thread_num from int to ULONGEST.
5919 (unpack_varlen_hex): Change result parameter from
5920 int * to ULONGEST *.
5922 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5924 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5925 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5927 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5929 2002-08-08 Andrew Cagney <cagney@redhat.com>
5931 * gcore.c (override_derive_stack_segment): Delete variable.
5932 (preempt_derive_stack_segment): Delete function.
5933 (derive_stack_segment): Delete function.
5934 (default_derive_stack_segment): Renamed to derive_stack_segment.
5935 (override_derive_heap_segment): Delete variable.
5936 (preempt_derive_heap_segment): Delete function.
5937 (derive_heap_segment): Delete function.
5938 (default_derive_heap_segment): Rename to derive_heap_segment.
5940 2002-08-06 Michael Snyder <msnyder@redhat.com>
5942 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5943 * mips-tdep.c (mips_EABI_use_struct_convention,
5944 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5945 New functions. (mips_use_struct_convention): Delete.
5946 (mips_gdbarch_init): set use_gdbarch_convention.
5948 2002-08-06 Michael Snyder <msnyder@redhat.com>
5950 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5951 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5952 mips_o32_reg_struct_has_addr): New functions.
5953 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5955 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5957 * regcache.c (pseudo_register): Delete function.
5958 (fetch_register): Delete function.
5959 (store_register): Delete function.
5960 (regcache_raw_read, legacy_read_register_gen): Use
5961 target_fetch_registers instead of fetch_register.
5962 (legacy_write_register_gen, regcache_raw_write): Use
5963 target_store_register instead of store_register.
5964 (write_register_bytes): Ditto.
5966 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5967 (STORE_PSEUDO_REGISTER): Delete.
5968 * gdbarch.h, gdbarch.c: Regenerate.
5970 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5972 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5973 write dump file binary.
5975 2002-08-05 Michael Snyder <msnyder@redhat.com>
5977 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5978 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5979 (mips_gdbarch_init): Set N32 target to be mips64.
5981 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5983 * frame.c (find_saved_register): Break out of loop once saved
5984 register address is found. Don't mention sparc in loop comment
5987 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5989 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5990 mips_default_saved_regsize to 8.
5992 2002-08-06 Andrew Cagney <ac131313@redhat.com>
5994 * gcore.c: Do not include <sys/procfs.h>.
5995 * Makefile.in (gcore.o): Update dependencies.
5997 2002-08-06 Andrew Cagney <cagney@redhat.com>
5999 * configure.tgt: Make arc-*-* obsolete.
6000 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6001 * MAINTAINERS: Make arc-elf obsolete.
6002 * arc-tdep.c: Make file obsolete.
6003 * config/arc/arc.mt: Ditto.
6004 * config/arc/tm-arc.h: Ditto.
6006 2002-08-05 Theodore A. Roth <troth@verinet.com>
6008 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6010 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6012 * mcore-tdep.c (mcore_gdbarch_init): Use
6013 generic_unwind_get_saved_register instead of
6014 generic_get_saved_register.
6015 * v850-tdep.c (v850_gdbarch_init): Ditto.
6016 * frv-tdep.c (frv_gdbarch_init): Ditto.
6017 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6018 * s390-tdep.c (s390_gdbarch_init): Ditto.
6019 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6020 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6021 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6023 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6025 * objfiles.h: Add missing #include "symfile.h"
6027 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6029 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6031 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6032 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6035 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6037 * NEWS: Cleanup and nitpick.
6039 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6041 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6043 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6045 * Makefile.in (gdbtk-bp.o): Update dependencies.
6046 (gdbtk-register.o): Ditto.
6047 (gdbtk-varobj.o): Ditto.
6049 2002-08-03 Andrew Cagney <cagney@redhat.com>
6051 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6052 m68hc11_fetch_pseudo_register.
6053 (m68hc11_pseudo_register_write): Replace
6054 m68hc11_store_pseudo_register.
6055 (m68hc11_gdbarch_init): Update.
6057 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6059 * gdbarch.sh: Include "gdb_string.h".
6060 * gdbarch.c: Regenerate.
6062 * regcache.c: Include "gdb_string.h".
6063 * ax-general.c: Ditto.
6065 * std-regs.c: Ditto.
6066 * fbsd-proc.c: Ditto.
6069 * Makefile.in (regcache.o): Update dependencies.
6070 (thread.o, gdbarch.o): Ditto.
6071 (ax-general.o, gdbarch.o): Ditto.
6072 (varobj.o, std-regs.o): Ditto.
6073 (fbsd-proc.o): Specify dependencies.
6075 2002-08-02 Andrew Cagney <cagney@redhat.com>
6077 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6079 (regcache_cooked_write): Ditto.
6081 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6083 * regcache.c (regcache_cooked_read): New function.
6084 (regcache_cooked_write): New function.
6085 (read_register_gen): Rewrite using regcache_cooked_read.
6086 (write_register_gen): Rewrite using regcache_cooked_write.
6088 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6091 2002-08-02 Andrew Cagney <cagney@redhat.com>
6093 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6094 Replace the architecture methods register_read and register_write.
6095 * gdbarch.h, gdbarch.c: Regenerate.
6096 * regcache.c (init_regcache_descr): Update.
6097 (read_register_gen): Update.
6098 (write_register_gen): Update.
6099 (supply_register): Update comment.
6101 * sh-tdep.c (sh_gdbarch_init): Update.
6102 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6103 `regcache' and `gdbarch' parameters. Make `buffer' a void
6104 pointer. Update code.
6105 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6106 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6107 void pointer. Update code.
6108 (sh64_register_write): Delete.
6109 (sh4_register_read): Delete.
6110 (sh64_register_read): Delete.
6111 (sh4_register_write): Delete.
6112 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6113 void pointer, `to' parameter a void pointer.
6114 (sh_sh64_register_convert_to_raw): Ditto.
6116 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6118 * mips-tdep.c (mips_register_virtual_type): Use architecture
6119 invariant return values.
6121 2002-08-01 Andrew Cagney <cagney@redhat.com>
6123 * linux-proc.c: Include "gdb_string.h".
6124 * Makefile.in (linux-proc.o): Update dependency list.
6126 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6128 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6131 2002-08-01 Grace Sainsbury <graces@redhat.com>
6133 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6134 to_insert_watchpoint, to_remove_watchpoint,
6135 to_stopped_by_watchpoint, to_stopped_data_address,
6136 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6137 target vecctor. Define their corresponding macros so they call
6140 * target.c: Add default and debug versions of for
6141 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6142 to_insert_watchpoint, to_remove_watchpoint,
6143 to_stopped_by_watchpoint, to_stopped_data_address,
6144 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6146 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6148 * mips-tdep.c (mips_register_virtual_type): New function.
6149 (mips_gdbarch_init): Register mips_register_virtual_type()
6150 with gdbarch machinery.
6151 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6152 this file instead of tm-bigmips.h.
6153 (MIPS_REGSIZE): Delete this macro.
6154 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6155 multiarch version in mips-tdep.c will be found.
6157 2002-08-01 Andrew Cagney <cagney@redhat.com>
6159 * NEWS: Menion that CHILL has been made obsolete.
6161 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6162 * stabsread.c (read_range_type): Ditto.
6163 * gdbtypes.h: Ditto.
6164 * language.c (binop_type_check): Ditto.
6165 (binop_result_type): Ditto.
6166 (integral_type): Ditto.
6167 (character_type): Ditto.
6168 (string_type): Ditto.
6169 (boolean_type): Ditto.
6170 (structured_type): Ditto.
6171 (lang_bool_type): Ditto.
6172 (binop_type_check): Ditto.
6173 * language.h (_LANG_chill): Ditto.
6174 * dwarfread.c (set_cu_language): Ditto.
6175 * dwarfread.c (CHILL_PRODUCER): Ditto.
6176 * dwarfread.c (handle_producer): Ditto.
6177 * expression.h (enum exp_opcode): Ditto.
6178 * eval.c: Ditto for comments.
6179 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6180 * expprint.c (print_subexp): Ditto.
6181 (print_subexp): Ditto.
6182 * valops.c (value_cast): Ditto.
6183 (search_struct_field): Ditto.
6184 * value.h (COERCE_VARYING_ARRAY): Ditto.
6185 * symfile.c (init_filename_language_table): Ditto.
6186 (add_psymbol_with_dem_name_to_list): Ditto.
6187 * valarith.c (value_binop): Ditto.
6189 * valops.c (value_slice): Ditto.
6190 * symtab.h (union language_specific): Ditto.
6191 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6192 (SYMBOL_DEMANGLED_NAME): Ditto.
6193 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6194 * defs.h (enum language): Ditto.
6195 * symtab.c (got_symtab): Ditto.
6196 * utils.c (fprintf_symbol_filtered): Ditto.
6198 * ch-typeprint.c: Make file obsolete.
6199 * ch-valprint.c: Make file obsolete.
6200 * ch-lang.h: Make file obsolete.
6201 * ch-exp.c: Make file obsolete.
6202 * ch-lang.c: Make file obsolete.
6204 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6206 (TARGET_FLAGS_TO_PASS): Ditto.
6207 (CHILLFLAGS): Obsolete.
6209 (CHILL_FOR_TARGET): Obsolete.
6210 (CHILL_LIB): Obsolete.
6211 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6213 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6214 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6216 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6219 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6221 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6222 This does not change anything at the moment, but will be helpful
6223 later when full Ada support is integrated.
6225 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6227 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6230 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6232 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6233 and save it in a local variable. Use variable in later test.
6235 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6237 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6238 test. (Thanks to Daniel Jacobowitz.)
6240 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6242 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6243 (mips_abi_strings): Add "n64".
6244 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6246 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6248 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6249 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6251 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6253 * utils.c (host_pointer_to_address, address_to_host_pointer):
6254 Use gdb_assert() instead of explicit call to internal_error().
6256 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6258 * Makefile.in (rs6000-nat.o): Update dependencies.
6260 From Nicholas Duffek:
6261 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6262 (aix-thread.o): New rule.
6263 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6264 * config/powerpc/aix432.mh: New file.
6266 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6268 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6269 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6270 (fetch_core_registers, ppc_linux_supply_gregset)
6271 (ppc_linux_supply_fpregset): New functions.
6272 (ppc_linux_regset_core_fns): New.
6273 (_initialize_ppc_linux_tdep): Call add_core_fns.
6274 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6275 and ppc_linux_supply_gregset.
6276 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6277 (supply_fpregset): Call ppc_linux_supply_fpregset.
6278 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6280 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6282 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6284 * symtab.c (lookup_symbol): Demangle before lowercasing.
6286 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6288 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6290 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6291 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6292 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6293 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6295 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6296 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6297 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6298 (avr-tdep.o, mon960-rom.o): Ditto.
6299 (aout_stabs_gnu_h): Define.
6300 (symtab_h): Remove $(gdb_obstack_h).
6302 2002-07-30 Jim Blandy <jimb@redhat.com>
6304 Patch from David Carlton <carlton@math.stanford.edu>:
6305 * gdbinit.in: Move the `dir' commands that add GDB's own source
6306 directory to the search path to the end, so that the `gdb' source
6307 directory will be searched first.
6309 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6311 * gdb_obstack.h: New file.
6312 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6313 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6314 * objfiles.h: Include "gdb_obstack.h".
6315 * Makefile.in (gdb_obstack_h): Define.
6316 (symtab_h): Add $(gdb_obstack_h).
6317 (objfiles_h): Add $(gdb_obstack_h).
6319 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6320 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6321 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6322 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6323 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6324 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6325 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6326 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6328 * Makefile.in (bcache.o): Update dependencies.
6329 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6330 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6331 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6332 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6333 (stabsread.o, symfile.o, symmisc.o): Ditto.
6334 (symtab.o, typeprint.o, macroexp.o): Ditto.
6335 (macrotab.o, mdebugread.o): Ditto.
6336 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6337 (coff_ecoff_h, aout_aout64_h): Define.
6338 (aout_stabs_gnu_h, libaout_h): Define.
6340 2002-07-29 Andrew Cagney <cagney@redhat.com>
6342 * regcache.c (struct regcache_descr): Rename nr_registers to
6343 nr_cooked_registers. Revise comments describing the structure
6345 (init_regcache_descr): Update.
6346 (init_legacy_regcache_descr): Update.
6347 (read_register_gen, write_register_gen): When a cooked register in
6348 the raw register range, directly access the value from the raw
6351 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6353 * z8k-tdep.c: Do not include "obstack.h".
6354 * h8300-tdep.c, h8500-tdep.c: Ditto.
6355 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6356 * valprint.c, v850-tdep.c: Ditto.
6357 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6358 * mn10200-tdep.c: Ditto.
6360 * Makefile.in (z8k-tdep.o): Update dependencies.
6361 (m68hc11-tdep.o, valprint.o): Ditto.
6362 (v850-tdep.o, d10v-tdep.o): Ditto.
6363 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6364 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6365 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6366 (sh_opc_h, gdb_sim_sh_h): Define.
6367 (elf_sh_h, elf_bfd_h): Define.
6368 (opcode_m68hc11_h): Define.
6369 (OPCODES_SRC, OPCODES_DIR): define.
6370 (OPCODES): Use $(OPCODES_DIR).
6371 (gdb_sim_d10v_h): Rename sim_d10v_h.
6372 (gdb_sim_arm_h): Rename sim_arm_h.
6374 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6376 * utils.c (host_pointer_to_address, address_to_host_pointer):
6377 Change internal_error() message to indicate function responsible
6380 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6382 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6383 calls to local_hex_string_custom().
6385 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6387 * irix5-nat.c: Move IRIX shared library support from here...
6388 * solib-irix.c: ...to here. Revised substantially to work with
6389 generic solib framework.
6391 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6392 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6393 * mips-irix-tdep.c: New file.
6395 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6396 (mips-irix-tdep.o, solib-irix.o): New rules.
6397 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6399 * config/mips/irix6.mt (TDEPFILES): Likewise.
6400 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6402 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6404 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6405 disabled (via ``#if 0'') includes.
6407 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6409 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6410 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6411 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6412 Add support for the fpscr register.
6413 * rs6000-nat.c (regmap, fetch_inferior_registers)
6414 (store_inferior_registers, fetch_core_registers): Likewise.
6416 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6418 * rs6000-nat.c (language.h): Include.
6419 (special_regs): Delete this array.
6420 (regmap): New function.
6421 (fetch_register, store_register): Use regmap() to map gdb
6422 register numbers to ptrace register numbers. Also, use
6423 outputs from regmap() to make decisions regarding type of
6424 ptrace() call to make. In particular, don't compare against
6425 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6426 (fetch_inferior_registers, store_inferior_registers): Where
6427 possible, obtain register numbers from tdep struct. Don't
6428 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6429 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6430 (LAST_UISA_SP_REGNUM): Delete.
6432 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6434 * rs6000-nat.c (ppc-tdep.h): Include.
6435 (fetch_registers, store_register, fetch_core_registers): Don't
6436 access registers[] directly. Instead, use supply_register() or
6437 regcache_collect() as appropriate.
6438 (find_toc_address): Format hex address with local_hex_string().
6440 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6442 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6445 2002-07-24 Tom Tromey <tromey@redhat.com>
6447 * jv-exp.y: Marked all strings with _().
6448 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6450 (MethodInvocation, CastExpression, parse_number, yyerror,
6451 java_type_from_name, push_expression_name, yylex): Typo fixes.
6453 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6455 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6456 (tee_file_flush, tee_file_write, tee_file_fputs)
6457 (tee_file_isatty): New.
6458 * ui-file.h (tee_file_new): Add prototype.
6460 2002-07-24 Aidan Skinner <aidan@velvet.net>
6462 * ada-lang.c: Change k&r style function definitions to prototyped
6464 * ada-typeprint.c: Change k&r style function definitions to prototyped
6466 * ada-valprint.c: Change k&r style function definitions to prototyped
6469 2002-07-24 Andrew Cagney <cagney@redhat.com>
6471 * README: Remove reference to remote-bug.
6472 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6474 (m88k-nat.o): Delete rule.
6475 (m88k-tdep.o): Delete rule.
6476 (remote-bug.o): Delete rule.
6477 * MAINTAINERS: Mark as obsolete.
6478 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6479 * m88k-tdep.c: Make file obsolete.
6480 * config/m88k/m88k.mh: Ditto.
6481 * config/m88k/delta88v4.mh: Ditto.
6482 * config/m88k/delta88v4.mt: Ditto.
6483 * config/m88k/delta88.mt: Ditto.
6484 * config/m88k/delta88.mh: Ditto.
6485 * remote-bug.c: Ditto.
6486 * config/m88k/tm-delta88.h: Ditto.
6487 * config/m88k/nm-delta88v4.h: Ditto.
6488 * config/m88k/xm-delta88.h: Ditto.
6489 * config/m88k/xm-dgux.h: Ditto.
6490 * config/m88k/tm-m88k.h: Ditto.
6491 * config/m88k/nm-m88k.h: Ditto.
6492 * config/m88k/tm-delta88v4.h: Ditto.
6493 * m88k-nat.c: Ditto.
6494 * cxux-nat.c: Ditto.
6495 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6496 and m88*-*-* obsolete.
6497 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6500 2002-07-24 Andrew Cagney <cagney@redhat.com>
6502 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6503 constant. Same for local pointer variables.
6504 (extract_signed_integer): Ditto.
6505 * defs.h (extract_unsigned_integer): Update.
6506 (extract_signed_integer): Update.
6508 2002-07-24 Andrew Cagney <cagney@redhat.com>
6510 * regcache.c (regcache_raw_write): Change buf parameter to a
6511 constant void pointer.
6512 (regcache_raw_read): Change buf parameter to a void pointer.
6513 (legacy_write_register_gen): Change myaddr parameter a constant
6515 (supply_register): Change val parameter to a const void pointer.
6516 * regcache.h (regcache_raw_write): Update declaration.
6517 (regcache_raw_read): Update declaration.
6518 (supply_register): Update declaration.
6520 2002-07-24 Tom Tromey <tromey@redhat.com>
6522 * defs.h (gdb_readline_wrapper): Declare.
6523 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6524 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6525 * top.c (gdb_readline_wrapper): New function.
6526 (command_line_input): Use it.
6528 2002-07-24 Andrew Cagney <cagney@redhat.com>
6530 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6531 regcache_read and regcache_write.
6532 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6533 * regcache.c: Update.
6534 * sh-tdep.c (sh64_push_arguments): Update comment.
6535 (sh_pseudo_register_read): Update.
6536 (sh_pseudo_register_write): Update.
6537 (sh4_register_read): Update.
6538 (sh4_register_write): Update.
6539 (sh64_pseudo_register_read): Update.
6540 (sh64_pseudo_register_write): Update.
6541 (sh64_register_read): Update.
6542 (sh64_register_write): Update.
6543 * i386-tdep.c (i386_extract_return_value): Update.
6544 (i386_extract_struct_value_address): Update.
6545 (i386_extract_return_value): Update.
6546 * blockframe.c (generic_read_register_dummy): Update.
6547 (generic_call_dummy_register_unwind): Update
6548 * infrun.c (write_inferior_status_register): Update.
6550 2002-07-23 Jim Blandy <jimb@redhat.com>
6552 * parser-defs.h (expression_context_pc): Make this extern.
6553 (Thanks to Michael Snyder.)
6555 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6557 GDB 5.2.1 released from 5.2 branch.
6558 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6559 * README: Update to mention 5.2.1.
6561 2002-07-23 Mark Salter <msalter@redhat.com>
6563 * remote.c (remote_read_bytes): Fix check for error.
6565 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6567 * aix-thread.c (language.h): Include.
6568 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6569 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6570 Print newlines at end of debug messages.
6571 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6572 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6574 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6576 * aix-thread.c (ppc-tdep.h): Include.
6577 (special_register_p): New function.
6578 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6579 (store_regs_user_thread): Use register number information from
6580 gdbarch_tdep struct instead of hardcoded offsets relative to
6581 FIRST_UISA_SP_REGNUM.
6582 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6583 special_register_p() instead of using FPLAST_REGNUM and
6584 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6585 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6586 will be MQ's register number.
6588 2002-07-22 Michael Snyder <msnyder@redhat.com>
6590 * aix-thread.c (ops): Rename to aix_thread_ops.
6591 (base_ops): Rename to base_target.
6592 (ops_attach): Rename to aix_thread_attach.
6593 (ops_detach): Rename to aix_thread_detach.
6594 (ops_resume): Rename to aix_thread_detach.
6595 (ops_wait): Rename to aix_thread_wait.
6596 (ops_kill): Rename to aix_thread_kill.
6597 (init_ops): Rename to init_aix_thread_ops.
6598 (ops_fetch_register): Rename to aix_thread_fetch_register.
6599 (ops_store_register): Rename to aix_thread_store_register.
6600 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6601 (ops_thread_alive): Rename to aix_thread_thread_alive.
6602 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6603 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6604 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6605 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6606 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6607 (store_regs_lib): Rename to store_regs_user_thread.
6608 (store_regs_kern): Rename to store_regs_kernel_thread.
6610 2002-07-22 Michael Snyder <msnyder@redhat.com>
6612 * aix-thread.c (ops_prepare_to_store): Eliminate.
6613 (init_ops): Don't initialize ops.prepare_to_store.
6614 (store_regs_kern): Pre-fetch register buffers from child,
6615 because some registers may not be in the cache. Copy
6616 regs from register cache only if they are cached.
6617 (store_regs_lib): Copy regs from register cache only
6619 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6620 fill_gprs64): Ditto.
6622 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6624 * aix-thread.c (gdb_assert.h): Include.
6625 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6626 register sizes (from register cache) match size of buffer holding
6628 (fill_sprs32): Change parameter types to match those in the ptrace()
6630 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6631 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6633 2002-07-22 Michael Snyder <msnyder@redhat.com>
6635 * aix-thread.c (supply_sprs64): Cosmetic change.
6636 (supply_sprs32): Cosmetic change.
6637 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6638 (fill_sprs64): Use regcache_collect instead of read_register.
6639 (store_regs_lib): Use regcache_collect instead of
6640 read_register. Use fill_sprs32 instead of fill_sprs64,
6641 if debugging a 32-bit architecture.
6642 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6643 out of the register cache, instead of passing a pointer into
6644 the register cache directly to ptrace. Use regcache_collect
6645 insteaad of read_register.
6646 (ops_prepare_to_store): Use target_read_registers instead
6647 of read_register_bytes.
6649 2002-07-20 Aidan Skinner <aidan@velvet.net>
6651 * MAINTAINERS: Add self under write after approval.
6653 2002-07-20 Aidan Skinner <aidan@velvet.net>
6655 * ada-tasks.c: Change k&r style function definitions to prototyped
6658 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6660 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6661 * x86-64-tdep.c: Include "objfiles.h".
6662 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6663 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6665 2002-07-17 Michal Ludvig <michal@suse.cz>
6667 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6668 (update_context): Initialise cfa variable.
6670 2002-07-17 Michael Snyder <msnyder@redhat.com>
6672 * aix-thread.c: Shorten some long lines.
6673 Bring comments into line with code spec.
6675 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6677 * infrun.c: Re-indent using gdb_indent.sh.
6679 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6681 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6682 Leave the indentation temporarily untouched, to minimize the diffs.
6684 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6686 * stabsread.c: Make os9k sections of the code obsolete,
6688 * stabsread.h: Make os9k sections of the code obsolete.
6690 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6692 * linux-low.c (regsets_store_inferior_registers): Add free()
6693 at the end of a loop to prevent memory leak.
6694 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6695 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6696 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6698 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6700 2002-07-17 Jim Blandy <jimb@redhat.com>
6702 * macrocmd.c (info_macro_command): Remove newline from error
6705 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6707 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6708 (sh_gdbarch_init): Use it for sh-dsp.
6710 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6712 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6713 64-bit DWARF2 format.
6715 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6717 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6718 <sys/proc.h> when not available.
6720 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6722 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6723 * stabsread.c: Make os9k sections of the code obsolete.
6724 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6725 * config/i386/i386os9k.mt: Make file obsolete.
6726 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6727 (COMMON_OBS): Remove os9kread.o
6728 (SFILES): Remove os9kread.c.
6729 (os9kread.o, remote-os9k.o): Make target obsolete.
6730 * remote-os9k.c: Make file obsolete.
6731 * os9kread.c: Make file obsolete.
6734 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6736 * NEWS: Mention that the FR30 has been made obsolete.
6737 * fr30-tdep.c: Make file obsolete.
6738 * config/fr30/tm-fr30.h: Ditto.
6739 * config/fr30/fr30.mt: Ditto.
6740 * configure.tgt: Make fr30-*-elf obsolete.
6741 * MAINTAINERS: Make fr30-elf obsolete.
6743 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6745 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6746 found is not inside a section.
6748 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6750 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6752 (pdc_realloc): Use xrealloc() instead of realloc().
6754 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6756 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6757 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6758 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6761 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6763 * aix-thread.c (ptrace_check): Eliminate goto.
6764 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6767 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6769 * aix-thread.c (gdbcmd.h): Include.
6770 (DEBUG, DBG, DBG2, dbg): Eliminate.
6771 (debug_aix_thread): New static global.
6772 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6773 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6774 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6775 invocations to DBG and DBG2 macros to test against
6776 ``debug_aix_thread'' and call fprintf_unfiltered().
6777 (_initialize_aix_thread): Add new command "set debug aix-thread".
6779 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6781 From Gerhard Tonn <TON@de.ibm.com>:
6782 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6783 instead of supply_register.
6785 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6787 * dwarf2cfi.c: Include "gdb_assert.h".
6788 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6790 (update_context): Do not use __func__. Add missing ``break''.
6791 (update_context): Do not use __func__.
6793 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6795 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6796 and its setting. Set gdbarch instruction printing functions
6797 directly. For non-rs6000 case use new function
6798 gdb_print_insn_powerpc.
6799 (gdb_print_insn_powerpc): New function.
6801 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6803 * NEWS: Mention that the d30v has been marked obsolete.
6804 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6805 * configure.tgt: Mark d30v-*-* as obsolete.
6806 * d30v-tdep.c: Mark file as obsolete.
6807 * config/d30v/d30v.mt: Ditto.
6808 * config/d30v/tm-d30v.h: Ditto.
6810 2002-07-13 Aidan Skinner <aidan@velvet.net>
6812 * ada-tasks.c (add_task_entry): replace calls to
6813 malloc() with xmalloc
6814 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6816 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6817 ada_finish_decode_line_1, all_sals_for_line
6818 ada_breakpoint_rewrite): replace calls to free() with xfree()
6820 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6822 From Nicholas Duffek (with minor changes by Martin Hunt,
6823 Louis Hamilton, and Kevin Buettner):
6824 * aix-thread.c: New file.
6826 2002-07-12 Petr Sorfa <petrs@caldera.com>
6828 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6829 complaint for invalid attribute class or form.
6830 (read_func_scope): DW_AT_frame_base
6831 better handling of DW_AT_block*.
6832 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6833 better handling of DW_AT_block*.
6834 (read_common_block): DW_AT_location
6835 better handling of DW_AT_block*.
6836 (read_partial_die): DW_AT_location better handling
6838 (new_symbol): DW_AT_external better handling of
6839 DW_AT_block*. Proper initialization of variable
6841 (attr_form_is_block): New function that returns true
6842 if the attribute's form is of DW_FORM_block*.
6844 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6846 * valops.c (find_method_list): Remove comment about
6847 removed STATIC_MEMFUNCP argument.
6848 (value_find_oload_method_list): Likewise.
6850 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6852 From Nicholas Duffek:
6853 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6854 target_new_objfile_hook.
6856 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6858 From Nicholas Duffek:
6859 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6862 2002-07-12 Andrew Cagney <cagney@redhat.com>
6864 * MAINTAINERS: Mention --enable-sim-build-warnings.
6865 (m68hc11-elf): Disable sim build warnings.
6866 (m32r-elf): Mark as broken obsolete candidate.
6867 (x86_64-linux-gnu): Mark as buildable with -Werror.
6868 (arm-elf): Change -w to ``,'' which enables warnings but not
6871 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6873 * bcache.h: Update copyright.
6874 (struct bstring, struct bcache): Move definition to "bcache.c".
6875 Replaced by opaque declaration.
6876 (bcache_xfree): Replace free_bcache.
6877 (bcache_xmalloc, bcache_memory_used): Declare.
6879 * bcache.c: Update copyright.
6880 (struct bstring, struct bcache): Moved to here from "bcache.h".
6882 (bcache_xmalloc, bcache_memory_used): New functions.
6883 (bcache_xfree): Replace function free_bcache.
6885 * Makefile.in (objfiles.o): Add $(bcache_h).
6886 (objfiles_h): Remove $(bcache_h).
6887 (symfile.o): Add $(bcache_h).
6889 * symmisc.c: Update copyright.
6890 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6891 (print_objfile_statistics): Use bcache_memory_used.
6893 * symfile.c: Include "bcache.h".
6894 (reread_symbols): Use bcache_xfree.
6895 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6896 (add_psymbol_to_list): Pass psymbol_cache by value.
6897 (add_psymbol_with_dem_name_to_list): Ditto.
6899 * objfiles.h: Update copyright.
6900 (struct bcache): Declare opaque. Do not include "bcache.h".
6901 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6903 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6905 * objfiles.c: Include "bcache.h". Update copyright.
6906 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6908 (free_objfile): Use bcache_xfree.
6910 2002-07-11 Grace Sainsbury <graces@redhat.com>
6912 * monitor.c (monitor_fetch_register): Make name a constant.
6913 (monitor_store_register): Same.
6915 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6917 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6918 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6919 (finish_block) For non-function blocks, hash the symbol table. For
6920 function blocks, mark the symbol table as unhashed.
6921 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6922 (msymbol_hash_iw): Likewise.
6923 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6925 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6926 (lookup_minimal_symbol): Likewise for both.
6927 * symtab.h (struct block): Add `hashtable' flag. Comment the
6929 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6930 (ALL_BLOCK_SYMBOLS): Update.
6931 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6932 (struct symbol): Add `hash_next' pointer.
6933 * symtab.c (lookup_block_symbol): Search using the hash table when
6935 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6936 (search_symbols, find_addr_symbol): Likewise.
6938 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6939 (read_dst_symtab): Likewise.
6940 * jv-lang.c (get_java_class_symtab): Likewise.
6941 * mdebugread.c: Include "gdb_assert.h".
6942 (shrink_block): Assert that the block being modified is not hashed.
6943 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6944 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6946 (dump_symtab): Recognize hashed blocks.
6947 * printcmd.c (print_frame_args): Assert that function blocks do not
6948 have hashed symbol tables.
6949 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6950 (fill_in_ada_prototype, debug_print_block): Likewise.
6951 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6953 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6955 * stack.c (print_frame): Use result of frame_address_in_block()
6956 instead of fi->pc when evaluating symbols.
6957 (backtrace_command_1): Ditto.
6959 2002-07-11 Andrew Cagney <cagney@redhat.com>
6961 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6964 * arm-tdep.c (arm_register_name): Make return type constant.
6966 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6968 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6970 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6971 * s390-tdep.c (s390_fp_regnum): Ditto.
6972 (s390_read_fp): Ditto.
6973 (s390_pop_frame): Ditto.
6974 (_initialize_s390_tdep): Ditto.
6975 * remote.c (get_remote_state): Ditto.
6976 * procfs.c (mappingflags): Ditto.
6977 * memattr.c (_initialize_mem): Ditto.
6978 * mcore-tdep.c (mcore_pop_frame): Ditto.
6979 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6980 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6981 * language.c (set_case_str): Ditto.
6982 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6983 * frv-tdep.c (new_variant): Ditto.
6984 (frv_stopped_data_address): Ditto.
6985 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6986 (context_alloc): Ditto.
6987 (frame_state_alloc): Ditto.
6988 (unwind_tmp_obstack_init): Ditto.
6989 (unwind_tmp_obstack_free): Ditto.
6990 (cfi_read_fp): Ditto.
6991 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6992 (cris_pop_frame): Ditto.
6993 * c-lang.c (scanning_macro_expansion): Ditto.
6994 (finished_macro_expansion): Ditto.
6995 (c_preprocess_and_parse): Ditto.
6996 * gdbarch.sh: Ditto.
6997 * gdbarch.h, gdbarch.c: Regenerate.
6998 * config/mn10200/tm-mn10200.h: Adjust indentation.
6999 * target.c: Adjust indentation.
7000 * symtab.h: Adjust indentation.
7001 * stabsread.h: Adjust indentation.
7002 * remote-es.c: Adjust indentation.
7003 * os9kread.c: Adjust indentation.
7005 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7007 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7008 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7010 2002-07-10 Grace Sainsbury <graces@redhat.com>
7012 * NEWS: Mention m68k, mcore multi-arching.
7013 * MAINTAINERS: Change status of m68k, mcore to reflect
7016 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7018 * valops.c (find_overload_match): Free oload_syms.
7020 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7022 Define HAVE_SYS_PROC_H if sys/proc.h exists
7023 * configure.in: Add check for sys/proc.h
7024 * config.in: Regenerate.
7025 * configure: Regenerate.
7027 2002-07-09 Grace Sainsbury <graces@redhat.com>
7029 * config/m68k/tm-m68k.h: Remove macros wrapped in
7030 #if !GDB_MULTI_ARCH.
7032 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7034 * config.in, configure: Regenerate.
7036 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7038 * dwarf2cfi.c: Include "gcore.h".
7039 (execute_stack_op): Fix implementation of the
7040 DW_OP_deref and DW_OP_deref_size operators by letting do their
7041 lookup in the target.
7043 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7045 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7046 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7049 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7051 Fix PR gdb/595, gdb/602
7052 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7053 Don't call value_cast, just read the vtable pointer; update comments
7056 2002-07-05 Grace Sainsbury <graces@redhat.com>
7058 * config/mcore/tm-mcore.h: Remove file.
7059 * config/mcore/mcore.mt: Remove definition of TM_FILE
7060 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7062 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7064 * i386bsd-tdep.c: Include "gdb_string.h".
7066 2002-07-04 Grace Sainsbury <graces@redhat.com>
7068 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7069 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7071 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7072 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7073 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7074 (RETVAL_REGNUM): Move macros from tm-mcore.h
7075 (mcore_reg_struct_has_addr): New function.
7076 (mcore_gdbarch_init): Added initializations for the macros removed
7079 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7081 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7082 traditonal string branding within the ELF header.
7084 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7086 * symtab.c (remove_params): New function.
7087 (make_symbol_overload_list): Use it instead of cplus_demangle.
7088 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7090 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7092 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7094 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7096 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7097 and tdep->sigtramp_end.
7098 * i386obsd-nat.c: New file.
7099 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7101 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7102 Don't call get_current_frame().
7104 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7106 * i386-nat.c (child_post_startup_inferior): New function
7107 calling i386_cleanup_dregs if
7108 I386_USE_GENERIC_WATCHPOINTS is defined.
7109 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7110 conditional to acknowledge that i386-nat.c has its
7111 own child_post_startup_inferior function.
7113 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7115 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7116 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7117 instead of MAX_REGISTER_RAW_SIZE.
7118 (i386_extract_return_value, i386_extract_struct_value_address):
7119 Convert to use regcache.
7120 (i386_gdbarch_init): Set max_register_raw_size and
7121 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7122 Set extract_return_value and extract_struct_value_address instead
7123 of their deprecated variants.
7125 Convert i386 target to generic dummy frames.
7126 * i386-tdep.c: Include "symfile.h".
7127 (i386_frameless_signal_p): Consider a function to be frameless if
7128 the pc points at the first instruction of the function.
7129 (i386_frame_chain): Handle (generic) call dummies.
7130 (i386_frame_saved_pc): Likewise.
7131 (i386_frame_init_saved_regs): Remove code dealing with call
7132 dummies on the stack.
7133 (i386_push_dummy_frame): Removed.
7134 (i386_call_dummy_words): Removed.
7135 (i386_fix_call_dummy): Removed.
7136 (i386_push_return_address): New function.
7137 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7138 parameter, and don't call get_current_frame.
7139 (i386_pop_frame): New function.
7140 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7141 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7142 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7143 call_dummy_length to 0, set call_dummy_words to NULL, set
7144 sizeof_call_dummy_words to 0, set fix_call_dummy to
7145 generic_fix_call_dummy, set pc_in_call_dummy to
7146 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7147 generic_push_dummy_frame, set push_return_address to
7148 i386_push_return_address and set frame_chain_valid to
7149 generic_file_frame_chain_valid.
7151 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7153 * gdbarch.sh (struct regcache): Add opaque declaration.
7154 (EXTRACT_RETURN_VALUE): New architecture method.
7155 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7156 * gdbarch.h, gdbarch.c: Regenerate.
7157 * arch-utils.c (legacy_extract_return_value): New function.
7158 * arch-utils.h (legacy_extract_return_value): Declare.
7159 * values.c (value_being_returned): Re-enable code handling
7160 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7161 deprecated_grub_regcache_for_registers call to block handling
7162 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7163 (EXTRACT_RETURN_VALUE): Do not define.
7165 2002-07-03 Grace Sainsbury <graces@redhat.com>
7167 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7168 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7169 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7170 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7171 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7172 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7173 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7174 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7175 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7176 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7177 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7178 argument so the function fits the prototype in the architecture
7180 (mcore_pop_frame): Remove argument so the function fits the
7181 prototype. Use get_current_frame instead of the argument.
7182 (mcore_push_arguments): Change type of struct_return so the
7183 function can be used in the architecture vector.
7184 (mcore_store_struct_return): Add.
7185 (mcore_frame_init_saved_regs): Add.
7186 (mcore_gdbarch_init): Add function calls to replace the macros
7187 removed from tm-mcore.h
7189 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7191 * infcmd.c (print_return_value): Remove compatibility code calling
7192 deprecated_grub_regcache_for_registers.
7194 * values.c: Include "regcache.h".
7195 (value_being_returned): Update. Use
7196 deprecated_grub_regcache_for_registers to extract the register
7198 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7199 ``struct regcache''.
7200 * Makefile.in (values.o): Add dependency on $(regcache_h).
7202 * inferior.h (run_stack_dummy): Change type of second parameter to
7203 a ``struct regcache''.
7204 * valops.c (hand_function_call): Change type of retbuf to ``struct
7205 regcache''. Allocate using regcache_xmalloc, clean using
7206 make_cleanup_regcache_xfree.
7207 * infcmd.c (run_stack_dummy): Update. Use
7208 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7210 * regcache.c (do_regcache_xfree): New function.
7211 (make_cleanup_regcache_xfree): New function.
7212 * regcache.h (make_cleanup_regcache_xfree): Declare.
7214 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7216 * event-top.c (command_line_handler): Don't read past
7217 beginning of buffer.
7219 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7221 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7223 (varobj_create): Store frame_id for root.
7224 (varobj_gen_name): Use xasprintf.
7225 (varobj_update): Save and restore frame using get_frame_id() and
7227 (create_child): Use xasprintf.
7228 (new_root_variable): Initialize frame_id.
7229 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7230 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7231 to prevent memory leak.
7233 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7235 * valops.c (hand_function_call): Move declaration of retbuf to
7236 start of function, allocate using malloc, add a cleanup but before
7237 the inf_status cleanup, cleanup the buffer. Rename local variable
7238 old_chain to inf_status_cleanup.
7240 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7242 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7244 * cli/cli-decode.c (cmd_func_p): New function.
7245 (cmd_func): New function.
7247 * command.h: Add cmd_func() and cmd_func_p().
7249 2002-07-03 Grace Sainsbury <graces@redhat.com>
7251 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7252 (REGISTER_SIZE): Remove.
7253 (MAX_REGISTER_RAW_SIZE): Remove.
7254 (REGISTER_VIRTUAL_TYPE): Remove.
7255 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7256 (REGISTER_NAME): Remove.
7257 (USE_GENERIC_DUMMY_FRAMES): Remove.
7258 (CALL_DUMMY): Remove.
7259 (CALL_DUMMY_START_OFFSET): Remove.
7260 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7261 (CALL_DUMMY_LOCATION): Remove.
7262 (FIX_CALL_DUMMY): Remove.
7263 (CALL_DUMMY_ADDRESS): Remove.
7264 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7265 (SAVE_DUMMY_FRAME_TOS): Remove.
7266 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7267 (mcore_register_virtual_type): New function.
7268 (mcore_register_byte): New function.
7269 (mcore_register_size): New function.
7270 (mcore_register_name): New function.
7271 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7272 macros removed from tm-mcore.h.
7273 (mcore_dump_tdep): Add.
7274 (_initialize_mcore_tdep): Add gdbarch_register call.
7276 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7278 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7279 frameless_look_for_prologue, such that we actually call this
7282 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7284 * frame.h (frame_address_in_block): New function.
7286 * blockframe.c (frame_address_in_block): New function extracted
7287 from get_frame_block().
7288 (get_frame_block): Use frame_address_in_block().
7289 (block_innermost_frame): Use frame_address_in_block() to match
7290 the frame pc address against the block boundaries rather than
7291 the frame pc directly. This prevents a failure when a frame pc
7292 is actually a return-address pointing immediately after the end
7295 2002-07-02 Grace Sainsbury <graces@redhat.com>
7297 * MAINTAINERS: Add self under write after approval.
7299 2002-07-02 Grace Sainsbury <graces@redhat.com>
7301 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7302 used in architecture vector. The default is
7303 m68k_local_breakpoint_from_pc.
7304 (m68k_local_breakpoint_from_pc): Add.
7305 (enum): Add register numbers from tm-m68k.h.
7306 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7308 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7309 GDB_MULTI_ARCH_PARTIAL.
7310 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7311 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7313 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7314 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7315 to enum in m68k-tdep.c
7317 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7319 * solib-osf.c (open_map): Compute the list of shared libraries
7320 loaded by the inferior, rather than the list of libraries loaded
7321 by GDB itself. Otherwise, GDB ends up reading the symbols from
7322 the wrong shared libraries...
7324 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7326 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7327 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7329 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7331 (FRAMELESS_SIGNAL): Remove function.
7332 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7333 i386_linux_saved_pc_after_call): Removed.
7334 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7335 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7336 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7338 * i386-tdep.c (i386_frameless_signal_p): New function.
7339 (i386_frame_chain): Deal with frameless signals.
7340 (i386_sigtramp_saved_sp): New function.
7341 (i386_frame_saved_pc): Deal with frameless signals.
7342 (i386_saved_pc_after_call): Make sure the correct value is
7343 returned just after entry into a sigtramp.
7344 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7345 i386fbsd4_sc_sp_offset): New variables.
7346 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7347 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7348 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7349 similiar to what we already did for sc_pc_offset.
7350 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7353 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7355 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7357 * config/i386/tm-x86-64linux.h: New.
7358 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7360 * config/i386/nm-x86-64.h: Rename to ...
7361 * config/i386/nm-x86-64linux.h: ... this one.
7362 * config/i386/x86-64linux.mh: Reflect the above change.
7364 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7366 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7367 with sigcontext_addr. Add sc_sp_offset.
7368 (i386bsd_sigtramp_saved_pc): Remove prototype.
7369 (i386bsd_sicontext_addr): Add prototype.
7370 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7371 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7372 (i386_svr4_sigtramp_saved_pc): Removed.
7373 (i386_svr4_sigcontext_addr): New function.
7374 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7375 Initialize tdep->sigcontext_addr instead. Initialize
7376 tdep->sc_pc_offset and tdep->sc_sp_offset.
7377 (i386_gdbarch_init): Likewise.
7378 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7380 (i386bsd_sigtramp_saved_pc): Remove function.
7381 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7382 Initialize tdep->sigcontext_addr instead. Initialize
7384 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7385 of tdep->sigtramp_saved_pc.
7386 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7387 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7390 * i386-tdep.c (i386_frameless_function_invocation,
7391 i386_frame_num_args, i386_frame_init_saved_regs,
7392 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7393 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7394 i386_extract_return_value, i386_store_return_value,
7395 i386_extract_struct_value_address, i386_register_virtual_type,
7396 i386_register_convertible, i386_register_convert_to_virtual,
7397 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7398 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7401 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7403 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7405 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7406 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7407 this macro. Include "value.h".
7409 2002-06-30 Aidan Skinner <aidan@velvet.net>
7411 * ada-exp.tab.c: remove as it's a generated file
7412 * ada-lex.c: remove as it's a generated file
7414 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7416 * config/i386/tm-i386.h (struct frame_info, struct
7417 frame_saved_regs, struct value, struct type): Remove forward
7420 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7421 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7422 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7423 (FILL_FPXREGSET): Define.
7425 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7427 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7428 i[3456]86-*-netbsd* case.
7429 * config/i386/tm-obsd.h: Removed.
7430 * config/i386/obsd.mt: Removed.
7431 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7433 (MH_CFLAGS): Add -DYYDEBUG=0.
7435 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7436 i386nbsd_sc_pc_offset on OpenBSD too.
7438 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7439 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7440 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7442 * i386bsd-tdep.c: Include "arch-utils.h".
7443 (i386bsd_aout_in_solib_call_trampoline): New function.
7444 (i386bsd_init_abi): Set in_solib_call_trampoline to
7445 i386bsd_aout_in_solib_call_trampoline.
7446 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7447 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7449 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7451 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7452 (struct obstack, struct bcache): Add opaque declarations.
7453 * Makefile.in (macrotab_h): Update
7455 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7457 * blockframe.c (generic_find_dummy_frame): Change return type to
7458 ``struct regcache''.
7459 (struct dummy_frame): Replace field ``registers'' with regcache, a
7460 struct regcache object.
7461 (generic_find_dummy_frame): Update.
7462 (generic_push_dummy_frame): Update. Use regcache_xfree,
7463 regcache_xmalloc and regcache_cpy.
7464 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7466 (deprecated_generic_find_dummy_frame): Update.
7467 (generic_read_register_dummy): Update. Use
7468 regcache_read_as_address.
7469 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7470 (generic_get_saved_register): Update. Use regcache_read.
7472 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7474 * Makefile.in (objfiles_h): Add $(bcache_h).
7475 * objfiles.h: Include "bcache.h".
7477 * Makefile.in (symtab_h): Remove $(bcache_h).
7478 * symtab.h: Do not include "bcache.h".
7480 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7482 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7483 generic_func_frame_chain_valid.
7485 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7487 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7488 * config/i386/tm-fbsd.h: Likewise.
7490 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7492 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7493 generic_unwind_get_saved_register.
7495 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7497 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7498 * regcache.c (supply_register): Add missing argument to
7499 register_buffer call.
7501 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7503 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7504 Solaris /bin/grep does not not like it. From Peter Schauer.
7506 2002-06-26 Tom Tromey <tromey@redhat.com>
7508 * command.h (add_setshow_cmd): Declare.
7509 (add_setshow_cmd_full): Declare.
7510 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7511 returns void. Use add_setshow_cmd_full.
7512 (add_setshow_cmd_full): New function.
7513 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7514 (add_setshow_boolean_cmd): Likewise.
7516 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7518 * config/vax/tm-vax.h: Protect from multiple inclusion.
7519 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7520 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7521 * config/vax/tm-vaxbsd.h: ...here. New file.
7522 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7524 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7526 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7527 (BELIEVE_PCC_PROMOTION): Remove.
7528 (AP_REGNUM): Move to...
7529 * config/vax/nm-vax.h: ...here.
7530 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7531 (vax_breakpoint_from_pc): New function.
7532 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7533 and gdbarch_believe_pcc_promotion.
7535 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7537 * Makefile.in (vax_tdep_h): Define.
7538 (vax-tdep.o): Use $(vax_tdep_h).
7539 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7540 (vax_dump_tdep): New function.
7541 (_initialize_vax_tdep): Register vax_dump_tdep.
7542 * vax-tdep.h: Include osabi.h.
7543 (struct gdbarch_tdep): New.
7545 2002-06-26 Andrew Cagney <cagney@redhat.com>
7547 * frame.h (deprecated_generic_find_dummy_frame): Rename
7548 generic_find_dummy_frame.
7549 * blockframe.c (generic_find_dummy_frame): Make static.
7550 (deprecated_generic_find_dummy_frame): New function.
7551 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7552 generic_find_dummy_frame with deprecated_find_dummy_frame.
7553 (sh64_nofp_frame_init_saved_regs): Ditto.
7554 (sh_fp_frame_init_saved_regs): Ditto.
7555 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7556 (s390_frame_chain): Ditto.
7557 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7559 2002-06-26 Grace Sainsbury <graces@redhat.com>
7561 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7562 gdbarch vector are at the top.
7564 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7565 (FRAME_ARGS_ADDRESS): Remove.
7566 (FRAME_LOCALS_ADDRESS): Remove.
7567 (FRAME_NUM_ARGS): Remove.
7568 (FRAME_ARGS_SKIP): Remove.
7569 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7570 (m68k_gdbarch_init): Add gdbarch initializations for macros
7571 undefined in tm-m68k.h
7573 2002-06-26 Grace Sainsbury <graces@redhat.com>
7575 * monitor.h: Add the function regname to monitor_ops
7576 structure. This way NUM_REGS does not have to be a constant.
7577 * monitor.c (monitor_fetch_register): Added support for regname
7578 function. The function is called if the array regnames is NULL.
7579 (monitor_store_register): Same.
7580 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7582 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7583 cpu32bug_cmds.regname to point to new function.
7584 * abug-rom.c (abug_regname): Same as above.
7585 (init_abug_cmds): Same.
7586 * dbug-rom.c (dbug_regname): Same as above.
7587 (init_dbug_cmds): Same.
7588 * remote-est.c (est_regname): Same.
7589 (init_est_cmds): Same.
7590 * rom68k-rom.c (rom68k_regname): Same.
7591 (init_rom68k_cmds): Same.
7593 2002-06-25 Tom Tromey <tromey@redhat.com>
7595 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7597 2002-06-25 Andrew Cagney <cagney@redhat.com>
7599 * infrun.c (stop_registers): Change variable's type to ``struct
7601 (xmalloc_inferior_status): Delete function.
7602 (free_inferior_status): Delete function.
7603 (normal_stop): Use regcache_cpy.
7604 (struct inferior_status): Change type of fields ``stop_registers''
7605 and ``registers'' to ``struct regcache''.
7606 (write_inferior_status_register): Use regcache_write.
7607 (save_inferior_status): Instead of calling
7608 xmalloc_inferior_status, allocate the inf_status buffer directly.
7609 Use regcache_dup_no_passthrough and regcache_dup to save the
7611 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7612 Replace the stop_registers regcache instead of overriding it. Use
7613 regcache_xfree. Instead of calling free_inferior_status, xfree
7614 the buffer directly.
7615 (discard_inferior_status): Use regcache_xfree. Instead of calling
7616 free_inferior_status, xfree the buffer directly.
7617 (build_infrun): Use regcache_xmalloc.
7618 (_initialize_infrun): Delete redundant call to build_infrun.
7620 * Makefile.in (infcmd.o): Add $(regcache_h).
7622 * infcmd.c: Include "regcache.h".
7623 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7624 obtain the address of `stop_registers' register buffer.
7625 (print_return_value): Ditto.
7627 * inferior.h (struct regcache): Add opaque declaration.
7628 (stop_registers): Change variable's declared type to ``struct
7631 2002-06-24 Tom Tromey <tromey@redhat.com>
7633 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7634 * target.c (initialize_targets): Fixed typo in
7635 trust-readonly-sections `show' documentation.
7637 * main.c: Marked all strings with _().
7639 2002-06-24 Don Howard <dhoward@redhat.com>
7641 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7642 that means max CORE_ADDR+1.
7643 (lookup_mem_region): Ditto.
7644 (mem_info_command): Ditto.
7646 2002-06-24 Grace Sainsbury <graces@redhat.com>
7648 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7649 (REGISTER_BYTES_OK): Remove.
7650 (REGISTER_BYTES): Remove.
7651 (STORE_STRUCT_RETURN): Remove.
7652 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7653 (STORE_RETURN_VALUE): Remove.
7654 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7655 (FRAME_CHAIN): Remove.
7656 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7657 (FRAME_SAVED_PC): Remove.
7658 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7659 (m68k_store_struct_return): Add.
7660 (m68k_deprecated_extract_return_value): Add.
7661 (m68k_deprecated_extract_struct_value_address): Add.
7662 (m68k_store_return_value): Add.
7663 (m68k_frame_chain): Add.
7664 (m68k_frameless_function_invocation): Add.
7665 (m68k_frame_saved_pc): Add.
7666 (m68k_gdbarch_init): added set_gdbarch calls for new
7667 functions and deleted macros.
7669 2002-06-23 Tom Tromey <tromey@redhat.com>
7671 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7672 (ALLDEPFILES): Likewise.
7673 (udiheaders): Removed.
7674 (udip2soc.o): Likewise.
7675 (udi2go32.o): Likewise.
7677 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7679 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7681 * infrun.c (_initialize_infrun): Delete unnecessary call to
7684 * regcache.h: Update comments describing the regcache_cpy family
7686 (regcache_save, regcache_restore): Delete declaration.
7687 (regcache_save_no_passthrough): Delete declaration.
7688 (regcache_restore_no_passthrough): Delete declaration.
7689 * regcache.c (regcache_save): Delete function.
7690 (regcache_save_no_passthrough): Delete function.
7691 (regcache_restore): Delete function.
7692 (regcache_restore_no_passthrough): Delete function.
7694 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7696 * config/m68k/tm-m68k.h: Fix typo.
7697 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7698 (m68k_frame_init_saved_regs): Declare.
7700 2002-06-21 Jim Blandy <jimb@redhat.com>
7702 Remove some vestiges of Harris 88k support.
7703 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7704 register numbering quirk.
7705 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7706 odd symbols occurring in Harris 88k ELF targets.
7708 2002-06-21 Tom Tromey <tromey@redhat.com>
7710 * gdb_locale.h: New file.
7711 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7712 (defs_h): Added gdb_locale.h.
7713 * configure, config.in: Rebuilt.
7714 * configure.in (PACKAGE): Define.
7715 * defs.h: Include gdb_locale.h.
7716 * main.c (captured_main): Call setlocale, bindtextdomain,
7719 2002-06-21 Dave Brolley <brolley@redhat.com>
7721 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7722 * config/frv/frv.mt: New file.
7723 * config/frv/tm-frv.h: New file.
7724 * configure.tgt: Support frv-*-*.
7725 * Makefile.in (frv-tdep.o): New target.
7726 * frv-tdep.c: New file.
7727 * NEWS: Mention frv.
7729 2002-06-21 Dave Brolley <brolley@redhat.com>
7731 * MAINTAINERS: Add self to "Write After Approval" list.
7733 2002-06-21 Grace Sainsbury <graces@redhat.com>
7735 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7736 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7737 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7738 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7739 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7741 * m68k-tdep.c: Include arch-utils.h
7742 (m68k_register_raw_size): Add.
7743 (m68k_register_virtual_size): Add.
7744 (m68k_register_virtual_type): Add.
7745 (m68k_register_name): Add.
7746 (m68k_stack_align): Add.
7747 (m68k_register_byte): Add.
7748 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7751 2002-06-21 Grace Sainsbury <graces@redhat.com>
7753 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7754 m68k_find_saved_regs.
7755 (m68k_pop_frame): Removed saved_regs structure, and replaced
7756 references to it with frame->saved_regs.
7757 (m68k_gdbarch_init): Added function calls to initialize the
7759 (m68k_fix_call_dummy): Add.
7760 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7761 (CALL_DUMMY): Remove.
7762 (CALL_DUMMY_LENGTH): Remove.
7763 (CALL_DUMMY_START_OFFSET): Remove.
7764 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7765 (FIX_CALL_DUMMY): Remove.
7766 (PUSH_DUMMY_FRAME): Remove.
7767 (POP_FRAME): Remove.
7769 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7771 * parse.c (parse_fprintf): New function used to avoid calls to
7772 fprintf in bison parser generated debug code.
7773 * parser-defs.h: Declaration of new parse_fprintf function.
7774 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7775 Set YYDEBUG to 1 by default.
7776 Set YYFPRINTF as parse_fprintf.
7778 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7780 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7782 (pointer_encoding, enum ptr_encoding): New.
7783 (execute_cfa_program): Take care about pointer encoding.
7784 (dwarf2_build_frame_info): Only call parse_frame_info for
7785 .debug_frame and .eh_frame.
7786 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7787 fixed augmentation handling, added relative addressing,
7788 ignore duplicate FDEs. Added comments.
7789 * dwarf2cfi.c: Reindented.
7791 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7793 * event-top.c (command_handler): Don't use space_at_cmd_start
7794 unless there is sbrk() on the host. Assign time and space data
7795 to union fields of the appropriate length.
7797 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7799 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7800 x86_64_register_name. Return type changed to 'const char *'.
7801 (x86_64_register_name2nr): Rename to x86_64_register_number.
7802 (x86_64_gdbarch_init): Update to reflect the change.
7803 * x86-64-tdep.h: Ditto.
7804 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7805 (supply_fpregset): Ditto.
7807 2002-06-19 Andrew Cagney <cagney@redhat.com>
7809 * regcache.h: Update copyright.
7810 (struct regcache, struct gdbarch): Add opaque declarations.
7811 (current_regcache): Declare global variable.
7812 (regcache_read, regcache_write): Add gdbarch parameter.
7813 (regcache_save, regcache_save_no_passthrough)
7814 (regcache_restore, regcache_restore_no_passthrough)
7815 (regcache_dup, regcache_dup_no_passthrough)
7816 (regcache_cpy, regcache_cpy_no_passthrough)
7817 (deprecated_grub_regcache_for_registers)
7818 (deprecated_grub_regcache_for_register_valid)
7819 (regcache_valid_p): Add function declarations.
7821 * regcache.c: Update copyright.
7822 (regcache_descr_handle): New global variable.
7823 (struct regcache_descr): Define.
7824 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7825 (regcache_descr, xfree_regcache_descr): New functions.
7826 (struct regcache): Define.
7827 (regcache_xmalloc, regcache_xfree): New functions.
7828 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7829 (regcache_dup, regcache_dup_no_passthrough): New functions.
7830 (regcache_valid_p, regcache_read_as_address): New functions.
7831 (deprecated_grub_regcache_for_registers): New function.
7832 (deprecated_grub_regcache_for_register_valid): New function.
7833 (current_regcache): New global variable.
7834 (register_buffer): Add regcache parameter. Update calls.
7835 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7836 (read_register_gen, write_register_gen): Update register_buffer
7837 call. Test for legacy_p instead of gdbarch_register_read_p or
7838 gdbarch_register_write_p.
7839 (regcache_collect): Update register_buffer call.
7840 (build_regcache): Rewrite. Use deprecated grub functions.
7841 (regcache_save, regcache_save_no_passthrough): New functions.
7842 (regcache_restore, regcache_restore_no_passthrough): New
7844 (_initialize_regcache): Create the regcache_data_handle. Swap
7845 current_regcache global variable.
7847 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7848 parameter to regcache_read and regcache_write calls.
7849 (sh4_register_read): Ditto.
7850 (sh64_pseudo_register_read): Ditto.
7851 (sh64_register_read): Ditto.
7852 (sh_pseudo_register_write): Ditto.
7853 (sh4_register_write): Ditto.
7854 (sh64_pseudo_register_write): Ditto.
7855 (sh64_register_write): Ditto.
7857 * defs.h (XCALLOC): Define.
7859 2002-06-19 Grace Sainsbury <graces@redhat.com>
7861 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7862 * m68k-tdep.c (m68k_gdbarch_init): Added.
7863 (m68k_dump_tdep): Added.
7865 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7867 * ada-lang.c (fill_in_ada_prototype): Update comment.
7869 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7871 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7873 (mips_abi_string, mips_abi_strings): New.
7874 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7875 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7876 tdep->mips_abi_string. Honor mips_abi_string. Default to
7877 O32 if no ABI is found.
7878 (mips_dump_tdep): Use mips_abi_strings.
7879 (mips_abi_update): New function.
7880 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7881 ``set mips abi'' and ``show mips abi''. Check the size of
7884 2002-06-19 Andrew Cagney <cagney@redhat.com>
7886 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7889 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7891 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7892 current frame using only the first stack size adjustment. All
7893 subsequent size adjustments are not considered to be part of
7894 the "static" part of the current frame.
7895 Compute the address of the saved registers relative to the
7896 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7897 in use in this frame.
7899 2002-06-18 Don Howard <dhoward@redhat.com>
7901 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7902 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7903 suggesting this solution.
7905 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7907 * config/romp/xm-rtbsd.h: Delete file.
7908 * config/romp/rtbsd.mh: Delete file.
7910 2002-06-18 Keith Seitz <keiths@redhat.com>
7912 * breakpoint.c (condition_command): Post breakpoint_modify
7913 when a condition is added to an existing breakpoint.
7914 (commands_command): Likewise for commands.
7915 (set_ignore_count): Likewise for ignore counts.
7916 If no tty, do not simply return, still need to send event
7918 (ignore_command): Only print a newline if the command came
7920 Don't call breakpoints_changed, since this is now properly
7921 handled by set_ignore_count.
7923 2002-06-18 Andrew Cagney <cagney@redhat.com>
7925 * MAINTAINERS: Note that cris-elf target can be compiled with
7927 * cris-tdep.c (cris_register_name): Make return type constant.
7928 (cris_breakpoint_from_pc): Ditto.
7930 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7932 * frame.h (struct frame_info): Change type of context to
7935 2002-06-17 Andrew Cagney <cagney@redhat.com>
7937 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7939 * gdbarch.h, gdbarch.c: Regenerate.
7940 * config/mips/tm-mips.h (mips_register_name): Update.
7941 * i386-tdep.h (i386_register_name): Update.
7942 * mips-tdep.c (mips_register_name): Update
7943 * alpha-tdep.c (alpha_register_name): Update.
7944 * arch-utils.c (legacy_register_name): Update.
7945 * arch-utils.h (legacy_register_name): Update.
7946 * avr-tdep.c (avr_register_name): Update.
7947 * ia64-tdep.c (ia64_register_name): Update.
7948 * i386-tdep.c (i386_register_name): Update.
7949 * sparc-tdep.c (sparc32_register_name): Update.
7950 (sparc64_register_name): Update.
7951 (sparclite_register_name): Update.
7952 (sparclet_register_name): Update.
7953 * sh-tdep.c (sh_generic_register_name): Update.
7954 (sh_sh_register_name): Update.
7955 (sh_sh3_register_name): Update.
7956 (sh_sh3e_register_name): Update.
7957 (sh_sh_dsp_register_name): Update.
7958 (sh_sh3_dsp_register_name): Update.
7959 (sh_sh4_register_name): Update.
7960 (sh_sh64_register_name): Update.
7961 * s390-tdep.c (s390_register_name): Update.
7962 * rs6000-tdep.c (rs6000_register_name): Update.
7963 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7964 (ns32k_register_name_32382): Update.
7965 * d10v-tdep.c (d10v_ts2_register_name): Update.
7966 (d10v_ts3_register_name): Update.
7967 * xstormy16-tdep.c (xstormy16_register_name): Update.
7968 * vax-tdep.c (vax_register_name): Update.
7969 * v850-tdep.c (v850_register_name): Update.
7970 * m68hc11-tdep.c (m68hc11_register_name): Update.
7971 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7972 (am33_register_name): Update.
7974 2002-06-17 Grace Sainsbury <graces@redhat.com>
7976 * m68k-tdep.c: Reindented.
7978 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7980 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7981 list of predefined types.
7983 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7985 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7986 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7987 REGISTER_CONVERT_TO_RAW): Remove defines.
7988 (i386_register_virtual_type, i386_register_convertible,
7989 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7991 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7992 macros mentioned above.
7994 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7995 (i386lynx_saved_pc_after_call): Remove prototype.
7996 * i386ly-tdep.c: Include "i386-tdep.h".
7997 (i386lynx_saved_pc_after_call): Make static. Use
7998 read_memory_nobpt instead of read_memory. Use
7999 read_memory_unsigned_integer instead of read_memory_integer.
8000 (i386lynx_init_abi): New function.
8001 (i386lynx_coff_osabi_sniffer): New function.
8002 (_initialize_i386bsd_tdep): New function.
8004 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8005 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8006 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8007 (i386_fix_call_dummy): Remove prototype.
8008 * i386-tdep.c (i386_call_dummy_words): New variable.
8009 (i386_gdbarch_init): Adjust for removal of the
8010 macros mentioned above.
8012 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8014 * command.h (add_setshow_auto_boolean_cmd): Replace
8015 add_set_auto_boolean_cmd.
8016 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8017 add_set_auto_boolean_cmd.
8018 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8019 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8020 mask-address'' command.
8021 (show_mask_address): Add cmd parameter.
8022 * remote.c (add_packet_config_cmd): Update. Change type of
8023 set_func and show_func to cmd_sfunc_ftype.
8024 (_initialize_remote): Update `set remote Z-packet'
8025 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8026 (show_remote_protocol_e_packet_cmd): Ditto.
8027 (show_remote_protocol_E_packet_cmd): Ditto.
8028 (show_remote_protocol_P_packet_cmd): Ditto.
8029 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8030 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8031 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8032 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8033 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8034 (show_remote_protocol_Z_packet_cmd): Ditto.
8035 (show_remote_protocol_binary_download_cmd): Ditto.
8036 (show_remote_cmd): Pass NULL to all of above.
8038 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8040 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8041 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8042 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8043 POP_FRAME): Remove defines.
8044 (i386_push_arguments, i386_store_struct_return,
8045 i386_extract_return_value, i386_store_return_value,
8046 i386_extract_struct_value_address, i386_push_dummy_frame,
8047 i386_pop_frame): Renove prototypes.
8048 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8049 macros mentioned above.
8051 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8053 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8054 add_set_boolean_cmd.
8055 (add_setshow_cmd): New function.
8056 * command.h (add_setshow_boolean_cmd): Replace
8057 add_set_boolean_cmd.
8058 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8059 and ``set rdiromatzero''.
8060 * maint.c (_initialize_maint_cmds): Update commented out code.
8061 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8062 * target.c (initialize_targets): Update `set
8063 trust-readonly-sections'.
8064 * remote.c (_initialize_remote): Update `set remotebreak'.
8066 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8068 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8069 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8070 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8071 fit into multi-arch framework.
8072 (i386_breakpoint_from_pc): New function.
8073 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8076 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8077 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8078 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8079 (i386_frameless_function_invocation, i386_frame_num_args,
8080 i386_frame_init_saved_regs): Remove prototypes.
8081 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8082 macros mentioned above.
8084 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8086 * cli/cli-decode.c (set_cmd_cfunc): Update.
8087 (set_cmd_sfunc): Update.
8088 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8089 (set_cmd_sfunc, set_cmd_cfunc): Update.
8090 * cli/cli-decode.h: Update.
8092 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8094 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8095 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8097 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8099 * defs.h (auto_boolean): Declare enum.
8100 * command.h (cmd_auto_boolean): Delete enum.
8101 * mips-tdep.c (mask_address_var): Update.
8102 (mips_mask_address_p): Update.
8103 (show_mask_address): Update.
8104 * remote.c (struct packet_config): Update.
8105 (update_packet_config): Update.
8106 (show_packet_config_cmd): Update.
8107 (packet_ok): Update.
8108 (add_packet_config_cmd): Update.
8109 (_initialize_remote):
8110 * command.h: Update.
8111 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8112 (do_setshow_command): Update.
8113 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8114 * cli/cli-decode.h: Update.
8116 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8118 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8119 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8120 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8121 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8122 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8123 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8125 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8126 list of DJGPP COFF targets.
8128 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8129 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8130 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8131 (FP0_REGNUM): Remove define.
8132 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8133 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8134 (i386_register_virtual_size): Remove protoype.
8135 * i386-tdep.c (i386_register_virtual_size): Removed.
8136 (i386_extract_return_value, i386_store_return_value): Use
8137 FP0_REGNUM instead of NUM_FREGS to determine whether the
8138 floating-point registers are available.
8139 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8140 Adjust for removal of macros mentioned above.
8142 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8144 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8146 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8148 (supply_gregset, fill_gregset): Remove use of register keyword and
8149 remove declaration for regmap. Use I386_NUM_GREGS instead of
8150 NUM_REGS and NUM_FREGS.
8151 (FPREGSET_FSAVE_OFFSET): Remove.
8152 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8153 NUM_FREGS to determine whether the floating-point registers are
8156 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8157 gnu_store_registers): Replace usage of NUM_GREGS with
8160 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8161 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8162 usage of NUM_GREGS with I386_NUM_GREGS.
8164 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8166 * i386bsd-nat.c: Include "i386-tdep.h".
8167 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8170 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8171 and associated comment. They no longer make any sense, since we
8172 don't use this file anymore on Linux.
8174 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8175 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8176 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8177 elements in these arrays.
8178 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8181 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8183 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8184 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8186 2002-06-14 Andrew Cagney <cagney@redhat.com>
8188 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8189 EXTRACT_RETURN_VALUE.
8190 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8191 EXTRACT_STRUCT_VALUE_ADDRESS.
8192 * gdbarch.h, gdbarch.c: Regenerate.
8194 * values.c (value_being_returned): Handle
8195 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8196 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8198 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8199 * arm-tdep.c (arm_gdbarch_init): Update.
8200 * avr-tdep.c (avr_gdbarch_init): Update.
8201 * cris-tdep.c (cris_gdbarch_init): Update.
8202 * d10v-tdep.c (d10v_gdbarch_init): Update.
8203 * ia64-tdep.c (ia64_gdbarch_init): Update.
8204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8206 * s390-tdep.c (s390_gdbarch_init): Update.
8207 * sh-tdep.c (sh_gdbarch_init): Update.
8208 * s390-tdep.c (s390_gdbarch_init): Update.
8209 * sparc-tdep.c (sparc_gdbarch_init): Update.
8210 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8211 * v850-tdep.c (v850_gdbarch_init): Update.
8212 * vax-tdep.c (vax_gdbarch_init): Update.
8213 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8216 * config/arc/tm-arc.h: Update.
8217 * config/d30v/tm-d30v.h: Update.
8218 * config/fr30/tm-fr30.h: Update.
8219 * config/h8300/tm-h8300.h: Update.
8220 * config/h8500/tm-h8500.h: Update.
8221 * config/i386/tm-i386.h: Update.
8222 * config/i386/tm-ptx.h: Update.
8223 * config/i386/tm-symmetry.h: Update.
8224 * config/i960/tm-i960.h: Update.
8225 * config/m32r/tm-m32r.h: Update.
8226 * config/m68k/tm-delta68.h: Update.
8227 * config/m68k/tm-linux.h: Update.
8228 * config/m68k/tm-m68k.h: Update.
8229 * config/m88k/tm-m88k.h: Update.
8230 * config/mcore/tm-mcore.h: Update.
8231 * config/mips/tm-mips.h: Update.
8232 * config/mn10200/tm-mn10200.h: Update.
8233 * config/pa/tm-hppa.h: Update.
8234 * config/pa/tm-hppa64.h: Update.
8235 * config/sparc/tm-sp64.h: Update.
8236 * config/sparc/tm-sparc.h: Update.
8237 * config/sparc/tm-sparclet.h: Update.
8238 * config/z8k/tm-z8k.h: Update.
8240 2002-06-14 Andrew Cagney <cagney@redhat.com>
8242 * Makefile.in (i386_linux_tdep_h): Define.
8243 (i386_tdep_h, i387_tdep_h): Define.
8244 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8245 $(i386_tdep_h) and $(i387_tdep_h).
8246 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8248 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8250 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8251 Already covered by the default.
8253 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8254 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8255 (i386_gdbarch_init): Initialize long_double_format and long_double
8258 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8259 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8261 * config/i386/i386sol2.mh: ... here.
8262 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8263 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8264 (SIGCONTEXT_PC_OFFSET): Remove define.
8265 (IN_SIGTRAMP): Remove define.
8266 * i386-sol2-tdep.c: New file.
8268 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8269 * config/i386/tm-i386nw.h: Removed.
8271 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8272 USE_STRUCT_CONVENTION): Remove defines.
8273 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8274 (get_longjmp_target): Remove prototype.
8275 (IN_SIGTRAMP): Remove define.
8276 (i386bsd_in_sigtramp): Remove prototype.
8277 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8278 function. Update comment accordingly
8279 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8280 (FRAME_SAVED_PC): Remove define.
8281 (i386bsd_frame_saved_pc): Remove prototype.
8282 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8283 GET_LONGJMP_TARGET): Remove defines.
8284 (get_longjmp_target): Remove prototype.
8285 (IN_SIGTRAMP): Remove define.
8286 (i386bsd_in_sigtramp): Remove prototype.
8287 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8288 function. Update comment accordingly
8289 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8290 (FRAME_SAVED_PC): Remove define.
8291 (i386bsd_frame_saved_pc): Remove prototype.
8292 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8294 (USE_STRUCT_CONVENTION): Remove prototype.
8295 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8297 (_initialize_i386bsd_nat): Revise logic to determine some
8298 constants at compile time when compiling a native GDB. Warn if
8299 things don't match up with what we expect.
8300 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8302 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8303 to use date stored in `struct gdbarch_tdep'.
8304 (i386bsd_sigcontext_offset): Remove varaible.
8305 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8306 stored in `struct gdbarch_tdep'.
8307 (i386bsd_frame_saved_pc): Make static.
8308 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8309 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8310 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8311 i386fbsd4_sc_pc_offset): New variables.
8312 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8313 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8315 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8317 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8318 Modify the value of i386fbsd_sigtramp_start and
8319 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8320 i386fbsd_sigtramp_end.
8321 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8324 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8325 define to i386-linux-tdep.h.
8326 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8327 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8329 (i386_linux_register_name, i386_linux_register_byte,
8330 i386_linux_register_raw_size): Remove prototypes.
8331 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8332 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8333 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8334 TARGET_WRITE_PC): Remove defines.
8335 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8336 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8337 i386_linux_write_pc): Remove prototypes.
8338 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8339 (get_longjmp_target): Remove prototype.
8340 * i386-linux-tdep.h: New file.
8341 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8342 * i386-linux-tdep.c: Include "i386-tdep.h" and
8343 "i386-linux-tdep.h".
8344 (i386_linux_register_name, i386_linux_register_byte,
8345 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8346 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8348 (i386_linux_init_abi): New function.
8349 (_initialize_i386_linux_tdep): New function.
8351 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8352 (i386_saved_pc_after_call): Remove prototype.
8353 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8354 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8355 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8356 (i386_register_name, i386_stab_reg_to_regnum,
8357 i386_dwarf_reg_to_regnum): Remove prototypes.
8358 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8359 SIZEOF_SSE_REGS): Remove defines.
8360 (REGISTER_BYTES): Remove define.
8361 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8362 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8363 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8364 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8365 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8366 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8367 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8368 (get_longjmp_target): Remove prototype.
8369 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8370 (sigtramp_saved_pc): Remove define.
8371 (i386v4_sigtramp_saved_pc): Remove prototype.
8372 * config/i386/tm-go32.h (FRAME_CHAIN,
8373 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8374 (i386go32_frame_saved_pc): Remove prototype.
8375 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8376 (get_longjmp_target): Remove prototype.
8377 * i386-tdep.h: Include "osabi.h".
8378 (enum i386_abi): Removed.
8379 (enum struct_return): New enum.
8380 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8381 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8382 sc_pc_offset members.
8383 (i386_gdbarch_register_os_abi): Remove prototype.
8384 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8385 I386_SSE_NUM_REGS): New defines.
8386 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8387 I386_SSE_SIZEOF_REGS): New defines.
8388 (i386_register_name, i386_register_byte, i386_register_raw_size):
8390 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8391 (i386bsd_sigtramp_saved_pc): New prototype.
8392 * i386-tdep.c: Don't include "elf-bfd.h".
8393 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8394 i386_frame_chain, i386_saved_pc_after_call): Make static.
8395 (i386_frame_saved_pc): Rewrite to call architecture dependent
8396 function to deal with signal handlers. Make static.
8397 (i386go32_frame_saved_pc): Removed.
8398 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8400 (i386_get_longjmp_target): New function.
8401 (default_struct_convention, pcc_struct_convention,
8402 reg_struct_convention, valid_conventions, struct_convention): New
8404 (i386_use_struct_convention): New function.
8405 (i386v4_sigtramp_saved_pc): Renamed to
8406 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8407 (i386_pc_in_sigtramp): New function.
8408 (i386_abi_names): Removed.
8409 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8410 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8412 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8413 i386_gdbarch_register_os_abi): Removed.
8414 (struct i386_abi_handler): Removed.
8415 (i386_abi_handler_list): Removed.
8416 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8418 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8419 i386_nw_init_abi): New functions.
8420 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8421 Use set_gdbarch_xxx() calls instead of relying on macros for a
8423 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8424 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8425 Register the various architecture variants defined in this file.
8427 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8429 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8430 (struct main_type): Remove arg_types member. Update comments for
8432 (TYPE_ARG_TYPES): Remove.
8433 (TYPE_FN_FIELD_ARGS): Update.
8434 (smash_to_method_type): Update prototype.
8436 * c-typeprint.c (cp_type_print_method_args): Take method type
8437 instead of argument list. Use new argument layout. Simplify.
8438 (c_type_print_args): Use new argument layout. Simplify.
8439 (c_type_print_base): Update call to cp_type_print_method_args.
8440 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8441 argument; use die->type instead. Update call to
8442 smash_to_method_type.
8443 (read_structure_scope): Update call to dwarf2_add_member_fn.
8444 * gdbtypes.c (allocate_stub_method): Update comment.
8445 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8446 Use new argument layout.
8447 (check_stub_method): Use new argument layout. Don't count
8448 void as an argument.
8449 (print_arg_types): Update comments. Use new argument layout.
8450 (recursive_dump_type): Don't print arg_types member.
8451 * hpread.c (hpread_read_struct_type): Use new argument layout.
8452 (fixup_class_method_type): Likewise.
8453 (hpread_type_lookup): Likewise.
8454 * stabsread.c (read_type): Update calls to read_args and
8455 smash_to_method_type.
8456 (read_args): Use new argument layout. Simplify.
8457 * valops.c (typecmp): Use new argument layout. Update parameters
8458 and comments. Simplify.
8459 (hand_function_call): Use new argument layout.
8460 (search_struct_method): Update call to typecmp.
8461 (find_overload_match): Use new argument layout.
8463 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8465 * NEWS: Mention multithreaded debug support for gdbserver.
8467 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8469 * MAINTAINERS: Mention NEWS.
8471 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8473 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8474 (struct mips_objfile_private, compare_pdr_entries): New.
8475 (non_heuristic_proc_desc): Read the ".pdr" section if it
8478 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8480 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8481 (arm_debug): New static variable.
8482 (_initialize_arm_tdep): Add ``set debug arm'' command.
8484 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8486 * Makefile.in (sim_arm_h): Define.
8487 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8488 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8489 (arm_register_sim_regno): New function, map an internal REGNUM
8490 onto a simulator register number.
8491 (arm_gdbarch_init): Set register_sim_regno.
8493 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8495 * MAINTAINERS: Add self.
8497 2002-06-11 Jim Blandy <jimb@redhat.com>
8499 * source.c (source_info): Mention whether the symtab has
8500 information about preprocessor macros.
8502 Call the command `info macro', not `show macro'.
8503 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8505 (_initialize_macrocmd): Register `info_macro_command' in
8506 `infolist', not `showlist'.
8508 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8510 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8511 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8512 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8513 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8514 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8516 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8517 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8518 (_initialize_mips_tdep): Remove dead code.
8519 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8520 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8521 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8522 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8523 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8524 MIPS_LAST_FP_ARG_REGNUM): Remove.
8526 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8528 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8529 (unwind_tmp_obstack_free, parse_frame_info)
8530 (update_context, cfi_read_fp, cfi_write_fp)
8531 (cfi_frame_chain, cfi_init_extra_frame_info)
8532 (cfi_virtual_frame_pointer): Use the above function.
8533 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8535 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8537 * v850-tdep.c (v850_type_is_scalar): New function.
8538 (v850_use_struct_convention): Match current gcc implementation
8539 as close as possible.
8540 (v850_push_arguments): Fix stack_offset handling. Don't write
8541 struct_addr into register. This is done by v850_store_struct_return.
8542 (v850_extract_return_value): Care for structs.
8543 (v850_store_return_value): Ditto.
8544 (v850_store_struct_return): Actually write address.
8546 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8548 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8549 without debug information too.
8551 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8553 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8554 Make multi-arch pure.
8555 * gdbarch.h, gdbarch.c: Re-generate.
8556 * arm-tdep.c (arm_print_float_info): Update.
8557 * arch-utils.h (default_print_float_info): Update.
8558 * arch-utils.c (default_print_float_info): Update.
8559 * infcmd.c (float_info): Update call.
8561 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8563 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8564 the front of the initialize list.
8566 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8568 * infrun.c (struct inferior_status): Replace fields
8569 selected_frame_address and selected_level with field
8571 (save_inferior_status): Update. Use get_frame_id.
8572 (struct restore_selected_frame_args): Delete.
8573 (restore_selected_frame): Update. Use frame_find_by_id.
8574 (restore_inferior_status): Update.
8576 * breakpoint.h (struct breakpoint): Change type of
8577 watchpoint_frame to frame_id.
8578 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8579 call to get_current_frame.
8580 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8582 (watchpoint_check): Use frame_find_by_id.
8584 * frame.h (record_selected_frame): Delete declaration.
8585 * stack.c (record_selected_frame): Delete function.
8587 * frame.h (struct frame_id): Define.
8588 (get_frame_id): Declare.
8589 (frame_find_by_id): Declare.
8590 * frame.c (frame_find_by_id): New function.
8591 (get_frame_id): New function.
8593 2002-06-10 Andrey Volkov <avolkov@transas.com>
8595 * ser-e7kpc.c: Fix duplicated define and call of
8596 _initialize_ser_e7000pc
8598 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8600 * signals/signals.c (target_signal_from_host): Fix #ifdef
8602 (do_target_signal_to_host): Likewise.
8604 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8606 * mips-tdep.c (mips_find_abi_section): New function.
8607 (mips_gdbarch_init): Call it.
8609 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8611 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8612 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8613 after Andrew's 2002-06-08 gdbarch change.
8615 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8617 * i386-linux-nat.c (suppy_gregset): Don't supply
8618 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8620 (fill_gregset): Don't fetch it under the same circumstances.
8622 2002-06-09 Andrew Cagney <cagney@redhat.com>
8624 * Makefile.in (callback_h): Define.
8625 (remote_sim_h): Update path to remote-sim.h.
8626 (remote-rdp.o): Add $(callback_h).
8627 (remote-sim.o): Use $(callback_h).
8628 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8629 * remote-rdp.c: Include "gdb/callback.h".
8631 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8633 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8634 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8636 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8638 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8639 * rdi-share/serpardr.c: Ditto.
8640 * rdi-share/unixcomm.c: Ditto.
8641 * rdi-share/serdrv.c: Ditto.
8642 * rdi-share/hostchan.h: Ditto.
8643 * rdi-share/hostchan.c: Ditto.
8644 * rdi-share/host.h: Ditto.
8645 * rdi-share/devsw.c: Ditto.
8647 * objfiles.h: Change type of obj_private to void pointer.
8648 * pa64solib.c: Update copyright. Don't include "assert.h", use
8649 strcmp instead of STREQ, use LONGEST, do not use PTR
8650 * somsolib.c: Ditto.
8652 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8653 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8654 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8656 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8658 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8659 (default_get_saved_register): Delete function.
8660 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8661 generic_unwind_get_saved_register.
8662 * gdbarch.h, gdbarch.c: Re-generate.
8664 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8666 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8667 generic_func_frame_chain_valid.
8668 * gdbarch.h, gdbarch.c: Re-generate.
8669 * blockframe.c (generic_func_frame_chain_valid): Only check
8670 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8671 passing FP to PC_IN_CALL_DUMMY.
8674 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8676 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8677 (register_gdbarch_data): Initialize init_p.
8678 (gdbarch_data): Initialize data pointer using the init function.
8679 (init_gdbarch_data): Delete function.
8680 (gdbarch_update_p): Update.
8681 (initialize_non_multiarch): Update.
8682 (struct gdbarch): Add field initialized_p.
8683 * gdbarch.h, gdbarch.c: Re-generate.
8685 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8687 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8688 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8689 better do the things actually here.
8690 * x86-64-tdep.c (x86_64_register_name2nr): New.
8691 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8692 (x86_64_gdbarch_init): Respect the above change.
8693 * x86-64-tdep.h (x86_64_register_name2nr)
8694 (x86_64_register_nr2name): Add prototypes.
8695 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8697 2002-06-06 Michael Snyder <msnyder@redhat.com>
8699 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8700 Delete extra braces and re-indent.
8701 (d10v_store_return_value): Char return values
8702 must be shifted over by one byte in R0.
8703 (d10v_extract_return_value): Delete extra braces, re-indent.
8705 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8707 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8708 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8709 (d10v_integer_to_address): Rewrite.
8710 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8711 the d10v specific functions which take care of converting to the
8714 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8716 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8717 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8719 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8721 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8723 * config/tm-linux.h: Ditto.
8724 * config/alpha/tm-alphalinux.h: Ditto.
8725 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8726 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8727 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8728 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8729 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8730 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8731 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8732 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8733 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8734 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8735 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8736 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8737 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8738 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8739 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8740 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8741 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8742 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8743 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8744 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8745 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8746 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8747 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8748 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8749 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8750 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8751 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8752 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8753 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8754 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8755 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8756 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8757 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8758 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8759 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8760 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8761 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8763 2002-05-04 Aidan Skinner <aidan@velvet.net>
8765 * ada-exp.tab.c: New file
8766 * ada-exp.y: New file
8767 * ada-lang.c: New file
8768 * ada-lang.h: New file
8769 * ada-lex.c: New file
8770 * ada-lex.l: New file
8771 * ada-tasks.c: New file
8772 * ada-typeprint.c: New file
8773 * ada-valprint.c: New file
8775 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8777 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8778 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8780 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8782 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8783 insetead of ppc-linux-tdep.o.
8784 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8785 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8787 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8789 2002-05-07 Christian Groessler <chris@groessler.org>
8790 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8791 bit register contents for little endian hosts.
8793 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8795 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8798 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8800 * gdbarch.h: Regenerate.
8802 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8804 * MAINTAINERS: Add everyone to write-after-approval list.
8806 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8808 * stack.c (frame_info): Use frame_register_unwind instead of
8809 saved_regs. Mention when the SP is on the stack or in a register.
8811 * frame.h (frame_register_unwind_ftype): Define. Document.
8812 (struct frame_info): Add field register_unwind and
8813 register_unwind_cache.
8814 (frame_register_unwind): Declare.
8815 (generic_unwind_get_saved_register): Declare.
8817 * frame.c (frame_register_unwind): New function.
8818 (generic_unwind_get_saved_register): New function.
8820 * blockframe.c (generic_call_dummy_register_unwind): New function.
8821 (frame_saved_regs_register_unwind): New function.
8822 (set_unwind_by_pc): New function.
8823 (create_new_frame): New function.
8824 (get_prev_frame): New function.
8826 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8828 * a29k-share/: Delete directory.
8829 * remote-vx29k.c: Delete file.
8831 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8833 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8834 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8836 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8838 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8839 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8842 (sparcnbsd-tdep.o): New dependency lists.
8843 * NEWS: Note new UltraSPARC NetBSD native configuration.
8844 * configure.host (sparc64-*-netbsd*): New host.
8845 * configure.tgt (sparc-*-netbsdelf*)
8846 (sparc-*-netbsd*): Set gdb_target to nbsd.
8847 (sparc64-*-netbsd*): New target.
8848 * sparc64nbsd-nat.c: New file.
8849 * sparcnbsd-nat.c: New file.
8850 * sparcnbsd-tdep.c: New file.
8851 * sparcnbsd-tdep.h: New file.
8852 * config/sparc/nbsd.mt: New file.
8853 * config/sparc/nbsd64.mh: New file.
8854 * config/sparc/nbsd64.mt: New file.
8855 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8856 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8858 * config/sparc/nbsdaout.mt: Remove.
8859 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8860 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8862 * config/sparc/nbsdelf.mt: Remove.
8863 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8864 sparc-nat.c compatiblity defines.
8865 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8866 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8867 * config/sparc/tm-nbsd64.h: New file.
8868 * config/sparc/tm-nbsdaout.h: Remove.
8869 * config/sparc/xm-nbsd.h: Remove.
8871 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8873 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8874 * sparc-tdep.c: Include osabi.h.
8875 (gdbarch_tdep): Add osabi member.
8876 (_initialize_sparc_tdep): Use gdbarch_register.
8877 (sparc_gdbarch_init): Use generic OS ABI framework.
8878 (sparc_dump_tdep): New function.
8880 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8882 * corefile.c (do_captured_read_memory_integer): Return non-zero
8884 (safe_read_memory_integer): Copy result of memory read when
8885 status is non-zero. Also, add comments.
8887 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8889 * Makefile.in (ppc_tdep_h): Define.
8892 (rs6000-tdep.o): Use $(ppc_tdep_h).
8895 (ppcnbsd-tdep.o): New dependency lists.
8896 * ppc-tdep.h: Use generic OS ABI framework.
8897 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8898 (ppc_linux_init_abi): New functions.
8899 (ppc_sysv_abi_broken_use_struct_convention)
8900 (ppc_sysv_abi_use_struct_convention)
8901 (ppc_sysv_abi_push_arguments): Move to...
8902 * ppc-sysv-tdep.c: ...here.
8903 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8904 * rs6000-tdep.c (process_note_abi_tag_sections)
8905 (get_elfosabi): Remove.
8906 (rs6000_gdbarch_init): Use generic OS ABI framework.
8907 (rs6000_dump_tdep): New function.
8908 (_initialize_rs6000_tdep): Use gdbarch_register.
8909 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8910 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8911 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8912 of ppc-linux-tdep.o.
8913 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8914 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8915 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8916 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8917 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8918 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8920 2002-05-29 Jim Blandy <jimb@redhat.com>
8922 * macroscope.c (default_macro_scope): Put `void' in empty argument
8925 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8927 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8928 * arch-utils.c: Include "sim-regno.h".
8929 * gdbarch.sh: Don't include "sim-regno.h".
8930 * gdbarch.h, gdbarch.c: Regenerate.
8931 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8933 * arch-utils.h (legacy_register_sim_regno): To here.
8934 * remote-sim.c (legacy_register_sim_regno): Move function from
8936 * arch-utils.c (legacy_register_sim_regno): To here.
8938 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8940 * sim-regno.h: New file.
8941 * Makefile.in (sim_regno_h): Define.
8942 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8943 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8944 (legacy_register_sim_regno): New function.
8945 (one2one_register_sim_regno): New function.
8946 (gdbsim_fetch_register): Rewrite.
8947 (gdbsim_store_register): Only store a register when
8948 REGISTER_SIM_REGNO is valid.
8949 * d10v-tdep.c: Include "sim-regno.h".
8950 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8951 (d10v_ts3_register_sim_regno): Ditto.
8952 * gdbarch.sh: Include "sim-regno.h".
8953 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8954 * gdbarch.h, gdbarch.c: Regenerate.
8955 * arch-utils.h (default_register_sim_regno): Delete declaration.
8956 * arch-utils.c (default_register_sim_regno): Delete function.
8958 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8960 * ppcnbsd-nat.c: Rewrite.
8961 * ppcnbsd-tdep.c: New file.
8962 * ppcnbsd-tdep.h: New file.
8963 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8964 solib.o, and solib-svr4.o.
8965 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8966 nbsd-tdep.o, and corelow.o.
8968 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8970 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8971 `tr' and `sed'. Mention that `broken' targets are not expected to
8974 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8976 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8977 Let PC point right after the prologue before looking up symbols.
8979 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8981 * i386-tdep.c (i386_register_virtual_type): Return
8982 builtin_type_vec128i for SSE registers.
8984 * gdbtypes.h (builtin_type_vec128i): Declare.
8986 * gdbtypes.c (build_builtin_type_vec128i): New function.
8987 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8988 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8989 (build_gdbtypes): Initialize new builtin vector types.
8990 (_initialize_gdbtypes): Register new vector types with gdbarch.
8992 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8994 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8995 since it has been multi-arch'd.
8996 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8997 Move Alpha and VAX multi-arch news entries to same section
8998 as other multi-arch news.
9000 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9002 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9003 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9004 static. Rename some register numbers to put them in ns32k-tdep
9006 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9007 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9009 (_initialize_ns32k_tdep): Use gdbarch_register.
9010 * ns32k-tdep.h: New file.
9011 * ns32knbsd-tdep.c: New file.
9012 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9013 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9014 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9015 REGISTER_BYTES, REGISTER_BYTE): Remove.
9016 * config/ns32k/tm-ns32k.h: New file.
9017 * config/ns32k/tm-umax.h: Remove.
9019 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9021 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9022 ns32k_store_struct_return, ns32k_extract_return_value,
9023 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9025 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9026 ns32k_saved_pc_after_call.
9027 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9028 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9029 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9030 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9031 ns32k_extract_struct_value_address.
9033 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9035 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9036 ns32k_fix_call_dummy): New.
9037 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9038 ns32k_call_dummy_words.
9039 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9040 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9041 CALL_DUMMY_NARGS): Remove.
9042 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9044 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9046 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9047 ns32k_frame_saved_pc, ns32k_frame_args_address,
9048 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9049 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9050 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9051 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9052 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9053 (BREAKPOINT): Remove..
9054 (FRAME_CHAIN): Define as ns32k_frame_chain.
9055 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9056 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9057 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9058 (FRAME_FIND_SAVED_REGS): Remove.
9059 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9060 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9061 (POP_FRAME): Define as ns32k_pop_frame.
9063 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9065 * ns32k-tdep.c (ns32k_register_byte_32082,
9066 ns32k_register_byte_32382, ns32k_register_raw_size,
9067 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9069 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9070 ns32k_register_byte_32382.
9071 * config/ns32k/tm-umax.h: Update copyright years.
9072 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9073 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9074 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9075 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9076 (ns32k_get_enter_addr): Fix prototype.
9078 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9080 * ns32k-tdep.c: Update copyright years.
9081 (ns32k_register_name_32082): New function.
9082 (ns32k_register_name_32382): Ditto.
9083 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9084 (REGISTER_NAME): Define as ns32k_register_name_32382.
9085 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9086 (REGISTER_NAME): Define as ns32k_register_name_32082.
9088 2002-05-24 Jim Blandy <jimb@redhat.com>
9090 * dwarf2read.c (free_line_header): Use xfree, not free.
9092 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9094 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9095 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9097 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9099 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9101 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9103 From Ross Alexander at NEC Europe:
9104 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9106 2002-05-23 Michael Snyder <msnyder@redhat.com>
9108 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9109 for input, rather than parse_and_eval_address.
9111 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9113 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9114 * Makefile.in (sim_d10v_h): Update definition.
9116 2002-05-24 Andrew Cagney <cagney@redhat.com>
9118 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9119 change `2002-05-22 Michael Snyder' below.
9120 (d10v_push_arguments): Ditto.
9121 (d10v_extract_return_value): Ditto.
9123 2002-05-23 Jim Blandy <jimb@redhat.com>
9125 * macrotab.c (check_for_redefinition): Don't complain if the new
9126 definition is the same as the previous one. Take more arguments
9127 to allow the comparison.
9128 (macro_define_object, macro_define_function): Pass more arguments
9129 to check_for_redefinition.
9131 2002-05-22 Michael Snyder <msnyder@redhat.com>
9133 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9134 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9135 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9136 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9137 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9138 Add a temp variable to save a call (and a memory read).
9139 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9140 if possible (so that PC_IN_CALL_DUMMY will work).
9142 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9144 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9146 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9148 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9150 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9151 (dwarf2_build_frame_info): Add offset to fde->initial_location
9152 so that frames of shared libraries are mapped correctly.
9153 (execute_stack_op): Change type of 'result' from ULONGEST to
9156 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9158 * config/alpha/tm-nbsd.h: Include solib.h.
9160 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9162 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9163 assumptions about the host's byte order.
9165 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9167 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9169 * alphanbsd-tdep.c: Include solib-svr4.h.
9170 * shnbsd-tdep.c: Ditto.
9172 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9174 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9175 nbsd-tdep.h to dependency list.
9176 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9177 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9178 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9179 nbsdaout.mh and nbsdelf.mh consistently.
9180 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9181 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9182 nbsdaout.mt and nbsdelf.mh consistently.
9183 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9184 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9185 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9186 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9187 a.out shared library stuff from here...
9188 * config/nm-nbsdaout.h: ...to here.
9189 * config/tm-nbsd.h: Remove.
9190 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9191 * config/arm/nbsd.mh: Remove.
9192 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9194 * config/arm/nbsdaout.mh: New file.
9195 * config/arm/nbsdelf.mh: New file.
9196 * config/arm/nm-nbsdaout.h: New file.
9197 * config/i386/nbsd.mh: Remove.
9198 * config/i386/nbsd.mt: Remove.
9199 * config/i386/nbsdaout.mh: New file.
9200 * config/i386/nbsdaout.mt: New file.
9201 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9202 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9203 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9204 i386_register_u_addr): Remove.
9205 * config/i386/nm-nbsdaout.h: New file.
9206 * config/i386/nm-nbsdelf.h: Remove.
9207 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9208 (USE_STRUCT_CONVENTION): Remove.
9209 * config/i386/tm-nbsdaout.h: New file.
9210 * config/i386/tm-nbsdelf.h: Remove.
9211 * config/m68k/nbsd.mh: Remove.
9212 * config/m68k/nbsd.mt: Remove.
9213 * config/m68k/nbsdaout.mh: New file.
9214 * config/m68k/nbsdaout.mt: New file.
9215 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9216 * config/m68k/nm-nbsdaout.h: New file.
9217 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9218 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9219 * config/ns32k/nbsd.mh: Remove.
9220 * config/ns32k/nbsd.mt: Remove.
9221 * config/ns32k/nbsdaout.mh: New file.
9222 * config/ns32k/nbsdaout.mt: New file.
9223 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9224 * config/ns32k/nm-nbsdaout.h: New file.
9225 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9226 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9227 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9228 (SVR4_SHARED_LIBS): Remove.
9229 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9230 * config/sparc/nbsd.mh: Remove.
9231 * config/sparc/nbsd.mt: Remove.
9232 * config/sparc/nbsdaout.mh: New file.
9233 * config/sparc/nbsdaout.mt: New file.
9234 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9235 * config/sparc/nbsdelf.mt: New file.
9236 * config/sparc/nm-nbsdaout.h: New file.
9237 * config/sparc/nm-nbsdelf.h: Remove.
9238 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9239 * config/sparc/tm-nbsdaout.h: New file.
9241 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9243 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9245 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9247 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9249 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9251 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9253 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9255 * NEWS: Note new MIPS NetBSD native configuration.
9256 * configure.host (mips*-*-netbsd*): New host.
9257 * configure.tgt (mips*-*-netbsd*): New target.
9258 * mipsnbsd-nat.c: New file.
9259 * mipsnbsd-tdep.c: New file.
9260 * mipsnbsd-tdep.h: New file.
9261 * config/mips/nbsd.mh: New file.
9262 * config/mips/nbsd.mt: New file.
9263 * config/mips/nm-nbsd.h: New file.
9264 * config/mips/tm-nbsd.h: New file.
9266 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9268 * Makefile.in (SFILES): Add osabi.c.
9269 (COMMON_OBS): Add osabi.o.
9270 (osabi.o): New dependency list.
9271 * osabi.c: New file.
9272 * osabi.h: New file.
9273 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9275 * Makefile.in (alpha_tdep_h): Define and use instead of
9277 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9278 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9280 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9281 * alpha-tdep.h: Include osabi.h.
9282 (alpha_abi): Remove.
9283 (gdbarch_tdep): Use generic OS ABI framework.
9284 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9285 gdbarch_register_osabi.
9286 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9287 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9288 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9290 * Makefile.in (sh_tdep_h): Add osabi.h.
9291 * sh-tdep.h (sh_osabi): Remove.
9292 (gdbarch_tdep): Use generic OS ABI framework.
9293 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9294 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9295 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9296 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9298 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9299 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9300 gdbarch_register_osabi.
9301 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9302 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9303 (get_elfosabi): Rename to...
9304 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9305 ABI framework support routines.
9306 (arm_gdbarch_init): Use generic OS ABI framework.
9307 (arm_dump_tdep): Likewise.
9308 (_initialize_arm_tdep): Likewise.
9309 * arm-tdep.h: Include osabi.h.
9311 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9313 (arm_gdbarch_register_os_abi): Remove prototype.
9314 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9315 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9317 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9318 * mips-tdep.c: Include osabi.h.
9319 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9322 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9324 * h8300-tdep.c: Fix formatting.
9326 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9328 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9329 printing vector registers.
9331 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9333 From Fernando Nasser:
9334 * remote.c (remote_async_open_1): Re-throw the exception when the
9336 (remote_cisco_open): Ditto.
9337 (remote_open_1): Ditto.
9339 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9341 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9342 (remote_start_remote): Add uiout parameter. Pass through to
9343 remote_start_remote_dummy.
9344 (remote_open_1): Use catch_exception instead of catch_errors.
9345 (remote_async_open_1): Ditto.
9346 (remote_cisco_open): Ditto.
9348 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9350 * remote.c (remote_start_remote): Replace PTR with void pointer.
9351 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9354 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9356 * gdb_indent.sh: Allow the script to be run in the sim directory.
9358 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9360 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9361 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9363 * corelow.c (core_open): Only call set_gdbarch_from_file if
9366 2002-05-17 Andrey Volkov <avolkov@transas.com>
9368 * h8300-tdep.c: Add support of EXR register
9369 * config/h8300/tm-h8300.h: Ditto.
9371 2002-05-17 Andrey Volkov <avolkov@transas.com>
9373 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9375 2002-05-17 Andrey Volkov <avolkov@transas.com>
9377 * h8300-tdep.c: Change literal regnums to REGNO.
9379 2002-05-17 Jim Blandy <jimb@redhat.com>
9381 * NEWS: Note addition of macro support.
9383 Expand preprocessor macros in C expressions.
9384 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9385 (scan_macro_expansion, scanning_macro_expansion,
9386 finished_macro_expansion): New function declarations.
9387 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9388 variable declarations.
9389 * parser-defs.h (expression_context_pc): New declaration.
9390 * parse.c (expression_context_pc): New variable.
9391 (parse_exp_1): Set expression_context_pc, as well as
9392 expression_context_block.
9393 * c-exp.y (yylex): If we're not already reading the result of a
9394 macro expansion, try to macro-expand the next token. When we're
9395 done scanning a macro expansion, switch back to the mainline text.
9396 Commas and `if's in a macro's expansion don't terminate the input.
9397 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9398 (macro_original_text, macro_expanded_text,
9399 expression_macro_lookup_func, expression_macro_lookup_baton): New
9401 (scan_macro_expansion, scanning_macro_expansion,
9402 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9403 c_preprocess_and_parse): New functions.
9404 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9405 c_preprocess_and_parse, instead of c_parse.
9406 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9407 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9409 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9411 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9412 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9413 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9415 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9417 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9419 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9421 * Makefile.in (sh_tdep_h): Define and use.
9422 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9423 register enum): Move to...
9424 * * sh-tdep.h: ...here.
9425 * sh-tdep.c: Include sh-tdep.h.
9426 * sh3-rom.c: Likewise.
9427 * shnbsd-tdep.c: Likewise.
9429 2002-05-16 Michael Snyder <msnyder@redhat.com>
9431 * arm-tdep.c: Spelling fix in comment.
9433 2002-05-16 Jim Blandy <jimb@redhat.com>
9435 Add commands for manually expanding macros and showing their
9437 * macrocmd.c, macroscope.c, macroscope.h: New files.
9438 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9439 (macroscope_h): New variable.
9440 (HFILES_NO_SRCDIR): Add macroscope.h.
9441 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9442 (macroscope.o, macrocmd.o): New rules.
9444 Teach the Dwarf 2 reader to read macro information.
9445 * dwarf2read.c: #include "macrotab.h".
9446 (dwarf_macinfo_buffer): New variable.
9447 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9449 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9450 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9451 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9452 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9453 dwarf2_macro_spaces_in_definition): New complaints.
9454 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9455 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9456 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9457 the partial symbol table.
9458 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9459 from what's recorded in the partial symbol table.
9460 (read_file_scope): If the compilation unit has a
9461 `DW_AT_macro_info' attribute, read its macro information.
9462 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9464 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9467 * ser-tcp.c: Don't include <netinet/udp.h>.
9469 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9471 * MAINTAINERS: Update my email address.
9473 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9475 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9476 include file of the same name.
9478 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9480 * configure.tgt: Mark v850 as multi-arched.
9481 * config/v850/tm-v850.h: Remove file.
9482 * config/v850/v850.mt: Eliminate TM_FILE.
9484 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9486 * v850-tdep.c: Full multi-arch.
9487 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9488 Define GDB_MULTI_ARCH to 2.
9490 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9492 * p-exp.y (current_type): New static variable.
9493 Carries the type of the expression at the position that is parsed.
9494 (push_current_type, pop_current_type): Two new functions. Used
9495 to store/restore current_type in expression on specific tokens.
9496 (search_field): New static variable. Set to one after parsing a point
9497 as at that point only a FIELDNAME token should be searched.
9498 (FIELDNAME): New token. After a point only a token belonging to
9499 current_type type definition is allowed.
9500 (all over token rules): reset and change current_type according
9502 (exp '[' rule): insert implicit array index field if
9503 exp is a pascal string type.
9505 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9507 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9508 frame info. Use frame_info's saved_regs instead of matching member
9509 in extra_frame_info throughout.
9510 (v850_frame_init_saved_regs): New function.
9511 (v850_init_extra_frame_info): Move most functionality into
9512 v850_frame_init_saved_regs().
9513 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9514 (v850_frame_find_saved_regs): Remove declaration.
9515 (FRAME_FIND_SAVED_REGS): Remove definition.
9516 (v850_frame_init_saved_regs): Add declaration.
9517 (FRAME_INIT_SAVED_REGS): Add definition.
9519 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9521 * v850-tdep.c: Begin multi-arch'ing v850.
9522 (v850_target_architecture_hook): Remove function.
9523 (v850_gdbarch_init): New function. Add code previously in
9524 v850_target_architecture_hook().
9525 (_initialize_v850_tdep): Don't set target_architecture_hook.
9526 Call register_gdbarch_init() instead.
9528 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9530 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9531 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9532 (fixup_class_method_type): Likewise.
9534 2002-05-15 Jim Blandy <jimb@redhat.com>
9536 Add macro structures to GDB's symbol tables. Nobody puts anything
9538 * symtab.h (struct symtab): New member: `macro_table'.
9539 * buildsym.h (pending_macros): New global variable.
9540 * buildsym.c: #include "macrotab.h".
9541 (buildsym_init): Initialize `pending_macros'.
9542 (end_symtab): If we found macro information while reading a CU's
9543 debugging info, do build a symtab structure for it. Make the
9544 symtab point to the macro information, and clear the
9545 `pending_macros' pointer which held it while we were reading the
9547 (really_free_pendings): Free any pending macro table.
9548 * objfiles.h (struct objfile): New member: `macro_cache'.
9549 * objfiles.c (allocate_objfile): Set allocate and free functions
9550 for the macro cache's objstack.
9551 (free_objfile): Empty the macro cache's obstack.
9552 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9553 set new allocate and free functions for it.
9554 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9555 free functions for the macro cache's objstack. (Why is this
9556 function building its own objfile?)
9557 * symmisc.c (print_objfile_statistics): Print statistics on the
9559 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9561 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9563 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9564 (REGISTER_U_ADDR): Delete definition.
9565 (arm_register_u_addr): Delete declaration.
9567 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9569 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9570 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9572 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9574 * regcache.c (register_valid): Revise comments refering to "Not
9575 available" and "unavailable".
9576 * frame.c (frame_register_read): Ditto.
9577 * findvar.c (value_of_register): Ditto.
9579 2002-05-15 Andrew Cagney <cagney@redhat.com>
9581 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9582 (remote-sim.o): Update dependencies.
9583 (d10v-tdep.o): Specify dependencies.
9584 (sim_d10v_h): Define.
9586 2002-05-14 Jim Blandy <jimb@redhat.com>
9588 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9589 * macrotab.c (macro_lookup_inclusion, find_definition,
9590 new_macro_table): Same.
9592 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9593 not `! strcmp ()'. This is a dubious improvement.
9594 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9596 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9597 although it's not necessary, to avoid a warning.
9599 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9601 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9602 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9603 TYPE_INSTANCE_FLAGS.
9604 (struct main_type): New.
9605 (struct type): Move most members to struct main_type. Change
9606 cv_type and as_type to new type_chain member. Add instance_flags.
9607 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9608 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9609 (finish_cv_type): Remove prototype.
9610 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9612 (alloc_type_instance): New function.
9613 (smash_type): New function.
9614 (make_pointer_type, make_reference_type, make_function_type)
9615 (smash_to_member_type, smash_to_method_type): Call smash_type.
9616 (make_qualified_type): New function.
9617 (make_type_with_address_space): Call make_qualified_type.
9618 (make_cv_type): Likewise.
9619 (finish_cv_type): Remove unnecessary function.
9620 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9621 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9622 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9623 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9624 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9625 * hpread.c (hpread_read_struct_type): Likewise.
9626 * stabsread.c (read_struct_type): Likewise.
9628 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9630 * configure.tgt: Add a catch all sh* target, for cases like
9631 sh[2,3,4]-elf and sh-hms.
9633 2002-05-14 Keith Seitz <keiths@redhat.com>
9635 * event-loop.c (create_file_handler): Don't do anything but
9636 update data when we are given a fd which we are already
9639 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9641 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9642 (update_context): Use __func__ in warnings.
9644 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9646 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9647 and tcp_close to net_open and net_close.
9648 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9649 using UDP if requested. Don't try to disable Nagle on UDP
9651 * remote.c (remote_serial_open): New function. Warn about UDP.
9652 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9654 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9656 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9658 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9660 * configure.tgt: Remove sh-hms target.
9661 * MAINTAINERS: Don't list sh-hms as a separate target.
9663 2002-05-13 Jim Blandy <jimb@redhat.com>
9665 Add first preprocessor macro-expansion files.
9666 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9667 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9668 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9669 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9670 (COMMON_OBS): Add macrotab.o, macroexp.o.
9671 (macroexp.o, macrotab.o): New rules.
9673 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9675 * config/m88k/tm-m88k.h: Update copyright.
9676 (m88k_target_write_pc): Declare
9677 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9678 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9679 (SHIFT_INST_REGS): Update definition.
9680 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9681 using old definition of TARGET_WRITE_PC.
9682 * regcache.c (generic_target_write_pc): Delete code handling
9684 * gdbarch.sh (NNPC_REGNUM): Delete.
9685 * gdbarch.h, gdbarch.c: Regenerate.
9687 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9689 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9692 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9694 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9695 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9696 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9698 * c-typeprint.c (cp_type_print_method_args): Likewise.
9699 (c_type_print_args): Likewise.
9700 * d10v-tdep.c (d10v_push_arguments): Likewise.
9701 (d10v_extract_return_value): Likewise.
9702 * expprint.c (print_subexp): Likewise.
9703 * gdbtypes.c (lookup_primitive_typename): Likewise.
9704 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9705 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9706 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9707 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9708 (TYPE_VECTOR): Likewise.
9709 * hpread.c (hpread_read_struct_type)
9710 (fix_static_member_physnames, fixup_class_method_type)
9711 (hpread_type_lookup): Likewise.
9712 * mdebugread.c (parse_symbol, parse_type): Likewise.
9713 * p-lang.c (is_pascal_string_type): Likewise.
9714 * valops.c (hand_function_call): Likewise.
9715 * x86-64-tdep.c (classify_argument): Likewise.
9717 * hpread.c (hpread_read_function_type)
9718 (hpread_read_doc_function_type): Call replace_type.
9719 * dstread.c (create_new_type): Delete.
9720 (decode_dst_structure, process_dst_function): Call alloc_type.
9721 Use type access macros.
9723 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9725 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9726 the're not supported by the current architecture.
9727 (i387_fill_fxsave): Likewise.
9729 2002-05-12 Fred Fish <fnf@redhat.com>
9731 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9732 sect_index_xxx members to index the first slot in section_offsets
9733 if all of the section_offsets are zero.
9735 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9737 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9738 checked in with last change.
9740 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9742 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9743 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9746 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9748 * Makefile.in: Update dependencies.
9750 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9752 * language.c (local_hex_string_custom): Simplify. Do not depend
9753 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9755 * memattr.c (mem_info_command): Replace calls to
9756 longest_local_hex_string and longest_local_hex_string_custom.
9757 * buildsym.c (make_blockvector): Ditto.
9758 * solib.c (info_sharedlibrary_command): Ditto.
9759 * tracepoint.c (tracepoints_info): Ditto.
9760 * symtab.c (print_msymbol_info): Ditto.
9762 * language.c (local_hex_string): Delete.
9763 (local_hex_string_custom): Delete.
9764 (longest_local_hex_string): Rename to local_hex_string.
9765 (longest_local_hex_string_custom): Rename to
9766 local_hex_string_custom.
9767 * language.h (local_hex_string): Change parameter type to LONGEST.
9768 (local_hex_string_custom): Ditto.
9769 (longest_local_hex_string): Delete declaration.
9770 (longest_local_hex_string_custom): Ditto.
9772 * solib.c: Update copyright.
9773 * memattr.c: Update copyright.
9775 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9777 * arch-utils.h (legacy_register_to_value): Declare.
9778 (legacy_value_to_register): Declare.
9779 (legacy_convert_register_p): Declare.
9780 * arch-utils.c (legacy_register_to_value): New function.
9781 (legacy_value_to_register): New function.
9782 (legacy_convert_register_p): New function.
9784 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9785 (VALUE_TO_REGISTER): Define.
9786 (CONVERT_REGISTER_P): Define.
9787 * gdbarch.h, gdbarch.c: Regenerate.
9789 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9791 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9794 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9795 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9797 * Makefile.in: Update dependencies for valops.c.
9798 * valops.c: Include "gdb_assert.h".
9799 (typecmp): Skip THIS parameter to methods.
9800 (find_method_list): Remove static_memfuncp argument,
9801 update callers. Check for stub methods.
9802 (find_value_oload_method_list): Don't set *static_memfuncp.
9803 (find_overload_match): Don't check for stub methods. Assert
9804 that methods are not stubbed. Handle static methods.
9805 (value_find_oload_method_list): Remove static_memfuncp argument.
9806 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9807 to the argument list for static stub methods.
9808 * value.h (value_find_oload_method_list): Update prototype.
9810 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9812 * arch-utils.h (generic_register_size): Declare.
9813 (generic_register_raw_size, generic_register_virtual_size): Delete
9815 * arch-utils.c (generic_register_raw_size): Delete.
9816 (generic_register_size): New function.
9817 (generic_register_virtual_size): Delete.
9819 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9820 default generic_register_size.
9821 * gdbarch.h, gdbarch.c: Re-generate.
9823 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9824 register_virtual_size.
9825 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9828 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9830 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9831 * gdbarch.h, gdbarch.c: Regenerate.
9832 * gnu-v3-abi.c: Update copyright.
9833 (vtable_address_point_offset): Update.
9834 (gnuv3_rtti_type): Update.
9835 (gnuv3_baseclass_offset): Update.
9836 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9837 (init_fetch_link_map_offsets): Update.
9838 * remote.c (get_remote_state): Update.
9840 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9842 * TODO: Remove value_headof/value_from_vtable_info comment.
9843 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9844 * values.c (value_headof, value_from_vtable_info): Delete.
9845 * value.h (value_from_vtable_info): Delete prototype.
9847 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9849 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9850 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9852 (gdb_assert_h): Define.
9853 (gdb_wait_h): Define.
9854 (gdb_regex_h): Define.
9856 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9859 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9861 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9863 * nbsd-tdep.c: Fix comment.
9865 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9867 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9868 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9869 (nbsd-tdep.o): New dependency list.
9870 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9872 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9873 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9874 * nbsd-tdep.c: New file.
9875 * nbsd-tdep.h: New file.
9876 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9878 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9879 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9880 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9881 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9883 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9885 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9886 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9887 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9888 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9889 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9890 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9892 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9894 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9895 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9896 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9897 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9898 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9899 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9900 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9902 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9904 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9905 fetch_elfcore_registers to...
9906 * i386nbsd-tdep.c: ...here.
9907 (i386nbsd_use_struct_convention): Rename to...
9908 (i386nbsd_aout_use_struct_convention): ...this.
9909 (i386nbsd_supply_reg): New function.
9910 (i386nbsd_fill_reg): New function.
9911 (fetch_core_registers): Use i386nbsd_supply_reg.
9912 (fetch_elfcore_registers): Likewise.
9913 (_initialize_i386nbsd_tdep): New function.
9914 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9915 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9916 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9917 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9918 (i386nbsd_aout_use_struct_convention): ...this.
9920 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9922 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9923 (store_inferior_registers): Use shnbsd_fill_reg.
9924 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9925 sh_nbsd_supply_register): Collapse into...
9926 (shnbsd_supply_reg): ...this.
9927 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9928 (shnbsd_fill_reg): ...this.
9929 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9930 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9931 (fetch_core_registers): Use shnbsd_supply_reg.
9932 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9933 (sh_nbsd_core_fns): Rename to...
9934 (shnbsd_core_fns): ...this.
9935 (sh_nbsd_elfcore_fns): Rename to...
9936 (shnbsd_elfcore_fns): ...this.
9937 (sh_nbsd_init_abi): Rename to...
9938 (shnbsd_init_abi): ...this.
9939 (_initialize_sh_nbsd_tdep): Rename to...
9940 (_initialize_shnbsd_tdep): ...this.
9941 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9942 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9943 sh_nbsd_fill_register): Remove prototypes.
9944 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9946 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9948 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9949 (i387-nat.o): Delete dependency list.
9950 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9951 (x86-64-linux-nat.o): Likewise.
9952 * i387-nat.c: Delete file, moving contents to...
9953 * i387-tdep.c: ...here.
9954 * i387-nat.h: Rename...
9955 * i387-tdep.h: ...to this.
9956 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9957 * i386-linux-nat.c: Likewise.
9958 * i386bsd-nat.c: Likewise.
9959 * i386gnu-nat.c: Likewise.
9960 * i386nbsd-nat.c: Likewise.
9961 * i386v4-nat.c: Likewise.
9962 * x86-64-linux-nat.c: Likewise.
9963 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9964 * config/i386/go32.mh (NATDEPFILES): Likewise.
9965 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9966 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9967 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9968 * config/i386/linux.mh (NATDEPFILES): Likewise.
9969 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9970 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9971 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9972 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9974 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9976 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9977 (alphanbsd-nat.o): Remove dependency list.
9978 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9979 * alphanbsd-nat.c: Delete. Contents moved to...
9980 * alphanbsd-tdep.c: ...here.
9981 (_initialize_alphanbsd_tdep): Register core functions.
9982 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9984 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9986 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9987 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9988 (alphanbsd-nat.o): Likewise.
9989 (alphabsd-tdep.o): New dependency list.
9990 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9991 (fill_gregset): Use alphabsd_fill_reg.
9992 (supply_fpregset): Use alphabsd_supply_fpreg.
9993 (fill_fpregset): Use alphabsd_fill_fpreg.
9994 (fetch_inferior_registers): Use struct reg and struct fpreg
9995 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9996 and alphabsd_supply_fpreg.
9997 (store_inferior_registers): Use struct reg and struct fpreg
9998 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9999 and alphabsd_fill_fpreg.
10000 * alphabsd-tdep.c: New file.
10001 * alphabsd-tdep.h: New file.
10002 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10003 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10004 alphabsd_supply_fpreg.
10005 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10006 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10008 2002-05-11 Eric Christopher <echristo@redhat.com>
10010 * mips-tdep.c (mips_double_register_type): Fix thinko.
10011 (mips_single_register_type): Ditto.
10012 * MAINTAINERS: Add self.
10014 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10016 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10017 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10018 right thing on architectures with different endianness and/or
10021 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10023 From Christian Limpach <chris@Pin.LU>
10024 * configure.in: Change sed expression which comments out
10025 NATDEPFILES to also comment out continuation lines.
10026 * configure: Regenerate.
10028 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10030 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10033 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10035 * sh-tdep.c: Include correct file.
10037 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10039 New support for sh64-elf (sh5) target.
10041 * configure.tgt: For sh64-elf target, default to sh-elf.
10043 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10044 (struct gdbarch_tdep): Add new fields for new registers and ABI
10047 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10048 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10049 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10050 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10051 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10052 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10053 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10054 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10055 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10056 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10057 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10058 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10059 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10060 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10061 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10062 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10063 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10064 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10065 sign_extend, sh64_nofp_frame_init_saved_regs,
10066 sh64_init_extra_frame_info, sh64_get_saved_register,
10067 sh64_extract_struct_value_address, sh64_pop_frame,
10068 sh64_push_arguments, sh64_extract_return_value,
10069 sh64_store_return_value, sh64_show_media_regs,
10070 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10071 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10072 sh_sh64_register_virtual_type,
10073 sh_sh64_register_convert_to_virtual,
10074 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10075 sh64_register_read, sh64_pseudo_register_write,
10076 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10077 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10078 sh64_do_pseudo_register, sh_compact_do_registers_info,
10079 sh64_do_registers_info, sh_gdbarch_init): New functions.
10081 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10083 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10085 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10087 * linespec.c (decode_line_1): Check for a double quote after
10088 a filename correctly.
10090 2002-05-10 Jim Blandy <jimb@redhat.com>
10092 Properly track the size of the current objfile's .debug_line section.
10093 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10094 (DWARF_LINE_SIZE): New macro.
10095 (dwarf2_build_psymtabs_hard): Record the line section's size in
10096 the partial symbol table.
10097 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10100 2002-05-10 Petr Sorfa <petrs@caldera.com>
10102 * ia64-tdep.c: Handle breakpoints on L instruction type
10103 in MLX instruction bundle by moving the breakpoint to
10104 the third slot (X instruction type) as L holds only data.
10106 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10108 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10109 (process_one_symbol): Complain about discarding local symbols
10110 due to a misplaced N_LBRAC entry.
10112 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10114 From Daniel Berlin <dan@cgsoftware.com>
10115 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10116 decrease the depth we are at, in the case of templates.
10118 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10120 * mips-tdep.c (mips_float_register_type): New function.
10121 (mips_double_register_type): New function.
10122 (mips_print_register): Use them.
10123 (do_fp_register_row): Likewise.
10125 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10127 * signals/signals.c (signals): Remove conditional compilation around
10128 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10129 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10131 2002-05-09 Michael Snyder <msnyder@redhat.com>
10133 * remote-rdp.c (remote_rdp_can_run): Remove.
10135 2002-05-09 Tom Tromey <tromey@redhat.com>
10137 * jv-valprint.c (java_val_print): Handle `char' as a special case
10140 2002-05-09 Michael Snyder <msnyder@redhat.com>
10142 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10143 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10144 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10145 str r(0123),[sp,#nn].
10146 (arm_skip_prologue): Ditto. Also make disassembly
10147 order-independent by placing it in a loop.
10149 2002-05-06 Michael Snyder <msnyder@redhat.com>
10151 * stabsread.c (read_type): Add recognition for new attribute:
10152 "@V;" means that an array type is actually a vector.
10153 This is analogous to the vector flag that's been added to dwarf2.
10155 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10157 * i386-tdep.h (i386_abi): New enum.
10158 (struct gdbarch_tdep): Replace os_ident member with abi.
10159 (i386_gdbarch_register_os_abi): New prototype.
10160 * i386-tdep.c (i386_abi_names): New array.
10161 (process_note_abi_tag_sections): Removed.
10162 (process_note_sections): New function.
10163 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10164 (struct i386_abi_handler): New struct.
10165 (i386_abi_handler_list): New variable.
10166 (i386_gdbarch_register_os_abi): New function.
10167 (i386_gdbarch_init): Adapt for the changes given above.
10169 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10171 * gregset.h: Say "GNU/Linux".
10173 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10175 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10176 (build_gdbtypes): Build builtin_type_v2_float.
10177 (_initialize_gdbtypes): Register new builtin type.
10179 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10181 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10182 (clear_gdbarch_swap): New function.
10183 (initialize_non_multiarch): Call.
10184 (gdbarch_update_p): Before calling init(), swap out and clear the
10185 existing architecture.
10186 * gdbarch.c: Regenerate.
10188 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10190 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10193 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10195 * sh-nbsd-nat.c: Rename to...
10196 * shnbsd-nat.c: ...this.
10197 * sh-nbsd-tdep.c: Rename to...
10198 * shnbsd-tdep.c: ...this.
10199 * sh-nbsd-tdep.h: Rename to...
10200 * shnbsd-tdep.h: ...this.
10201 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10202 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10204 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10206 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10207 concatenation for command help messages.
10209 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10211 * NEWS: Note new sh*-*-netbsdelf* configuration.
10212 * configure.host: Set gdb_host_cpu to sh for all sh*.
10213 (sh*-*-netbsdelf*): New host.
10214 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10215 (sh*-*-netbsdelf*): New target.
10216 * sh-nbsd-nat.c: New file.
10217 * sh-nbsd-tdep.c: New file.
10218 * sh-nbsd-tdep.h: New file.
10219 * config/sh/nbsd.mh: New file.
10220 * config/sh/nbsd.mt: New file.
10221 * config/sh/nm-nbsd.h: New file.
10222 * config/sh/tm-nbsd.h: New file.
10224 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10226 * sh-tdep.c (sh_osabi_names): Declare.
10227 (process_note_abi_tag_sections): New function.
10228 (get_elfosabi): Ditto.
10229 (sh_gdbarch_register_os_abi): Ditto.
10230 (sh_dump_tdep): Ditto.
10231 _initialize_sh_tdep): Use gdbarch_register to register
10232 sh_gdbarch_init and sh_dump_tdep.
10233 * config/sh/tm-sh.h (sh_osabi): Declare.
10234 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10236 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10238 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10239 (thumb_scan_prologue): Ditto.
10240 (arm_find_callers_reg): Ditto.
10241 (arm_frame_chain): Ditto.
10242 (arm_init_extra_frame_info): Ditto.
10243 (arm_frame_saved_pc): Ditto.
10244 (arm_pop_frame): Ditto.
10245 (arm_push_return_address): New function.
10246 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10247 call_dummy_location, call_dummy_breakpoint_offset_p,
10248 call_dummy_breakpoint_offset, call_dummy_p,
10249 call_dummy_stack_adjust_p, call_dummy_words,
10250 sizeof_call_dummy_words, call_dummy_start_offset,
10251 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10252 call_dummy_address, push_return_address and push_dummy_frame for
10253 generic dummy frames.
10255 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10258 size computation for alloca.
10259 (sh_fp_frame_init_saved_regs): Likewise.
10261 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10263 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10264 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10265 * arm-tdep.c (arm_store_return_value): Use them.
10266 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10267 * remote-rdp.c (remote_rdp_fetch_register): Use
10268 ARM_MAX_REGISTER_RAW_SIZE.
10269 (remote_rdp_store_register): Likewise.
10271 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10273 * dwarf2cfi.c: Code cleanup, removed unused variables,
10274 added default labels to switch {} statements.
10275 * x86-64-tdep.c: Ditto.
10276 * x86-64-linux-nat.c: Ditto.
10278 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10280 * solib.h: Protect against multiple inclusion.
10282 2002-05-06 Jim Blandy <jimb@redhat.com>
10284 Add first preprocessor macro-expansion files.
10285 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10286 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10287 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10288 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10289 (COMMON_OBS): Add macrotab.o, macroexp.o.
10290 (macroexp.o, macrotab.o): New rules.
10292 Separate the job of reading the line number info statement program
10293 header (...expialidocious) out into its own function.
10294 * dwarf2read.c (struct line_head, struct filenames, struct
10295 directories): Replace with...
10296 (struct line_header): New structure, containing the full
10297 contents of the statement program header, including the
10298 include directory and file name tables.
10299 (read_file_scope): If we have line number info, instead of just
10300 calling dwarf_decode_lines to do all the work, call
10301 dwarf_decode_line_header first to get a `struct line_header'
10302 containing the data in the statement program header, and then
10303 pass that to dwarf_decode_lines, which will pick up where that
10304 left off. Be sure to clean up the `struct line_header' object.
10305 (dwarf_decode_line_header, free_line_header, add_include_dir,
10306 add_file_name): New functions.
10307 (dwarf_decode_lines): Move all the code to read the statement
10308 program header into dwarf_decode_line_header. Take the line
10309 header it built as the first argument, instead of the offset to
10310 the compilation unit's line number info. Use the new `struct
10311 line_header' type instead of the old structures. No need to do
10312 cleanups here now, since we don't allocate anything.
10313 (dwarf2_statement_list_fits_in_line_number_section,
10314 dwarf2_line_header_too_long): New complaints.
10316 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10318 * gdbtypes.c (init_vector_type): New function.
10319 (build_builtin_type_vec128): Simplify the representation of SIMD
10321 (build_gdbtypes): Initialize new builtin vector types.
10322 (_initialize_gdbtypes): Register new vector types with gdbarch.
10323 (builtin_type_v4_float, builtin_type_v4_int32,
10324 builtin_type_v8_int16, builtin_type_v16_int8,
10325 builtin_type_v2_int32, builtin_type_v4_int16,
10326 builtin_type_v8_int8): New (renamed) SIMD types.
10328 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10330 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10331 (i387_fill_fxsave): Likewise.
10333 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10335 * alpha-tdep.c (alpha_extract_return_value): Don't use
10336 non-constant array size in prototype.
10338 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10340 From Brian Taylor <briant at model dot com>:
10341 * ui-out.c (ui_out_field_core_addr): Use the function
10342 longest_local_hex_string_custom'to format addresses > 32 bits
10345 * ui-out.c (ui_out_field_core_addr): Update comment.
10347 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10349 * stack.c (select_and_print_frame): Make static. Delete the
10351 (func_command): Update call.
10352 (select_frame_command): Delete code computing the frame level.
10353 * frame.h (select_and_print_frame): Delete declaration.
10355 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10357 * sparc-tdep.c (sparc_get_saved_register): Comment why
10358 get_prev_frame call is safe.
10360 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10362 * frame.h (select_frame): Delete level parameter.
10363 * stack.c (select_frame): Update. Use frame_relative_level to
10364 obtain the frame's level.
10365 (select_and_print_frame): Update call.
10366 (select_frame_command): Ditto.
10367 (up_silently_base): Ditto.
10368 (down_silently_base): Ditto.
10369 * ocd.c (ocd_start_remote): Ditto.
10370 * remote-rdp.c (remote_rdp_open): Ditto.
10371 * remote-mips.c (mips_initialize): Ditto.
10372 (common_open): Ditto.
10373 * remote-e7000.c (e7000_start_remote): Ditto.
10374 * m3-nat.c (select_thread): Ditto.
10375 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10376 (child_get_current_exception_event): Ditto.
10377 * varobj.c (varobj_create): Ditto.
10378 (varobj_update): Ditto.
10379 (c_value_of_root): Ditto.
10380 * tracepoint.c (finish_tfind_command): Ditto.
10381 * corelow.c (core_open): Ditto.
10382 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10383 * thread.c (info_threads_command): Ditto.
10384 (switch_to_thread): Ditto.
10385 * infrun.c (normal_stop): Ditto.
10386 (restore_selected_frame): Ditto.
10387 (restore_inferior_status): Ditto.
10388 * breakpoint.c (insert_breakpoints): Ditto.
10389 (watchpoint_check): Ditto.
10390 (bpstat_stop_status): Ditto.
10391 (do_enable_breakpoint): Ditto.
10392 * blockframe.c (flush_cached_frames): Ditto.
10393 (reinit_frame_cache): Ditto.
10395 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10397 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10400 2002-05-04 Jim Blandy <jimb@redhat.com>
10402 * gdbtypes.c (replace_type): Doc fix.
10404 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10406 * valprint.c (strcat_longest): Delete commented out function.
10409 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10411 * MAINTAINERS: Mark a29k as deleted.
10412 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10413 Move new configurations to the top.
10414 * configure.tgt: Remove a29k.
10415 * config/a29k/tm-vx29k.h: Delete.
10416 * config/a29k/vx29k.mt: Delete.
10417 * config/a29k/tm-a29k.h: Delete.
10418 * config/a29k/a29k-udi.mt: Delete.
10419 * config/a29k/a29k.mt: Delete.
10420 * a29k-tdep.c: Delete.
10421 * remote-udi.c: Delete.
10422 * remote-mm.c: Delete.
10423 * remote-eb.c: Delete.
10424 * remote-adapt.c: Delete.
10425 * Makefile.in: Remove obsolete code.
10426 * config/s390/s390x.mt: Ditto.
10427 * config/s390/s390.mt: Ditto.
10428 * config/sparc/sparclynx.mh: Ditto.
10429 * config/sparc/linux.mh: Ditto.
10430 * config/pa/hppaosf.mh: Ditto.
10431 * config/pa/hppabsd.mh: Ditto.
10432 * config/ns32k/nbsd.mt: Ditto.
10433 * config/mips/vr5000.mt: Ditto.
10434 * config/m68k/sun3os4.mh: Ditto.
10435 * config/m68k/nbsd.mt: Ditto.
10436 * config/m68k/m68klynx.mh: Ditto.
10437 * config/m32r/m32r.mt: Ditto.
10438 * config/i386/x86-64linux.mt: Ditto.
10439 * config/i386/nbsdelf.mt: Ditto.
10440 * config/i386/nbsd.mt: Ditto.
10441 * config/i386/i386lynx.mh: Ditto.
10443 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10445 * target.c (debug_print_register): New function. Handle oversize
10447 (debug_to_fetch_registers): Call.
10448 (debug_to_store_registers): Call.
10450 2002-05-03 Jim Blandy <jimb@redhat.com>
10452 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10453 (read_type): Doc fix.
10454 * gdbtypes.c (replace_type): Doc fix.
10456 * stabsread.c (multiply_defined_struct): New complaint.
10457 (read_struct_type): If the type we were passed isn't empty, or
10458 incomplete, don't read the new struct type into it; complain,
10459 and return the original type unchanged. Take a new `type_code'
10460 argument, which is the type code for the new type.
10461 (read_type): Rather than storing the type's type code here, pass
10462 it as an argument to read_struct_type, and let that take care of
10463 storing it. That way, we don't overwrite the original type code,
10464 so read_struct_type can use it to decide whether we're overwriting
10465 something we shouldn't.
10466 (complain_about_struct_wipeout): New function.
10468 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10470 * gdbarch.sh: Assert that gdbarch is non-NULL.
10471 * gdbarch.c: Regenerate.
10473 2002-05-03 Jason Merrill <jason@redhat.com>
10475 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10478 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10480 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10481 (x86_64_dwarf2gdb_regno_map_length),
10482 (x86_64_dwarf2_reg_to_regnum): Added.
10483 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10484 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10485 (_initialize_x86_64_tdep): Synced with the change above.
10486 (x86_64_skip_prologue): Reformulated message.
10488 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10490 * f-exp.y: Also use new prev_lexptr variable
10491 to improve error reporting. Based on Michael Snyder
10492 2002-04-24 dated patch to c-exp.y.
10493 * jv-exp.y: Likewise.
10494 * m2-exp.y: Likewise.
10496 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10498 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10499 we are dealing with vectors.
10501 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10503 * config/m68k/tm-nbsd.h: Obvious fix,
10504 correct machine name.
10506 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10508 * p-typeprint.c (pascal_type_print_base): Add support
10509 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10511 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10513 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10514 for fondamental pascal 'char' type.
10516 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10518 * p-lang.h (is_pascal_string_type): Declaration changed,
10519 new sixth argument of type char ** added.
10520 * p-lang.c (is_pascal_string_type): Implementation
10521 changed. Args length_pos, length_size, string_pos, char_size
10522 can now be NULL. New argument arrayname set to the field
10523 name of the char array. Return value set to char array
10524 field index plus one.
10525 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10526 is_pascal_string_type function.
10528 2002-05-02 Andrew Cagney <cagney@redhat.com>
10530 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10531 <cagney@redhat.com> change.
10532 * gdbarch.c: Regenerate.
10534 2002-05-02 Andrew Cagney <cagney@redhat.com>
10536 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10537 before probing for a new one. Detect errorenous gdbarch_init
10539 * gdbarch.c: Regenerate.
10541 2002-05-01 Andrew Cagney <cagney@redhat.com>
10543 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10544 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10545 * config/v850/tm-v850.h: Ditto. Update copyright.
10547 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10549 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10552 2002-04-30 Michael Snyder <msnyder@redhat.com>
10554 * arm-tdep.c: Whitespace clean-ups.
10555 (arm_skip_prologue): Fix thinko; two lines
10556 should have been removed as part of 4/24 change.
10558 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10560 * rs6000-tdep.c: Added comment describing how fpscr register
10561 numbers were chosen.
10563 2002-04-30 Michael Snyder <msnyder@redhat.com>
10565 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10567 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10569 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10570 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10571 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10573 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10575 From Louis Hamilton <hamilton@redhat.com>:
10576 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10577 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10578 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10579 not bfd-private xcoff data, to determine wordsize.
10580 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10582 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10584 GDB 5.2 released from 5.2 branch.
10586 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10588 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10589 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10590 (x86_64_register_info_table): Added comments with register numbers.
10592 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10594 * rs6000-tdep.c (rs6000_extract_return_value,
10595 rs6000_store_return_value): Handle returning vectors.
10596 (rs6000_gdbarch_init): Use
10597 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10598 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10600 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10602 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10603 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10605 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10607 * hpread.c (hpread_psymtab_to_symtab_1,
10608 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10609 with fprintf_unfiltered (gdb_stderr,...).
10611 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10613 * remote-array.c (printf_monitor, write_monitor,
10614 array_insert_breakpoint, array_remove_breakpoint ):
10615 Replace fprintf (stderr,...
10616 with fprintf_unfiltered (gdb_stderr,....
10617 * remote-es.c: Likewise.
10618 * remote-os9k.c: Likewise.
10619 * remote-st.c: Likewise.
10621 2002-04-28 Andreas Schwab <schwab@suse.de>
10623 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10624 linux-proc.o and gcore.o.
10626 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10628 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10629 code without frame pointers.
10631 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10633 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10634 ON_STACK is needed.
10636 2002-04-26 Ben Elliston <bje@redhat.com>
10638 * target.c (do_xfer_memory): Correct reference to the new option
10639 "trust-readonly-sections".
10641 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10643 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10644 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10645 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10647 (read_array_type): Record the fact that this array type is really a
10648 vector (i.e. are passed in by value).
10650 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10652 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10653 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10654 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10655 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10656 * alpha-linux-tdep.c: Include frame.h.
10657 (alpha_linux_sigcontext_addr): New function.
10658 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10659 alpha_linux_sigcontext_addr.
10660 * alpha-osf1-tdep.c: Include gdbcore.h.
10661 (alpha_osf1_sigcontext_addr): New function.
10662 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10663 alpha_osf1_sigcontext_addr.
10664 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10665 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10667 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10669 * stack.c (selected_frame_level):
10670 (select_frame): Do not set selected_frame_level.
10671 * frame.h (selected_frame_level): Delete declaration.
10673 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10675 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10676 convert_from_func_ptr-addr when AIX / PowerOpen.
10678 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10680 * valops.c (hand_function_call): Call
10681 generic_save_call_dummy_addr.
10682 * frame.h (generic_save_call_dummy_addr): Declare.
10683 * blockframe.c (struct dummy_frame): Add fields call_lo and
10685 (generic_find_dummy_frame): Check for PC in range call_lo to
10686 call_hi instead of entry_point_address.
10687 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10688 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10689 (generic_save_call_dummy_addr): New function.
10691 2002-04-24 David S. Miller <davem@redhat.com>
10693 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10694 sparc_skip_prologue.
10695 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10696 information to find prologue when possible.
10697 (sparc_prologue_frameless_p): Call examine_prologue directly.
10698 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10699 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10701 (SKIP_PROLOGUE): Likewise.
10703 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10705 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10706 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10707 indicate that the condition it was testing is always true.
10708 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10709 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10710 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10712 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10714 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10715 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10716 tdep->jb_pc and tdep->jb_elt_size.
10717 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10718 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10719 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10720 * alpha-nat.c (get_longjmp_target): Remove.
10721 (JB_ELEMENT_SIZE): Ditto.
10723 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10724 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10725 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10726 to alpha_get_longjmp_target.
10727 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10728 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10729 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10731 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10733 * README: Update to GDB 5.2.
10735 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10737 * gdbarch.sh (LC_ALL): Set to `c'.
10739 2002-04-25 Theodore A. Roth <troth@verinet.com>
10741 * avr-tdep.c: Ran through gdb_indent.sh.
10743 2002-04-25 Theodore A. Roth <troth@verinet.com>
10745 * MAINTAINERS: Add myself as AVR maintainer.
10746 * NEWS: Note new target avr.
10748 2002-04-25 Theodore A. Roth <troth@verinet.com>
10750 * Makefile.in: Add support for AVR target.
10751 * configure.tgt: Add support for AVR target.
10752 * avr-tdep.c: New file
10753 * config/avr/avr.mt: New file.
10755 2002-04-25 Theodore A. Roth <troth@verinet.com>
10757 * MAINTAINERS: Add myself to write-after-approval.
10759 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10761 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10762 with fprintf_unfiltered (gdb_stderr,....
10764 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10767 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10769 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10771 * p-exp.y: Also use new prev_lexptr variable
10772 to improve error reporting. Based on Michael Snyder
10773 2002-04-24 dated patch to c-exp.y.
10775 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10777 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10778 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10779 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10781 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10783 (FUNCTION_START_OFFSET): Remove.
10784 (BREAKPOINT): Ditto.
10786 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10788 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10791 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10793 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10794 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10795 alpha_linux_pc_in_sigtramp.
10796 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10797 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10798 alpha_osf1_pc_in_sigtramp.
10799 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10800 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10801 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10802 alphafbsd_pc_in_sigtramp.
10803 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10804 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10805 alphanbsd_pc_in_sigtramp.
10806 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10807 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10809 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10811 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10813 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10815 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10817 (alphanbsd-nat.o): New dependency list.
10818 (alphanbsd-tdep.o): Ditto.
10819 * NEWS: Note new native NetBSD/alpha configuration.
10820 * alphanbsd-nat.c: New file.
10821 * alphanbsd-tdep.c: Ditto.
10822 * configure.host (alpha*-*-netbsd*): New host.
10823 * configure.tgt (alpha*-*-netbsd*): New target.
10824 * config/alpha/nbsd.mh: New file.
10825 * config/alpha/nbsd.mt: Ditto.
10826 * config/alpha/nm-nbsd.h: Ditto.
10827 * config/alpha/tm-nbsd.h: Ditto.
10829 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10831 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10832 (alpha-osf1-tdep.o): New dependency list.
10833 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10834 and skip_sigtramp_frame members.
10835 * alpha-linux-tdep.c: Include gdbcore.h.
10836 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10837 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10838 * alpha-osf1-tdep.c: New file.
10839 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10841 (alpha_frame_past_sigtramp_frame): New function.
10842 (alpha_dynamic_sigtramp_offset): Ditto.
10843 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10844 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10845 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10846 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10847 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10848 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10849 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10850 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10851 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10852 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10853 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10854 to find_solib_trampoline_target.
10855 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10856 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10857 (SKIP_TRAMPOLINE_CODE): Remove.
10858 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10859 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10860 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10861 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10862 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10863 (PROC_SIGTRAMP_MAGIC): Ditto.
10864 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10865 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10866 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10867 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10868 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10870 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10872 * NEWS: Note that Alpha targets are now multi-arch.
10874 2002-04-24 Michael Snyder <msnyder@redhat.com>
10876 * parser-defs.h (prev_lexptr): New external variable.
10877 * parse.c (parse_exp_1): Set prev_lexptr to null before
10878 calling the language-specific parser.
10879 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10880 (yyerror): Use prev_lexptr in error reporting.
10882 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10884 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10885 * gregset.h: If FILL_FPXREGSET is defined, provide
10886 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10887 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10888 is defined, call fill_fpxregset.
10890 2002-04-24 Roland McGrath <roland@frob.com>
10892 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10893 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10894 (supply_gregset, supply_fpregset): New functions.
10896 * gnu-nat.c (gnu_find_memory_regions): New function.
10897 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10898 (gnu_xfer_memory): Add a cast.
10900 2002-04-24 Michael Snyder <msnyder@redhat.com>
10902 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10903 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10904 of argument regs ("str r(0123), [r11, #-nn"]).
10905 (arm_skip_prologue): Better handling for frameless functions.
10906 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10907 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10909 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10911 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10912 NUM_PSEUDO_REGS can be used.
10914 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10916 * arch-utils.h: Update copyright.
10918 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10919 * gdbarch.h, gdbarch.c: Re-generate.
10921 * inferior.h (IN_SIGTRAMP): Delete definition.
10922 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10923 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10925 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10926 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10927 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10928 (find_proc_framesize): Ditto.
10929 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10930 (alpha_init_extra_frame_info): Ditto.
10931 * infrun.c (handle_inferior_event): Ditto.
10932 (handle_inferior_event): Ditto.
10933 (check_sigtramp2): Ditto.
10934 * blockframe.c (create_new_frame): Ditto.
10935 (get_prev_frame): Ditto.
10936 * ppc-linux-tdep.c: Update comments.
10937 * i386-linux-tdep.c: Update comments.
10938 * breakpoint.c (bpstat_what): Update comment.
10940 2002-04-24 David S. Miller <davem@redhat.com>
10942 * i960-tdep.c (register_in_window_p): New function.
10943 (i960_find_saved_register): Use it instead of
10944 REGISTER_IN_WINDOW_P.
10945 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10947 * symtab.h (find_stab_function_addr): Kill extern.
10948 * minsyms.c (find_stab_function_addr): Remove from here...
10949 * dbxread.c: ... to here, and mark it static.
10951 2002-04-20 David S. Miller <davem@redhat.com>
10953 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10954 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10956 2002-04-21 David S. Miller <davem@redhat.com>
10958 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10959 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10960 (vx_write_register): Likewise.
10962 2002-04-23 J. Brobecker <brobecker@gnat.com>
10964 * source.c (is_regular_file): New function.
10965 (openp): Check wether file to open is a regular file
10966 to avoid opening directories.
10968 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10970 * findvar.c (extract_signed_integer): Cast printf argument
10971 to suppress format warning.
10972 (extract_unsigned_integer): Likewise.
10973 * infcmd.c (registers_info): Likewise.
10974 * top.c (get_prompt_1): Likewise.
10975 * valops.c (value_assign): Likewise.
10976 * valprint.c (print_decimal): Likewise.
10978 2002-04-22 H.J. Lu (hjl@gnu.org)
10980 * c-exp.y (typebase): Support
10982 [long|long long|short] [signed|unsigned] [int|]
10986 signed [long|long long|short] int
10988 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10990 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10992 * vax-tdep.h: New file.
10993 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10994 Make several routines static.
10995 (vax_get_saved_register): New function.
10996 (vax_gdbarch_init): New function.
10997 (_initialize_vax_tdep): Register vax_gdbarch_init.
10998 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10999 Remove macros now under the control of gdbarch.
11001 2002-04-22 Michael Snyder <msnyder@redhat.com>
11003 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11004 Some whitespace and coding standards tweaks.
11006 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11008 * vax-tdep.c: Include regcache.h.
11009 (vax_call_dummy_words): New.
11010 (sizeof_vax_call_dummy_words): New.
11011 (vax_fix_call_dummy): New function.
11012 (vax_saved_pc_after_call): Ditto.
11013 * config/vax/tm-vax.h: Don't include regcache.h.
11014 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11015 (CALL_DUMMY): Remove.
11016 (CALL_DUMMY_WORDS): Define.
11017 (SIZEOF_CALL_DUMMY_WORDS): Define.
11018 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11020 2002-04-18 Michael Snyder <msnyder@redhat.com>
11022 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11024 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11026 * vax-tdep.c (vax_frame_chain): New function.
11027 (vax_push_dummy_frame): Ditto.
11028 (vax_pop_frame): Ditto.
11029 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11030 (FRAMELESS_FUNCTION_INVOCATION): Use
11031 generic_frameless_function_invocation_not.
11032 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11033 (POP_FRAME): Use vax_pop_frame.
11035 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11037 * vax-tdep.c (vax_store_struct_return): New function.
11038 (vax_extract_return_value): Ditto.
11039 (vax_store_return_value): Ditto.
11040 (vax_extract_struct_value_address): Ditto.
11041 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11042 vax_store_struct_return.
11043 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11044 (STORE_RETURN_VALUE): Use vax_store_return_value.
11045 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11047 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11049 * vax-tdep.c (vax_frame_saved_pc): New function.
11050 (vax_frame_args_address_correct): Ditto.
11051 (vax_frame_args_address): Ditto.
11052 (vax_frame_locals_address): Ditto.
11053 (vax_frame_num_args): Move code to be in proximity to
11054 other frame-related functions.
11055 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11056 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11057 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11058 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11059 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11061 2002-04-22 H.J. Lu (hjl@gnu.org)
11063 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11066 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11068 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11069 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11070 (FRAME_INIT_SAVED_REGS): New macro.
11072 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11074 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11076 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11078 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11080 (fetch_osf_core_registers): Likewise.
11081 (supply_gregset): Likewise.
11083 2002-04-22 J. Brobecker <brobecker@gnat.com>
11085 * symfile.h (get_section_index): Define.
11086 * symfile.c (get_section_index): New function.
11087 * mdebugread.c (SC_IS_SBSS): New macro.
11088 (SC_IS_BSS): Return true for the scBss storage class only, as
11089 the scSBss storage class refers to the .sbss section.
11090 (parse_partial_symbols): Discard the symbols which associated
11091 section does not exist.
11092 Make sure to use the .sbss section index for symbols which
11093 storage class is scBss, rather than using the .bss section index.
11095 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11097 * vax-tdep.c: Update copyright years.
11098 (vax_register_name): New function.
11099 (vax_register_byte): Ditto.
11100 (vax_register_raw_size): Ditto.
11101 (vax_register_virtual_size): Ditto.
11102 (vax_register_virtual_type): Ditto.
11103 * config/vax/tm-vax.h: Update copyright years.
11104 (REGISTER_NAMES): Remove.
11105 (REGISTER_NAME): Define.
11106 (REGISTER_BYTE): Use vax_register_byte.
11107 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11108 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11109 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11111 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11113 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11115 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11117 2002-04-21 David S. Miller <davem@redhat.com>
11119 * arch-utils.c (generic_prologue_frameless_p): Kill
11120 SKIP_PROLOGUE_FRAMELESS_P code.
11121 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11123 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11124 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11125 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11127 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11128 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11129 (sparc_gdbarch_init): Pass it to
11130 set_gdbarch_prologue_frameless_p.
11132 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11134 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11135 (alphabsd-nat.o): New dependency list.
11137 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11139 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11141 (alpha-linux-tdep.o): New dependency list.
11142 (alphafbsd-tdep.o): Likewise.
11144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11146 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11148 * alpha-tdep.c: ...from here.
11149 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11151 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11153 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11154 prototype from here...
11155 * alpha-tdep.h: ...to here.
11157 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11159 * frame.h (selected_frame_level): Document as deprecated.
11160 (frame_relative_level): Declare.
11161 * stack.c (frame_relative_level): New function.
11162 (selected_frame_level): Document as deprecated.
11163 (select_frame): Do not set the selected_frame_level.
11165 * stack.c (frame_info, record_selected_frame): Update.
11166 (frame_command, current_frame_command): Update.
11167 (up_silently_base, up_command, down_silently_base): Update.
11168 (down_command): Update.
11169 * inflow.c (kill_command): Update.
11170 * tracepoint.c (finish_tfind_command): Update.
11171 * corelow.c (core_open): Update.
11172 * thread.c (info_threads_command): Update.
11173 (do_captured_thread_select): Update.
11174 * infcmd.c (finish_command): Update.
11175 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11177 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11179 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11181 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11183 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11186 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11188 * alphafbsd-tdep.c: Update copyright years. Include
11190 (alphafbsd_use_struct_convention): Make static.
11191 (alphafbsd_init_abi): New function.
11192 (_initialize_alphafbsd_tdep): New function.
11193 * config/alpha/tm-fbsd.h: Update copyright years.
11194 (USE_STRUCT_CONVENTION): Remove.
11196 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11198 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11199 an Alpha ABI variant.
11200 (alpha_abi_handler_list): Declare.
11201 (alpha_gdbarch_register_os_abi): New function.
11202 (alpha_gdbarch_init): Give registered ABI variant handlers a
11203 chance to tweak the gdbarch once we have set up defaults.
11204 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11206 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11208 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11209 to standard_coerce_float_to_double.
11210 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11212 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11214 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11215 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11216 from gdbarch_tdep rather than a constant.
11217 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11218 the default text address for all Alpha Unix ABIs.
11219 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11220 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11222 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11224 * alpha-tdep.h: New file. Includes several Alpha target constants
11226 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11227 let gdbarch deal with.
11228 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11229 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11230 to dependency list.
11231 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11232 Alpha target register names.
11233 * alphabsd-nat.c: Likewise.
11234 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11235 Alpha target register names. Make serveral routines static.
11236 (alpha_get_saved_register): New function.
11237 (alpha_abi_names): New.
11238 (process_note_abi_tag_sections): New function.
11239 (get_elfosabi): New function.
11240 (alpha_gdbarch_init): New function.
11241 (alpha_dump_tdep): New function.
11242 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11244 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11246 * frame.c (find_saved_register): Delete #ifdef
11247 HAVE_REGISTER_WINDOWS code.
11248 * config/sparc/tm-sparc.h: Update comments.
11249 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11251 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11253 * i960-tdep.c (i960_find_saved_register): New function.
11254 (i960_get_saved_register): New function.
11255 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11256 (i960_get_saved_register): Declare.
11257 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11259 2002-04-20 David S. Miller <davem@redhat.com>
11261 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11263 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11265 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11266 instead of NUM_PSEUDO_REGS.
11268 2002-04-20 David S. Miller <davem@redhat.com>
11270 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11271 GDB_MULTI_ARCH_PARTIAL
11272 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11273 define, let tm-sp64.h do it.
11275 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11277 * frame.c (find_saved_register): Avoid a NULL pointer
11278 dereference and actually walk the frame list.
11280 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11282 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11283 sorted in most most-recent-used order. Document.
11284 * gdbarch.h, gdbarch.c: Regenerate.
11286 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11288 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11290 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11291 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11292 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11295 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11298 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11299 (build_builtin_type_vec128): Ditto.
11300 (append_composite_type_field): Fix calculation of type length in
11303 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11305 * config/djgpp/README: Update.
11307 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11310 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11312 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11313 (alpha_setup_arbitrary_frame): ...to this.
11314 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11315 for alpha_setup_arbitrary_frame.
11317 2002-04-18 Andrew Cagney <cagney@redhat.com>
11319 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11320 * gdbarch.h, gdbarch.c: Regenerate.
11322 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11323 * target.h (memory_breakpoint_from_pc): Update declaration.
11324 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11326 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11327 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11328 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11329 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11330 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11331 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11332 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11333 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11334 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11335 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11336 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11337 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11339 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11341 * monitor.c (monitor_insert_breakpoint): Ditto.
11342 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11344 * config/mcore/tm-mcore.h: Update copyright.
11345 * mem-break.c: Ditto.
11346 * xstormy16-tdep.c: Ditto.
11348 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11350 * p-exp.y: Add precedence rule for '^' token.
11351 This removes the shift/reduce conflicts.
11352 Remove the comment concerning these shift/reduce conflicts.
11354 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11356 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11357 (registers_powerpc_nofp): New register set for processors
11358 without floating point unit.
11360 2002-04-18 David S. Miller <davem@redhat.com>
11362 * MAINTAINERS: Add myself to write-after-approval.
11364 2002-04-17 Michael Snyder <msnyder@redhat.com>
11366 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11368 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11370 * rs6000-tdep.c (frame_initial_stack_address): Use
11371 frame_register_read to read the alloca_reg.
11373 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11375 * frame.c (find_saved_register): Find saved registers in the next
11379 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11381 * gdbarch.sh (LANG): Set to ``c''.
11383 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11385 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11387 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11389 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11392 * hpread.c (hpread_get_lntt): Add declaration.
11393 Also fix PR gdb/391.
11395 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11397 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11398 * aclocal.m4, configure: Re-generate.
11401 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11403 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11404 instead of tm_print_insn.
11406 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11408 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11410 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11412 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11413 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11414 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11416 2002-04-12 Don Howard <dhoward@redhat.com>
11418 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11419 max_user_call_depth.
11420 (init_cmd_lists): Initialize the new value;
11421 * cli/cli-script.c (execute_user_command): Limit the call depth of
11422 user defined commands. This avoids a core-dump when user commands
11423 are infinitly recursive.
11425 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11427 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11428 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11429 from tdep struct instead of DEFAULT_LR_SAVE.
11430 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11431 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11432 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11434 2002-04-12 Michael Snyder <msnyder@redhat.com>
11436 * Remote.c: Spelling fix.
11437 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11438 If no symbol found for "sbrk", try "_sbrk".
11439 (make_output_phdrs): Use bfd_section_name.
11440 (gcore_copy_callback): Use bfd_section_name.
11441 * eval.c: Indentation fix-ups.
11442 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11443 in case it gets applied to an address that is already
11444 in the instruction space.
11445 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11446 * symfile.c: Fix indentation, long lines.
11447 * source.c: White space fix-up.
11449 2002-04-12 Andrew Cagney <cagney@redhat.com>
11451 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11452 * frame.c (frame_register_read): New function. Return non-zero on
11454 (read_relative_register_raw_bytes_for_frame): Delete.
11455 (read_relative_register_raw_bytes): Delete.
11456 * frame.h (frame_register_read): Declare.
11457 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11458 * sh-tdep.c: Ditto.
11459 * infcmd.c (do_registers_info): Ditto.
11460 * hppa-tdep.c: Ditto.
11461 * rs6000-tdep.c: Ditto.
11462 * h8500-tdep.c: Ditto.
11463 * mips-tdep.c: Ditto.
11464 * h8300-tdep.c: Ditto.
11465 * z8k-tdep.c: Ditto.
11467 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11469 From Jimi X <jimix@watson.ibm.com>:
11470 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11473 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11475 From Jimi X <jimix@watson.ibm.com>:
11476 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11479 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11481 From Jimi X <jimix@watson.ibm.com>:
11482 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11483 register sets for these processor variants.
11485 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11487 * regformats/reg-ppc.dat: Support FPSCR.
11489 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11491 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11492 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11493 Add fpscr as an invalid/unfetchable register.
11494 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11495 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11496 (fill_fpregset): Add support for register fpscr.
11497 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11498 (fill_gregset): Account for the fact that register ``mq'' might
11500 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11501 (registers_power): Add fpscr to register set at slot 71.
11502 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11503 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11505 2002-04-11 Michael Snyder <msnyder@redhat.com>
11507 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11508 * configure: Regenerate.
11509 * config.in: Regenerate.
11510 * acconfig.h: Add define for _SYSCALL32.
11511 * core-sol2.c: Remove #define _SYSCALL32.
11512 * solib-legacy.c: Remove #define _SYSCALL32.
11514 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11516 * stack.c (select_frame): Cleanup internal error message, do not
11519 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11521 * stack.c (select_frame): Check that selected_frame and the
11522 specified level are as expected.
11523 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11525 * frame.h (struct frame_info): Add field `level'. Update
11527 Work-in-progress PR gdb/464.
11529 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11531 * maint.c (maint_print_section_info): Rename print_section_info.
11532 (print_bfd_section_info, print_objfile_section_info): Update.
11533 * inferior.h (struct gdbarch): Add opaque declaration.
11534 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11535 * gdbarch.h: Regenerate.
11537 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11539 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11540 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11541 (kernel_u_size): Added.
11542 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11543 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11545 2002-04-04 Jim Ingham <jingham@apple.com>
11547 * valarith.c (find_size_for_pointer_math): New function, either returns
11548 the size for a pointer's target, returns 1 for void *, or errors for
11550 (value_add, value_sub): use find_size_for_pointer_math.
11552 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11554 * linux-low.c (linux_look_up_symbols): New hook.
11555 (linux_target_ops): Add linux_look_up_symbols.
11556 * remote-utils.c (decode_address): New function.
11557 (look_up_one_symbol): New function.
11558 * server.c (handle_query): Call target look_up_symbols hook.
11559 * server.h (look_up_one_symbol): Add prototype.
11560 * target.h (struct target_ops): Add look_up_symbols hook.
11562 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11564 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11565 override FP_REGNUM with frame->fp. Update copyright.
11566 * parse.c (num_std_regs, std_regs): Delete.
11567 (target_map_name_to_register): Do not search std_regs. Update
11568 function description.
11569 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11570 declarations. Update copyright.
11573 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11575 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11576 after the last symbol in a block.
11578 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11580 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11581 is non zero as a found symbol.
11583 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11585 * findvar.c: Include "builtin-regs.h".
11586 (value_of_register): Call value_of_builtin_reg when applicable.
11587 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11588 (target_map_name_to_register): Call
11589 builtin_reg_map_name_to_regnum.
11590 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11591 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11592 (builtin_regs_h): Define.
11593 (builtin-regs.o): New target.
11594 (findvar.o): Add $(builtin_regs_h).
11595 * builtin-regs.c, builtin-regs.h: New files.
11596 * std-regs.c: New file.
11597 Partial fix for PR gdb/251.
11599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11601 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11602 it's no longer required.
11604 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11606 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11610 From Jimi X <jimix@watson.ibm.com>:
11611 * rs6000-tdep.c (rs6000_software_single_step): Use
11612 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11613 and size. Use target_insert_breakpoint() and
11614 target_remove_breakpoint() to insert and remove breakpoints
11615 instead of explicit memory reads and writes.
11617 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11619 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11620 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11621 ELF_OBJECT_FORMAT ifdef.
11623 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11625 From Jimi X <jimix@watson.ibm.com>:
11626 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11628 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11630 From Jimi X <jimix@watson.ibm.com>:
11631 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11632 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11634 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11636 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11637 s/asprintf/xasprintf/.
11638 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11640 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11642 I believe Jeff Law denies responsability for this one:
11643 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11644 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11645 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11646 Work-around for PR gdb/366.
11648 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11650 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11651 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11652 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11654 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11656 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11657 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11660 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11662 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11665 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11667 * README (Reporting Bugs in GDB): Document the bug web page as the
11668 prefered way of submitting bugs.
11671 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11673 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11674 -1. Update comment.
11675 * gdbarch.h, gdbarch.c: Re-generate.
11677 2002-04-07 Andreas Schwab <schwab@suse.de>
11679 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11680 buffer to regcache_collect.
11682 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11684 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11685 * gdbarch.c, gdbarch.h: Re-generate.
11687 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11689 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11690 declaration. Fix -Werror.
11692 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11694 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11695 * gdbarch.c: Regenerate.
11697 2002-04-05 Michael Snyder <msnyder@redhat.com>
11699 * breakpoint.c (clear_command): Rewrite middle section to
11700 combine two loops with identical control conditions.
11701 Add a cleanup to eliminate a memory leak.
11702 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11704 2002-04-05 H.J. Lu (hjl@gnu.org)
11706 * solib-svr4.c (bkpt_names): Add "__start".
11708 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11710 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11711 as test for 64 bit target.
11713 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11715 * h8500-tdep.c (h8500_write_fp): Delete function.
11716 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11717 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11718 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11720 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11721 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11723 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11724 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11725 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11726 (d10v_write_fp): Delete function.
11727 * inferior.h (write_fp, generic_target_write_fp): Delete
11729 * regcache.c (generic_target_write_fp): Delete function.
11730 (write_fp): Delete function.
11731 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11732 * gdbarch.h, gdbarch.c: Regenerate.
11733 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11734 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11735 (sparc64_write_fp): Delete declaration.
11736 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11737 (h8500_write_fp): Delete declaration.
11739 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11741 * sparc-tdep.c (sparc64_write_fp): Delete.
11742 (sparc_push_dummy_frame): Replace write_fp call with code to store
11744 (sparc_gdbarch_init): Do not initialize write_fp.
11746 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11748 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11751 2002-03-29 Jim Blandy <jimb@redhat.com>
11753 * stack.c (get_selected_block): Add new argument `addr_in_block',
11754 used to return the exact code address we used to select the block,
11755 not just the block.
11756 * blockframe.c (get_frame_block, get_current_block): Same.
11757 * frame.h (get_frame_block, get_current_block,
11758 get_selected_block): Update declarations.
11759 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11760 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11762 2002-04-05 Michael Snyder <msnyder@redhat.com>
11764 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11767 2002-04-05 J. Brobecker <brobecker@gnat.com>
11769 * utils.c (xfullpath): New function.
11770 * defs.h (xfullpath): Add declaration.
11771 * source.c (openp): Use xfullpath in place of gdb_realpath to
11772 avoid resolving the basename part of filenames when the
11773 associated file is a symbolic link. This fixes a potential
11774 inconsistency between the filenames known to GDB and the
11775 filenames it prints in the annotations.
11776 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11777 to be able to match a filename with either the real filename, or
11778 the name of any symbolic link to this file.
11779 (lookup_partial_symtab): Ditto.
11781 2002-04-04 Michael Snyder <msnyder@redhat.com>
11783 * breakpoint.c: Add support for hardware breakpoints in overlays.
11784 (overlay_events_enabled): New state variable.
11785 (insert_breakpoints): Use overlay_events_enabled to decide
11786 whether to attempt to set a breakpoint at the overlay load addr.
11787 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11788 (remove_breakpoint): Use overlay_events_enabled to decide
11789 whether breakpoints need to be removed from overlay load addr.
11790 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11791 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11792 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11793 disable_overlay_breakpoints): Update overlay_events_enabled.
11795 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11797 * dwarf2read.c (struct function_range): New.
11798 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11799 (check_cu_functions): New.
11800 (read_file_scope): Initialize global function lists.
11801 Call dwarf_decode_line after processing children.
11802 (read_func_scope): Add to global function list.
11803 (dwarf_decode_lines): Call check_cu_functions everywhere
11804 record_line is called. Call record_line with a linenumber
11805 of 0 to mark sequence ends.
11807 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11809 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11810 change sync with glibc.
11812 2002-04-03 Jim Blandy <jimb@redhat.com>
11814 * configure.in: Call AC_C_INLINE.
11815 * configure: Regenerated.
11817 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11819 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11820 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11822 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11824 * NEWS: Mention gcore support on FreeBSD/i386.
11826 * fbsd-proc.c: New file.
11827 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11828 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11830 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11833 2002-03-29 Jim Blandy <jimb@redhat.com>
11835 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11836 unescaped newlines in string literals, but newer ones don't. So
11839 2002-03-26 Michael Snyder <msnyder@redhat.com>
11840 Andrew Cagney <cagney@redhat.com>
11842 * cli/cli-dump.c: New file. Dump memory to file,
11843 restore file to memory.
11844 * cli/cli-dump.h: New file.
11845 * Makefile.in: Add rules, dependencies for cli-dump.o.
11846 * NEWS: Mention new commands.
11848 2002-03-28 Michael Snyder <msnyder@redhat.com>
11850 * symfile.c (symbol_file_add): Move test for null symbols to later.
11852 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11854 From veksler at il.ibm.com:
11855 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11856 the xstrduped original path.
11859 2002-03-27 Michael Snyder <msnyder@redhat.com>
11861 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11862 * infcmd.c (_initialize_infcmd): Ditto.
11863 * language.c (_initialize_language): Ditto.
11864 * symfile.c (_initialize_symfile): Ditto.
11865 * top.c (_init_main): Ditto.
11866 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11868 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11870 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11871 vector registers handling.
11872 (skip_prologue): Handle new AltiVec instructions. Fill in new
11873 fields of frame data.
11874 (frame_get_saved_regs): Fill in information for AltiVec registers.
11876 2002-03-27 Jim Blandy <jimb@redhat.com>
11878 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11879 a function; leave this macro here to invoke that function.
11880 (symbol_init_mangled_name): Declaration for that function.
11881 * symtab.c (symbol_init_mangled_name): New function.
11883 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11885 * valarith.c: Replace strerror with safe_strerror.
11886 * tracepoint.c: Ditto.
11887 * lin-lwp.c: Ditto.
11888 * go32-nat.c: Ditto.
11890 * gnu-nat.c: Ditto.
11892 2002-03-27 Andreas Schwab <schwab@suse.de>
11894 * event-top.c (command_line_handler): Remove useless if.
11896 2002-03-27 Andreas Jaeger <aj@suse.de>
11898 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11901 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11903 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11904 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11905 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11906 (x86_64_linux_dr_get_status, supply_gregset),
11907 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11908 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11909 (x86_64_register_info_table): Add.
11910 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11911 (x86_64_register_raw_size, x86_64_register_virtual_type),
11912 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11913 general x86_64_register_info_table.
11914 (i386_gdbarch_init): gdbarch_register_bytes is now set
11915 dynamicaly during initialization.
11916 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11917 * gdbserver/linux-x86-64-low.c: Ditto.
11919 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11921 * gdbserver/server.c (main): Call target_signal_to_host_p
11922 and target_signal_to_host on signals received from the remote.
11923 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11924 target_signal_from_host on signals sent to the remote.
11925 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11926 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11928 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11930 * signals/signals.c: Include "server.h" in gdbserver build.
11931 (target_signal_from_name): Don't use STREQ.
11932 (_initialize_signals): Likewise. Don't include function in
11935 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11937 * signals.c: Moved to...
11938 * signals/signals.c: Here.
11939 * Makefile (signals.o): Update.
11941 2002-03-26 Jeff Law (law@redhat.com)
11943 * somread.c (som_symtab_read): Remove some commented out code and
11944 updated related comments. Do not set the minimal symbol table to
11945 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11946 in a dynamic executable.
11947 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11948 where we are unable to find the minimal symbol for the given
11951 2002-03-25 Jeff Law (law@redhat.com)
11953 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11955 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11957 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11959 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11961 * command.h: Update copyright.
11962 (struct cmd_list_element): Replace definition with opaque
11964 (enum cmd_types): Document that it will eventually be moved to
11966 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11967 (MALLOCED_REPLACEMENT): Delete macro.
11968 * Makefile.in (cli_decode_h): Add $(command_h).
11969 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11970 * top.c: Include "cli/cli-decode.h".
11971 * completer.c: Include "cli/cli-decode.h".
11972 * maint.c: Include "cli/cli-decode.h".
11973 * cli/cli-decode.h: Include "command.h".
11974 (enum command_class): Delete.
11975 (enum cmd_types): Comment out.
11976 (enum cmd_auto_boolean): Delete.
11977 (enum var_types): Delete.
11979 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11981 * cli/cli-decode.c: Include "gdb_assert.h".
11982 (add_set_or_show_cmd): New static function.
11983 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11984 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11985 all fields, such as func, from the set command.
11987 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11989 * MAINTAINERS (sh-elf): Change warning flag to -w.
11991 2002-03-23 Andrew Cagney <cagney@redhat.com>
11993 * defs.h (error): Add printf format attribute.
11994 * thread-db.c (thread_from_lwp): Fix error format string.
11995 * stack.c (parse_frame_specification): Ditto.
11996 * cli/cli-decode.c (undef_cmd_error): Ditto.
11997 * scm-lang.c (scm_lookup_name): Ditto.
11998 * tracepoint.c (trace_error): Ditto.
11999 * remote-utils.c (usage): Ditto.
12000 * remote.c (compare_sections_command): Ditto.
12003 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12005 * gdbtypes.c (append_composite_type_field): New function.
12006 (init_composite_type): New function.
12007 * gdbtypes.h (append_composite_type_field): Declare.
12008 (init_composite_type): Ditto.
12010 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12012 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12014 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12015 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12016 structure returning convention for SYSV ABI case, but not
12017 for GNU/Linux, FreeBSD, or NetBSD.
12019 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12021 * symtab.h (lookup_block_symbol): Add mangled_name argument
12024 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12025 with new mangled_name argument.
12026 * linespec.c (decode_line_1): Likewise.
12027 * valops (value_of_this): Likewise.
12028 * symtab.c (lookup_transparent_type): Likewise.
12029 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12030 (lookup_symbol): If we are given a mangled name, pass it down
12031 to lookup_symbol_aux.
12032 (lookup_block_symbol): If we are given a mangled name to check
12033 against, only return symbols which match it.
12035 2002-03-22 Christopher Faylor <cgf@redhat.com>
12037 * win32-nat.c (child_create_inferior): Check for proper shell to use
12038 here, in case the user changes it on the fly.
12039 (_initialize_inftarg): Remove shell path considerations.
12041 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12043 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12044 for gdbarch_max_register_raw_size and max_register_virtual_size.
12045 Adjust copyright year.
12047 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12049 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12050 in a function to cover the entire beginning of the function
12051 as well if it does not already.
12053 2002-03-21 Tom Rix <trix@redhat.com>
12055 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12056 (rs6000_ptrace64): Renamed from ptrace64.
12058 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12060 * gdbserver/remote-utils.c (remote_open): Don't call
12061 getprotobyname, we're all using TCP here so just use
12063 * gdbserver/gdbreplay.c (remote_open): Ditto.
12065 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12067 * regcache.c (_initialize_regcache): No need to call
12068 build_regcache() at this time; it gets called whenever
12069 the gdbarch changes.
12071 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12073 * sparc-nat.c: Include sys/param.h where possible.
12075 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12078 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12079 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12080 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12082 * stabsread.c (rs6000_builtin_type): Likewise.
12083 (read_sun_floating_type): Likewise.
12085 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12087 * stabsread.c (read_member_functions): Remove skip code for duplicate
12088 constructor/destructor methods. Use standard parsing for these
12089 methods and just do not chain them to the list of methods after
12092 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12094 * coffread.c: Remove redundant static declarations. Replace
12095 occurrences of `PTR' with `void *'.
12096 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12097 * top.h (quit_cover): Likewise.
12098 * defs.h (catch_errors): Likewise.
12100 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12102 * defs.h (XMALLOC): Define.
12103 * gdb-events.sh (XMALLOC): Delete macro.
12104 * gdb-events.c, gdb-events.h: Regenerate.
12105 * gdbarch.sh (XMALLOC): Delete macro.
12106 * gdbarch.c: Regenerate.
12107 * serial.c (XMALLOC): Delete macro.
12108 * ui-file.c (XMALLOC): Ditto.
12109 * ser-unix.h (XMALLOC): Ditto.
12110 * sh-tdep.c (XMALLOC): Ditto.
12111 * ui-out.c (XMALLOC): Ditto.
12112 * utils.c (XMALLOC): Ditto.
12113 * i386-tdep.c (XMALLOC): Ditto.
12114 * gdb-events.c (XMALLOC): Ditto.
12115 * d10v-tdep.c (XMALLOC): Ditto.
12116 * cli-out.c (XMALLOC): Ditto.
12118 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12119 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12120 * ui-file.c, ui-out.c: Ditto.
12122 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12124 * command.h (struct cmd_list_element): Add field context.
12125 (set_cmd_context, get_cmd_context): Declare.
12126 * cli/cli-decode.h: Ditto.
12127 * cli/cli-decode.c (get_cmd_context): New function.
12128 (set_cmd_context): New function.
12129 (add_cmd): Initialize context.
12130 Part of fixing PR gdb/145 and PR gdb/146.
12132 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12134 * cli/cli-decode.c (cmd_type): New function.
12135 * command.h (cmd_type): Declare.
12136 * infrun.c (set_schedlock_func): Call function cmd_type.
12137 * kod.c (kod_set_os): Call cmd_type.
12138 * cris-tdep.c (cris_version_update): Use function cmd_type.
12139 (cris_mode_update, cris_abi_update): Ditto.
12141 * command.h: (execute_cmd_post_hook): Declare.
12142 (execute_cmd_pre_hook): Declare.
12143 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12144 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12145 functions. Execute pre/post hook while ensuring that afterwords
12146 hook_in is cleared.
12147 * top.c (execute_command): Use execute_cmd_post_hook, and
12148 execute_cmd_pre_hook to execute pre/post commands.
12149 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12151 (hook_stop_stub): Call execute_cmd_pre_hook.
12153 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12155 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12156 set'' and this leads to a core dump. Move xstrdup of
12157 operating_system to after check that it is not NULL.
12159 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12161 * kod.c (kod_set_os): Remove unnecessary check that
12162 ``command->type'' is set_cmd.
12164 * valprint.c (set_input_radix): Use input_radix.
12165 (set_output_radix): Use output_radix.
12166 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12169 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12171 * value.h (struct value): Delete field ``substring_addr''. Change
12172 aligner fields to force_doublest_align, force_longest_align,
12173 force_core_addr_align and force_pointer_aligh.
12175 * value.h (struct value): Fix typo in above change.
12177 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12179 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12180 to fix internal_error from ``maintenance print architecture''.
12182 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12184 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12185 for gcc versions after gcc-2.8.1.
12187 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12189 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12190 for method resolution. Restore adjustment of ``this'' pointer after
12191 calling value_struct_elt, which was accidentally removed during the
12194 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12196 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12198 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12199 get_saved_register.
12200 * value.h (value_of_register): Update.
12202 2002-03-14 Richard Henderson <rth@redhat.com>
12204 * configure.in: Detect declaration for canonicalize_file_name.
12205 * utils.c (canonicalize_file_name): Declare, if needed.
12206 (gdb_realpath): Prefer realpath if available and usable.
12207 * config.in, configure: Rebuild.
12209 2002-03-14 Richard Henderson <rth@redhat.com>
12211 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12212 a constant array bound.
12214 * MAINTAINERS: Add myself to write-after-approval.
12216 2002-03-14 Michael Snyder <msnyder@redhat.com>
12218 * symfile.c (syms_from_objfile): Return immediately if no syms.
12219 (symbol_file_add): Return immediately if no syms.
12220 (find_sym_fns): Return immediately if no syms.
12222 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12224 * gdbserver/remote-util.c (remote_open): Print remote-side's
12225 IP address when remote debugging over the network.
12227 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12229 * config/sparc/fbsd.mh: Fix copyright.
12230 * config/sparc/fbsd.mt: Likewise.
12232 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12234 * MAINTAINERS: Fix typo in name of gdb warnings option.
12235 (x86-64): Fix formating so that this can be parsed by awk.
12237 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12239 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12240 * defs.h: Include "gdb/signals.h".
12241 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12243 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12245 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12246 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12249 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12250 Don Howard <dhoward@redhat.com>
12252 * mips-tdep.c (ST0_FR): Define.
12253 (mips2_fp_compat): New function, temporarily disabled.
12254 (mips_read_fp_register_single): New function.
12255 (mips_read_fp_register_double): New function.
12256 (mips_print_register): Use them.
12257 (do_fp_register_row): Likewise.
12259 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12261 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12264 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12266 * stabsread.c (read_member_functions): Fix is_stub test for
12267 static member functions, improve comment.
12269 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12271 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12272 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12273 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12274 commands that set boolean values.
12275 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12276 (arm_rdi_resume): Always initialize PC.
12277 (arm_rdi_open): Don't use rslt as a boolean.
12278 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12279 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12280 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12281 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12283 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12285 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12286 * configure: Rebuilt.
12288 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12290 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12291 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12293 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12295 * cli/cli-decode.c (set_cmd_completer): New function.
12296 * command.h (set_cmd_completer): Declare.
12297 * cli/cli-decode.h (set_cmd_completer): Ditto.
12299 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12300 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12301 * win32-nat.c (_initialize_inftarg): Ditto.
12302 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12303 * proc-api.c (_initialize_proc_api): Ditto.
12304 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12305 * source.c (_initialize_source): Ditto.
12306 * exec.c (_initialize_exec): Ditto.
12307 * solib.c (_initialize_solib): Ditto.
12308 * top.c (init_main): Ditto.
12309 * tracepoint.c (_initialize_tracepoint): Ditto.
12310 * symfile.c (_initialize_symfile): Ditto.
12311 * printcmd.c (_initialize_printcmd): Ditto.
12312 * infcmd.c (_initialize_infcmd): Ditto.
12313 * corefile.c (_initialize_core): Ditto.
12315 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12317 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12319 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12321 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12323 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12325 * NEWS: Update headings, 5.2 has branched.
12327 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12329 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12330 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12331 (register_addr, REGISTER_RAW_SIZE): Likewise.
12332 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12333 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12335 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12337 * MAINTAINERS (x86-64): Add myself.
12338 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12339 changed value_ptr -> struct value *
12341 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12343 * configure.host (sparc64-*-freebsd): Add.
12344 * configure.tgt: Likewise.
12345 * config/sparc/fbsd.mh: New file.
12346 * config/sparc/fbsd.mt: Likewise.
12347 * config/sparc/nm-fbsd.h: Likewise.
12348 * config/sparc/tm-fbsd.h: Likewise.
12350 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12352 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12353 regformats/reg-s390x.dat.
12355 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12357 * utils.c: Add FIXME explaining true/false problem.
12359 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12361 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12363 2002-02-28 Michael Chastain <mec@shout.net>
12365 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12367 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12369 * gdbserver/linux-s390-low.c: New file.
12370 * regformats/reg-s390.dat: New file.
12371 * regformats/reg-s390x.dat: New file.
12372 * gdbserver/configure.srv: Add S/390.
12373 * gdbserver/Makefile.in: Add S/390.
12374 * configure.tgt: Enable gdbserver for S/390.
12376 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12378 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12379 first line of the doc string for "info dos", except at the end of
12380 the sentence, since the short help stops at the first period.
12382 2002-02-28 Jason Merrill <jason@redhat.com>
12384 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12386 2002-02-27 Fred Fish <fnf@redhat.com>
12388 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12389 comment (dumy -> dummy).
12391 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12393 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12395 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12397 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12399 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12401 * gdbserver/acconfig.h: New file.
12402 * gdbserver/i387-fp.c: New file.
12403 * gdbserver/i387-fp.h: New file.
12404 * gdbserver/linux-x86-64.c: New file.
12405 * regformats/reg-x86-64.dat: New file.
12406 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12407 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12408 * gdbserver/configure.in: Add support for regsets.
12409 * gdbserver/config.in: Regenerate.
12410 * gdbserver/configure: Regenerate.
12411 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12412 * gdbserver/linux-low.h: New file.
12413 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12415 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12416 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12417 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12418 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12419 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12420 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12421 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12422 "i387-fp.h". Add PTRACE_GETREGS and friends.
12423 * gdbserver/regcache.c (supply_register): New function.
12424 (supply_register_by_name): New function.
12425 (collect_register): New function.
12426 (collect_register_by_name): New function.
12428 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12430 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12431 (config.status): Add configure.srv dependency.
12432 (server_h): Add config.h dependency.
12434 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12436 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12437 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12438 * gdbserver/configure.srv: Change i386-*-linux* to use
12441 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12443 * x86-64-tdep.c: Re-indent. Update copyright date.
12445 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12447 From Michal Ludvig <mludvig@suse.cz>:
12448 * x86-64-tdep.c (value.h): Delete.
12449 (gdb_assert.h): Include.
12450 (x86_64_register_convert_to_virtual,
12451 x86_64_register_convert_to_raw ): Add check which lets only
12452 floating-point values to be converted.
12453 (value_push): Delete.
12454 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12455 (i386_gdbarch_init): Number of register_bytes fixed.
12457 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12459 * MAINTAINERS: Add x86-64 target.
12461 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12463 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12464 * osfsolib.c (solib_map_sections): Ditto.
12465 * irix5-nat.c (solib_map_sections): Ditto.
12466 * corelow.c (gdb_check_format): Ditto.
12467 * symfile.c (symfile_bfd_open): Ditto.
12468 * solib.c (solib_map_sections): Ditto.
12471 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12473 * remote.c (_initialize_remote): By default, disable ``e'' and
12474 ``E'' step out-of-range packets.
12476 2002-02-26 Andreas Schwab <schwab@suse.de>
12478 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12479 m68k_linux_frame_saved_pc.
12480 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12482 (SIGCONTEXT_PC_OFFSET): Remove.
12483 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12484 m68k_linux_sigtramp_saved_pc): New functions.
12485 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12486 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12487 (UCONTEXT_PC_OFFSET): Define.
12488 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12489 non-RT and RT signal trampolines.
12491 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12493 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12494 (TARGET_NBPG, STACK_END_ADDR): Delete
12495 (VARIABLES_INSIDE_BLOCK): Delete.
12497 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12499 * utils.c (perror_with_name): Make string parameter constant.
12500 (print_sys_errmsg): Ditto.
12502 * defs.h (perror_with_name): Update.
12503 (print_sys_errmsg): Update.
12506 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12508 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12509 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12511 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12513 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12514 if it already matches the current architecture from the exec file.
12515 Include arch-utils.h for gdbarch_info_init prototype.
12516 * Makefile.in (rs6000-nat.o): Update dependencies.
12518 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12520 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12521 list of exported variables.
12523 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12525 * gdbserver/configure.srv: New file.
12526 * gdbserver/configure.in: Use configure.srv instead
12527 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12529 * gdbserver/configure: Regenerated.
12530 * gdbserver/terminal.h: New file.
12531 * gdbserver/Makefile.in: Update for configure changes. Remove
12532 more unneeded include paths.
12534 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12536 From wiz at danbala:
12537 * config/sparc/tm-sp64.h: Fix grammar and typos.
12540 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12542 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12543 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12544 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12545 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12546 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12547 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12548 * s390-tdep.c: Ditto.
12549 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12550 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12551 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12552 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12553 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12554 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12555 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12556 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12557 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12558 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12561 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12563 * lin-thread.c: Delete file.
12564 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12565 to gdb_proc_service.h.
12566 * configure: Re-generate.
12568 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12569 * serial.c (serial_open): Delete check for "ocd".
12572 * Makefile.in (linux-thread.o): Delete target.
12573 * linux-thread.c: Delete file.
12575 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12576 renamed SH files to be consistent.
12578 * symtab.c (sort_search_symbols): Use xfree.
12580 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12582 * arm-linux-tdep.c (arm_linux_init_abi): Register
12583 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12584 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12585 definition with undef, since we don't want the sysvr4 definition.
12586 (SKIP_TRAMPOLINE_CODE): Likewise.
12588 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12590 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12592 * configure.in: (AC_CHECK_FUNCS) Added test for
12593 canonicalize_file_name Regenerated.
12594 * config.in, configure: Regenerated.
12595 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12596 defined use canonicalize_file_name.
12598 2002-02-23 Michael Chastain <mec@shout.net>
12600 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12602 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12604 * README: Remove references to cygnus.com.
12605 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12606 dot com'' form. Remove references to cygnus.com and sourceware.
12608 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12610 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12611 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12612 1003.1-2001 no longer allows "head -1".
12613 * gdb/Makefile.in (version.c): Likewise.
12614 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12615 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12616 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12618 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12620 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12621 * command.h (cmd_cfunc_eq): Declare.
12622 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12624 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12625 ``struct cmd_list_element *''.
12626 * cli/cli-cmds.c (is_complete_command): Update. Use
12628 * top.c (execute_command): Pass the command to
12629 is_complete_command.
12630 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12632 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12634 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12635 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12636 architecture defines.
12637 * s390-tdep.c (s390_gdbarch_init): Likewise.
12639 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12641 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12642 (arm_linux_push_arguments): Likewise.
12643 (arm_linux_init_abi): Register them. Also register linux-specific
12645 (find_minsym_and_objfile): Use strcmp, not STREQ.
12646 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12647 (arm_linux_call_dummy_words): Delete declaration.
12648 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12649 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12651 (LOWEST_PC): Delete.
12653 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12655 * maint.c (print_section_info): Do not prepend `0x' to filepos
12656 output, it will be handled by local_hex_string_custom.
12658 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12660 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12661 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12662 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12664 2002-02-22 Jim Blandy <jimb@redhat.com>
12666 Indicate that the bcache functions don't change the strings
12668 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12669 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12671 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12673 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12675 2002-02-21 Christopher Faylor <cgf@redhat.com>
12677 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12678 find the complete path to a loaded DLL.
12680 2002-02-21 Fred Fish <fnf@redhat.com>
12682 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12683 that marks the end of the range of a function, enter a line number
12684 entry that has a line number of zero and a PC offset that matches
12685 the end of the function. This starts a range of PC's for which no
12686 line number information is known.
12687 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12688 PC's for which no line number info is found (line number is zero)
12689 then we didn't find any valid line information.
12690 * symtab.h: Document use of zero line number entry.
12692 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12694 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12695 (have_ptrace_getvrregs): Define for run time checks.
12696 (gdb_vrregset_t): New type for Altivec register handling.
12697 (fetch_register, store_register): Fetch/store altivec register
12699 (fetch_altivec_register, store_altivec_register): New functions.
12700 (supply_vrregset, fill_vrregset): New functions.
12701 (fetch_altivec_registers, store_altivec_registers): New functions.
12702 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12705 2002-02-21 Jiri Smid <smid@suse.cz>
12707 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12709 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12711 * Makefile.in (armnbsd-nat.o): Update dependencies.
12712 * armnbsd-nat.c (supply_gregset): New function. Common code to
12713 supply the integer register set.
12714 (supply_fparegset): New function. Similar for FPA registers.
12715 (fetch_regs, fetch_fp_regs): Use them.
12716 (fetch_core_registers): Likewise.
12717 (fetch_elfcore_registers): New function.
12718 (arm_netbsd_elfcore_fns): New core-file type specification.
12719 (_initialize_arm_netbsd_nat): Register it.
12721 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12723 * armnbsd-nat.c: Include gdbcore.h.
12724 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12725 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12726 'void' to declaration, to shut up ARI.
12727 (fetch_core_registers): Make static. Rewrite using supply_register.
12728 (arm_netbsd_core_fns): New core-file type specification.
12729 (_initialize_arm_netbsd_nat): New function.
12731 2002-02-21 Christopher Faylor <cgf@redhat.com>
12733 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12736 2002-02-20 Christopher Faylor <cgf@redhat.com>
12738 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12741 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12743 * jv-exp.y (parse_number): Change type of implicit longs
12744 to builtin_type_uint64.
12746 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12748 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12749 to be an integer instead of a `union wait'.
12751 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12753 * mips-linux-nat.c: Call the operating system GNU/Linux.
12754 * mips-linux-tdep.c: Likewise.
12755 * mips-tdep.c: Likewise.
12757 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12760 * jv-exp.y (parse_number): Handle 64-bit integers.
12762 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12764 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12765 AC_STDC_HEADERS to AC_HEADER_STDC.
12766 * gdbserver/configure: Regenerated.
12768 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12770 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12772 * sparc-tdep.c (get_longjmp_target): Likewise.
12774 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12776 * News: Add news about ARM and Multi-arch. Mention the new target
12779 2002-02-19 Jim Blandy <jimb@redhat.com>
12781 * stabsread.c (error_type_complaint): Improve error message.
12783 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12785 * gdbserver/README: Update documentation.
12786 * gdbserver/configure.in: Update configury to match documentation.
12787 * gdbserver/Makefile.in: Likewise.
12788 * gdbserver/configure: Regenerated.
12789 * gdbserver/aclocal.m4: New file, generated by aclocal.
12790 * gdbserver/config.in: New file, generated by autoheader.
12792 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12794 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12797 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12799 * arm-tdep.h (enum arm_float_model): New enum.
12800 (struct gdbarch_tdep): Add fp_model.
12801 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12802 up floating-point conversions until we know the floating-point model
12803 in use by the inferior. Don't complain about being unable to
12804 determine the ABI of the inferior when we don't have one.
12805 (arm_extract_return_value): Support different floating-point models.
12806 (arm_store_return_value): Likewise.
12807 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12809 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12811 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12813 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12814 of ``current_gdbarch''.
12816 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12818 * armnbsd-nat.c : ANSIfy all function declarations.
12819 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12820 (fetch_inferior_registers): Re-implement in terms of above.
12821 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12822 (store_inferior_registers): Re-implement in terms of above.
12824 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12826 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12828 * arm-linux-tdep.c: Likewise.
12829 * config/arm/tm-linux.h: Likewise.
12831 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12833 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12834 * config/arm/nbsd.mt (TM_FILE): Delete.
12835 * config/arm/tm-nbsd.h: Delete.
12837 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12839 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12840 Initialize CALL_DUMMY_LENGTH.
12842 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12844 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12846 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12847 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12848 defines one thing and that is incorrect for this port.
12849 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12851 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12853 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12855 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12857 * win32-nat.c (display_selector): New function. Displays information
12858 about the information returned by GetThreadSelectorEntry API function.
12859 (display_selectors): New function. Displays the infomation of
12860 the selector given as argument, or of CS, DS ans FS selectors
12861 if no argument is given.
12862 ( _initialize_inftarg): Add "w32" as info prefix command.
12863 Add "info w32 selector" as command calling display_selectors.
12865 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12867 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12868 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12871 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12873 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12875 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12877 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12878 (arm_fix_call_dummy): Call it.
12879 (arm_call_dummy_breakpoint_offset): Delete.
12880 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12881 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12883 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12885 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12886 Default to func_frame_chain_valid.
12887 * gdbarch.h, gdbarch.c: Re-generate.
12888 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12890 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12892 * ppc-linux-nat.c: Update copyright.
12893 (fetch_register, store_register): Add tid parameter, don't compute
12895 (fetch_ppc_registers, store_ppc_registers): Add tid
12896 parameter. Pass it along to callees.
12897 (fetch_inferior_registers, store_inferior_registers): Compute tid
12898 here, and pass it to calleed functions.
12899 (fill_gregset, supply_fpregset): Clean up formatting.
12901 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12903 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12904 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12906 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12908 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12909 * gdbarch.c gdbarch.h: Regenerate.
12910 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12912 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12913 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12914 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12916 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12917 * arm-tdep.c (arm_get_longjmp_target): New function.
12918 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12919 this to a positive value register arm_get_longjmp_target as the
12921 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12922 (arm_linux_init_abi): Set up longjmp description in tdep.
12923 * armnbsd-nat.c (get_longjmp_target): Delete.
12924 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12925 description in tdep.
12926 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12927 (get_longjmp_target): Delete declaration.
12928 (GET_LONGJMP_TARGET): Delete.
12929 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12930 (GET_LONGJMP_TARGET): Delete.
12932 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12934 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12935 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12936 of ``current_gdbarch''.
12938 2002-02-17 Tom Tromey <tromey@redhat.com>
12940 * cli/cli-cmds.c (compare_strings): New function.
12941 (complete_command): Only print each unique item once.
12942 * completer.h (complete_line): Declare.
12943 * completer.c (complete_line): New function.
12944 (line_completion_function): Use it.
12946 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12948 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12949 * gdbarch.h, gdbarch.c: Re-generate.
12951 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12953 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12955 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12957 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12958 * valops.c (value_arg_coerce): Don't take the address of a reference
12959 to convert an argument to a reference.
12961 2002-02-15 Christopher Faylor <cgf@redhat.com>
12963 * win32-nat.c (get_image_name): New function.
12964 (handle_load_dll): Use get_image_name function.
12965 (get_child_debug_event): Avoid registering debug events until possibly
12966 execed process is started.
12967 (child_create_inferior): Allow invocation via shell so that command
12968 line redirection, etc. works ok.
12969 (_initialize_inftarg): Add new command: "set shell" to control whether
12970 a shell is used to start a process.
12972 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12974 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12975 instead of find_register_by_number.
12976 (cannot_store_register): Likewise.
12978 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12980 * dwarf2read.c: Replace fprintf (stderr, ...) by
12981 fprintf_unfiltered (gdb_stderr, ...).
12983 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12985 * gdbserver/gdbserver.1: Document --attach.
12987 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12989 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12991 * arm-tdep.c (arm_default_arm_le_breakpoint)
12992 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12993 (arm_default_thumb_be_breakpoint): New. Initialize them from
12994 traditional breakpoint defines.
12995 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12996 (arm_gdbarch_init): Initialize new breakpoint variables.
12997 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12998 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12999 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13000 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13002 (arm_netbsd_init_abi_common): ... here; new function.
13003 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13004 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13005 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13006 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13008 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13010 * arm-tdep.h (enum arm_abi): New enum.
13011 (struct gdbarch_tdep): New structure.
13012 (LOWEST_PC): Provide a default.
13013 (arm_gdbarch_register_os_abi): Declare new function.
13014 * arm-tdep.c (arm_abi_names): New array.
13015 (process_note_abi_tag_sections): New function.
13016 (get_elfosabi): New function.
13017 (arm_gdbarch_register_os_abi): New function.
13018 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13019 support for that ABI has been built in, then call the appropriate
13020 configuration routine. Use gdbarch_num_regs() to get the number
13022 (arm_dump_tdep): New function.
13023 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13024 place-holder functions.
13025 (_initialize_arm_tdep): Register them.
13026 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13028 * armnbsd-tdep.c: New file.
13029 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13030 * config/arm/nbsd.mt (TDEPFILES): Add it.
13031 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13033 * armnbsd-nat.c: Include regcache.h.
13034 * Makefile.in (armnbsd-nat.o): Update dependency list.
13036 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13038 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13040 * gdbserver/Makefile.in: Fix typos in target rules.
13042 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13044 Fix part of PR gdb/267.
13045 * linespec.c (find_methods): Handle constructors specially for now.
13047 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13049 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13051 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13052 standard_coerce_float_to_double().
13054 2002-02-14 Christopher Faylor <cgf@redhat.com>
13056 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13059 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13061 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13062 find_variant_by_name, because it confuses the multiarch
13063 framework. Return NULL if there isn't an architecture with the
13064 user supplied name, instead of forcing a different one without
13065 recording the change with the multiarch machinery.
13066 (find_variant_by_name): Delete.
13068 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13070 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13071 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13073 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13075 * stack.c (print_frame_info_base): When calling
13076 print_frame_info_listing_hook, set current_source_symtab.
13078 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13080 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13081 and remove unused $(INCLUDE_DIR).
13082 Add regcache.c to OBS.
13083 Add generated register protocol files to clean target.
13084 Update dependencies for new objects, obsolete old target code.
13086 * gdbserver/linux-low.c: Remove all platform-specific code to
13087 new files. Remove various dead code. Update to use regcache
13089 * gdbserver/remote-utils.c (fromhex): Add return statement
13091 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13093 (input_interrupt): Add integer parameter to match prototype
13094 of a signal handler.
13095 (outreg): Use register_data ().
13096 (prepare_resume_reply): Use gdbserver_expedite_regs.
13097 * gdbserver/server.c (main): Dynamically allocate own_buf because
13098 PBUFSIZ is no longer constant. Use registers_to_string () and
13099 registers_from_string ().
13100 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13101 for error (), fatal (), and warning (). Update definition of
13102 PBUFSIZ to use regcache functionality. Add include guard.
13103 * gdbserver/utils.c (fatal): Add missing ``const''.
13104 (warning): New function.
13106 * regformats/regdat.sh: Include "regcache.h" in generated files.
13107 Provide init_registers () function.
13108 * regformats/regdef.h: Add prototype for set_register_cache ().
13111 * gdbserver/linux-arm-low.c: New file.
13112 * gdbserver/linux-i386-low.c: New file.
13113 * gdbserver/linux-ia64-low.c: New file.
13114 * gdbserver/linux-m68k-low.c: New file.
13115 * gdbserver/linux-mips-low.c: New file.
13116 * gdbserver/linux-ppc-low.c: New file.
13117 * gdbserver/linux-sh-low.c: New file.
13119 * gdbserver/regcache.c: New file.
13120 * gdbserver/regcache.h: New file.
13122 * gdbserver/low-linux.c: Removed obsolete file.
13124 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13126 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13127 * config/i386/linux.mt: Likewise.
13128 * config/ia64/linux.mt: Likewise.
13129 * config/m68k/linux.mh: Likewise.
13130 * config/powerpc/linux.mh: Likewise.
13131 * config/mips/linux.mt: Likewise.
13133 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13135 * config/i386/i386lynx.mh: Mark gdbserver variables
13136 as (currently) obsolete for this target.
13137 * config/i386/nbsd.mt: Likewise.
13138 * config/i386/nbsdelf.mt: Likewise.
13139 * config/m32r/m32r.mt: Likewise.
13140 * config/m68k/m68klynx.mh: Likewise.
13141 * config/m68k/nbsd.mt: Likewise.
13142 * config/m68k/sun3os4.mh: Likewise.
13143 * config/mips/vr5000.mt: Likewise.
13144 * config/ns32k/nbsd.mt: Likewise.
13145 * config/pa/hppabsd.mh: Likewise.
13146 * config/pa/hppaosf.mh: Likewise.
13147 * config/powerpc/nbsd.mt: Likewise.
13148 * config/rs6000/rs6000lynx.mh: Likewise.
13149 * config/s390/s390.mt: Likewise.
13150 * config/s390/s390x.mt: Likewise.
13151 * config/sparc/sparclynx.mh: Likewise.
13152 * config/sparc/sun4os4.mh: Likewise.
13153 * config/i386/x86-64linux.mt: Likewise.
13154 * config/sparc/linux.mh: Likewise.
13156 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13158 * configure.tgt: Configure gdbserver only for known working
13159 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13160 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13161 SUBDIRS if it is configured. Update comment for ${nativefile}.
13162 * configure: Regenerated.
13164 2002-02-13 Michael Snyder <msnyder@redhat.com>
13166 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13168 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13169 (default_gcore_mach): Just return 0, work around a problem in bfd.
13170 (default_gcore_target): OK to return NULL if exec_bfd is null.
13171 (make_mem_sec): Use a cast, avoid a warning.
13173 * procfs.c (find_memory_regions_callback): Use a cast instead of
13174 calling host_pointer_to_address (which complains if
13175 sizeof (host pointer) != sizeof (target pointer)).
13176 (procfs_make_note_section): Avoid overflow in psargs string.
13178 * procfs.c (procfs_make_note_section): Make the default
13179 implementation return an error.
13181 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13183 * procfs.c (procfs_make_note_section): Provide a default definition
13184 (for alpha-dec-osf4.0f). Fix typos.
13186 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13188 * linux-proc.c: Add include of regcache.h.
13189 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13191 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13193 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13194 * memattr.c (create_mem_region): Disallow useless empty region.
13195 Regions are half-open intervals, so allow [A..B) [B..C) as
13198 2002-02-13 Michael Chastain <mec@shout.net>
13200 * defs.h: Kill CONST_PTR.
13201 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13202 * c-lang.c (c_builtin_types): Likewise.
13203 * ch-lang.c (ch_builtin_types): Likewise.
13204 * f-lang.c (f_builtin_types): Likewise.
13205 * language.c (unknown_builtin_types): Likewise.
13206 * m2-lang.c (m2_builtin_types): Likewise.
13207 * p-lang.c (pascal_builtin_types): Likewise.
13208 * scm-lang.c (c_builtin_types): Likewise.
13210 2002-02-13 Keith Seitz <keiths@redhat.com>
13212 * arm-tdep.h (arm_get_next_pc): Add declaration.
13214 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13216 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13217 with other related struct-returning functions.
13218 (arm_extract_struct_value_address): New function.
13219 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13220 initialize float_format, double_format and long_double_format as
13221 appropriate to the endianness of the target.
13222 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13223 (arm_use_struct_convention): Delete declaration.
13224 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13226 2002-02-13 Keith Seitz <keiths@redhat.com>
13228 * defs.h (core_addr_to_string_nz): New function.
13230 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13232 Apply missing bits of 2002-01-15 patch.
13233 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13234 (fill_fpregset): Use i387_fill_fsave.
13236 2002-02-12 Keith Seitz <keiths@redhat.com>
13238 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13239 (core_addr_to_string_nz): New function.
13241 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13243 * arm-linux-nat.c: Really include arm-tdep.h.
13244 * config/arm/tm-linux.h (struct type, struct value): Declare.
13246 2002-02-11 Michael Snyder <msnyder@redhat.com>
13248 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13249 (gcore section): Ifdef for Solaris and Unixware only.
13250 (procfs_do_thread_registers): Unixware needs one lwpstatus
13251 per thread (not one prstatus or pstatus).
13252 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13253 not over all gdb threads. For unixware, call elfcore_write_pstatus
13254 once before iterating over threads.
13256 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13258 * arm-tdep.h: New file.
13259 * arm-tdep.c: Include arm-tdep.h.
13260 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13261 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13262 (arm_print_float_info, arm_register_type, convert_to_extended)
13263 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13264 (arm_extract_return_value, arm_register_name): Make static.
13265 (arm_software_single_step): Similarly. Fix types in declaration.
13266 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13267 (arm_store_return_value, arm_store_struct_return): New functions.
13268 (arm_gdbarch_init): Register the above functions. Also register
13269 call_dummy_start_offset, sizeof_call_dummy_words,
13270 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13271 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13272 max_register_virtual_size, register_size. Set up
13273 prologue_cache.saved_regs here, rather than ...
13274 (_initialize_arm_tdep): ... here.
13275 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13277 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13278 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13279 (arm_print_float_info, arm_register_type, convert_to_extended)
13280 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13281 (arm_extract_return_value, arm_register_name): Delete declarations.
13282 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13283 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13284 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13285 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13286 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13287 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13288 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13289 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13290 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13291 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13292 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13293 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13295 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13296 * remote-rdi.c remote-rdp.c: Likewise.
13297 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13298 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13299 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13302 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13303 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13304 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13305 from non-ARM_ prefixed definitions.
13306 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13308 * remote-rdi.c remote-rdp.c: Likewise.
13309 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13311 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13313 * arm-tdep.c (arm_frameless_function_invocation)
13314 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13315 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13316 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13317 (arm_pop_frame, arm_get_next_pc): Make static.
13318 (arm_gdbarch_init): Register above in gdbarch structure.
13319 (arm_read_fp): Renamed from arm_target_read_fp.
13320 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13321 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13322 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13323 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13324 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13325 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13326 (arm_pc_is_thumb_dummy): Delete declarations.
13327 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13328 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13329 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13330 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13332 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13334 * symtab.c (compare_search_syms): New function.
13335 (sort_search_symbols): New function.
13336 (search_symbols): Sort symbols after searching rather than
13339 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13341 * NEWS: Linux -> GNU/Linux.
13343 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13345 * gdbarch.sh: For for level one methods, disallow a definition
13346 when partially multi-arched. Add comments explaining rationale.
13347 * gdbarch.h: Re-generate.
13349 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13351 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13352 multi-arch partial.
13354 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13356 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13357 field. Use diff -u.
13358 * gdbarch.c: Re-generate.
13360 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13362 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13363 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13366 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13368 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13369 multi-arch partial.
13370 (PUSH_ARGUMENTS): Switch to using predefault.
13371 * gdbarch.c: Regenerate.
13373 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13375 * valops.c (PUSH_ARGUMENTS): Delete definition.
13376 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13377 partial. Default to default_push_arguments.
13378 * gdbarch.h, gdbarch.c: Regenerate.
13380 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13382 * defs.h (throw_exception): Rename return_to_top_level. Update
13384 * utils.c (error_stream, internal_verror, quit): Ditto.
13385 * top.c (throw_exception, catcher): Ditto.
13386 * sparclet-rom.c (sparclet_load): Ditto.
13387 * remote.c (interrupt_query, minitelnet): Ditto.
13388 * remote-sds.c (interrupt_query): Ditto.
13389 * remote-mips.c (mips_error, mips_kill): Ditto.
13390 * ocd.c (interrupt_query): Ditto.
13391 * monitor.c (monitor_interrupt_query): Ditto.
13392 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13393 * target.h: Update comment.
13395 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13397 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13399 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13400 default_double_format.
13401 * gdbarch.h, gdbarch.c: Re-generate.
13402 * findvar.c (floatformat_unknown): Delete variable definition.
13403 * doublest.h (floatformat_unknown): Delete variable declaration.
13405 2002-02-09 Jim Blandy <jimb@redhat.com>
13407 * stabsread.c (read_type): Add code to parse Sun's syntax for
13408 prototyped function types.
13410 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13412 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13413 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13415 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13417 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13418 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13419 now _initialize_xcoffsolib gets called again and overrides the
13420 commands from solib.c in a native configuration.
13422 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13424 * doublest.c (store_typed_floating): Don't try to return a value.
13427 2002-02-08 Jim Blandy <jimb@redhat.com>
13429 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13430 is prototyped and has no arguments, print its argument list as
13433 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13435 * MAINTAINERS (write-after-approval): Add myself.
13436 (paper-trail): I've escaped!
13438 2002-02-08 Christopher Faylor <cgf@redhat.com>
13440 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13442 (_initialize_check_for_gdb_ini): Ditto.
13444 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13446 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13447 xaprintf -> xasprintf.
13449 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13451 * win32-nat.c: Remove use of printf and sprintf functions.
13453 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13455 * arm-tdep.c (arm_frame_chain_valid): Make static.
13456 (arm_push_arguments): Likewise.
13457 (arm_gdbarch_init): New function.
13458 (_initialize_arm_tdep): Call it.
13459 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13460 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13461 (FRAME_CHAIN_VALID): Delete.
13462 (arm_frame_chain_valid): Delete declaration.
13463 (PUSH_ARGUMENTS): Delete.
13464 (arm_push_arguments): Delete declaration.
13465 (CALL_DUMMY_P): Delete.
13467 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13468 Corinna Vinschen <vinschen@redhat.com>
13470 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13471 on builtin float types.
13473 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13475 * utils.c: Include <curses.h> before "bfd.h".
13476 * tui/tui-hooks.c: Likewise.
13477 * tui/tui.c: Likewise.
13478 * tui/tuiCommand.c: Likewise.
13479 * tui/tuiData.c: Likewise.
13480 * tui/tuiDataWin.c: Likewise.
13481 * tui/tuiDisassem.c: Likewise.
13482 * tui/tuiGeneralWin.c: Likewise.
13483 * tui/tuiIO.c: Likewise.
13484 * tui/tuiLayout.c: Likewise.
13485 * tui/tuiRegs.c: Likewise.
13486 * tui/tuiSource.c: Likewise.
13487 * tui/tuiSourceWin.c: Likewise.
13488 * tui/tuiStack.c: Likewise.
13489 * tui/tuiWin.c: Likewise.
13491 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13493 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13494 to include space for pseudoregs as well. Update loops accordingly.
13495 (sh_fp_frame_init_saved_regs): Ditto.
13496 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13498 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13500 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13501 Add Richard Earnshaw to Arm maintainers.
13503 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13505 * defs.h (warning_begin): Delete declaration.
13507 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13510 2002-02-07 Michael Snyder <msnyder@redhat.com>
13512 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13513 Logic bug, remove misplaced else.
13515 2002-02-07 Klee Dienes <klee@apple.com>
13517 * fork-inferior.c (fork_inferior): Add '!' to the list of
13518 characters that need to be quoted when building a string for the
13519 shell. Quote '!' specifically with a backslash, since CSH chokes
13520 when trying to evaluate "str!str".
13522 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13524 * rdi-share/host.h: Only provide a typedef for bool if it is not
13527 2002-02-04 Michael Snyder <msnyder@redhat.com>
13529 * breakpoint.h (enum bptype): Add new overlay event bp type.
13530 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13532 * breakpoint.c (create_internal_breakpoint): New function.
13533 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13534 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13535 (create_thread_event_breakpoint): Ditto.
13536 (create_solib_event_breakpoint): Ditto.
13537 (create_overlay_event_breakpoint): New function.
13538 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13539 (update_breakpoints_after_exec): Delete and re-initialize
13540 overlay event breakpoints after an exec. Add FIXME comment
13541 about longjmp breakpoint.
13542 (print_it_typical): Ignore overlay event breakpoints.
13543 (print_one_breakpoint): Ditto.
13545 (bpstat_what): Do not stop for overlay event breakpoints.
13546 (delete_breakpoint): Don't delete overlay event breakpoints.
13547 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13548 (breakpoint_re_set): Re-create overlay event breakpoint.
13550 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13551 (overlay_manual_command): Disable overlay breakpoints.
13552 (overlay_off_command): Disable overlay breakpoints.
13554 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13556 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13557 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13558 to here from config/tm-arm.h.
13559 (coff_sym_is_thumb): Make static.
13560 (arm_elf_make_msymbol_special): New function.
13561 (arm_coff_make_msymbol_special): New function.
13562 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13563 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13564 (coff_sym_is_thumb): Delete declaration.
13565 (arm_elf_make_msymbol_special): Declare.
13566 (arm_coff_make_msymbol_special): Declare.
13567 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13568 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13570 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13572 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13574 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13576 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13577 * gdbarch.c gdbarch.h: Regenerate.
13578 * arch-utils.c (default_print_float_info): New function.
13579 * arch-utils.h (default_print_float_info): Prototype it.
13580 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13581 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13582 (PRINT_FLOAT_INFO): Document it.
13584 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13585 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13586 (PRINT_FLOAT_INFO): Define.
13588 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13590 * win32-nat.c (_initialize_check_for_gdb_ini):
13591 Add typecast to sprintf argument to suppress a warning.
13593 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13595 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13596 to allow easier handling of pass state.
13597 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13598 that gives exception name and address.
13599 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13600 and set last_sig value to ourstatus->value.sig. Some missing
13602 (child_continue): Correctly report continue_status.
13603 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13604 TARGET_SIGNAL_0 (new default value).
13605 (child_resume): consider sig argument passed to decide if
13606 the exception should be passed to debuggee or not.
13608 2002-02-05 Michael Snyder <msnyder@redhat.com>
13610 * regcache.c (fetch_register): Call target_fetch_register
13611 only if we don't call FETCH_PSEUDO_REGISTER.
13612 (store_register): Call target_store_register only if we
13613 don't call STORE_PSEUDO_REGISTER.
13615 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13617 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13618 ELF_MAKE_MSYMBOL_SPECIAL.
13619 * gdbarch.c, gdbarch.h: Regenerate.
13620 * arch-utils.c (default_make_msymbol_special): New function.
13621 * arch-utils.h (default_make_msymbol_special): Export.
13622 * elfread.c (elf_symtab_read): Compile use of
13623 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13625 * coffread.c (coff_symtab_read): Ditto, for
13626 COFF_MAKE_MSYMBOL_SPECIAL.
13628 2002-02-05 Jim Blandy <jimb@redhat.com>
13630 * solib-svr4.c (svr4_truncate_ptr): New function.
13631 (svr4_relocate_section_addresses): Do the address arithmetic with
13632 the appropriate truncation for target addresses, even when
13633 CORE_ADDR is larger than a target address.
13635 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13637 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13642 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13645 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13647 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13649 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13651 * gdbserver/linux-low.c: Remove unused include files.
13653 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13655 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13656 (read_inferior_memory): Use it.
13657 (write_inferior_memory): Likewise.
13659 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13661 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13662 grubbing through sys_errlist.
13664 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13666 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13668 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13669 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13671 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13673 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13674 (do_sfunc, set_cmd_sfunc): New functions.
13676 * command.h (struct cmd_list_element): Add field func.
13677 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13678 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13679 * cli/cli-decode.h: Ditto.
13681 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13682 (help_all, help_cmd_list): Ditto.
13683 (find_cmd, complete_on_cmdlist): Ditto.
13684 * top.c (execute_command): Ditto.
13686 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13689 * infcmd.c (notice_args_read): Fix function signature.
13691 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13692 * cli/cli-decode.c (add_set_cmd): Ditto.
13693 * utils.c (initialize_utils): Ditto.
13694 * maint.c (_initialize_maint_cmds): Ditto.
13695 * infrun.c (_initialize_infrun): Ditto.
13696 * demangle.c (_initialize_demangler): Ditto.
13697 * remote.c (add_packet_config_cmd): Ditto.
13698 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13699 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13700 * proc-api.c (_initialize_proc_api): Ditto.
13701 * kod.c (_initialize_kod): Ditto.
13702 * valprint.c (_initialize_valprint): Ditto.
13703 * top.c (init_main): Ditto.
13704 * infcmd.c (_initialize_infcmd): Ditto.
13705 * corefile.c (_initialize_core): Ditto.
13706 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13707 * arch-utils.c (initialize_current_architecture): Ditto.
13708 (_initialize_gdbarch_utils): Ditto.
13709 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13711 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13712 * wince.c (_initialize_inftarg): Ditto.
13713 * symfile.c (_initialize_symfile): Ditto.
13714 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13715 * language.c (_initialize_language): Ditto.
13716 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13718 2002-02-04 Michael Snyder <msnyder@redhat.com>
13720 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13722 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13724 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13725 Add rules for building the register data files.
13727 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13729 * regformats/regdat.sh: Add braces to the definition of
13730 expedite_regs_${arch}.
13732 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13734 * regformats/regdef.h (struct reg): Add comment describing the
13735 requirements for offset and size fields.
13737 2002-02-04 Andreas Schwab <schwab@suse.de>
13739 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13740 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13742 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13744 * gdbarch.sh (copyright): Update years in generated header.
13745 (SMASH_TEXT_ADDRESS): Add rule.
13746 * gdbarch.h, gdbarch.c: Re-generate.
13747 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13748 * dbxread.c: Likewise.
13749 * dwarfread.c: Likewise.
13750 * elfread.c: Likewise.
13751 * somread.c: Likewise.
13753 * arm-tdep.c (arm_smash_text_address): New function.
13754 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13756 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13758 Add support for hardware watchpoints on win32 native.
13759 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13760 CONTEXT_DEBUG_REGISTERS.
13761 (dr variable): New variable. Static array containing a local copy
13762 of debug registers.
13763 (debug_registers_changed): New variable. Reflects when debug registers
13764 are changed and need to be written to inferior.
13765 (debug_registers_used): New variable. Reflects when any debug register
13766 was set, used when new threads are created.
13767 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13769 (thread_rec): Set dr array if id is the thread of current_event .
13770 (child_continue, child_resume): Change the debug registers for all
13771 threads if debug_registers_changed.
13772 (child_add_thread): Change the debug registers if debug_registers_used.
13773 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13774 Link nm.h to new nm-cygwin.h file.
13775 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13776 of hardware registers.
13778 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13780 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13781 Restore behavour broken by 2002-01-20 Andrew Cagney
13782 <ac131313@redhat.com> IEEE_FLOAT removal.
13784 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13786 * c-valprint.c (c_val_print): Pass a proper valaddr to
13787 cp_print_class_method.
13788 * valops.c (search_struct_method): If there is only one method
13789 and args is NULL, return that method.
13791 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13793 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13794 accessing tag_name directly.
13796 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13798 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13799 of accessing tag_name directly.
13801 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13804 * gdbtypes.c (replace_type): New function.
13805 * gdbtypes.h (replace_type): Add prototype.
13806 * stabsread.c (read_type): Use replace_type.
13808 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13810 * Makefile.in (memattr.o): Add missing dependencies rule.
13812 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13814 * breakpoint.c (break_at_finish_command): Really export.
13815 (break_at_finish_at_depth_command): Ditto.
13816 (tbreak_at_finish_command): Ditto.
13817 * hppa-tdep.c: Include completer.h.
13818 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13819 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13821 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13823 * utils.c (do_write): New function.
13824 (error_stream): Rewrite combining the code from error_begin and
13826 (verror): Rewrite using error_stream.
13827 (error_begin): Delete function.
13829 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13831 * utils.c (error_begin): Make static.
13832 * defs.h (error_begin): Delete declaration.
13834 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13835 (decode_line_1): Use cplusplus_error instead of error_begin,
13836 cplusplus_hint and return_to_top_level.
13837 * coffread.c (coff_symfile_read): Use error instead of error_begin
13838 and return_to_top_level.
13839 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13841 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13843 * language.h (type_error, range_error): Make string parameter
13845 * language.c (warning_pre_print): Delete extern declaration.
13846 * dwarfread.c (warning_pre_print): Ditto.
13847 * language.c (type_error, range_error): Rewrite to use verror and
13848 vwarning instead of warning_begin.
13850 2002-02-01 Michael Snyder <msnyder@redhat.com>
13852 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13853 (set_ignore_count): Move misplaced comment back where it belongs.
13855 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13857 * command.h (NO_FUNCTION): Delete macro.
13858 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13859 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13860 * tracepoint.c (_initialize_tracepoint): Ditto.
13861 * cli/cli-decode.c (add_set_cmd): Ditto.
13862 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13864 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13866 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13867 Update ``this'' pointer when calling virtual functions.
13869 2002-02-01 Michael Snyder <msnyder@redhat.com>
13871 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13872 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13874 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13876 * regformats/reg-arm.dat: New file.
13877 * regformats/reg-i386.dat: New file.
13878 * regformats/reg-ia64.dat: New file.
13879 * regformats/reg-m68k.dat: New file.
13880 * regformats/reg-mips.dat: New file.
13881 * regformats/reg-ppc.dat: New file.
13882 * regformats/reg-sh.dat: New file.
13883 * regformats/regdef.h: New file.
13884 * regformats/regdat.sh: New file.
13886 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13888 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13889 (arm_frame_args_address, arm_frame_locals_address): New functions.
13890 (arm_frame_num_args): New function.
13891 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13892 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13893 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13895 2002-01-31 Michael Snyder <msnyder@redhat.com>
13897 * breakpoint.c (break_at_finish_command): Export.
13898 (break_at_finish_at_depth_command): Export.
13899 (tbreak_at_finish_command): Export.
13900 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13901 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13902 "txbreak" commands, which are HPPA specific.
13904 * printcmd.c (disassemble_command): Remove an ancient
13905 artifact of an old merge.
13907 * symfile.h (enum overlay_debugging_state):
13908 Define enum constant values for overlay mode.
13909 * symfile.c (overlay_debugging): Use enums instead of literals.
13910 (overlay_is_mapped, overlay_auto_command,
13911 overlay_manual_command): Ditto.
13913 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13914 breakpoint_here_p, breakpoint_inserted_here_p,
13915 breakpoint_thread_match, bpstat_stop_status,
13916 describe_other_breakpoints, check_duplicates, clear_command):
13917 Coding standard fixes.
13919 * target.c (target_xfer_memory): Add spaces, coding standard.
13920 (do_xfer_memory): Add missing line to trust-readonly
13921 code: check bfd SEC_READONLY flag for section.
13923 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13925 * PROBLEMS: Fix typo, 5.1->5.1.1.
13927 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13929 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13930 data symbols, since we search based on textlow and texthigh.
13931 (find_pc_sect_symtab): Likewise.
13933 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13935 * defs.h (vwarning): Declare.
13936 * utils.c (vwarning): New function.
13937 (warning): Call vwarning.
13938 (warning_begin): Delete function.
13940 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13941 the warning message.
13942 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13945 2002-01-30 Michael Snyder <msnyder@redhat.com>
13947 * NEWS: Mention "set trust-readonly-sections" command.
13948 Mention generate-core-file command.
13950 2002-01-15 Michael Snyder <msnyder@redhat.com>
13952 * target.c: New command, "set trust-readonly-sections on".
13953 (do_xfer_memory): Honor the suggestion to trust readonly sections
13954 by reading them from the object file instead of from the target.
13955 (initialize_targets): Register command "set trust-readonly-sections".
13957 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13959 * parse.c (target_map_name_to_register): Simplify, search regs and
13960 pseudo-regs using a single loop.
13962 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13964 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13966 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13968 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13969 * config/i386/i386v42mp.mh: Add i387-nat.o .
13970 * i386v4-nat.c: Include i387-nat.h.
13971 (supply_fpregset): Use i387_supply_fsave.
13972 (fill_fpregset): Use i387_fill_fsave.
13974 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13976 * arm-tdep.c (arm_call_dummy_words): Define.
13977 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13978 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13979 (CALL_DUMMY_WORDS): Define.
13980 (arm_call_dummy_words): Declare.
13981 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13982 (arm_linux_call_dummy_words): Declare.
13984 2002-01-30 Andreas Schwab <schwab@suse.de>
13986 * m68klinux-nat.c: Fix last change to use regcache_collect
13987 instead of referencing registers[] directly.
13989 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13991 * parse.c (target_map_name_to_register): Delete code wrapped in
13992 #ifdef REGISTER_NAME_ALIAS_HOOK.
13994 2002-01-28 Michael Snyder <msnyder@redhat.com>
13996 * regcache.c (legacy_read_register_gen): Need to be able to
13997 read pseudo-register as well as real register.
13998 (legacy_write_register_gen): Ditto.
14000 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14002 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14003 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14004 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14005 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14006 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14007 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14008 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14009 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14010 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14011 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14012 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14013 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14014 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14015 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14016 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14017 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14018 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14019 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14020 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14021 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14023 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14025 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14026 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14027 (initialize_current_architecture): Update target_byte_order using
14028 information from BFD.
14029 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14030 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14032 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14034 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14035 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14037 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14038 #ifdef INVALID_FLOAT.
14039 * infcmd.c (do_registers_info): Ditto.
14040 * values.c (unpack_double): Ditto. Add comment.
14042 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14043 already commented out.
14045 2002-01-26 Andreas Schwab <schwab@suse.de>
14047 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14048 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14049 registers and add support for PTRACE_GETREGS.
14051 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14053 GDB 5.1.1 released from 5.1 branch.
14054 * NEWS: Add 5.1.1 news.
14055 * README: Sync with 5.1 branch.
14057 2002-01-23 Fred Fish <fnf@redhat.com>
14059 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14060 stabstring on initial malloc. Reallocing will copy it for us,
14063 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14065 * Makefile.in (hpread_h): Delete.
14066 (HFILES_NO_SRCDIR): Remove hpread.h.
14067 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14068 (hpread.o): Update dependencies.
14069 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14071 * hp-psymtab-read.c: Remove file.
14072 * hp-symtab-read.c: Remove file.
14073 * hpread.h: Remove file.
14075 * hpread.c: Merge all contents of hp-psymtab-read.c,
14076 hp-symtab-read.c and hpread.h into this file, as it was prior to
14079 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14080 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14081 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14082 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14084 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14086 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14087 fill_gregset): Call gdbarch_tdep() just once, assign result to
14088 variable and use that, instead of calling the function several
14091 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14093 * configure.host: Accept sparcv9 as alias for sparc64.
14094 * configure.tgt: Likewise.
14096 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14098 * solib-aix5.c (build_so_list_from_mapfile)
14099 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14100 arguments is not reversed.
14101 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14102 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14104 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14106 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14107 modified version of obsolete sh_fetch_pseudo_register.
14108 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14109 (sh4_register_read): New function.
14110 (sh_pseudo_register_write): New function. Renamed and modified
14111 version of obsolete sh_store_pseudo_register.
14112 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14113 (sh4_register_write): New function.
14114 (sh_gdbarch_init): Remove setting of gdbarch function
14115 fetch_pseudo_register and store_pseudo_register. Remove setting of
14116 register_convert_to_raw, register_convert_to_virtual,
14117 register_convertible.
14118 (sh_sh4_register_convertible): Delete. No longer needed. All is
14119 taken care by architecture specific functions
14120 register_read/register_write.
14121 (sh_sh4_register_convert_to_virtual): Make static.
14122 (sh_sh4_register_convert_to_raw): Ditto.
14124 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14126 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14127 (floatformat_is_nan, floatformat_mantissa): Ditto.
14129 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14130 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14131 builtin_type_ieee_double_little,
14132 builtin_type_ieee_double_littlebyte_bigword,
14133 builtin_type_m68881_ext, builtin_type_i960_ext,
14134 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14135 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14136 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14137 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14139 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14141 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14142 parameter. Set frameless flag if it exists and depended of
14143 whether the scanned function is frameless or not.
14144 (xstormy16_skip_prologue): If function is frameless, return
14145 result of xstormy16_scan_prologue().
14146 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14149 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14151 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14152 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14153 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14154 sh_sh4_register_byte, sh_sh4_register_raw_size,
14155 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14156 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14157 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14158 sh_store_pseudo_register, sh_do_pseudo_register): Call
14159 gdbarch_tdep() just once, assign result to variable and use that,
14160 instead of calling the function several times.
14162 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14164 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14165 macros instead of LAST_FPU_CTRL_REGNUM.
14166 (store_register): Likewise.
14168 2002-01-21 Jim Blandy <jimb@redhat.com>
14170 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14171 is up-to-date before running the program, not just when a program
14174 2002-01-21 Fred Fish <fnf@redhat.com>
14176 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14177 when we have found all instructions we are looking for.
14179 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14181 * arm-tdep.c (arm_register_name): New function.
14182 (arm_registers_names): Make static.
14183 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14184 (arm_register_name): Declare.
14185 (REGISTER_NAME): Use it.
14187 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14188 Kevin Buettner <kevinb@redhat.com>
14190 Convert arm targets to new FRAME interface.
14191 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14192 (arm_frame_find_save_regs): Delete.
14193 (arm_frame_init_saved_regs): New.
14194 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14195 Allocate extra_info as required. Convert all uses of fsr.regs
14196 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14198 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14199 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14200 (check_prologue_cache, save_prologue_cache): Likewise.
14201 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14202 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14203 (FRAME_FIND_SAVED_REGS): Delete.
14204 (arm_frame_find_saved_regs): Delete prototype.
14205 (arm_frame_init_saved_regs): New prototype.
14206 (FRAME_INIT_SAVED_REGS): Define.
14208 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14210 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14212 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14214 From Jeff Law <law@redhat.com>:
14215 * infttrace.c: Include <sys/pstat.h>.
14216 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14217 exec file if the ttrace equivalent fails.
14219 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14221 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14222 (closeLogFile): Ditto.
14224 2002-01-20 Michael Chastain <mec@shout.net>
14226 * top.c (print_gdb_version): Bump copyright year to 2002.
14228 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14230 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14231 Zannoni and Eli Zaretskii.
14233 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14235 * buildsym.c: Update copyright years.
14236 * c-typeprint.c: Likewise.
14237 * dwarf2read.c: Likewise.
14238 * f-typeprint.c: Likewise.
14239 * gdbtypes.c: Likewise.
14240 * gdbtypes.h: Likewise.
14241 * hp-symtab-read.c: Likewise.
14242 * hpread.c: Likewise.
14243 * mdebugread.c: Likewise.
14244 * p-typeprint.c: Likewise.
14246 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14248 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14249 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14250 byte-order selectable.
14251 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14252 * arch-utils.c: Ditto.
14253 (set_endian): Ditto.
14254 (set_endian_from_file): Ditto.
14255 * gdbserver/low-sim.c (create_inferior): Ditto.
14256 * gdbarch.sh: Ditto.
14257 * gdbarch.h: Re-generate.
14258 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14259 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14260 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14261 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14262 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14263 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14264 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14265 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14267 * config/mips/tm-wince.h: Remove #undef of macro
14268 TARGET_BYTE_ORDER_SELECTABLE.
14269 * config/sh/tm-wince.h: Ditto.
14271 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14273 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14274 member function fields. Add accessor macro
14275 TYPE_FN_FIELD_ARTIFICIAL.
14276 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14277 * c-typeprint.c (c_type_print_base): Skip artificial member
14280 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14282 * f-typeprint.c: Delete unused function f_type_print_args.
14283 * p-typeprint.c: Delete unused function pascal_type_print_args.
14285 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14287 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14288 comment. Add ``artificial'' to ``union field_location''.
14290 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14292 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14293 * mdebugread.c (parse_symbol): Likewise.
14294 * stabsread.c (define_symbol): Likewise.
14295 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14296 initializing TYPE_FIELD_BITPOS to n (obsolete).
14297 (hpread_doc_function_type): Likewise.
14298 * hpread.c (hpread_function_type): Likewise.
14300 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14302 * configure.in (host_makefile_frag): Only require a host makefile
14303 fragment when a native build.
14304 * configure: Re-generate.
14306 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14308 * doublest.h (floatformat_from_type): Declare.
14309 * doublest.c (floatformat_from_type): New function.
14310 (convert_typed_floating): Use.
14312 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14313 call to function floatformat_from_type.
14315 * gdbarch.sh (IEEE_FLOAT): Delete.
14316 * gdbarch.h, gdbarch.c: Re-generate.
14317 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14318 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14319 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14320 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14321 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14322 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14323 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14324 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14325 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14326 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14327 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14328 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14330 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14331 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14333 * sh-tdep.c (sh_gdbarch_init): Ditto.
14334 * mips-tdep.c (mips_gdbarch_init): Ditto.
14335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14336 * cris-tdep.c (cris_gdbarch_init): Ditto.
14338 2002-01-20 Jiri Smid <smid@suse.cz>
14340 * configure.host, configure.tgt: Support x86-64.
14341 * NEWS: Note new target x86-64.
14343 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14344 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14345 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14346 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14347 x86-64-linux-nat.o): Fix dependencies.
14349 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14351 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14352 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14353 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14354 * config/sparc/xm-sun4os4.h: Delete file.
14355 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14357 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14359 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14360 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14361 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14362 * config/i386/i386lynx.mh (XM_FILE): Delete.
14363 * config/rs6000/xm-rs6000ly.h: Delete file.
14364 * config/sparc/xm-sparclynx.h: Delete file.
14365 * config/m68k/xm-m68klynx.h: Delete file.
14366 * config/i386/xm-i386lynx.h: Delete file.
14367 * config/xm-lynx.h: Delete file.
14368 * config/djgpp/fnchange.lst: Update.
14370 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14372 * alpha-tdep.c (alpha_register_byte): New function.
14373 (alpha_register_raw_size): Ditto.
14374 (alpha_register_virtual_size): Ditto.
14375 (alpha_skip_prologue_internal): Renamed from
14376 alpha_skip_prologue.
14377 (alpha_skip_prologue): New version that calls
14378 alpha_skip_prologue_internal.
14379 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14380 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14381 second argument from alpha_skip_prologue.
14382 (REGISTER_BYTE): Use alpha_register_byte.
14383 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14384 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14385 (FRAMELESS_FUNCTION_INVOCATION): Use
14386 generic_frameless_function_invocation_not.
14387 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14388 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14390 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14392 * config/mips/xm-news-mips.h: Delete file.
14393 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14395 * config/m88k/xm-m88k.h: Delete file.
14396 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14397 * config/m88k/xm-delta88v4.h: Ditto.
14398 * config/m88k/xm-delta88.h: Ditto.
14400 * config/alpha/xm-fbsd.h: Delete file.
14401 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14403 * config/sparc/xm-sparc.h: Delete file.
14404 * Makefile.in (xm-sun4os4.h): Delete dependency.
14405 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14406 * config/sparc/xm-sun4os4.h: Ditto.
14407 * config/sparc/xm-linux.h: Ditto.
14409 * config/i386/xm-windows.h: Delete file.
14411 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14413 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14414 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14416 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14418 * alpha-tdep.c (alpha_call_dummy_words): New.
14419 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14420 (CALL_DUMMY_P): Define.
14421 (CALL_DUMMY_WORDS): Define.
14422 (SIZEOF_CALL_DUMMY_WORDS): Define.
14424 2002-01-19 Per Bothner <per@bothner.com>
14426 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14427 isn't NULL, which can happen with some gcj-3.x-produced code.
14429 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14431 * alpha-tdep.c (alpha_register_virtual_type): New function.
14432 (alpha_init_frame_pc_first): Ditto.
14433 (alpha_fix_call_dummy): Ditto.
14434 (alpha_store_struct_return): Ditto.
14435 (alpha_extract_struct_value_address): Ditto.
14436 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14437 alpha_register_virtual_type.
14438 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14439 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14440 alpha_extract_struct_value_address.
14441 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14442 (INIT_FRAME_PC): Use init_frame_pc_noop.
14443 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14445 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14447 * i386gnu-nat.c: Include "i386-tdep.h".
14448 (fetch_fpregs): Simplify code dealing with uninitialized floating
14449 point states such that it doesn't require FP7_REGNUM.
14451 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14453 * alpha-tdep.c (frame_extra_info): New.
14454 (alpha_find_saved_regs): Make static. Use
14456 (alpha_frame_init_saved_regs): New function.
14457 (alpha_frame_saved_pc): Use frame->extra_info.
14458 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14459 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14460 (init_extra_frame_info): Rename to...
14461 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14462 (alpha_print_extra_frame_info): New function.
14463 (alpha_frame_locals_address): Ditto.
14464 (alpha_frame_args_address): Ditto.
14465 (alpha_pop_frame): Use frame->extra_info.
14466 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14467 alpha_frame_args_address.
14468 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14469 (alpha_find_saved_regs): Remove prototype.
14470 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14471 (EXTRA_FRAME_INFO): Remove.
14472 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14473 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14475 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14477 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14478 (alpha_cannot_fetch_register): Ditto.
14479 (alpha_cannot_store_register): Ditto.
14480 (alpha_register_convertible): Ditto.
14481 (alpha_use_struct_convention): Ditto.
14482 * config/alpha/tm-alpha.h: Update copyright years.
14483 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14484 (INNER_THAN): Use core_addr_lessthan.
14485 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14486 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14487 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14488 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14489 (FRAME_CHAIN): Remove unnecessary cast.
14491 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14493 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14496 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14498 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14499 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14500 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14501 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14502 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14503 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14504 * x86-64-linux-nat.c: Ditto.
14506 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14508 * alpha-tdep.c (alpha_register_name): New function.
14509 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14510 (REGISTER_NAME): Define.
14512 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14514 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14516 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14518 * alpha-tdep.c: Update copyright years.
14519 (alpha_next_pc): New function.
14520 (alpha_software_single_step): Ditto.
14521 * config/alpha/tm-alpha.h: Add prototype for
14522 alpha_software_single_step.
14524 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14526 * alphabsd-nat.c: Update copyright years.
14527 (fill_gregset): Use regcache_collect.
14528 (fill_fpregset): Likewise.
14529 (fetch_inferior_registers): Only fetch integer registers
14530 if requested to do so.
14531 (store_inferior_registers): Only store integer registers
14532 if requested to do so.
14534 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14536 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14537 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14538 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14539 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14540 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14541 * config/arm/linux.mh (XDEPFILES): Delete.
14542 * config/arm/nbsd.mh (XDEPFILES): Delete.
14543 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14544 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14545 * config/i386/i386m3.mh (XDEPFILES): Delete.
14546 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14547 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14548 * config/i386/fbsd.mh (XDEPFILES): Delete.
14549 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14550 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14551 * config/i386/i386v4.mh (XDEPFILES): Delete.
14552 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14553 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14554 * config/i386/i386aix.mh (XDEPFILES): Delete.
14555 * config/i386/go32.mh (XDEPFILES): Delete.
14556 * config/i386/cygwin.mh (XDEPFILES): Delete.
14557 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14558 * config/i386/i386mach.mh (XDEPFILES): Delete.
14559 * config/i386/i386v32.mh (XDEPFILES): Delete.
14560 * config/i386/linux.mh (XDEPFILES): Delete.
14561 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14562 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14563 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14564 * config/i386/i386sco.mh (XDEPFILES): Delete.
14565 * config/i386/i386v.mh (XDEPFILES): Delete.
14566 * config/i386/nbsd.mh (XDEPFILES): Delete.
14567 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14568 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14569 * config/i386/symmetry.mh (XDEPFILES): Delete.
14570 * config/i386/obsd.mh (XDEPFILES): Delete.
14571 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14572 * config/ia64/linux.mh (XDEPFILES): Delete.
14573 * config/ia64/aix.mh (XDEPFILES): Delete.
14574 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14575 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14576 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14577 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14578 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14579 * config/m68k/linux.mh (XDEPFILES): Delete.
14580 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14581 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14582 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14583 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14584 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14585 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14586 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14587 * config/m88k/delta88.mh (XDEPFILES): Delete.
14588 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14589 * config/m88k/m88k.mh (XDEPFILES): Delete.
14590 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14591 * config/mips/linux.mh (XDEPFILES): Delete.
14592 * config/mips/irix6.mh (XDEPFILES): Delete.
14593 * config/mips/irix5.mh (XDEPFILES): Delete.
14594 * config/mips/irix4.mh (XDEPFILES): Delete.
14595 * config/mips/irix3.mh (XDEPFILES): Delete.
14596 * config/mips/decstation.mh (XDEPFILES): Delete.
14597 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14598 (NATDEPFILES): Move core-aout.o to here.
14599 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14600 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14601 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14602 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14603 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14604 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14605 * config/pa/hpux11.mh (XDEPFILES): Delete.
14606 * config/powerpc/aix.mh (XDEPFILES): Delete.
14607 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14608 * config/powerpc/linux.mh (XDEPFILES): Delete.
14609 * config/romp/rtbsd.mh: Rename XDEPFILES.
14610 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14611 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14612 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14613 * config/s390/s390.mh (XDEPFILES): Delete.
14614 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14615 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14616 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14617 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14618 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14619 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14620 * config/sparc/linux.mh (XDEPFILES): Delete.
14621 * config/vax/vaxult.mh (XDEPFILES): Delete.
14622 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14623 * Makefile.in (DEPFILES): Remove XDEPFILES.
14625 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14627 * utils.c (internal_verror): Fix comments, default is yes not no.
14628 Update queries to match. Default to quit and dump core.
14630 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14632 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14634 * defs.h, event-top.c, gdbcmd.h: Ditto.
14635 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14636 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14637 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14638 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14639 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14640 * mi/mi-main.c:Ditto.
14642 * stack.c, symfile.c: Update copyright.
14644 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14646 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14647 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14648 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14649 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14651 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14653 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14654 * gdbserver/low-lynx.c (myattach): Likewise.
14655 * gdbserver/low-nbsd.c (myattach): Likewise.
14656 * gdbserver/low-sim.c (myattach): Likewise.
14657 * gdbserver/low-sparc.c (myattach): Likewise.
14658 * gdbserver/low-sun3.c (myattach): Likewise.
14660 * gdbserver/low-linux.c (myattach): New function.
14662 * gdbserver/server.c (attach_inferior): New function.
14663 (main): Handle "--attach".
14665 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14667 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14670 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14672 * c-typeprint.c (is_type_conversion_operator): Add additional
14673 check for non-conversion operators.
14675 2002-01-15 Michael Snyder <msnyder@redhat.com>
14677 * linux-proc.c: Add "info proc" command, a la procfs.c.
14678 (read_mapping): New function, abstract and re-use code.
14679 (linux_find_memory_regions): Use new func read_mapping.
14680 (linux_info_proc_cmd): New function, implement "info proc".
14681 (_initialize_linux_proc): Add new command "info proc".
14683 2002-01-15 Michael Snyder <msnyder@redhat.com>
14685 * symfile.c (generic_load): Use bfd_map_over_sections method
14686 instead of manipulating bfd structure members directly.
14687 (add_section_size_callback): New function, bfd sections callback
14688 used by generic_load.
14689 (load_sections_callback): New function, bfd sections callback
14690 used by generic_load.
14692 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14694 [Based on work by Jim Blandy]
14695 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14696 (builtin_type_vec128): Export.
14697 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14699 (builtin_type_vec128): New builtin type for 128 bit vector
14701 (build_gdbtypes): Initialize builtin_type_v16qi and
14702 builtin_type_v8hi. Create the vec128 register builtin type
14704 (build_builtin_type_vec128): New function.
14705 (_initialize_gdbtypes): Register builtin_type_v16qi and
14706 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14707 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14708 AltiVec register to new builtin type.
14710 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14712 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14715 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14717 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14718 CLEAN_UP_REGISTER_VALUE.
14719 * regcache.c (supply_register): Update only call.
14721 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14723 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14724 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14725 a29k-*-vxworks* targets as obsolete.
14727 2002-01-14 Michael Snyder <msnyder@redhat.com>
14729 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14730 until we can resolve portability issues.
14731 * gregset.h: Remove references to fpxregs.
14732 * gcore.c (gcore_command): Initialize note_sec to NULL.
14734 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14736 * signals.c (target_signal_to_name): Rewrite. Only use
14737 signals[].name when in bounds and non-NULL.
14739 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14741 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14742 * signals.c (target_signal_to_name): Verify that SIG is within the
14743 bounds of the signals array.
14745 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14747 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14749 2002-01-13 Keith Seitz <keiths@redhat.com>
14751 * stack.c (print_frame_info_base): Print the frame's pc
14752 only if when print_frame_info_listing_hook is not defined.
14754 2002-01-13 Keith Seitz <keiths@redhat.com>
14756 * varobj.c (varobj_set_value): Make sure that there were no
14757 errors evaluating the object before attempting to set its
14759 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14760 so this offset adjustment is no longer necessary.
14761 (create_child): Don't set the error flag if the child is
14762 a CPLUS_FAKE_CHILD.
14763 (value_of_child): If value_fetch_lazy fails, return NULL
14764 so that callers will be notified that an error occurred.
14765 (c_value_of_variable): Delay check of variable's validity
14766 until later. We actually want all structs and unions to have
14768 Do not return "???" for variables which could not be evaluated.
14769 This error condition must be returned to the caller so that it
14770 can get the error condition from gdb.
14771 (cplus_name_of_child): Adjust index for vptr before figuring
14772 out the name of the child.
14773 (cplus_value_of_child): If a child's (real) parent is not valid,
14774 don't even bother trying to give a value for it. Just return
14775 an error. Change all instances in this function.
14776 (cplus_type_of_child): If our parent is one of the "fake"
14777 parents, we need to get at the type of the real parent, and
14778 derive the child's true type using this information.
14780 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14782 From 2002-01-09 John Marshall <johnm@falch.net>:
14783 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14784 sources.redhat.com, and tweak some related URLs which had
14785 suffered from linkrot.
14787 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14790 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14791 structures passed in registers.
14793 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14795 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14796 white space which prevented compilation. Reported by DSK
14797 <dsk@student.unsw.edu.au>.
14799 2002-01-11 Michael Snyder <msnyder@redhat.com>
14801 * symfile.c (build_section_addr_info_from_section_tab):
14802 Use bfd access method instead of manipulating bfd directly.
14803 (syms_from_objfile): Ditto.
14804 (simple_overlay_update_1): Ditto.
14805 (simple_overlay_update): Ditto.
14806 (generic_load): Ditto.
14807 (overlay_unmapped_address): FIXME comment, bfd access methods.
14808 (sections_overlap): FIXME comment, bfd access methods.
14809 (pc_in_mapped_range): FIXME comment, bfd access methods.
14810 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14811 (section_is_mapped): FIXME comment, bfd access methods.
14812 (section_is_overlay): FIXME comment, bfd access methods.
14814 * symfile.c (generic_load): Whitespace and long line cleanups.
14815 Remove duplicate variable, change several local variables to
14816 more appropriate data types.
14817 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14819 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14821 From Peter Schauer:
14822 * language.c (longest_local_hex_string_custom): Use phex_nz to
14823 convert NUM to a hex string.
14825 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14827 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14829 Update Copyright year.
14831 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14833 * language.c (longest_raw_hex_string): Delete unused function.
14835 2002-01-11 Petr Sorfa <petrs@caldera.com>
14837 * MAINTAINERS (write-after-approval): Add myself.
14838 * dwarf2read.c (read_tag_string_type): Handling of
14840 (read_tag_string_type): FORTRAN fix to prevent propagation of
14842 (set_cu_language): Handling of DW_LANG_Fortran95
14844 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14846 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14847 GETPID(inferior_ptid).
14848 (store_inferior_registers): Likewise.
14850 2002-01-10 Jason Merrill <jason@redhat.com>
14852 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14855 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14857 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14858 and bfd/elf32-sh-nbsd.c.
14860 2002-01-10 Michael Snyder <msnyder@redhat.com>
14862 * NEWS: Mention --pid and corefile/proc-id behavior change.
14864 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14865 * gcore.c: Include cli/cli-decode.h instead of command.h.
14867 * main.c (captured_main): Add new command line option "--pid".
14868 If the second command line argument (following the symbol-file)
14869 begins with a digit, try to attach to it before trying to open
14871 (print_gdb_help): Document the "--pid" argument.
14873 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14875 * completer.c (command_completer): New function.
14877 * completer.h <command_completer>: Add prototype.
14879 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14880 completer for the "help" command.
14882 2002-01-09 Jason Merrill <jason@redhat.com>
14884 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14886 2002-01-09 Michael Snyder <msnyder@redhat.com>
14888 * i386-linux-nat.c (fill_fpxregset): Make global.
14889 (store_fpxregset): Ditto.
14891 * gregset.h (gdb_fpxregset_t): Define.
14892 (supply_fpxregset): Prototype.
14893 (fill_fpxregset): Prototype.
14895 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14897 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14899 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14900 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14901 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14903 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14905 * MAINTAINERS: Update target maintainer rules so that any
14906 Maintainer can approve a tested patch for a maintenance-only
14909 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14911 * MAINTAINERS (write-after-approval): Add myself.
14913 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14916 2002-01-08 Michael Snyder <msnyder@redhat.com>
14918 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14919 real name of the executable, rather than the /proc name.
14921 2002-01-03 Michael Snyder <msnyder@redhat.com>
14923 Implement a "generate-core-file" command in gdb, save target state.
14924 * gcore.c: New file. Implement new command 'generate-core-file'.
14925 Save a corefile image of the current state of the inferior.
14926 * linux-proc.c: Add linux-specific code for saving corefiles.
14927 * target.h (struct target_ops): Add new target vectors for saving
14928 corefiles; to_find_memory_regions and to_make_corefile_notes.
14929 (target_find_memory_regions): New macro.
14930 (target_make_corefile_notes): New macro.
14931 * target.c (update_current_target): Inherit new target methods.
14932 (dummy_find_memory_regions): New place-holder method.
14933 (dummy_make_corefile_notes): New place-holder method.
14934 (init_dummy_target): Initialize new dummy target vectors.
14935 * exec.c (exec_set_find_memory_regions): New function.
14936 Allow the exec_ops vector for memory regions to be taken over.
14937 (exec_make_note_section): New function, target vector method.
14938 * defs.h (exec_set_find_memory_regions): Export prototype.
14939 * procfs.c (proc_find_memory_regions): New function, corefile method.
14940 (procfs_make_note_section): New function, corefile method.
14941 (init_procfs_ops): Set new target vector pointers.
14942 (find_memory_regions_callback): New function.
14943 (procfs_do_thread_registers): New function.
14944 (procfs_corefile_thread_callback): New function.
14945 * sol-thread.c (sol_find_memory_regions): New function.
14946 (sol_make_note_section): New function.
14947 (init_sol_thread_ops): Initialize new target vectors.
14948 * inftarg.c (inftarg_set_find_memory_regions): New function.
14949 Allow to_find_memory_regions vector to be taken over.
14950 (inftarg_set_make_corefile_notes): New function.
14951 Allow to_make_corefile_notes vector to be taken over.
14952 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14953 interface layer if not target_has_execution (may be a corefile).
14954 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14955 * config/sparc/sun4sol2.mh: Ditto.
14956 * config/alpha/alpha-linux.mh: Ditto.
14957 * config/arm/linux.mh: Ditto.
14958 * config/i386/x86-64linux.mh: Ditto.
14959 * config/ia64/linux.mh: Ditto.
14960 * config/m68k/linux.mh: Ditto.
14961 * config/mips/linux.mh: Ditto.
14962 * config/powerpc/linux.mh: Ditto.
14963 * config/sparc/linux.mh: Ditto.
14965 2002-01-07 Michael Snyder <msnyder@redhat.com>
14967 * arm-linux-nat.c: Remove references to regcache.c internal data
14968 (registers[] and register_valid[]).
14970 2002-01-07 Michael Snyder <msnyder@redhat.com>
14972 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14973 so that attaching to a pid will automatically read the process's
14974 symbol file and shlibs.
14975 * Makefile.in: Add rule for linux-proc.o.
14976 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14977 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14978 * config/arm/linux.mh: Ditto.
14979 * config/i386/linux.mh: Ditto.
14980 * config/i386/x86-64linux.mh: Ditto.
14981 * config/ia64/linux.mh: Ditto.
14982 * config/m68k/linux.mh: Ditto.
14983 * config/mips/linux.mh: Ditto.
14984 * config/powerpc/linux.mh: Ditto.
14985 * config/sparc/linux.mh: Ditto.
14987 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14989 * win32-nat.c: Add i386-tdep.h dependency.
14991 2002-01-07 Michael Snyder <msnyder@redhat.com>
14993 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14994 instead of bfd_get_arch_size. Don't bail out just because
14995 there's no exec_bfd.
14997 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14998 * p-valprint.c (pascal_object_print_value): Ditto.
14999 * somread.c (som_symtab_read): Ditto.
15000 * symfile.c (simple_free_overlay_region_table): Ditto.
15001 * valops.c (value_assign): Ditto.
15003 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15004 use tilde_expand and strerror for opening save-tracepoints file.
15006 * thread-db.c (thread_db_new_objfile): Indendation fix.
15008 * infptrace.c (GDB_MAX_ALLOCA): New define.
15009 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15010 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15011 can be overridden with whatever value is appropriate to the host).
15012 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15013 alloca to allocate potentially large buffer.
15014 * rs6000-nat.c (child_xfer_memory): Ditto.
15015 * symm-nat.c (child_xfer_memory): Ditto.
15016 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15018 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15020 From Nick Clifton <nickc@redhat.com>
15021 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15023 2002-01-07 Michael Snyder <msnyder@redhat.com>
15025 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15026 Don't use exec_bfd if it's NULL.
15028 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15030 * valops.c (value_arg_coerce): Fix formatting.
15032 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15034 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15035 * gnu-nat.c: Ditto.
15037 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15039 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15040 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15041 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15042 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15043 z8k-coff have not been multi-arched. Update z8k-coff build
15046 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15048 * MAINTAINERS: Mark a29k target as obsolete.
15049 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15050 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15052 * NEWS: Note that a29k targets are obsolete.
15053 * a29k-tdep.c: Mark as obsolete.
15054 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15055 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15056 a29k-*-vxworks* targets as obsolete.
15057 * remote-adapt.c: Obsolete.
15058 * remote-eb.c: Obsolete.
15059 * remote-mm.c: Obsolete.
15060 * remote-udi.c: Obsolete.
15061 * config/a29k/a29k-udi.mt: Obsolete.
15062 * config/a29k/a29k.mt: Obsolete.
15063 * config/a29k/tm-a29k.h: Obsolete.
15064 * config/a29k/tm-vx29k.h: Obsolete.
15065 * config/a29k/vx29k.mt: Obsolete.
15067 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15069 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15070 with BFD_ENDIAN_BIG.
15072 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15074 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15075 * configure, config.in: Re-generate.
15076 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15077 * defs.h: Do not include <endian.h>.
15079 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15081 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15082 * config.in: Regenerate.
15083 * configure.in: Update copyright years.
15084 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15085 * configure: Regenerate.
15086 * i386bsd-nat.c: Update copyright years.
15087 (fill_gregset): Use regcache_collect.
15088 (fetch_inferior_registers): Only fetch integer registers
15089 if requested to do so. Add support for XMM registers
15090 using PT_GETXMMREGS.
15091 (store_inferior_registers): Only store integer registers
15092 if requested to do so. Add support for XMM registers
15093 using PT_SETXMMREGS.
15094 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15095 (store_inferior_registers): Remove.
15096 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15097 (fetch_elfcore_registers): New function.
15098 (i386nbsd_elfcore_fns): New.
15099 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15100 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15102 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15103 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15104 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15105 * config/i386/tm-nbsd.h: Update copyright years.
15106 (HAVE_SSE_REGS): Define.
15107 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15108 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15109 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15110 (SIGCONTEXT_PC_OFFSET): Remove.
15111 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15113 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15115 * configure.tgt: Remove powerpc-*-macos* target.
15116 * config/m68k/xm-mpw.h: Delete file.
15117 * config/xm-mpw.h: Delete file.
15118 * ser-mac.c: Delete file.
15119 * mpw-make.sed: Delete file.
15120 * mpw-config.in: Delete file.
15121 * mac-xdep.c: Delete file.
15122 * mac-gdb.r: Delete file.
15123 * mac-defs.h: Delete file.
15124 * mac-nat.c: Delete file.
15125 * config/powerpc/macos.mh: Delete file.
15126 * config/powerpc/macos.mt: Delete file.
15127 * config/powerpc/nm-macos.h: Delete file.
15128 * config/powerpc/tm-macos.h: Delete file.
15129 * source.c (openp, open_source_file): Remove obsolete code.
15130 * top.c (gdb_readline): Ditto.
15131 * utils.c (query): Ditto.
15132 * event-top.c (display_gdb_prompt): Ditto.
15133 * Makefile.in (ser-mac.o): Delete obsolete target.
15136 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15138 * defs.h (BIG_ENDIAN): Delete macro definition.
15139 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15140 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15141 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15142 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15143 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15144 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15145 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15146 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15147 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15148 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15149 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15150 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15151 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15152 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15153 * gdbarch.c: Re-generate.
15155 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15157 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15160 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15162 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15164 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15166 * value.h (value_ptr): Delete typedef.
15168 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15170 * i386nbsd-nat.c: Update copyright years.
15171 Include i386-tdep.h.
15173 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15175 * stabsread.c: Update copyright years.
15177 From Debashis Mahata <debashis.mahata@wipro.com>:
15178 (read_struct_fields): Deal with Sun C compiler erroneous stab
15179 output for structs and unions.
15182 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15184 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15187 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15189 * cp-abi.c: Fix whitespace.
15190 (baseclass_offset): New wrapper function.
15191 * cp-abi.h (baseclass_offset): Add prototype.
15192 (struct cp_abi_ops): Add baseclass_offset pointer.
15194 * valops.c (vb_match): Move to...
15195 * gnu-v2-abi.c (vb_match): here.
15196 * valops.c (baseclass_offset): Move to...
15197 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15199 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15201 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15202 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15203 * hpacc-abi.c (init_hpacc_ops): Likewise.
15205 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15207 * valops.c (find_overload_match): Accept obj as a
15208 reference parameter. Update it before returning.
15209 * value.h (find_overload_match): Update prototype.
15210 * eval.c (evaluate_subexp_standard): Pass object to
15211 find_overload_match by reference.
15213 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15215 * valarith.c: Replace value_ptr with struct value pointer. Remove
15216 register attribute from value declarations.
15219 * scm-lang.c (scm_lookup_name): Ditto.
15221 2002-01-03 Michael Snyder <msnyder@redhat.com>
15223 Abstract the functionality of iterating over mapped memory
15224 regions into a general purpose iterator function.
15225 * procfs.c (iterate_over_mappings): New function, general purpose
15226 iterator for memory sections.
15227 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15228 (solib_mappings_callback): New function, callback for above.
15229 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15230 (info_mappings_callback): New function, callback for above.
15232 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15234 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15236 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15237 * i386-tdep.c: Include "elf-bfd.h".
15238 (process_note_abi_tag_sections): New function.
15239 (i386_gdbarch_init): Add code to recognize various OS/ABI
15242 * maint.c (_initialize_maint_cmds): Add missing \ in
15245 For older changes see ChangeLog-2001
15251 version-control: never