1 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3 Suggested by Stewart Brown <sb24@avaya.com>:
4 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
5 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6 (c_type_print_varspec_suffix): Likewise.
8 2003-01-04 Mark Kettenis <kettenis@gnu.org>
10 * configure.in: Don't set and AC_SUBST SUBDIRS.
11 * configure: Regenerated.
13 * configure.in: Remove code dealing with shared libraries.
14 * Makefile.in: Remove HLDFLAGS and HLDENV.
15 * configure: Regenerated.
17 2003-01-04 Andrew Cagney <ac131313@redhat.com>
19 * frame.c (deprecated_frame_xmalloc): New function.
20 (deprecated_set_frame_saved_regs_hack): New function.
21 (deprecated_set_frame_extra_info_hack): New function.
22 * frame.h (deprecated_frame_xmalloc): Declare.
23 (deprecated_set_frame_saved_regs_hack): Declare.
24 (deprecated_set_frame_extra_info_hack): Declare.
26 2003-01-04 Mark Kettenis <kettenis@gnu.org>
28 * configure.in: Move code that provides the --enable-gdbtk option
29 right after the code that handles the --enable-tui option, and
31 * configure: Regenerated.
33 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
34 AC_CHECK_FUNCS and remove the old check for pread64.
35 * acinclude.m4 (AC_GNU_SOURCE): New macro.
36 * acconfig.h (_GNU_SOURCE): Add.
37 (HAVE_PREAD64): Remove.
38 * configure, aclocal.m4, config.in: Regenerated.
40 2003-01-03 Andrew Cagney <ac131313@redhat.com>
42 * alpha-tdep.c: Use get_frame_saved_regs.
43 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
44 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
45 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
46 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
47 * vax-tdep.c, xstormy16-tdep.c: Ditto.
49 2003-01-03 Mark Kettenis <kettenis@gnu.org>
51 * configure.in: Remove all use of the SUBDIRS variable; add
52 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
53 code providing the --enable-multi-ice option, and move it right in
54 front of the code that checks whether gdbserver is supported.
56 * configure: Regenerated.
57 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
60 2003-01-03 Andrew Cagney <cagney@redhat.com>
62 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
63 * avr-tdep.c, cris-tdep.c: Ditto.
64 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
65 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
67 2003-01-03 Mark Kettenis <kettenis@gnu.org>
69 * configure.in: Remove --enable-netrom option.
70 * configure: Regenerated.
72 2003-01-03 Mark Kettenis <kettenis@gnu.org>
74 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
75 declaration for `struct re_pattern_buffer' instead.
76 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
78 2003-01-03 J. Brobecker <brobecker@gnat.com>
80 * mdebugread.c (parse_symbol): Count until the stEnd matching
83 2003-01-02 Mark Kettenis <kettenis@gnu.org>
85 * configure.in: Remove --with-cpu option.
86 subscripts. Remove evil changequotes here.
87 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
88 * config.in, configure: Regenerated.
90 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
91 * configure.in: Cleanup section that sources GDB and BFD configure
92 subscripts. Remove evil changequotes here.
93 * config.in, configure: Regenerated.
95 2003-01-02 Andrew Cagney <ac131313@redhat.com>
97 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
98 frame accessor methods.
99 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
100 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
101 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
102 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
103 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
104 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
107 2003-01-02 Mark Kettenis <kettenis@gnu.org>
109 * configure.in: Remove UI_OUT configuration code.
110 * ada-lang.c: Update assuming UI_OUT is always true.
111 * Makefile.in (UIOUT_CFLAGS): Remove.
112 * configure: Regenerated.
113 * TODO: Remove blurb about elimination of -DUI_OUT.
115 * configure.in: Move code that provides the --enable-gdbcli,
116 --enable-gdbmi options right before the code that handles the
117 --enable-tui option. Polish a bit.
118 * configure: Regenerated.
120 * configure.in: Rewrite check for GNU regex and the
121 --without-included regex option, and move it into the "Checks for
122 library functions" section. This makes us use the system regex
123 again by default on systems with version 2 of the GNU C library.
124 This was apparently broken.
125 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
126 * acconfig.h (USE_INCLUDED_REGEX): Remove.
127 * config.in, configure: Regenerated.
129 * configure.in: Move code that provides the --enable-tui option
130 before the "Checks for libraries" section. Polish the code
131 somewhat and set need_curses to yes if we build the TUI. Rewrite
132 code that looks for a library providing termcap functionality to
133 match more closely what's done in the Readline library, and move
134 it into to the "Checks for libraries" section.
135 * configure: Regenerated.
136 * Makefile.in (TERMCAP): Remove variable.
137 * config/i386/go32.mh (TERMCAP): Remove variable.
139 2003-01-02 Andrew Cagney <ac131313@redhat.com>
141 * MAINTAINERS: Mention gdb_mbuild.sh.
142 * gdb_mbuild.sh: Rewrite.
144 2003-01-02 Mark Kettenis <kettenis@gnu.org>
146 * configure.in: Fix typo in last change.
147 * config.in, configure: Regenerated.
149 2003-01-02 Andrew Cagney <ac131313@redhat.com>
151 * valarith.c (value_binop): Delete obsolete code and comments.
152 * configure.host: Ditto.
153 * buildsym.h (make_blockvector): Ditto.
154 * buildsym.c (make_blockvector): Ditto.
155 * defs.h (enum language): Ditto.
156 (chill_demangle): Ditto.
157 * elfread.c (elf_symtab_read): Ditto.
158 * dwarfread.c (CHILL_PRODUCER): Ditto.
159 (set_cu_language): Ditto.
160 (handle_producer): Ditto.
161 * expprint.c (print_subexp): Ditto.
162 * gdbtypes.c (chill_varying_type): Ditto.
163 * gdbtypes.h (builtin_type_chill_bool): Ditto.
164 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
165 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
166 (chill_varying_type): Ditto.
167 * language.h (_LANG_chill): Ditto.
168 * language.c (binop_result_type, integral_type): Ditto.
169 (character_type, string_type, structured_type): Ditto.
170 (lang_bool_type, binop_type_check): Ditto.
171 * stabsread.h (os9k_stabs): Ditto.
172 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
173 (define_symbol, read_type, read_struct_fields): Ditto.
174 (read_array_type, read_enum_type, read_huge_number): Ditto.
175 (read_range_type, start_stabs): Ditto.
176 * symfile.c (init_filename_language_table): Ditto.
177 (add_psymbol_with_dem_name_to_list): Ditto.
178 * symtab.c (symbol_init_language_specific): Ditto.
179 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
180 * symtab.h (struct general_symbol_info): Ditto.
181 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
182 * typeprint.c (typedef_print): Ditto.
183 * utils.c (fprintf_symbol_filtered): Ditto.
184 * valops.c (value_cast, search_struct_field, value_slice): Delete
186 (varying_to_slice): Delete function.
187 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
188 (varying_to_slice): Delete declaration.
189 * MAINTAINERS: Update.
191 2003-01-02 Mark Kettenis <kettenis@gnu.org>
193 * configure.in: Reorganize "Checks for library functions section"
194 a bit. Remove check for `btowc' and `isascii' functions.
195 * configure: Regenerated.
197 * acconfig.h (_MSE_INT_H): Remove.
198 * configure.in: Create "Checks for header files" section, and move
199 appropriate tests there. Don't check for objlist.h, wchar.h,
200 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
201 misdetection fix. Also add "Checks for types", "Checks for
202 compiler characteristics" and "Checks for library functions"
204 * config.in, configure: Regenerated.
206 * configure.in: Create "Checks for programs" section, and move
207 appropriate tests there.
209 2003-01-01 Mark Kettenis <kettenis@gnu.org>
211 * configure.in: Create "Checks for libraries" section, and move
212 appropriate tests there. Cleanup check for wctype in libw. Use
213 AC_SEARCH_LIBS to see whether we need libsocket.
214 * configure: Regenerated.
216 2002-12-31 Mark Kettenis <kettenis@gnu.org>
218 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
219 * config.in, configure: Regenerated.
221 2002-12-31 Mark Kettenis <kettenis@gnu.org>
223 * gdb_dirent.h: Cleanup and update code to match the example in
225 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
226 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
227 * configure: Regenerated.
229 2002-12-30 Adam Fedor <fedor@gnu.org>
231 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
232 (yylex): Initialize c to avoid uninitialized warning.
234 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
236 * doc/fdl.texi: Revert the last change.
238 2002-12-29 Mark Kettenis <kettenis@gnu.org>
240 * tracepoint.c (ISATTY): Removed.
242 2002-12-26 J. Brobecker <brobecker@gnat.com>
244 Continuing work to convert the hppa targets to multiarch partil.
246 * hppa-tdep.c: Add some missing forward declarations.
247 (frameless_function_invocation): Prefix the function name
248 by "hppa_" to avoid polluting the namespace. Update all calls
249 to use the new function name.
250 (saved_pc_after_call): Ditto.
251 (init_extra_frame_info): Ditto.
252 (frame_chain): Ditto.
253 (push_dummy_frame): Ditto.
254 (target_read_pc): Ditto.
255 (target_write_pc): Ditto.
256 (in_solib_call_trampoline): Ditto.
257 (in_solib_return_trampoline): Ditto.
258 (skip_trampoline_code): Ditto.
259 (hppa_read_fp): New function, renamed from target_read_fp.
260 (hppa_target_read_fp): New function, using hppa_read_fp.
261 This function conforms to the function profile for the
262 READ_FP gdbarch method.
263 (hppa_extract_struct_value_address): New function, extracted
264 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
266 (hppa_frame_num_args): New function.
267 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
269 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
270 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
271 for the switch to multiarch partial.
272 Update some of the macros definitions to match some changes
273 described above in the name of the function they are calling.
274 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
275 not be straightforward to convert. Do now wrap it inside
276 "#if !... #endif" to remember that this macro has still not
278 (FIX_CALL_DUMMY): Likewise.
280 2002-12-26 J. Brobecker <brobecker@gnat.com>
282 Continuing work to convert the hppa targets to multiarch partial.
284 * hppa-tdep.c (hppa_register_raw_size): New function replacing
285 the body of macro REGISTER_RAW_SIZE.
286 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
287 config/pa/tm-hppah.h. These functions will be used to initialize
288 the gdbarch structure.
289 (hppa_hpux_pc_in_sigtramp): New function.
290 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
291 (hppa_hpux_frame_base_before_sigtramp): New function.
292 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
293 Add gdbcore.h #include.
294 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
295 of this gdbarch-eligible macro to a call to the new associated
297 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
298 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
299 into a call to the new associated function.
300 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
301 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
302 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
304 2002-12-24 David Carlton <carlton@math.stanford.edu>
306 * config/sparc/tm-sparc.h: Delete duplicate definition of
307 DEPRECATED_PC_IN_CALL_DUMMY.
309 2002-12-24 Kevin Buettner <kevinb@redhat.com>
311 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
313 * configure.tgt: Recognize mips64*-*-linux*.
314 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
315 (supply_32_bit_reg): New function.
316 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
317 (fill_gregset): Use regcache_collect() instead of
318 deprecated_registers[].
319 (register_addr): Change name to mips_linux_register_addr().
320 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
321 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
322 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
323 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
324 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
325 (MIPS64_LINUX_JB_PC): New defines.
326 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
327 (mips64_elf_fpregset_t): New typedefs.
328 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
329 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
330 (mips64_linux_register_addr, set_mips_linux_register_addr)
331 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
332 (init_register_addr_data)
334 (fetch_core_registers): Add support for core file formats with 64-bit
336 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
337 (register_addr_data): New static global variable.
338 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
339 gdbarch_register_osabi() for each MIPS machine.
340 * config/mips/linux64.mt: New file.
341 * config/mips/tm-linux64.h: New file.
343 2002-12-23 Adam Fedor <fedor@gnu.org>
345 * maint.c (maintenance_demangle): Add switch to demangle
346 ObjC language symbols as well.
348 2002-12-23 Adam Fedor <fedor@gnu.org>
350 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
351 last argument from complaint function call.
353 2002-12-23 Kevin Buettner <kevinb@redhat.com>
355 * exec.c (print_section_info): Add FIXME comments regarding format
358 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
360 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
361 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
363 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
365 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
367 2002-12-23 David Carlton <carlton@math.stanford.edu>
369 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
370 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
371 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
372 information associated to a minsym, not lookup_symbol.
374 2002-12-21 Mark Kettenis <kettenis@gnu.org>
376 * x86-64-tdep.h (x86_64_init_abi): New prototype.
377 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
378 (x86_64_init_abi): Make non-static. Set number of pseudo
380 (x86_64_gdbarch_init): Remove function.
381 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
382 Remove code dealing with dissambly.
383 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
384 (_initialize_x86_64_linux_tdep): New function.
385 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
388 2002-12-14 Mark Kettenis <kettenis@gnu.org>
390 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
391 (struct gdb_osabi_handler): Remove member `arch'. Add member
393 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
394 construct a `struct bfd_arch_info' and store it in the `struct
395 gdb_osabi_handler' that is created.
396 (gdbarch_init_osabi): Check for compatibility based on machine
397 type and architecture.
398 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
400 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
401 second argument in call to gdbarch_register_osabi.
402 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
403 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
404 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
405 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
406 * arm-tdep.c (_initialize_arm_tdep): Likewise.
407 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
408 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
409 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
410 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
411 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
412 * i386-tdep.c (_initialize_i386_tdep): Likewise.
413 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
414 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
415 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
416 _initialize_i386bsd_tdep and updated likewise.
417 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
418 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
419 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
420 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
421 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
422 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
423 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
424 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
425 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
426 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
428 2002-12-20 Kevin Buettner <kevinb@redhat.com>
430 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
431 DT_MIPS_RLD_MAP case for 64-bit targets.
433 2002-12-20 Kevin Buettner <kevinb@redhat.com>
435 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
436 ``temp_saved_regs'', not the pointer or other storage contiguous
439 2002-12-20 Kevin Buettner <kevinb@redhat.com>
441 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
442 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
443 (mips_linux_get_longjmp_target): Delete declarations.
444 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
445 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
446 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
447 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
448 (mips_linux_get_longjmp_target)
449 (mips_linux_svr4_fetch_link_map_offsets): Make static.
450 (mips_linux_init_abi): New function.
451 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
453 2002-12-19 Keith Seitz <keiths@redhat.com>
455 patch committed by Elena Zannoni <ezannoni@redhat.com>
456 * thread.c (do_captured_list_thread_ids): Call prune_threads and
457 target_find_new_threads. Fix for PR mi/669.
459 2002-12-19 David Carlton <carlton@math.stanford.edu>
461 * linespec.c (decode_line_1): Move code into decode_all_digits.
462 (decode_all_digits): New function.
464 2002-12-19 Kevin Buettner <kevinb@redhat.com>
466 * exec.c (print_section_info): Select a format string to use with
467 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
469 2002-12-18 Andrew Cagney <ac131313@redhat.com>
471 * frame.c (deprecated_update_current_frame_pc_hack): Replace
472 deprecated_update_current_frame_pc_hack.
473 (deprecated_update_frame_base_hack): New function.
474 * frame.h (deprecated_update_frame_pc_hack): Replace
475 (deprecated_update_frame_base_hack): Declare.
476 * infrun.c (normal_stop): Update.
478 2002-12-18 Andrew Cagney <ac131313@redhat.com>
480 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
481 frame_extra_info_zalloc.
482 (rs6000_frame_args_address): Use get_frame_extra_info.
483 (frame_get_saved_regs): Use get_frame_saved_regs.
484 (frame_initial_stack_address): Use get_frame_saved_regs and
485 get_frame_extra_info.
486 (frame_initial_stack_address): Use get_frame_extra_info.
488 2002-12-17 Kevin Buettner <kevinb@redhat.com>
490 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
492 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
493 checks for r3900_regnames[].
495 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
497 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
499 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
501 2002-12-17 David Carlton <carlton@math.stanford.edu>
503 * symtab.c (lookup_partial_symbol): Don't search past the end of
506 2002-12-17 Andrew Cagney <ac131313@redhat.com>
508 * stack.c (frame_info): Use get_frame_saved_regs.
509 * breakpoint.c (until_break_command): Use get_frame_pc.
511 2002-12-16 Kevin Buettner <kevinb@redhat.com>
513 * buildsym.c (block_end_complaint, anon_block_end_complaint)
514 (innerblock_complaint, innerblock_anon_complaint)
515 (blockvector_complaint): Delete deprecated complaint structs.
516 (finish_block, make_blockvector, end_symtab): Replace calls
517 to complain() with calls to complaint().
518 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
519 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
520 (unexpected_type_complaint, bad_sclass_complaint)
521 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
522 Delete deprecated complaint structs.
523 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
524 Replace calls to complain() with calls to complaint().
525 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
526 (unknown_symtype_complaint, unknown_symchar_complaint)
527 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
528 (lbrac_mismatch_complaint, repeated_header_complaint)
529 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
530 Delete deprecated complaint structs.
531 (unknown_symtype_complaint, lbrac_mismatch_complaint)
532 (repeated_header_complaint)
533 (function_outside_compiliation_unit_complaint): New functions.
534 (add_old_header_file, find_corresponding_bincl_psymtab)
535 (set_namestring, find_stab_function_addr, read_dbx_symtab)
536 (process_one_symbol): Replace calls to complain() with, possibly
537 indirect, calls to complaint().
538 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
539 (unknown_attribute_form, unknown_attribute_length)
540 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
541 (const_ignored, botched_modified_type, op_deref2, op_deref4)
542 (basereg_not_handled, dup_user_type_allocation)
543 (dup_user_type_definition, missing_tag, bad_array_element_type)
544 (subscript_data_items, unhandled_array_subscript_format)
545 (unknown_array_subscript_format, not_row_major)
546 (missing_at_name): Delete deprecated complaint structs.
547 (bad_die_ref_complaint, unknown_attribute_form_complaint)
548 (dup_user_type_definition_complaint)
549 (bad_array_element_type_complaint): New functions.
550 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
551 (decode_subscript_data_item, dwarf_read_array_type)
552 (read_tag_string_type, read_subroutine_type, read_func_scope)
553 (locval, scan_partial_symbols, decode_modified_type)
554 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
555 (attribute_size): Replace calls to complain() with, possibly
556 indirect, calls to complaint().
557 * elfread.c (section_info_complaint, section_info_dup_complaint)
558 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
559 Delete deprecated complaint structs.
560 (elf_symtab_read, elfstab_offset_sections): Replace calls to
561 complain() with calls to complaint().
562 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
564 (stub_noname_complaint): New function.
565 (check_typedef, add_mangled_type): Replace calls to complain()
566 with calls to complaint().
567 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
568 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
569 (hpread_unhandled_type_complaint, hpread_struct_complaint)
570 (hpread_array_complaint, hpread_type_lookup_complaint)
571 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
572 (hpread_unhandled_common_complaint)
573 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
574 struct definitions and declarations.
575 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
576 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
577 Replace calls to complain() with, possibly indirect, calls to
579 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
581 * mdebugread.c (bad_file_number_complaint, index_complaint)
582 (aux_index_complaint, block_index_complaint)
583 (unknown_ext_complaint, unknown_sym_complaint)
584 (unknown_st_complaint, block_overflow_complaint)
585 (basic_type_complaint, unknown_type_qual_complaint)
586 (array_index_type_complaint, bad_tag_guess_complaint)
587 (block_member_complaint, stEnd_complaint)
588 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
589 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
590 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
591 (bad_continued_complaint, bad_rfd_entry_complaint)
592 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
593 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
594 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
595 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
597 (index_complaint, unknown_ext_complaint, basic_type_complaint)
598 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
599 (unexpected_type_code_complaint)
600 (function_outside_compilation_unit_complaint): New functions.
601 (parse_symbol, parse_type, upgrade_type, parse_procedure)
602 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
603 Replace calls to complain() with, possibly indirect calls to
605 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
606 Delete deprecated complaint structs.
607 (lookup__objc_class, lookup_child_selector): Replace complain()
609 * remote-vx.c (cant_contact_target): Delete deprecated complaint
611 (vx_lookup_symbol): Replace complain() with complaint().
612 * stabsread.c (invalid_cpp_abbrev_complaint)
613 (invalid_cpp_type_complaint, member_fn_complaint)
614 (const_vol_complaint, error_type_complaint)
615 (invalid_member_complaint, range_type_base_complaint)
616 (reg_value_complaint, vtbl_notfound_complaint)
617 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
618 (unresolved_sym_chain_complaint, stabs_general_complaint)
619 (lrs_general_complaint, multiply_defined_struct): Delete
620 deprecated complaint structs.
621 (invalid_cpp_abbrev_complaint, ref_value_complaint)
622 (stabs_general_complaint, lrs_general_complaint)
623 (msg_unknown_complaint): New functions.
624 (dbx_lookup_type, read_cfront_baseclasses)
625 (read_cfront_member_functions, resolve_symbol_reference)
626 (define_symbol, resolve_live_range, add_live_range, read_type)
627 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
628 (read_one_struct_field, read_baseclasses, read_tilde_fields)
629 (read_cfront_static_fields, attach_fields_to_type)
630 (complain_about_struct_wipeout, read_range_type)
631 (common_block_start, common_block_end, cleanup_undefined_types)
632 (scan_file_globals): Replace complain() with complaint().
633 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
634 Delete deprecated complaint struct declarations.
635 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
636 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
637 (bf_not_found_complaint, ef_complaint, eb_complaint)
638 (function_outside_compilation_unit_complaint): New functions.
639 (record_include_begin, record_include_end, enter_line_range)
640 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
641 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
642 complain() with complaint().
644 2002-12-16 Andrew Cagney <ac131313@redhat.com>
646 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
647 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
648 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
649 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
650 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
651 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
652 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
653 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
654 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
655 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
656 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
657 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
658 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
659 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
660 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
661 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
662 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
663 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
664 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
665 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
666 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
667 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
668 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
669 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
670 * config/m88k/xm-dgux.h: Delete.
671 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
672 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
673 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
674 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
675 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
676 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
677 * ch-valprint.c: Delete.
679 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
681 * infrun.c (handle_inferior_event): Rearrange code to resume if
682 no catchpoint triggers for an event.
684 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
686 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
687 and TARGET_WAITKIND_VFORKED cases.
689 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
691 * infrun.c (handle_inferior_event): Assume that catchpoints
692 are not affected by DECR_PC_AFTER_BREAK.
694 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
696 * target.c (update_current_target): Don't inherit DONT_USE.
697 * target.h (struct target_ops): Remove DONT_USE.
698 (target_next): Remove macro.
700 2002-12-15 Mark Kettenis <kettenis@gnu.org>
702 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
704 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
706 * arm-tdep.c (convert_from_extended): New argument to hold the
707 type of floating point result we want to convert to. Make input
708 argument const. Fix all callers.
709 (convert_to_extended): Similarly.
710 (arm_extract_return_value): Now takes a regcache argument. Change
711 code to use regcache accessor functions. Correctly extract
712 smaller-than-word results on big-endian machines.
713 (arm_store_return_value): Now takes a regcache argument. Change
714 code to use regcache accessor functions. Correctly zero/sign extend
715 smaller than word results before storing into r0.
716 (arm_gdbarch_init): Register new-style extract_return_value and
717 store_return_value functions.
719 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
721 * thread-db.c (thread_from_lwp): Uniquify error msg.
722 (lwp_from_thread): Ditto.
723 (check_event): Ditto.
724 (find_new_threads_callback): Ditto.
725 (thread_db_pid_to_str): Ditto.
727 2002-12-13 Andrew Cagney <ac131313@redhat.com>
729 * frame.h (get_frame_saved_regs): Declare.
730 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
732 * frame.c (get_frame_saved_regs): New function.
733 (frame_saved_regs_zalloc): Return the allocated saved_regs.
735 2002-12-13 Andrew Cagney <ac131313@redhat.com>
737 * frame.c (deprecated_update_current_frame_pc_hack): New
739 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
740 * infrun.c (normal_stop): Use said function instead of directly
741 modifying the frame's PC.
743 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
745 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
747 2002-12-13 Kevin Buettner <kevinb@redhat.com>
749 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
750 config/mips/tm-irix6.h (NUM_REGS): Delete.
751 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
752 (temp_saved_regs): Declare as a pointer rather than an array.
753 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
754 that ``temp_saved_regs'' has storage allocated to it and that
755 it's the correct size.
757 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
759 * defs.h (init_last_source_visited): New prototype.
761 * source.c (add_path): New function that adds to a specified path.
762 (mod_path): Change to call add_path.
763 (init_last_source_visited): New function to allow interfaces to
764 initialize static variable: last_source_visited. Part of fix
766 * Makefile.in: Add support for mi/mi-cmd-env.c.
768 2002-12-13 Andrew Cagney <ac131313@redhat.com>
770 * frame.h (frame_id_unwind): Declare.
771 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
773 (frame_id_unwind_ftype): Declare.
774 * frame.c (frame_id_unwind): New function.
775 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
776 (create_new_frame, get_prev_frame): Pass id_unwind to
778 (frame_saved_regs_id_unwind): New function.
779 (frame_saved_regs_id_unwind): New function.
780 * dummy-frame.c (dummy_frame_id_unwind): New function.
781 (struct dummy_frame): Add field id.
782 (generic_push_dummy_frame): Initialize `id'.
783 * dummy-frame.h (dummy_frame_id_unwind): Declare.
785 2002-12-13 Andrew Cagney <ac131313@redhat.com>
787 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
788 pass that to set_momentary_breakpoint. Move comments to where they
790 * frame.h (set_current_frame): Delete declaration.
791 * frame.c (set_current_frame): Delete function.
793 2002-12-13 Andrew Cagney <ac131313@redhat.com>
795 * frame.c (frame_extra_info_zalloc): New function.
796 * frame.h (frame_extra_info_zalloc): Declare.
798 2002-12-13 Joel Brobecker <brobecker@gnat.com>
800 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
801 in the previous prototype change to set_momentary_breakpoint.
803 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
805 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
807 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
808 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
809 (stop_stepping): Remove outdated check for child vfork events.
811 2002-12-12 Andrew Cagney <ac131313@redhat.com>
813 * GDB 5.3 released from gdb_5_3-branch.
815 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
817 * corelow.c (init_core_ops): Delete references to to_require_attach
818 and to_require_detach.
819 * exec.c (init_exec_ops): Likewise.
820 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
821 hppa_require_detach directly.
822 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
823 * inftarg.c (child_detach): Remove.
824 (child_detach_from_process): Rename to child_detach, remove
826 (child_attach): Remove.
827 (child_attach_to_process): Rename to child_attach, remove after_fork
829 (init_child_ops): Delete references to to_require_attach
830 and to_require_detach.
831 * infttrace.c (hppa_require_attach): Update comment.
832 * target.c (cleanup_target, update_current_target)
833 (init_dummy_target, setup_target_debug): Delete references to
834 to_require_attach and to_require_detach.
835 (find_default_require_detach, find_default_require_attach)
836 (debug_to_require_attach, debug_to_require_detach): Remove
838 * target.h (struct target_ops): Remove to_require_attach
839 and to_require_detach.
840 (target_require_attach, target_require_detach): Delete macros.
841 (find_default_require_detach, find_default_require_attach): Delete
843 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
845 2002-12-11 Andrew Cagney <ac131313@redhat.com>
847 * frame.c (get_frame_extra_info): New function.
848 * frame.h (get_frame_extra_info): Declare.
850 2002-12-11 Andrew Cagney <ac131313@redhat.com>
852 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
853 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
854 with `struct frame_id'.
855 (set_longjmp_resume_breakpoint): Ditto.
856 * infrun.c (handle_inferior_event): Update.
857 * breakpoint.c (watch_command_1, until_break_command): Update.
858 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
859 (handle_inferior_event, step_over_function): Update.
860 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
861 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
862 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
863 * infcmd.c (finish_command, run_stack_dummy): Update.
865 2002-12-11 Kevin Buettner <kevinb@redhat.com>
867 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
868 (dwarf2_non_const_array_bound_ignored)
869 (dwarf2_missing_line_number_section)
870 (dwarf2_statement_list_fits_in_line_number_section)
871 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
872 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
873 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
874 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
875 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
876 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
877 (dwarf2_missing_member_fn_type_complaint)
878 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
879 (dwarf2_const_value_length_mismatch)
880 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
881 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
882 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
883 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
884 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
885 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
886 complaints using deprecated struct..
887 (dwarf2_non_const_array_bound_ignored_complaint)
888 (dwarf2_complex_location_expr_complaint)
889 (dwarf2_unsupported_at_frame_base_complaint)
890 (dwarf2_const_value_length_mismatch_complaint)
891 (dwarf2_macros_too_long_complaint)
892 (dwarf2_macro_malformed_definition_complaint)
893 (dwarf2_invalid_attrib_class_complaint): New functions.
894 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
895 (read_structure_scope, read_array_type, read_common_block)
896 (read_tag_pointer_type, read_base_type, read_partial_die)
897 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
898 (new_symbol, dwarf2_const_value, read_type_die)
899 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
900 (parse_macro_definition, dwarf_decode_macros): Replace calls to
901 complain() with, possibly indirect, calls to complaint().
903 2002-12-11 Andrew Cagney <cagney@redhat.com>
905 * frame.c (deprecated_get_frame_saved_regs): Rename
906 get_frame_saved_regs.
907 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
908 * sparc-tdep.c: Update.
909 * hppa-tdep.c: Update.
910 * h8500-tdep.c: Update.
912 2002-12-11 Kevin Buettner <kevinb@redhat.com>
914 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
915 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
916 ``char *'' for return and parameter types.
917 * gdbarch.h, gdbarch.c: Regenerate.
918 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
919 return type from ``char *'' to ``const char *''.
920 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
923 2002-12-11 Mark Kettenis <kettenis@gnu.org>
925 * i386-tdep.c: Include "dummy-frame.h".
926 (i386_frame_chain, i386_frame_saved_pc): Replace
927 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
928 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
930 2002-12-10 Andrew Cagney <cagney@redhat.com>
932 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
933 Change to a function with predicate.
934 * gdbarch.h, gdbarch.c: Re-generate.
935 * frame.c (get_prev_frame): Update. Test
936 DEPRECATED_INIT_FRAME_PC_P.
937 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
938 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
939 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
940 * alpha-tdep.c (alpha_gdbarch_init): Update.
941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
942 * mips-tdep.c (mips_gdbarch_init): Update.
943 * i386-interix-tdep.c (i386_interix_init_abi): Update.
944 * arm-tdep.c: Update comments.
945 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
946 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
947 * frv-tdep.c (frv_gdbarch_init): Ditto.
948 * x86-64-tdep.c (x86_64_init_abi): Ditto.
949 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
950 * s390-tdep.c (s390_gdbarch_init): Ditto.
951 * v850-tdep.c (v850_gdbarch_init): Ditto.
952 * vax-tdep.c (vax_gdbarch_init): Ditto.
953 * sh-tdep.c (sh_gdbarch_init): Ditto.
954 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
957 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
958 * i386-tdep.c (i386_gdbarch_init): Ditto.
959 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
960 * cris-tdep.c (cris_gdbarch_init): Ditto.
961 * avr-tdep.c (avr_gdbarch_init): Ditto.
962 * arm-tdep.c (arm_gdbarch_init): Ditto.
963 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
964 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
966 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
968 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
970 * hppah-nat.c (saved_vfork_pid): Add.
971 (child_post_follow_vfork): Remove.
972 (child_follow_fork): New function.
973 (child_wait): Call detach_breakpoints after receiving the child vfork.
974 Call child_resume directly instead of going through resume ().
975 Make sure we have the exec before reporting the vfork.
976 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
977 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
978 (follow_fork): New function. Call target_follow_fork.
979 (follow_inferior_reset_breakpoints): New function broken out from
980 old follow_inferior_fork.
981 (resume): Remove hack to follow exec after vfork.
982 * inftarg.c (child_post_follow_vfork): Remove.
983 (child_follow_fork): New function.
984 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
985 * target.c (cleanup_target): Replace to_post_follow_vfork with
987 (update_current_target): Likewise.
988 (setup_target_debug): Likewise.
989 (debug_to_post_follow_vfork): Remove.
990 (debug_to_follow_fork): New function.
991 * target.h (struct target_ops): Replace to_post_folow_vfork with
993 (child_post_follow_vfork): Remove prototype.
994 (child_follow_fork): Add prototype.
995 (target_post_follow_vfork): Remove macro.
996 (target_follow_fork): Add macro.
998 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1000 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1001 (child_post_follow_vfork): Cancel pending exec event if we follow
1003 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1004 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1005 event at the following wait call if necessary.
1006 * infrun.c (follow_vfork): Don't follow_exec here.
1007 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1008 case about HP/UX 10.20. Remove code pushed down to
1009 hppah-nat.c:child_wait.
1010 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1011 vfork_in_flight is set.
1013 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1015 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1016 for the parent's fork event.
1017 * infrun.c (handle_inferior_event): Only expect one fork event.
1018 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1019 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1021 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1023 * PROBLEMS: Delete reference to PR gdb/725.
1025 * MAINTAINERS (gdb.c++): Add David Carlton.
1027 2002-12-09 David Carlton <carlton@math.stanford.edu>
1029 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1030 * cli/cli-cmds.c: Ditto.
1032 2002-12-09 Andrew Cagney <cagney@redhat.com>
1034 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1035 function address in <>.
1036 * gdbarch.c: Re-generate.
1038 2002-12-09 David Carlton <carlton@math.stanford.edu>
1040 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1042 2002-12-09 David Carlton <carlton@math.stanford.edu>
1044 * linespec.c (symtab_from_filename): New function.
1045 (decode_line_1): Move code into symtab_from_filename.
1047 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1049 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1051 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1053 * f-valprint.c (info_common_command): Use get_frame_pc.
1054 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1055 * ax-gdb.c (agent_command): Ditto.
1056 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1057 (rs6000_pop_frame): Ditto.
1058 (rs6000_frameless_function_invocation): Ditto.
1059 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1060 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1061 * macroscope.c (default_macro_scope): Ditto.
1062 * stack.c (print_frame_info_base): Ditto.
1063 (print_frame, frame_info, print_frame_label_vars): Ditto.
1064 (return_command, func_command, get_frame_language): Ditto.
1065 * infcmd.c (finish_command): Ditto.
1066 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1067 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1068 (break_at_finish_at_depth_command_1): Ditto.
1069 (break_at_finish_command_1): Ditto.
1070 (until_break_command, get_catch_sals): Ditto.
1071 * blockframe.c (func_frame_chain_valid): Ditto.
1072 (frameless_look_for_prologue): Ditto.
1073 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1075 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1077 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1078 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1080 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1082 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1084 * gdbarch.h, gdbarch.c: Re-generate.
1085 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1086 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1088 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1089 declaration to a function returning a CORE_ADDR.
1090 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1091 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1092 (init_frame_pc_default): Ditto.
1093 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1094 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1095 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1096 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1097 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1098 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1100 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1101 to init_frame_pc_noop.
1102 (i386_interix_init_frame_pc): Delete function.
1103 * z8k-tdep.c (init_frame_pc): Delete function.
1104 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1105 (INIT_FRAME_PC_FIRST): Ditto.
1106 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1107 (INIT_FRAME_PC_FIRST): Ditto.
1108 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1109 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1111 (INIT_FRAME_PC_FIRST): Convert to an expression.
1112 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1114 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1116 * blockframe.c: Use get_frame_base instead of directly accessing
1117 the `struct frame_info' member frame.
1118 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1119 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1121 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1123 * Makefile.in (readline_h): Define.
1124 (completer.o): Depend on readline_h.
1126 (event-top.o): Ditto.
1133 (tracepoint.o): Ditto.
1135 (cli-dump.o): Ditto.
1136 (tui-hooks.o): Ditto.
1139 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1141 More cleanup from import of readline 4.3.
1142 * completer.h (complete_line, readline_line_completion_function):
1144 (line_completion_function): Removed, not used outside of completer.c.
1145 * completer.c (readline_line_completion_function,
1146 complete_function, line_completion_function): Use const for first
1148 (line_completion_function): Make static.
1149 (filename_completer): filename_completion_function is now called
1150 rl_filename_completion_function
1151 * corelow.c: Include <readline/readline.h>.
1157 * top.c (init_main): No need to coerce
1158 readline_line_completion_function anymore.
1159 * cli/cli-dump.c: Include <readline/readline.h>.
1161 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1163 * stack.c (frame_info): Use get_prev_frame.
1164 * blockframe.c (frame_address_in_block): Ditto.
1165 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1166 (rs6000_frameless_function_invocation): Ditto.
1167 (rs6000_frame_saved_pc): Ditto.
1168 (rs6000_frame_chain): Ditto.
1169 * arch-utils.c (init_frame_pc_default): Ditto.
1171 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1173 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1174 Delete redundant definition.
1176 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1178 Import of readline 4.3:
1179 * cli/cli-cmds.c: Include readline/tilde.h.
1180 * cli/cli-setshow.c: Ditto.
1181 * defs.h: Don't declare tilde_expand anymore, since readline
1184 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1186 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1187 -Werror on this file.
1189 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1191 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1193 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1194 * gdbarch.c: Regenerate.
1196 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1198 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1199 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1200 provide a default value.
1201 * gdbarch.h, gdbarch.c: Regenerate.
1202 * frame.c (get_prev_frame): Update. Check
1203 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1204 * s390-tdep.c (s390_gdbarch_init): Update.
1205 * mips-tdep.c (mips_gdbarch_init): Update.
1206 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1207 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1208 * alpha-tdep.c (alpha_gdbarch_init): Update.
1210 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1212 * ia64-linux-nat.c: Include gdb_string.h.
1213 * alpha-nat.c: Ditto.
1214 * ppc-linux-nat.c: Ditto.
1215 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1216 Update dependencies.
1218 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1220 * gdbthread.h: Include "frame.h".
1221 (struct thread_info): Replace step_frame_address with
1223 * inferior.h: Include "frame.h".
1224 (step_frame_id): Replace external variable step_frame_address.
1225 * gdbthread.h (save_infrun_state): Replace step_frame_address
1226 parameter with step_frame_id parameter.
1227 (load_infrun_state): Ditto.
1228 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1229 * infcmd.c (step_frame_id, step_1, step_once): Update.
1230 * thread.c (load_infrun_state, save_infrun_state): Update.
1231 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1232 (handle_inferior_event, step_over_function): Update.
1233 (normal_stop, context_switch, restore_inferior_status): Update.
1234 (struct inferior_status): Replace step_frame_address with
1237 2002-12-05 David Carlton <carlton@math.stanford.edu>
1239 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1240 DW_TAG_member as well as a declaration as being a C++ static data
1242 (read_structure_scope): Combine tests for DW_TAG_member and
1245 2002-12-05 David Carlton <carlton@math.stanford.edu>
1247 * linespec.c (decode_compound): New function.
1248 (decode_line_1): Move code into decode_compound.
1250 2002-12-05 David Carlton <carlton@math.stanford.edu>
1252 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1254 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1255 the static block. See PR gdb/804.
1257 2002-12-05 David Carlton <carlton@math.stanford.edu>
1259 * symtab.c (lookup_symbol_aux_block): New function.
1260 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1262 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1264 * gdbarch.sh: Dump the predicate function and macro values.
1265 (read): Print error on standard error.
1266 * gdbarch.c: Regenerate.
1268 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1270 * Makefile.in (mips_tdep_h): Define.
1271 (mips-tdep.o): Add mips_tdep_h to dependency list.
1272 * mips-tdep.h: New file.
1273 * mips-tdep.c (mips-tdep.h): Include.
1274 (enum mips_abi): Move to mips-tdep.h.
1275 (mips_abi): New function.
1277 2002-12-04 David Carlton <carlton@math.stanford.edu>
1279 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1281 2002-12-04 David Carlton <carlton@math.stanford.edu>
1283 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1285 (lookup_symbol_aux_minsyms): New function.
1287 2002-12-04 J. Brobecker <brobecker@gnat.com>
1289 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1291 2002-12-04 J. Brobecker <brobecker@gnat.com>
1293 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1294 which is an obsolete macro name.
1296 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1298 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1299 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1301 2002-12-03 H.J. Lu (hjl@gnu.org)
1303 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1304 (create_breakpoints): Make sure the addr_string field is not
1307 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1309 * sparc-nat.c (fetch_inferior_registers)
1310 (store_inferior_registers): Add comment on problem of LWP vs
1313 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1314 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1315 (lin_lwp_store_registers): Remove.
1316 (init_lin_lwp_ops): Use fetch_inferior_registers
1317 and store_inferior_registers directly.
1318 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1319 (store_inferior_registers): Likewise.
1322 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1324 * frame.h (get_frame_id): Convert to a function.
1325 (null_frame_id, frame_id_p): Declare.
1326 (frame_id_eq, frame_id_inner): Declare.
1327 (frame_id_build): New function.
1328 * frame.c (get_frame_id): Update. Use null_frame_id.
1329 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1331 (null_frame_id, frame_id_p): Define.
1332 (frame_id_eq, frame_id_inner): Define.
1333 (frame_id_build): New function.
1334 * varobj.c (varobj_create): Update.
1335 (varobj_update): Update.
1336 * valops.c (value_assign): Update.
1337 (new_root_variable): Update.
1338 * infrun.c (save_inferior_status): Update.
1339 * breakpoint.c (watch_command_1): Update.
1341 2002-12-03 J. Brobecker <brobecker@gnat.com>
1343 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1346 2002-12-03 Andrew Cagney <cagney@redhat.com>
1348 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1351 * PROBLEMS: Mention PR gdb/725.
1353 2002-12-03 Andreas Schwab <schwab@suse.de>
1355 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1357 2002-12-02 Adam Fedor <fedor@gnu.org>
1358 Klee Dienes <kdienes@apple.com>
1360 * objc-lang.c (objc_printstr): Add width arg to match
1362 (compare_selectors): Add 'const' to arg types.
1363 (compare_classes): Likewise.
1364 (find_imps): Cast msym pointer to avoid compiler warning.
1365 (print_object_command): Validate the address before
1366 passing it to the print routine.
1367 (find_objc_msgcall_submethod): Change function argument to
1369 * objc-lang.h: Add 'extern' to all function declarations.
1370 (value_nsstring): Add declaration.
1372 2002-12-02 J. Brobecker <brobecker@gnat.com>
1374 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1375 Fixes a build failure on HP/UX.
1377 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1379 (hpread_has_name): Advance declaration to avoid a compilation warning.
1380 (pst_syms_count): Add missing variable type. By change, the compiler
1381 was defaulting to int, which seems a good choice. Fixes a compilation
1383 (pst_syms_size): Likewise.
1385 2002-12-02 J. Brobecker <brobecker@gnat.com>
1387 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1388 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1389 later to set the proper gdbarch methods depending on the osabi.
1390 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1392 2002-12-02 J. Brobecker <brobecker@gnat.com>
1394 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1395 * osabi.c (gdb_osabi_name): Add strings images for the two new
1397 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1399 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1401 * MAINTAINERS (Java): Global maintainers are responible for Java.
1402 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1403 part Java maintainers.
1405 2002-12-02 J. Brobecker <brobecker@gnat.com>
1407 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1408 Fixes a compilation failure on AiX.
1410 2002-12-02 J. Brobecker <brobecker@gnat.com>
1412 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1413 why aix-thread.o is not listed.
1415 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1417 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1418 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1419 * gdbarch.h, gdbarch.c: Re-generate.
1420 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1421 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1422 * config/pa/tm-hppa.h, frame.h: Update.
1423 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1424 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1425 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1426 * cris-tdep.c, alpha-tdep.c: Update.
1427 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1428 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1429 (get_prev_frame): Ditto.
1431 2002-11-30 Andrew Cagney <cagney@redhat.com>
1433 * exec.c (xfer_memory): Replace boolean with int.
1434 * p-exp.y: Use 0 instead of false.
1435 * corelow.c (gdb_check_format): Change return type to int from
1437 * utils.c: Don't include <curses.h> or <term.h> first.
1439 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1441 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1442 (m68hc11_register_byte): Remove.
1443 (m68hc11_gdbarch_init): Don't set the above.
1445 2002-11-29 Andrew Cagney <cagney@redhat.com>
1447 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1448 by calling get_selected_frame.
1449 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1450 set_current_frame, create_new_frame, select_frame and
1452 * remote-e7000.c (e7000_start_remote): Ditto.
1453 * remote-mips.c (common_open): Ditto
1454 * remote-rdp.c (remote_rdp_open): Ditto.
1456 2002-11-29 Andreas Schwab <schwab@suse.de>
1458 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1459 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1460 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1461 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1462 read_memory_unsigned_integer instead of read_memory_integer when
1463 dealing with addresses and instruction opcodes.
1464 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1465 (m68k_linux_frame_saved_pc): Likewise.
1467 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1469 * stack.c (selected_frame, select_frame): Move from here ...
1470 * frame.c (selected_frame, select_frame): ... to here. Include
1472 * Makefile.in (frame.o): Update dependencies.
1473 * frame.c (get_selected_frame): New function.
1474 * frame.h (get_selected_frame): Declare.
1475 (deprecated_selected_frame): Rename selected_frame.
1476 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1477 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1478 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1479 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1480 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1481 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1482 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1483 * z8k-tdep.c, cli/cli-cmds.c: Update.
1485 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1487 * frame.h (get_selected_block): Add comments.
1489 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1491 * frame.c (pc_notcurrent): New function.
1492 (find_frame_sal): New function.
1493 * frame.h (find_frame_sal): Declare.
1494 (struct symtab_and_line): Add opaque declaration.
1495 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1497 (frame_info): Ditto.
1498 * ada-lang.c (find_printable_frame): Ditto.
1500 2002-11-28 J. Brobecker <brobecker@gnat.com>
1502 * configure.in: Check that the pthdebug library is recent enough
1503 before enabling thread support on native AiX.
1504 * configure: Regenerate.
1506 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1507 from the list of object files as it is now appended by configure
1508 if thread support is enabled.
1509 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1510 if thread support is enabled.
1512 2002-11-28 Andrew Cagney <cagney@redhat.com>
1514 * stack.c (get_selected_block): In-line get_current_block.
1515 * frame.h (get_current_block): Delete declaration.
1516 * blockframe.c (get_current_block): Delete function.
1518 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1520 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1521 USE_GENERIC_DUMMY_FRAMES.
1522 * gdbarch.h, gdbarch.c: Regenerate.
1523 * valops.c, frame.c: Update.
1524 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1525 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1526 * config/pa/tm-hppa.h, blockframe.c: Update.
1527 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1528 * m68k-tdep.c, alpha-tdep.c: Ditto.
1530 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1531 * mips-tdep.c: Ditto.
1533 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1535 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1536 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1537 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1538 * gdbarch.c, gdbarch.h: Re-generate.
1539 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1540 (CALL_DUMMY_LOCATION): Delete macro definition.
1541 (PC_IN_CALL_DUMMY): Delete macro definitions.
1543 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1544 default is already generic_pc_in_call_dummy.
1545 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1546 * v850-tdep.c (v850_gdbarch_init): Ditto.
1547 * sh-tdep.c (sh_gdbarch_init): Ditto.
1548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1549 * mips-tdep.c (mips_gdbarch_init): Ditto.
1550 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1551 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1552 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1553 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1554 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1555 * avr-tdep.c (avr_gdbarch_init): Ditto.
1557 * arm-tdep.c (arm_gdbarch_init): Do not set
1558 use_generic_dummy_frames, default is already 1.
1559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1560 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1561 * v850-tdep.c (v850_gdbarch_init): Ditto.
1562 * sh-tdep.c (sh_gdbarch_init): Ditto.
1563 * s390-tdep.c (s390_gdbarch_init): Ditto.
1564 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1565 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1566 * mips-tdep.c (mips_gdbarch_init): Ditto.
1567 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1569 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1570 * i386-tdep.c (i386_gdbarch_init): Ditto.
1571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1572 * frv-tdep.c (frv_gdbarch_init): Ditto.
1573 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1574 * cris-tdep.c (cris_gdbarch_init): Ditto.
1575 * avr-tdep.c (avr_gdbarch_init): Ditto.
1577 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1578 call_dummy_location, default is already AT_ENTRY_POINT.
1579 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1580 * v850-tdep.c (v850_gdbarch_init): Ditto.
1581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1582 * sh-tdep.c (sh_gdbarch_init): Ditto.
1583 * s390-tdep.c (s390_gdbarch_init): Ditto.
1584 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1585 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1586 * mips-tdep.c (mips_gdbarch_init): Ditto.
1587 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1589 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1590 * i386-tdep.c (i386_gdbarch_init): Ditto.
1591 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1592 * frv-tdep.c (frv_gdbarch_init): Ditto.
1593 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1594 * cris-tdep.c (cris_gdbarch_init): Ditto.
1595 * avr-tdep.c (avr_gdbarch_init): Ditto.
1596 * arm-tdep.c (arm_gdbarch_init): Ditto.
1597 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1599 2002-11-28 Andrew Cagney <cagney@redhat.com>
1601 * frame.h: Update comments on set_current_frame, create_new_frame,
1602 flush_cached_frames, reinit_frame_cache, select_frame and
1605 2002-11-27 Andrew Cagney <cagney@redhat.com>
1607 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1608 deprecated pc_in_call_dummy function.
1609 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1610 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1611 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1612 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1613 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1615 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1617 * Makefile.in: Remove Tix dependencies.
1618 * acinclude.m4: Ditto.
1619 * aclocal.m4: Ditto.
1620 * configure.in: Ditto.
1621 * configure: Regenerated.
1623 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1625 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1626 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1627 * gdbarch.c: Re-generate.
1629 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1631 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1632 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1633 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1634 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1635 pc_in_call_dummy_at_entry_point.
1636 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1637 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1638 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1639 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1640 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1641 pc_in_call_dummy_on_stack.
1642 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1643 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1644 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1645 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1646 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1648 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1650 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1651 pc_in_call_dummy_before_text_end
1652 (deprecated_pc_in_call_dummy_after_text_end): Rename
1653 pc_in_call_dummy_after_text_end.
1654 (deprecated_pc_in_call_dummy_on_stack): Rename
1655 pc_in_call_dummy_on_stack.
1656 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1657 pc_in_call_dummy_at_entry_point.
1658 * m68k-tdep.c (m68k_gdbarch_init): Update.
1659 * s390-tdep.c (s390_gdbarch_init): Update.
1660 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1661 * vax-tdep.c (vax_gdbarch_init): Update.
1662 * sparc-tdep.c (sparc_gdbarch_init): Update.
1663 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1664 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1665 * i386-tdep.c (i386_gdbarch_init): Update.
1666 * frv-tdep.c (frv_gdbarch_init): Update.
1667 * cris-tdep.c (cris_gdbarch_init): Update.
1668 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1669 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1670 (deprecated_pc_in_call_dummy_after_text_end)
1671 (deprecated_pc_in_call_dummy_on_stack)
1672 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1673 * alpha-tdep.c (alpha_gdbarch_init): Update.
1675 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1677 * acconfig.h (HAVE_PREAD64): Add.
1678 * configure.in: Check for pread64.
1679 * config.in: Regenerated.
1680 * configure: Regenerated.
1681 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1682 * linux-proc.c (linux_proc_xfer_memory): New function.
1683 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1685 2002-11-25 David Carlton <carlton@math.stanford.edu>
1687 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1690 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1692 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1693 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1695 2002-11-25 Jim Blandy <jimb@redhat.com>
1697 * symfile.c (init_objfile_sect_indices): New function.
1698 (default_symfile_offsets): Move the section-index-initializing
1699 stuff into init_objfile_sect_indices, and call that.
1701 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1702 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1704 * symfile.c (syms_from_objfile): Adjust indentation.
1706 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1707 || info_verbose isn't true.
1709 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1711 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1712 default to get_frame_base.
1713 * gdbarch.h, gdbarch.c: Regenerate.
1714 * arch-utils.c (default_frame_address): Delete function.
1715 * arch-utils.h (default_frame_address): Delete declaration
1717 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1719 * varobj.c (find_frame_addr_in_frame_chain):
1720 Use get_frame_base instead of FRAME_FP,
1723 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1725 * frame.h (FRAME_FP): Delete macro.
1726 (get_frame_base): New function declaration.
1727 * frame.c (get_frame_base): New function.
1728 (get_frame_id): Use ->frame.
1729 (frame_find_by_id): Rewrite to use get_frame_id.
1730 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1731 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1732 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1733 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1734 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1735 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1736 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1738 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1740 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1742 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1744 * frame.c (set_unwind_by_pc): Revert change below, use
1746 (get_prev_frame): Ditto.
1748 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1750 * dummy-frame.c (pc_in_dummy_frame): New function.
1751 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1752 (find_dummy_frame): Update comment.
1753 (generic_pop_current_frame): Use get_frame_type.
1754 * dummy-frame.h (pc_in_dummy_frame): Declare.
1755 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1756 (create_new_frame): Use pc_in_dummy_frame.
1757 (get_prev_frame): Use pc_in_dummy_frame.
1758 (frame_saved_regs_register_unwind): Use get_prev_frame.
1759 (deprecated_generic_get_saved_register): Use get_prev_frame.
1761 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1763 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1765 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1766 (varobj_create): Note that frame ID should be used.
1767 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1769 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1771 * breakpoint.c: Include "gdb_assert.h".
1772 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1774 * Makefile.in (breakpoint.o): Update dependencies.
1775 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1776 deprecated_frame_in_dummy.
1777 * stack.c (print_frame_info_base): Ditto.
1778 (frame_info): Ditto.
1779 (print_frame_info_base): Ditto. Delete dead code.
1781 2002-11-23 Andreas Schwab <schwab@suse.de>
1783 * Makefile.in (m68k_tdep_h): Define.
1784 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1785 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1786 * m68k-tdep.c: Move register number enum ...
1787 * m68k-tdep.h: ... to this new file and rename the constants from
1788 E_* to M68K_*. All uses changed.
1789 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1790 * abug-rom.c: Include "m68k-tdep.h". Use
1791 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1792 * cpu32bug-rom.c: Likewise.
1793 * dbug-rom.c: Likewise.
1794 * m68k-tdep.c: Likewise.
1795 * m68klinux-nat.c: Likewise.
1796 * remote-est.c: Likewise.
1797 * rom68k-rom.c: Likewise.
1798 * config/m68k/tm-linux.h: Likewise.
1800 2002-11-23 Andrew Cagney <ac131313@redhat.com>
1802 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1803 dummy frame initialization code.
1804 * mips-tdep.c (mips_gdbarch_init): Ditto.
1806 2002-11-22 Christopher Faylor <cgf@redhat.com>
1808 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1811 2002-11-22 Andrew Cagney <ac131313@redhat.com>
1813 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1814 to default_frame_address.
1815 * gdbarch.h, gdbarch.c: Re-generate.
1817 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1818 or frame_locals_address to default_frame_address.
1819 * m68k-tdep.c (m68k_gdbarch_init): Update.
1820 * i386-tdep.c (i386_gdbarch_init): Update.
1821 * frv-tdep.c (frv_gdbarch_init): Update.
1822 * sh-tdep.c (sh_gdbarch_init): Update.
1823 * v850-tdep.c (v850_gdbarch_init): Update.
1824 * sparc-tdep.c (sparc_gdbarch_init): Update.
1825 * mips-tdep.c (mips_gdbarch_init): Update.
1826 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1827 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1828 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1830 * cris-tdep.c (cris_frame_args_address): Delete function.
1831 (cris_frame_locals_address): Delete function.
1832 (cris_gdbarch_init): Do not set frame_args_address or
1833 frame_locals_address.
1835 2002-11-22 Michael Snyder <msnyder@redhat.com>
1837 * thread-db.c (thread_db_load): Tell the user what's going on
1838 if dlopen fails on libthread_db.
1840 2002-11-23 Andreas Schwab <schwab@suse.de>
1842 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1843 invariant return values.
1845 2002-11-22 Andreas Schwab <schwab@suse.de>
1847 * valops.c (value_slice): Move declaration of `offset' to avoid
1850 2002-11-22 Christopher Faylor <cgf@redhat.com>
1852 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1853 (struct so_stuff): Add end_addr field.
1854 (register_loaded_dll): Calculate and store end address of loaded dll.
1855 (solib_address): New function.
1856 (child_solib_loaded_library_pathname): Pass carefully constructed
1857 section info to safe_symbol_file_add rather than ignoring it.
1858 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1860 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1861 (child_create_inferior): Fix a compiler warning.
1862 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1863 (solib_address): Declare new function.
1865 2002-11-22 Andreas Schwab <schwab@suse.de>
1867 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1870 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1872 * maint.c (_initialize_maint_cmds): Fix typo. From
1873 Francesco Potorti` <pot@gnu.org>.
1875 2002-11-21 Andrew Cagney <cagney@redhat.com>
1877 * mips-tdep.c (mips_dump_tdep): Delete references to
1878 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1879 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1880 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1881 * printcmd.c (build_address_symbolic): Delete calls to
1882 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1883 (address_info): Ditto.
1886 2002-11-19 Klee Dienes <kdienes@apple.com>
1887 Adam Fedor <fedor@gnu.org>
1889 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1890 the ability to explicitly specify the quote characters and word
1891 break characters; if NULL is specified for either, use the old
1892 behavior of using the characters used by the completer.
1893 (skip_chars): New function. Convenience wrapper around
1894 skip_quoted_chars to provide the original skip_chars behavior.
1895 * completer.h (skip_quoted_chars): Add prototype.
1897 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1899 Problems reported by Paul Eggert.
1900 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1902 2002-11-19 Andreas Schwab <schwab@suse.de>
1904 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1905 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1906 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1907 (m68k_linux_frame_saved_pc): Move to ...
1908 * m68klinux-tdep.c: ... here. New file.
1909 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1910 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1912 2002-11-19 Adam Fedor <fedor@gnu.org>
1914 * objc-exp.y: Revert to old skip_quoted usage.
1916 2002-11-19 Adam Fedor <fedor@gnu.org>
1918 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1919 (objc_lang_h): Define.
1920 (YYFILES): Add objc-exp.tab.c.
1921 (local-maintainer-clean): Remove objc-exp.tab.c.
1922 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1924 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
1926 * p-exp.y (typecast rule): Add automatic dereference of
1927 pascal classes if needed.
1928 (THIS): Set current_type.
1929 Automatically dereference pascal classes.
1930 (typebase rule): Add ^typebase recognition.
1932 2002-11-18 Adam Fedor <fedor@gnu.org>
1934 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1935 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1936 (op_name): Handle OP_OBJC_SELF.
1937 * Makefile.in (expprint.o): Add additional depends.
1939 2002-11-18 Adam Fedor <fedor@gnu.org>
1941 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1942 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1943 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1944 * objc-exp.y: Likewise.
1946 2002-11-18 Adam Fedor <fedor@gnu.org>
1948 * gdb/parser-defs.h: (struct objc_class_str): New structure
1949 for parsing ObjC classes.
1951 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1953 * stack.c (frame_relative_level): Copy function from here ...
1954 * frame.c (frame_relative_level): ...to here.
1956 2002-11-18 Andrew Cagney <ac131313@redhat.com>
1958 * frame.h (enum frame_type): Define.
1959 (get_frame_type): Declare.
1960 (struct frame_info): Add field `type'. Delete field
1961 signal_handler_caller.
1962 (deprecated_set_frame_signal_handler_caller): Declare.
1963 * frame.c (get_frame_type): New function.
1964 (deprecated_set_frame_type): New function.
1965 (create_new_frame): Set the frame's type.
1966 (get_prev_frame): Similar.
1967 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1968 * s390-tdep.c: Ditto.
1969 * m68klinux-nat.c: Ditto.
1970 * ns32k-tdep.c: Ditto.
1971 * x86-64-linux-tdep.c: Ditto.
1972 * vax-tdep.c: Ditto.
1973 * rs6000-tdep.c: Ditto.
1974 * ppc-linux-tdep.c: Ditto.
1975 * i386-interix-tdep.c: Ditto.
1976 * mips-tdep.c: Ditto.
1977 * m68k-tdep.c: Ditto.
1978 * hppa-tdep.c: Ditto.
1979 * ia64-tdep.c: Ditto.
1980 * cris-tdep.c: Ditto.
1981 * arm-tdep.c: Ditto.
1982 * alpha-tdep.c: Ditto.
1983 * i386-tdep.c: Ditto.
1985 * ada-lang.c: Ditto.
1986 * blockframe.c: Update.
1987 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1988 deprecated_set_frame_type instead of signal_handler_caller.
1989 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1990 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1991 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1993 2002-11-18 Klee Dienes <kdienes@apple.com>
1995 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1997 2002-11-18 Klee Dienes <kdienes@apple.com>
1999 * buildsym.c (pop_context): Add comment.
2001 2002-11-18 Klee Dienes <kdienes@apple.com>
2003 * buildsym.h (pop_context): Convert to function, defined in
2005 * buildsym.c: Include gdb_assert.h.
2006 (pop_context): Implement as C function. Add check for stack
2008 * dbxread.c (process_one_symbol): Complain and stop processing
2009 that symbol if we are already at the top of the context stack for
2010 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2011 when processing N_RBRAC.
2013 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2015 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2017 (struct target_waitstatus): Add opaque definition.
2018 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2019 * exec.c (init_exec_ops): Likewise.
2020 * fork-child.c (clone_and_follow_inferior): Remove.
2021 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2022 * inferior.h (clone_and_follow_inferior): Remove prototype.
2023 * infrun.c (follow_fork_mode_both): Remove.
2024 (follow_fork_mode_kind_names): Remove commented out "both".
2025 (follow_inferior_fork): Remove follow_fork_mode_both support.
2026 * inftarg.c (child_clone_and_follow_inferior): Remove.
2027 (child_post_follow_inferior_by_clone): Remove.
2028 (init_child_ops): Don't set to_clone_and_follow_inferior
2029 or to_post_follow_inferior_by_clone.
2030 * target.c (default_clone_and_follow_inferior): Remove.
2031 (cleanup_target): Don't set to_clone_and_follow_inferior
2032 or to_post_follow_inferior_by_clone.
2033 (find_default_clone_and_follow_inferior): Remove.
2034 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2035 (debug_to_clone_and_follow_inferior): Remove.
2036 (debug_to_post_follow_inferior_by_clone): Remove.
2037 (setup_target_debug): Don't set to_clone_and_follow_inferior
2038 or to_post_follow_inferior_by_clone.
2039 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2040 and to_post_follow_inferior_by_clone.
2041 (child_clone_and_follow_inferior): Remove prototype.
2042 (child_post_follow_inferior_by_clone): Remove prototype.
2043 (target_clone_and_follow_inferior): Remove macro.
2044 (target_post_follow_inferior_by_clone): Remove macro.
2045 (find_default_clone_and_follow_inferior): Remove prototype.
2047 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2049 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2050 inferior_has_vforked, and inferior_has_execd instead of
2051 target_has_forked, target_has_vforked, and target_has_execd.
2052 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2053 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2054 (CHILD_WAIT): Define.
2055 (child_wait): Add prototype.
2056 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2058 (hpux_has_vforked): Likewise, from child_has_vforked.
2059 (hpux_has_execd): Likewise, from child_has_execd.
2060 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2061 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2062 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2063 and hpux_has_syscall_event instead of the target hooks.
2064 * infrun.c (inferior_has_forked, inferior_has_vforked)
2065 (inferior_has_execd): New functions.
2066 * inftarg.c (not_same_real_pid): Remove.
2067 (child_wait): Remove references to not_same_real_pid,
2068 target_has_forked, target_has_vforked, target_has_execd,
2069 and target_has_syscall_event.
2070 (child_has_forked, child_has_vforked, child_has_execd)
2071 (child_has_syscall_event): Remove.
2072 (init_child_ops): Remove references to child_has_forked,
2073 child_has_vforked, child_has_execd, and child_has_syscall_event.
2074 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2075 (hpux_has_vforked): Likewise, from child_has_vforked.
2076 (hpux_has_execd): Likewise, from child_has_execd.
2077 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2078 * target.c (cleanup_target): Remove references to
2079 to_has_forked, to_has_vforked, to_has_execd, and
2080 to_has_syscall_event.
2081 (update_current_target): Likewise.
2082 (setup_target_debug): Likewise.
2083 (debug_to_has_forked): Remove.
2084 (debug_to_has_vforked): Remove.
2085 (debug_to_has_execd): Remove.
2086 (debug_to_has_syscall_event): Remove.
2087 * target.h (struct target_ops): Remove to_has_forked.
2088 to_has_vforked, to_has_execd, and to_has_syscall_event.
2089 (child_has_forked, child_has_vforked, child_has_execd)
2090 (child_has_syscall_event): Remove prototypes.
2091 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2093 (target_has_forked, target_has_vforked, target_has_execd)
2094 (target_has_syscall_event): Remove macros.
2096 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2098 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2099 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2100 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2101 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2102 * target.c (cleanup_target): Remove reference to
2103 to_can_follow_vfork_prior_to_exec.
2104 (update_current_target): Likewise.
2105 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2106 (setup_target_debug): Remove reference to
2107 to_can_follow_vfork_prior_to_exec.
2108 * target.h (struct target_ops): Remove
2109 to_can_follow_vfork_prior_to_exec.
2110 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2111 (target_can_follow_vfork_prior_to_exec): Remove definition.
2112 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2114 * infrun.c (follow_vfork_when_exec): Remove.
2115 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2116 (follow_exec): Likewise.
2117 (handle_inferior_event): Likewise.
2118 (keep_going): Likewise.
2120 2002-11-15 Andrew Cagney <cagney@redhat.com>
2122 * frame.c (generic_unwind_get_saved_register): Make static.
2123 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2124 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2125 defaults to generic_unwind_get_saved_register.
2126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2127 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2128 * frv-tdep.c (frv_gdbarch_init): Ditto.
2129 * i386-tdep.c (i386_gdbarch_init): Ditto.
2130 * s390-tdep.c (s390_gdbarch_init): Ditto.
2131 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2132 * v850-tdep.c (v850_gdbarch_init): Ditto.
2133 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2134 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2135 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2137 2002-11-15 Andrew Cagney <cagney@redhat.com>
2139 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2142 2002-11-15 Andrew Cagney <cagney@redhat.com>
2144 * frame.h (sigtramp_saved_pc): Delete declaration.
2145 * blockframe.c (sigtramp_saved_pc): Delete function.
2146 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2147 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2148 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2149 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2151 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2153 * frame.c (frame_pc_unwind): New function.
2154 (frame_saved_regs_pc_unwind): New function.
2155 (frame_register_unwind): Pass unwind_cache instead of
2156 register_unwind_cache.
2157 (set_unwind_by_pc): Add unwind_pc parameter, set.
2158 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2159 (get_prev_frame): Ditto.
2160 * frame.h (frame_pc_unwind_ftype): Declare.
2161 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2162 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2163 (frame_pc_unwind): Declare.
2164 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2165 (struct dummy_frame): Add comment mentioning that values are for
2167 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2168 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2169 (generic_file_frame_chain_valid): Ditto.
2170 * stack.c (frame_info): Ditto.
2172 2002-11-15 David Carlton <carlton@math.stanford.edu>
2174 * linespec.c (locate_first_half): New function.
2175 (decode_line_1): Move code into locate_first_half.
2177 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2179 * complaints.h: Add comment explaining how to eliminate a
2180 deprecated_complain call.
2181 * complaints.h: Fix spelling errors.
2183 2002-11-15 David Carlton <carlton@math.stanford.edu>
2185 * printcmd.c: Remove #include "disasm.h".
2187 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2189 * frame.h: Move the most relevant interface functions to the start
2192 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2194 * regcache.h (deprecated_registers): Rename registers.
2195 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2196 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2197 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2198 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2199 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2200 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2201 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2202 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2203 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2204 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2205 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2206 * v850ice.c: Update.
2208 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2210 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2213 2002-11-13 Andrew Cagney <cagney@redhat.com>
2215 * regcache.h (deprecated_read_register_bytes): Rename
2216 read_register_bytes.
2217 (deprecated_write_register_bytes): Rename write_register_bytes.
2218 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2219 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2220 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2221 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2222 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2223 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2224 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2225 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2226 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2227 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2228 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2229 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2230 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2231 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2233 2002-11-13 Jim Blandy <jimb@redhat.com>
2235 * findvar.c (read_var_value): Doc fix.
2237 2002-11-13 Andrew Cagney <cagney@redhat.com>
2239 * regcache.c (struct regcache): Replace passthough_p with
2241 (regcache_xmalloc): Initialize readonly_p.
2242 (build_regcache): Initialize readonly_p.
2243 (regcache_save): New function.
2244 (regcache_restore): New function.
2245 (regcache_cpy): Re-implement using regcache_save and
2247 (regcache_raw_read): Update.
2248 (regcache_cooked_read): When a read-only cache, checked for cached
2249 pseudo register values.
2250 (regcache_raw_write): Assert that the cache is not read-only.
2251 Remove code handling a non-passthrough cache.
2252 * regcache.h (regcache_save): Declare.
2253 (regcache_restore): Declare.
2255 2002-11-13 Andrew Cagney <cagney@redhat.com>
2257 * regcache.c (struct regcache_descr): Add fields
2258 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2259 (init_legacy_regcache_descr): Compute the size of a cooked
2260 register cache and then assign that to sizeof_raw_registers. Set
2261 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2262 (init_legacy_regcache_descr): Ditto.
2264 2002-11-13 Andrew Cagney <cagney@redhat.com>
2266 * regcache.c (register_buffer): Move to near start of file, update
2268 (regcache_raw_read): Use.
2269 (regcache_raw_write): Use.
2270 (struct regcache): Rename raw_registers to registers and
2271 raw_register_valid_p to register_valid_p.
2272 (regcache_xmalloc): Update.
2273 (regcache_xfree): Update.
2274 (register_buffer): Update.
2275 (regcache_cpy): Update.
2276 (regcache_cpy_no_passthrough): Update.
2277 (regcache_valid_p): Update.
2278 (deprecated_grub_regcache_for_registers): Update.
2279 (deprecated_grub_regcache_for_register_valid): Update.
2280 (set_register_cached): Update.
2281 (regcache_raw_write): Update.
2283 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2285 * p-exp.y (name_not_typename): Use copy_name to
2286 set current_type variable for fields of THIS.
2288 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2290 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2291 * monitor.c (init_base_monitor_ops): Likewise.
2292 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2293 * remote-array.c (init_array_ops): Likewise.
2294 * remote-e7000.c (init_e7000_ops): Likewise.
2295 * remote-es.c (init_es1800_ops): Likewise.
2296 (init_es1800_child_ops): Likewise.
2297 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2298 * remote-sim.c (init_gdbsim_ops): Likewise.
2299 * remote-st.c (init_st2000_ops): Likewise.
2300 * sol-thread.c (init_sol_core_ops): Likewise.
2301 (init_sol_thread_ops): Likewise.
2302 * v850ice.c (init_850ice_ops): Likewise.
2303 * win32-nat.c (init_child_ops): Likewise.
2304 * wince.c (init_child_ops): Likewise.
2306 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2308 * utils.c (gdb_realpath): Make rp a constant pointer.
2310 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2312 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2313 a constant buffer; cannonicalize_file_name(); realpath() with a
2314 pathconf() defined buffer, xstrdup().
2316 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2318 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2319 to hang2.C; hang3.c to hang3.C.
2321 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2323 * findvar.c (read_var_value): Reenable TLS code.
2325 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2326 Jim Blandy <jimb@redhat.com>
2328 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2329 * target.c (update_current_target): Add
2330 to_get_thread_local_address.
2331 * target.h (to_get_thread_local_address): Export.
2332 (target_get_thread_local_address): Define.
2333 (target_get_thread_local_address_p): Define.
2334 * thread-db.c: Include solib-svr4.h.
2335 (td_thr_tls_get_addr_p): Define.
2336 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2337 (thread_db_get_thread_local_address): New function.
2338 (init_thread_db_ops): Initialize to_get_thread_local_address.
2339 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2340 * configure: Regenerate.
2341 * config.in: Regenerate.
2343 2002-11-11 David Carlton <carlton@math.stanford.edu>
2345 * linespec.c (set_flags): New function.
2346 (decode_line_1): Move code into set_flags.
2348 2002-11-11 David Carlton <carlton@math.stanford.edu>
2350 * linespec.c (decode_line_1): Move chunks of code to separate
2352 (initialize_defaults): New function.
2353 (decode_indirect): New function.
2355 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2357 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2358 instead of void_code_ptr.
2359 (sigtramp_saved_pc): Ditto.
2361 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2364 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2366 * gdbtypes.h (struct main_type): Move artificial flag out of
2367 loc. New member of ``struct field'' named static_kind. Reduce
2368 overloaded meaning of bitsize.
2369 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2370 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2371 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2373 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2375 (template_to_fixed_record_type, template_to_static_fixed_type)
2376 (to_record_with_fixed_variant_part): Likewise.
2377 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2378 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2379 * dwarfread.c (struct_type, enum_type): Likewise.
2380 * hpread.c (hpread_read_enum_type)
2381 (hpread_read_function_type, hpread_read_doc_function_type)
2382 (hpread_read_struct_type): Likewise.
2383 * mdebugread.c (parse_symbol): Likewise.
2385 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2387 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2388 * stack.c (print_frame_info_base): Update.
2389 (print_frame_info_base, frame_info): Update.
2390 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2391 (sparc_frame_saved_pc): Update.
2392 * ada-lang.c (find_printable_frame): Update.
2393 * breakpoint.c (deprecated_frame_in_dummy): Update.
2395 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2397 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2399 (regmap): Extend to cover all registers.
2400 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2401 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2403 (fetch_register, sore_register): Simplify.
2404 (old_fetch_inferior_registers, old_store_inferior_registers):
2406 (cannot_fetch_register, cannot_store_register): Change
2407 implementation to use regmap array to decide which registers
2408 cannot be fetched/stored. This removes $orig_eax from the
2409 registers that cannot be fetched/stored.
2410 (fetch_inferior_registers): Call fetch_register directly instead
2411 of calling old_fetch_inferior_registers.
2412 (store_inferior_registers): Call store_register directly instead
2413 of calling old_store_inferior_registers.
2414 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2415 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2416 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2418 2002-11-09 Klee Dienes <kdienes@apple.com>
2420 * i387-tdep.c (i387_supply_register): When called with NULL as a
2421 buffer, mark the register as not provided (to mirror the behavior
2422 of supply_register).
2423 (i387_supply_fxsave): Ditto.
2424 (i387_supply_fsave): Ditto (inherits the behavior from
2425 i387_supply_register).
2427 2002-11-09 Klee Dienes <kdienes@apple.com>
2429 * blockframe.c (sigtramp_saved_pc): Use
2430 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2431 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2432 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2434 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2436 * frame.c (get_prev_frame): Test prev_p to identify a previously
2437 unwound frame. Initialize prev_p.
2438 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2441 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2443 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2444 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2445 more comments. Zap dead code.
2447 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2449 * infcmd.c (print_vector_info, print_float_info): Move code that
2450 checks whether the target has any registers and whether there is a
2451 selected frame up, such that it is also used if a target provides
2452 multi-arch definitions of these functions.
2454 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2456 * Makefile.in (DESTDIR): Define.
2457 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2460 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2461 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2463 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2465 * i386-linux-tdep.c: Include "reggroups.h".
2466 (i386_linux_register_reggroup_p): New function.
2467 (i386_linux_init_abi): Set register_reggroup_p to
2468 i386_linux_register_reggroup_p.
2469 * i386-tdep.h (i386_register_reggroup_p): Declare.
2470 * i386-tdep.c: Include "reggroups.h".
2471 (i386_init_reggroups): New function.
2472 (i386_add_reggroups): New function.
2473 (i386_register_reggroup_p): New function.
2474 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2475 (_initialize_i386_tdep): Call i386_init_reggroups.
2476 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2479 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2481 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2482 request that's available in *BSD.
2484 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2486 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2489 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2491 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2492 * dummy-frame.c (find_dummy_frame): Rename
2493 generic_find_dummy_frame, make static. Return the dummy frame
2494 instead of the regcache.
2495 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2496 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2497 (dummy_frame_register_unwind): Rename
2498 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2499 * dummy-frame.h (dummy_frame_register_unwind): Rename
2500 generic_call_dummy_register_unwind.
2502 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2504 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2505 except the inclusion of "i386/tm-i386.h", to...
2506 * config/i386/nm-i386v42mp.h: ...here.
2507 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2509 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2511 * Makefile.in (frame.o): Update dependencies.
2512 * blockframe.c (current_frame, frame_obstack_alloc)
2513 (frame_saved_regs_zalloc, get_current_frame)
2514 (set_current_frame, create_new_frame)
2515 (set_unwind_by_pc, get_next_frame)
2516 (flush_cached_frames, reinit_frame_cache)
2517 (frame_saved_regs_register_unwind)
2518 (deprecated_generic_get_saved_register)
2519 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2520 (_initialize_blockframe): Move frame code from here...
2521 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2522 "annotate.h" and "dummy-frame.h".
2523 (_initialize_frame): New function.
2525 2002-11-08 Jim Blandy <jimb@redhat.com>
2527 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2528 when we finish a function a context.
2529 * buildsym.h (outermost_context_p): New macro.
2530 (Bug analyzed by David Edelsohn.)
2532 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2534 * blockframe.c: Include "dummy-frame.h".
2535 (struct dummy_frame, dummy_frame_stack)
2536 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2537 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2538 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2539 (generic_save_call_dummy_addr, generic_pop_current_frame)
2540 (generic_pop_dummy_frame, generic_fix_call_dummy)
2541 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2542 dummy frame code from here...
2543 * dummy-frame.c: ...to here. New file.
2544 * dummy-frame.h: New file.
2545 (generic_call_dummy_register_unwind): Declare.
2546 (generic_find_dummy_frame): Declare.
2547 * Makefile.in (SFILES): Add dummy-frame.c.
2548 (dummy-frame.o): Specify dependencies.
2549 (dummy_frame_h): Define.
2550 (COMMON_OBS): Add dummy-frame.o.
2551 (blockframe.o): Update dependencies.
2553 2002-11-08 Jim Blandy <jimb@redhat.com>
2555 * dwarf2read.c (read_func_scope): Restore local_symbols and
2556 param_symbols after we finish the function context. (Based on a
2557 patch from David Edelsohn.)
2559 2002-11-08 David Carlton <carlton@math.stanford.edu>
2561 * linespec.c (symbol_found): New function.
2562 (minsym_found): New function.
2563 (decode_line_1): Separate out some code into separate functions.
2565 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2567 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2568 the benefit of the interix target.
2569 * i386-tdep.h (i386_frameless_signal_p): Declare.
2571 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2573 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2574 declaration that snuck in from change below.
2576 2002-11-06 Andrew Cagney <cagney@redhat.com>
2578 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2580 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2581 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2582 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2583 (i386_mxcsr_regnum_p): new function. Use instead of
2585 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2586 (i386_sse_regnum_p): Declare.
2587 (i386_mxcsr_regnum_p): Declare.
2588 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2589 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2590 (IS_FP_REGNUM): Update definition.
2591 (IS_FPU_CTRL_REGNUM): Update definition..
2592 (IS_SSE_REGNUM): Update definition..
2593 * i386v-nat.c (register_u_addr): Update.
2594 * go32-nat.c (fetch_register): Update.
2595 (store_register): Update.
2597 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2599 Preparation work to convert the hppa targets to multiarch partial.
2601 * hppa-tdep.c: Add new functions replacing macro bodies from
2602 config/pa/tm-hppa.h. These function will be used to initialize
2603 the gdbarch structure. Import some comments from tm-hppa.h,
2604 and place them where appropriate, to avoid loosing them when
2605 we cleanup this file.
2606 (hppa_reg_struct_has_addr): New function.
2607 (hppa_inner_than): New function.
2608 (hppa_stack_align): New function.
2609 (hppa_pc_requires_run_before_use): New function.
2610 (hppa_instruction_nullified): New function.
2611 (hppa_register_byte): New function.
2612 (hppa_register_virtual_type): New function.
2613 (hppa_store_struct_return): New function.
2614 (hppa_cannot_store_register): New function.
2615 (hppa_frame_args_address): New function.
2616 (hppa_frame_locals_address): New function.
2617 (hppa_smash_text_address): New function.
2618 (hppa_coerce_float_to_double): New function. Requires the inclusion
2621 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2623 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2624 gdbarch-eligible macro to a call to the new associated function
2625 created in hppa-tdep.c.
2626 (INNER_THAN): Likewise.
2627 (STACK_ALIGN): Likewise.
2628 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2629 (INSTRUCTION_NULLIFIED): Likewise.
2630 (REGISTER_BYTE): Likewise.
2631 (REGISTER_VIRTUAL_TYPE): Likewise.
2632 (STORE_STRUCT_RETURN): Likewise.
2633 (CANNOT_STORE_REGISTER): Likewise.
2634 (FRAME_ARGS_ADDRESS): Likewise.
2635 (FRAME_LOCALS_ADDRESS): Likewise.
2636 (SMASH_TEXT_ADDRESS): Likewise.
2637 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2638 (ABOUT_TO_RETURN): Delete, as no longer used.
2640 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2642 * printcmd.c (disassemble_command): Remove obsolete function.
2643 (_initialize_printcmd): Do not create disassemble command here.
2644 * cli/cli-cmds.c (disassemble_command): New function. Implements
2645 disassemble command.
2646 (init_cli_cmds): Create disassemble command here instead.
2648 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2650 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2652 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2654 * regcache.h (regcache_cooked_read_using_offset_hack)
2655 (regcache_cooked_write_using_offset_hack): Delete declarations.
2656 (register_changed): Delete declaration.
2657 * regcache.c (regcache_cooked_read_using_offset_hack)
2658 (regcache_cooked_write_using_offset_hack): Delete functions.
2659 (cooked_xfer_using_offset_hack): Delete function.
2660 (register_changed): Delete function.
2662 2002-11-07 Jim Blandy <jimb@redhat.com>
2664 * macroscope.c: #include "complaints.h".
2665 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2666 but not in the macro table.
2667 * Makefile.in (macroscope.o): Record dependency.
2669 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2671 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2673 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2675 * regcache.c (deprecated_registers_fetched): Update.
2676 * regcache.h (deprecated_registers_fetched): Rename
2678 * remote-vxsparc.c (vx_read_register): Update.
2679 * remote-vxmips.c (vx_read_register): Update.
2680 * remote-vx68.c (vx_read_register): Update.
2681 * irix5-nat.c (fetch_core_registers): Update.
2682 * mipsm3-nat.c (fetch_inferior_registers): Update.
2683 * sun3-nat.c (fetch_inferior_registers): Update.
2684 * symm-nat.c (fetch_inferior_registers): Update.
2685 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2686 (fetch_core_registers): Update.
2687 (fetch_kcore_registers): Update.
2688 * mips-nat.c (fetch_inferior_registers): Update.
2689 * corelow.c (get_core_registers): Update.
2690 * a68v-nat.c (fetch_inferior_registers): Update.
2692 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2694 Put in place the framework necessary for multiarching the hppa targets.
2695 * hppa-tdep.c (hppa_gdbarch_init): New function.
2696 (hppa_dump_tdep): New function.
2697 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2698 tdep structure dumper.
2699 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2700 until the multi-arching conversion has partially been completed.
2702 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2704 * valops.c (value_assign): Merge lval_register case into
2705 lval_reg_frame_relative. Use frame_register and
2706 regcache_cooked_write instead of get_saved_register and
2707 write_register_bytes. After flushing the register cache, try to
2708 re-select the selected frame.
2710 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2712 * regcache.h (deprecated_register_valid): Rename register_valid.
2713 * regcache.c: Update.
2714 * ia64-aix-nat.c: Update.
2715 * i386gnu-nat.c: Update.
2716 * alpha-nat.c: Update.
2717 * sparc-nat.c: Update.
2718 * lynx-nat.c: Update.
2719 * remote-mips.c: Update.
2721 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2723 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2724 to end of file, to be more consistent with the pratice followed
2727 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2729 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2730 (print_float_info): Print registers in float_reggroup.
2731 (print_vector_info): Print registers in vector_reggroup.
2732 (default_print_registers_info): When all, print registers in
2733 all_reggroup. Otherwize, print registers in general_reggroup.
2734 (registers_info): Rewrite. Add support for register groups.
2737 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2739 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2741 (symtab_symbol_info): Remove eons old ifdeffed out code.
2742 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2745 2002-11-06 Theodore A. Roth <troth@openavr.org>
2747 * c-exp.y: Add missing semi-colons.
2748 * f-exp.y: Add missing semi-colons.
2749 * m2-exp.y: Add missing semi-colons.
2750 * p-exp.y: Add missing semi-colons.
2751 Add empty action to start rule to avoid a type clash error when
2752 building with bison >= 1.50.
2754 2002-11-06 Jim Blandy <jimb@redhat.com>
2756 * macrotab.h (struct macro_source_file): Doc fix.
2758 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2760 * varobj.c (child_exists, cplus_number_of_children): Change
2761 STREQ macro references to strcmp.
2762 (cplus_name_of_child): Change code to handle the fact that
2763 fields are not necessarily contiguous with regards to their
2764 access control. This is a fix for PR gdb/792.
2766 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2768 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2769 * gdbarch.h, gdbarch.c: Regnerate.
2770 * frame.h (frame_register): Declare.
2771 * frame.c (frame_register): New function.
2772 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2773 GET_SAVED_REGISTER, otherwize call
2774 generic_unwind_get_saved_register.
2775 (frame_register_read): Use frame_register instead of
2778 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2780 From Jim Ingham <jingham@apple.com>:
2781 * event-top.c (gdb_disable_readline): New function.
2782 (_initialize_event_loop): Move comment.
2784 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
2786 * event-loop.c (start_event_loop): Add comment.
2789 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2791 * infcmd.c (default_print_registers_info): Do not call
2792 PRINT_REGISTER_HOOK.
2794 2002-11-05 Andrew Cagney <ac131313@redhat.com>
2796 * sparc-tdep.c (sparc_print_register_hook): Make static.
2797 (sparc_print_registers_info): New function.
2798 (sparc_do_registers_info): New function.
2799 (sparclet_print_registers_info): New function.
2800 (sparclet_do_registers_info): New function.
2801 (do_sparc_print_registers_info): New function.
2802 (sparc_print_registers): New static function, clone of infcmd.c's
2803 default_print_registers_info.
2804 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2805 (sparclet_do_registers_info): Declare.
2806 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2807 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2809 (sparc_do_registers_info): Declare.
2810 (PRINT_REGISTER_HOOK): Delete macro.
2811 (sparc_print_register_hook): Delete declaration.
2813 2002-11-05 David Carlton <carlton@math.stanford.edu>
2815 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2817 (lookup_symbol_aux_local): New function.
2818 (lookup_symbol_aux_symtabs): New function.
2819 (lookup_symbol_aux_psymtabs): New function.
2821 2002-11-05 David Carlton <carlton@math.stanford.edu>
2823 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2824 previous values of 'objfile' and 'block'.
2826 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
2828 * values.c (value_change_enclosing_type): Set
2829 enclosing_type field correctly also for the case where
2830 more memory needs to be allocated.
2832 2002-11-03 Mark Kettenis <kettenis@gnu.org>
2834 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2837 * i387-tdep.c (i387_print_float_info): Replace calls to
2838 register_read and deprecated_read_register_gen with calls to
2839 frame_register_read, and make the necessary adjustments to the
2842 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2844 * gdbarch.sh (register_reggroup_p): Allow default value.
2845 * gdbarch.h, gdbarch.c: Regenerate.
2847 2002-11-02 Andrew Cagney <ac131313@redhat.com>
2849 * regcache.h: Add coment indicating replacements for deprecated
2852 2002-11-02 Andrew Cagney <cagney@redhat.com>
2854 * reggroups.h, reggroups.c: New files.
2855 * regcache.c: Include "reggroups.h".
2856 (enum regcache_dump_what): Add `regcache_dump_groups'.
2857 (regcache_dump): Contract size of the "Type" column. When
2858 specified, dump the register's groups.
2859 (maintenance_print_register_groups): New function.
2860 (_initialize_regcache): Add command `maint print register-groups'.
2861 * Makefile.in (COMMON_OBS): Add reggroups.o
2862 (SFILES): Add reggroups.c.
2863 (reggroups_h): Define.
2864 (regcache.o, gdbarch.o): Update dependencies.
2865 (reggroups.o): Specify dependencies.
2866 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2867 Add opaque declaration for `struct reggroup' in generated .h file.
2868 Include "reggroups.h" in generated .c file.
2869 gdbarch.h, gdbarch.c: Re-generate.
2871 2002-11-02 Andrew Cagney <cagney@redhat.com>
2873 * regcache.h (deprecated_read_register_gen): Rename
2875 (deprecated_write_register_gen): Rename write_register_gen.
2876 * i387-tdep.c: Update.
2877 * x86-64-linux-nat.c: Update
2879 * thread-db.c: Update.
2880 * win32-nat.c: Update.
2881 * mips-tdep.c: Update.
2882 * d10v-tdep.c: Update.
2883 * cris-tdep.c: Update.
2884 * remote-sim.c: Update.
2885 * remote-rdi.c: Update.
2886 * remote-rdp.c: Update.
2889 * blockframe.c: Update.
2890 * x86-64-tdep.c: Update.
2891 * xstormy16-tdep.c: Update.
2892 * sh-tdep.c: Update.
2893 * s390-tdep.c: Update.
2894 * rs6000-tdep.c: Update.
2895 * sparc-tdep.c: Update.
2896 * i386-tdep.c: Update.
2897 * dwarf2cfi.c: Update.
2898 * regcache.c: Update.
2900 2002-11-01 Joel Brobecker <brobecker@gnat.com>
2902 New interix-specific files:
2903 * config/i386/nm-interix.h: New file.
2904 * config/i386/interix.mh: New file.
2905 * config/i386/interix.mt: New file.
2906 * i386-interix-nat.c: New file.
2907 * i386-interix-tdep.c: New file.
2909 2002-11-01 Andrew Cagney <cagney@redhat.com>
2911 * frame.h (deprecated_generic_get_saved_register): Rename
2912 generic_get_saved_register.
2913 * blockframe.c (deprecated_generic_get_saved_register): Update.
2914 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2915 (xstormy16_frame_saved_register): Update.
2916 * sh-tdep.c (sh_gdbarch_init): Update.
2917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2918 * ia64-tdep.c (ia64_get_saved_register): Update.
2919 * cris-tdep.c (cris_gdbarch_init): Update.
2920 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2921 * arm-tdep.c (arm_gdbarch_init): Update.
2923 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2925 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2927 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
2929 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2930 trampolines in sigaction.
2932 2002-10-31 Andrew Cagney <cagney@redhat.com>
2934 * h8300-tdep.c: Include "gdb_assert.h".
2935 (h8300_print_register): Add gdbarch, file and frame parameters.
2936 Use frame_read_unsigned_register to read the register's value.
2937 Use fprintf_filtered to display output.
2938 (h8300_print_registers_info): Replace h8300_do_registers_info.
2939 (h8300_gdbarch_init): Set print_registers_info.
2941 2002-10-31 Andrew Cagney <cagney@redhat.com>
2943 * frame.c (frame_read_unsigned_register): New function.
2944 (frame_read_signed_register): New function.
2945 * frame.h (frame_read_unsigned_register): Declare.
2946 (frame_read_signed_register): Declare.
2948 2002-10-31 Andrew Cagney <cagney@redhat.com>
2950 * h8500-tdep.c (h8500_print_registers_info): New static function,
2951 clone of infcmd.c's default_print_registers_info.
2952 (h8500_do_registers_info): New funtion.
2953 (h8500_print_register_hook): Rename print_register_hook, make
2956 * config/h8500/tm-h8500.h: Update copyright.
2957 (DEPRECATED_DO_REGISTERS_INFO): Define.
2958 (h8500_do_registers_info: Declare.
2959 (PRINT_REGISTER_HOOK): Delete macro.
2960 (print_register_hook): Delete function.
2962 2002-10-31 Andrew Cagney <cagney@redhat.com>
2964 * z8k-tdep.c (z8k_print_register_hook): Make static.
2965 (z8k_print_registers_info): New static function, clone of
2966 infcmd.c's default_print_registers_info.
2967 (z8k_do_registers_info): New function. Wrap
2968 z8k_print_registers_info.
2969 * config/z8k/tm-z8k.h: Update copyright.
2970 (PRINT_REGISTER_HOOK): Delete macro.
2971 (z8k_print_register_hook): Delete declaration.
2972 (DEPRECATED_DO_REGISTERS_INFO): Define.
2973 (z8k_do_registers_info): Declare.
2975 2002-10-30 Joel Brobecker <brobecker@gnat.com>
2977 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2978 as this is already provided by value.h, and was actually causing
2979 a compilation error because of a conflict in parameter type
2980 declaration due to a missing const keyword.
2981 (low_text_segment_addres): Fix a compilation warning.
2983 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2985 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2986 registers without a name.
2987 (mips_linux_cannot_store_register): Don't store registers without
2990 2002-10-28 David Carlton <carlton@math.stanford.edu>
2992 * symtab.c (find_addr_symbol): Delete. (It was already commented
2994 * symtab.h: Delete prototype for find_addr_symbol.
2996 2002-10-26 Andrew Cagney <cagney@redhat.com>
2998 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3000 gdbarch.h, gdbarch.c: Re-generate.
3001 * infcmd.c (default_print_registers_info): Update reference.
3002 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3003 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3004 * sh-tdep.c (sh_gdbarch_init): Ditto.
3005 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3006 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3008 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3010 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3011 cfi_init_extra_frame_info.
3012 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3013 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3015 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3016 target where necessary. Add more comments and remove the ones
3017 that don't provide any useful information.
3019 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3020 deprecated_read_register_dummy with
3021 frame_unwind_unsigned_register.
3023 * i386-tdep.c (i386_extract_struct_value_address): Use
3024 regcache_raw_read_unsigned instead of
3025 regcache_cooked_read_unsigned since we know that the register
3026 we're reading isn't a pseudo register. Rename variable 'val' into
3027 the more descriptive 'addr'.
3029 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3030 (x86_64_push_return_address): Add comment.
3031 (x86_64_pop_frame): Make static.
3032 (examine_argument): Clarify comment.
3033 (x86_64_skip_prologue): Make prolog_expact variable static.
3035 * dwarf2cfi.c: Fix some formatting problems.
3036 (context_cpy, read_encoded_pointer): Clarify comments.
3038 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3039 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3040 i386 target back into x86_64_gdbarch_init. Add some comments and
3041 remove meaningless ones.
3043 2002-10-25 Andrew Cagney <cagney@redhat.com>
3045 * complaints.h (struct deprecated_complaint): Rename `struct
3047 * complaints.c (complain): Update.
3048 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3049 incorrect comment indicating that "symfile.h" was being included
3050 for the `struct complaint' definition.
3051 * remote-vx.c: Update.
3052 * objc-lang.c: Update.
3053 * xcoffread.c: Update.
3055 * mdebugread.c: Update.
3056 * stabsread.c: Update.
3057 * dwarf2read.c: Update.
3058 * dwarfread.c: Update.
3059 * elfread.c: Update.
3060 * coffread.c: Update.
3061 * stabsread.h: Update.
3062 * dbxread.c: Update.
3063 * buildsym.c: Update.
3064 * gdbtypes.c: Update.
3065 * macrotab.c: Update.
3067 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3069 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3070 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3071 (x86_64_init_abi): ...new function.
3073 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3074 * i386v-nat.c: Include "i386-tdep.h".
3076 2002-10-25 Andrew Cagney <cagney@redhat.com>
3078 * gdbtypes.c (address_space_name_to_int): Update.
3079 (address_space_int_to_name): Update.
3080 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3081 multi-arch predicate.
3082 (address_class_name_to_type_flags): Ditto.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3085 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3087 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3089 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3091 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3093 * symtab.h (INIT_SAL): Delete macro.
3095 * symtab.c (init_sal): New function.
3097 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3098 to init_sal function call.
3099 (find_sal_from_funcs_and_line): Ditto.
3100 (all_sals_for_line): Ditto.
3101 * breakpoint.c (create_internal_breakpoint): Ditto.
3102 (create_fork_vfork_event_catchpoint): Ditto.
3103 (create_exec_event_catchpoint): Ditto.
3104 (parse_breakpoint_sals): Ditto.
3105 (watch_command_1): Ditto.
3106 (handle_gnu_4_16_catch_command): Ditto.
3107 (clear_command): Ditto.
3108 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3109 * infcmd.c (run_stack_dummy): Ditto.
3110 * infrun.c (process_event_stop_test): Ditto.
3111 (check_sigtramp2): Ditto.
3112 (step_over_function): Ditto.
3113 * linespec.c (decode_line_2): Ditto.
3114 (decode_line_1): Ditto.
3115 * source.c (line_info): Ditto.
3116 * symtab.c (find_pc_sect_line): Ditto.
3118 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3120 * dwarf2cfi.c (struct context)
3121 (struct context_reg): Moved to dwarf2cfi.h
3122 (context_alloc, frame_state_alloc, context_cpy):
3123 Made extern instead of static, removed prototypes.
3124 * dwarf2cfi.h (struct context)
3125 (struct context_reg): New, moved from dwarf2cfi.c
3126 (context_alloc, frame_state_alloc, context_cpy):
3128 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3129 Changed from static to extern.
3130 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3131 (LINUX_SIGCONTEXT_FP_OFFSET)
3132 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3133 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3134 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3135 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3136 set_gdbarch_*() calls now use x86-64 specific functions
3137 instead of DWARF2 CFI ones.
3138 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3139 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3140 (x86_64_init_extra_frame_info): New prototypes.
3142 2002-10-23 David Carlton <carlton@math.stanford.edu>
3144 * linespec.c: #include "parser-defs.h".
3145 Delete prototype for find_template_name_end.
3146 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3148 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3150 * NEWS: add recent mi fixes.
3151 * varobj.c (struct varobj): Add new "updated" flag.
3152 (new_variable): Default "updated" flag to 0.
3153 (varobj_set_value): Set "updated" flag to 1 if value
3155 (varobj_update): Check varobj "updated" flag before
3156 comparing old and refreshed values. Fix for
3159 2002-10-23 David Carlton <carlton@math.stanford.edu>
3161 * parse.c (parse_exp_1): Use BLOCK_START.
3162 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3164 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3166 2002-10-23 David Carlton <carlton@math.stanford.edu>
3168 * symtab.c: Delete cplusplus_hint.
3169 Delete prototype for find_template_name_end.
3171 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3173 * symtab.h: Update comment.
3175 2002-10-23 Michael Snyder <msnyder@redhat.com>
3177 * printcmd.c (address_info): Restore quotes in output.
3178 * valops.c (value_of_local): Restore quotes in error message.
3180 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3182 * symtab.c (symbol_demangled_name): New function.
3183 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3184 turning most of it into a function.
3185 (symbol_demangled_name): Export.
3187 2002-10-23 Michael Snyder <msnyder@redhat.com>
3189 * valops.c (value_of_local): Restore quotes in error message.
3191 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3193 * symtab.c (symbol_init_language_specific): New function.
3194 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3195 turning most of it into a function.
3196 (symbol_init_language_specific): Export.
3198 2002-10-23 David Carlton <carlton@math.stanford.edu>
3200 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3201 (dwarf_attr_name): Ditto.
3202 (dwarf_type_encoding_name): Ditto.
3203 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3204 (process_die): Handle DW_TAG_namespace,
3205 DW_TAG_imported_declaration, DW_TAG_imported_module.
3206 (read_namespace): New function.
3208 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3210 * configure.in: Define NEW_PROC_API on Interix too.
3211 * configure: Regenerate.
3213 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3215 * configure: Regenerate using the proper version of autoconf.
3217 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3219 * findvar.c (read_var_value): Temporarily disable TLS code, until
3220 complete TLS support is added.
3222 2002-10-21 Jim Blandy <jimb@redhat.com>
3223 Elena Zannoni <ezannoni@redhat.com>
3225 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3226 for thread local storage locations.
3227 (struct symbol): Add objfile field.
3228 (SYMBOL_OBJFILE): Define.
3229 * dwarf2read.c (is_thread_local): New static variable.
3230 (new_symbol): If variable is in thread local fill in address class
3231 and objfile appropriately.
3232 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3234 * printcmd.c (address_info): Print the information for thread
3235 local storage variable.
3236 * findvar.c (read_var_value): In case of thread local variable,
3237 defer to the target vector code to compute address.
3239 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3241 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3242 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3244 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3246 * symtab.h (address_class): Rename
3247 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3248 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3249 * printcmd.c (address_info): Ditto.
3250 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3252 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3254 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3255 DBREG_DRX macro to acces debug registers.
3257 * Makefile.in (i386obsd-tdep.o): New target.
3259 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3260 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3262 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3263 * config/i386/obsd.mt: New file.
3264 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3265 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3266 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3267 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3268 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3269 * i386obsd-tdep.c: New file.
3271 2002-10-19 Adam Fedor <fedor@gnu.org>
3273 * objc-exp.y (name_not_typename): Fix invalid comment.
3275 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3277 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3278 to allocate partial syms and macro byte caches.
3280 2002-10-18 David Carlton <carlton@math.stanford.edu>
3282 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3284 2002-10-18 Adam Fedor <fedor@gnu.org>
3286 * stabsread.c (find_name_end): New function.
3287 (define_symbol): Use it.
3289 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3291 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3292 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3293 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3294 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3296 2002-10-17 David Carlton <carlton@math.stanford.edu>
3298 * symfile.h: Add opaque declaration for struct obstack.
3299 Declare obsavestring to take a const char *.
3300 * symfile.c (obsavestring): Make first argument a const char *.
3302 2002-10-16 Adam Fedor <fedor@gnu.org>
3304 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3305 names when matching breakpoints in current file.
3307 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3309 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3310 (read_tag_pointer_type): Add address class support.
3311 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3312 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3314 * gdbarch.h, gdbarch.c: Regenerate.
3315 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3316 (make_type_with_address_space, recursive_type_dump): Add address
3318 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3319 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3320 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3322 2002-10-16 Klee Dienes <kdienes@apple.com>
3324 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3325 to get the last character of a char[] buffer, not
3326 name[sizeof(vptr_name)-1].
3328 2002-10-14 Adam Fedor <fedor@gnu.org>
3330 * symtab.h: New objc_specific struct.
3331 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3332 (SYMBOL_DEMANGLED_NAME): Likewise.
3334 2002-10-14 Adam Fedor <fedor@gnu.org>
3336 * symfile.c (init_filename_language_table): Add ObjC file extension.
3338 2002-10-14 Adam Fedor <fedor@gnu.org>
3340 * utils.c (puts_filtered_tabular): New function.
3341 (fprintf_symbol_filtered): Get ObjC demangled name.
3342 * defs.h (puts_filtered_tabular): Declared.
3344 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3346 * c-lang.h (c_type_print_varspec_prefix): Delete.
3347 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3348 ``need_post_space'' parameter. Adjust all callers.
3350 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3352 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3353 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3354 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3355 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3357 2002-10-13 Adam Fedor <fedor@gnu.org>
3359 * source.c (print_source_lines): Update comments.
3361 2002-10-13 Adam Fedor <fedor@gnu.org>
3363 * valops.c (value_of_local): New function.
3364 (value_of_this): Use it.
3365 * value.h (value_of_local): Declared.
3367 2002-10-13 Adam Fedor <fedor@gnu.org>
3369 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3370 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3372 2002-10-12 Adam Fedor <fedor@gnu.org>
3374 * language.c (binop_result_type): Add language_objc to case.
3375 (integral_type): Likewise.
3376 (character_type): Likewise.
3377 (string_type): Likewise.
3378 (boolean_type): Likewise.
3379 (structured_type): Likewise.
3380 (binop_type_check): Likewise.
3382 2002-10-11 Adam Fedor <fedor@gnu.org>
3384 * printcmd.c (address_info): Print 'self' for ObjC.
3386 2002-10-11 Adam Fedor <fedor@gnu.org>
3388 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3391 2002-10-11 Adam Fedor <fedor@gnu.org>
3393 * language.h (CAST_IS_CONVERSION): Add language_objc.
3395 2002-10-11 Adam Fedor <fedor@gnu.org>
3397 * defs.h (enum language): Add language_objc.
3399 2002-10-11 Klee Dienes <kdienes@apple.com>
3401 * corefile.c (read_memory_typed_address): New function.
3402 * gdbcore.h (read_memory_typed_address): Add prototype.
3403 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3404 to read a value destined for a CORE_ADDR, not read_memory_integer.
3405 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3406 (f77_get_dynamic_lowerbound): Ditto.
3408 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3410 * utils.c (string_to_core_addr): After turning string into
3411 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3412 which will do necessary sign-extension, etc.
3414 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3416 * c-exp.y (THIS): Delete token and grammar rule.
3417 (yylex): Don't return THIS.
3418 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3419 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3420 * demangle.c (cplus_markers): Update comment. Put '$'
3421 first. Remove CPLUS_MARKER.
3422 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3423 * jv-exp.y (THIS): Delete token and grammar rule.
3424 (yylex): Don't return THIS.
3425 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3426 * objc-exp.y (THIS): Delete token and grammar rule.
3427 (yylex): Don't return THIS.
3428 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3429 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3430 (read_member_functions): Likewise for opname.
3431 (read_tilde_fields): Use is_cplus_marker.
3433 * defs.h (CPLUS_MARKER): Don't define.
3434 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3435 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3436 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3437 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3438 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3440 * config/i386/tm-i386v4.h: Delete file.
3441 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3442 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3443 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3444 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3445 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3446 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3447 * config/i386/i386v4.mt (TM_FILE): Likewise.
3448 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3450 2002-10-10 Marko Mlinar <markom@opencores.org>
3452 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3453 accidentially not commited 2002-10-09
3454 * gdbarch.h, gdbarch.c: Re-generate.
3456 2002-10-09 Marko Mlinar <markom@opencores.org>
3458 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3459 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3460 * gdbarch.h, gdbarch.c: Re-generate.
3462 2002-10-08 Petr Sorfa <petrs@caldera.com>
3464 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3466 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3467 so we can work on more than one compilation unit at a time. This
3468 helps prepare GDB to handle inter-CU die references.
3469 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3470 the code to be defined before struct comp_unit_head.
3471 (comp_unit_head): Added new members - offset, cu_head,
3472 begin_die, next and dwarf2_abbrevs.
3473 (dwarf2_abbrevs): Removed single static var; now member of
3474 struct comp_unit_head.
3475 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3477 (psymtab_to_symtab_1): Changed to work with the new
3478 struct comp_unit_head.
3479 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3480 constructs the dwarf2_abbrevs[] inside the cu_header.
3481 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3482 dwarf2_abbrev table to clean up.
3483 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3484 handling of dwarf2_abbrevs inside the cu_header.
3485 (read_partial_die): Now supports the call to the new
3486 dwarf2_lookup_abbrev.
3487 (read_full_die): Now supports the call to the new
3488 dwarf2_lookup_abbrev.
3490 2002-10-06 Christopher Faylor <cgf@redhat.com>
3492 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3493 insure that shell variables, such as "transformed_name" are propagated
3494 to later shell statements in rule.
3496 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3498 * config/i386/nm-i386sco.h: Add protection against
3499 multiple-inclusion. Include "i386/nm-i386v.h".
3500 (REGISTER_U_ADDR): Remove define.
3501 (i386_register_u_addr): Remove prototype.
3503 2002-10-04 Michael Snyder <msnyder@redhat.com>
3505 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3506 before treating it as a single-step event.
3508 2002-10-03 Adam Fedor <fedor@gnu.org>
3510 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3511 (objc_demangle): Remove assignment in if statements, Replace
3513 (add_msglist): Likewise.
3514 (end_msglist): Likewise.
3515 (complare_selectors): Likewise.
3516 (selectors_info): Likewise.
3517 (compare_classes): Likewise.
3518 (classes_info): Likewise.
3519 (print_object_command): Likewise.
3520 (find_objc_msgcall_submethod): Replace PTR with void *.
3521 * objc-lang.h: Remove check for __STDC__.
3523 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3525 * ui-out.h (ui_out_field_fmt_int): New prototype.
3526 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3527 of field width and alignment.
3528 * stack.c (print_frame_info_base): When printing frame level, use
3529 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3532 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3534 * MAINTAINERS: Add self to Write After Approval list.
3536 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3538 * infcmd.c (interrupt_target_command_wrapper): Delete.
3539 (interrupt_target_command): Make non static.
3540 (nofp_registers_info): Make static.
3541 * stack.c (return_command_wrapper): Delete.
3542 (return_command): Make non static.
3544 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3546 * event-top.c (gdb_setup_readline): New function. Code moved from
3547 _initialize_event_loop().
3548 (_initialize_event_loop): Call gdb_setup_readline().
3550 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3552 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3553 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3554 * gdbarch.h, gdbarch.c: Re-generate.
3556 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3559 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3561 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3562 of fill_in_vptr_fieldno.
3564 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3566 * inferior.h (registers_info, stepi_command, nexti_command,
3567 continue_command, interrupt_target_command): Export from infcmd.c.
3568 * frame.h (args_info, selected_frame_level_changed_hook,
3569 return_command): Export from stack.c.
3570 * v850ice.c (stepi_command, nexti_command, continue_command): use
3571 prototypes from inferior.h.
3572 * tracepoint.c (registers_info, args_info, locals_info): Use
3573 prototypes from frame.h and inferior.h.
3574 * Makefile.in (mi-main.o): Add dependency on frame.h.
3576 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3578 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3579 value in register 3 adjusted by ppc_gp0_regnum.
3581 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3583 2002-10-02 Marko Mlinar <markom@opencores.org>
3585 * MAINTAINERS: Add myself to the Write After Approval list.
3587 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3589 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3590 of the section for the N64 ABI, fixed.
3592 * config/mips/tm-irix6.h: Include solib.h.
3594 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3596 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3599 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3601 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3602 and that "mi0" syntax has been removed.
3604 2002-09-30 David Carlton <carlton@math.stanford.edu>
3606 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3607 * ppc-sysv-tdep.c: #include "gdb_string.h".
3608 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3611 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3613 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3614 "vrsave"'s register number.
3616 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3618 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3619 use frame_unwind_signed_register to obtain the PC.
3620 (mips_frame_chain): Handle a generic dummy frame.
3621 (mips_init_extra_frame_info): When a generic dummy frame, don't
3622 re-compute the frame base.
3623 (mips_pop_frame): Handle generic dummy frames.
3624 (mips_gdbarch_init): When generic dummy frames, set
3625 use_generic_dummy_frames, push_dummy_frame to
3626 generic_push_dummy_frame, pc_in_call_dummy to
3627 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3628 generic_save_dummy_frame_tos.
3630 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3632 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3633 against TOP when TOP was explictly set.
3634 (generic_push_dummy_frame): Set TOP to zero.
3636 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3638 * event-loop.c (start_event_loop): Rename variable 'result' to
3639 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3641 2002-09-30 Keith Seitz <keiths@redhat.com>
3643 * gdb-events.sh (selected_thread_changed): New event.
3644 * gdb-events.c: Regenerated.
3645 * gdb-events.h: Regenerated.
3647 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3649 * MAINTAINERS: Add self to Write After Approval list.
3651 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3653 * disasm.c: New file.
3654 * disasm.h: New file.
3655 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3656 (compare_lines): Ditto.
3657 (dump_insns): Ditto.
3658 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3660 (do_assembly_only): Ditto.
3661 (do_disassembly): Renamed to gdb_disassembly and moved to
3662 disasm.c. Sdded uiout argument.
3663 * Makefile.in: Add new files. Reorder SFILES list. Update
3664 dependencies. Include libgdb.a later in the insight executable.
3666 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3668 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3669 bfd/elf64-alpha-fbsd.c.
3671 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3673 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3676 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3678 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3680 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3682 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3683 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3684 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3685 (S_msg_sig_post_reply): Ditto.
3687 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3689 * sh-tdep.c (sh_use_struct_convention): Use definition according
3691 (sh_push_arguments): Store in register with correct endianess.
3692 (sh_default_store_return_value): Ditto.
3693 (sh_gdbarch_init): Set sizeof long double to 8.
3695 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3697 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3698 Fix some whitespace problems.
3700 2002-09-27 David Carlton <carlton@math.stanford.edu>
3702 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3703 (mcore-tdep.o): Ditto.
3704 (ns32k-tdep.o): Ditto.
3705 (ns32knbsd-tdep.o): Ditto.
3707 (vax-tdep.o): Ditto.
3708 * cris-tdep.c: #include "gdb_string.h"
3709 * mcore-tdep.c: Ditto.
3710 * ns32k-tdep.c: Ditto.
3711 * ns32knbsd-tdep.c: Ditto.
3713 * vax-tdep.c: Ditto.
3715 2002-09-27 David Carlton <carlton@math.stanford.edu>
3717 * config/djgpp/fnchange.lst: Add entries for
3718 gdb/testsuite/gdb.c++/m-static files.
3720 2002-09-27 Jim Wilson <wilson@redhat.com>
3722 * MAINTAINERS: Add myself to the Write After Approval list.
3724 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3726 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3729 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3731 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3734 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3736 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3737 (rs6000_struct_return_address): Delete variable.
3738 (rs6000_store_struct_return): Update.
3739 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3740 deprecated_extract_struct_value_address.
3741 (rs6000_frame_align): New function.
3742 (rs6000_gdbarch_init): Set frame_align.
3744 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3746 From Grace Sainsbury <graces@redhat.com>:
3747 * Makefile.in (gdbtk-main.o): New target.
3748 (gdb.o): New target.
3750 (main.o): Update dependencies.
3751 (gdb$(EXEEXT)): Add gdb.o.
3752 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3753 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3754 (SUBDIR_GDBTK_CLEAN): Set.
3755 (install-gdbtk): Install the insight binary.
3756 (uninstall-gdbtk): New target.
3757 (all-gdbtk, clean-gdbtk): New rule.
3758 * top.c (use_windows): Default to zero.
3759 * main.c: Include "main.h".
3761 (struct captured_main_args): Delete.
3762 (gdb_main): New function.
3766 2002-09-25 Andrew Cagney <cagney@redhat.com>
3768 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3769 (frame_map_regnum_to_name): New function.
3770 (frame_map_name_to_regnum): New function.
3771 * frame.h (frame_map_name_to_regnum): Declare.
3772 (frame_map_regnum_to_name): Declare.
3773 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3774 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3775 * parse.c: Do not include "builtin-regs.h".
3776 (target_map_name_to_register): Delete function.
3777 (write_dollar_variable): Use frame_map_name_to_regnum.
3778 * parser-defs.h (target_map_name_to_register): Delete declaration.
3779 * expprint.c: Include "frame.h".
3780 (print_subexp): Use frame_map_regnum_to_name.
3781 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3782 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3784 2002-09-25 Andrew Cagney <ac131313@redhat.com>
3786 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3787 wasn't saved, and the next innermost frame is a dummy, return the
3788 dummy frame's link register.
3790 2002-09-24 Jim Blandy <jimb@redhat.com>
3792 Fix from Paul Breed:
3793 * main.c (captured_main): Add a `break' after the case for 'b'.
3795 2002-09-24 Keith Seitz <keiths@redhat.com>
3797 * varobj.c (c_type_of_child): Use get_target_type instead
3798 of TYPE_TARGET_TYPE.
3800 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3802 * source.c (get_current_or_default_source_symtab_and_line): Remove
3804 (set_default_source_symtab_and_line): New function. Attempts to
3805 determine a source file to list lines from if one is not currently
3807 (get_current_source_symtab_and_line): Initialize sal.pc and
3809 (set_current_source_symtab_and_line): Mark argument as const.
3810 * source.h: Update declarations and comments.
3811 * linespec.c (decode_line_1): Replace call to removed routine above.
3812 * stack.c (print_frame_info_base): Ditto.
3813 * cli/cli-cmds.c (edit_command): Ditto.
3814 (list_command): Ditto.
3816 2002-09-22 Fernando Nasser <fnasser@redhat.com>
3818 * source.c (get_current_or_default_source_symtab_and_line): Initialize
3819 sal.pc and sal.end fields.
3820 (get_current_or_default_source_symtab_and_line): Ditto.
3821 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3822 so we do not cause a new source symtab to be searched for (reverting an
3823 unintentional change from the 2002-09-20 patch).
3824 * scm-lang.c (scm_unpac): Ditto.
3826 2002-09-21 Andrew Cagney <cagney@redhat.com>
3828 * complaints.c (symfile_explanations): Remove new-line from
3829 ``isolated_message''.
3830 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3831 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3833 2002-09-20 Nick Clifton <nickc@redhat.com>
3835 * NEWS: Announce that V850EA ISA is no longer supported.
3836 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3838 2002-09-20 David Carlton <carlton@math.stanford.edu>
3840 * Makefile.in (c-lang.o): Correct dependencies.
3841 (utils.o): Gather dependencies.
3843 * c-lang.c: #include "gdb_string.h"
3845 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3847 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
3848 * cli/cli-cmds.c (list_command): New function. Implements the new
3850 (_init_cli_cmds): Add new command definition.
3851 * gdb.1: Document edit command.
3852 * doc/gdb.texinfo: Document edit command.
3854 2002-09-20 Fernando Nasser <fnasser@redhat.com>
3856 * source.c: Make global variables current_source_symtab and
3857 current_source_line static.
3858 (list_command): Moved to cli/cli-cmds.c.
3859 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3860 (get_first_line_listed): New accessor function.
3861 (get_lines_to_list): New accessor function.
3862 (get_current_source_symtab_and_line): New function. Retrieves the
3863 position in the source code that we consider current.
3864 (get_current_or_default_source_symtab_and_line): New function.
3865 Like the above but attempts to determine a default position if one
3866 is not currently defined.
3867 (set_current_source_symtab_and_line): New function. Sets the source
3868 code position considered current and returns the previously set one.
3869 (clear_current_source_symtab_and_line): Reset stored information about
3870 a current source line.
3871 (_initialize_source): Remove registration for the "list" command and
3873 * source.h: Add declarations for the new functions above.
3874 * symtab.h: Remove declarations for the global variables mentioned
3876 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3877 obtain current source line.
3878 * linespec.c (decode_line_1): Ditto.
3879 * macroscope.c (default_macro_scope): Ditto.
3880 * scm-lang.c (scm_unpac): Ditto.
3881 * stack.c (print_frame_info_base): Ditto.
3882 * symfile.c (clear_symtab_users): Ditto.
3883 * symtab.c (decode_line_spec): Ditto.
3884 * cli/cli-cmds.c (list_command): Moved here from source.c.
3885 (ambiguous_line_spec): Moved here from source.c.
3886 (_init_cli_cmds): Add definition for "list" and its alias.
3887 * Makefile.in: Update dependencies.
3889 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3891 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3892 with what gcc thinks is correct.
3894 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
3896 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3897 multiple register push instruction.
3899 2002-09-19 Jim Blandy <jimb@redhat.com>
3901 Add support for distinct host and target character sets.
3902 * charset.c, charset.h: New files.
3903 * c-exp.y: #include "charset.h".
3904 (yylex): Convert character and string literals to the target
3905 character set, before returning them as the semantic value of the
3907 * c-lang.c: #include "charset.h".
3908 (c_emit_char): Use charset-specific methods to recognize
3909 characters with backslash escape forms, to decide which characters
3910 to print literally and which to print using numeric escape
3911 sequences, and to convert target characters to host characters
3913 * utils.c: #include "charset.h".
3914 (no_control_char_error): New function.
3915 (parse_escape): Use charset-specific methods to recognize
3916 backslash escapes, parse `control character' notation, and convert
3917 characters from the host character set to the target character set.
3918 * configure.in: Set the default host character set.
3919 Check where to find iconv, and what its argument types might be.
3920 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3921 * Makefile.in (SFILES): List charset.c.
3922 (COMMON_OBS): List charset.o.
3923 (charset.o): New rule.
3924 (charset_h): New header dependency variable.
3925 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3926 (LIBICONV): New variable, set by configure.
3927 (CLIBS): Include $(LIBICONV) here.
3928 * aclocal.m4, config.in, configure: Regenerated.
3930 2002-09-19 Joel Brobecker <brobecker@gnat.com>
3932 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3935 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
3937 * gdb_mbuild.sh: New file.
3939 2002-09-19 Andrew Cagney <ac131313@redhat.com>
3941 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3943 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3945 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3946 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3947 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3948 valops.c, value.h: Revert previous change.
3950 2002-09-18 Michael Snyder <msnyder@redhat.com>
3952 Preliminary support for Objective-C:
3953 * defs.h (language_objc): New enum value.
3954 (puts_filtered_tabular): Declaration only, exported from utils.c.
3955 (skip_quoted): Delete, declared in completer.h.
3956 * c-exp.y: Include completer.h.
3959 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3960 New operator enum values.
3961 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3962 * language.c (binop_result_type): Handle language_objc case.
3963 (integral_type, character_type, string_type, boolean_type,
3964 structured_type, binop_type_check): Ditto.
3965 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3966 (struct objc_specific): Add to general_symbol_info.
3967 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3968 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3969 * parser-defs.h (struct objc_class_str): New struct type.
3970 (start_msglist, end_msglist, add_msglist): Declaration only,
3971 exported from objc-lang.c.
3972 * value.h (value_of_local, value_nsstring,
3973 call_function_by_hand_expecting_type): Exported from valops.c.
3974 * valops.c (find_function_addr): Export.
3975 (call_function_by_hand_expecting_type): New function.
3976 (value_of_local): New function.
3977 * symfile.c (init_filename_language_table): Add ".m" extension
3979 * utils.c (puts_filtered_tabular): New function.
3980 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3981 (set/show demangle): Extend help-string to refer to ObjC.
3982 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3983 * stabsread.c (symbol_reference_defined): Objective-C symbols
3984 may contain colons: make allowances when scanning stabs strings
3986 (objc_find_colon): New function.
3987 * printcmd.c (address_info): If language == objc then print
3988 "self" instead of "this".
3989 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3990 OP_NSSTRING, and OP_SELF.
3991 (prefixify_subexp): Ditto.
3992 * source.c (print_source_lines): Mention objc in comment.
3993 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3996 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3998 * complaints.h: Update copyright.
3999 (struct complaints): Declare.
4000 (struct complaint): Make `message' constant.
4001 (internal_complaint): Declare.
4002 (complaint): Declare.
4003 (complaint_root): Delete declaration.
4004 (symfile_complaints): Delete declaration.
4005 (struct complaints): Add opaque declaration.
4006 (clear_complaints): Add a complaints parameter.
4007 * complaints.c: Update copyright.
4008 (enum complaint_series): Define.
4009 (complaint_root): Delete.
4010 (struct complaints): Define.
4011 (complaint_sentinel, symfile_complaint_book): New variables.
4012 (symfile_explanations, symfile_complaints): New variables.
4014 (get_complaints): New function.
4015 (vcomplaint): New function.
4016 (complaint): New function.
4017 (internal_complaint): New function.
4018 (complain): Call vcomplain with symfile_complaint.
4019 (clear_complaints): Rewrite.
4020 (_initialize_complaints): Use add_setshow_command.
4021 * Makefile.in (complaints.o): Update dependencies.
4022 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4023 to call to clear_complaints.
4024 (new_symfile_objfile, reread_symbols): Ditto.
4025 (oldsyms_complaint): Delete.
4026 (empty_symtab_complaint, unknown_option_complaint): Delete.
4027 (free_named_symtabs): Use complaint instead of complain.
4029 2002-09-18 Michael Snyder <msnyder@redhat.com>
4031 Contributed by Apple Computer, Inc. Merged with current sources
4032 by Adam Fedor <fedor@doc.com> [cagney].
4034 * objc-lang.c: First clean-up round: comments, indentation.
4035 * objc-lang.h: Ditto.
4036 * objc-lang.y: Ditto.
4038 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4040 * maint.c (maintenance_internal_error): Print the parameter as the
4042 (maintenance_internal_warning): New function.
4043 (_initialize_maint_cmds): Add command `maint internal-warning'.
4045 * defs.h (internal_warning, internal_vwarning): Declare.
4046 * utils.c (struct internal_problem): Define.
4047 (internal_vproblem): New function.
4048 (internal_warning): New function.
4049 (internal_vwarning): New function.
4050 (internal_warning_problem, internal_error_problem): New variables.
4051 (internal_verror): Just call internal_vproblem.
4053 2002-09-18 Michael Snyder <msnyder@redhat.com>
4055 * objc-lang.c: New file, support for Objective-C.
4056 Preliminary check-in, not yet integrated into gdb.
4057 * objc-lang.h: New file.
4058 * objc-exp.y: New file.
4060 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4062 * infrun.c (signal_stop_update): Convert definition to ISO C.
4063 (signal_print_update): Ditto.
4064 (signal_pass_update): Ditto.
4065 * inflow.c (terminal_save_ours): Ditto.
4067 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4070 * config/djgpp/fnchange.lst: Handle name clashes between
4071 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4074 * i386-linux-tdep.h: Fix tipo.
4076 2002-09-18 Adam Fedor <fedor@gnu.org>
4078 * MAINTAINERS: Add myself to the Write After Approval list.
4080 2002-09-18 Jim Blandy <jimb@redhat.com>
4082 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4083 texthigh and textlow to reader-specific structs caused
4084 objfile_relocate to miss them. This is fixable, but the work that
4085 the change was supposed to prepare GDB for never got done anyway.
4087 2002-09-18 David Carlton <carlton@math.stanford.edu>
4089 * MAINTAINERS: Alphabetize Write After Approval list.
4091 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4094 * values.c (value_static_field): Call read_var_value.
4096 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4098 * valops.c (hand_function_call): Align the initial stack pointer
4099 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4100 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4102 * mips-tdep.c (mips_frame_align): New function.
4103 (mips_gdbarch_init): Set frame_align.
4104 * gdbarch.sh (FRAME_ALIGN): New method.
4105 * gdbarch.h, gdbarch.c: Re-generate.
4107 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4109 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4112 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4114 * NEWS: Mention that MIPS $fp behavior changed.
4115 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4116 reference to FP_REGNUM.
4117 (mipsnbsd_cannot_store_register): Ditto.
4118 * mips-linux-nat.c: Update copyright.
4119 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4120 (mips_linux_cannot_store_register): Ditto.
4121 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4122 * config/mips/tm-mips.h: Update copyright.
4123 (FP_REGNUM): Delete macro.
4124 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4125 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4126 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4127 (mips_r3041_reg_names, mips_r3051_reg_names)
4128 (mips_r3081_reg_names): Replace "fp" with "".
4131 2002-09-17 Theodore A. Roth <troth@verinet.com>
4133 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4134 generic_read_register_dummy() (PR gdb/703).
4135 (avr_push_return_address): #if 0 out unused vars.
4136 (avr_gdbarch_init): Enable use of avr_push_return_address().
4138 2002-09-17 Michael Snyder <msnyder@redhat.com>
4140 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4141 RTE will take care of it.
4143 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4145 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4146 invalid, return SP_REGNUM.
4148 2002-09-17 Michael Snyder <msnyder@redhat.com>
4150 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4151 point registers without sign extension.
4153 2002-09-17 Andrew Cagney <cagney@redhat.com>
4155 * blockframe.c (deprecated_read_register_dummy): Rename
4156 generic_read_register_dummy.
4157 * frame.c (frame_unwind_signed_register): New function.
4158 (frame_unwind_unsigned_register): New function.
4159 * frame.h (frame_unwind_signed_register): Declare.
4160 (frame_unwind_unsigned_register): Declare.
4161 (deprecated_read_register_dummy): Rename
4162 generic_read_register_dummy.
4164 * h8300-tdep.c (h8300_frame_chain): Update.
4165 (h8300_frame_saved_pc): Update.
4166 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4167 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4168 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4169 (s390_frame_chain): Update.
4170 * v850-tdep.c (v850_find_callers_reg): Update.
4171 (v850_frame_saved_pc): Update.
4172 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4173 (m32r_find_callers_reg): Update.
4174 (m32r_frame_saved_pc): Update.
4175 * sh-tdep.c (sh_find_callers_reg): Update.
4176 (sh64_get_saved_pr): Update.
4177 (sh_init_extra_frame_info): Update.
4178 (sh_init_extra_frame_info): Update.
4179 (sh64_init_extra_frame_info): Update.
4180 (sh64_init_extra_frame_info): Update.
4181 * mcore-tdep.c (mcore_find_callers_reg): Update.
4182 (mcore_frame_saved_pc): Update.
4183 (mcore_init_extra_frame_info): Update.
4184 * i386-tdep.c (i386_frame_saved_pc): Update.
4185 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4186 (ia64_init_extra_frame_info): Update.
4187 (ia64_init_extra_frame_info): Update.
4188 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4189 * cris-tdep.c (cris_init_extra_frame_info): Update.
4190 * avr-tdep.c (avr_frame_chain): Update.
4191 (avr_init_extra_frame_info): Update.
4192 (avr_frame_saved_pc): Update.
4193 * arm-tdep.c (arm_find_callers_reg): Update.
4194 (arm_init_extra_frame_info): Update.
4195 (arm_frame_saved_pc): Update.
4197 2002-09-17 Tom Tromey <tromey@redhat.com>
4199 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4202 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4204 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4205 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4207 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4210 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4212 * osfsolib.c: Remove file, replaced by solib-osf.c.
4213 * Makefile.in: Remove compilation rules for osfsolib.c.
4215 2002-09-16 David Carlton <carlton@math.stanford.edu>
4217 * cp-valprint.c (cp_print_class_method): Correct args to
4218 check_stub_method_group.
4220 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4222 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4223 `set architecture'. Unify naming convention of functions.
4224 (h8300_skip_prologue): Improve prologue analysis.
4225 (h8300_push_arguments): Rewritten to more closely match GCC's
4226 bizarre argument-passing behavior, along with the comment describing
4228 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4229 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4230 sim, remote-e7000.c, remote-hms.c and remote.c
4232 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4234 * i386-tdep.c (gdb_print_insn_i386): Removed.
4235 (i386_print_insn): New function.
4236 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4237 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4240 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4242 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4245 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4247 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4248 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4249 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4251 2002-09-13 Christopher Faylor <cgf@redhat.com>
4253 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4255 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4257 * gdbtypes.c (check_stub_method): Make static.
4258 (check_stub_method_group): New function.
4259 * gdbtypes.h: Update prototypes.
4260 * cp-support.c: New file.
4261 * cp-support.h: New file.
4263 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4264 (update_method_name_from_physname): New function.
4265 (read_member_functions): Correct method names for operators
4266 and v3 constructors/destructors. Separate v2 constructors and
4268 * Makefile.in (stabsread.o): Update dependencies.
4269 (SFILES): Add cp-support.c.
4270 (COMMON_OBS): Add cp-support.o.
4271 (cp_support_h, cp-support.o): Add.
4273 * cp-valprint.c (cp_print_class_method): Call
4274 check_stub_method_group instead of check_stub_method. Remove
4276 * p-valprint.c (pascal_object_print_class_method): Likewise.
4277 * valops.c (search_struct_method): Likewise.
4278 (find_method_list, value_struct_elt_for_reference): Likewise.
4280 2002-09-13 Andrew Cagney <cagney@redhat.com>
4282 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4283 * gdbarch.h, gdbarch.c: Regenerate.
4285 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4287 * frame.c (find_saved_register): Delete function.
4288 * frame.h (find_saved_register): Delete declaration.
4291 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4293 * mips-tdep.c (read_next_frame_reg): Re-hack using
4294 frame_register_unwind.
4296 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4298 * mips-tdep.c (mips_get_saved_register): Re-hack using
4299 frame_register_unwind.
4301 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4303 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4304 vector. Will be useful for Interix.
4305 * gdbarch.h, gdbarch.c: Regenerate.
4307 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4308 name of the malloc function by NAME_OF_MALLOC.
4310 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4312 * value.h (find_function_in_inferior): Add const keyword to
4313 one of the parameters. Allows us to invoke this function with
4315 * valops.c (find_function_in_inferior): Likewise.
4317 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4319 * exec.c (xfer_memory): Fix compilation warning with old versions
4321 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4323 2002-09-12 David Carlton <carlton@math.stanford.edu>
4325 * symtab.h: Run through gdb_indent.h.
4326 Add 2002 to Copyright year list.
4328 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4330 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4332 * MAINTAINERS: Add myself to write after approval list.
4334 2002-09-11 J. Brobecker <brobecker@gnat.com>
4336 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4338 2002-09-11 J. Brobecker <brobecker@gnat.com>
4340 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4343 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4345 * procfs.c (do_detach): Clear current signal, not just fault.
4346 Corrects problem with breakpoint trap signal leaking to detached
4349 2002-09-10 Michael Snyder <msnyder@redhat.com>
4351 * buildsym.c (finish_block): Protect against null pointer.
4353 2002-09-10 Andrew Cagney <cagney@redhat.com>
4355 * infcmd.c (default_print_registers_info): Send all output to
4356 ``file'' instead of ``gdb_stdout''.
4358 2002-09-10 Michael Snyder <msnyder@redhat.com>
4360 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4361 LONGEST, and use signed register read (addresses are sign-
4364 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4366 * event-loop.c (gdb_do_one_event): Make public.
4367 * event-loop.h (gdb_do_one_event): Declare.
4369 2002-09-10 Jeff Law <law@redhat.com>
4371 * infttrace.c (child_resume): Simplify and rework to avoid
4374 2002-09-09 Fred Fish <fnf@intrinsity.com>
4376 * printcmd.c (print_scalar_formatted): "len" is the number of
4377 target bytes, NOT the number of target bits.
4379 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4381 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4382 * top.c (init_main): Set rl_terminal_name.
4384 2002-09-08 Aidan Skinner <aidan@velvet.net>
4386 * ada-lang.c (ada_array_bound, ada_type_match,
4387 _initialize_ada_language): Fix K&R definitions.
4388 * ada-tasks.c (get_current_task): Fix K&R definitions.
4389 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4391 2002-09-07 Christopher Faylor <cgf@redhat.com>
4393 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4396 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4398 * i386-tdep.c (i386_register_virtual_type,
4399 i386_register_convertible, i386_register_convert_to_virtual,
4400 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4401 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4402 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4403 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4404 Don't set push_arguments twice.
4406 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4407 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4408 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4409 sigtramp_end to NULL.
4410 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4412 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4414 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4417 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4418 * gdbarch.h, gdbarch.c: Re-generate.
4419 * blockframe.c (find_pc_sect_partial_function): Convert to use
4420 SIGTRAMP_START_P predicate.
4422 2002-09-05 Michael Snyder <msnyder@redhat.com>
4424 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4425 generic_dummy_frame method and old method. Also distinguish
4426 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4427 (arm_extract_return_value): Use new regcache method.
4429 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4430 adjustment that doesn't conform to the ABI.
4431 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4432 saved regcache, not from current regcache.
4434 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4436 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4439 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4441 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4442 if arm_apcs_32 is false.
4444 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4446 GDB 5.3 branch created.
4448 2002-09-03 Theodore A. Roth <troth@verinet.com>
4450 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4451 generic_unwind_get_saved_register.
4453 2002-09-03 David Carlton <carlton@math.stanford.edu>
4455 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4456 argument (PR gdb/653). Update call to smash_to_method_type.
4457 (read_structure_scope): Update call to dwarf2_add_member_fn.
4459 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4461 * x86-64-linux-tdep.c: Include gdb_string.h
4462 * x86-64-linux-nat.c: Ditto.
4464 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4466 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4467 when YYDEBUG is set to 1.
4468 * c-exp.y: Likewise.
4469 * f-exp.y: Likewise.
4470 * jv-exp.y: Likewise.
4471 * m2-exp.y: Likewise.
4472 * p-exp.y: Likewise.
4474 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4476 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4478 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4479 solib_svr4_fetch_link_map_offsets to
4480 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4481 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4482 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4483 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4484 solib-svr4.o, and solib-legacy.o.
4485 * config/i386/tm-nbsd.h: Include solib.h.
4487 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4489 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4490 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4491 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4492 comment noting that this needs its own target configuration.
4493 * config/i386/nbsd.mt: New file.
4494 * config/i386/nbsdaout.mt: Remove.
4495 * config/i386/nbsdelf.mt: Ditto.
4496 * config/i386/tm-nbsdaout.h: Ditto.
4498 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4500 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4501 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4502 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4504 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4505 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4506 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4508 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4510 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4511 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4512 * i386-tdep.h (i386bsd_init_abi): New prototype.
4513 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4514 function declaration.
4515 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4516 for NetBSD-a.out or NetBSD-ELF.
4517 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4518 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4519 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4520 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4522 (i386nbsd_pc_in_sigtramp): New function.
4523 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4524 i386nbsd_pc_in_sigtramp.
4525 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4526 and i386nbsdelf_init_abi OS ABI handlers.
4527 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4528 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4530 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4532 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4533 registers if the target really has them.
4535 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4537 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4540 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4542 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4544 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4545 (alphanbsd_skip_sigtramp_frame): New functions.
4546 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4547 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4548 to alphanbsd_sigcontext_addr.
4550 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4552 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4554 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4555 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4556 nbsd_pc_in_sigtramp.
4557 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4558 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4559 * nbsd-tdep.c: Include gdb_string.h.
4560 (nbsd_pc_in_sigtramp): New function.
4561 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4562 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4563 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4564 ppcnbsd_pc_in_sigtramp.
4565 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4566 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4567 shnbsd_pc_in_sigtramp.
4568 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4569 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4570 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4572 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4574 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4575 watchpoints to NULL.
4576 (insert_breakpoints): set val field of watchpoints if NULL.
4579 2002-08-29 Jim Blandy <jimb@redhat.com>
4581 * symtab.c (lookup_symbol_aux): In the cases where we find a
4582 minimal symbol of an appropriate name and use its address to
4583 select a symtab to read and search, use `name' (as passed to us)
4584 as the demangled name when searching the symtab's global and
4585 static blocks, not the minsym's name.
4587 2002-08-29 Keith Seitz <keiths@redhat.com>
4589 * stack.c (print_frame_info_base): Always set current_source_symtab
4590 and current_source_line.
4592 2002-08-29 Donn Terry <donnte@microsoft.com>
4594 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4596 2002-08-28 Keith Seitz <keiths@redhat.com>
4598 * stack.c (select_frame): Add FIXME concerning selected-frame
4600 (select_frame_command): Send selected-frame-level-changed
4601 event notification, but only if the level actually changed.
4602 (up_silently_base): Add selected-frame-level-changed event
4604 (down_silently_base): Likewise.
4606 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4608 * Makefile.in: Update dependencies for all gdb/*.c files.
4610 2002-08-27 Tom Tromey <tromey@redhat.com>
4612 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4613 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4614 Update dependencies.
4615 * i387-tdep.c: Include gdb_string.h.
4616 * osabi.c: Likewise.
4617 * i386-linux-nat.c: Likewise.
4618 * lin-lwp.c: Likewise.
4619 * ax-gdb.c: Likewise.
4620 * signals/signals.c: Likewise.
4621 * jv-valprint.c: Likewise.
4622 * p-lang.c: Likewise.
4623 * c-valprint.c: Likewise.
4624 * cp-abi.c: Likewise.
4626 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4628 * cli/cli-script.h (copy_command_lines): Export.
4629 * breakpoint.c: Include cli/cli-script.h.
4630 * Makefile.in (breakpoint.o): Update dependencies.
4632 2002-08-26 Michael Snyder <msnyder@redhat.com>
4634 * breakpoint.c (insert_breakpoints): Protect all references
4635 to 'process_warning'. Shorten long lines.
4637 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4639 * cli/cli-script.c (copy_command_lines): New function.
4640 * defs.h (copy_command_lines): Export.
4641 * testsuite/gdb.base/commands.exp: New tests for commands
4642 attached to a temporary breakpoint, and for commands that
4643 delete the breakpoint they are attached to.
4645 2002-08-26 Michael Snyder <msnyder@redhat.com>
4647 * breakpoint.c (bpstat_stop_status): Instead of copying the
4648 pointer to the breakpoint commands struct, make a new copy
4649 of the struct and point to that.
4650 (bpstat_clear): Free the commands struct.
4651 (bpstat_clear_actions): Free the commands struct.
4652 (bpstat_do_actions): Free the command actions. Also execute
4653 the local cleanups, instead of deleting them.
4654 (delete_breakpoint): Leave the commands field of the bpstat
4655 chain alone -- it will be freed later.
4657 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4659 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4660 deleted in 2002-08-20 commit. This function is still used by
4663 2002-08-26 Keith Seitz <keiths@redhat.com>
4665 * gdb-events.sh: Add selected-frame-level-changed event.
4666 * gdb-events.c: Regenerated.
4667 * gdb-events.h: Regenerated.
4669 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4672 * inflow.c (terminal_save_ours): New function to save terminal
4674 * inferior.h (terminal_save_ours): Declare.
4675 * target.c (debug_to_terminal_save_ours): New function.
4676 (cleanup_target): Defaults to_terminal_save_ours.
4677 (update_current_target): Inherit to_terminal_save_ours.
4678 (setup_target_debug): Set to_terminal_save_ours.
4679 * target.h (target_terminal_save_ours): New to save terminal settings.
4680 (target_ops): New member to_terminal_save_ours.
4681 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4682 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4683 * inftarg.c (init_child_ops): Likewise.
4684 * m3-nat.c (init_m3_ops): Likewise.
4685 * procfs.c (init_procfs_ops): Likewise.
4686 * wince.c (init_child_ops): Likewise.
4687 * win32-nat.c (init_child_ops): Likewise.
4688 * sol-thread.c (init_sol_thread_ops): Likewise.
4690 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4692 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4693 use regcache_* functions.
4694 (i386_gdbarch_init): Set store_return_value instead of
4695 deprecated_store_return_value.
4697 * regcache.c (regcache_raw_write_signed,
4698 regcache_raw_write_unsigned): New functions.
4699 * regcache.h (regcache_raw_write_signed,
4700 regcache_raw_write_unsigned): New prototypes.
4702 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4704 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4705 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4706 source file dependencies. Cleanup corresponding generator rules.
4708 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4710 * regcache.h (register_offset_hack): Declare.
4711 (regcache_cooked_read_using_offset_hack): Declare.
4712 (regcache_cooked_write_using_offset_hack): Declare.
4714 * regcache.c (register_offset_hack): New function.
4715 (regcache_cooked_read_using_offset_hack): New function.
4716 (regcache_cooked_write_using_offset_hack): New function.
4717 (regcache_dump): Check that the registers, according to their
4718 offset, are packed hard against each other.
4719 (cooked_xfer_using_offset_hack): New function.
4721 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4723 * regcache.c (struct regcache_descr): Add field register_type.
4724 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4726 (init_regcache_descr): Initialize register_type. Pass the descr
4727 to init_legacy_regcache_descr. Use register_type instead of
4728 REGISTER_VIRTUAL_TYPE.
4729 (register_type): New function.
4730 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4731 * regcache.h (register_type): Declare.
4733 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4735 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4736 instead of deprecated_store_return_value. Fix fallout from
4737 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4739 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4741 * regcache.c (max_register_size): New function.
4742 (init_legacy_regcache_descr): Ensure that max_register_size is
4743 large enough for REGISTER_VIRTUAL_SIZE.
4744 * regcache.h (max_register_size): Declare.
4746 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4748 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4750 (e500_extract_return_value): Change type of valbuf pointer to
4753 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4755 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4758 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4759 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4760 long long) to prevent compiler warning on 64-bit systems.
4762 2002-08-23 Andrew Cagney <cagney@redhat.com>
4764 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4765 (DEPRECATED_STORE_RETURN_VALUE): New method.
4766 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4767 * gdbarch.h, gdbarch.c: Re-generate.
4769 * values.c (set_return_value): Pass current_regcache to
4771 * arch-utils.h (legacy_store_return_value): Declare.
4772 * arch-utils.c (legacy_store_return_value): New function.
4773 (legacy_extract_return_value): Update parameters.
4775 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4777 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4778 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4779 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4780 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4781 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4782 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4783 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4784 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4785 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4786 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4789 * i386-tdep.c (i386_extract_return_value): Update.
4790 * arch-utils.c (legacy_extract_return_value): Update.
4791 * frv-tdep.c (frv_gdbarch_init): Update.
4792 * cris-tdep.c (cris_gdbarch_init): Update.
4793 * d10v-tdep.c (d10v_gdbarch_init): Update.
4794 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4795 * m68k-tdep.c (m68k_gdbarch_init): Update.
4796 * mcore-tdep.c (mcore_gdbarch_init): Update.
4797 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4798 * s390-tdep.c (s390_gdbarch_init): Update.
4799 * sparc-tdep.c (sparc_gdbarch_init): Update.
4800 * sh-tdep.c (sh_gdbarch_init): Update.
4801 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4802 * v850-tdep.c (v850_gdbarch_init): Update.
4803 * avr-tdep.c (avr_gdbarch_init): Update.
4804 * ia64-tdep.c (ia64_gdbarch_init): Update.
4805 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4806 * vax-tdep.c (vax_gdbarch_init): Update.
4807 * alpha-tdep.c (alpha_gdbarch_init): Update.
4808 * arm-tdep.c (arm_gdbarch_init): Update.
4809 * mips-tdep.c (mips_gdbarch_init): Update.
4810 * i386-tdep.c (i386_gdbarch_init): Update.
4812 2002-08-23 Andrew Cagney <ac131313@redhat.com>
4814 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4815 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4817 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4819 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4822 2002-08-23 Joel Brobecker <brobecker@gnat.com>
4824 * infrun.c (handle_inferior_event): Move a comment outside of a
4825 function call, in order to avoid indent reformatting this part
4826 of the code in an unreadable way.
4828 2002-08-23 Grace Sainsbury <graces@redhat.com>
4830 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4831 when breakpoints fail. Move general breakpoint error messages to
4833 * breakpoint.c (insert_breakpoints): Change warnings when
4834 breakpoints are nto inserted to specify the type. Remove call to
4835 memory_error when hardware breakpoints can't be inserted. Remove
4836 multiple calls to warning so all messages are sent to the user at
4838 (delete_breakpoints): Make insert error messsages more explicit.
4840 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
4842 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4843 gdbserver/ChangeLog.
4845 2002-08-23 Mark Kettenis <kettenis@gnu.org>
4847 * i386-tdep.c: Include "objfiles.h".
4848 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4849 skip_trampoline_code.
4850 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4851 (CPLUS_MARKER): Define to '.'.
4853 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4855 (linux_corefile_thread_callback): Increase args->num_notes.
4856 (linux_make_note_section): Initialize thread_args.num_notes, and
4857 use it to determine whether notes for any threads were created.
4859 2002-08-23 Donn Terry <donnte@microsoft.com>
4861 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4862 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4864 (write_with_trace): Conditionalize out the switch branch handling
4865 PCSHOLD if the corresponding macro is not defined. Likewise for
4866 PRSABORT and PRSTOP.
4867 This change will be needed by the Interix port.
4869 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4871 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4872 write_register wherever possible instead of manipulating the
4873 register bytes directly.
4874 Assign VALUE_CONTENTS to a variable and use that.
4875 The GPR numbers are now dependent on the architecture.
4877 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4879 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4881 (skip_prologue): Add support for BookE/e500 instructions.
4882 (e500_extract_return_value): New function.
4883 (frame_get_saved_regs): Add support for saving ev registers and
4885 (e500_store_return_value): New function.
4886 (rs6000_gdbarch_init): Move up default intializations of
4887 deprecated_extract_return_value and store_return_value. Overwrite
4888 init of store_return_value with e500 specific version.
4889 Set extract_return_value for e500.
4891 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
4893 * blockframe.c (generic_call_dummy_register_unwind): Use
4894 regcache_cooked_read to catch cases in which the variable is
4895 stored in a pseudo register.
4897 2002-08-22 Andrew Cagney <cagney@redhat.com>
4899 * NEWS: Mention that the i960 has been made obsolete.
4900 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4902 (remote-nrom.o): Obsolete target.
4903 (remote-nindy.o, i960-tdep.o): Ditto.
4904 * remote-nrom.c: Make file obsolete.
4905 * remote-nindy.c, remote-vx960.c: Ditto.
4906 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4907 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4908 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4909 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4910 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4911 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4912 i960-*-vxworks* obsolete.
4913 * MAINTAINERS: Note that the i960 is obsolete.
4915 2002-08-21 Corinna Vinschen <vinschen@redhat.com
4917 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4918 detach to allow reinitialization.
4920 2002-08-22 Andrew Cagney <ac131313@redhat.com>
4922 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4925 2002-08-22 Jim Blandy <jimb@redhat.com>
4927 * coffread.c (coff_symfile_read): Don't try to read the line
4928 number table from disk if the image file doesn't have a symbol
4929 table; we'll never actually look at the info anyway, and Windows
4930 ships DLL's with bogus file offsets for the line number data.
4932 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4934 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4937 2002-08-21 Michael Snyder <msnyder@redhat.com>
4939 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4940 (MSYMBOL_SIZE): Replace macro with function.
4941 (DEFAULT_MIPS_TYPE): Delete unused macro.
4942 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4943 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4945 2002-08-21 Jim Blandy <jimb@redhat.com>
4947 * valops.c (value_cast): Simplify and correct logic for doing a
4948 static cast from a pointer to a base class to a pointer to a
4951 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4953 * infcmd.c (default_print_registers_info): Replace
4955 (registers_info): Use gdbarch_print_registers_info instead of
4957 * inferior.h (default_print_registers_info): Replace
4959 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4960 (DO_REGISTERS_INFO): Change to a predicate function.
4961 * gdbarch.h, gdbarch.c: Regenerate.
4963 2002-08-21 Keith Seitz <keiths@redhat.com>
4965 * gdb-events.sh: Add target-changed event.
4966 * gdb-events.c: Regenerated.
4967 * gdb-events.c: Regenerated.
4968 * valops.c (value_assign): Add target-changed event notification
4969 to inlval_register, lval_memory, and lval_reg_frame_relative.
4971 2002-08-21 Joel Brobecker <brobecker@gnat.com>
4973 * NEWS: Add an entry regarding the improvement of the next/step
4974 operation on Alpha Tru64 multi-processor machines.
4976 2002-08-21 Andrew Cagney <ac131313@redhat.com>
4978 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4980 * Makefile.in: Update all _h macro definitions.
4981 * Makefile.in (install-gdbtk): Move to install section.
4982 (rdi-share/libangsd.a): Move to end of file.
4984 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4986 * frame.c (frame_register_unwind): When a register, set addrp to
4987 the register's byte.
4989 2002-08-20 Michael Snyder <msnyder@redhat.com>
4991 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4992 used locally, so move them from the target machine header to here.
4993 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4994 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4996 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4998 2002-08-20 Andrew Cagney <cagney@redhat.com>
5000 * NEWS: Mention that the Apollo line was made obsolete.
5001 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5002 m68*-hp-hpux* obsolete.
5003 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5004 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5005 * buildsym.c (make_blockvector): Make static.
5006 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5007 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5008 (ALLDEPFILES): Remove dstread.c.
5009 (dstread.o): Obsolete make rule.
5010 * dstread.c: Makefile obsolete.
5012 * config/m68k/hp300hpux.mt: Ditto.
5013 * config/m68k/hp300hpux.mh: Ditto.
5014 * config/m68k/hp300bsd.mt: Ditto.
5015 * config/m68k/hp300bsd.mh: Ditto.
5016 * config/m68k/apollo68b.mt: Ditto.
5017 * config/m68k/apollo68v.mh: Ditto.
5018 * config/m68k/apollo68b.mh: Ditto.
5020 2002-08-20 Michael Snyder <msnyder@redhat.com>
5022 * mips-tdep.c (mips_in_return_stub): Make static.
5023 (mips_gdbarch_init): Set in_solib_return_trampoline.
5024 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5026 2002-08-20 Michael Snyder <msnyder@redhat.com>
5028 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5029 * gdbarch.c, gdbarch.h: Regenerate.
5030 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5032 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5034 2002-08-20 Michael Snyder <msnyder@redhat.com>
5036 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5037 (mips_gdbarch_init): Set skip_trampoline_code,
5038 in_solib_call_trampoline.
5039 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5040 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5042 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5044 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5046 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5047 vector type for ev registers.
5048 (e500_pseudo_register_read): New function.
5049 (e500_pseudo_register_write): New function.
5050 (e500_dwarf2_reg_to_regnum): New function.
5051 (PPC_UISA_NOFP_SPRS): New macro.
5052 (PPC_EV_REGS): New macro.
5053 (PPC_GPRS_PSEUDO_REGS): New macro.
5054 (registers_e500): New register set for e500.
5055 (variants): Add e500 variant.
5056 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5057 before setting architectural dependent variations. Initialize ev
5058 registers numbers. Add case for e500 architecture. Set the
5059 number of pseudo registers.
5061 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5063 * rs6000-tdep.c: Clean up comments.
5065 2002-08-20 Andrew Cagney <cagney@redhat.com>
5067 * h8300-tdep.c: Re-indent file.
5069 2002-08-20 Jim Blandy <jimb@redhat.com>
5071 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5074 2002-08-20 Keith Seitz <keiths@redhat.com>
5076 * breakpoints.c (watch_command_1): Use internal breakpoint
5077 when setting a watchpoint_scope breakpoint.
5079 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5081 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5082 (build_builtin_type_vec64i): Ditto.
5083 (build_builtin_type_vec128): Ditto.
5084 (build_builtin_type_vec128i): Ditto.
5086 2002-08-19 Michael Snyder <msnyder@redhat.com>
5088 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5089 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5090 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5091 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5092 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5093 CALL_DUMMY_ADDRESS): Delete.
5094 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5095 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5096 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5097 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5098 push_return_address.
5099 (mips_register_raw_size, mips_eabi_use_struct_convention,
5100 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5101 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5102 mips_init_extra_frame_info, mips_eabi_push_arguments,
5103 mips_n32n64_push_arguments, mips_push_return_address,
5104 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5105 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5107 2002-08-19 Michael Snyder <msnyder@redhat.com>
5109 * mips-tdep.c (mips_frame_num_args): New function.
5110 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5111 frame_saved_pc, frame_args_address, frame_locals_address,
5112 frame_num_args, and frame_args_skip.
5113 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5114 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5115 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5116 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5118 2002-08-20 Michael Snyder <msnyder@redhat.com>
5120 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5121 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5122 * mips-tdep.c (mips_store_struct_return): New function.
5123 (mips_extract_struct_value_address): New function.
5124 (mips_gdbarch_init): Set store_struct_return and
5125 extract_struct_value_address.
5127 2002-08-20 David Carlton <carlton@math.stanford.edu>
5129 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5130 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5131 (read_file_scope): Check that line_header is nonzero before
5132 decoding macro information.
5134 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5136 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5137 flag the general-purpose registers as floating-point on targets
5138 that don't support the floating-point registers.
5140 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5142 * rs6000-tdep.c (altivec_register_p): Delete.
5143 (rs6000_do_altivec_registers): Delete.
5144 (rs6000_altivec_registers_info): Delete.
5145 (rs6000_do_registers_info): Delete.
5146 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5147 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5149 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5151 * infcmd.c (do_registers_info): Print vector registers in hex
5153 (print_vector_info): Check that printing registers
5155 (print_float_info): Ditto.
5157 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5159 * mips-tdep.c (mips_gdbarch_init): Update.
5160 (mips_o32_extract_return_value): Rewrite.
5161 (mips_o32_store_return_value): Rewrite.
5162 (mips_o32_xfer_return_value): New function.
5163 (mips_xfer_register): Tweak debug print message. Allow for
5164 buf_offset when dumping the value transfered.
5166 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5168 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5169 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5170 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5171 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5172 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5174 2002-08-14 Michael Snyder <msnyder@redhat.com>
5176 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5178 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5180 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5182 (P): New macro to define a register as a pseudo register.
5183 (R, R4, R8, R16, FR32, R64, R0): Updated.
5184 (struct variant): Add new fields for number of pseudo registers
5185 and number of total registers.
5186 (tot_num_registers): New macro replacing....
5187 (num_registers): ...deleted macro.
5188 (num_registers): New function.
5189 (num_pseudo_registers): New function.
5190 (variants): Update all variants to intialize new fields correctly.
5191 Postpone initialization of number of pseudo regs and real regs.
5192 (init_variants): New function.
5193 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5196 2002-08-19 David Carlton <carlton@math.stanford.edu>
5198 * valops.c (search_struct_field): Change error message to treat
5199 return value of 0 from value_static_field as meaning that field is
5201 (value_struct_elt_for_reference): Ditto.
5202 * values.c (value_static_field): Treat an unresolved location the
5203 same as a nonexistent symbol. Fix PR gdb/635.
5204 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5205 enclosed. Fix PR gdb/574.
5206 * MAINTAINERS: Add self to Write After Approval list.
5208 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5210 * mips-tdep.c (mips_xfer_register): New function.
5211 (mips_n32n64_extract_return_value): Rewrite.
5212 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5213 instead of deprecated_extract_return_value.
5215 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5217 * rs6000-tdep.c (TDEP): Delete macro.
5218 (branch_dest): Replace use of TDEP macro with its body.
5219 (rs6000_pop_frame): Ditto.
5220 (rs6000_push_arguments): Ditto.
5221 (rs6000_skip_trampoline_code): Ditto.
5222 (rs6000_frame_saved_pc): Ditto.
5223 (rs6000_frame_chain): Ditto.
5224 (rs6000_register_name): Ditto.
5225 (rs6000_register_byte): Ditto.
5226 (rs6000_register_raw_size): Ditto.
5227 (rs6000_register_virtual_type): Ditto.
5228 (rs6000_register_convertible): Ditto.
5229 (rs6000_convert_from_func_ptr_addr): Ditto.
5231 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5233 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5235 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5236 MIPS_LINUX_JB_ELEMENT_SIZE.
5237 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5238 for MAX_REGISTER_RAW_SIZE arrays.
5239 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5240 MIPS_LINUX_JB_ELEMENT_SIZE.
5242 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5244 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5246 2002-08-19 Aidan Skinner <aidan@velvet.net>
5248 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5249 ada-valprint.c ada-tasks.c.
5250 (YYFILES): Add ada-exp.y.
5251 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5252 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5253 (ada-exp.tab.o): New target.
5255 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5257 * regcache.c (regcache_xfer_part): New function.
5258 (regcache_raw_read_part): New function.
5259 (regcache_raw_write_part): New function.
5260 (regcache_cooked_read_part): New function.
5261 (regcache_cooked_write_part): New function.
5262 * regcache.h (regcache_raw_read_part): Declare.
5263 (regcache_raw_write_part): Declare.
5264 (regcache_cooked_read_part): Declare.
5265 (regcache_cooked_write_part): Declare.
5267 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5269 * remote.c (remote_open_1): Add async_p.
5270 (remote_async_open_1): Delete.
5271 (open_remote_target): Delete.
5272 (remote_open, extended_remote_open): Update calls to remote_open_1.
5273 (remote_async_open, extended_remote_async_open): Call
5274 remote_open_1 instead of remote_async_open_1.
5276 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5278 * blockframe.c: Fix a few coding standard violations.
5280 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5282 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5284 * config/i386/tm-i386sco5.h: ... here. File removed.
5285 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5287 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5288 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5289 (TM_FILE): Set to tm-i386.h.
5290 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5291 * config/i386/tm-i386v.h: Remove file.
5292 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5293 instead of "i386/tm-i386v.h".
5294 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5295 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5297 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5298 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5301 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5303 * config/i386/nm-i386v.h: Add protection against
5305 (i386_register_u_addr): Remove prototype.
5306 (register_u_addr): New prototype.
5307 (REGISTER_U_ADDR): Redefine accordingly.
5308 * i386v-nat.c: Improve several comments.
5309 (i386_register_u_addr): Change signature and rename to
5310 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5313 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5315 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5316 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5317 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5318 deprecated_extract_return_value.
5319 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5320 rename mips_o32o64_push_arguments.
5321 (mips_gdbarch_init): Update.
5322 (mips_extract_return_value): Delete.
5323 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5324 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5325 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5326 (mips_n32n64_extract_return_value): Clone
5327 mips_extract_return_value.
5328 (mips_store_return_value): Delete.
5329 (mips_o32_store_return_value): Clone mips_store_return_value.
5330 (mips_o64_store_return_value): Clone mips_store_return_value.
5331 (mips_eabi_store_return_value): Clone mips_store_return_value.
5332 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5334 2002-08-18 Aidan Skinner <aidan@velvet.net>
5336 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5337 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5339 2002-08-18 Aidan Skinner <aidan@velvet.net>
5341 * ada-lang.c: Run through gdb_indent.sh.
5342 * ada-lang.h: Run through gdb_indent.sh.
5343 * ada-tasks.c: Run through gdb_indent.sh.
5344 * ada-typeprint.c: Run through gdb_indent.sh.
5345 * ada-valprint.c: Run through gdb_indent.sh.
5347 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5349 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5352 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5354 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5356 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5357 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5359 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5360 write_register_gen instead of write_register_bytes.
5362 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5363 i[3456]-*-osf1mk* configurations have been made obsolete.
5364 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5365 i[3456]86-*-osf1mk* hosts obsolete.
5366 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5368 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5369 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5370 config/i386/i386m3.mt, config/i386/nm-m3.h,
5371 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5372 config/i386/i386mk.mh, config/i386/i386mk.mt,
5373 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5375 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5376 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5377 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5379 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5381 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5382 (hppa_value_returned_from_stack): Declare.
5383 (hppa_extract_return_value): Declare.
5384 * config/pa/hppa.mt: New file.
5385 * configure.tgt: Recognize hppa*-*-*.
5386 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5388 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5390 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5393 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5395 * top.c (gdb_rl_operate_and_get_next): Make sure
5396 operate-and-get-next functions correctly even when the history
5397 list is completely filled.
5399 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5401 * MAINTAINERS (Target Instruction Set Architectures): Rename
5402 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5403 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5404 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5405 already listed under Host/Native.
5407 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5408 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5411 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5413 * config/ia64/ia64.mt: New file.
5414 * config/alpha/alpha.mt: New file.
5415 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5416 ia64-linux-gnu. Mention that ia64-elf is broken.
5417 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5419 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5421 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5422 generic_func_frame_valid instead of func_frame_valid.
5424 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5426 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5427 procfs appears to be broken when debugging on multi-processor
5428 machines. So enable software single stepping in order to avoid
5429 using the procfs interface to do next/step operations, using
5430 internal breakpoints instead.
5432 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5433 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5434 make this pc address equal to the value it would have if the
5435 system stepping capability was used. Also set a new flag used
5436 to ensure that we don't readjust the PC one more time later.
5438 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5439 address by DECR_PC_AFTER_BREAK when software single step is
5440 in use for this architecture, as this has already been taken
5441 care of in handle_inferior_event().
5443 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5445 * infrun.c (handle_inferior_event): Minor reformatting, to make
5446 a rather long condition expression easier to read.
5448 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5450 * Makefile.in (gdbtk.o): Move to end of file.
5451 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5452 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5453 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5454 (gdbtk-wrapper.o, gdbres.o): Ditto.
5456 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5458 * Makefile.in (copying.o): Separate out compile rule.
5459 (hpux-thread.o, procfs.o, signals.o): Ditto.
5460 (v850ice.o, z8k-tdep.o): Ditto.
5461 (tui-file.o): Move to TUI section.
5462 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5463 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5465 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5467 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5468 skip_trampoline_code, for better namespace-proofing.
5470 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5472 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5474 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5476 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5478 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5479 signal, check whether we hit a breakpoint before checking for a
5480 single step breakpoint. Otherwise, GDB fails to notice that a
5481 breakpoint has been hit when stepping onto a breakpoint.
5483 2002-08-16 Keith Seitz <keiths@redhat.com>
5485 * gdb-events.sh (clear_gdb_event_hooks): New function.
5486 * gdb-events.c: Regenerate.
5487 * gdb-events.h: Regenerate.
5489 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5491 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5492 not_a_sw_breakpoint.
5493 * breakpoint.h (bpstat_stop_status): Add parameter names.
5495 2002-08-16 Grace Sainsbury <graces@redhat.com>
5497 * remote.c (remote_insert_hw_breakpoint)
5498 (remote_remove_hw_breakpoint): Fix calculation of length field
5501 2002-08-15 Michael Snyder <msnyder@redhat.com>
5503 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5504 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5505 (supply_fpregset): Ditto.
5507 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5508 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5509 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5510 (TARGET_READ_SP): Delete.
5511 (DO_REGISTERS_INFO): Delete.
5512 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5514 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5515 from macros to functions.
5517 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5518 (mips_register_convertible, mips_register_convert_to_virtual,
5519 mips_register_convert_to_raw): Make static.
5520 (mips_read_sp): New function.
5521 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5522 (mips_do_registers_info): Make static.
5523 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5524 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5525 (mips_register_convert_from_type, mips_register_convert_to_type):
5527 (mips_gdbarch_init): Set up function_start_offset,
5528 register_virtual_size, pc_in_sigtramp.
5530 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5532 * infcmd.c (vector_info): New function.
5533 (_initialize_infcmd): Add command "info vector".
5534 (print_vector_info): New function.
5536 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5537 * gdbarch.h, gdbarch.c: Regenerate.
5539 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5541 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5542 ``print_all''. Only print vector registers when ``print_all''.
5544 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5546 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5547 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5549 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5550 Add `args' parameter.
5551 * gdbarch.h, gdbarch.c: Regenerate.
5553 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5555 * infcmd.c (float_info): Call print_float_info.
5556 (print_float_info): New function. By default, print the
5557 floating-point registers.
5559 * arch-utils.h (default_print_float_info): Delete declaration.
5560 * arch-utils.c (default_print_float_info): Delete function.
5562 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5564 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5567 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5570 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5571 * configure.host: Make i[3456]86-*-aix host obsolete.
5572 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5573 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5574 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5575 config/i386/xm-i386aix.h: Make files obsolete.
5576 * i386aix-nat.c: Make file obsolete.
5577 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5578 (i386aix-nat.o): Make target obsolete.
5580 * config/i386/nm-gnu.h: Removed.
5581 * config/i386/nm-i386gnu.h: New file.
5582 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5583 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5585 * config/i386/tm-i386gnu.h: ... here. Removed.
5586 * config/i386/xm-i386gnu.h: Removed.
5587 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5588 (NAT_FILE): Set to nm-i386gnu.h.
5589 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5590 * i386-tdep.c: New file.
5591 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5592 (i386gnu-tdep.o): Specify dependencies.
5594 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5596 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5597 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5598 Adjust a few comments to reflect reality a bit closer.
5599 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5600 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5601 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5602 target_insert_watchpoint, target_remove_watchpoint):
5604 * config/i386/nm-i386sco5.h: ... here.
5605 (kernel_u_size): Add prototype. Improve a few comments and add
5606 protection against multiple inclusion.
5608 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5611 * uw-thread.c (SP_ARG0): Define if not already defined.
5612 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5614 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5616 * config/i386/tm-i386.h: Don't include "regcache.h".
5618 * i387-tdep.h (i387_print_float_info): New prototype.
5619 * i387-tdep.c (print_i387_value, print_i387_ext,
5620 print_i387_status_word, print_i387_control_word): Add `struct
5621 ui_file *' argument and use it for output.
5622 (i387_print_float_info): Renamed from i387_float_info. Add
5623 `struct gdbarch *' and `struct ui_file *' arguments and use the
5625 * i386-tdep.c: Include "i387-tdep.h".
5626 (i386_gdbarch_init): Set print_float_info.
5627 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5628 (FLOAT_INFO): Remove define.
5630 2002-08-13 Michael Snyder <msnyder@redhat.com>
5632 * mips-tdep.c (mips_push_arguments): Rename to
5633 mips_eabi_push_arguments, and tune for EABI.
5634 (MIPS_REGS_HAVE_HOME_P): Delete.
5635 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5636 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5637 Delete references to mips_regs_have_home_p.
5639 2002-08-14 Keith Seitz <keiths@redhat.com>
5641 * Makefile.in (install-gdbtk): Create insight plugin directory.
5642 Install plugins.tcl file.
5644 2002-08-14 Keith Seitz <keiths@redhat.com>
5646 * configure.in: Move SUBDIRS to near top of the file so that
5647 --enable options may add things to it.
5648 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5649 * configure: Regenerate.
5651 2002-08-13 Michael Snyder <msnyder@redhat.com>
5653 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5654 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5655 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5657 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5659 * vax-tdep.c (vax_get_saved_register): Delete function.
5660 (vax_gdbarch_init): Update.
5661 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5662 (ns32k_gdbarch_init): Update.
5663 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5664 (alpha_gdbarch_init): Update.
5666 2002-08-13 Andrew Cagney <cagney@redhat.com>
5668 * regcache.c (init_regcache_descr): Overallocate the
5669 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5670 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5672 (set_register_cached): Add range checking assertions. Use
5675 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5677 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5678 numbers for MMX registers.
5680 2002-08-13 Andrew Cagney <cagney@redhat.com>
5682 * i386-tdep.c (i386_gdbarch_init): Use
5683 generic_unwind_get_saved_register.
5685 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5687 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5688 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5690 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5691 Delete. Add comment regarding this now-deleted target method.
5693 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5695 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5696 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5697 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5698 real PC and the page number (if it's within the memory bank window).
5699 (m68hc11_pseudo_register_write): Likewise when saving.
5700 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5701 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5702 (m68hc11_register_raw_size): And use 32-bit for it.
5703 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5704 16K memory bank is used by the prog; also use the virtual pc.
5706 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5708 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5709 (m68hc11_gdbarch_init): Install it in gdbarch.
5710 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5711 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5712 (MSYMBOL_SIZE): New for documentation.
5713 (insn_return_kind): Enum to specify how a function returns.
5714 (frame_extra_info): Cleanup and record the return mode.
5715 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5716 register in address computation.
5717 (m68hc11_get_return_insn): New to obtain the return instruction used
5719 (m68hc11_frame_init_saved_regs): Take into account the return
5720 instruction used by the function for far and interrupt functions.
5721 (m68hc11_init_extra_frame_info): Take into account page register.
5722 (m68hc11_frame_args_address): Adjust according to the return mode.
5723 (show_regs): Print page register only when it's used.
5725 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5727 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5728 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5729 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5731 (m68hc11_register_raw_size): Likewise.
5733 2002-08-13 Andrew Cagney <cagney@redhat.com>
5735 * i386-tdep.c (i386_register_name): Handle mmx registers.
5736 (mmx_regnum_p): New function.
5737 (i386_mmx_names): New array.
5738 (mmx_num_regs): New variable.
5739 (i386_pseudo_register_read): New function.
5740 (i386_pseudo_register_write): New function.
5741 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5743 * regcache.c (regcache_raw_read_unsigned): New function.
5744 (regcache_raw_read_signed): New function.
5745 * regcache.h (regcache_raw_read_unsigned): Declare.
5746 (regcache_raw_read_signed): Declare.
5748 2002-08-13 Andrew Cagney <cagney@redhat.com>
5750 * regcache.c (regcache_raw_read_as_address): Delete function.
5751 (regcache_cooked_read_signed): New function.
5752 (regcache_cooked_read_unsigned): New function.
5753 * regcache.h (regcache_cooked_read_signed): Declare.
5754 (regcache_cooked_read_unsigned): Declare.
5755 (regcache_raw_read_as_address): Delete declaration.
5757 * blockframe.c (generic_read_register_dummy): Use
5758 regcache_cooked_read_unsigned.
5759 * i386-tdep.c (i386_extract_struct_value_address): Use
5760 regcache_cooked_read_unsigned.
5762 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5765 double sizes according to ELF ABI flags.
5766 (gdbarch_tdep): Record elf_flags.
5768 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5770 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5771 (m6812_prolog): They can appear in 68HC12 function prologue.
5772 (m68hc11_frame_chain): Cleanup.
5774 2002-08-12 Andrew Cagney <cagney@redhat.com>
5776 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5778 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5779 (i386_linux_register_raw_size): Delete function.
5780 (i386_linux_init_abi): Update.
5781 * i386-tdep.c (i386_register_raw_size): Delete function.
5782 (i386_register_byte): Delete function.
5783 (i386_gdbarch_init): Update.
5784 (i386_register_size): Delete array.
5785 (i386_register_offset): Delete array.
5787 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5788 (REGISTER_RAW_SIZE): Delete macro.
5789 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5790 (REGISTER_BYTE): Delete macro.
5792 2002-08-11 Aidan Skinner <aidan@velvet.net>
5794 * ada-lang.c (ada_lookup_partial_symbol)
5795 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5796 prototype names so that grep ^func works properly.
5798 * ada-lang.c (ada_array_element_type)
5799 (ada_lookup_partial_symbol): Fix typos in parameter list.
5801 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5802 Fix prototype names so that grep ^func works properly.
5804 2002-08-10 Andrew Cagney <cagney@redhat.com>
5805 Elena Zannoni <ezannoni@redhat.com>
5806 Martin M. Hunt <hunt@redhat.com>
5808 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5809 (build_builtin_type_vec128i): Set the vector bit.
5810 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5811 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5812 (build_builtin_type_vec64): New function.
5813 (build_builtin_type_vec64i): New function.
5814 (build_gdbtypes): Initialize builtin_type_vec64 and
5815 builtin_type_vec64i.
5817 2002-08-09 Andrew Cagney <cagney@redhat.com>
5819 * regcache.c (regcache_dump): Compare the register offset
5821 * arch-utils.c (generic_register_byte): New function.
5822 * arch-utils.h (generic_register_byte): Declare.
5823 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5824 * gdbarch.h, gdbarch.c: Regenerate.
5826 2002-08-09 Andrew Cagney <cagney@redhat.com>
5828 * regcache.c: Include "gdbcmd.h"
5829 (_initialize_regcache): Add commands "maintenance print
5830 registers", "maintenance print raw-registers" and "maintenance
5831 print cooked-registers".
5832 (enum regcache_dump_what): Define.
5833 (dump_endian_bytes): New function.
5834 (regcache_dump): New function.
5835 (regcache_print): New function.
5836 (maintenance_print_registers): New function.
5837 (maintenance_print_raw_registers): New function.
5838 (maintenance_print_cooked_registers): New function.
5839 * Makefile.in (regcache.o): Update dependencies.
5841 2002-08-09 Michael Snyder <msnyder@redhat.com>
5843 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5844 (mips_push_arguments): Correct some comments. Use paddr_nz
5845 for printing addresses in debug output. Replace static
5846 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5847 (mips_n32n64_push_arguments): New function, cloned from
5848 mips_push_arguments and tuned for the n32/n64 ABI.
5849 (mips_push_register): Buffer needs dynamic allocation.
5850 (mips_print_register): Ditto.
5851 (do_gp_register_row): Ditto.
5852 (mips_store_return_value): Ditto.
5853 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5855 2002-08-09 Don Howard <dhoward@redhat.com>
5857 * memattr.c (mem_info_command): Print special case of upper bound
5858 as max CORE_ADDR + 1.
5860 2002-08-08 Michael Snyder <msnyder@redhat.com>
5862 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5863 returns structs by ref if they're too big to fit in two registers.
5865 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5867 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5869 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5870 mips_find_saved_regs().
5871 (mips_pop_frame): Likewise.
5873 2002-08-09 Kevin Buettner <kevinb@redhat.com>
5875 * blockframe.c (frame_saved_regs_register_unwind): Revise
5876 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5879 2002-08-09 Grace Sainsbury <graces@redhat.com>
5881 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5882 T-packets; the 'a' is not taken as a register number.
5883 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5884 (remote_stopped_data_address): New functions; add to target
5886 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5887 prototypes to match other implementations of this
5888 function. replace integer argument with pointer -- the length
5889 field in the Z-packet is the length of what is pointed to or 1 if
5890 pointer is null. Add to target vector.
5891 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5895 * remote.c (remote_wait): Add support to extract optional
5896 watchpoint information from T-packet. Ignore unrecognized
5897 optional info in T-packet.
5898 (remote_async_wait): Ditto.
5900 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
5902 * cli/cli-dump.c: Change fopen modes to use binary open modes
5903 as defined in include/fopen-bin.h throughout.
5905 2002-08-08 Michael Snyder <msnyder@redhat.com>
5907 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5909 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5911 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5912 assertion failure by returning early after a warning.
5914 2002-08-08 Kevin Buettner <kevinb@redhat.com>
5916 * mips-tdep.c (mips_find_saved_regs): Make static.
5917 (mips_frame_init_saved_regs): New function.
5918 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5919 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5920 (mips_find_saved_regs): Delete declaration.
5922 2002-08-08 Grace Sainsbury <graces@redhat.com>
5924 * remote.c (remote_wait, remote_async_wait): Change
5925 thread_num from int to ULONGEST.
5926 (unpack_varlen_hex): Change result parameter from
5927 int * to ULONGEST *.
5929 2002-08-08 Andrew Cagney <ac131313@redhat.com>
5931 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5932 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5934 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5936 2002-08-08 Andrew Cagney <cagney@redhat.com>
5938 * gcore.c (override_derive_stack_segment): Delete variable.
5939 (preempt_derive_stack_segment): Delete function.
5940 (derive_stack_segment): Delete function.
5941 (default_derive_stack_segment): Renamed to derive_stack_segment.
5942 (override_derive_heap_segment): Delete variable.
5943 (preempt_derive_heap_segment): Delete function.
5944 (derive_heap_segment): Delete function.
5945 (default_derive_heap_segment): Rename to derive_heap_segment.
5947 2002-08-06 Michael Snyder <msnyder@redhat.com>
5949 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5950 * mips-tdep.c (mips_EABI_use_struct_convention,
5951 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5952 New functions. (mips_use_struct_convention): Delete.
5953 (mips_gdbarch_init): set use_gdbarch_convention.
5955 2002-08-06 Michael Snyder <msnyder@redhat.com>
5957 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5958 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5959 mips_o32_reg_struct_has_addr): New functions.
5960 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5962 2002-08-07 Andrew Cagney <ac131313@redhat.com>
5964 * regcache.c (pseudo_register): Delete function.
5965 (fetch_register): Delete function.
5966 (store_register): Delete function.
5967 (regcache_raw_read, legacy_read_register_gen): Use
5968 target_fetch_registers instead of fetch_register.
5969 (legacy_write_register_gen, regcache_raw_write): Use
5970 target_store_register instead of store_register.
5971 (write_register_bytes): Ditto.
5973 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5974 (STORE_PSEUDO_REGISTER): Delete.
5975 * gdbarch.h, gdbarch.c: Regenerate.
5977 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
5979 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5980 write dump file binary.
5982 2002-08-05 Michael Snyder <msnyder@redhat.com>
5984 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5985 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5986 (mips_gdbarch_init): Set N32 target to be mips64.
5988 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5990 * frame.c (find_saved_register): Break out of loop once saved
5991 register address is found. Don't mention sparc in loop comment
5994 2002-08-06 Kevin Buettner <kevinb@redhat.com>
5996 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5997 mips_default_saved_regsize to 8.
5999 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6001 * gcore.c: Do not include <sys/procfs.h>.
6002 * Makefile.in (gcore.o): Update dependencies.
6004 2002-08-06 Andrew Cagney <cagney@redhat.com>
6006 * configure.tgt: Make arc-*-* obsolete.
6007 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6008 * MAINTAINERS: Make arc-elf obsolete.
6009 * arc-tdep.c: Make file obsolete.
6010 * config/arc/arc.mt: Ditto.
6011 * config/arc/tm-arc.h: Ditto.
6013 2002-08-05 Theodore A. Roth <troth@verinet.com>
6015 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6017 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6019 * mcore-tdep.c (mcore_gdbarch_init): Use
6020 generic_unwind_get_saved_register instead of
6021 generic_get_saved_register.
6022 * v850-tdep.c (v850_gdbarch_init): Ditto.
6023 * frv-tdep.c (frv_gdbarch_init): Ditto.
6024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6025 * s390-tdep.c (s390_gdbarch_init): Ditto.
6026 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6027 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6028 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6030 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6032 * objfiles.h: Add missing #include "symfile.h"
6034 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6036 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6038 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6039 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6042 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6044 * NEWS: Cleanup and nitpick.
6046 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6048 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6050 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6052 * Makefile.in (gdbtk-bp.o): Update dependencies.
6053 (gdbtk-register.o): Ditto.
6054 (gdbtk-varobj.o): Ditto.
6056 2002-08-03 Andrew Cagney <cagney@redhat.com>
6058 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6059 m68hc11_fetch_pseudo_register.
6060 (m68hc11_pseudo_register_write): Replace
6061 m68hc11_store_pseudo_register.
6062 (m68hc11_gdbarch_init): Update.
6064 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6066 * gdbarch.sh: Include "gdb_string.h".
6067 * gdbarch.c: Regenerate.
6069 * regcache.c: Include "gdb_string.h".
6070 * ax-general.c: Ditto.
6072 * std-regs.c: Ditto.
6073 * fbsd-proc.c: Ditto.
6076 * Makefile.in (regcache.o): Update dependencies.
6077 (thread.o, gdbarch.o): Ditto.
6078 (ax-general.o, gdbarch.o): Ditto.
6079 (varobj.o, std-regs.o): Ditto.
6080 (fbsd-proc.o): Specify dependencies.
6082 2002-08-02 Andrew Cagney <cagney@redhat.com>
6084 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6086 (regcache_cooked_write): Ditto.
6088 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6090 * regcache.c (regcache_cooked_read): New function.
6091 (regcache_cooked_write): New function.
6092 (read_register_gen): Rewrite using regcache_cooked_read.
6093 (write_register_gen): Rewrite using regcache_cooked_write.
6095 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6098 2002-08-02 Andrew Cagney <cagney@redhat.com>
6100 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6101 Replace the architecture methods register_read and register_write.
6102 * gdbarch.h, gdbarch.c: Regenerate.
6103 * regcache.c (init_regcache_descr): Update.
6104 (read_register_gen): Update.
6105 (write_register_gen): Update.
6106 (supply_register): Update comment.
6108 * sh-tdep.c (sh_gdbarch_init): Update.
6109 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6110 `regcache' and `gdbarch' parameters. Make `buffer' a void
6111 pointer. Update code.
6112 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6113 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6114 void pointer. Update code.
6115 (sh64_register_write): Delete.
6116 (sh4_register_read): Delete.
6117 (sh64_register_read): Delete.
6118 (sh4_register_write): Delete.
6119 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6120 void pointer, `to' parameter a void pointer.
6121 (sh_sh64_register_convert_to_raw): Ditto.
6123 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6125 * mips-tdep.c (mips_register_virtual_type): Use architecture
6126 invariant return values.
6128 2002-08-01 Andrew Cagney <cagney@redhat.com>
6130 * linux-proc.c: Include "gdb_string.h".
6131 * Makefile.in (linux-proc.o): Update dependency list.
6133 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6135 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6138 2002-08-01 Grace Sainsbury <graces@redhat.com>
6140 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6141 to_insert_watchpoint, to_remove_watchpoint,
6142 to_stopped_by_watchpoint, to_stopped_data_address,
6143 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6144 target vecctor. Define their corresponding macros so they call
6147 * target.c: Add default and debug versions of for
6148 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6149 to_insert_watchpoint, to_remove_watchpoint,
6150 to_stopped_by_watchpoint, to_stopped_data_address,
6151 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6153 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6155 * mips-tdep.c (mips_register_virtual_type): New function.
6156 (mips_gdbarch_init): Register mips_register_virtual_type()
6157 with gdbarch machinery.
6158 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6159 this file instead of tm-bigmips.h.
6160 (MIPS_REGSIZE): Delete this macro.
6161 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6162 multiarch version in mips-tdep.c will be found.
6164 2002-08-01 Andrew Cagney <cagney@redhat.com>
6166 * NEWS: Menion that CHILL has been made obsolete.
6168 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6169 * stabsread.c (read_range_type): Ditto.
6170 * gdbtypes.h: Ditto.
6171 * language.c (binop_type_check): Ditto.
6172 (binop_result_type): Ditto.
6173 (integral_type): Ditto.
6174 (character_type): Ditto.
6175 (string_type): Ditto.
6176 (boolean_type): Ditto.
6177 (structured_type): Ditto.
6178 (lang_bool_type): Ditto.
6179 (binop_type_check): Ditto.
6180 * language.h (_LANG_chill): Ditto.
6181 * dwarfread.c (set_cu_language): Ditto.
6182 * dwarfread.c (CHILL_PRODUCER): Ditto.
6183 * dwarfread.c (handle_producer): Ditto.
6184 * expression.h (enum exp_opcode): Ditto.
6185 * eval.c: Ditto for comments.
6186 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6187 * expprint.c (print_subexp): Ditto.
6188 (print_subexp): Ditto.
6189 * valops.c (value_cast): Ditto.
6190 (search_struct_field): Ditto.
6191 * value.h (COERCE_VARYING_ARRAY): Ditto.
6192 * symfile.c (init_filename_language_table): Ditto.
6193 (add_psymbol_with_dem_name_to_list): Ditto.
6194 * valarith.c (value_binop): Ditto.
6196 * valops.c (value_slice): Ditto.
6197 * symtab.h (union language_specific): Ditto.
6198 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6199 (SYMBOL_DEMANGLED_NAME): Ditto.
6200 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6201 * defs.h (enum language): Ditto.
6202 * symtab.c (got_symtab): Ditto.
6203 * utils.c (fprintf_symbol_filtered): Ditto.
6205 * ch-typeprint.c: Make file obsolete.
6206 * ch-valprint.c: Make file obsolete.
6207 * ch-lang.h: Make file obsolete.
6208 * ch-exp.c: Make file obsolete.
6209 * ch-lang.c: Make file obsolete.
6211 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6213 (TARGET_FLAGS_TO_PASS): Ditto.
6214 (CHILLFLAGS): Obsolete.
6216 (CHILL_FOR_TARGET): Obsolete.
6217 (CHILL_LIB): Obsolete.
6218 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6220 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6221 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6223 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6226 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6228 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6229 This does not change anything at the moment, but will be helpful
6230 later when full Ada support is integrated.
6232 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6234 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6237 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6239 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6240 and save it in a local variable. Use variable in later test.
6242 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6244 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6245 test. (Thanks to Daniel Jacobowitz.)
6247 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6249 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6250 (mips_abi_strings): Add "n64".
6251 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6253 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6255 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6256 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6258 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6260 * utils.c (host_pointer_to_address, address_to_host_pointer):
6261 Use gdb_assert() instead of explicit call to internal_error().
6263 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6265 * Makefile.in (rs6000-nat.o): Update dependencies.
6267 From Nicholas Duffek:
6268 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6269 (aix-thread.o): New rule.
6270 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6271 * config/powerpc/aix432.mh: New file.
6273 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6275 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6276 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6277 (fetch_core_registers, ppc_linux_supply_gregset)
6278 (ppc_linux_supply_fpregset): New functions.
6279 (ppc_linux_regset_core_fns): New.
6280 (_initialize_ppc_linux_tdep): Call add_core_fns.
6281 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6282 and ppc_linux_supply_gregset.
6283 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6284 (supply_fpregset): Call ppc_linux_supply_fpregset.
6285 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6287 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6289 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6291 * symtab.c (lookup_symbol): Demangle before lowercasing.
6293 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6295 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6297 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6298 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6299 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6300 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6302 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6303 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6304 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6305 (avr-tdep.o, mon960-rom.o): Ditto.
6306 (aout_stabs_gnu_h): Define.
6307 (symtab_h): Remove $(gdb_obstack_h).
6309 2002-07-30 Jim Blandy <jimb@redhat.com>
6311 Patch from David Carlton <carlton@math.stanford.edu>:
6312 * gdbinit.in: Move the `dir' commands that add GDB's own source
6313 directory to the search path to the end, so that the `gdb' source
6314 directory will be searched first.
6316 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6318 * gdb_obstack.h: New file.
6319 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6320 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6321 * objfiles.h: Include "gdb_obstack.h".
6322 * Makefile.in (gdb_obstack_h): Define.
6323 (symtab_h): Add $(gdb_obstack_h).
6324 (objfiles_h): Add $(gdb_obstack_h).
6326 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6327 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6328 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6329 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6330 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6331 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6332 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6333 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6335 * Makefile.in (bcache.o): Update dependencies.
6336 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6337 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6338 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6339 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6340 (stabsread.o, symfile.o, symmisc.o): Ditto.
6341 (symtab.o, typeprint.o, macroexp.o): Ditto.
6342 (macrotab.o, mdebugread.o): Ditto.
6343 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6344 (coff_ecoff_h, aout_aout64_h): Define.
6345 (aout_stabs_gnu_h, libaout_h): Define.
6347 2002-07-29 Andrew Cagney <cagney@redhat.com>
6349 * regcache.c (struct regcache_descr): Rename nr_registers to
6350 nr_cooked_registers. Revise comments describing the structure
6352 (init_regcache_descr): Update.
6353 (init_legacy_regcache_descr): Update.
6354 (read_register_gen, write_register_gen): When a cooked register in
6355 the raw register range, directly access the value from the raw
6358 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6360 * z8k-tdep.c: Do not include "obstack.h".
6361 * h8300-tdep.c, h8500-tdep.c: Ditto.
6362 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6363 * valprint.c, v850-tdep.c: Ditto.
6364 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6365 * mn10200-tdep.c: Ditto.
6367 * Makefile.in (z8k-tdep.o): Update dependencies.
6368 (m68hc11-tdep.o, valprint.o): Ditto.
6369 (v850-tdep.o, d10v-tdep.o): Ditto.
6370 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6371 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6372 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6373 (sh_opc_h, gdb_sim_sh_h): Define.
6374 (elf_sh_h, elf_bfd_h): Define.
6375 (opcode_m68hc11_h): Define.
6376 (OPCODES_SRC, OPCODES_DIR): define.
6377 (OPCODES): Use $(OPCODES_DIR).
6378 (gdb_sim_d10v_h): Rename sim_d10v_h.
6379 (gdb_sim_arm_h): Rename sim_arm_h.
6381 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6383 * utils.c (host_pointer_to_address, address_to_host_pointer):
6384 Change internal_error() message to indicate function responsible
6387 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6389 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6390 calls to local_hex_string_custom().
6392 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6394 * irix5-nat.c: Move IRIX shared library support from here...
6395 * solib-irix.c: ...to here. Revised substantially to work with
6396 generic solib framework.
6398 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6399 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6400 * mips-irix-tdep.c: New file.
6402 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6403 (mips-irix-tdep.o, solib-irix.o): New rules.
6404 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6406 * config/mips/irix6.mt (TDEPFILES): Likewise.
6407 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6409 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6411 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6412 disabled (via ``#if 0'') includes.
6414 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6416 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6417 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6418 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6419 Add support for the fpscr register.
6420 * rs6000-nat.c (regmap, fetch_inferior_registers)
6421 (store_inferior_registers, fetch_core_registers): Likewise.
6423 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6425 * rs6000-nat.c (language.h): Include.
6426 (special_regs): Delete this array.
6427 (regmap): New function.
6428 (fetch_register, store_register): Use regmap() to map gdb
6429 register numbers to ptrace register numbers. Also, use
6430 outputs from regmap() to make decisions regarding type of
6431 ptrace() call to make. In particular, don't compare against
6432 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6433 (fetch_inferior_registers, store_inferior_registers): Where
6434 possible, obtain register numbers from tdep struct. Don't
6435 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6436 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6437 (LAST_UISA_SP_REGNUM): Delete.
6439 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6441 * rs6000-nat.c (ppc-tdep.h): Include.
6442 (fetch_registers, store_register, fetch_core_registers): Don't
6443 access registers[] directly. Instead, use supply_register() or
6444 regcache_collect() as appropriate.
6445 (find_toc_address): Format hex address with local_hex_string().
6447 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6449 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6452 2002-07-24 Tom Tromey <tromey@redhat.com>
6454 * jv-exp.y: Marked all strings with _().
6455 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6457 (MethodInvocation, CastExpression, parse_number, yyerror,
6458 java_type_from_name, push_expression_name, yylex): Typo fixes.
6460 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6462 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6463 (tee_file_flush, tee_file_write, tee_file_fputs)
6464 (tee_file_isatty): New.
6465 * ui-file.h (tee_file_new): Add prototype.
6467 2002-07-24 Aidan Skinner <aidan@velvet.net>
6469 * ada-lang.c: Change k&r style function definitions to prototyped
6471 * ada-typeprint.c: Change k&r style function definitions to prototyped
6473 * ada-valprint.c: Change k&r style function definitions to prototyped
6476 2002-07-24 Andrew Cagney <cagney@redhat.com>
6478 * README: Remove reference to remote-bug.
6479 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6481 (m88k-nat.o): Delete rule.
6482 (m88k-tdep.o): Delete rule.
6483 (remote-bug.o): Delete rule.
6484 * MAINTAINERS: Mark as obsolete.
6485 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6486 * m88k-tdep.c: Make file obsolete.
6487 * config/m88k/m88k.mh: Ditto.
6488 * config/m88k/delta88v4.mh: Ditto.
6489 * config/m88k/delta88v4.mt: Ditto.
6490 * config/m88k/delta88.mt: Ditto.
6491 * config/m88k/delta88.mh: Ditto.
6492 * remote-bug.c: Ditto.
6493 * config/m88k/tm-delta88.h: Ditto.
6494 * config/m88k/nm-delta88v4.h: Ditto.
6495 * config/m88k/xm-delta88.h: Ditto.
6496 * config/m88k/xm-dgux.h: Ditto.
6497 * config/m88k/tm-m88k.h: Ditto.
6498 * config/m88k/nm-m88k.h: Ditto.
6499 * config/m88k/tm-delta88v4.h: Ditto.
6500 * m88k-nat.c: Ditto.
6501 * cxux-nat.c: Ditto.
6502 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6503 and m88*-*-* obsolete.
6504 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6507 2002-07-24 Andrew Cagney <cagney@redhat.com>
6509 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6510 constant. Same for local pointer variables.
6511 (extract_signed_integer): Ditto.
6512 * defs.h (extract_unsigned_integer): Update.
6513 (extract_signed_integer): Update.
6515 2002-07-24 Andrew Cagney <cagney@redhat.com>
6517 * regcache.c (regcache_raw_write): Change buf parameter to a
6518 constant void pointer.
6519 (regcache_raw_read): Change buf parameter to a void pointer.
6520 (legacy_write_register_gen): Change myaddr parameter a constant
6522 (supply_register): Change val parameter to a const void pointer.
6523 * regcache.h (regcache_raw_write): Update declaration.
6524 (regcache_raw_read): Update declaration.
6525 (supply_register): Update declaration.
6527 2002-07-24 Tom Tromey <tromey@redhat.com>
6529 * defs.h (gdb_readline_wrapper): Declare.
6530 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6531 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6532 * top.c (gdb_readline_wrapper): New function.
6533 (command_line_input): Use it.
6535 2002-07-24 Andrew Cagney <cagney@redhat.com>
6537 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6538 regcache_read and regcache_write.
6539 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6540 * regcache.c: Update.
6541 * sh-tdep.c (sh64_push_arguments): Update comment.
6542 (sh_pseudo_register_read): Update.
6543 (sh_pseudo_register_write): Update.
6544 (sh4_register_read): Update.
6545 (sh4_register_write): Update.
6546 (sh64_pseudo_register_read): Update.
6547 (sh64_pseudo_register_write): Update.
6548 (sh64_register_read): Update.
6549 (sh64_register_write): Update.
6550 * i386-tdep.c (i386_extract_return_value): Update.
6551 (i386_extract_struct_value_address): Update.
6552 (i386_extract_return_value): Update.
6553 * blockframe.c (generic_read_register_dummy): Update.
6554 (generic_call_dummy_register_unwind): Update
6555 * infrun.c (write_inferior_status_register): Update.
6557 2002-07-23 Jim Blandy <jimb@redhat.com>
6559 * parser-defs.h (expression_context_pc): Make this extern.
6560 (Thanks to Michael Snyder.)
6562 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6564 GDB 5.2.1 released from 5.2 branch.
6565 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6566 * README: Update to mention 5.2.1.
6568 2002-07-23 Mark Salter <msalter@redhat.com>
6570 * remote.c (remote_read_bytes): Fix check for error.
6572 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6574 * aix-thread.c (language.h): Include.
6575 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6576 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6577 Print newlines at end of debug messages.
6578 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6579 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6581 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6583 * aix-thread.c (ppc-tdep.h): Include.
6584 (special_register_p): New function.
6585 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6586 (store_regs_user_thread): Use register number information from
6587 gdbarch_tdep struct instead of hardcoded offsets relative to
6588 FIRST_UISA_SP_REGNUM.
6589 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6590 special_register_p() instead of using FPLAST_REGNUM and
6591 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6592 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6593 will be MQ's register number.
6595 2002-07-22 Michael Snyder <msnyder@redhat.com>
6597 * aix-thread.c (ops): Rename to aix_thread_ops.
6598 (base_ops): Rename to base_target.
6599 (ops_attach): Rename to aix_thread_attach.
6600 (ops_detach): Rename to aix_thread_detach.
6601 (ops_resume): Rename to aix_thread_detach.
6602 (ops_wait): Rename to aix_thread_wait.
6603 (ops_kill): Rename to aix_thread_kill.
6604 (init_ops): Rename to init_aix_thread_ops.
6605 (ops_fetch_register): Rename to aix_thread_fetch_register.
6606 (ops_store_register): Rename to aix_thread_store_register.
6607 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6608 (ops_thread_alive): Rename to aix_thread_thread_alive.
6609 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6610 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6611 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6612 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6613 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6614 (store_regs_lib): Rename to store_regs_user_thread.
6615 (store_regs_kern): Rename to store_regs_kernel_thread.
6617 2002-07-22 Michael Snyder <msnyder@redhat.com>
6619 * aix-thread.c (ops_prepare_to_store): Eliminate.
6620 (init_ops): Don't initialize ops.prepare_to_store.
6621 (store_regs_kern): Pre-fetch register buffers from child,
6622 because some registers may not be in the cache. Copy
6623 regs from register cache only if they are cached.
6624 (store_regs_lib): Copy regs from register cache only
6626 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6627 fill_gprs64): Ditto.
6629 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6631 * aix-thread.c (gdb_assert.h): Include.
6632 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6633 register sizes (from register cache) match size of buffer holding
6635 (fill_sprs32): Change parameter types to match those in the ptrace()
6637 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6638 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6640 2002-07-22 Michael Snyder <msnyder@redhat.com>
6642 * aix-thread.c (supply_sprs64): Cosmetic change.
6643 (supply_sprs32): Cosmetic change.
6644 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6645 (fill_sprs64): Use regcache_collect instead of read_register.
6646 (store_regs_lib): Use regcache_collect instead of
6647 read_register. Use fill_sprs32 instead of fill_sprs64,
6648 if debugging a 32-bit architecture.
6649 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6650 out of the register cache, instead of passing a pointer into
6651 the register cache directly to ptrace. Use regcache_collect
6652 insteaad of read_register.
6653 (ops_prepare_to_store): Use target_read_registers instead
6654 of read_register_bytes.
6656 2002-07-20 Aidan Skinner <aidan@velvet.net>
6658 * MAINTAINERS: Add self under write after approval.
6660 2002-07-20 Aidan Skinner <aidan@velvet.net>
6662 * ada-tasks.c: Change k&r style function definitions to prototyped
6665 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6667 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6668 * x86-64-tdep.c: Include "objfiles.h".
6669 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6670 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6672 2002-07-17 Michal Ludvig <michal@suse.cz>
6674 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6675 (update_context): Initialise cfa variable.
6677 2002-07-17 Michael Snyder <msnyder@redhat.com>
6679 * aix-thread.c: Shorten some long lines.
6680 Bring comments into line with code spec.
6682 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6684 * infrun.c: Re-indent using gdb_indent.sh.
6686 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6688 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6689 Leave the indentation temporarily untouched, to minimize the diffs.
6691 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6693 * stabsread.c: Make os9k sections of the code obsolete,
6695 * stabsread.h: Make os9k sections of the code obsolete.
6697 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6699 * linux-low.c (regsets_store_inferior_registers): Add free()
6700 at the end of a loop to prevent memory leak.
6701 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6702 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6703 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6705 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6707 2002-07-17 Jim Blandy <jimb@redhat.com>
6709 * macrocmd.c (info_macro_command): Remove newline from error
6712 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6714 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6715 (sh_gdbarch_init): Use it for sh-dsp.
6717 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6719 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6720 64-bit DWARF2 format.
6722 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6724 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6725 <sys/proc.h> when not available.
6727 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6729 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6730 * stabsread.c: Make os9k sections of the code obsolete.
6731 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6732 * config/i386/i386os9k.mt: Make file obsolete.
6733 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6734 (COMMON_OBS): Remove os9kread.o
6735 (SFILES): Remove os9kread.c.
6736 (os9kread.o, remote-os9k.o): Make target obsolete.
6737 * remote-os9k.c: Make file obsolete.
6738 * os9kread.c: Make file obsolete.
6741 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6743 * NEWS: Mention that the FR30 has been made obsolete.
6744 * fr30-tdep.c: Make file obsolete.
6745 * config/fr30/tm-fr30.h: Ditto.
6746 * config/fr30/fr30.mt: Ditto.
6747 * configure.tgt: Make fr30-*-elf obsolete.
6748 * MAINTAINERS: Make fr30-elf obsolete.
6750 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6752 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6753 found is not inside a section.
6755 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6757 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6759 (pdc_realloc): Use xrealloc() instead of realloc().
6761 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6763 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6764 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6765 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6768 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6770 * aix-thread.c (ptrace_check): Eliminate goto.
6771 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6774 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6776 * aix-thread.c (gdbcmd.h): Include.
6777 (DEBUG, DBG, DBG2, dbg): Eliminate.
6778 (debug_aix_thread): New static global.
6779 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6780 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6781 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6782 invocations to DBG and DBG2 macros to test against
6783 ``debug_aix_thread'' and call fprintf_unfiltered().
6784 (_initialize_aix_thread): Add new command "set debug aix-thread".
6786 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6788 From Gerhard Tonn <TON@de.ibm.com>:
6789 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6790 instead of supply_register.
6792 2002-07-15 Andrew Cagney <ac131313@redhat.com>
6794 * dwarf2cfi.c: Include "gdb_assert.h".
6795 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6797 (update_context): Do not use __func__. Add missing ``break''.
6798 (update_context): Do not use __func__.
6800 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
6802 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6803 and its setting. Set gdbarch instruction printing functions
6804 directly. For non-rs6000 case use new function
6805 gdb_print_insn_powerpc.
6806 (gdb_print_insn_powerpc): New function.
6808 2002-07-13 Andrew Cagney <ac131313@redhat.com>
6810 * NEWS: Mention that the d30v has been marked obsolete.
6811 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6812 * configure.tgt: Mark d30v-*-* as obsolete.
6813 * d30v-tdep.c: Mark file as obsolete.
6814 * config/d30v/d30v.mt: Ditto.
6815 * config/d30v/tm-d30v.h: Ditto.
6817 2002-07-13 Aidan Skinner <aidan@velvet.net>
6819 * ada-tasks.c (add_task_entry): replace calls to
6820 malloc() with xmalloc
6821 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6823 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6824 ada_finish_decode_line_1, all_sals_for_line
6825 ada_breakpoint_rewrite): replace calls to free() with xfree()
6827 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6829 From Nicholas Duffek (with minor changes by Martin Hunt,
6830 Louis Hamilton, and Kevin Buettner):
6831 * aix-thread.c: New file.
6833 2002-07-12 Petr Sorfa <petrs@caldera.com>
6835 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6836 complaint for invalid attribute class or form.
6837 (read_func_scope): DW_AT_frame_base
6838 better handling of DW_AT_block*.
6839 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6840 better handling of DW_AT_block*.
6841 (read_common_block): DW_AT_location
6842 better handling of DW_AT_block*.
6843 (read_partial_die): DW_AT_location better handling
6845 (new_symbol): DW_AT_external better handling of
6846 DW_AT_block*. Proper initialization of variable
6848 (attr_form_is_block): New function that returns true
6849 if the attribute's form is of DW_FORM_block*.
6851 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
6853 * valops.c (find_method_list): Remove comment about
6854 removed STATIC_MEMFUNCP argument.
6855 (value_find_oload_method_list): Likewise.
6857 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6859 From Nicholas Duffek:
6860 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6861 target_new_objfile_hook.
6863 2002-07-12 Kevin Buettner <kevinb@redhat.com>
6865 From Nicholas Duffek:
6866 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6869 2002-07-12 Andrew Cagney <cagney@redhat.com>
6871 * MAINTAINERS: Mention --enable-sim-build-warnings.
6872 (m68hc11-elf): Disable sim build warnings.
6873 (m32r-elf): Mark as broken obsolete candidate.
6874 (x86_64-linux-gnu): Mark as buildable with -Werror.
6875 (arm-elf): Change -w to ``,'' which enables warnings but not
6878 2002-07-12 Andrew Cagney <ac131313@redhat.com>
6880 * bcache.h: Update copyright.
6881 (struct bstring, struct bcache): Move definition to "bcache.c".
6882 Replaced by opaque declaration.
6883 (bcache_xfree): Replace free_bcache.
6884 (bcache_xmalloc, bcache_memory_used): Declare.
6886 * bcache.c: Update copyright.
6887 (struct bstring, struct bcache): Moved to here from "bcache.h".
6889 (bcache_xmalloc, bcache_memory_used): New functions.
6890 (bcache_xfree): Replace function free_bcache.
6892 * Makefile.in (objfiles.o): Add $(bcache_h).
6893 (objfiles_h): Remove $(bcache_h).
6894 (symfile.o): Add $(bcache_h).
6896 * symmisc.c: Update copyright.
6897 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6898 (print_objfile_statistics): Use bcache_memory_used.
6900 * symfile.c: Include "bcache.h".
6901 (reread_symbols): Use bcache_xfree.
6902 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6903 (add_psymbol_to_list): Pass psymbol_cache by value.
6904 (add_psymbol_with_dem_name_to_list): Ditto.
6906 * objfiles.h: Update copyright.
6907 (struct bcache): Declare opaque. Do not include "bcache.h".
6908 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6910 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6912 * objfiles.c: Include "bcache.h". Update copyright.
6913 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6915 (free_objfile): Use bcache_xfree.
6917 2002-07-11 Grace Sainsbury <graces@redhat.com>
6919 * monitor.c (monitor_fetch_register): Make name a constant.
6920 (monitor_store_register): Same.
6922 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
6924 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
6925 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6926 (finish_block) For non-function blocks, hash the symbol table. For
6927 function blocks, mark the symbol table as unhashed.
6928 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6929 (msymbol_hash_iw): Likewise.
6930 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6932 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6933 (lookup_minimal_symbol): Likewise for both.
6934 * symtab.h (struct block): Add `hashtable' flag. Comment the
6936 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6937 (ALL_BLOCK_SYMBOLS): Update.
6938 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6939 (struct symbol): Add `hash_next' pointer.
6940 * symtab.c (lookup_block_symbol): Search using the hash table when
6942 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6943 (search_symbols, find_addr_symbol): Likewise.
6945 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6946 (read_dst_symtab): Likewise.
6947 * jv-lang.c (get_java_class_symtab): Likewise.
6948 * mdebugread.c: Include "gdb_assert.h".
6949 (shrink_block): Assert that the block being modified is not hashed.
6950 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6951 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6953 (dump_symtab): Recognize hashed blocks.
6954 * printcmd.c (print_frame_args): Assert that function blocks do not
6955 have hashed symbol tables.
6956 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6957 (fill_in_ada_prototype, debug_print_block): Likewise.
6958 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6960 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
6962 * stack.c (print_frame): Use result of frame_address_in_block()
6963 instead of fi->pc when evaluating symbols.
6964 (backtrace_command_1): Ditto.
6966 2002-07-11 Andrew Cagney <cagney@redhat.com>
6968 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6971 * arm-tdep.c (arm_register_name): Make return type constant.
6973 2002-07-10 Andrew Cagney <ac131313@redhat.com>
6975 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6977 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6978 * s390-tdep.c (s390_fp_regnum): Ditto.
6979 (s390_read_fp): Ditto.
6980 (s390_pop_frame): Ditto.
6981 (_initialize_s390_tdep): Ditto.
6982 * remote.c (get_remote_state): Ditto.
6983 * procfs.c (mappingflags): Ditto.
6984 * memattr.c (_initialize_mem): Ditto.
6985 * mcore-tdep.c (mcore_pop_frame): Ditto.
6986 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6987 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6988 * language.c (set_case_str): Ditto.
6989 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6990 * frv-tdep.c (new_variant): Ditto.
6991 (frv_stopped_data_address): Ditto.
6992 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6993 (context_alloc): Ditto.
6994 (frame_state_alloc): Ditto.
6995 (unwind_tmp_obstack_init): Ditto.
6996 (unwind_tmp_obstack_free): Ditto.
6997 (cfi_read_fp): Ditto.
6998 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6999 (cris_pop_frame): Ditto.
7000 * c-lang.c (scanning_macro_expansion): Ditto.
7001 (finished_macro_expansion): Ditto.
7002 (c_preprocess_and_parse): Ditto.
7003 * gdbarch.sh: Ditto.
7004 * gdbarch.h, gdbarch.c: Regenerate.
7005 * config/mn10200/tm-mn10200.h: Adjust indentation.
7006 * target.c: Adjust indentation.
7007 * symtab.h: Adjust indentation.
7008 * stabsread.h: Adjust indentation.
7009 * remote-es.c: Adjust indentation.
7010 * os9kread.c: Adjust indentation.
7012 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7014 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7015 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7017 2002-07-10 Grace Sainsbury <graces@redhat.com>
7019 * NEWS: Mention m68k, mcore multi-arching.
7020 * MAINTAINERS: Change status of m68k, mcore to reflect
7023 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7025 * valops.c (find_overload_match): Free oload_syms.
7027 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7029 Define HAVE_SYS_PROC_H if sys/proc.h exists
7030 * configure.in: Add check for sys/proc.h
7031 * config.in: Regenerate.
7032 * configure: Regenerate.
7034 2002-07-09 Grace Sainsbury <graces@redhat.com>
7036 * config/m68k/tm-m68k.h: Remove macros wrapped in
7037 #if !GDB_MULTI_ARCH.
7039 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7041 * config.in, configure: Regenerate.
7043 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7045 * dwarf2cfi.c: Include "gcore.h".
7046 (execute_stack_op): Fix implementation of the
7047 DW_OP_deref and DW_OP_deref_size operators by letting do their
7048 lookup in the target.
7050 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7052 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7053 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7056 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7058 Fix PR gdb/595, gdb/602
7059 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7060 Don't call value_cast, just read the vtable pointer; update comments
7063 2002-07-05 Grace Sainsbury <graces@redhat.com>
7065 * config/mcore/tm-mcore.h: Remove file.
7066 * config/mcore/mcore.mt: Remove definition of TM_FILE
7067 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7069 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7071 * i386bsd-tdep.c: Include "gdb_string.h".
7073 2002-07-04 Grace Sainsbury <graces@redhat.com>
7075 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7076 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7078 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7079 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7080 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7081 (RETVAL_REGNUM): Move macros from tm-mcore.h
7082 (mcore_reg_struct_has_addr): New function.
7083 (mcore_gdbarch_init): Added initializations for the macros removed
7086 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7088 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7089 traditonal string branding within the ELF header.
7091 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7093 * symtab.c (remove_params): New function.
7094 (make_symbol_overload_list): Use it instead of cplus_demangle.
7095 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7097 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7099 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7101 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7103 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7104 and tdep->sigtramp_end.
7105 * i386obsd-nat.c: New file.
7106 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7108 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7109 Don't call get_current_frame().
7111 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7113 * i386-nat.c (child_post_startup_inferior): New function
7114 calling i386_cleanup_dregs if
7115 I386_USE_GENERIC_WATCHPOINTS is defined.
7116 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7117 conditional to acknowledge that i386-nat.c has its
7118 own child_post_startup_inferior function.
7120 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7122 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7123 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7124 instead of MAX_REGISTER_RAW_SIZE.
7125 (i386_extract_return_value, i386_extract_struct_value_address):
7126 Convert to use regcache.
7127 (i386_gdbarch_init): Set max_register_raw_size and
7128 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7129 Set extract_return_value and extract_struct_value_address instead
7130 of their deprecated variants.
7132 Convert i386 target to generic dummy frames.
7133 * i386-tdep.c: Include "symfile.h".
7134 (i386_frameless_signal_p): Consider a function to be frameless if
7135 the pc points at the first instruction of the function.
7136 (i386_frame_chain): Handle (generic) call dummies.
7137 (i386_frame_saved_pc): Likewise.
7138 (i386_frame_init_saved_regs): Remove code dealing with call
7139 dummies on the stack.
7140 (i386_push_dummy_frame): Removed.
7141 (i386_call_dummy_words): Removed.
7142 (i386_fix_call_dummy): Removed.
7143 (i386_push_return_address): New function.
7144 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7145 parameter, and don't call get_current_frame.
7146 (i386_pop_frame): New function.
7147 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7148 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7149 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7150 call_dummy_length to 0, set call_dummy_words to NULL, set
7151 sizeof_call_dummy_words to 0, set fix_call_dummy to
7152 generic_fix_call_dummy, set pc_in_call_dummy to
7153 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7154 generic_push_dummy_frame, set push_return_address to
7155 i386_push_return_address and set frame_chain_valid to
7156 generic_file_frame_chain_valid.
7158 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7160 * gdbarch.sh (struct regcache): Add opaque declaration.
7161 (EXTRACT_RETURN_VALUE): New architecture method.
7162 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7163 * gdbarch.h, gdbarch.c: Regenerate.
7164 * arch-utils.c (legacy_extract_return_value): New function.
7165 * arch-utils.h (legacy_extract_return_value): Declare.
7166 * values.c (value_being_returned): Re-enable code handling
7167 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7168 deprecated_grub_regcache_for_registers call to block handling
7169 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7170 (EXTRACT_RETURN_VALUE): Do not define.
7172 2002-07-03 Grace Sainsbury <graces@redhat.com>
7174 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7175 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7176 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7177 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7178 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7179 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7180 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7181 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7182 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7183 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7184 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7185 argument so the function fits the prototype in the architecture
7187 (mcore_pop_frame): Remove argument so the function fits the
7188 prototype. Use get_current_frame instead of the argument.
7189 (mcore_push_arguments): Change type of struct_return so the
7190 function can be used in the architecture vector.
7191 (mcore_store_struct_return): Add.
7192 (mcore_frame_init_saved_regs): Add.
7193 (mcore_gdbarch_init): Add function calls to replace the macros
7194 removed from tm-mcore.h
7196 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7198 * infcmd.c (print_return_value): Remove compatibility code calling
7199 deprecated_grub_regcache_for_registers.
7201 * values.c: Include "regcache.h".
7202 (value_being_returned): Update. Use
7203 deprecated_grub_regcache_for_registers to extract the register
7205 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7206 ``struct regcache''.
7207 * Makefile.in (values.o): Add dependency on $(regcache_h).
7209 * inferior.h (run_stack_dummy): Change type of second parameter to
7210 a ``struct regcache''.
7211 * valops.c (hand_function_call): Change type of retbuf to ``struct
7212 regcache''. Allocate using regcache_xmalloc, clean using
7213 make_cleanup_regcache_xfree.
7214 * infcmd.c (run_stack_dummy): Update. Use
7215 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7217 * regcache.c (do_regcache_xfree): New function.
7218 (make_cleanup_regcache_xfree): New function.
7219 * regcache.h (make_cleanup_regcache_xfree): Declare.
7221 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7223 * event-top.c (command_line_handler): Don't read past
7224 beginning of buffer.
7226 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7228 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7230 (varobj_create): Store frame_id for root.
7231 (varobj_gen_name): Use xasprintf.
7232 (varobj_update): Save and restore frame using get_frame_id() and
7234 (create_child): Use xasprintf.
7235 (new_root_variable): Initialize frame_id.
7236 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7237 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7238 to prevent memory leak.
7240 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7242 * valops.c (hand_function_call): Move declaration of retbuf to
7243 start of function, allocate using malloc, add a cleanup but before
7244 the inf_status cleanup, cleanup the buffer. Rename local variable
7245 old_chain to inf_status_cleanup.
7247 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7249 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7251 * cli/cli-decode.c (cmd_func_p): New function.
7252 (cmd_func): New function.
7254 * command.h: Add cmd_func() and cmd_func_p().
7256 2002-07-03 Grace Sainsbury <graces@redhat.com>
7258 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7259 (REGISTER_SIZE): Remove.
7260 (MAX_REGISTER_RAW_SIZE): Remove.
7261 (REGISTER_VIRTUAL_TYPE): Remove.
7262 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7263 (REGISTER_NAME): Remove.
7264 (USE_GENERIC_DUMMY_FRAMES): Remove.
7265 (CALL_DUMMY): Remove.
7266 (CALL_DUMMY_START_OFFSET): Remove.
7267 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7268 (CALL_DUMMY_LOCATION): Remove.
7269 (FIX_CALL_DUMMY): Remove.
7270 (CALL_DUMMY_ADDRESS): Remove.
7271 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7272 (SAVE_DUMMY_FRAME_TOS): Remove.
7273 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7274 (mcore_register_virtual_type): New function.
7275 (mcore_register_byte): New function.
7276 (mcore_register_size): New function.
7277 (mcore_register_name): New function.
7278 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7279 macros removed from tm-mcore.h.
7280 (mcore_dump_tdep): Add.
7281 (_initialize_mcore_tdep): Add gdbarch_register call.
7283 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7285 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7286 frameless_look_for_prologue, such that we actually call this
7289 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7291 * frame.h (frame_address_in_block): New function.
7293 * blockframe.c (frame_address_in_block): New function extracted
7294 from get_frame_block().
7295 (get_frame_block): Use frame_address_in_block().
7296 (block_innermost_frame): Use frame_address_in_block() to match
7297 the frame pc address against the block boundaries rather than
7298 the frame pc directly. This prevents a failure when a frame pc
7299 is actually a return-address pointing immediately after the end
7302 2002-07-02 Grace Sainsbury <graces@redhat.com>
7304 * MAINTAINERS: Add self under write after approval.
7306 2002-07-02 Grace Sainsbury <graces@redhat.com>
7308 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7309 used in architecture vector. The default is
7310 m68k_local_breakpoint_from_pc.
7311 (m68k_local_breakpoint_from_pc): Add.
7312 (enum): Add register numbers from tm-m68k.h.
7313 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7315 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7316 GDB_MULTI_ARCH_PARTIAL.
7317 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7318 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7320 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7321 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7322 to enum in m68k-tdep.c
7324 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7326 * solib-osf.c (open_map): Compute the list of shared libraries
7327 loaded by the inferior, rather than the list of libraries loaded
7328 by GDB itself. Otherwise, GDB ends up reading the symbols from
7329 the wrong shared libraries...
7331 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7333 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7334 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7336 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7338 (FRAMELESS_SIGNAL): Remove function.
7339 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7340 i386_linux_saved_pc_after_call): Removed.
7341 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7342 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7343 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7345 * i386-tdep.c (i386_frameless_signal_p): New function.
7346 (i386_frame_chain): Deal with frameless signals.
7347 (i386_sigtramp_saved_sp): New function.
7348 (i386_frame_saved_pc): Deal with frameless signals.
7349 (i386_saved_pc_after_call): Make sure the correct value is
7350 returned just after entry into a sigtramp.
7351 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7352 i386fbsd4_sc_sp_offset): New variables.
7353 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7354 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7355 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7356 similiar to what we already did for sc_pc_offset.
7357 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7360 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7362 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7364 * config/i386/tm-x86-64linux.h: New.
7365 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7367 * config/i386/nm-x86-64.h: Rename to ...
7368 * config/i386/nm-x86-64linux.h: ... this one.
7369 * config/i386/x86-64linux.mh: Reflect the above change.
7371 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7373 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7374 with sigcontext_addr. Add sc_sp_offset.
7375 (i386bsd_sigtramp_saved_pc): Remove prototype.
7376 (i386bsd_sicontext_addr): Add prototype.
7377 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7378 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7379 (i386_svr4_sigtramp_saved_pc): Removed.
7380 (i386_svr4_sigcontext_addr): New function.
7381 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7382 Initialize tdep->sigcontext_addr instead. Initialize
7383 tdep->sc_pc_offset and tdep->sc_sp_offset.
7384 (i386_gdbarch_init): Likewise.
7385 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7387 (i386bsd_sigtramp_saved_pc): Remove function.
7388 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7389 Initialize tdep->sigcontext_addr instead. Initialize
7391 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7392 of tdep->sigtramp_saved_pc.
7393 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7394 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7397 * i386-tdep.c (i386_frameless_function_invocation,
7398 i386_frame_num_args, i386_frame_init_saved_regs,
7399 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7400 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7401 i386_extract_return_value, i386_store_return_value,
7402 i386_extract_struct_value_address, i386_register_virtual_type,
7403 i386_register_convertible, i386_register_convert_to_virtual,
7404 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7405 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7408 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7410 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7412 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7413 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7414 this macro. Include "value.h".
7416 2002-06-30 Aidan Skinner <aidan@velvet.net>
7418 * ada-exp.tab.c: remove as it's a generated file
7419 * ada-lex.c: remove as it's a generated file
7421 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7423 * config/i386/tm-i386.h (struct frame_info, struct
7424 frame_saved_regs, struct value, struct type): Remove forward
7427 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7428 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7429 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7430 (FILL_FPXREGSET): Define.
7432 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7434 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7435 i[3456]86-*-netbsd* case.
7436 * config/i386/tm-obsd.h: Removed.
7437 * config/i386/obsd.mt: Removed.
7438 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7440 (MH_CFLAGS): Add -DYYDEBUG=0.
7442 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7443 i386nbsd_sc_pc_offset on OpenBSD too.
7445 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7446 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7447 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7449 * i386bsd-tdep.c: Include "arch-utils.h".
7450 (i386bsd_aout_in_solib_call_trampoline): New function.
7451 (i386bsd_init_abi): Set in_solib_call_trampoline to
7452 i386bsd_aout_in_solib_call_trampoline.
7453 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7454 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7456 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7458 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7459 (struct obstack, struct bcache): Add opaque declarations.
7460 * Makefile.in (macrotab_h): Update
7462 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7464 * blockframe.c (generic_find_dummy_frame): Change return type to
7465 ``struct regcache''.
7466 (struct dummy_frame): Replace field ``registers'' with regcache, a
7467 struct regcache object.
7468 (generic_find_dummy_frame): Update.
7469 (generic_push_dummy_frame): Update. Use regcache_xfree,
7470 regcache_xmalloc and regcache_cpy.
7471 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7473 (deprecated_generic_find_dummy_frame): Update.
7474 (generic_read_register_dummy): Update. Use
7475 regcache_read_as_address.
7476 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7477 (generic_get_saved_register): Update. Use regcache_read.
7479 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7481 * Makefile.in (objfiles_h): Add $(bcache_h).
7482 * objfiles.h: Include "bcache.h".
7484 * Makefile.in (symtab_h): Remove $(bcache_h).
7485 * symtab.h: Do not include "bcache.h".
7487 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7489 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7490 generic_func_frame_chain_valid.
7492 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7494 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7495 * config/i386/tm-fbsd.h: Likewise.
7497 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7499 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7500 generic_unwind_get_saved_register.
7502 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7504 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7505 * regcache.c (supply_register): Add missing argument to
7506 register_buffer call.
7508 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7510 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7511 Solaris /bin/grep does not not like it. From Peter Schauer.
7513 2002-06-26 Tom Tromey <tromey@redhat.com>
7515 * command.h (add_setshow_cmd): Declare.
7516 (add_setshow_cmd_full): Declare.
7517 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7518 returns void. Use add_setshow_cmd_full.
7519 (add_setshow_cmd_full): New function.
7520 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7521 (add_setshow_boolean_cmd): Likewise.
7523 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7525 * config/vax/tm-vax.h: Protect from multiple inclusion.
7526 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7527 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7528 * config/vax/tm-vaxbsd.h: ...here. New file.
7529 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7531 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7533 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7534 (BELIEVE_PCC_PROMOTION): Remove.
7535 (AP_REGNUM): Move to...
7536 * config/vax/nm-vax.h: ...here.
7537 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7538 (vax_breakpoint_from_pc): New function.
7539 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7540 and gdbarch_believe_pcc_promotion.
7542 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7544 * Makefile.in (vax_tdep_h): Define.
7545 (vax-tdep.o): Use $(vax_tdep_h).
7546 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7547 (vax_dump_tdep): New function.
7548 (_initialize_vax_tdep): Register vax_dump_tdep.
7549 * vax-tdep.h: Include osabi.h.
7550 (struct gdbarch_tdep): New.
7552 2002-06-26 Andrew Cagney <cagney@redhat.com>
7554 * frame.h (deprecated_generic_find_dummy_frame): Rename
7555 generic_find_dummy_frame.
7556 * blockframe.c (generic_find_dummy_frame): Make static.
7557 (deprecated_generic_find_dummy_frame): New function.
7558 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7559 generic_find_dummy_frame with deprecated_find_dummy_frame.
7560 (sh64_nofp_frame_init_saved_regs): Ditto.
7561 (sh_fp_frame_init_saved_regs): Ditto.
7562 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7563 (s390_frame_chain): Ditto.
7564 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7566 2002-06-26 Grace Sainsbury <graces@redhat.com>
7568 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7569 gdbarch vector are at the top.
7571 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7572 (FRAME_ARGS_ADDRESS): Remove.
7573 (FRAME_LOCALS_ADDRESS): Remove.
7574 (FRAME_NUM_ARGS): Remove.
7575 (FRAME_ARGS_SKIP): Remove.
7576 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7577 (m68k_gdbarch_init): Add gdbarch initializations for macros
7578 undefined in tm-m68k.h
7580 2002-06-26 Grace Sainsbury <graces@redhat.com>
7582 * monitor.h: Add the function regname to monitor_ops
7583 structure. This way NUM_REGS does not have to be a constant.
7584 * monitor.c (monitor_fetch_register): Added support for regname
7585 function. The function is called if the array regnames is NULL.
7586 (monitor_store_register): Same.
7587 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7589 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7590 cpu32bug_cmds.regname to point to new function.
7591 * abug-rom.c (abug_regname): Same as above.
7592 (init_abug_cmds): Same.
7593 * dbug-rom.c (dbug_regname): Same as above.
7594 (init_dbug_cmds): Same.
7595 * remote-est.c (est_regname): Same.
7596 (init_est_cmds): Same.
7597 * rom68k-rom.c (rom68k_regname): Same.
7598 (init_rom68k_cmds): Same.
7600 2002-06-25 Tom Tromey <tromey@redhat.com>
7602 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7604 2002-06-25 Andrew Cagney <cagney@redhat.com>
7606 * infrun.c (stop_registers): Change variable's type to ``struct
7608 (xmalloc_inferior_status): Delete function.
7609 (free_inferior_status): Delete function.
7610 (normal_stop): Use regcache_cpy.
7611 (struct inferior_status): Change type of fields ``stop_registers''
7612 and ``registers'' to ``struct regcache''.
7613 (write_inferior_status_register): Use regcache_write.
7614 (save_inferior_status): Instead of calling
7615 xmalloc_inferior_status, allocate the inf_status buffer directly.
7616 Use regcache_dup_no_passthrough and regcache_dup to save the
7618 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7619 Replace the stop_registers regcache instead of overriding it. Use
7620 regcache_xfree. Instead of calling free_inferior_status, xfree
7621 the buffer directly.
7622 (discard_inferior_status): Use regcache_xfree. Instead of calling
7623 free_inferior_status, xfree the buffer directly.
7624 (build_infrun): Use regcache_xmalloc.
7625 (_initialize_infrun): Delete redundant call to build_infrun.
7627 * Makefile.in (infcmd.o): Add $(regcache_h).
7629 * infcmd.c: Include "regcache.h".
7630 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7631 obtain the address of `stop_registers' register buffer.
7632 (print_return_value): Ditto.
7634 * inferior.h (struct regcache): Add opaque declaration.
7635 (stop_registers): Change variable's declared type to ``struct
7638 2002-06-24 Tom Tromey <tromey@redhat.com>
7640 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7641 * target.c (initialize_targets): Fixed typo in
7642 trust-readonly-sections `show' documentation.
7644 * main.c: Marked all strings with _().
7646 2002-06-24 Don Howard <dhoward@redhat.com>
7648 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7649 that means max CORE_ADDR+1.
7650 (lookup_mem_region): Ditto.
7651 (mem_info_command): Ditto.
7653 2002-06-24 Grace Sainsbury <graces@redhat.com>
7655 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7656 (REGISTER_BYTES_OK): Remove.
7657 (REGISTER_BYTES): Remove.
7658 (STORE_STRUCT_RETURN): Remove.
7659 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7660 (STORE_RETURN_VALUE): Remove.
7661 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7662 (FRAME_CHAIN): Remove.
7663 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7664 (FRAME_SAVED_PC): Remove.
7665 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7666 (m68k_store_struct_return): Add.
7667 (m68k_deprecated_extract_return_value): Add.
7668 (m68k_deprecated_extract_struct_value_address): Add.
7669 (m68k_store_return_value): Add.
7670 (m68k_frame_chain): Add.
7671 (m68k_frameless_function_invocation): Add.
7672 (m68k_frame_saved_pc): Add.
7673 (m68k_gdbarch_init): added set_gdbarch calls for new
7674 functions and deleted macros.
7676 2002-06-23 Tom Tromey <tromey@redhat.com>
7678 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7679 (ALLDEPFILES): Likewise.
7680 (udiheaders): Removed.
7681 (udip2soc.o): Likewise.
7682 (udi2go32.o): Likewise.
7684 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7686 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7688 * infrun.c (_initialize_infrun): Delete unnecessary call to
7691 * regcache.h: Update comments describing the regcache_cpy family
7693 (regcache_save, regcache_restore): Delete declaration.
7694 (regcache_save_no_passthrough): Delete declaration.
7695 (regcache_restore_no_passthrough): Delete declaration.
7696 * regcache.c (regcache_save): Delete function.
7697 (regcache_save_no_passthrough): Delete function.
7698 (regcache_restore): Delete function.
7699 (regcache_restore_no_passthrough): Delete function.
7701 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7703 * config/m68k/tm-m68k.h: Fix typo.
7704 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7705 (m68k_frame_init_saved_regs): Declare.
7707 2002-06-21 Jim Blandy <jimb@redhat.com>
7709 Remove some vestiges of Harris 88k support.
7710 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7711 register numbering quirk.
7712 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7713 odd symbols occurring in Harris 88k ELF targets.
7715 2002-06-21 Tom Tromey <tromey@redhat.com>
7717 * gdb_locale.h: New file.
7718 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7719 (defs_h): Added gdb_locale.h.
7720 * configure, config.in: Rebuilt.
7721 * configure.in (PACKAGE): Define.
7722 * defs.h: Include gdb_locale.h.
7723 * main.c (captured_main): Call setlocale, bindtextdomain,
7726 2002-06-21 Dave Brolley <brolley@redhat.com>
7728 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7729 * config/frv/frv.mt: New file.
7730 * config/frv/tm-frv.h: New file.
7731 * configure.tgt: Support frv-*-*.
7732 * Makefile.in (frv-tdep.o): New target.
7733 * frv-tdep.c: New file.
7734 * NEWS: Mention frv.
7736 2002-06-21 Dave Brolley <brolley@redhat.com>
7738 * MAINTAINERS: Add self to "Write After Approval" list.
7740 2002-06-21 Grace Sainsbury <graces@redhat.com>
7742 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7743 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7744 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7745 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7746 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7748 * m68k-tdep.c: Include arch-utils.h
7749 (m68k_register_raw_size): Add.
7750 (m68k_register_virtual_size): Add.
7751 (m68k_register_virtual_type): Add.
7752 (m68k_register_name): Add.
7753 (m68k_stack_align): Add.
7754 (m68k_register_byte): Add.
7755 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7758 2002-06-21 Grace Sainsbury <graces@redhat.com>
7760 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7761 m68k_find_saved_regs.
7762 (m68k_pop_frame): Removed saved_regs structure, and replaced
7763 references to it with frame->saved_regs.
7764 (m68k_gdbarch_init): Added function calls to initialize the
7766 (m68k_fix_call_dummy): Add.
7767 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7768 (CALL_DUMMY): Remove.
7769 (CALL_DUMMY_LENGTH): Remove.
7770 (CALL_DUMMY_START_OFFSET): Remove.
7771 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7772 (FIX_CALL_DUMMY): Remove.
7773 (PUSH_DUMMY_FRAME): Remove.
7774 (POP_FRAME): Remove.
7776 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
7778 * parse.c (parse_fprintf): New function used to avoid calls to
7779 fprintf in bison parser generated debug code.
7780 * parser-defs.h: Declaration of new parse_fprintf function.
7781 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7782 Set YYDEBUG to 1 by default.
7783 Set YYFPRINTF as parse_fprintf.
7785 2002-06-21 Michal Ludvig <mludvig@suse.cz>
7787 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7789 (pointer_encoding, enum ptr_encoding): New.
7790 (execute_cfa_program): Take care about pointer encoding.
7791 (dwarf2_build_frame_info): Only call parse_frame_info for
7792 .debug_frame and .eh_frame.
7793 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7794 fixed augmentation handling, added relative addressing,
7795 ignore duplicate FDEs. Added comments.
7796 * dwarf2cfi.c: Reindented.
7798 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
7800 * event-top.c (command_handler): Don't use space_at_cmd_start
7801 unless there is sbrk() on the host. Assign time and space data
7802 to union fields of the appropriate length.
7804 2002-06-20 Michal Ludvig <mludvig@suse.cz>
7806 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7807 x86_64_register_name. Return type changed to 'const char *'.
7808 (x86_64_register_name2nr): Rename to x86_64_register_number.
7809 (x86_64_gdbarch_init): Update to reflect the change.
7810 * x86-64-tdep.h: Ditto.
7811 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7812 (supply_fpregset): Ditto.
7814 2002-06-19 Andrew Cagney <cagney@redhat.com>
7816 * regcache.h: Update copyright.
7817 (struct regcache, struct gdbarch): Add opaque declarations.
7818 (current_regcache): Declare global variable.
7819 (regcache_read, regcache_write): Add gdbarch parameter.
7820 (regcache_save, regcache_save_no_passthrough)
7821 (regcache_restore, regcache_restore_no_passthrough)
7822 (regcache_dup, regcache_dup_no_passthrough)
7823 (regcache_cpy, regcache_cpy_no_passthrough)
7824 (deprecated_grub_regcache_for_registers)
7825 (deprecated_grub_regcache_for_register_valid)
7826 (regcache_valid_p): Add function declarations.
7828 * regcache.c: Update copyright.
7829 (regcache_descr_handle): New global variable.
7830 (struct regcache_descr): Define.
7831 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7832 (regcache_descr, xfree_regcache_descr): New functions.
7833 (struct regcache): Define.
7834 (regcache_xmalloc, regcache_xfree): New functions.
7835 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7836 (regcache_dup, regcache_dup_no_passthrough): New functions.
7837 (regcache_valid_p, regcache_read_as_address): New functions.
7838 (deprecated_grub_regcache_for_registers): New function.
7839 (deprecated_grub_regcache_for_register_valid): New function.
7840 (current_regcache): New global variable.
7841 (register_buffer): Add regcache parameter. Update calls.
7842 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7843 (read_register_gen, write_register_gen): Update register_buffer
7844 call. Test for legacy_p instead of gdbarch_register_read_p or
7845 gdbarch_register_write_p.
7846 (regcache_collect): Update register_buffer call.
7847 (build_regcache): Rewrite. Use deprecated grub functions.
7848 (regcache_save, regcache_save_no_passthrough): New functions.
7849 (regcache_restore, regcache_restore_no_passthrough): New
7851 (_initialize_regcache): Create the regcache_data_handle. Swap
7852 current_regcache global variable.
7854 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7855 parameter to regcache_read and regcache_write calls.
7856 (sh4_register_read): Ditto.
7857 (sh64_pseudo_register_read): Ditto.
7858 (sh64_register_read): Ditto.
7859 (sh_pseudo_register_write): Ditto.
7860 (sh4_register_write): Ditto.
7861 (sh64_pseudo_register_write): Ditto.
7862 (sh64_register_write): Ditto.
7864 * defs.h (XCALLOC): Define.
7866 2002-06-19 Grace Sainsbury <graces@redhat.com>
7868 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7869 * m68k-tdep.c (m68k_gdbarch_init): Added.
7870 (m68k_dump_tdep): Added.
7872 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7874 * ada-lang.c (fill_in_ada_prototype): Update comment.
7876 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
7878 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7880 (mips_abi_string, mips_abi_strings): New.
7881 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7882 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7883 tdep->mips_abi_string. Honor mips_abi_string. Default to
7884 O32 if no ABI is found.
7885 (mips_dump_tdep): Use mips_abi_strings.
7886 (mips_abi_update): New function.
7887 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7888 ``set mips abi'' and ``show mips abi''. Check the size of
7891 2002-06-19 Andrew Cagney <cagney@redhat.com>
7893 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7896 2002-06-18 Joel Brobecker <brobecker@gnat.com>
7898 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7899 current frame using only the first stack size adjustment. All
7900 subsequent size adjustments are not considered to be part of
7901 the "static" part of the current frame.
7902 Compute the address of the saved registers relative to the
7903 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7904 in use in this frame.
7906 2002-06-18 Don Howard <dhoward@redhat.com>
7908 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7909 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
7910 suggesting this solution.
7912 2002-06-18 Andrew Cagney <ac131313@redhat.com>
7914 * config/romp/xm-rtbsd.h: Delete file.
7915 * config/romp/rtbsd.mh: Delete file.
7917 2002-06-18 Keith Seitz <keiths@redhat.com>
7919 * breakpoint.c (condition_command): Post breakpoint_modify
7920 when a condition is added to an existing breakpoint.
7921 (commands_command): Likewise for commands.
7922 (set_ignore_count): Likewise for ignore counts.
7923 If no tty, do not simply return, still need to send event
7925 (ignore_command): Only print a newline if the command came
7927 Don't call breakpoints_changed, since this is now properly
7928 handled by set_ignore_count.
7930 2002-06-18 Andrew Cagney <cagney@redhat.com>
7932 * MAINTAINERS: Note that cris-elf target can be compiled with
7934 * cris-tdep.c (cris_register_name): Make return type constant.
7935 (cris_breakpoint_from_pc): Ditto.
7937 2002-06-18 Michal Ludvig <mludvig@suse.cz>
7939 * frame.h (struct frame_info): Change type of context to
7942 2002-06-17 Andrew Cagney <cagney@redhat.com>
7944 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7946 * gdbarch.h, gdbarch.c: Regenerate.
7947 * config/mips/tm-mips.h (mips_register_name): Update.
7948 * i386-tdep.h (i386_register_name): Update.
7949 * mips-tdep.c (mips_register_name): Update
7950 * alpha-tdep.c (alpha_register_name): Update.
7951 * arch-utils.c (legacy_register_name): Update.
7952 * arch-utils.h (legacy_register_name): Update.
7953 * avr-tdep.c (avr_register_name): Update.
7954 * ia64-tdep.c (ia64_register_name): Update.
7955 * i386-tdep.c (i386_register_name): Update.
7956 * sparc-tdep.c (sparc32_register_name): Update.
7957 (sparc64_register_name): Update.
7958 (sparclite_register_name): Update.
7959 (sparclet_register_name): Update.
7960 * sh-tdep.c (sh_generic_register_name): Update.
7961 (sh_sh_register_name): Update.
7962 (sh_sh3_register_name): Update.
7963 (sh_sh3e_register_name): Update.
7964 (sh_sh_dsp_register_name): Update.
7965 (sh_sh3_dsp_register_name): Update.
7966 (sh_sh4_register_name): Update.
7967 (sh_sh64_register_name): Update.
7968 * s390-tdep.c (s390_register_name): Update.
7969 * rs6000-tdep.c (rs6000_register_name): Update.
7970 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7971 (ns32k_register_name_32382): Update.
7972 * d10v-tdep.c (d10v_ts2_register_name): Update.
7973 (d10v_ts3_register_name): Update.
7974 * xstormy16-tdep.c (xstormy16_register_name): Update.
7975 * vax-tdep.c (vax_register_name): Update.
7976 * v850-tdep.c (v850_register_name): Update.
7977 * m68hc11-tdep.c (m68hc11_register_name): Update.
7978 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7979 (am33_register_name): Update.
7981 2002-06-17 Grace Sainsbury <graces@redhat.com>
7983 * m68k-tdep.c: Reindented.
7985 2002-06-17 Andrew Cagney <ac131313@redhat.com>
7987 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7988 list of predefined types.
7990 2002-06-16 Mark Kettenis <kettenis@gnu.org>
7992 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7993 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7994 REGISTER_CONVERT_TO_RAW): Remove defines.
7995 (i386_register_virtual_type, i386_register_convertible,
7996 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7998 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7999 macros mentioned above.
8001 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8002 (i386lynx_saved_pc_after_call): Remove prototype.
8003 * i386ly-tdep.c: Include "i386-tdep.h".
8004 (i386lynx_saved_pc_after_call): Make static. Use
8005 read_memory_nobpt instead of read_memory. Use
8006 read_memory_unsigned_integer instead of read_memory_integer.
8007 (i386lynx_init_abi): New function.
8008 (i386lynx_coff_osabi_sniffer): New function.
8009 (_initialize_i386bsd_tdep): New function.
8011 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8012 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8013 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8014 (i386_fix_call_dummy): Remove prototype.
8015 * i386-tdep.c (i386_call_dummy_words): New variable.
8016 (i386_gdbarch_init): Adjust for removal of the
8017 macros mentioned above.
8019 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8021 * command.h (add_setshow_auto_boolean_cmd): Replace
8022 add_set_auto_boolean_cmd.
8023 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8024 add_set_auto_boolean_cmd.
8025 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8026 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8027 mask-address'' command.
8028 (show_mask_address): Add cmd parameter.
8029 * remote.c (add_packet_config_cmd): Update. Change type of
8030 set_func and show_func to cmd_sfunc_ftype.
8031 (_initialize_remote): Update `set remote Z-packet'
8032 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8033 (show_remote_protocol_e_packet_cmd): Ditto.
8034 (show_remote_protocol_E_packet_cmd): Ditto.
8035 (show_remote_protocol_P_packet_cmd): Ditto.
8036 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8037 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8038 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8039 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8040 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8041 (show_remote_protocol_Z_packet_cmd): Ditto.
8042 (show_remote_protocol_binary_download_cmd): Ditto.
8043 (show_remote_cmd): Pass NULL to all of above.
8045 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8047 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8048 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8049 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8050 POP_FRAME): Remove defines.
8051 (i386_push_arguments, i386_store_struct_return,
8052 i386_extract_return_value, i386_store_return_value,
8053 i386_extract_struct_value_address, i386_push_dummy_frame,
8054 i386_pop_frame): Renove prototypes.
8055 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8056 macros mentioned above.
8058 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8060 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8061 add_set_boolean_cmd.
8062 (add_setshow_cmd): New function.
8063 * command.h (add_setshow_boolean_cmd): Replace
8064 add_set_boolean_cmd.
8065 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8066 and ``set rdiromatzero''.
8067 * maint.c (_initialize_maint_cmds): Update commented out code.
8068 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8069 * target.c (initialize_targets): Update `set
8070 trust-readonly-sections'.
8071 * remote.c (_initialize_remote): Update `set remotebreak'.
8073 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8075 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8076 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8077 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8078 fit into multi-arch framework.
8079 (i386_breakpoint_from_pc): New function.
8080 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8083 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8084 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8085 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8086 (i386_frameless_function_invocation, i386_frame_num_args,
8087 i386_frame_init_saved_regs): Remove prototypes.
8088 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8089 macros mentioned above.
8091 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8093 * cli/cli-decode.c (set_cmd_cfunc): Update.
8094 (set_cmd_sfunc): Update.
8095 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8096 (set_cmd_sfunc, set_cmd_cfunc): Update.
8097 * cli/cli-decode.h: Update.
8099 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8101 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8102 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8104 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8106 * defs.h (auto_boolean): Declare enum.
8107 * command.h (cmd_auto_boolean): Delete enum.
8108 * mips-tdep.c (mask_address_var): Update.
8109 (mips_mask_address_p): Update.
8110 (show_mask_address): Update.
8111 * remote.c (struct packet_config): Update.
8112 (update_packet_config): Update.
8113 (show_packet_config_cmd): Update.
8114 (packet_ok): Update.
8115 (add_packet_config_cmd): Update.
8116 (_initialize_remote):
8117 * command.h: Update.
8118 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8119 (do_setshow_command): Update.
8120 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8121 * cli/cli-decode.h: Update.
8123 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8125 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8126 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8127 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8128 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8129 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8130 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8132 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8133 list of DJGPP COFF targets.
8135 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8136 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8137 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8138 (FP0_REGNUM): Remove define.
8139 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8140 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8141 (i386_register_virtual_size): Remove protoype.
8142 * i386-tdep.c (i386_register_virtual_size): Removed.
8143 (i386_extract_return_value, i386_store_return_value): Use
8144 FP0_REGNUM instead of NUM_FREGS to determine whether the
8145 floating-point registers are available.
8146 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8147 Adjust for removal of macros mentioned above.
8149 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8151 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8153 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8155 (supply_gregset, fill_gregset): Remove use of register keyword and
8156 remove declaration for regmap. Use I386_NUM_GREGS instead of
8157 NUM_REGS and NUM_FREGS.
8158 (FPREGSET_FSAVE_OFFSET): Remove.
8159 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8160 NUM_FREGS to determine whether the floating-point registers are
8163 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8164 gnu_store_registers): Replace usage of NUM_GREGS with
8167 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8168 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8169 usage of NUM_GREGS with I386_NUM_GREGS.
8171 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8173 * i386bsd-nat.c: Include "i386-tdep.h".
8174 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8177 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8178 and associated comment. They no longer make any sense, since we
8179 don't use this file anymore on Linux.
8181 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8182 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8183 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8184 elements in these arrays.
8185 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8188 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8190 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8191 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8193 2002-06-14 Andrew Cagney <cagney@redhat.com>
8195 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8196 EXTRACT_RETURN_VALUE.
8197 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8198 EXTRACT_STRUCT_VALUE_ADDRESS.
8199 * gdbarch.h, gdbarch.c: Regenerate.
8201 * values.c (value_being_returned): Handle
8202 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8203 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8205 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8206 * arm-tdep.c (arm_gdbarch_init): Update.
8207 * avr-tdep.c (avr_gdbarch_init): Update.
8208 * cris-tdep.c (cris_gdbarch_init): Update.
8209 * d10v-tdep.c (d10v_gdbarch_init): Update.
8210 * ia64-tdep.c (ia64_gdbarch_init): Update.
8211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8212 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8213 * s390-tdep.c (s390_gdbarch_init): Update.
8214 * sh-tdep.c (sh_gdbarch_init): Update.
8215 * s390-tdep.c (s390_gdbarch_init): Update.
8216 * sparc-tdep.c (sparc_gdbarch_init): Update.
8217 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8218 * v850-tdep.c (v850_gdbarch_init): Update.
8219 * vax-tdep.c (vax_gdbarch_init): Update.
8220 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8223 * config/arc/tm-arc.h: Update.
8224 * config/d30v/tm-d30v.h: Update.
8225 * config/fr30/tm-fr30.h: Update.
8226 * config/h8300/tm-h8300.h: Update.
8227 * config/h8500/tm-h8500.h: Update.
8228 * config/i386/tm-i386.h: Update.
8229 * config/i386/tm-ptx.h: Update.
8230 * config/i386/tm-symmetry.h: Update.
8231 * config/i960/tm-i960.h: Update.
8232 * config/m32r/tm-m32r.h: Update.
8233 * config/m68k/tm-delta68.h: Update.
8234 * config/m68k/tm-linux.h: Update.
8235 * config/m68k/tm-m68k.h: Update.
8236 * config/m88k/tm-m88k.h: Update.
8237 * config/mcore/tm-mcore.h: Update.
8238 * config/mips/tm-mips.h: Update.
8239 * config/mn10200/tm-mn10200.h: Update.
8240 * config/pa/tm-hppa.h: Update.
8241 * config/pa/tm-hppa64.h: Update.
8242 * config/sparc/tm-sp64.h: Update.
8243 * config/sparc/tm-sparc.h: Update.
8244 * config/sparc/tm-sparclet.h: Update.
8245 * config/z8k/tm-z8k.h: Update.
8247 2002-06-14 Andrew Cagney <cagney@redhat.com>
8249 * Makefile.in (i386_linux_tdep_h): Define.
8250 (i386_tdep_h, i387_tdep_h): Define.
8251 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8252 $(i386_tdep_h) and $(i387_tdep_h).
8253 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8255 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8257 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8258 Already covered by the default.
8260 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8261 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8262 (i386_gdbarch_init): Initialize long_double_format and long_double
8265 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8266 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8268 * config/i386/i386sol2.mh: ... here.
8269 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8270 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8271 (SIGCONTEXT_PC_OFFSET): Remove define.
8272 (IN_SIGTRAMP): Remove define.
8273 * i386-sol2-tdep.c: New file.
8275 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8276 * config/i386/tm-i386nw.h: Removed.
8278 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8279 USE_STRUCT_CONVENTION): Remove defines.
8280 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8281 (get_longjmp_target): Remove prototype.
8282 (IN_SIGTRAMP): Remove define.
8283 (i386bsd_in_sigtramp): Remove prototype.
8284 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8285 function. Update comment accordingly
8286 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8287 (FRAME_SAVED_PC): Remove define.
8288 (i386bsd_frame_saved_pc): Remove prototype.
8289 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8290 GET_LONGJMP_TARGET): Remove defines.
8291 (get_longjmp_target): Remove prototype.
8292 (IN_SIGTRAMP): Remove define.
8293 (i386bsd_in_sigtramp): Remove prototype.
8294 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8295 function. Update comment accordingly
8296 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8297 (FRAME_SAVED_PC): Remove define.
8298 (i386bsd_frame_saved_pc): Remove prototype.
8299 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8301 (USE_STRUCT_CONVENTION): Remove prototype.
8302 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8304 (_initialize_i386bsd_nat): Revise logic to determine some
8305 constants at compile time when compiling a native GDB. Warn if
8306 things don't match up with what we expect.
8307 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8309 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8310 to use date stored in `struct gdbarch_tdep'.
8311 (i386bsd_sigcontext_offset): Remove varaible.
8312 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8313 stored in `struct gdbarch_tdep'.
8314 (i386bsd_frame_saved_pc): Make static.
8315 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8316 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8317 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8318 i386fbsd4_sc_pc_offset): New variables.
8319 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8320 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8322 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8324 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8325 Modify the value of i386fbsd_sigtramp_start and
8326 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8327 i386fbsd_sigtramp_end.
8328 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8331 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8332 define to i386-linux-tdep.h.
8333 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8334 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8336 (i386_linux_register_name, i386_linux_register_byte,
8337 i386_linux_register_raw_size): Remove prototypes.
8338 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8339 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8340 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8341 TARGET_WRITE_PC): Remove defines.
8342 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8343 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8344 i386_linux_write_pc): Remove prototypes.
8345 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8346 (get_longjmp_target): Remove prototype.
8347 * i386-linux-tdep.h: New file.
8348 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8349 * i386-linux-tdep.c: Include "i386-tdep.h" and
8350 "i386-linux-tdep.h".
8351 (i386_linux_register_name, i386_linux_register_byte,
8352 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8353 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8355 (i386_linux_init_abi): New function.
8356 (_initialize_i386_linux_tdep): New function.
8358 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8359 (i386_saved_pc_after_call): Remove prototype.
8360 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8361 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8362 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8363 (i386_register_name, i386_stab_reg_to_regnum,
8364 i386_dwarf_reg_to_regnum): Remove prototypes.
8365 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8366 SIZEOF_SSE_REGS): Remove defines.
8367 (REGISTER_BYTES): Remove define.
8368 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8369 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8370 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8371 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8372 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8373 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8374 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8375 (get_longjmp_target): Remove prototype.
8376 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8377 (sigtramp_saved_pc): Remove define.
8378 (i386v4_sigtramp_saved_pc): Remove prototype.
8379 * config/i386/tm-go32.h (FRAME_CHAIN,
8380 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8381 (i386go32_frame_saved_pc): Remove prototype.
8382 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8383 (get_longjmp_target): Remove prototype.
8384 * i386-tdep.h: Include "osabi.h".
8385 (enum i386_abi): Removed.
8386 (enum struct_return): New enum.
8387 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8388 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8389 sc_pc_offset members.
8390 (i386_gdbarch_register_os_abi): Remove prototype.
8391 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8392 I386_SSE_NUM_REGS): New defines.
8393 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8394 I386_SSE_SIZEOF_REGS): New defines.
8395 (i386_register_name, i386_register_byte, i386_register_raw_size):
8397 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8398 (i386bsd_sigtramp_saved_pc): New prototype.
8399 * i386-tdep.c: Don't include "elf-bfd.h".
8400 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8401 i386_frame_chain, i386_saved_pc_after_call): Make static.
8402 (i386_frame_saved_pc): Rewrite to call architecture dependent
8403 function to deal with signal handlers. Make static.
8404 (i386go32_frame_saved_pc): Removed.
8405 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8407 (i386_get_longjmp_target): New function.
8408 (default_struct_convention, pcc_struct_convention,
8409 reg_struct_convention, valid_conventions, struct_convention): New
8411 (i386_use_struct_convention): New function.
8412 (i386v4_sigtramp_saved_pc): Renamed to
8413 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8414 (i386_pc_in_sigtramp): New function.
8415 (i386_abi_names): Removed.
8416 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8417 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8419 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8420 i386_gdbarch_register_os_abi): Removed.
8421 (struct i386_abi_handler): Removed.
8422 (i386_abi_handler_list): Removed.
8423 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8425 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8426 i386_nw_init_abi): New functions.
8427 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8428 Use set_gdbarch_xxx() calls instead of relying on macros for a
8430 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8431 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8432 Register the various architecture variants defined in this file.
8434 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8436 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8437 (struct main_type): Remove arg_types member. Update comments for
8439 (TYPE_ARG_TYPES): Remove.
8440 (TYPE_FN_FIELD_ARGS): Update.
8441 (smash_to_method_type): Update prototype.
8443 * c-typeprint.c (cp_type_print_method_args): Take method type
8444 instead of argument list. Use new argument layout. Simplify.
8445 (c_type_print_args): Use new argument layout. Simplify.
8446 (c_type_print_base): Update call to cp_type_print_method_args.
8447 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8448 argument; use die->type instead. Update call to
8449 smash_to_method_type.
8450 (read_structure_scope): Update call to dwarf2_add_member_fn.
8451 * gdbtypes.c (allocate_stub_method): Update comment.
8452 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8453 Use new argument layout.
8454 (check_stub_method): Use new argument layout. Don't count
8455 void as an argument.
8456 (print_arg_types): Update comments. Use new argument layout.
8457 (recursive_dump_type): Don't print arg_types member.
8458 * hpread.c (hpread_read_struct_type): Use new argument layout.
8459 (fixup_class_method_type): Likewise.
8460 (hpread_type_lookup): Likewise.
8461 * stabsread.c (read_type): Update calls to read_args and
8462 smash_to_method_type.
8463 (read_args): Use new argument layout. Simplify.
8464 * valops.c (typecmp): Use new argument layout. Update parameters
8465 and comments. Simplify.
8466 (hand_function_call): Use new argument layout.
8467 (search_struct_method): Update call to typecmp.
8468 (find_overload_match): Use new argument layout.
8470 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8472 * NEWS: Mention multithreaded debug support for gdbserver.
8474 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8476 * MAINTAINERS: Mention NEWS.
8478 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8480 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8481 (struct mips_objfile_private, compare_pdr_entries): New.
8482 (non_heuristic_proc_desc): Read the ".pdr" section if it
8485 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8487 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8488 (arm_debug): New static variable.
8489 (_initialize_arm_tdep): Add ``set debug arm'' command.
8491 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8493 * Makefile.in (sim_arm_h): Define.
8494 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8495 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8496 (arm_register_sim_regno): New function, map an internal REGNUM
8497 onto a simulator register number.
8498 (arm_gdbarch_init): Set register_sim_regno.
8500 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8502 * MAINTAINERS: Add self.
8504 2002-06-11 Jim Blandy <jimb@redhat.com>
8506 * source.c (source_info): Mention whether the symtab has
8507 information about preprocessor macros.
8509 Call the command `info macro', not `show macro'.
8510 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8512 (_initialize_macrocmd): Register `info_macro_command' in
8513 `infolist', not `showlist'.
8515 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8517 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8518 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8519 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8520 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8521 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8523 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8524 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8525 (_initialize_mips_tdep): Remove dead code.
8526 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8527 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8528 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8529 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8530 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8531 MIPS_LAST_FP_ARG_REGNUM): Remove.
8533 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8535 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8536 (unwind_tmp_obstack_free, parse_frame_info)
8537 (update_context, cfi_read_fp, cfi_write_fp)
8538 (cfi_frame_chain, cfi_init_extra_frame_info)
8539 (cfi_virtual_frame_pointer): Use the above function.
8540 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8542 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8544 * v850-tdep.c (v850_type_is_scalar): New function.
8545 (v850_use_struct_convention): Match current gcc implementation
8546 as close as possible.
8547 (v850_push_arguments): Fix stack_offset handling. Don't write
8548 struct_addr into register. This is done by v850_store_struct_return.
8549 (v850_extract_return_value): Care for structs.
8550 (v850_store_return_value): Ditto.
8551 (v850_store_struct_return): Actually write address.
8553 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8555 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8556 without debug information too.
8558 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8560 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8561 Make multi-arch pure.
8562 * gdbarch.h, gdbarch.c: Re-generate.
8563 * arm-tdep.c (arm_print_float_info): Update.
8564 * arch-utils.h (default_print_float_info): Update.
8565 * arch-utils.c (default_print_float_info): Update.
8566 * infcmd.c (float_info): Update call.
8568 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8570 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8571 the front of the initialize list.
8573 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8575 * infrun.c (struct inferior_status): Replace fields
8576 selected_frame_address and selected_level with field
8578 (save_inferior_status): Update. Use get_frame_id.
8579 (struct restore_selected_frame_args): Delete.
8580 (restore_selected_frame): Update. Use frame_find_by_id.
8581 (restore_inferior_status): Update.
8583 * breakpoint.h (struct breakpoint): Change type of
8584 watchpoint_frame to frame_id.
8585 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8586 call to get_current_frame.
8587 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8589 (watchpoint_check): Use frame_find_by_id.
8591 * frame.h (record_selected_frame): Delete declaration.
8592 * stack.c (record_selected_frame): Delete function.
8594 * frame.h (struct frame_id): Define.
8595 (get_frame_id): Declare.
8596 (frame_find_by_id): Declare.
8597 * frame.c (frame_find_by_id): New function.
8598 (get_frame_id): New function.
8600 2002-06-10 Andrey Volkov <avolkov@transas.com>
8602 * ser-e7kpc.c: Fix duplicated define and call of
8603 _initialize_ser_e7000pc
8605 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8607 * signals/signals.c (target_signal_from_host): Fix #ifdef
8609 (do_target_signal_to_host): Likewise.
8611 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8613 * mips-tdep.c (mips_find_abi_section): New function.
8614 (mips_gdbarch_init): Call it.
8616 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8618 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8619 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8620 after Andrew's 2002-06-08 gdbarch change.
8622 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8624 * i386-linux-nat.c (suppy_gregset): Don't supply
8625 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8627 (fill_gregset): Don't fetch it under the same circumstances.
8629 2002-06-09 Andrew Cagney <cagney@redhat.com>
8631 * Makefile.in (callback_h): Define.
8632 (remote_sim_h): Update path to remote-sim.h.
8633 (remote-rdp.o): Add $(callback_h).
8634 (remote-sim.o): Use $(callback_h).
8635 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8636 * remote-rdp.c: Include "gdb/callback.h".
8638 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8640 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8641 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8643 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8645 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8646 * rdi-share/serpardr.c: Ditto.
8647 * rdi-share/unixcomm.c: Ditto.
8648 * rdi-share/serdrv.c: Ditto.
8649 * rdi-share/hostchan.h: Ditto.
8650 * rdi-share/hostchan.c: Ditto.
8651 * rdi-share/host.h: Ditto.
8652 * rdi-share/devsw.c: Ditto.
8654 * objfiles.h: Change type of obj_private to void pointer.
8655 * pa64solib.c: Update copyright. Don't include "assert.h", use
8656 strcmp instead of STREQ, use LONGEST, do not use PTR
8657 * somsolib.c: Ditto.
8659 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8660 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8661 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8663 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8665 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8666 (default_get_saved_register): Delete function.
8667 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8668 generic_unwind_get_saved_register.
8669 * gdbarch.h, gdbarch.c: Re-generate.
8671 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8673 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8674 generic_func_frame_chain_valid.
8675 * gdbarch.h, gdbarch.c: Re-generate.
8676 * blockframe.c (generic_func_frame_chain_valid): Only check
8677 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8678 passing FP to PC_IN_CALL_DUMMY.
8681 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8683 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8684 (register_gdbarch_data): Initialize init_p.
8685 (gdbarch_data): Initialize data pointer using the init function.
8686 (init_gdbarch_data): Delete function.
8687 (gdbarch_update_p): Update.
8688 (initialize_non_multiarch): Update.
8689 (struct gdbarch): Add field initialized_p.
8690 * gdbarch.h, gdbarch.c: Re-generate.
8692 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8694 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8695 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8696 better do the things actually here.
8697 * x86-64-tdep.c (x86_64_register_name2nr): New.
8698 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8699 (x86_64_gdbarch_init): Respect the above change.
8700 * x86-64-tdep.h (x86_64_register_name2nr)
8701 (x86_64_register_nr2name): Add prototypes.
8702 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8704 2002-06-06 Michael Snyder <msnyder@redhat.com>
8706 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8707 Delete extra braces and re-indent.
8708 (d10v_store_return_value): Char return values
8709 must be shifted over by one byte in R0.
8710 (d10v_extract_return_value): Delete extra braces, re-indent.
8712 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8714 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8715 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8716 (d10v_integer_to_address): Rewrite.
8717 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8718 the d10v specific functions which take care of converting to the
8721 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8723 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8724 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8726 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8728 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8730 * config/tm-linux.h: Ditto.
8731 * config/alpha/tm-alphalinux.h: Ditto.
8732 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8733 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8734 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8735 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8736 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8737 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8738 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8739 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8740 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8741 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8742 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8743 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8744 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8745 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8746 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8747 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8748 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8749 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8750 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8751 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8752 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8753 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8754 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8755 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8756 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8757 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8758 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8759 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8760 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8761 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8762 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8763 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8764 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8765 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8766 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8767 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8768 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8770 2002-05-04 Aidan Skinner <aidan@velvet.net>
8772 * ada-exp.tab.c: New file
8773 * ada-exp.y: New file
8774 * ada-lang.c: New file
8775 * ada-lang.h: New file
8776 * ada-lex.c: New file
8777 * ada-lex.l: New file
8778 * ada-tasks.c: New file
8779 * ada-typeprint.c: New file
8780 * ada-valprint.c: New file
8782 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8784 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8785 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8787 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
8789 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8790 insetead of ppc-linux-tdep.o.
8791 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8792 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8794 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8796 2002-05-07 Christian Groessler <chris@groessler.org>
8797 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8798 bit register contents for little endian hosts.
8800 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8802 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8805 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8807 * gdbarch.h: Regenerate.
8809 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8811 * MAINTAINERS: Add everyone to write-after-approval list.
8813 2002-06-01 Andrew Cagney <ac131313@redhat.com>
8815 * stack.c (frame_info): Use frame_register_unwind instead of
8816 saved_regs. Mention when the SP is on the stack or in a register.
8818 * frame.h (frame_register_unwind_ftype): Define. Document.
8819 (struct frame_info): Add field register_unwind and
8820 register_unwind_cache.
8821 (frame_register_unwind): Declare.
8822 (generic_unwind_get_saved_register): Declare.
8824 * frame.c (frame_register_unwind): New function.
8825 (generic_unwind_get_saved_register): New function.
8827 * blockframe.c (generic_call_dummy_register_unwind): New function.
8828 (frame_saved_regs_register_unwind): New function.
8829 (set_unwind_by_pc): New function.
8830 (create_new_frame): New function.
8831 (get_prev_frame): New function.
8833 2002-05-30 Andrew Cagney <ac131313@redhat.com>
8835 * a29k-share/: Delete directory.
8836 * remote-vx29k.c: Delete file.
8838 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8840 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8841 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8843 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8845 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8846 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8849 (sparcnbsd-tdep.o): New dependency lists.
8850 * NEWS: Note new UltraSPARC NetBSD native configuration.
8851 * configure.host (sparc64-*-netbsd*): New host.
8852 * configure.tgt (sparc-*-netbsdelf*)
8853 (sparc-*-netbsd*): Set gdb_target to nbsd.
8854 (sparc64-*-netbsd*): New target.
8855 * sparc64nbsd-nat.c: New file.
8856 * sparcnbsd-nat.c: New file.
8857 * sparcnbsd-tdep.c: New file.
8858 * sparcnbsd-tdep.h: New file.
8859 * config/sparc/nbsd.mt: New file.
8860 * config/sparc/nbsd64.mh: New file.
8861 * config/sparc/nbsd64.mt: New file.
8862 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8863 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8865 * config/sparc/nbsdaout.mt: Remove.
8866 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8867 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8869 * config/sparc/nbsdelf.mt: Remove.
8870 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8871 sparc-nat.c compatiblity defines.
8872 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8873 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8874 * config/sparc/tm-nbsd64.h: New file.
8875 * config/sparc/tm-nbsdaout.h: Remove.
8876 * config/sparc/xm-nbsd.h: Remove.
8878 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
8880 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8881 * sparc-tdep.c: Include osabi.h.
8882 (gdbarch_tdep): Add osabi member.
8883 (_initialize_sparc_tdep): Use gdbarch_register.
8884 (sparc_gdbarch_init): Use generic OS ABI framework.
8885 (sparc_dump_tdep): New function.
8887 2002-05-30 Kevin Buettner <kevinb@redhat.com>
8889 * corefile.c (do_captured_read_memory_integer): Return non-zero
8891 (safe_read_memory_integer): Copy result of memory read when
8892 status is non-zero. Also, add comments.
8894 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
8896 * Makefile.in (ppc_tdep_h): Define.
8899 (rs6000-tdep.o): Use $(ppc_tdep_h).
8902 (ppcnbsd-tdep.o): New dependency lists.
8903 * ppc-tdep.h: Use generic OS ABI framework.
8904 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8905 (ppc_linux_init_abi): New functions.
8906 (ppc_sysv_abi_broken_use_struct_convention)
8907 (ppc_sysv_abi_use_struct_convention)
8908 (ppc_sysv_abi_push_arguments): Move to...
8909 * ppc-sysv-tdep.c: ...here.
8910 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8911 * rs6000-tdep.c (process_note_abi_tag_sections)
8912 (get_elfosabi): Remove.
8913 (rs6000_gdbarch_init): Use generic OS ABI framework.
8914 (rs6000_dump_tdep): New function.
8915 (_initialize_rs6000_tdep): Use gdbarch_register.
8916 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8917 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8918 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8919 of ppc-linux-tdep.o.
8920 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8921 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8922 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8923 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8924 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8925 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8927 2002-05-29 Jim Blandy <jimb@redhat.com>
8929 * macroscope.c (default_macro_scope): Put `void' in empty argument
8932 2002-05-29 Andrew Cagney <ac131313@redhat.com>
8934 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8935 * arch-utils.c: Include "sim-regno.h".
8936 * gdbarch.sh: Don't include "sim-regno.h".
8937 * gdbarch.h, gdbarch.c: Regenerate.
8938 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8940 * arch-utils.h (legacy_register_sim_regno): To here.
8941 * remote-sim.c (legacy_register_sim_regno): Move function from
8943 * arch-utils.c (legacy_register_sim_regno): To here.
8945 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8947 * sim-regno.h: New file.
8948 * Makefile.in (sim_regno_h): Define.
8949 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8950 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8951 (legacy_register_sim_regno): New function.
8952 (one2one_register_sim_regno): New function.
8953 (gdbsim_fetch_register): Rewrite.
8954 (gdbsim_store_register): Only store a register when
8955 REGISTER_SIM_REGNO is valid.
8956 * d10v-tdep.c: Include "sim-regno.h".
8957 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8958 (d10v_ts3_register_sim_regno): Ditto.
8959 * gdbarch.sh: Include "sim-regno.h".
8960 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8961 * gdbarch.h, gdbarch.c: Regenerate.
8962 * arch-utils.h (default_register_sim_regno): Delete declaration.
8963 * arch-utils.c (default_register_sim_regno): Delete function.
8965 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
8967 * ppcnbsd-nat.c: Rewrite.
8968 * ppcnbsd-tdep.c: New file.
8969 * ppcnbsd-tdep.h: New file.
8970 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8971 solib.o, and solib-svr4.o.
8972 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8973 nbsd-tdep.o, and corelow.o.
8975 2002-05-28 Andrew Cagney <ac131313@redhat.com>
8977 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8978 `tr' and `sed'. Mention that `broken' targets are not expected to
8981 2002-05-27 Michal Ludvig <mludvig@suse.cz>
8983 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8984 Let PC point right after the prologue before looking up symbols.
8986 2002-05-27 Martin M. Hunt <hunt@redhat.com>
8988 * i386-tdep.c (i386_register_virtual_type): Return
8989 builtin_type_vec128i for SSE registers.
8991 * gdbtypes.h (builtin_type_vec128i): Declare.
8993 * gdbtypes.c (build_builtin_type_vec128i): New function.
8994 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8995 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8996 (build_gdbtypes): Initialize new builtin vector types.
8997 (_initialize_gdbtypes): Register new vector types with gdbarch.
8999 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9001 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9002 since it has been multi-arch'd.
9003 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9004 Move Alpha and VAX multi-arch news entries to same section
9005 as other multi-arch news.
9007 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9009 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9010 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9011 static. Rename some register numbers to put them in ns32k-tdep
9013 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9014 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9016 (_initialize_ns32k_tdep): Use gdbarch_register.
9017 * ns32k-tdep.h: New file.
9018 * ns32knbsd-tdep.c: New file.
9019 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9020 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9021 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9022 REGISTER_BYTES, REGISTER_BYTE): Remove.
9023 * config/ns32k/tm-ns32k.h: New file.
9024 * config/ns32k/tm-umax.h: Remove.
9026 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9028 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9029 ns32k_store_struct_return, ns32k_extract_return_value,
9030 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9032 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9033 ns32k_saved_pc_after_call.
9034 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9035 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9036 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9037 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9038 ns32k_extract_struct_value_address.
9040 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9042 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9043 ns32k_fix_call_dummy): New.
9044 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9045 ns32k_call_dummy_words.
9046 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9047 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9048 CALL_DUMMY_NARGS): Remove.
9049 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9051 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9053 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9054 ns32k_frame_saved_pc, ns32k_frame_args_address,
9055 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9056 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9057 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9058 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9059 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9060 (BREAKPOINT): Remove..
9061 (FRAME_CHAIN): Define as ns32k_frame_chain.
9062 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9063 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9064 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9065 (FRAME_FIND_SAVED_REGS): Remove.
9066 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9067 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9068 (POP_FRAME): Define as ns32k_pop_frame.
9070 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9072 * ns32k-tdep.c (ns32k_register_byte_32082,
9073 ns32k_register_byte_32382, ns32k_register_raw_size,
9074 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9076 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9077 ns32k_register_byte_32382.
9078 * config/ns32k/tm-umax.h: Update copyright years.
9079 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9080 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9081 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9082 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9083 (ns32k_get_enter_addr): Fix prototype.
9085 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9087 * ns32k-tdep.c: Update copyright years.
9088 (ns32k_register_name_32082): New function.
9089 (ns32k_register_name_32382): Ditto.
9090 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9091 (REGISTER_NAME): Define as ns32k_register_name_32382.
9092 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9093 (REGISTER_NAME): Define as ns32k_register_name_32082.
9095 2002-05-24 Jim Blandy <jimb@redhat.com>
9097 * dwarf2read.c (free_line_header): Use xfree, not free.
9099 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9101 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9102 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9104 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9106 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9108 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9110 From Ross Alexander at NEC Europe:
9111 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9113 2002-05-23 Michael Snyder <msnyder@redhat.com>
9115 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9116 for input, rather than parse_and_eval_address.
9118 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9120 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9121 * Makefile.in (sim_d10v_h): Update definition.
9123 2002-05-24 Andrew Cagney <cagney@redhat.com>
9125 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9126 change `2002-05-22 Michael Snyder' below.
9127 (d10v_push_arguments): Ditto.
9128 (d10v_extract_return_value): Ditto.
9130 2002-05-23 Jim Blandy <jimb@redhat.com>
9132 * macrotab.c (check_for_redefinition): Don't complain if the new
9133 definition is the same as the previous one. Take more arguments
9134 to allow the comparison.
9135 (macro_define_object, macro_define_function): Pass more arguments
9136 to check_for_redefinition.
9138 2002-05-22 Michael Snyder <msnyder@redhat.com>
9140 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9141 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9142 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9143 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9144 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9145 Add a temp variable to save a call (and a memory read).
9146 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9147 if possible (so that PC_IN_CALL_DUMMY will work).
9149 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9151 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9153 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9155 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9157 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9158 (dwarf2_build_frame_info): Add offset to fde->initial_location
9159 so that frames of shared libraries are mapped correctly.
9160 (execute_stack_op): Change type of 'result' from ULONGEST to
9163 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9165 * config/alpha/tm-nbsd.h: Include solib.h.
9167 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9169 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9170 assumptions about the host's byte order.
9172 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9174 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9176 * alphanbsd-tdep.c: Include solib-svr4.h.
9177 * shnbsd-tdep.c: Ditto.
9179 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9181 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9182 nbsd-tdep.h to dependency list.
9183 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9184 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9185 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9186 nbsdaout.mh and nbsdelf.mh consistently.
9187 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9188 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9189 nbsdaout.mt and nbsdelf.mh consistently.
9190 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9191 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9192 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9193 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9194 a.out shared library stuff from here...
9195 * config/nm-nbsdaout.h: ...to here.
9196 * config/tm-nbsd.h: Remove.
9197 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9198 * config/arm/nbsd.mh: Remove.
9199 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9201 * config/arm/nbsdaout.mh: New file.
9202 * config/arm/nbsdelf.mh: New file.
9203 * config/arm/nm-nbsdaout.h: New file.
9204 * config/i386/nbsd.mh: Remove.
9205 * config/i386/nbsd.mt: Remove.
9206 * config/i386/nbsdaout.mh: New file.
9207 * config/i386/nbsdaout.mt: New file.
9208 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9209 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9210 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9211 i386_register_u_addr): Remove.
9212 * config/i386/nm-nbsdaout.h: New file.
9213 * config/i386/nm-nbsdelf.h: Remove.
9214 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9215 (USE_STRUCT_CONVENTION): Remove.
9216 * config/i386/tm-nbsdaout.h: New file.
9217 * config/i386/tm-nbsdelf.h: Remove.
9218 * config/m68k/nbsd.mh: Remove.
9219 * config/m68k/nbsd.mt: Remove.
9220 * config/m68k/nbsdaout.mh: New file.
9221 * config/m68k/nbsdaout.mt: New file.
9222 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9223 * config/m68k/nm-nbsdaout.h: New file.
9224 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9225 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9226 * config/ns32k/nbsd.mh: Remove.
9227 * config/ns32k/nbsd.mt: Remove.
9228 * config/ns32k/nbsdaout.mh: New file.
9229 * config/ns32k/nbsdaout.mt: New file.
9230 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9231 * config/ns32k/nm-nbsdaout.h: New file.
9232 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9233 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9234 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9235 (SVR4_SHARED_LIBS): Remove.
9236 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9237 * config/sparc/nbsd.mh: Remove.
9238 * config/sparc/nbsd.mt: Remove.
9239 * config/sparc/nbsdaout.mh: New file.
9240 * config/sparc/nbsdaout.mt: New file.
9241 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9242 * config/sparc/nbsdelf.mt: New file.
9243 * config/sparc/nm-nbsdaout.h: New file.
9244 * config/sparc/nm-nbsdelf.h: Remove.
9245 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9246 * config/sparc/tm-nbsdaout.h: New file.
9248 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9250 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9252 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9254 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9256 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9258 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9260 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9262 * NEWS: Note new MIPS NetBSD native configuration.
9263 * configure.host (mips*-*-netbsd*): New host.
9264 * configure.tgt (mips*-*-netbsd*): New target.
9265 * mipsnbsd-nat.c: New file.
9266 * mipsnbsd-tdep.c: New file.
9267 * mipsnbsd-tdep.h: New file.
9268 * config/mips/nbsd.mh: New file.
9269 * config/mips/nbsd.mt: New file.
9270 * config/mips/nm-nbsd.h: New file.
9271 * config/mips/tm-nbsd.h: New file.
9273 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9275 * Makefile.in (SFILES): Add osabi.c.
9276 (COMMON_OBS): Add osabi.o.
9277 (osabi.o): New dependency list.
9278 * osabi.c: New file.
9279 * osabi.h: New file.
9280 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9282 * Makefile.in (alpha_tdep_h): Define and use instead of
9284 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9285 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9287 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9288 * alpha-tdep.h: Include osabi.h.
9289 (alpha_abi): Remove.
9290 (gdbarch_tdep): Use generic OS ABI framework.
9291 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9292 gdbarch_register_osabi.
9293 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9294 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9295 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9297 * Makefile.in (sh_tdep_h): Add osabi.h.
9298 * sh-tdep.h (sh_osabi): Remove.
9299 (gdbarch_tdep): Use generic OS ABI framework.
9300 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9301 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9302 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9303 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9305 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9306 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9307 gdbarch_register_osabi.
9308 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9309 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9310 (get_elfosabi): Rename to...
9311 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9312 ABI framework support routines.
9313 (arm_gdbarch_init): Use generic OS ABI framework.
9314 (arm_dump_tdep): Likewise.
9315 (_initialize_arm_tdep): Likewise.
9316 * arm-tdep.h: Include osabi.h.
9318 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9320 (arm_gdbarch_register_os_abi): Remove prototype.
9321 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9322 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9324 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9325 * mips-tdep.c: Include osabi.h.
9326 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9329 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9331 * h8300-tdep.c: Fix formatting.
9333 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9335 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9336 printing vector registers.
9338 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9340 From Fernando Nasser:
9341 * remote.c (remote_async_open_1): Re-throw the exception when the
9343 (remote_cisco_open): Ditto.
9344 (remote_open_1): Ditto.
9346 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9348 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9349 (remote_start_remote): Add uiout parameter. Pass through to
9350 remote_start_remote_dummy.
9351 (remote_open_1): Use catch_exception instead of catch_errors.
9352 (remote_async_open_1): Ditto.
9353 (remote_cisco_open): Ditto.
9355 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9357 * remote.c (remote_start_remote): Replace PTR with void pointer.
9358 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9361 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9363 * gdb_indent.sh: Allow the script to be run in the sim directory.
9365 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9367 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9368 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9370 * corelow.c (core_open): Only call set_gdbarch_from_file if
9373 2002-05-17 Andrey Volkov <avolkov@transas.com>
9375 * h8300-tdep.c: Add support of EXR register
9376 * config/h8300/tm-h8300.h: Ditto.
9378 2002-05-17 Andrey Volkov <avolkov@transas.com>
9380 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9382 2002-05-17 Andrey Volkov <avolkov@transas.com>
9384 * h8300-tdep.c: Change literal regnums to REGNO.
9386 2002-05-17 Jim Blandy <jimb@redhat.com>
9388 * NEWS: Note addition of macro support.
9390 Expand preprocessor macros in C expressions.
9391 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9392 (scan_macro_expansion, scanning_macro_expansion,
9393 finished_macro_expansion): New function declarations.
9394 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9395 variable declarations.
9396 * parser-defs.h (expression_context_pc): New declaration.
9397 * parse.c (expression_context_pc): New variable.
9398 (parse_exp_1): Set expression_context_pc, as well as
9399 expression_context_block.
9400 * c-exp.y (yylex): If we're not already reading the result of a
9401 macro expansion, try to macro-expand the next token. When we're
9402 done scanning a macro expansion, switch back to the mainline text.
9403 Commas and `if's in a macro's expansion don't terminate the input.
9404 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9405 (macro_original_text, macro_expanded_text,
9406 expression_macro_lookup_func, expression_macro_lookup_baton): New
9408 (scan_macro_expansion, scanning_macro_expansion,
9409 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9410 c_preprocess_and_parse): New functions.
9411 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9412 c_preprocess_and_parse, instead of c_parse.
9413 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9414 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9416 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9418 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9419 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9420 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9422 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9424 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9426 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9428 * Makefile.in (sh_tdep_h): Define and use.
9429 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9430 register enum): Move to...
9431 * * sh-tdep.h: ...here.
9432 * sh-tdep.c: Include sh-tdep.h.
9433 * sh3-rom.c: Likewise.
9434 * shnbsd-tdep.c: Likewise.
9436 2002-05-16 Michael Snyder <msnyder@redhat.com>
9438 * arm-tdep.c: Spelling fix in comment.
9440 2002-05-16 Jim Blandy <jimb@redhat.com>
9442 Add commands for manually expanding macros and showing their
9444 * macrocmd.c, macroscope.c, macroscope.h: New files.
9445 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9446 (macroscope_h): New variable.
9447 (HFILES_NO_SRCDIR): Add macroscope.h.
9448 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9449 (macroscope.o, macrocmd.o): New rules.
9451 Teach the Dwarf 2 reader to read macro information.
9452 * dwarf2read.c: #include "macrotab.h".
9453 (dwarf_macinfo_buffer): New variable.
9454 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9456 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9457 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9458 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9459 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9460 dwarf2_macro_spaces_in_definition): New complaints.
9461 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9462 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9463 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9464 the partial symbol table.
9465 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9466 from what's recorded in the partial symbol table.
9467 (read_file_scope): If the compilation unit has a
9468 `DW_AT_macro_info' attribute, read its macro information.
9469 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9471 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9474 * ser-tcp.c: Don't include <netinet/udp.h>.
9476 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9478 * MAINTAINERS: Update my email address.
9480 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9482 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9483 include file of the same name.
9485 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9487 * configure.tgt: Mark v850 as multi-arched.
9488 * config/v850/tm-v850.h: Remove file.
9489 * config/v850/v850.mt: Eliminate TM_FILE.
9491 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9493 * v850-tdep.c: Full multi-arch.
9494 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9495 Define GDB_MULTI_ARCH to 2.
9497 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9499 * p-exp.y (current_type): New static variable.
9500 Carries the type of the expression at the position that is parsed.
9501 (push_current_type, pop_current_type): Two new functions. Used
9502 to store/restore current_type in expression on specific tokens.
9503 (search_field): New static variable. Set to one after parsing a point
9504 as at that point only a FIELDNAME token should be searched.
9505 (FIELDNAME): New token. After a point only a token belonging to
9506 current_type type definition is allowed.
9507 (all over token rules): reset and change current_type according
9509 (exp '[' rule): insert implicit array index field if
9510 exp is a pascal string type.
9512 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9514 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9515 frame info. Use frame_info's saved_regs instead of matching member
9516 in extra_frame_info throughout.
9517 (v850_frame_init_saved_regs): New function.
9518 (v850_init_extra_frame_info): Move most functionality into
9519 v850_frame_init_saved_regs().
9520 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9521 (v850_frame_find_saved_regs): Remove declaration.
9522 (FRAME_FIND_SAVED_REGS): Remove definition.
9523 (v850_frame_init_saved_regs): Add declaration.
9524 (FRAME_INIT_SAVED_REGS): Add definition.
9526 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9528 * v850-tdep.c: Begin multi-arch'ing v850.
9529 (v850_target_architecture_hook): Remove function.
9530 (v850_gdbarch_init): New function. Add code previously in
9531 v850_target_architecture_hook().
9532 (_initialize_v850_tdep): Don't set target_architecture_hook.
9533 Call register_gdbarch_init() instead.
9535 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9537 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9538 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9539 (fixup_class_method_type): Likewise.
9541 2002-05-15 Jim Blandy <jimb@redhat.com>
9543 Add macro structures to GDB's symbol tables. Nobody puts anything
9545 * symtab.h (struct symtab): New member: `macro_table'.
9546 * buildsym.h (pending_macros): New global variable.
9547 * buildsym.c: #include "macrotab.h".
9548 (buildsym_init): Initialize `pending_macros'.
9549 (end_symtab): If we found macro information while reading a CU's
9550 debugging info, do build a symtab structure for it. Make the
9551 symtab point to the macro information, and clear the
9552 `pending_macros' pointer which held it while we were reading the
9554 (really_free_pendings): Free any pending macro table.
9555 * objfiles.h (struct objfile): New member: `macro_cache'.
9556 * objfiles.c (allocate_objfile): Set allocate and free functions
9557 for the macro cache's objstack.
9558 (free_objfile): Empty the macro cache's obstack.
9559 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9560 set new allocate and free functions for it.
9561 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9562 free functions for the macro cache's objstack. (Why is this
9563 function building its own objfile?)
9564 * symmisc.c (print_objfile_statistics): Print statistics on the
9566 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9568 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9570 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9571 (REGISTER_U_ADDR): Delete definition.
9572 (arm_register_u_addr): Delete declaration.
9574 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9576 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9577 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9579 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9581 * regcache.c (register_valid): Revise comments refering to "Not
9582 available" and "unavailable".
9583 * frame.c (frame_register_read): Ditto.
9584 * findvar.c (value_of_register): Ditto.
9586 2002-05-15 Andrew Cagney <cagney@redhat.com>
9588 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9589 (remote-sim.o): Update dependencies.
9590 (d10v-tdep.o): Specify dependencies.
9591 (sim_d10v_h): Define.
9593 2002-05-14 Jim Blandy <jimb@redhat.com>
9595 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9596 * macrotab.c (macro_lookup_inclusion, find_definition,
9597 new_macro_table): Same.
9599 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9600 not `! strcmp ()'. This is a dubious improvement.
9601 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9603 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9604 although it's not necessary, to avoid a warning.
9606 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9608 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9609 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9610 TYPE_INSTANCE_FLAGS.
9611 (struct main_type): New.
9612 (struct type): Move most members to struct main_type. Change
9613 cv_type and as_type to new type_chain member. Add instance_flags.
9614 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9615 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9616 (finish_cv_type): Remove prototype.
9617 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9619 (alloc_type_instance): New function.
9620 (smash_type): New function.
9621 (make_pointer_type, make_reference_type, make_function_type)
9622 (smash_to_member_type, smash_to_method_type): Call smash_type.
9623 (make_qualified_type): New function.
9624 (make_type_with_address_space): Call make_qualified_type.
9625 (make_cv_type): Likewise.
9626 (finish_cv_type): Remove unnecessary function.
9627 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9628 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9629 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9630 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9631 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9632 * hpread.c (hpread_read_struct_type): Likewise.
9633 * stabsread.c (read_struct_type): Likewise.
9635 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9637 * configure.tgt: Add a catch all sh* target, for cases like
9638 sh[2,3,4]-elf and sh-hms.
9640 2002-05-14 Keith Seitz <keiths@redhat.com>
9642 * event-loop.c (create_file_handler): Don't do anything but
9643 update data when we are given a fd which we are already
9646 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9648 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9649 (update_context): Use __func__ in warnings.
9651 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9653 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9654 and tcp_close to net_open and net_close.
9655 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9656 using UDP if requested. Don't try to disable Nagle on UDP
9658 * remote.c (remote_serial_open): New function. Warn about UDP.
9659 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9661 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9663 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9665 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9667 * configure.tgt: Remove sh-hms target.
9668 * MAINTAINERS: Don't list sh-hms as a separate target.
9670 2002-05-13 Jim Blandy <jimb@redhat.com>
9672 Add first preprocessor macro-expansion files.
9673 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9674 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9675 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9676 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9677 (COMMON_OBS): Add macrotab.o, macroexp.o.
9678 (macroexp.o, macrotab.o): New rules.
9680 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9682 * config/m88k/tm-m88k.h: Update copyright.
9683 (m88k_target_write_pc): Declare
9684 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9685 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9686 (SHIFT_INST_REGS): Update definition.
9687 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9688 using old definition of TARGET_WRITE_PC.
9689 * regcache.c (generic_target_write_pc): Delete code handling
9691 * gdbarch.sh (NNPC_REGNUM): Delete.
9692 * gdbarch.h, gdbarch.c: Regenerate.
9694 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9696 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9699 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9701 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9702 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9703 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9705 * c-typeprint.c (cp_type_print_method_args): Likewise.
9706 (c_type_print_args): Likewise.
9707 * d10v-tdep.c (d10v_push_arguments): Likewise.
9708 (d10v_extract_return_value): Likewise.
9709 * expprint.c (print_subexp): Likewise.
9710 * gdbtypes.c (lookup_primitive_typename): Likewise.
9711 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9712 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9713 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9714 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9715 (TYPE_VECTOR): Likewise.
9716 * hpread.c (hpread_read_struct_type)
9717 (fix_static_member_physnames, fixup_class_method_type)
9718 (hpread_type_lookup): Likewise.
9719 * mdebugread.c (parse_symbol, parse_type): Likewise.
9720 * p-lang.c (is_pascal_string_type): Likewise.
9721 * valops.c (hand_function_call): Likewise.
9722 * x86-64-tdep.c (classify_argument): Likewise.
9724 * hpread.c (hpread_read_function_type)
9725 (hpread_read_doc_function_type): Call replace_type.
9726 * dstread.c (create_new_type): Delete.
9727 (decode_dst_structure, process_dst_function): Call alloc_type.
9728 Use type access macros.
9730 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9732 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9733 the're not supported by the current architecture.
9734 (i387_fill_fxsave): Likewise.
9736 2002-05-12 Fred Fish <fnf@redhat.com>
9738 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9739 sect_index_xxx members to index the first slot in section_offsets
9740 if all of the section_offsets are zero.
9742 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9744 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9745 checked in with last change.
9747 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9749 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9750 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9753 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9755 * Makefile.in: Update dependencies.
9757 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9759 * language.c (local_hex_string_custom): Simplify. Do not depend
9760 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9762 * memattr.c (mem_info_command): Replace calls to
9763 longest_local_hex_string and longest_local_hex_string_custom.
9764 * buildsym.c (make_blockvector): Ditto.
9765 * solib.c (info_sharedlibrary_command): Ditto.
9766 * tracepoint.c (tracepoints_info): Ditto.
9767 * symtab.c (print_msymbol_info): Ditto.
9769 * language.c (local_hex_string): Delete.
9770 (local_hex_string_custom): Delete.
9771 (longest_local_hex_string): Rename to local_hex_string.
9772 (longest_local_hex_string_custom): Rename to
9773 local_hex_string_custom.
9774 * language.h (local_hex_string): Change parameter type to LONGEST.
9775 (local_hex_string_custom): Ditto.
9776 (longest_local_hex_string): Delete declaration.
9777 (longest_local_hex_string_custom): Ditto.
9779 * solib.c: Update copyright.
9780 * memattr.c: Update copyright.
9782 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9784 * arch-utils.h (legacy_register_to_value): Declare.
9785 (legacy_value_to_register): Declare.
9786 (legacy_convert_register_p): Declare.
9787 * arch-utils.c (legacy_register_to_value): New function.
9788 (legacy_value_to_register): New function.
9789 (legacy_convert_register_p): New function.
9791 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9792 (VALUE_TO_REGISTER): Define.
9793 (CONVERT_REGISTER_P): Define.
9794 * gdbarch.h, gdbarch.c: Regenerate.
9796 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9798 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9801 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
9802 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9804 * Makefile.in: Update dependencies for valops.c.
9805 * valops.c: Include "gdb_assert.h".
9806 (typecmp): Skip THIS parameter to methods.
9807 (find_method_list): Remove static_memfuncp argument,
9808 update callers. Check for stub methods.
9809 (find_value_oload_method_list): Don't set *static_memfuncp.
9810 (find_overload_match): Don't check for stub methods. Assert
9811 that methods are not stubbed. Handle static methods.
9812 (value_find_oload_method_list): Remove static_memfuncp argument.
9813 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9814 to the argument list for static stub methods.
9815 * value.h (value_find_oload_method_list): Update prototype.
9817 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9819 * arch-utils.h (generic_register_size): Declare.
9820 (generic_register_raw_size, generic_register_virtual_size): Delete
9822 * arch-utils.c (generic_register_raw_size): Delete.
9823 (generic_register_size): New function.
9824 (generic_register_virtual_size): Delete.
9826 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9827 default generic_register_size.
9828 * gdbarch.h, gdbarch.c: Re-generate.
9830 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9831 register_virtual_size.
9832 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9833 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9835 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9837 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9838 * gdbarch.h, gdbarch.c: Regenerate.
9839 * gnu-v3-abi.c: Update copyright.
9840 (vtable_address_point_offset): Update.
9841 (gnuv3_rtti_type): Update.
9842 (gnuv3_baseclass_offset): Update.
9843 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9844 (init_fetch_link_map_offsets): Update.
9845 * remote.c (get_remote_state): Update.
9847 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9849 * TODO: Remove value_headof/value_from_vtable_info comment.
9850 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9851 * values.c (value_headof, value_from_vtable_info): Delete.
9852 * value.h (value_from_vtable_info): Delete prototype.
9854 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9856 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9857 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9859 (gdb_assert_h): Define.
9860 (gdb_wait_h): Define.
9861 (gdb_regex_h): Define.
9863 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
9865 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
9866 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9870 * nbsd-tdep.c: Fix comment.
9872 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9874 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9875 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9876 (nbsd-tdep.o): New dependency list.
9877 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9879 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9880 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9881 * nbsd-tdep.c: New file.
9882 * nbsd-tdep.h: New file.
9883 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9885 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9886 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9887 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9888 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9890 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9892 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9893 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9894 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9895 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9896 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9897 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9899 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9901 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9902 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9903 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9904 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9905 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9906 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9907 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9909 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9911 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9912 fetch_elfcore_registers to...
9913 * i386nbsd-tdep.c: ...here.
9914 (i386nbsd_use_struct_convention): Rename to...
9915 (i386nbsd_aout_use_struct_convention): ...this.
9916 (i386nbsd_supply_reg): New function.
9917 (i386nbsd_fill_reg): New function.
9918 (fetch_core_registers): Use i386nbsd_supply_reg.
9919 (fetch_elfcore_registers): Likewise.
9920 (_initialize_i386nbsd_tdep): New function.
9921 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9922 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9923 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9924 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9925 (i386nbsd_aout_use_struct_convention): ...this.
9927 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9929 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9930 (store_inferior_registers): Use shnbsd_fill_reg.
9931 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9932 sh_nbsd_supply_register): Collapse into...
9933 (shnbsd_supply_reg): ...this.
9934 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9935 (shnbsd_fill_reg): ...this.
9936 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9937 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9938 (fetch_core_registers): Use shnbsd_supply_reg.
9939 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9940 (sh_nbsd_core_fns): Rename to...
9941 (shnbsd_core_fns): ...this.
9942 (sh_nbsd_elfcore_fns): Rename to...
9943 (shnbsd_elfcore_fns): ...this.
9944 (sh_nbsd_init_abi): Rename to...
9945 (shnbsd_init_abi): ...this.
9946 (_initialize_sh_nbsd_tdep): Rename to...
9947 (_initialize_shnbsd_tdep): ...this.
9948 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9949 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9950 sh_nbsd_fill_register): Remove prototypes.
9951 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9953 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9955 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9956 (i387-nat.o): Delete dependency list.
9957 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9958 (x86-64-linux-nat.o): Likewise.
9959 * i387-nat.c: Delete file, moving contents to...
9960 * i387-tdep.c: ...here.
9961 * i387-nat.h: Rename...
9962 * i387-tdep.h: ...to this.
9963 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9964 * i386-linux-nat.c: Likewise.
9965 * i386bsd-nat.c: Likewise.
9966 * i386gnu-nat.c: Likewise.
9967 * i386nbsd-nat.c: Likewise.
9968 * i386v4-nat.c: Likewise.
9969 * x86-64-linux-nat.c: Likewise.
9970 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9971 * config/i386/go32.mh (NATDEPFILES): Likewise.
9972 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9973 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9974 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9975 * config/i386/linux.mh (NATDEPFILES): Likewise.
9976 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9977 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9978 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9979 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9981 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9983 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9984 (alphanbsd-nat.o): Remove dependency list.
9985 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9986 * alphanbsd-nat.c: Delete. Contents moved to...
9987 * alphanbsd-tdep.c: ...here.
9988 (_initialize_alphanbsd_tdep): Register core functions.
9989 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9991 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
9993 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9994 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9995 (alphanbsd-nat.o): Likewise.
9996 (alphabsd-tdep.o): New dependency list.
9997 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9998 (fill_gregset): Use alphabsd_fill_reg.
9999 (supply_fpregset): Use alphabsd_supply_fpreg.
10000 (fill_fpregset): Use alphabsd_fill_fpreg.
10001 (fetch_inferior_registers): Use struct reg and struct fpreg
10002 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10003 and alphabsd_supply_fpreg.
10004 (store_inferior_registers): Use struct reg and struct fpreg
10005 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10006 and alphabsd_fill_fpreg.
10007 * alphabsd-tdep.c: New file.
10008 * alphabsd-tdep.h: New file.
10009 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10010 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10011 alphabsd_supply_fpreg.
10012 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10013 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10015 2002-05-11 Eric Christopher <echristo@redhat.com>
10017 * mips-tdep.c (mips_double_register_type): Fix thinko.
10018 (mips_single_register_type): Ditto.
10019 * MAINTAINERS: Add self.
10021 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10023 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10024 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10025 right thing on architectures with different endianness and/or
10028 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10030 From Christian Limpach <chris@Pin.LU>
10031 * configure.in: Change sed expression which comments out
10032 NATDEPFILES to also comment out continuation lines.
10033 * configure: Regenerate.
10035 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10037 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10040 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10042 * sh-tdep.c: Include correct file.
10044 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10046 New support for sh64-elf (sh5) target.
10048 * configure.tgt: For sh64-elf target, default to sh-elf.
10050 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10051 (struct gdbarch_tdep): Add new fields for new registers and ABI
10054 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10055 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10056 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10057 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10058 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10059 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10060 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10061 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10062 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10063 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10064 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10065 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10066 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10067 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10068 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10069 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10070 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10071 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10072 sign_extend, sh64_nofp_frame_init_saved_regs,
10073 sh64_init_extra_frame_info, sh64_get_saved_register,
10074 sh64_extract_struct_value_address, sh64_pop_frame,
10075 sh64_push_arguments, sh64_extract_return_value,
10076 sh64_store_return_value, sh64_show_media_regs,
10077 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10078 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10079 sh_sh64_register_virtual_type,
10080 sh_sh64_register_convert_to_virtual,
10081 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10082 sh64_register_read, sh64_pseudo_register_write,
10083 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10084 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10085 sh64_do_pseudo_register, sh_compact_do_registers_info,
10086 sh64_do_registers_info, sh_gdbarch_init): New functions.
10088 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10090 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10092 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10094 * linespec.c (decode_line_1): Check for a double quote after
10095 a filename correctly.
10097 2002-05-10 Jim Blandy <jimb@redhat.com>
10099 Properly track the size of the current objfile's .debug_line section.
10100 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10101 (DWARF_LINE_SIZE): New macro.
10102 (dwarf2_build_psymtabs_hard): Record the line section's size in
10103 the partial symbol table.
10104 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10107 2002-05-10 Petr Sorfa <petrs@caldera.com>
10109 * ia64-tdep.c: Handle breakpoints on L instruction type
10110 in MLX instruction bundle by moving the breakpoint to
10111 the third slot (X instruction type) as L holds only data.
10113 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10115 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10116 (process_one_symbol): Complain about discarding local symbols
10117 due to a misplaced N_LBRAC entry.
10119 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10121 From Daniel Berlin <dan@cgsoftware.com>
10122 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10123 decrease the depth we are at, in the case of templates.
10125 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10127 * mips-tdep.c (mips_float_register_type): New function.
10128 (mips_double_register_type): New function.
10129 (mips_print_register): Use them.
10130 (do_fp_register_row): Likewise.
10132 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10134 * signals/signals.c (signals): Remove conditional compilation around
10135 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10136 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10138 2002-05-09 Michael Snyder <msnyder@redhat.com>
10140 * remote-rdp.c (remote_rdp_can_run): Remove.
10142 2002-05-09 Tom Tromey <tromey@redhat.com>
10144 * jv-valprint.c (java_val_print): Handle `char' as a special case
10147 2002-05-09 Michael Snyder <msnyder@redhat.com>
10149 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10150 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10151 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10152 str r(0123),[sp,#nn].
10153 (arm_skip_prologue): Ditto. Also make disassembly
10154 order-independent by placing it in a loop.
10156 2002-05-06 Michael Snyder <msnyder@redhat.com>
10158 * stabsread.c (read_type): Add recognition for new attribute:
10159 "@V;" means that an array type is actually a vector.
10160 This is analogous to the vector flag that's been added to dwarf2.
10162 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10164 * i386-tdep.h (i386_abi): New enum.
10165 (struct gdbarch_tdep): Replace os_ident member with abi.
10166 (i386_gdbarch_register_os_abi): New prototype.
10167 * i386-tdep.c (i386_abi_names): New array.
10168 (process_note_abi_tag_sections): Removed.
10169 (process_note_sections): New function.
10170 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10171 (struct i386_abi_handler): New struct.
10172 (i386_abi_handler_list): New variable.
10173 (i386_gdbarch_register_os_abi): New function.
10174 (i386_gdbarch_init): Adapt for the changes given above.
10176 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10178 * gregset.h: Say "GNU/Linux".
10180 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10182 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10183 (build_gdbtypes): Build builtin_type_v2_float.
10184 (_initialize_gdbtypes): Register new builtin type.
10186 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10188 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10189 (clear_gdbarch_swap): New function.
10190 (initialize_non_multiarch): Call.
10191 (gdbarch_update_p): Before calling init(), swap out and clear the
10192 existing architecture.
10193 * gdbarch.c: Regenerate.
10195 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10197 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10200 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10202 * sh-nbsd-nat.c: Rename to...
10203 * shnbsd-nat.c: ...this.
10204 * sh-nbsd-tdep.c: Rename to...
10205 * shnbsd-tdep.c: ...this.
10206 * sh-nbsd-tdep.h: Rename to...
10207 * shnbsd-tdep.h: ...this.
10208 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10209 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10211 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10213 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10214 concatenation for command help messages.
10216 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10218 * NEWS: Note new sh*-*-netbsdelf* configuration.
10219 * configure.host: Set gdb_host_cpu to sh for all sh*.
10220 (sh*-*-netbsdelf*): New host.
10221 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10222 (sh*-*-netbsdelf*): New target.
10223 * sh-nbsd-nat.c: New file.
10224 * sh-nbsd-tdep.c: New file.
10225 * sh-nbsd-tdep.h: New file.
10226 * config/sh/nbsd.mh: New file.
10227 * config/sh/nbsd.mt: New file.
10228 * config/sh/nm-nbsd.h: New file.
10229 * config/sh/tm-nbsd.h: New file.
10231 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10233 * sh-tdep.c (sh_osabi_names): Declare.
10234 (process_note_abi_tag_sections): New function.
10235 (get_elfosabi): Ditto.
10236 (sh_gdbarch_register_os_abi): Ditto.
10237 (sh_dump_tdep): Ditto.
10238 _initialize_sh_tdep): Use gdbarch_register to register
10239 sh_gdbarch_init and sh_dump_tdep.
10240 * config/sh/tm-sh.h (sh_osabi): Declare.
10241 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10243 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10245 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10246 (thumb_scan_prologue): Ditto.
10247 (arm_find_callers_reg): Ditto.
10248 (arm_frame_chain): Ditto.
10249 (arm_init_extra_frame_info): Ditto.
10250 (arm_frame_saved_pc): Ditto.
10251 (arm_pop_frame): Ditto.
10252 (arm_push_return_address): New function.
10253 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10254 call_dummy_location, call_dummy_breakpoint_offset_p,
10255 call_dummy_breakpoint_offset, call_dummy_p,
10256 call_dummy_stack_adjust_p, call_dummy_words,
10257 sizeof_call_dummy_words, call_dummy_start_offset,
10258 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10259 call_dummy_address, push_return_address and push_dummy_frame for
10260 generic dummy frames.
10262 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10264 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10265 size computation for alloca.
10266 (sh_fp_frame_init_saved_regs): Likewise.
10268 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10270 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10271 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10272 * arm-tdep.c (arm_store_return_value): Use them.
10273 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10274 * remote-rdp.c (remote_rdp_fetch_register): Use
10275 ARM_MAX_REGISTER_RAW_SIZE.
10276 (remote_rdp_store_register): Likewise.
10278 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10280 * dwarf2cfi.c: Code cleanup, removed unused variables,
10281 added default labels to switch {} statements.
10282 * x86-64-tdep.c: Ditto.
10283 * x86-64-linux-nat.c: Ditto.
10285 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10287 * solib.h: Protect against multiple inclusion.
10289 2002-05-06 Jim Blandy <jimb@redhat.com>
10291 Add first preprocessor macro-expansion files.
10292 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10293 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10294 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10295 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10296 (COMMON_OBS): Add macrotab.o, macroexp.o.
10297 (macroexp.o, macrotab.o): New rules.
10299 Separate the job of reading the line number info statement program
10300 header (...expialidocious) out into its own function.
10301 * dwarf2read.c (struct line_head, struct filenames, struct
10302 directories): Replace with...
10303 (struct line_header): New structure, containing the full
10304 contents of the statement program header, including the
10305 include directory and file name tables.
10306 (read_file_scope): If we have line number info, instead of just
10307 calling dwarf_decode_lines to do all the work, call
10308 dwarf_decode_line_header first to get a `struct line_header'
10309 containing the data in the statement program header, and then
10310 pass that to dwarf_decode_lines, which will pick up where that
10311 left off. Be sure to clean up the `struct line_header' object.
10312 (dwarf_decode_line_header, free_line_header, add_include_dir,
10313 add_file_name): New functions.
10314 (dwarf_decode_lines): Move all the code to read the statement
10315 program header into dwarf_decode_line_header. Take the line
10316 header it built as the first argument, instead of the offset to
10317 the compilation unit's line number info. Use the new `struct
10318 line_header' type instead of the old structures. No need to do
10319 cleanups here now, since we don't allocate anything.
10320 (dwarf2_statement_list_fits_in_line_number_section,
10321 dwarf2_line_header_too_long): New complaints.
10323 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10325 * gdbtypes.c (init_vector_type): New function.
10326 (build_builtin_type_vec128): Simplify the representation of SIMD
10328 (build_gdbtypes): Initialize new builtin vector types.
10329 (_initialize_gdbtypes): Register new vector types with gdbarch.
10330 (builtin_type_v4_float, builtin_type_v4_int32,
10331 builtin_type_v8_int16, builtin_type_v16_int8,
10332 builtin_type_v2_int32, builtin_type_v4_int16,
10333 builtin_type_v8_int8): New (renamed) SIMD types.
10335 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10337 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10338 (i387_fill_fxsave): Likewise.
10340 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10342 * alpha-tdep.c (alpha_extract_return_value): Don't use
10343 non-constant array size in prototype.
10345 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10347 From Brian Taylor <briant at model dot com>:
10348 * ui-out.c (ui_out_field_core_addr): Use the function
10349 longest_local_hex_string_custom'to format addresses > 32 bits
10352 * ui-out.c (ui_out_field_core_addr): Update comment.
10354 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10356 * stack.c (select_and_print_frame): Make static. Delete the
10358 (func_command): Update call.
10359 (select_frame_command): Delete code computing the frame level.
10360 * frame.h (select_and_print_frame): Delete declaration.
10362 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10364 * sparc-tdep.c (sparc_get_saved_register): Comment why
10365 get_prev_frame call is safe.
10367 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10369 * frame.h (select_frame): Delete level parameter.
10370 * stack.c (select_frame): Update. Use frame_relative_level to
10371 obtain the frame's level.
10372 (select_and_print_frame): Update call.
10373 (select_frame_command): Ditto.
10374 (up_silently_base): Ditto.
10375 (down_silently_base): Ditto.
10376 * ocd.c (ocd_start_remote): Ditto.
10377 * remote-rdp.c (remote_rdp_open): Ditto.
10378 * remote-mips.c (mips_initialize): Ditto.
10379 (common_open): Ditto.
10380 * remote-e7000.c (e7000_start_remote): Ditto.
10381 * m3-nat.c (select_thread): Ditto.
10382 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10383 (child_get_current_exception_event): Ditto.
10384 * varobj.c (varobj_create): Ditto.
10385 (varobj_update): Ditto.
10386 (c_value_of_root): Ditto.
10387 * tracepoint.c (finish_tfind_command): Ditto.
10388 * corelow.c (core_open): Ditto.
10389 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10390 * thread.c (info_threads_command): Ditto.
10391 (switch_to_thread): Ditto.
10392 * infrun.c (normal_stop): Ditto.
10393 (restore_selected_frame): Ditto.
10394 (restore_inferior_status): Ditto.
10395 * breakpoint.c (insert_breakpoints): Ditto.
10396 (watchpoint_check): Ditto.
10397 (bpstat_stop_status): Ditto.
10398 (do_enable_breakpoint): Ditto.
10399 * blockframe.c (flush_cached_frames): Ditto.
10400 (reinit_frame_cache): Ditto.
10402 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10404 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10407 2002-05-04 Jim Blandy <jimb@redhat.com>
10409 * gdbtypes.c (replace_type): Doc fix.
10411 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10413 * valprint.c (strcat_longest): Delete commented out function.
10416 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10418 * MAINTAINERS: Mark a29k as deleted.
10419 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10420 Move new configurations to the top.
10421 * configure.tgt: Remove a29k.
10422 * config/a29k/tm-vx29k.h: Delete.
10423 * config/a29k/vx29k.mt: Delete.
10424 * config/a29k/tm-a29k.h: Delete.
10425 * config/a29k/a29k-udi.mt: Delete.
10426 * config/a29k/a29k.mt: Delete.
10427 * a29k-tdep.c: Delete.
10428 * remote-udi.c: Delete.
10429 * remote-mm.c: Delete.
10430 * remote-eb.c: Delete.
10431 * remote-adapt.c: Delete.
10432 * Makefile.in: Remove obsolete code.
10433 * config/s390/s390x.mt: Ditto.
10434 * config/s390/s390.mt: Ditto.
10435 * config/sparc/sparclynx.mh: Ditto.
10436 * config/sparc/linux.mh: Ditto.
10437 * config/pa/hppaosf.mh: Ditto.
10438 * config/pa/hppabsd.mh: Ditto.
10439 * config/ns32k/nbsd.mt: Ditto.
10440 * config/mips/vr5000.mt: Ditto.
10441 * config/m68k/sun3os4.mh: Ditto.
10442 * config/m68k/nbsd.mt: Ditto.
10443 * config/m68k/m68klynx.mh: Ditto.
10444 * config/m32r/m32r.mt: Ditto.
10445 * config/i386/x86-64linux.mt: Ditto.
10446 * config/i386/nbsdelf.mt: Ditto.
10447 * config/i386/nbsd.mt: Ditto.
10448 * config/i386/i386lynx.mh: Ditto.
10450 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10452 * target.c (debug_print_register): New function. Handle oversize
10454 (debug_to_fetch_registers): Call.
10455 (debug_to_store_registers): Call.
10457 2002-05-03 Jim Blandy <jimb@redhat.com>
10459 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10460 (read_type): Doc fix.
10461 * gdbtypes.c (replace_type): Doc fix.
10463 * stabsread.c (multiply_defined_struct): New complaint.
10464 (read_struct_type): If the type we were passed isn't empty, or
10465 incomplete, don't read the new struct type into it; complain,
10466 and return the original type unchanged. Take a new `type_code'
10467 argument, which is the type code for the new type.
10468 (read_type): Rather than storing the type's type code here, pass
10469 it as an argument to read_struct_type, and let that take care of
10470 storing it. That way, we don't overwrite the original type code,
10471 so read_struct_type can use it to decide whether we're overwriting
10472 something we shouldn't.
10473 (complain_about_struct_wipeout): New function.
10475 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10477 * gdbarch.sh: Assert that gdbarch is non-NULL.
10478 * gdbarch.c: Regenerate.
10480 2002-05-03 Jason Merrill <jason@redhat.com>
10482 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10485 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10487 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10488 (x86_64_dwarf2gdb_regno_map_length),
10489 (x86_64_dwarf2_reg_to_regnum): Added.
10490 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10491 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10492 (_initialize_x86_64_tdep): Synced with the change above.
10493 (x86_64_skip_prologue): Reformulated message.
10495 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10497 * f-exp.y: Also use new prev_lexptr variable
10498 to improve error reporting. Based on Michael Snyder
10499 2002-04-24 dated patch to c-exp.y.
10500 * jv-exp.y: Likewise.
10501 * m2-exp.y: Likewise.
10503 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10505 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10506 we are dealing with vectors.
10508 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10510 * config/m68k/tm-nbsd.h: Obvious fix,
10511 correct machine name.
10513 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10515 * p-typeprint.c (pascal_type_print_base): Add support
10516 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10518 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10520 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10521 for fondamental pascal 'char' type.
10523 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10525 * p-lang.h (is_pascal_string_type): Declaration changed,
10526 new sixth argument of type char ** added.
10527 * p-lang.c (is_pascal_string_type): Implementation
10528 changed. Args length_pos, length_size, string_pos, char_size
10529 can now be NULL. New argument arrayname set to the field
10530 name of the char array. Return value set to char array
10531 field index plus one.
10532 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10533 is_pascal_string_type function.
10535 2002-05-02 Andrew Cagney <cagney@redhat.com>
10537 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10538 <cagney@redhat.com> change.
10539 * gdbarch.c: Regenerate.
10541 2002-05-02 Andrew Cagney <cagney@redhat.com>
10543 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10544 before probing for a new one. Detect errorenous gdbarch_init
10546 * gdbarch.c: Regenerate.
10548 2002-05-01 Andrew Cagney <cagney@redhat.com>
10550 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10551 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10552 * config/v850/tm-v850.h: Ditto. Update copyright.
10554 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10556 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10559 2002-04-30 Michael Snyder <msnyder@redhat.com>
10561 * arm-tdep.c: Whitespace clean-ups.
10562 (arm_skip_prologue): Fix thinko; two lines
10563 should have been removed as part of 4/24 change.
10565 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10567 * rs6000-tdep.c: Added comment describing how fpscr register
10568 numbers were chosen.
10570 2002-04-30 Michael Snyder <msnyder@redhat.com>
10572 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10574 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10576 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10577 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10578 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10580 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10582 From Louis Hamilton <hamilton@redhat.com>:
10583 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10584 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10585 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10586 not bfd-private xcoff data, to determine wordsize.
10587 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10589 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10591 GDB 5.2 released from 5.2 branch.
10593 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10595 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10596 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10597 (x86_64_register_info_table): Added comments with register numbers.
10599 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10601 * rs6000-tdep.c (rs6000_extract_return_value,
10602 rs6000_store_return_value): Handle returning vectors.
10603 (rs6000_gdbarch_init): Use
10604 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10605 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10607 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10609 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10610 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10612 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10614 * hpread.c (hpread_psymtab_to_symtab_1,
10615 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10616 with fprintf_unfiltered (gdb_stderr,...).
10618 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10620 * remote-array.c (printf_monitor, write_monitor,
10621 array_insert_breakpoint, array_remove_breakpoint ):
10622 Replace fprintf (stderr,...
10623 with fprintf_unfiltered (gdb_stderr,....
10624 * remote-es.c: Likewise.
10625 * remote-os9k.c: Likewise.
10626 * remote-st.c: Likewise.
10628 2002-04-28 Andreas Schwab <schwab@suse.de>
10630 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10631 linux-proc.o and gcore.o.
10633 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10635 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10636 code without frame pointers.
10638 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10640 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10641 ON_STACK is needed.
10643 2002-04-26 Ben Elliston <bje@redhat.com>
10645 * target.c (do_xfer_memory): Correct reference to the new option
10646 "trust-readonly-sections".
10648 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10650 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10651 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10652 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10654 (read_array_type): Record the fact that this array type is really a
10655 vector (i.e. are passed in by value).
10657 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10659 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10660 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10661 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10662 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10663 * alpha-linux-tdep.c: Include frame.h.
10664 (alpha_linux_sigcontext_addr): New function.
10665 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10666 alpha_linux_sigcontext_addr.
10667 * alpha-osf1-tdep.c: Include gdbcore.h.
10668 (alpha_osf1_sigcontext_addr): New function.
10669 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10670 alpha_osf1_sigcontext_addr.
10671 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10672 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10674 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10676 * stack.c (selected_frame_level):
10677 (select_frame): Do not set selected_frame_level.
10678 * frame.h (selected_frame_level): Delete declaration.
10680 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10682 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10683 convert_from_func_ptr-addr when AIX / PowerOpen.
10685 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10687 * valops.c (hand_function_call): Call
10688 generic_save_call_dummy_addr.
10689 * frame.h (generic_save_call_dummy_addr): Declare.
10690 * blockframe.c (struct dummy_frame): Add fields call_lo and
10692 (generic_find_dummy_frame): Check for PC in range call_lo to
10693 call_hi instead of entry_point_address.
10694 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10695 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10696 (generic_save_call_dummy_addr): New function.
10698 2002-04-24 David S. Miller <davem@redhat.com>
10700 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10701 sparc_skip_prologue.
10702 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10703 information to find prologue when possible.
10704 (sparc_prologue_frameless_p): Call examine_prologue directly.
10705 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10706 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10708 (SKIP_PROLOGUE): Likewise.
10710 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10712 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10713 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10714 indicate that the condition it was testing is always true.
10715 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10716 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10717 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10719 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10721 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10722 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10723 tdep->jb_pc and tdep->jb_elt_size.
10724 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10725 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10726 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10727 * alpha-nat.c (get_longjmp_target): Remove.
10728 (JB_ELEMENT_SIZE): Ditto.
10730 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10731 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10732 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10733 to alpha_get_longjmp_target.
10734 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10735 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10736 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10738 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10740 * README: Update to GDB 5.2.
10742 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10744 * gdbarch.sh (LC_ALL): Set to `c'.
10746 2002-04-25 Theodore A. Roth <troth@verinet.com>
10748 * avr-tdep.c: Ran through gdb_indent.sh.
10750 2002-04-25 Theodore A. Roth <troth@verinet.com>
10752 * MAINTAINERS: Add myself as AVR maintainer.
10753 * NEWS: Note new target avr.
10755 2002-04-25 Theodore A. Roth <troth@verinet.com>
10757 * Makefile.in: Add support for AVR target.
10758 * configure.tgt: Add support for AVR target.
10759 * avr-tdep.c: New file
10760 * config/avr/avr.mt: New file.
10762 2002-04-25 Theodore A. Roth <troth@verinet.com>
10764 * MAINTAINERS: Add myself to write-after-approval.
10766 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10768 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10769 with fprintf_unfiltered (gdb_stderr,....
10771 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10774 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10776 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
10778 * p-exp.y: Also use new prev_lexptr variable
10779 to improve error reporting. Based on Michael Snyder
10780 2002-04-24 dated patch to c-exp.y.
10782 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10784 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10785 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10786 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10788 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10790 (FUNCTION_START_OFFSET): Remove.
10791 (BREAKPOINT): Ditto.
10793 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10795 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10798 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10800 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10801 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10802 alpha_linux_pc_in_sigtramp.
10803 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10804 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10805 alpha_osf1_pc_in_sigtramp.
10806 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10807 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10808 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10809 alphafbsd_pc_in_sigtramp.
10810 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10811 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10812 alphanbsd_pc_in_sigtramp.
10813 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10814 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10816 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10818 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10820 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10822 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10824 (alphanbsd-nat.o): New dependency list.
10825 (alphanbsd-tdep.o): Ditto.
10826 * NEWS: Note new native NetBSD/alpha configuration.
10827 * alphanbsd-nat.c: New file.
10828 * alphanbsd-tdep.c: Ditto.
10829 * configure.host (alpha*-*-netbsd*): New host.
10830 * configure.tgt (alpha*-*-netbsd*): New target.
10831 * config/alpha/nbsd.mh: New file.
10832 * config/alpha/nbsd.mt: Ditto.
10833 * config/alpha/nm-nbsd.h: Ditto.
10834 * config/alpha/tm-nbsd.h: Ditto.
10836 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10838 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10839 (alpha-osf1-tdep.o): New dependency list.
10840 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10841 and skip_sigtramp_frame members.
10842 * alpha-linux-tdep.c: Include gdbcore.h.
10843 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10844 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10845 * alpha-osf1-tdep.c: New file.
10846 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10848 (alpha_frame_past_sigtramp_frame): New function.
10849 (alpha_dynamic_sigtramp_offset): Ditto.
10850 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10851 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10852 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10853 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10854 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10855 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10856 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10857 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10858 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10859 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10860 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10861 to find_solib_trampoline_target.
10862 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10863 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10864 (SKIP_TRAMPOLINE_CODE): Remove.
10865 (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.
10869 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10870 (PROC_SIGTRAMP_MAGIC): Ditto.
10871 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10872 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10873 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10874 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10875 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10877 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
10879 * NEWS: Note that Alpha targets are now multi-arch.
10881 2002-04-24 Michael Snyder <msnyder@redhat.com>
10883 * parser-defs.h (prev_lexptr): New external variable.
10884 * parse.c (parse_exp_1): Set prev_lexptr to null before
10885 calling the language-specific parser.
10886 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10887 (yyerror): Use prev_lexptr in error reporting.
10889 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
10891 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10892 * gregset.h: If FILL_FPXREGSET is defined, provide
10893 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10894 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10895 is defined, call fill_fpxregset.
10897 2002-04-24 Roland McGrath <roland@frob.com>
10899 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10900 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10901 (supply_gregset, supply_fpregset): New functions.
10903 * gnu-nat.c (gnu_find_memory_regions): New function.
10904 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10905 (gnu_xfer_memory): Add a cast.
10907 2002-04-24 Michael Snyder <msnyder@redhat.com>
10909 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
10910 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10911 of argument regs ("str r(0123), [r11, #-nn"]).
10912 (arm_skip_prologue): Better handling for frameless functions.
10913 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10914 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10916 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
10918 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10919 NUM_PSEUDO_REGS can be used.
10921 2002-04-24 Andrew Cagney <ac131313@redhat.com>
10923 * arch-utils.h: Update copyright.
10925 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10926 * gdbarch.h, gdbarch.c: Re-generate.
10928 * inferior.h (IN_SIGTRAMP): Delete definition.
10929 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10930 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10932 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10933 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10934 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10935 (find_proc_framesize): Ditto.
10936 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10937 (alpha_init_extra_frame_info): Ditto.
10938 * infrun.c (handle_inferior_event): Ditto.
10939 (handle_inferior_event): Ditto.
10940 (check_sigtramp2): Ditto.
10941 * blockframe.c (create_new_frame): Ditto.
10942 (get_prev_frame): Ditto.
10943 * ppc-linux-tdep.c: Update comments.
10944 * i386-linux-tdep.c: Update comments.
10945 * breakpoint.c (bpstat_what): Update comment.
10947 2002-04-24 David S. Miller <davem@redhat.com>
10949 * i960-tdep.c (register_in_window_p): New function.
10950 (i960_find_saved_register): Use it instead of
10951 REGISTER_IN_WINDOW_P.
10952 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10954 * symtab.h (find_stab_function_addr): Kill extern.
10955 * minsyms.c (find_stab_function_addr): Remove from here...
10956 * dbxread.c: ... to here, and mark it static.
10958 2002-04-20 David S. Miller <davem@redhat.com>
10960 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10961 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10963 2002-04-21 David S. Miller <davem@redhat.com>
10965 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10966 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10967 (vx_write_register): Likewise.
10969 2002-04-23 J. Brobecker <brobecker@gnat.com>
10971 * source.c (is_regular_file): New function.
10972 (openp): Check wether file to open is a regular file
10973 to avoid opening directories.
10975 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10977 * findvar.c (extract_signed_integer): Cast printf argument
10978 to suppress format warning.
10979 (extract_unsigned_integer): Likewise.
10980 * infcmd.c (registers_info): Likewise.
10981 * top.c (get_prompt_1): Likewise.
10982 * valops.c (value_assign): Likewise.
10983 * valprint.c (print_decimal): Likewise.
10985 2002-04-22 H.J. Lu (hjl@gnu.org)
10987 * c-exp.y (typebase): Support
10989 [long|long long|short] [signed|unsigned] [int|]
10993 signed [long|long long|short] int
10995 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10997 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10999 * vax-tdep.h: New file.
11000 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11001 Make several routines static.
11002 (vax_get_saved_register): New function.
11003 (vax_gdbarch_init): New function.
11004 (_initialize_vax_tdep): Register vax_gdbarch_init.
11005 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11006 Remove macros now under the control of gdbarch.
11008 2002-04-22 Michael Snyder <msnyder@redhat.com>
11010 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11011 Some whitespace and coding standards tweaks.
11013 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11015 * vax-tdep.c: Include regcache.h.
11016 (vax_call_dummy_words): New.
11017 (sizeof_vax_call_dummy_words): New.
11018 (vax_fix_call_dummy): New function.
11019 (vax_saved_pc_after_call): Ditto.
11020 * config/vax/tm-vax.h: Don't include regcache.h.
11021 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11022 (CALL_DUMMY): Remove.
11023 (CALL_DUMMY_WORDS): Define.
11024 (SIZEOF_CALL_DUMMY_WORDS): Define.
11025 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11027 2002-04-18 Michael Snyder <msnyder@redhat.com>
11029 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11031 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11033 * vax-tdep.c (vax_frame_chain): New function.
11034 (vax_push_dummy_frame): Ditto.
11035 (vax_pop_frame): Ditto.
11036 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11037 (FRAMELESS_FUNCTION_INVOCATION): Use
11038 generic_frameless_function_invocation_not.
11039 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11040 (POP_FRAME): Use vax_pop_frame.
11042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11044 * vax-tdep.c (vax_store_struct_return): New function.
11045 (vax_extract_return_value): Ditto.
11046 (vax_store_return_value): Ditto.
11047 (vax_extract_struct_value_address): Ditto.
11048 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11049 vax_store_struct_return.
11050 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11051 (STORE_RETURN_VALUE): Use vax_store_return_value.
11052 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11054 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11056 * vax-tdep.c (vax_frame_saved_pc): New function.
11057 (vax_frame_args_address_correct): Ditto.
11058 (vax_frame_args_address): Ditto.
11059 (vax_frame_locals_address): Ditto.
11060 (vax_frame_num_args): Move code to be in proximity to
11061 other frame-related functions.
11062 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11063 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11064 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11065 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11066 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11068 2002-04-22 H.J. Lu (hjl@gnu.org)
11070 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11073 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11075 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11076 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11077 (FRAME_INIT_SAVED_REGS): New macro.
11079 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11081 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11083 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11085 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11087 (fetch_osf_core_registers): Likewise.
11088 (supply_gregset): Likewise.
11090 2002-04-22 J. Brobecker <brobecker@gnat.com>
11092 * symfile.h (get_section_index): Define.
11093 * symfile.c (get_section_index): New function.
11094 * mdebugread.c (SC_IS_SBSS): New macro.
11095 (SC_IS_BSS): Return true for the scBss storage class only, as
11096 the scSBss storage class refers to the .sbss section.
11097 (parse_partial_symbols): Discard the symbols which associated
11098 section does not exist.
11099 Make sure to use the .sbss section index for symbols which
11100 storage class is scBss, rather than using the .bss section index.
11102 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11104 * vax-tdep.c: Update copyright years.
11105 (vax_register_name): New function.
11106 (vax_register_byte): Ditto.
11107 (vax_register_raw_size): Ditto.
11108 (vax_register_virtual_size): Ditto.
11109 (vax_register_virtual_type): Ditto.
11110 * config/vax/tm-vax.h: Update copyright years.
11111 (REGISTER_NAMES): Remove.
11112 (REGISTER_NAME): Define.
11113 (REGISTER_BYTE): Use vax_register_byte.
11114 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11115 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11116 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11118 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11120 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11122 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11124 2002-04-21 David S. Miller <davem@redhat.com>
11126 * arch-utils.c (generic_prologue_frameless_p): Kill
11127 SKIP_PROLOGUE_FRAMELESS_P code.
11128 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11130 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11131 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11132 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11134 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11135 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11136 (sparc_gdbarch_init): Pass it to
11137 set_gdbarch_prologue_frameless_p.
11139 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11141 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11142 (alphabsd-nat.o): New dependency list.
11144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11146 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11148 (alpha-linux-tdep.o): New dependency list.
11149 (alphafbsd-tdep.o): Likewise.
11151 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11153 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11155 * alpha-tdep.c: ...from here.
11156 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11158 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11160 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11161 prototype from here...
11162 * alpha-tdep.h: ...to here.
11164 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11166 * frame.h (selected_frame_level): Document as deprecated.
11167 (frame_relative_level): Declare.
11168 * stack.c (frame_relative_level): New function.
11169 (selected_frame_level): Document as deprecated.
11170 (select_frame): Do not set the selected_frame_level.
11172 * stack.c (frame_info, record_selected_frame): Update.
11173 (frame_command, current_frame_command): Update.
11174 (up_silently_base, up_command, down_silently_base): Update.
11175 (down_command): Update.
11176 * inflow.c (kill_command): Update.
11177 * tracepoint.c (finish_tfind_command): Update.
11178 * corelow.c (core_open): Update.
11179 * thread.c (info_threads_command): Update.
11180 (do_captured_thread_select): Update.
11181 * infcmd.c (finish_command): Update.
11182 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11184 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11186 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11188 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11190 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11193 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11195 * alphafbsd-tdep.c: Update copyright years. Include
11197 (alphafbsd_use_struct_convention): Make static.
11198 (alphafbsd_init_abi): New function.
11199 (_initialize_alphafbsd_tdep): New function.
11200 * config/alpha/tm-fbsd.h: Update copyright years.
11201 (USE_STRUCT_CONVENTION): Remove.
11203 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11205 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11206 an Alpha ABI variant.
11207 (alpha_abi_handler_list): Declare.
11208 (alpha_gdbarch_register_os_abi): New function.
11209 (alpha_gdbarch_init): Give registered ABI variant handlers a
11210 chance to tweak the gdbarch once we have set up defaults.
11211 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11213 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11215 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11216 to standard_coerce_float_to_double.
11217 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11219 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11221 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11222 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11223 from gdbarch_tdep rather than a constant.
11224 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11225 the default text address for all Alpha Unix ABIs.
11226 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11227 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11229 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11231 * alpha-tdep.h: New file. Includes several Alpha target constants
11233 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11234 let gdbarch deal with.
11235 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11236 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11237 to dependency list.
11238 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11239 Alpha target register names.
11240 * alphabsd-nat.c: Likewise.
11241 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11242 Alpha target register names. Make serveral routines static.
11243 (alpha_get_saved_register): New function.
11244 (alpha_abi_names): New.
11245 (process_note_abi_tag_sections): New function.
11246 (get_elfosabi): New function.
11247 (alpha_gdbarch_init): New function.
11248 (alpha_dump_tdep): New function.
11249 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11251 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11253 * frame.c (find_saved_register): Delete #ifdef
11254 HAVE_REGISTER_WINDOWS code.
11255 * config/sparc/tm-sparc.h: Update comments.
11256 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11258 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11260 * i960-tdep.c (i960_find_saved_register): New function.
11261 (i960_get_saved_register): New function.
11262 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11263 (i960_get_saved_register): Declare.
11264 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11266 2002-04-20 David S. Miller <davem@redhat.com>
11268 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11270 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11272 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11273 instead of NUM_PSEUDO_REGS.
11275 2002-04-20 David S. Miller <davem@redhat.com>
11277 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11278 GDB_MULTI_ARCH_PARTIAL
11279 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11280 define, let tm-sp64.h do it.
11282 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11284 * frame.c (find_saved_register): Avoid a NULL pointer
11285 dereference and actually walk the frame list.
11287 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11289 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11290 sorted in most most-recent-used order. Document.
11291 * gdbarch.h, gdbarch.c: Regenerate.
11293 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11295 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11297 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11298 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11299 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11302 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11305 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11306 (build_builtin_type_vec128): Ditto.
11307 (append_composite_type_field): Fix calculation of type length in
11310 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11312 * config/djgpp/README: Update.
11314 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11317 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11319 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11320 (alpha_setup_arbitrary_frame): ...to this.
11321 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11322 for alpha_setup_arbitrary_frame.
11324 2002-04-18 Andrew Cagney <cagney@redhat.com>
11326 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11327 * gdbarch.h, gdbarch.c: Regenerate.
11329 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11330 * target.h (memory_breakpoint_from_pc): Update declaration.
11331 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11333 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11334 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11335 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11336 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11337 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11338 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11339 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11340 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11341 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11342 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11343 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11344 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11346 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11348 * monitor.c (monitor_insert_breakpoint): Ditto.
11349 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11351 * config/mcore/tm-mcore.h: Update copyright.
11352 * mem-break.c: Ditto.
11353 * xstormy16-tdep.c: Ditto.
11355 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11357 * p-exp.y: Add precedence rule for '^' token.
11358 This removes the shift/reduce conflicts.
11359 Remove the comment concerning these shift/reduce conflicts.
11361 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11363 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11364 (registers_powerpc_nofp): New register set for processors
11365 without floating point unit.
11367 2002-04-18 David S. Miller <davem@redhat.com>
11369 * MAINTAINERS: Add myself to write-after-approval.
11371 2002-04-17 Michael Snyder <msnyder@redhat.com>
11373 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11375 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11377 * rs6000-tdep.c (frame_initial_stack_address): Use
11378 frame_register_read to read the alloca_reg.
11380 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11382 * frame.c (find_saved_register): Find saved registers in the next
11386 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11388 * gdbarch.sh (LANG): Set to ``c''.
11390 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11392 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11394 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11396 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11399 * hpread.c (hpread_get_lntt): Add declaration.
11400 Also fix PR gdb/391.
11402 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11404 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11405 * aclocal.m4, configure: Re-generate.
11408 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11410 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11411 instead of tm_print_insn.
11413 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11415 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11417 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11419 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11420 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11421 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11423 2002-04-12 Don Howard <dhoward@redhat.com>
11425 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11426 max_user_call_depth.
11427 (init_cmd_lists): Initialize the new value;
11428 * cli/cli-script.c (execute_user_command): Limit the call depth of
11429 user defined commands. This avoids a core-dump when user commands
11430 are infinitly recursive.
11432 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11434 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11435 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11436 from tdep struct instead of DEFAULT_LR_SAVE.
11437 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11438 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11439 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11441 2002-04-12 Michael Snyder <msnyder@redhat.com>
11443 * Remote.c: Spelling fix.
11444 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11445 If no symbol found for "sbrk", try "_sbrk".
11446 (make_output_phdrs): Use bfd_section_name.
11447 (gcore_copy_callback): Use bfd_section_name.
11448 * eval.c: Indentation fix-ups.
11449 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11450 in case it gets applied to an address that is already
11451 in the instruction space.
11452 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11453 * symfile.c: Fix indentation, long lines.
11454 * source.c: White space fix-up.
11456 2002-04-12 Andrew Cagney <cagney@redhat.com>
11458 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11459 * frame.c (frame_register_read): New function. Return non-zero on
11461 (read_relative_register_raw_bytes_for_frame): Delete.
11462 (read_relative_register_raw_bytes): Delete.
11463 * frame.h (frame_register_read): Declare.
11464 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11465 * sh-tdep.c: Ditto.
11466 * infcmd.c (do_registers_info): Ditto.
11467 * hppa-tdep.c: Ditto.
11468 * rs6000-tdep.c: Ditto.
11469 * h8500-tdep.c: Ditto.
11470 * mips-tdep.c: Ditto.
11471 * h8300-tdep.c: Ditto.
11472 * z8k-tdep.c: Ditto.
11474 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11476 From Jimi X <jimix@watson.ibm.com>:
11477 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11480 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11482 From Jimi X <jimix@watson.ibm.com>:
11483 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11486 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11488 From Jimi X <jimix@watson.ibm.com>:
11489 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11490 register sets for these processor variants.
11492 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11494 * regformats/reg-ppc.dat: Support FPSCR.
11496 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11498 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11499 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11500 Add fpscr as an invalid/unfetchable register.
11501 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11502 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11503 (fill_fpregset): Add support for register fpscr.
11504 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11505 (fill_gregset): Account for the fact that register ``mq'' might
11507 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11508 (registers_power): Add fpscr to register set at slot 71.
11509 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11510 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11512 2002-04-11 Michael Snyder <msnyder@redhat.com>
11514 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11515 * configure: Regenerate.
11516 * config.in: Regenerate.
11517 * acconfig.h: Add define for _SYSCALL32.
11518 * core-sol2.c: Remove #define _SYSCALL32.
11519 * solib-legacy.c: Remove #define _SYSCALL32.
11521 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11523 * stack.c (select_frame): Cleanup internal error message, do not
11526 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11528 * stack.c (select_frame): Check that selected_frame and the
11529 specified level are as expected.
11530 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11532 * frame.h (struct frame_info): Add field `level'. Update
11534 Work-in-progress PR gdb/464.
11536 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11538 * maint.c (maint_print_section_info): Rename print_section_info.
11539 (print_bfd_section_info, print_objfile_section_info): Update.
11540 * inferior.h (struct gdbarch): Add opaque declaration.
11541 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11542 * gdbarch.h: Regenerate.
11544 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11546 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11547 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11548 (kernel_u_size): Added.
11549 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11550 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11552 2002-04-04 Jim Ingham <jingham@apple.com>
11554 * valarith.c (find_size_for_pointer_math): New function, either returns
11555 the size for a pointer's target, returns 1 for void *, or errors for
11557 (value_add, value_sub): use find_size_for_pointer_math.
11559 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11561 * linux-low.c (linux_look_up_symbols): New hook.
11562 (linux_target_ops): Add linux_look_up_symbols.
11563 * remote-utils.c (decode_address): New function.
11564 (look_up_one_symbol): New function.
11565 * server.c (handle_query): Call target look_up_symbols hook.
11566 * server.h (look_up_one_symbol): Add prototype.
11567 * target.h (struct target_ops): Add look_up_symbols hook.
11569 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11571 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11572 override FP_REGNUM with frame->fp. Update copyright.
11573 * parse.c (num_std_regs, std_regs): Delete.
11574 (target_map_name_to_register): Do not search std_regs. Update
11575 function description.
11576 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11577 declarations. Update copyright.
11580 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11582 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11583 after the last symbol in a block.
11585 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11587 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11588 is non zero as a found symbol.
11590 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11592 * findvar.c: Include "builtin-regs.h".
11593 (value_of_register): Call value_of_builtin_reg when applicable.
11594 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11595 (target_map_name_to_register): Call
11596 builtin_reg_map_name_to_regnum.
11597 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11598 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11599 (builtin_regs_h): Define.
11600 (builtin-regs.o): New target.
11601 (findvar.o): Add $(builtin_regs_h).
11602 * builtin-regs.c, builtin-regs.h: New files.
11603 * std-regs.c: New file.
11604 Partial fix for PR gdb/251.
11606 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11608 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11609 it's no longer required.
11611 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11613 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11615 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11617 From Jimi X <jimix@watson.ibm.com>:
11618 * rs6000-tdep.c (rs6000_software_single_step): Use
11619 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11620 and size. Use target_insert_breakpoint() and
11621 target_remove_breakpoint() to insert and remove breakpoints
11622 instead of explicit memory reads and writes.
11624 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11626 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11627 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11628 ELF_OBJECT_FORMAT ifdef.
11630 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11632 From Jimi X <jimix@watson.ibm.com>:
11633 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11635 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11637 From Jimi X <jimix@watson.ibm.com>:
11638 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11639 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11641 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11643 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11644 s/asprintf/xasprintf/.
11645 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11647 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11649 I believe Jeff Law denies responsability for this one:
11650 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11651 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11652 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11653 Work-around for PR gdb/366.
11655 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11657 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11658 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11659 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11661 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11663 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11664 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11667 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11669 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11672 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11674 * README (Reporting Bugs in GDB): Document the bug web page as the
11675 prefered way of submitting bugs.
11678 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11680 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11681 -1. Update comment.
11682 * gdbarch.h, gdbarch.c: Re-generate.
11684 2002-04-07 Andreas Schwab <schwab@suse.de>
11686 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11687 buffer to regcache_collect.
11689 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11691 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11692 * gdbarch.c, gdbarch.h: Re-generate.
11694 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11696 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11697 declaration. Fix -Werror.
11699 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11701 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11702 * gdbarch.c: Regenerate.
11704 2002-04-05 Michael Snyder <msnyder@redhat.com>
11706 * breakpoint.c (clear_command): Rewrite middle section to
11707 combine two loops with identical control conditions.
11708 Add a cleanup to eliminate a memory leak.
11709 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11711 2002-04-05 H.J. Lu (hjl@gnu.org)
11713 * solib-svr4.c (bkpt_names): Add "__start".
11715 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11717 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11718 as test for 64 bit target.
11720 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11722 * h8500-tdep.c (h8500_write_fp): Delete function.
11723 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11724 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11725 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11726 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11727 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11728 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11730 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11731 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11732 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11733 (d10v_write_fp): Delete function.
11734 * inferior.h (write_fp, generic_target_write_fp): Delete
11736 * regcache.c (generic_target_write_fp): Delete function.
11737 (write_fp): Delete function.
11738 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11739 * gdbarch.h, gdbarch.c: Regenerate.
11740 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11741 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11742 (sparc64_write_fp): Delete declaration.
11743 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11744 (h8500_write_fp): Delete declaration.
11746 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11748 * sparc-tdep.c (sparc64_write_fp): Delete.
11749 (sparc_push_dummy_frame): Replace write_fp call with code to store
11751 (sparc_gdbarch_init): Do not initialize write_fp.
11753 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11755 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11758 2002-03-29 Jim Blandy <jimb@redhat.com>
11760 * stack.c (get_selected_block): Add new argument `addr_in_block',
11761 used to return the exact code address we used to select the block,
11762 not just the block.
11763 * blockframe.c (get_frame_block, get_current_block): Same.
11764 * frame.h (get_frame_block, get_current_block,
11765 get_selected_block): Update declarations.
11766 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11767 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11769 2002-04-05 Michael Snyder <msnyder@redhat.com>
11771 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11774 2002-04-05 J. Brobecker <brobecker@gnat.com>
11776 * utils.c (xfullpath): New function.
11777 * defs.h (xfullpath): Add declaration.
11778 * source.c (openp): Use xfullpath in place of gdb_realpath to
11779 avoid resolving the basename part of filenames when the
11780 associated file is a symbolic link. This fixes a potential
11781 inconsistency between the filenames known to GDB and the
11782 filenames it prints in the annotations.
11783 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11784 to be able to match a filename with either the real filename, or
11785 the name of any symbolic link to this file.
11786 (lookup_partial_symtab): Ditto.
11788 2002-04-04 Michael Snyder <msnyder@redhat.com>
11790 * breakpoint.c: Add support for hardware breakpoints in overlays.
11791 (overlay_events_enabled): New state variable.
11792 (insert_breakpoints): Use overlay_events_enabled to decide
11793 whether to attempt to set a breakpoint at the overlay load addr.
11794 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11795 (remove_breakpoint): Use overlay_events_enabled to decide
11796 whether breakpoints need to be removed from overlay load addr.
11797 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11798 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
11799 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
11800 disable_overlay_breakpoints): Update overlay_events_enabled.
11802 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
11804 * dwarf2read.c (struct function_range): New.
11805 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11806 (check_cu_functions): New.
11807 (read_file_scope): Initialize global function lists.
11808 Call dwarf_decode_line after processing children.
11809 (read_func_scope): Add to global function list.
11810 (dwarf_decode_lines): Call check_cu_functions everywhere
11811 record_line is called. Call record_line with a linenumber
11812 of 0 to mark sequence ends.
11814 2002-04-04 Michal Ludvig <mludvig@suse.cz>
11816 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
11817 change sync with glibc.
11819 2002-04-03 Jim Blandy <jimb@redhat.com>
11821 * configure.in: Call AC_C_INLINE.
11822 * configure: Regenerated.
11824 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
11826 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11827 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11829 2002-03-31 Mark Kettenis <kettenis@gnu.org>
11831 * NEWS: Mention gcore support on FreeBSD/i386.
11833 * fbsd-proc.c: New file.
11834 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11835 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11837 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11840 2002-03-29 Jim Blandy <jimb@redhat.com>
11842 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11843 unescaped newlines in string literals, but newer ones don't. So
11846 2002-03-26 Michael Snyder <msnyder@redhat.com>
11847 Andrew Cagney <cagney@redhat.com>
11849 * cli/cli-dump.c: New file. Dump memory to file,
11850 restore file to memory.
11851 * cli/cli-dump.h: New file.
11852 * Makefile.in: Add rules, dependencies for cli-dump.o.
11853 * NEWS: Mention new commands.
11855 2002-03-28 Michael Snyder <msnyder@redhat.com>
11857 * symfile.c (symbol_file_add): Move test for null symbols to later.
11859 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11861 From veksler at il.ibm.com:
11862 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11863 the xstrduped original path.
11866 2002-03-27 Michael Snyder <msnyder@redhat.com>
11868 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11869 * infcmd.c (_initialize_infcmd): Ditto.
11870 * language.c (_initialize_language): Ditto.
11871 * symfile.c (_initialize_symfile): Ditto.
11872 * top.c (_init_main): Ditto.
11873 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11875 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
11877 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11878 vector registers handling.
11879 (skip_prologue): Handle new AltiVec instructions. Fill in new
11880 fields of frame data.
11881 (frame_get_saved_regs): Fill in information for AltiVec registers.
11883 2002-03-27 Jim Blandy <jimb@redhat.com>
11885 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11886 a function; leave this macro here to invoke that function.
11887 (symbol_init_mangled_name): Declaration for that function.
11888 * symtab.c (symbol_init_mangled_name): New function.
11890 2002-03-27 Andrew Cagney <ac131313@redhat.com>
11892 * valarith.c: Replace strerror with safe_strerror.
11893 * tracepoint.c: Ditto.
11894 * lin-lwp.c: Ditto.
11895 * go32-nat.c: Ditto.
11897 * gnu-nat.c: Ditto.
11899 2002-03-27 Andreas Schwab <schwab@suse.de>
11901 * event-top.c (command_line_handler): Remove useless if.
11903 2002-03-27 Andreas Jaeger <aj@suse.de>
11905 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11908 2002-03-27 Michal Ludvig <mludvig@suse.cz>
11910 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11911 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11912 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11913 (x86_64_linux_dr_get_status, supply_gregset),
11914 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11915 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11916 (x86_64_register_info_table): Add.
11917 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11918 (x86_64_register_raw_size, x86_64_register_virtual_type),
11919 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11920 general x86_64_register_info_table.
11921 (i386_gdbarch_init): gdbarch_register_bytes is now set
11922 dynamicaly during initialization.
11923 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11924 * gdbserver/linux-x86-64-low.c: Ditto.
11926 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11928 * gdbserver/server.c (main): Call target_signal_to_host_p
11929 and target_signal_to_host on signals received from the remote.
11930 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11931 target_signal_from_host on signals sent to the remote.
11932 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11933 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11935 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11937 * signals/signals.c: Include "server.h" in gdbserver build.
11938 (target_signal_from_name): Don't use STREQ.
11939 (_initialize_signals): Likewise. Don't include function in
11942 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
11944 * signals.c: Moved to...
11945 * signals/signals.c: Here.
11946 * Makefile (signals.o): Update.
11948 2002-03-26 Jeff Law (law@redhat.com)
11950 * somread.c (som_symtab_read): Remove some commented out code and
11951 updated related comments. Do not set the minimal symbol table to
11952 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11953 in a dynamic executable.
11954 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11955 where we are unable to find the minimal symbol for the given
11958 2002-03-25 Jeff Law (law@redhat.com)
11960 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11962 2002-03-25 Michal Ludvig <mludvig@suse.cz>
11964 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11966 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11968 * command.h: Update copyright.
11969 (struct cmd_list_element): Replace definition with opaque
11971 (enum cmd_types): Document that it will eventually be moved to
11973 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11974 (MALLOCED_REPLACEMENT): Delete macro.
11975 * Makefile.in (cli_decode_h): Add $(command_h).
11976 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
11977 * top.c: Include "cli/cli-decode.h".
11978 * completer.c: Include "cli/cli-decode.h".
11979 * maint.c: Include "cli/cli-decode.h".
11980 * cli/cli-decode.h: Include "command.h".
11981 (enum command_class): Delete.
11982 (enum cmd_types): Comment out.
11983 (enum cmd_auto_boolean): Delete.
11984 (enum var_types): Delete.
11986 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11988 * cli/cli-decode.c: Include "gdb_assert.h".
11989 (add_set_or_show_cmd): New static function.
11990 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11991 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11992 all fields, such as func, from the set command.
11994 2002-03-23 Andrew Cagney <ac131313@redhat.com>
11996 * MAINTAINERS (sh-elf): Change warning flag to -w.
11998 2002-03-23 Andrew Cagney <cagney@redhat.com>
12000 * defs.h (error): Add printf format attribute.
12001 * thread-db.c (thread_from_lwp): Fix error format string.
12002 * stack.c (parse_frame_specification): Ditto.
12003 * cli/cli-decode.c (undef_cmd_error): Ditto.
12004 * scm-lang.c (scm_lookup_name): Ditto.
12005 * tracepoint.c (trace_error): Ditto.
12006 * remote-utils.c (usage): Ditto.
12007 * remote.c (compare_sections_command): Ditto.
12010 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12012 * gdbtypes.c (append_composite_type_field): New function.
12013 (init_composite_type): New function.
12014 * gdbtypes.h (append_composite_type_field): Declare.
12015 (init_composite_type): Ditto.
12017 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12019 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12021 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12022 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12023 structure returning convention for SYSV ABI case, but not
12024 for GNU/Linux, FreeBSD, or NetBSD.
12026 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12028 * symtab.h (lookup_block_symbol): Add mangled_name argument
12031 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12032 with new mangled_name argument.
12033 * linespec.c (decode_line_1): Likewise.
12034 * valops (value_of_this): Likewise.
12035 * symtab.c (lookup_transparent_type): Likewise.
12036 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12037 (lookup_symbol): If we are given a mangled name, pass it down
12038 to lookup_symbol_aux.
12039 (lookup_block_symbol): If we are given a mangled name to check
12040 against, only return symbols which match it.
12042 2002-03-22 Christopher Faylor <cgf@redhat.com>
12044 * win32-nat.c (child_create_inferior): Check for proper shell to use
12045 here, in case the user changes it on the fly.
12046 (_initialize_inftarg): Remove shell path considerations.
12048 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12050 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12051 for gdbarch_max_register_raw_size and max_register_virtual_size.
12052 Adjust copyright year.
12054 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12056 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12057 in a function to cover the entire beginning of the function
12058 as well if it does not already.
12060 2002-03-21 Tom Rix <trix@redhat.com>
12062 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12063 (rs6000_ptrace64): Renamed from ptrace64.
12065 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12067 * gdbserver/remote-utils.c (remote_open): Don't call
12068 getprotobyname, we're all using TCP here so just use
12070 * gdbserver/gdbreplay.c (remote_open): Ditto.
12072 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12074 * regcache.c (_initialize_regcache): No need to call
12075 build_regcache() at this time; it gets called whenever
12076 the gdbarch changes.
12078 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12080 * sparc-nat.c: Include sys/param.h where possible.
12082 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12085 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12086 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12087 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12089 * stabsread.c (rs6000_builtin_type): Likewise.
12090 (read_sun_floating_type): Likewise.
12092 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12094 * stabsread.c (read_member_functions): Remove skip code for duplicate
12095 constructor/destructor methods. Use standard parsing for these
12096 methods and just do not chain them to the list of methods after
12099 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12101 * coffread.c: Remove redundant static declarations. Replace
12102 occurrences of `PTR' with `void *'.
12103 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12104 * top.h (quit_cover): Likewise.
12105 * defs.h (catch_errors): Likewise.
12107 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12109 * defs.h (XMALLOC): Define.
12110 * gdb-events.sh (XMALLOC): Delete macro.
12111 * gdb-events.c, gdb-events.h: Regenerate.
12112 * gdbarch.sh (XMALLOC): Delete macro.
12113 * gdbarch.c: Regenerate.
12114 * serial.c (XMALLOC): Delete macro.
12115 * ui-file.c (XMALLOC): Ditto.
12116 * ser-unix.h (XMALLOC): Ditto.
12117 * sh-tdep.c (XMALLOC): Ditto.
12118 * ui-out.c (XMALLOC): Ditto.
12119 * utils.c (XMALLOC): Ditto.
12120 * i386-tdep.c (XMALLOC): Ditto.
12121 * gdb-events.c (XMALLOC): Ditto.
12122 * d10v-tdep.c (XMALLOC): Ditto.
12123 * cli-out.c (XMALLOC): Ditto.
12125 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12126 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12127 * ui-file.c, ui-out.c: Ditto.
12129 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12131 * command.h (struct cmd_list_element): Add field context.
12132 (set_cmd_context, get_cmd_context): Declare.
12133 * cli/cli-decode.h: Ditto.
12134 * cli/cli-decode.c (get_cmd_context): New function.
12135 (set_cmd_context): New function.
12136 (add_cmd): Initialize context.
12137 Part of fixing PR gdb/145 and PR gdb/146.
12139 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12141 * cli/cli-decode.c (cmd_type): New function.
12142 * command.h (cmd_type): Declare.
12143 * infrun.c (set_schedlock_func): Call function cmd_type.
12144 * kod.c (kod_set_os): Call cmd_type.
12145 * cris-tdep.c (cris_version_update): Use function cmd_type.
12146 (cris_mode_update, cris_abi_update): Ditto.
12148 * command.h: (execute_cmd_post_hook): Declare.
12149 (execute_cmd_pre_hook): Declare.
12150 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12151 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12152 functions. Execute pre/post hook while ensuring that afterwords
12153 hook_in is cleared.
12154 * top.c (execute_command): Use execute_cmd_post_hook, and
12155 execute_cmd_pre_hook to execute pre/post commands.
12156 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12158 (hook_stop_stub): Call execute_cmd_pre_hook.
12160 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12162 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12163 set'' and this leads to a core dump. Move xstrdup of
12164 operating_system to after check that it is not NULL.
12166 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12168 * kod.c (kod_set_os): Remove unnecessary check that
12169 ``command->type'' is set_cmd.
12171 * valprint.c (set_input_radix): Use input_radix.
12172 (set_output_radix): Use output_radix.
12173 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12176 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12178 * value.h (struct value): Delete field ``substring_addr''. Change
12179 aligner fields to force_doublest_align, force_longest_align,
12180 force_core_addr_align and force_pointer_aligh.
12182 * value.h (struct value): Fix typo in above change.
12184 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12186 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12187 to fix internal_error from ``maintenance print architecture''.
12189 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12191 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12192 for gcc versions after gcc-2.8.1.
12194 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12196 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12197 for method resolution. Restore adjustment of ``this'' pointer after
12198 calling value_struct_elt, which was accidentally removed during the
12201 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12203 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12205 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12206 get_saved_register.
12207 * value.h (value_of_register): Update.
12209 2002-03-14 Richard Henderson <rth@redhat.com>
12211 * configure.in: Detect declaration for canonicalize_file_name.
12212 * utils.c (canonicalize_file_name): Declare, if needed.
12213 (gdb_realpath): Prefer realpath if available and usable.
12214 * config.in, configure: Rebuild.
12216 2002-03-14 Richard Henderson <rth@redhat.com>
12218 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12219 a constant array bound.
12221 * MAINTAINERS: Add myself to write-after-approval.
12223 2002-03-14 Michael Snyder <msnyder@redhat.com>
12225 * symfile.c (syms_from_objfile): Return immediately if no syms.
12226 (symbol_file_add): Return immediately if no syms.
12227 (find_sym_fns): Return immediately if no syms.
12229 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12231 * gdbserver/remote-util.c (remote_open): Print remote-side's
12232 IP address when remote debugging over the network.
12234 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12236 * config/sparc/fbsd.mh: Fix copyright.
12237 * config/sparc/fbsd.mt: Likewise.
12239 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12241 * MAINTAINERS: Fix typo in name of gdb warnings option.
12242 (x86-64): Fix formating so that this can be parsed by awk.
12244 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12246 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12247 * defs.h: Include "gdb/signals.h".
12248 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12250 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12252 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12253 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12256 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12257 Don Howard <dhoward@redhat.com>
12259 * mips-tdep.c (ST0_FR): Define.
12260 (mips2_fp_compat): New function, temporarily disabled.
12261 (mips_read_fp_register_single): New function.
12262 (mips_read_fp_register_double): New function.
12263 (mips_print_register): Use them.
12264 (do_fp_register_row): Likewise.
12266 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12268 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12271 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12273 * stabsread.c (read_member_functions): Fix is_stub test for
12274 static member functions, improve comment.
12276 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12278 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12279 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12280 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12281 commands that set boolean values.
12282 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12283 (arm_rdi_resume): Always initialize PC.
12284 (arm_rdi_open): Don't use rslt as a boolean.
12285 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12286 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12287 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12288 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12290 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12292 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12293 * configure: Rebuilt.
12295 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12297 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12298 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12300 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12302 * cli/cli-decode.c (set_cmd_completer): New function.
12303 * command.h (set_cmd_completer): Declare.
12304 * cli/cli-decode.h (set_cmd_completer): Ditto.
12306 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12307 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12308 * win32-nat.c (_initialize_inftarg): Ditto.
12309 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12310 * proc-api.c (_initialize_proc_api): Ditto.
12311 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12312 * source.c (_initialize_source): Ditto.
12313 * exec.c (_initialize_exec): Ditto.
12314 * solib.c (_initialize_solib): Ditto.
12315 * top.c (init_main): Ditto.
12316 * tracepoint.c (_initialize_tracepoint): Ditto.
12317 * symfile.c (_initialize_symfile): Ditto.
12318 * printcmd.c (_initialize_printcmd): Ditto.
12319 * infcmd.c (_initialize_infcmd): Ditto.
12320 * corefile.c (_initialize_core): Ditto.
12322 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12324 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12326 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12328 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12330 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12332 * NEWS: Update headings, 5.2 has branched.
12334 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12336 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12337 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12338 (register_addr, REGISTER_RAW_SIZE): Likewise.
12339 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12340 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12342 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12344 * MAINTAINERS (x86-64): Add myself.
12345 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12346 changed value_ptr -> struct value *
12348 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12350 * configure.host (sparc64-*-freebsd): Add.
12351 * configure.tgt: Likewise.
12352 * config/sparc/fbsd.mh: New file.
12353 * config/sparc/fbsd.mt: Likewise.
12354 * config/sparc/nm-fbsd.h: Likewise.
12355 * config/sparc/tm-fbsd.h: Likewise.
12357 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12359 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12360 regformats/reg-s390x.dat.
12362 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12364 * utils.c: Add FIXME explaining true/false problem.
12366 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12368 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12370 2002-02-28 Michael Chastain <mec@shout.net>
12372 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12374 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12376 * gdbserver/linux-s390-low.c: New file.
12377 * regformats/reg-s390.dat: New file.
12378 * regformats/reg-s390x.dat: New file.
12379 * gdbserver/configure.srv: Add S/390.
12380 * gdbserver/Makefile.in: Add S/390.
12381 * configure.tgt: Enable gdbserver for S/390.
12383 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12385 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12386 first line of the doc string for "info dos", except at the end of
12387 the sentence, since the short help stops at the first period.
12389 2002-02-28 Jason Merrill <jason@redhat.com>
12391 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12393 2002-02-27 Fred Fish <fnf@redhat.com>
12395 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12396 comment (dumy -> dummy).
12398 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12400 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12402 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12404 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12406 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12408 * gdbserver/acconfig.h: New file.
12409 * gdbserver/i387-fp.c: New file.
12410 * gdbserver/i387-fp.h: New file.
12411 * gdbserver/linux-x86-64.c: New file.
12412 * regformats/reg-x86-64.dat: New file.
12413 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12414 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12415 * gdbserver/configure.in: Add support for regsets.
12416 * gdbserver/config.in: Regenerate.
12417 * gdbserver/configure: Regenerate.
12418 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12419 * gdbserver/linux-low.h: New file.
12420 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12422 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12423 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12424 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12425 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12426 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12427 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12428 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12429 "i387-fp.h". Add PTRACE_GETREGS and friends.
12430 * gdbserver/regcache.c (supply_register): New function.
12431 (supply_register_by_name): New function.
12432 (collect_register): New function.
12433 (collect_register_by_name): New function.
12435 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12437 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12438 (config.status): Add configure.srv dependency.
12439 (server_h): Add config.h dependency.
12441 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12443 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12444 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12445 * gdbserver/configure.srv: Change i386-*-linux* to use
12448 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12450 * x86-64-tdep.c: Re-indent. Update copyright date.
12452 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12454 From Michal Ludvig <mludvig@suse.cz>:
12455 * x86-64-tdep.c (value.h): Delete.
12456 (gdb_assert.h): Include.
12457 (x86_64_register_convert_to_virtual,
12458 x86_64_register_convert_to_raw ): Add check which lets only
12459 floating-point values to be converted.
12460 (value_push): Delete.
12461 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12462 (i386_gdbarch_init): Number of register_bytes fixed.
12464 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12466 * MAINTAINERS: Add x86-64 target.
12468 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12470 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12471 * osfsolib.c (solib_map_sections): Ditto.
12472 * irix5-nat.c (solib_map_sections): Ditto.
12473 * corelow.c (gdb_check_format): Ditto.
12474 * symfile.c (symfile_bfd_open): Ditto.
12475 * solib.c (solib_map_sections): Ditto.
12478 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12480 * remote.c (_initialize_remote): By default, disable ``e'' and
12481 ``E'' step out-of-range packets.
12483 2002-02-26 Andreas Schwab <schwab@suse.de>
12485 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12486 m68k_linux_frame_saved_pc.
12487 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12489 (SIGCONTEXT_PC_OFFSET): Remove.
12490 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12491 m68k_linux_sigtramp_saved_pc): New functions.
12492 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12493 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12494 (UCONTEXT_PC_OFFSET): Define.
12495 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12496 non-RT and RT signal trampolines.
12498 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12500 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12501 (TARGET_NBPG, STACK_END_ADDR): Delete
12502 (VARIABLES_INSIDE_BLOCK): Delete.
12504 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12506 * utils.c (perror_with_name): Make string parameter constant.
12507 (print_sys_errmsg): Ditto.
12509 * defs.h (perror_with_name): Update.
12510 (print_sys_errmsg): Update.
12513 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12515 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12516 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12518 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12520 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12521 if it already matches the current architecture from the exec file.
12522 Include arch-utils.h for gdbarch_info_init prototype.
12523 * Makefile.in (rs6000-nat.o): Update dependencies.
12525 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12527 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12528 list of exported variables.
12530 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12532 * gdbserver/configure.srv: New file.
12533 * gdbserver/configure.in: Use configure.srv instead
12534 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12536 * gdbserver/configure: Regenerated.
12537 * gdbserver/terminal.h: New file.
12538 * gdbserver/Makefile.in: Update for configure changes. Remove
12539 more unneeded include paths.
12541 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12543 From wiz at danbala:
12544 * config/sparc/tm-sp64.h: Fix grammar and typos.
12547 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12549 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12550 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12551 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12552 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12553 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12554 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12555 * s390-tdep.c: Ditto.
12556 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12557 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12558 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12559 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12560 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12561 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12562 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12563 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12564 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12565 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12568 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12570 * lin-thread.c: Delete file.
12571 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12572 to gdb_proc_service.h.
12573 * configure: Re-generate.
12575 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12576 * serial.c (serial_open): Delete check for "ocd".
12579 * Makefile.in (linux-thread.o): Delete target.
12580 * linux-thread.c: Delete file.
12582 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12583 renamed SH files to be consistent.
12585 * symtab.c (sort_search_symbols): Use xfree.
12587 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12589 * arm-linux-tdep.c (arm_linux_init_abi): Register
12590 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12591 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12592 definition with undef, since we don't want the sysvr4 definition.
12593 (SKIP_TRAMPOLINE_CODE): Likewise.
12595 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12597 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12599 * configure.in: (AC_CHECK_FUNCS) Added test for
12600 canonicalize_file_name Regenerated.
12601 * config.in, configure: Regenerated.
12602 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12603 defined use canonicalize_file_name.
12605 2002-02-23 Michael Chastain <mec@shout.net>
12607 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12609 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12611 * README: Remove references to cygnus.com.
12612 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12613 dot com'' form. Remove references to cygnus.com and sourceware.
12615 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12617 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12618 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12619 1003.1-2001 no longer allows "head -1".
12620 * gdb/Makefile.in (version.c): Likewise.
12621 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12622 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12623 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12625 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12627 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12628 * command.h (cmd_cfunc_eq): Declare.
12629 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12631 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12632 ``struct cmd_list_element *''.
12633 * cli/cli-cmds.c (is_complete_command): Update. Use
12635 * top.c (execute_command): Pass the command to
12636 is_complete_command.
12637 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12639 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12641 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12642 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12643 architecture defines.
12644 * s390-tdep.c (s390_gdbarch_init): Likewise.
12646 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12648 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12649 (arm_linux_push_arguments): Likewise.
12650 (arm_linux_init_abi): Register them. Also register linux-specific
12652 (find_minsym_and_objfile): Use strcmp, not STREQ.
12653 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12654 (arm_linux_call_dummy_words): Delete declaration.
12655 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12656 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12658 (LOWEST_PC): Delete.
12660 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12662 * maint.c (print_section_info): Do not prepend `0x' to filepos
12663 output, it will be handled by local_hex_string_custom.
12665 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12667 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12668 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12669 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12671 2002-02-22 Jim Blandy <jimb@redhat.com>
12673 Indicate that the bcache functions don't change the strings
12675 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12676 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12678 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12680 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12682 2002-02-21 Christopher Faylor <cgf@redhat.com>
12684 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12685 find the complete path to a loaded DLL.
12687 2002-02-21 Fred Fish <fnf@redhat.com>
12689 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12690 that marks the end of the range of a function, enter a line number
12691 entry that has a line number of zero and a PC offset that matches
12692 the end of the function. This starts a range of PC's for which no
12693 line number information is known.
12694 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12695 PC's for which no line number info is found (line number is zero)
12696 then we didn't find any valid line information.
12697 * symtab.h: Document use of zero line number entry.
12699 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12701 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12702 (have_ptrace_getvrregs): Define for run time checks.
12703 (gdb_vrregset_t): New type for Altivec register handling.
12704 (fetch_register, store_register): Fetch/store altivec register
12706 (fetch_altivec_register, store_altivec_register): New functions.
12707 (supply_vrregset, fill_vrregset): New functions.
12708 (fetch_altivec_registers, store_altivec_registers): New functions.
12709 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12712 2002-02-21 Jiri Smid <smid@suse.cz>
12714 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12716 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12718 * Makefile.in (armnbsd-nat.o): Update dependencies.
12719 * armnbsd-nat.c (supply_gregset): New function. Common code to
12720 supply the integer register set.
12721 (supply_fparegset): New function. Similar for FPA registers.
12722 (fetch_regs, fetch_fp_regs): Use them.
12723 (fetch_core_registers): Likewise.
12724 (fetch_elfcore_registers): New function.
12725 (arm_netbsd_elfcore_fns): New core-file type specification.
12726 (_initialize_arm_netbsd_nat): Register it.
12728 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12730 * armnbsd-nat.c: Include gdbcore.h.
12731 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12732 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12733 'void' to declaration, to shut up ARI.
12734 (fetch_core_registers): Make static. Rewrite using supply_register.
12735 (arm_netbsd_core_fns): New core-file type specification.
12736 (_initialize_arm_netbsd_nat): New function.
12738 2002-02-21 Christopher Faylor <cgf@redhat.com>
12740 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12743 2002-02-20 Christopher Faylor <cgf@redhat.com>
12745 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12748 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12750 * jv-exp.y (parse_number): Change type of implicit longs
12751 to builtin_type_uint64.
12753 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12755 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12756 to be an integer instead of a `union wait'.
12758 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12760 * mips-linux-nat.c: Call the operating system GNU/Linux.
12761 * mips-linux-tdep.c: Likewise.
12762 * mips-tdep.c: Likewise.
12764 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12767 * jv-exp.y (parse_number): Handle 64-bit integers.
12769 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12771 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12772 AC_STDC_HEADERS to AC_HEADER_STDC.
12773 * gdbserver/configure: Regenerated.
12775 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12777 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12779 * sparc-tdep.c (get_longjmp_target): Likewise.
12781 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
12783 * News: Add news about ARM and Multi-arch. Mention the new target
12786 2002-02-19 Jim Blandy <jimb@redhat.com>
12788 * stabsread.c (error_type_complaint): Improve error message.
12790 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
12792 * gdbserver/README: Update documentation.
12793 * gdbserver/configure.in: Update configury to match documentation.
12794 * gdbserver/Makefile.in: Likewise.
12795 * gdbserver/configure: Regenerated.
12796 * gdbserver/aclocal.m4: New file, generated by aclocal.
12797 * gdbserver/config.in: New file, generated by autoheader.
12799 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12801 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12804 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12806 * arm-tdep.h (enum arm_float_model): New enum.
12807 (struct gdbarch_tdep): Add fp_model.
12808 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12809 up floating-point conversions until we know the floating-point model
12810 in use by the inferior. Don't complain about being unable to
12811 determine the ABI of the inferior when we don't have one.
12812 (arm_extract_return_value): Support different floating-point models.
12813 (arm_store_return_value): Likewise.
12814 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
12816 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12818 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12820 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12821 of ``current_gdbarch''.
12823 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12825 * armnbsd-nat.c : ANSIfy all function declarations.
12826 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12827 (fetch_inferior_registers): Re-implement in terms of above.
12828 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12829 (store_inferior_registers): Re-implement in terms of above.
12831 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12833 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
12835 * arm-linux-tdep.c: Likewise.
12836 * config/arm/tm-linux.h: Likewise.
12838 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12840 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12841 * config/arm/nbsd.mt (TM_FILE): Delete.
12842 * config/arm/tm-nbsd.h: Delete.
12844 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12846 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12847 Initialize CALL_DUMMY_LENGTH.
12849 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
12851 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12853 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
12854 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
12855 defines one thing and that is incorrect for this port.
12856 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12858 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12860 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12862 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
12864 * win32-nat.c (display_selector): New function. Displays information
12865 about the information returned by GetThreadSelectorEntry API function.
12866 (display_selectors): New function. Displays the infomation of
12867 the selector given as argument, or of CS, DS ans FS selectors
12868 if no argument is given.
12869 ( _initialize_inftarg): Add "w32" as info prefix command.
12870 Add "info w32 selector" as command calling display_selectors.
12872 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
12874 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12875 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12878 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12880 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12882 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12884 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12885 (arm_fix_call_dummy): Call it.
12886 (arm_call_dummy_breakpoint_offset): Delete.
12887 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12888 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12890 2002-02-18 Andrew Cagney <ac131313@redhat.com>
12892 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12893 Default to func_frame_chain_valid.
12894 * gdbarch.h, gdbarch.c: Re-generate.
12895 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12897 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
12899 * ppc-linux-nat.c: Update copyright.
12900 (fetch_register, store_register): Add tid parameter, don't compute
12902 (fetch_ppc_registers, store_ppc_registers): Add tid
12903 parameter. Pass it along to callees.
12904 (fetch_inferior_registers, store_inferior_registers): Compute tid
12905 here, and pass it to calleed functions.
12906 (fill_gregset, supply_fpregset): Clean up formatting.
12908 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12910 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12911 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12913 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
12915 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12916 * gdbarch.c gdbarch.h: Regenerate.
12917 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12919 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12920 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12921 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12923 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12924 * arm-tdep.c (arm_get_longjmp_target): New function.
12925 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12926 this to a positive value register arm_get_longjmp_target as the
12928 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12929 (arm_linux_init_abi): Set up longjmp description in tdep.
12930 * armnbsd-nat.c (get_longjmp_target): Delete.
12931 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12932 description in tdep.
12933 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12934 (get_longjmp_target): Delete declaration.
12935 (GET_LONGJMP_TARGET): Delete.
12936 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12937 (GET_LONGJMP_TARGET): Delete.
12939 2002-02-17 Kevin Buettner <kevinb@redhat.com>
12941 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
12942 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12943 of ``current_gdbarch''.
12945 2002-02-17 Tom Tromey <tromey@redhat.com>
12947 * cli/cli-cmds.c (compare_strings): New function.
12948 (complete_command): Only print each unique item once.
12949 * completer.h (complete_line): Declare.
12950 * completer.c (complete_line): New function.
12951 (line_completion_function): Use it.
12953 2002-02-16 Andrew Cagney <ac131313@redhat.com>
12955 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12956 * gdbarch.h, gdbarch.c: Re-generate.
12958 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12960 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12962 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
12964 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
12965 * valops.c (value_arg_coerce): Don't take the address of a reference
12966 to convert an argument to a reference.
12968 2002-02-15 Christopher Faylor <cgf@redhat.com>
12970 * win32-nat.c (get_image_name): New function.
12971 (handle_load_dll): Use get_image_name function.
12972 (get_child_debug_event): Avoid registering debug events until possibly
12973 execed process is started.
12974 (child_create_inferior): Allow invocation via shell so that command
12975 line redirection, etc. works ok.
12976 (_initialize_inftarg): Add new command: "set shell" to control whether
12977 a shell is used to start a process.
12979 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12981 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12982 instead of find_register_by_number.
12983 (cannot_store_register): Likewise.
12985 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
12987 * dwarf2read.c: Replace fprintf (stderr, ...) by
12988 fprintf_unfiltered (gdb_stderr, ...).
12990 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
12992 * gdbserver/gdbserver.1: Document --attach.
12994 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
12996 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12998 * arm-tdep.c (arm_default_arm_le_breakpoint)
12999 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13000 (arm_default_thumb_be_breakpoint): New. Initialize them from
13001 traditional breakpoint defines.
13002 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13003 (arm_gdbarch_init): Initialize new breakpoint variables.
13004 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13005 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13006 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13007 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13009 (arm_netbsd_init_abi_common): ... here; new function.
13010 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13011 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13012 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13013 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13015 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13017 * arm-tdep.h (enum arm_abi): New enum.
13018 (struct gdbarch_tdep): New structure.
13019 (LOWEST_PC): Provide a default.
13020 (arm_gdbarch_register_os_abi): Declare new function.
13021 * arm-tdep.c (arm_abi_names): New array.
13022 (process_note_abi_tag_sections): New function.
13023 (get_elfosabi): New function.
13024 (arm_gdbarch_register_os_abi): New function.
13025 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13026 support for that ABI has been built in, then call the appropriate
13027 configuration routine. Use gdbarch_num_regs() to get the number
13029 (arm_dump_tdep): New function.
13030 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13031 place-holder functions.
13032 (_initialize_arm_tdep): Register them.
13033 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13035 * armnbsd-tdep.c: New file.
13036 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13037 * config/arm/nbsd.mt (TDEPFILES): Add it.
13038 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13040 * armnbsd-nat.c: Include regcache.h.
13041 * Makefile.in (armnbsd-nat.o): Update dependency list.
13043 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13045 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13047 * gdbserver/Makefile.in: Fix typos in target rules.
13049 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13051 Fix part of PR gdb/267.
13052 * linespec.c (find_methods): Handle constructors specially for now.
13054 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13056 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13058 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13059 standard_coerce_float_to_double().
13061 2002-02-14 Christopher Faylor <cgf@redhat.com>
13063 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13066 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13068 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13069 find_variant_by_name, because it confuses the multiarch
13070 framework. Return NULL if there isn't an architecture with the
13071 user supplied name, instead of forcing a different one without
13072 recording the change with the multiarch machinery.
13073 (find_variant_by_name): Delete.
13075 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13077 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13078 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13080 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13082 * stack.c (print_frame_info_base): When calling
13083 print_frame_info_listing_hook, set current_source_symtab.
13085 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13087 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13088 and remove unused $(INCLUDE_DIR).
13089 Add regcache.c to OBS.
13090 Add generated register protocol files to clean target.
13091 Update dependencies for new objects, obsolete old target code.
13093 * gdbserver/linux-low.c: Remove all platform-specific code to
13094 new files. Remove various dead code. Update to use regcache
13096 * gdbserver/remote-utils.c (fromhex): Add return statement
13098 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13100 (input_interrupt): Add integer parameter to match prototype
13101 of a signal handler.
13102 (outreg): Use register_data ().
13103 (prepare_resume_reply): Use gdbserver_expedite_regs.
13104 * gdbserver/server.c (main): Dynamically allocate own_buf because
13105 PBUFSIZ is no longer constant. Use registers_to_string () and
13106 registers_from_string ().
13107 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13108 for error (), fatal (), and warning (). Update definition of
13109 PBUFSIZ to use regcache functionality. Add include guard.
13110 * gdbserver/utils.c (fatal): Add missing ``const''.
13111 (warning): New function.
13113 * regformats/regdat.sh: Include "regcache.h" in generated files.
13114 Provide init_registers () function.
13115 * regformats/regdef.h: Add prototype for set_register_cache ().
13118 * gdbserver/linux-arm-low.c: New file.
13119 * gdbserver/linux-i386-low.c: New file.
13120 * gdbserver/linux-ia64-low.c: New file.
13121 * gdbserver/linux-m68k-low.c: New file.
13122 * gdbserver/linux-mips-low.c: New file.
13123 * gdbserver/linux-ppc-low.c: New file.
13124 * gdbserver/linux-sh-low.c: New file.
13126 * gdbserver/regcache.c: New file.
13127 * gdbserver/regcache.h: New file.
13129 * gdbserver/low-linux.c: Removed obsolete file.
13131 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13133 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13134 * config/i386/linux.mt: Likewise.
13135 * config/ia64/linux.mt: Likewise.
13136 * config/m68k/linux.mh: Likewise.
13137 * config/powerpc/linux.mh: Likewise.
13138 * config/mips/linux.mt: Likewise.
13140 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13142 * config/i386/i386lynx.mh: Mark gdbserver variables
13143 as (currently) obsolete for this target.
13144 * config/i386/nbsd.mt: Likewise.
13145 * config/i386/nbsdelf.mt: Likewise.
13146 * config/m32r/m32r.mt: Likewise.
13147 * config/m68k/m68klynx.mh: Likewise.
13148 * config/m68k/nbsd.mt: Likewise.
13149 * config/m68k/sun3os4.mh: Likewise.
13150 * config/mips/vr5000.mt: Likewise.
13151 * config/ns32k/nbsd.mt: Likewise.
13152 * config/pa/hppabsd.mh: Likewise.
13153 * config/pa/hppaosf.mh: Likewise.
13154 * config/powerpc/nbsd.mt: Likewise.
13155 * config/rs6000/rs6000lynx.mh: Likewise.
13156 * config/s390/s390.mt: Likewise.
13157 * config/s390/s390x.mt: Likewise.
13158 * config/sparc/sparclynx.mh: Likewise.
13159 * config/sparc/sun4os4.mh: Likewise.
13160 * config/i386/x86-64linux.mt: Likewise.
13161 * config/sparc/linux.mh: Likewise.
13163 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13165 * configure.tgt: Configure gdbserver only for known working
13166 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13167 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13168 SUBDIRS if it is configured. Update comment for ${nativefile}.
13169 * configure: Regenerated.
13171 2002-02-13 Michael Snyder <msnyder@redhat.com>
13173 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13175 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13176 (default_gcore_mach): Just return 0, work around a problem in bfd.
13177 (default_gcore_target): OK to return NULL if exec_bfd is null.
13178 (make_mem_sec): Use a cast, avoid a warning.
13180 * procfs.c (find_memory_regions_callback): Use a cast instead of
13181 calling host_pointer_to_address (which complains if
13182 sizeof (host pointer) != sizeof (target pointer)).
13183 (procfs_make_note_section): Avoid overflow in psargs string.
13185 * procfs.c (procfs_make_note_section): Make the default
13186 implementation return an error.
13188 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13190 * procfs.c (procfs_make_note_section): Provide a default definition
13191 (for alpha-dec-osf4.0f). Fix typos.
13193 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13195 * linux-proc.c: Add include of regcache.h.
13196 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13198 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13200 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13201 * memattr.c (create_mem_region): Disallow useless empty region.
13202 Regions are half-open intervals, so allow [A..B) [B..C) as
13205 2002-02-13 Michael Chastain <mec@shout.net>
13207 * defs.h: Kill CONST_PTR.
13208 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13209 * c-lang.c (c_builtin_types): Likewise.
13210 * ch-lang.c (ch_builtin_types): Likewise.
13211 * f-lang.c (f_builtin_types): Likewise.
13212 * language.c (unknown_builtin_types): Likewise.
13213 * m2-lang.c (m2_builtin_types): Likewise.
13214 * p-lang.c (pascal_builtin_types): Likewise.
13215 * scm-lang.c (c_builtin_types): Likewise.
13217 2002-02-13 Keith Seitz <keiths@redhat.com>
13219 * arm-tdep.h (arm_get_next_pc): Add declaration.
13221 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13223 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13224 with other related struct-returning functions.
13225 (arm_extract_struct_value_address): New function.
13226 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13227 initialize float_format, double_format and long_double_format as
13228 appropriate to the endianness of the target.
13229 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13230 (arm_use_struct_convention): Delete declaration.
13231 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13233 2002-02-13 Keith Seitz <keiths@redhat.com>
13235 * defs.h (core_addr_to_string_nz): New function.
13237 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13239 Apply missing bits of 2002-01-15 patch.
13240 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13241 (fill_fpregset): Use i387_fill_fsave.
13243 2002-02-12 Keith Seitz <keiths@redhat.com>
13245 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13246 (core_addr_to_string_nz): New function.
13248 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13250 * arm-linux-nat.c: Really include arm-tdep.h.
13251 * config/arm/tm-linux.h (struct type, struct value): Declare.
13253 2002-02-11 Michael Snyder <msnyder@redhat.com>
13255 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13256 (gcore section): Ifdef for Solaris and Unixware only.
13257 (procfs_do_thread_registers): Unixware needs one lwpstatus
13258 per thread (not one prstatus or pstatus).
13259 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13260 not over all gdb threads. For unixware, call elfcore_write_pstatus
13261 once before iterating over threads.
13263 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13265 * arm-tdep.h: New file.
13266 * arm-tdep.c: Include arm-tdep.h.
13267 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13268 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13269 (arm_print_float_info, arm_register_type, convert_to_extended)
13270 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13271 (arm_extract_return_value, arm_register_name): Make static.
13272 (arm_software_single_step): Similarly. Fix types in declaration.
13273 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13274 (arm_store_return_value, arm_store_struct_return): New functions.
13275 (arm_gdbarch_init): Register the above functions. Also register
13276 call_dummy_start_offset, sizeof_call_dummy_words,
13277 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13278 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13279 max_register_virtual_size, register_size. Set up
13280 prologue_cache.saved_regs here, rather than ...
13281 (_initialize_arm_tdep): ... here.
13282 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13284 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13285 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13286 (arm_print_float_info, arm_register_type, convert_to_extended)
13287 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13288 (arm_extract_return_value, arm_register_name): Delete declarations.
13289 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13290 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13291 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13292 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13293 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13294 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13295 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13296 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13297 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13298 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13299 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13300 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13302 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13303 * remote-rdi.c remote-rdp.c: Likewise.
13304 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13305 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13306 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13309 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13310 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13311 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13312 from non-ARM_ prefixed definitions.
13313 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13315 * remote-rdi.c remote-rdp.c: Likewise.
13316 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13318 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13320 * arm-tdep.c (arm_frameless_function_invocation)
13321 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13322 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13323 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13324 (arm_pop_frame, arm_get_next_pc): Make static.
13325 (arm_gdbarch_init): Register above in gdbarch structure.
13326 (arm_read_fp): Renamed from arm_target_read_fp.
13327 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13328 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13329 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13330 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13331 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13332 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13333 (arm_pc_is_thumb_dummy): Delete declarations.
13334 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13335 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13336 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13337 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13339 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13341 * symtab.c (compare_search_syms): New function.
13342 (sort_search_symbols): New function.
13343 (search_symbols): Sort symbols after searching rather than
13346 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13348 * NEWS: Linux -> GNU/Linux.
13350 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13352 * gdbarch.sh: For for level one methods, disallow a definition
13353 when partially multi-arched. Add comments explaining rationale.
13354 * gdbarch.h: Re-generate.
13356 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13358 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13359 multi-arch partial.
13361 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13363 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13364 field. Use diff -u.
13365 * gdbarch.c: Re-generate.
13367 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13369 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13370 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13373 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13375 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13376 multi-arch partial.
13377 (PUSH_ARGUMENTS): Switch to using predefault.
13378 * gdbarch.c: Regenerate.
13380 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13382 * valops.c (PUSH_ARGUMENTS): Delete definition.
13383 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13384 partial. Default to default_push_arguments.
13385 * gdbarch.h, gdbarch.c: Regenerate.
13387 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13389 * defs.h (throw_exception): Rename return_to_top_level. Update
13391 * utils.c (error_stream, internal_verror, quit): Ditto.
13392 * top.c (throw_exception, catcher): Ditto.
13393 * sparclet-rom.c (sparclet_load): Ditto.
13394 * remote.c (interrupt_query, minitelnet): Ditto.
13395 * remote-sds.c (interrupt_query): Ditto.
13396 * remote-mips.c (mips_error, mips_kill): Ditto.
13397 * ocd.c (interrupt_query): Ditto.
13398 * monitor.c (monitor_interrupt_query): Ditto.
13399 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13400 * target.h: Update comment.
13402 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13404 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13406 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13407 default_double_format.
13408 * gdbarch.h, gdbarch.c: Re-generate.
13409 * findvar.c (floatformat_unknown): Delete variable definition.
13410 * doublest.h (floatformat_unknown): Delete variable declaration.
13412 2002-02-09 Jim Blandy <jimb@redhat.com>
13414 * stabsread.c (read_type): Add code to parse Sun's syntax for
13415 prototyped function types.
13417 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13419 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13420 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13422 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13424 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13425 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13426 now _initialize_xcoffsolib gets called again and overrides the
13427 commands from solib.c in a native configuration.
13429 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13431 * doublest.c (store_typed_floating): Don't try to return a value.
13434 2002-02-08 Jim Blandy <jimb@redhat.com>
13436 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13437 is prototyped and has no arguments, print its argument list as
13440 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13442 * MAINTAINERS (write-after-approval): Add myself.
13443 (paper-trail): I've escaped!
13445 2002-02-08 Christopher Faylor <cgf@redhat.com>
13447 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13449 (_initialize_check_for_gdb_ini): Ditto.
13451 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13453 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13454 xaprintf -> xasprintf.
13456 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13458 * win32-nat.c: Remove use of printf and sprintf functions.
13460 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13462 * arm-tdep.c (arm_frame_chain_valid): Make static.
13463 (arm_push_arguments): Likewise.
13464 (arm_gdbarch_init): New function.
13465 (_initialize_arm_tdep): Call it.
13466 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13467 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13468 (FRAME_CHAIN_VALID): Delete.
13469 (arm_frame_chain_valid): Delete declaration.
13470 (PUSH_ARGUMENTS): Delete.
13471 (arm_push_arguments): Delete declaration.
13472 (CALL_DUMMY_P): Delete.
13474 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13475 Corinna Vinschen <vinschen@redhat.com>
13477 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13478 on builtin float types.
13480 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13482 * utils.c: Include <curses.h> before "bfd.h".
13483 * tui/tui-hooks.c: Likewise.
13484 * tui/tui.c: Likewise.
13485 * tui/tuiCommand.c: Likewise.
13486 * tui/tuiData.c: Likewise.
13487 * tui/tuiDataWin.c: Likewise.
13488 * tui/tuiDisassem.c: Likewise.
13489 * tui/tuiGeneralWin.c: Likewise.
13490 * tui/tuiIO.c: Likewise.
13491 * tui/tuiLayout.c: Likewise.
13492 * tui/tuiRegs.c: Likewise.
13493 * tui/tuiSource.c: Likewise.
13494 * tui/tuiSourceWin.c: Likewise.
13495 * tui/tuiStack.c: Likewise.
13496 * tui/tuiWin.c: Likewise.
13498 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13500 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13501 to include space for pseudoregs as well. Update loops accordingly.
13502 (sh_fp_frame_init_saved_regs): Ditto.
13503 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13505 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13507 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13508 Add Richard Earnshaw to Arm maintainers.
13510 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13512 * defs.h (warning_begin): Delete declaration.
13514 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13517 2002-02-07 Michael Snyder <msnyder@redhat.com>
13519 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13520 Logic bug, remove misplaced else.
13522 2002-02-07 Klee Dienes <klee@apple.com>
13524 * fork-inferior.c (fork_inferior): Add '!' to the list of
13525 characters that need to be quoted when building a string for the
13526 shell. Quote '!' specifically with a backslash, since CSH chokes
13527 when trying to evaluate "str!str".
13529 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13531 * rdi-share/host.h: Only provide a typedef for bool if it is not
13534 2002-02-04 Michael Snyder <msnyder@redhat.com>
13536 * breakpoint.h (enum bptype): Add new overlay event bp type.
13537 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13539 * breakpoint.c (create_internal_breakpoint): New function.
13540 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13541 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13542 (create_thread_event_breakpoint): Ditto.
13543 (create_solib_event_breakpoint): Ditto.
13544 (create_overlay_event_breakpoint): New function.
13545 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13546 (update_breakpoints_after_exec): Delete and re-initialize
13547 overlay event breakpoints after an exec. Add FIXME comment
13548 about longjmp breakpoint.
13549 (print_it_typical): Ignore overlay event breakpoints.
13550 (print_one_breakpoint): Ditto.
13552 (bpstat_what): Do not stop for overlay event breakpoints.
13553 (delete_breakpoint): Don't delete overlay event breakpoints.
13554 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13555 (breakpoint_re_set): Re-create overlay event breakpoint.
13557 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13558 (overlay_manual_command): Disable overlay breakpoints.
13559 (overlay_off_command): Disable overlay breakpoints.
13561 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13563 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13564 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13565 to here from config/tm-arm.h.
13566 (coff_sym_is_thumb): Make static.
13567 (arm_elf_make_msymbol_special): New function.
13568 (arm_coff_make_msymbol_special): New function.
13569 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13570 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13571 (coff_sym_is_thumb): Delete declaration.
13572 (arm_elf_make_msymbol_special): Declare.
13573 (arm_coff_make_msymbol_special): Declare.
13574 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13575 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13577 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13579 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13581 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13583 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13584 * gdbarch.c gdbarch.h: Regenerate.
13585 * arch-utils.c (default_print_float_info): New function.
13586 * arch-utils.h (default_print_float_info): Prototype it.
13587 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13588 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13589 (PRINT_FLOAT_INFO): Document it.
13591 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13592 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13593 (PRINT_FLOAT_INFO): Define.
13595 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13597 * win32-nat.c (_initialize_check_for_gdb_ini):
13598 Add typecast to sprintf argument to suppress a warning.
13600 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13602 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13603 to allow easier handling of pass state.
13604 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13605 that gives exception name and address.
13606 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13607 and set last_sig value to ourstatus->value.sig. Some missing
13609 (child_continue): Correctly report continue_status.
13610 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13611 TARGET_SIGNAL_0 (new default value).
13612 (child_resume): consider sig argument passed to decide if
13613 the exception should be passed to debuggee or not.
13615 2002-02-05 Michael Snyder <msnyder@redhat.com>
13617 * regcache.c (fetch_register): Call target_fetch_register
13618 only if we don't call FETCH_PSEUDO_REGISTER.
13619 (store_register): Call target_store_register only if we
13620 don't call STORE_PSEUDO_REGISTER.
13622 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13624 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13625 ELF_MAKE_MSYMBOL_SPECIAL.
13626 * gdbarch.c, gdbarch.h: Regenerate.
13627 * arch-utils.c (default_make_msymbol_special): New function.
13628 * arch-utils.h (default_make_msymbol_special): Export.
13629 * elfread.c (elf_symtab_read): Compile use of
13630 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13632 * coffread.c (coff_symtab_read): Ditto, for
13633 COFF_MAKE_MSYMBOL_SPECIAL.
13635 2002-02-05 Jim Blandy <jimb@redhat.com>
13637 * solib-svr4.c (svr4_truncate_ptr): New function.
13638 (svr4_relocate_section_addresses): Do the address arithmetic with
13639 the appropriate truncation for target addresses, even when
13640 CORE_ADDR is larger than a target address.
13642 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13644 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13647 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13649 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13652 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13654 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13656 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13658 * gdbserver/linux-low.c: Remove unused include files.
13660 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13662 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13663 (read_inferior_memory): Use it.
13664 (write_inferior_memory): Likewise.
13666 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13668 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13669 grubbing through sys_errlist.
13671 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13673 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13675 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13676 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13678 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13680 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13681 (do_sfunc, set_cmd_sfunc): New functions.
13683 * command.h (struct cmd_list_element): Add field func.
13684 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13685 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13686 * cli/cli-decode.h: Ditto.
13688 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13689 (help_all, help_cmd_list): Ditto.
13690 (find_cmd, complete_on_cmdlist): Ditto.
13691 * top.c (execute_command): Ditto.
13693 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13696 * infcmd.c (notice_args_read): Fix function signature.
13698 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13699 * cli/cli-decode.c (add_set_cmd): Ditto.
13700 * utils.c (initialize_utils): Ditto.
13701 * maint.c (_initialize_maint_cmds): Ditto.
13702 * infrun.c (_initialize_infrun): Ditto.
13703 * demangle.c (_initialize_demangler): Ditto.
13704 * remote.c (add_packet_config_cmd): Ditto.
13705 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13706 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13707 * proc-api.c (_initialize_proc_api): Ditto.
13708 * kod.c (_initialize_kod): Ditto.
13709 * valprint.c (_initialize_valprint): Ditto.
13710 * top.c (init_main): Ditto.
13711 * infcmd.c (_initialize_infcmd): Ditto.
13712 * corefile.c (_initialize_core): Ditto.
13713 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13714 * arch-utils.c (initialize_current_architecture): Ditto.
13715 (_initialize_gdbarch_utils): Ditto.
13716 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13718 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13719 * wince.c (_initialize_inftarg): Ditto.
13720 * symfile.c (_initialize_symfile): Ditto.
13721 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13722 * language.c (_initialize_language): Ditto.
13723 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13725 2002-02-04 Michael Snyder <msnyder@redhat.com>
13727 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13729 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13731 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13732 Add rules for building the register data files.
13734 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13736 * regformats/regdat.sh: Add braces to the definition of
13737 expedite_regs_${arch}.
13739 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13741 * regformats/regdef.h (struct reg): Add comment describing the
13742 requirements for offset and size fields.
13744 2002-02-04 Andreas Schwab <schwab@suse.de>
13746 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13747 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13749 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13751 * gdbarch.sh (copyright): Update years in generated header.
13752 (SMASH_TEXT_ADDRESS): Add rule.
13753 * gdbarch.h, gdbarch.c: Re-generate.
13754 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13755 * dbxread.c: Likewise.
13756 * dwarfread.c: Likewise.
13757 * elfread.c: Likewise.
13758 * somread.c: Likewise.
13760 * arm-tdep.c (arm_smash_text_address): New function.
13761 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13763 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13765 Add support for hardware watchpoints on win32 native.
13766 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
13767 CONTEXT_DEBUG_REGISTERS.
13768 (dr variable): New variable. Static array containing a local copy
13769 of debug registers.
13770 (debug_registers_changed): New variable. Reflects when debug registers
13771 are changed and need to be written to inferior.
13772 (debug_registers_used): New variable. Reflects when any debug register
13773 was set, used when new threads are created.
13774 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13776 (thread_rec): Set dr array if id is the thread of current_event .
13777 (child_continue, child_resume): Change the debug registers for all
13778 threads if debug_registers_changed.
13779 (child_add_thread): Change the debug registers if debug_registers_used.
13780 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13781 Link nm.h to new nm-cygwin.h file.
13782 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13783 of hardware registers.
13785 2002-02-03 Andrew Cagney <ac131313@redhat.com>
13787 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13788 Restore behavour broken by 2002-01-20 Andrew Cagney
13789 <ac131313@redhat.com> IEEE_FLOAT removal.
13791 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13793 * c-valprint.c (c_val_print): Pass a proper valaddr to
13794 cp_print_class_method.
13795 * valops.c (search_struct_method): If there is only one method
13796 and args is NULL, return that method.
13798 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13800 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13801 accessing tag_name directly.
13803 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13805 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13806 of accessing tag_name directly.
13808 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
13811 * gdbtypes.c (replace_type): New function.
13812 * gdbtypes.h (replace_type): Add prototype.
13813 * stabsread.c (read_type): Use replace_type.
13815 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
13817 * Makefile.in (memattr.o): Add missing dependencies rule.
13819 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13821 * breakpoint.c (break_at_finish_command): Really export.
13822 (break_at_finish_at_depth_command): Ditto.
13823 (tbreak_at_finish_command): Ditto.
13824 * hppa-tdep.c: Include completer.h.
13825 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13826 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13828 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13830 * utils.c (do_write): New function.
13831 (error_stream): Rewrite combining the code from error_begin and
13833 (verror): Rewrite using error_stream.
13834 (error_begin): Delete function.
13836 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13838 * utils.c (error_begin): Make static.
13839 * defs.h (error_begin): Delete declaration.
13841 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13842 (decode_line_1): Use cplusplus_error instead of error_begin,
13843 cplusplus_hint and return_to_top_level.
13844 * coffread.c (coff_symfile_read): Use error instead of error_begin
13845 and return_to_top_level.
13846 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13848 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13850 * language.h (type_error, range_error): Make string parameter
13852 * language.c (warning_pre_print): Delete extern declaration.
13853 * dwarfread.c (warning_pre_print): Ditto.
13854 * language.c (type_error, range_error): Rewrite to use verror and
13855 vwarning instead of warning_begin.
13857 2002-02-01 Michael Snyder <msnyder@redhat.com>
13859 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13860 (set_ignore_count): Move misplaced comment back where it belongs.
13862 2002-02-01 Andrew Cagney <ac131313@redhat.com>
13864 * command.h (NO_FUNCTION): Delete macro.
13865 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13866 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13867 * tracepoint.c (_initialize_tracepoint): Ditto.
13868 * cli/cli-decode.c (add_set_cmd): Ditto.
13869 * cli/cli-cmds.c (init_cli_cmds): Ditto.
13871 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13873 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13874 Update ``this'' pointer when calling virtual functions.
13876 2002-02-01 Michael Snyder <msnyder@redhat.com>
13878 * breakpoint.c (create_temp_exception_breakpoint): Delete.
13879 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13881 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
13883 * regformats/reg-arm.dat: New file.
13884 * regformats/reg-i386.dat: New file.
13885 * regformats/reg-ia64.dat: New file.
13886 * regformats/reg-m68k.dat: New file.
13887 * regformats/reg-mips.dat: New file.
13888 * regformats/reg-ppc.dat: New file.
13889 * regformats/reg-sh.dat: New file.
13890 * regformats/regdef.h: New file.
13891 * regformats/regdat.sh: New file.
13893 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
13895 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13896 (arm_frame_args_address, arm_frame_locals_address): New functions.
13897 (arm_frame_num_args): New function.
13898 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13899 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13900 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13902 2002-01-31 Michael Snyder <msnyder@redhat.com>
13904 * breakpoint.c (break_at_finish_command): Export.
13905 (break_at_finish_at_depth_command): Export.
13906 (tbreak_at_finish_command): Export.
13907 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
13908 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
13909 "txbreak" commands, which are HPPA specific.
13911 * printcmd.c (disassemble_command): Remove an ancient
13912 artifact of an old merge.
13914 * symfile.h (enum overlay_debugging_state):
13915 Define enum constant values for overlay mode.
13916 * symfile.c (overlay_debugging): Use enums instead of literals.
13917 (overlay_is_mapped, overlay_auto_command,
13918 overlay_manual_command): Ditto.
13920 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13921 breakpoint_here_p, breakpoint_inserted_here_p,
13922 breakpoint_thread_match, bpstat_stop_status,
13923 describe_other_breakpoints, check_duplicates, clear_command):
13924 Coding standard fixes.
13926 * target.c (target_xfer_memory): Add spaces, coding standard.
13927 (do_xfer_memory): Add missing line to trust-readonly
13928 code: check bfd SEC_READONLY flag for section.
13930 2002-01-31 Andrew Cagney <ac131313@redhat.com>
13932 * PROBLEMS: Fix typo, 5.1->5.1.1.
13934 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
13936 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13937 data symbols, since we search based on textlow and texthigh.
13938 (find_pc_sect_symtab): Likewise.
13940 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13942 * defs.h (vwarning): Declare.
13943 * utils.c (vwarning): New function.
13944 (warning): Call vwarning.
13945 (warning_begin): Delete function.
13947 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13948 the warning message.
13949 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13952 2002-01-30 Michael Snyder <msnyder@redhat.com>
13954 * NEWS: Mention "set trust-readonly-sections" command.
13955 Mention generate-core-file command.
13957 2002-01-15 Michael Snyder <msnyder@redhat.com>
13959 * target.c: New command, "set trust-readonly-sections on".
13960 (do_xfer_memory): Honor the suggestion to trust readonly sections
13961 by reading them from the object file instead of from the target.
13962 (initialize_targets): Register command "set trust-readonly-sections".
13964 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13966 * parse.c (target_map_name_to_register): Simplify, search regs and
13967 pseudo-regs using a single loop.
13969 2002-01-30 Andrew Cagney <ac131313@redhat.com>
13971 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13973 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
13975 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13976 * config/i386/i386v42mp.mh: Add i387-nat.o .
13977 * i386v4-nat.c: Include i387-nat.h.
13978 (supply_fpregset): Use i387_supply_fsave.
13979 (fill_fpregset): Use i387_fill_fsave.
13981 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
13983 * arm-tdep.c (arm_call_dummy_words): Define.
13984 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13985 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13986 (CALL_DUMMY_WORDS): Define.
13987 (arm_call_dummy_words): Declare.
13988 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13989 (arm_linux_call_dummy_words): Declare.
13991 2002-01-30 Andreas Schwab <schwab@suse.de>
13993 * m68klinux-nat.c: Fix last change to use regcache_collect
13994 instead of referencing registers[] directly.
13996 2002-01-29 Andrew Cagney <ac131313@redhat.com>
13998 * parse.c (target_map_name_to_register): Delete code wrapped in
13999 #ifdef REGISTER_NAME_ALIAS_HOOK.
14001 2002-01-28 Michael Snyder <msnyder@redhat.com>
14003 * regcache.c (legacy_read_register_gen): Need to be able to
14004 read pseudo-register as well as real register.
14005 (legacy_write_register_gen): Ditto.
14007 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14009 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14010 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14011 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14012 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14013 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14014 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14015 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14016 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14017 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14018 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14019 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14020 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14021 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14022 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14023 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14024 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14025 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14026 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14027 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14028 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14030 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14032 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14033 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14034 (initialize_current_architecture): Update target_byte_order using
14035 information from BFD.
14036 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14037 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14039 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14041 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14042 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14044 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14045 #ifdef INVALID_FLOAT.
14046 * infcmd.c (do_registers_info): Ditto.
14047 * values.c (unpack_double): Ditto. Add comment.
14049 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14050 already commented out.
14052 2002-01-26 Andreas Schwab <schwab@suse.de>
14054 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14055 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14056 registers and add support for PTRACE_GETREGS.
14058 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14060 GDB 5.1.1 released from 5.1 branch.
14061 * NEWS: Add 5.1.1 news.
14062 * README: Sync with 5.1 branch.
14064 2002-01-23 Fred Fish <fnf@redhat.com>
14066 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14067 stabstring on initial malloc. Reallocing will copy it for us,
14070 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14072 * Makefile.in (hpread_h): Delete.
14073 (HFILES_NO_SRCDIR): Remove hpread.h.
14074 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14075 (hpread.o): Update dependencies.
14076 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14078 * hp-psymtab-read.c: Remove file.
14079 * hp-symtab-read.c: Remove file.
14080 * hpread.h: Remove file.
14082 * hpread.c: Merge all contents of hp-psymtab-read.c,
14083 hp-symtab-read.c and hpread.h into this file, as it was prior to
14086 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14087 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14088 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14089 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14091 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14093 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14094 fill_gregset): Call gdbarch_tdep() just once, assign result to
14095 variable and use that, instead of calling the function several
14098 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14100 * configure.host: Accept sparcv9 as alias for sparc64.
14101 * configure.tgt: Likewise.
14103 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14105 * solib-aix5.c (build_so_list_from_mapfile)
14106 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14107 arguments is not reversed.
14108 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14109 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14111 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14113 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14114 modified version of obsolete sh_fetch_pseudo_register.
14115 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14116 (sh4_register_read): New function.
14117 (sh_pseudo_register_write): New function. Renamed and modified
14118 version of obsolete sh_store_pseudo_register.
14119 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14120 (sh4_register_write): New function.
14121 (sh_gdbarch_init): Remove setting of gdbarch function
14122 fetch_pseudo_register and store_pseudo_register. Remove setting of
14123 register_convert_to_raw, register_convert_to_virtual,
14124 register_convertible.
14125 (sh_sh4_register_convertible): Delete. No longer needed. All is
14126 taken care by architecture specific functions
14127 register_read/register_write.
14128 (sh_sh4_register_convert_to_virtual): Make static.
14129 (sh_sh4_register_convert_to_raw): Ditto.
14131 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14133 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14134 (floatformat_is_nan, floatformat_mantissa): Ditto.
14136 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14137 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14138 builtin_type_ieee_double_little,
14139 builtin_type_ieee_double_littlebyte_bigword,
14140 builtin_type_m68881_ext, builtin_type_i960_ext,
14141 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14142 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14143 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14144 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14146 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14148 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14149 parameter. Set frameless flag if it exists and depended of
14150 whether the scanned function is frameless or not.
14151 (xstormy16_skip_prologue): If function is frameless, return
14152 result of xstormy16_scan_prologue().
14153 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14156 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14158 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14159 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14160 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14161 sh_sh4_register_byte, sh_sh4_register_raw_size,
14162 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14163 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14164 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14165 sh_store_pseudo_register, sh_do_pseudo_register): Call
14166 gdbarch_tdep() just once, assign result to variable and use that,
14167 instead of calling the function several times.
14169 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14171 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14172 macros instead of LAST_FPU_CTRL_REGNUM.
14173 (store_register): Likewise.
14175 2002-01-21 Jim Blandy <jimb@redhat.com>
14177 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14178 is up-to-date before running the program, not just when a program
14181 2002-01-21 Fred Fish <fnf@redhat.com>
14183 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14184 when we have found all instructions we are looking for.
14186 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14188 * arm-tdep.c (arm_register_name): New function.
14189 (arm_registers_names): Make static.
14190 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14191 (arm_register_name): Declare.
14192 (REGISTER_NAME): Use it.
14194 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14195 Kevin Buettner <kevinb@redhat.com>
14197 Convert arm targets to new FRAME interface.
14198 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14199 (arm_frame_find_save_regs): Delete.
14200 (arm_frame_init_saved_regs): New.
14201 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14202 Allocate extra_info as required. Convert all uses of fsr.regs
14203 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14205 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14206 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14207 (check_prologue_cache, save_prologue_cache): Likewise.
14208 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14209 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14210 (FRAME_FIND_SAVED_REGS): Delete.
14211 (arm_frame_find_saved_regs): Delete prototype.
14212 (arm_frame_init_saved_regs): New prototype.
14213 (FRAME_INIT_SAVED_REGS): Define.
14215 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14217 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14219 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14221 From Jeff Law <law@redhat.com>:
14222 * infttrace.c: Include <sys/pstat.h>.
14223 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14224 exec file if the ttrace equivalent fails.
14226 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14228 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14229 (closeLogFile): Ditto.
14231 2002-01-20 Michael Chastain <mec@shout.net>
14233 * top.c (print_gdb_version): Bump copyright year to 2002.
14235 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14237 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14238 Zannoni and Eli Zaretskii.
14240 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14242 * buildsym.c: Update copyright years.
14243 * c-typeprint.c: Likewise.
14244 * dwarf2read.c: Likewise.
14245 * f-typeprint.c: Likewise.
14246 * gdbtypes.c: Likewise.
14247 * gdbtypes.h: Likewise.
14248 * hp-symtab-read.c: Likewise.
14249 * hpread.c: Likewise.
14250 * mdebugread.c: Likewise.
14251 * p-typeprint.c: Likewise.
14253 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14255 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14256 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14257 byte-order selectable.
14258 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14259 * arch-utils.c: Ditto.
14260 (set_endian): Ditto.
14261 (set_endian_from_file): Ditto.
14262 * gdbserver/low-sim.c (create_inferior): Ditto.
14263 * gdbarch.sh: Ditto.
14264 * gdbarch.h: Re-generate.
14265 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14266 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14267 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14268 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14269 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14270 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14271 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14272 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14274 * config/mips/tm-wince.h: Remove #undef of macro
14275 TARGET_BYTE_ORDER_SELECTABLE.
14276 * config/sh/tm-wince.h: Ditto.
14278 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14280 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14281 member function fields. Add accessor macro
14282 TYPE_FN_FIELD_ARTIFICIAL.
14283 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14284 * c-typeprint.c (c_type_print_base): Skip artificial member
14287 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14289 * f-typeprint.c: Delete unused function f_type_print_args.
14290 * p-typeprint.c: Delete unused function pascal_type_print_args.
14292 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14294 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14295 comment. Add ``artificial'' to ``union field_location''.
14297 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14299 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14300 * mdebugread.c (parse_symbol): Likewise.
14301 * stabsread.c (define_symbol): Likewise.
14302 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14303 initializing TYPE_FIELD_BITPOS to n (obsolete).
14304 (hpread_doc_function_type): Likewise.
14305 * hpread.c (hpread_function_type): Likewise.
14307 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14309 * configure.in (host_makefile_frag): Only require a host makefile
14310 fragment when a native build.
14311 * configure: Re-generate.
14313 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14315 * doublest.h (floatformat_from_type): Declare.
14316 * doublest.c (floatformat_from_type): New function.
14317 (convert_typed_floating): Use.
14319 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14320 call to function floatformat_from_type.
14322 * gdbarch.sh (IEEE_FLOAT): Delete.
14323 * gdbarch.h, gdbarch.c: Re-generate.
14324 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14325 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14326 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14327 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14328 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14329 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14330 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14331 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14332 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14333 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14334 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14335 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14337 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14338 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14339 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14340 * sh-tdep.c (sh_gdbarch_init): Ditto.
14341 * mips-tdep.c (mips_gdbarch_init): Ditto.
14342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14343 * cris-tdep.c (cris_gdbarch_init): Ditto.
14345 2002-01-20 Jiri Smid <smid@suse.cz>
14347 * configure.host, configure.tgt: Support x86-64.
14348 * NEWS: Note new target x86-64.
14350 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14351 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14352 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14353 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14354 x86-64-linux-nat.o): Fix dependencies.
14356 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14358 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14359 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14360 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14361 * config/sparc/xm-sun4os4.h: Delete file.
14362 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14364 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14366 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14367 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14368 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14369 * config/i386/i386lynx.mh (XM_FILE): Delete.
14370 * config/rs6000/xm-rs6000ly.h: Delete file.
14371 * config/sparc/xm-sparclynx.h: Delete file.
14372 * config/m68k/xm-m68klynx.h: Delete file.
14373 * config/i386/xm-i386lynx.h: Delete file.
14374 * config/xm-lynx.h: Delete file.
14375 * config/djgpp/fnchange.lst: Update.
14377 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14379 * alpha-tdep.c (alpha_register_byte): New function.
14380 (alpha_register_raw_size): Ditto.
14381 (alpha_register_virtual_size): Ditto.
14382 (alpha_skip_prologue_internal): Renamed from
14383 alpha_skip_prologue.
14384 (alpha_skip_prologue): New version that calls
14385 alpha_skip_prologue_internal.
14386 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14387 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14388 second argument from alpha_skip_prologue.
14389 (REGISTER_BYTE): Use alpha_register_byte.
14390 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14391 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14392 (FRAMELESS_FUNCTION_INVOCATION): Use
14393 generic_frameless_function_invocation_not.
14394 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14395 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14397 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14399 * config/mips/xm-news-mips.h: Delete file.
14400 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14402 * config/m88k/xm-m88k.h: Delete file.
14403 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14404 * config/m88k/xm-delta88v4.h: Ditto.
14405 * config/m88k/xm-delta88.h: Ditto.
14407 * config/alpha/xm-fbsd.h: Delete file.
14408 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14410 * config/sparc/xm-sparc.h: Delete file.
14411 * Makefile.in (xm-sun4os4.h): Delete dependency.
14412 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14413 * config/sparc/xm-sun4os4.h: Ditto.
14414 * config/sparc/xm-linux.h: Ditto.
14416 * config/i386/xm-windows.h: Delete file.
14418 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14420 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14421 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14423 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14425 * alpha-tdep.c (alpha_call_dummy_words): New.
14426 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14427 (CALL_DUMMY_P): Define.
14428 (CALL_DUMMY_WORDS): Define.
14429 (SIZEOF_CALL_DUMMY_WORDS): Define.
14431 2002-01-19 Per Bothner <per@bothner.com>
14433 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14434 isn't NULL, which can happen with some gcj-3.x-produced code.
14436 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14438 * alpha-tdep.c (alpha_register_virtual_type): New function.
14439 (alpha_init_frame_pc_first): Ditto.
14440 (alpha_fix_call_dummy): Ditto.
14441 (alpha_store_struct_return): Ditto.
14442 (alpha_extract_struct_value_address): Ditto.
14443 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14444 alpha_register_virtual_type.
14445 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14446 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14447 alpha_extract_struct_value_address.
14448 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14449 (INIT_FRAME_PC): Use init_frame_pc_noop.
14450 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14452 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14454 * i386gnu-nat.c: Include "i386-tdep.h".
14455 (fetch_fpregs): Simplify code dealing with uninitialized floating
14456 point states such that it doesn't require FP7_REGNUM.
14458 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14460 * alpha-tdep.c (frame_extra_info): New.
14461 (alpha_find_saved_regs): Make static. Use
14463 (alpha_frame_init_saved_regs): New function.
14464 (alpha_frame_saved_pc): Use frame->extra_info.
14465 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14466 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14467 (init_extra_frame_info): Rename to...
14468 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14469 (alpha_print_extra_frame_info): New function.
14470 (alpha_frame_locals_address): Ditto.
14471 (alpha_frame_args_address): Ditto.
14472 (alpha_pop_frame): Use frame->extra_info.
14473 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14474 alpha_frame_args_address.
14475 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14476 (alpha_find_saved_regs): Remove prototype.
14477 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14478 (EXTRA_FRAME_INFO): Remove.
14479 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14480 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14482 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14484 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14485 (alpha_cannot_fetch_register): Ditto.
14486 (alpha_cannot_store_register): Ditto.
14487 (alpha_register_convertible): Ditto.
14488 (alpha_use_struct_convention): Ditto.
14489 * config/alpha/tm-alpha.h: Update copyright years.
14490 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14491 (INNER_THAN): Use core_addr_lessthan.
14492 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14493 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14494 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14495 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14496 (FRAME_CHAIN): Remove unnecessary cast.
14498 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14500 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14503 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14505 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14506 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14507 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14508 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14509 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14510 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14511 * x86-64-linux-nat.c: Ditto.
14513 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14515 * alpha-tdep.c (alpha_register_name): New function.
14516 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14517 (REGISTER_NAME): Define.
14519 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14521 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14523 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14525 * alpha-tdep.c: Update copyright years.
14526 (alpha_next_pc): New function.
14527 (alpha_software_single_step): Ditto.
14528 * config/alpha/tm-alpha.h: Add prototype for
14529 alpha_software_single_step.
14531 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14533 * alphabsd-nat.c: Update copyright years.
14534 (fill_gregset): Use regcache_collect.
14535 (fill_fpregset): Likewise.
14536 (fetch_inferior_registers): Only fetch integer registers
14537 if requested to do so.
14538 (store_inferior_registers): Only store integer registers
14539 if requested to do so.
14541 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14543 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14544 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14545 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14546 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14547 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14548 * config/arm/linux.mh (XDEPFILES): Delete.
14549 * config/arm/nbsd.mh (XDEPFILES): Delete.
14550 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14551 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14552 * config/i386/i386m3.mh (XDEPFILES): Delete.
14553 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14554 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14555 * config/i386/fbsd.mh (XDEPFILES): Delete.
14556 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14557 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14558 * config/i386/i386v4.mh (XDEPFILES): Delete.
14559 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14560 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14561 * config/i386/i386aix.mh (XDEPFILES): Delete.
14562 * config/i386/go32.mh (XDEPFILES): Delete.
14563 * config/i386/cygwin.mh (XDEPFILES): Delete.
14564 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14565 * config/i386/i386mach.mh (XDEPFILES): Delete.
14566 * config/i386/i386v32.mh (XDEPFILES): Delete.
14567 * config/i386/linux.mh (XDEPFILES): Delete.
14568 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14569 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14570 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14571 * config/i386/i386sco.mh (XDEPFILES): Delete.
14572 * config/i386/i386v.mh (XDEPFILES): Delete.
14573 * config/i386/nbsd.mh (XDEPFILES): Delete.
14574 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14575 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14576 * config/i386/symmetry.mh (XDEPFILES): Delete.
14577 * config/i386/obsd.mh (XDEPFILES): Delete.
14578 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14579 * config/ia64/linux.mh (XDEPFILES): Delete.
14580 * config/ia64/aix.mh (XDEPFILES): Delete.
14581 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14582 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14583 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14584 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14585 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14586 * config/m68k/linux.mh (XDEPFILES): Delete.
14587 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14588 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14589 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14590 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14591 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14592 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14593 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14594 * config/m88k/delta88.mh (XDEPFILES): Delete.
14595 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14596 * config/m88k/m88k.mh (XDEPFILES): Delete.
14597 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14598 * config/mips/linux.mh (XDEPFILES): Delete.
14599 * config/mips/irix6.mh (XDEPFILES): Delete.
14600 * config/mips/irix5.mh (XDEPFILES): Delete.
14601 * config/mips/irix4.mh (XDEPFILES): Delete.
14602 * config/mips/irix3.mh (XDEPFILES): Delete.
14603 * config/mips/decstation.mh (XDEPFILES): Delete.
14604 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14605 (NATDEPFILES): Move core-aout.o to here.
14606 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14607 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14608 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14609 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14610 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14611 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14612 * config/pa/hpux11.mh (XDEPFILES): Delete.
14613 * config/powerpc/aix.mh (XDEPFILES): Delete.
14614 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14615 * config/powerpc/linux.mh (XDEPFILES): Delete.
14616 * config/romp/rtbsd.mh: Rename XDEPFILES.
14617 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14618 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14619 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14620 * config/s390/s390.mh (XDEPFILES): Delete.
14621 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14622 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14623 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14624 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14625 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14626 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14627 * config/sparc/linux.mh (XDEPFILES): Delete.
14628 * config/vax/vaxult.mh (XDEPFILES): Delete.
14629 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14630 * Makefile.in (DEPFILES): Remove XDEPFILES.
14632 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14634 * utils.c (internal_verror): Fix comments, default is yes not no.
14635 Update queries to match. Default to quit and dump core.
14637 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14639 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14641 * defs.h, event-top.c, gdbcmd.h: Ditto.
14642 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14643 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14644 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14645 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14646 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14647 * mi/mi-main.c:Ditto.
14649 * stack.c, symfile.c: Update copyright.
14651 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14653 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14654 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14655 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14656 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14658 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14660 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14661 * gdbserver/low-lynx.c (myattach): Likewise.
14662 * gdbserver/low-nbsd.c (myattach): Likewise.
14663 * gdbserver/low-sim.c (myattach): Likewise.
14664 * gdbserver/low-sparc.c (myattach): Likewise.
14665 * gdbserver/low-sun3.c (myattach): Likewise.
14667 * gdbserver/low-linux.c (myattach): New function.
14669 * gdbserver/server.c (attach_inferior): New function.
14670 (main): Handle "--attach".
14672 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14674 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14677 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14679 * c-typeprint.c (is_type_conversion_operator): Add additional
14680 check for non-conversion operators.
14682 2002-01-15 Michael Snyder <msnyder@redhat.com>
14684 * linux-proc.c: Add "info proc" command, a la procfs.c.
14685 (read_mapping): New function, abstract and re-use code.
14686 (linux_find_memory_regions): Use new func read_mapping.
14687 (linux_info_proc_cmd): New function, implement "info proc".
14688 (_initialize_linux_proc): Add new command "info proc".
14690 2002-01-15 Michael Snyder <msnyder@redhat.com>
14692 * symfile.c (generic_load): Use bfd_map_over_sections method
14693 instead of manipulating bfd structure members directly.
14694 (add_section_size_callback): New function, bfd sections callback
14695 used by generic_load.
14696 (load_sections_callback): New function, bfd sections callback
14697 used by generic_load.
14699 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14701 [Based on work by Jim Blandy]
14702 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14703 (builtin_type_vec128): Export.
14704 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14706 (builtin_type_vec128): New builtin type for 128 bit vector
14708 (build_gdbtypes): Initialize builtin_type_v16qi and
14709 builtin_type_v8hi. Create the vec128 register builtin type
14711 (build_builtin_type_vec128): New function.
14712 (_initialize_gdbtypes): Register builtin_type_v16qi and
14713 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14714 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14715 AltiVec register to new builtin type.
14717 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14719 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14722 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14724 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14725 CLEAN_UP_REGISTER_VALUE.
14726 * regcache.c (supply_register): Update only call.
14728 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14730 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14731 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14732 a29k-*-vxworks* targets as obsolete.
14734 2002-01-14 Michael Snyder <msnyder@redhat.com>
14736 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14737 until we can resolve portability issues.
14738 * gregset.h: Remove references to fpxregs.
14739 * gcore.c (gcore_command): Initialize note_sec to NULL.
14741 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14743 * signals.c (target_signal_to_name): Rewrite. Only use
14744 signals[].name when in bounds and non-NULL.
14746 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14748 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14749 * signals.c (target_signal_to_name): Verify that SIG is within the
14750 bounds of the signals array.
14752 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14754 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14756 2002-01-13 Keith Seitz <keiths@redhat.com>
14758 * stack.c (print_frame_info_base): Print the frame's pc
14759 only if when print_frame_info_listing_hook is not defined.
14761 2002-01-13 Keith Seitz <keiths@redhat.com>
14763 * varobj.c (varobj_set_value): Make sure that there were no
14764 errors evaluating the object before attempting to set its
14766 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14767 so this offset adjustment is no longer necessary.
14768 (create_child): Don't set the error flag if the child is
14769 a CPLUS_FAKE_CHILD.
14770 (value_of_child): If value_fetch_lazy fails, return NULL
14771 so that callers will be notified that an error occurred.
14772 (c_value_of_variable): Delay check of variable's validity
14773 until later. We actually want all structs and unions to have
14775 Do not return "???" for variables which could not be evaluated.
14776 This error condition must be returned to the caller so that it
14777 can get the error condition from gdb.
14778 (cplus_name_of_child): Adjust index for vptr before figuring
14779 out the name of the child.
14780 (cplus_value_of_child): If a child's (real) parent is not valid,
14781 don't even bother trying to give a value for it. Just return
14782 an error. Change all instances in this function.
14783 (cplus_type_of_child): If our parent is one of the "fake"
14784 parents, we need to get at the type of the real parent, and
14785 derive the child's true type using this information.
14787 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14789 From 2002-01-09 John Marshall <johnm@falch.net>:
14790 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14791 sources.redhat.com, and tweak some related URLs which had
14792 suffered from linkrot.
14794 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14797 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14798 structures passed in registers.
14800 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
14802 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14803 white space which prevented compilation. Reported by DSK
14804 <dsk@student.unsw.edu.au>.
14806 2002-01-11 Michael Snyder <msnyder@redhat.com>
14808 * symfile.c (build_section_addr_info_from_section_tab):
14809 Use bfd access method instead of manipulating bfd directly.
14810 (syms_from_objfile): Ditto.
14811 (simple_overlay_update_1): Ditto.
14812 (simple_overlay_update): Ditto.
14813 (generic_load): Ditto.
14814 (overlay_unmapped_address): FIXME comment, bfd access methods.
14815 (sections_overlap): FIXME comment, bfd access methods.
14816 (pc_in_mapped_range): FIXME comment, bfd access methods.
14817 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14818 (section_is_mapped): FIXME comment, bfd access methods.
14819 (section_is_overlay): FIXME comment, bfd access methods.
14821 * symfile.c (generic_load): Whitespace and long line cleanups.
14822 Remove duplicate variable, change several local variables to
14823 more appropriate data types.
14824 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14826 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14828 From Peter Schauer:
14829 * language.c (longest_local_hex_string_custom): Use phex_nz to
14830 convert NUM to a hex string.
14832 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
14834 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14836 Update Copyright year.
14838 2002-01-12 Andrew Cagney <ac131313@redhat.com>
14840 * language.c (longest_raw_hex_string): Delete unused function.
14842 2002-01-11 Petr Sorfa <petrs@caldera.com>
14844 * MAINTAINERS (write-after-approval): Add myself.
14845 * dwarf2read.c (read_tag_string_type): Handling of
14847 (read_tag_string_type): FORTRAN fix to prevent propagation of
14849 (set_cu_language): Handling of DW_LANG_Fortran95
14851 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
14853 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14854 GETPID(inferior_ptid).
14855 (store_inferior_registers): Likewise.
14857 2002-01-10 Jason Merrill <jason@redhat.com>
14859 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14862 2002-01-10 Andrew Cagney <ac131313@redhat.com>
14864 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14865 and bfd/elf32-sh-nbsd.c.
14867 2002-01-10 Michael Snyder <msnyder@redhat.com>
14869 * NEWS: Mention --pid and corefile/proc-id behavior change.
14871 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14872 * gcore.c: Include cli/cli-decode.h instead of command.h.
14874 * main.c (captured_main): Add new command line option "--pid".
14875 If the second command line argument (following the symbol-file)
14876 begins with a digit, try to attach to it before trying to open
14878 (print_gdb_help): Document the "--pid" argument.
14880 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
14882 * completer.c (command_completer): New function.
14884 * completer.h <command_completer>: Add prototype.
14886 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14887 completer for the "help" command.
14889 2002-01-09 Jason Merrill <jason@redhat.com>
14891 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14893 2002-01-09 Michael Snyder <msnyder@redhat.com>
14895 * i386-linux-nat.c (fill_fpxregset): Make global.
14896 (store_fpxregset): Ditto.
14898 * gregset.h (gdb_fpxregset_t): Define.
14899 (supply_fpxregset): Prototype.
14900 (fill_fpxregset): Prototype.
14902 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14904 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14906 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14907 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14908 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14910 2002-01-09 Andrew Cagney <ac131313@redhat.com>
14912 * MAINTAINERS: Update target maintainer rules so that any
14913 Maintainer can approve a tested patch for a maintenance-only
14916 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
14918 * MAINTAINERS (write-after-approval): Add myself.
14920 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
14923 2002-01-08 Michael Snyder <msnyder@redhat.com>
14925 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14926 real name of the executable, rather than the /proc name.
14928 2002-01-03 Michael Snyder <msnyder@redhat.com>
14930 Implement a "generate-core-file" command in gdb, save target state.
14931 * gcore.c: New file. Implement new command 'generate-core-file'.
14932 Save a corefile image of the current state of the inferior.
14933 * linux-proc.c: Add linux-specific code for saving corefiles.
14934 * target.h (struct target_ops): Add new target vectors for saving
14935 corefiles; to_find_memory_regions and to_make_corefile_notes.
14936 (target_find_memory_regions): New macro.
14937 (target_make_corefile_notes): New macro.
14938 * target.c (update_current_target): Inherit new target methods.
14939 (dummy_find_memory_regions): New place-holder method.
14940 (dummy_make_corefile_notes): New place-holder method.
14941 (init_dummy_target): Initialize new dummy target vectors.
14942 * exec.c (exec_set_find_memory_regions): New function.
14943 Allow the exec_ops vector for memory regions to be taken over.
14944 (exec_make_note_section): New function, target vector method.
14945 * defs.h (exec_set_find_memory_regions): Export prototype.
14946 * procfs.c (proc_find_memory_regions): New function, corefile method.
14947 (procfs_make_note_section): New function, corefile method.
14948 (init_procfs_ops): Set new target vector pointers.
14949 (find_memory_regions_callback): New function.
14950 (procfs_do_thread_registers): New function.
14951 (procfs_corefile_thread_callback): New function.
14952 * sol-thread.c (sol_find_memory_regions): New function.
14953 (sol_make_note_section): New function.
14954 (init_sol_thread_ops): Initialize new target vectors.
14955 * inftarg.c (inftarg_set_find_memory_regions): New function.
14956 Allow to_find_memory_regions vector to be taken over.
14957 (inftarg_set_make_corefile_notes): New function.
14958 Allow to_make_corefile_notes vector to be taken over.
14959 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14960 interface layer if not target_has_execution (may be a corefile).
14961 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14962 * config/sparc/sun4sol2.mh: Ditto.
14963 * config/alpha/alpha-linux.mh: Ditto.
14964 * config/arm/linux.mh: Ditto.
14965 * config/i386/x86-64linux.mh: Ditto.
14966 * config/ia64/linux.mh: Ditto.
14967 * config/m68k/linux.mh: Ditto.
14968 * config/mips/linux.mh: Ditto.
14969 * config/powerpc/linux.mh: Ditto.
14970 * config/sparc/linux.mh: Ditto.
14972 2002-01-07 Michael Snyder <msnyder@redhat.com>
14974 * arm-linux-nat.c: Remove references to regcache.c internal data
14975 (registers[] and register_valid[]).
14977 2002-01-07 Michael Snyder <msnyder@redhat.com>
14979 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14980 so that attaching to a pid will automatically read the process's
14981 symbol file and shlibs.
14982 * Makefile.in: Add rule for linux-proc.o.
14983 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14984 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14985 * config/arm/linux.mh: Ditto.
14986 * config/i386/linux.mh: Ditto.
14987 * config/i386/x86-64linux.mh: Ditto.
14988 * config/ia64/linux.mh: Ditto.
14989 * config/m68k/linux.mh: Ditto.
14990 * config/mips/linux.mh: Ditto.
14991 * config/powerpc/linux.mh: Ditto.
14992 * config/sparc/linux.mh: Ditto.
14994 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
14996 * win32-nat.c: Add i386-tdep.h dependency.
14998 2002-01-07 Michael Snyder <msnyder@redhat.com>
15000 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15001 instead of bfd_get_arch_size. Don't bail out just because
15002 there's no exec_bfd.
15004 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15005 * p-valprint.c (pascal_object_print_value): Ditto.
15006 * somread.c (som_symtab_read): Ditto.
15007 * symfile.c (simple_free_overlay_region_table): Ditto.
15008 * valops.c (value_assign): Ditto.
15010 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15011 use tilde_expand and strerror for opening save-tracepoints file.
15013 * thread-db.c (thread_db_new_objfile): Indendation fix.
15015 * infptrace.c (GDB_MAX_ALLOCA): New define.
15016 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15017 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15018 can be overridden with whatever value is appropriate to the host).
15019 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15020 alloca to allocate potentially large buffer.
15021 * rs6000-nat.c (child_xfer_memory): Ditto.
15022 * symm-nat.c (child_xfer_memory): Ditto.
15023 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15025 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15027 From Nick Clifton <nickc@redhat.com>
15028 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15030 2002-01-07 Michael Snyder <msnyder@redhat.com>
15032 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15033 Don't use exec_bfd if it's NULL.
15035 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15037 * valops.c (value_arg_coerce): Fix formatting.
15039 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15041 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15042 * gnu-nat.c: Ditto.
15044 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15046 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15047 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15048 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15049 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15050 z8k-coff have not been multi-arched. Update z8k-coff build
15053 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15055 * MAINTAINERS: Mark a29k target as obsolete.
15056 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15057 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15059 * NEWS: Note that a29k targets are obsolete.
15060 * a29k-tdep.c: Mark as obsolete.
15061 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15062 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15063 a29k-*-vxworks* targets as obsolete.
15064 * remote-adapt.c: Obsolete.
15065 * remote-eb.c: Obsolete.
15066 * remote-mm.c: Obsolete.
15067 * remote-udi.c: Obsolete.
15068 * config/a29k/a29k-udi.mt: Obsolete.
15069 * config/a29k/a29k.mt: Obsolete.
15070 * config/a29k/tm-a29k.h: Obsolete.
15071 * config/a29k/tm-vx29k.h: Obsolete.
15072 * config/a29k/vx29k.mt: Obsolete.
15074 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15076 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15077 with BFD_ENDIAN_BIG.
15079 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15081 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15082 * configure, config.in: Re-generate.
15083 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15084 * defs.h: Do not include <endian.h>.
15086 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15088 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15089 * config.in: Regenerate.
15090 * configure.in: Update copyright years.
15091 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15092 * configure: Regenerate.
15093 * i386bsd-nat.c: Update copyright years.
15094 (fill_gregset): Use regcache_collect.
15095 (fetch_inferior_registers): Only fetch integer registers
15096 if requested to do so. Add support for XMM registers
15097 using PT_GETXMMREGS.
15098 (store_inferior_registers): Only store integer registers
15099 if requested to do so. Add support for XMM registers
15100 using PT_SETXMMREGS.
15101 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15102 (store_inferior_registers): Remove.
15103 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15104 (fetch_elfcore_registers): New function.
15105 (i386nbsd_elfcore_fns): New.
15106 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15107 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15109 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15110 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15111 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15112 * config/i386/tm-nbsd.h: Update copyright years.
15113 (HAVE_SSE_REGS): Define.
15114 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15115 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15116 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15117 (SIGCONTEXT_PC_OFFSET): Remove.
15118 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15120 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15122 * configure.tgt: Remove powerpc-*-macos* target.
15123 * config/m68k/xm-mpw.h: Delete file.
15124 * config/xm-mpw.h: Delete file.
15125 * ser-mac.c: Delete file.
15126 * mpw-make.sed: Delete file.
15127 * mpw-config.in: Delete file.
15128 * mac-xdep.c: Delete file.
15129 * mac-gdb.r: Delete file.
15130 * mac-defs.h: Delete file.
15131 * mac-nat.c: Delete file.
15132 * config/powerpc/macos.mh: Delete file.
15133 * config/powerpc/macos.mt: Delete file.
15134 * config/powerpc/nm-macos.h: Delete file.
15135 * config/powerpc/tm-macos.h: Delete file.
15136 * source.c (openp, open_source_file): Remove obsolete code.
15137 * top.c (gdb_readline): Ditto.
15138 * utils.c (query): Ditto.
15139 * event-top.c (display_gdb_prompt): Ditto.
15140 * Makefile.in (ser-mac.o): Delete obsolete target.
15143 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15145 * defs.h (BIG_ENDIAN): Delete macro definition.
15146 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15147 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15148 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15149 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15150 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15151 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15152 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15153 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15154 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15155 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15156 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15157 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15158 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15159 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15160 * gdbarch.c: Re-generate.
15162 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15164 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15167 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15169 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15171 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15173 * value.h (value_ptr): Delete typedef.
15175 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15177 * i386nbsd-nat.c: Update copyright years.
15178 Include i386-tdep.h.
15180 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15182 * stabsread.c: Update copyright years.
15184 From Debashis Mahata <debashis.mahata@wipro.com>:
15185 (read_struct_fields): Deal with Sun C compiler erroneous stab
15186 output for structs and unions.
15189 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15191 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15194 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15196 * cp-abi.c: Fix whitespace.
15197 (baseclass_offset): New wrapper function.
15198 * cp-abi.h (baseclass_offset): Add prototype.
15199 (struct cp_abi_ops): Add baseclass_offset pointer.
15201 * valops.c (vb_match): Move to...
15202 * gnu-v2-abi.c (vb_match): here.
15203 * valops.c (baseclass_offset): Move to...
15204 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15206 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15208 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15209 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15210 * hpacc-abi.c (init_hpacc_ops): Likewise.
15212 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15214 * valops.c (find_overload_match): Accept obj as a
15215 reference parameter. Update it before returning.
15216 * value.h (find_overload_match): Update prototype.
15217 * eval.c (evaluate_subexp_standard): Pass object to
15218 find_overload_match by reference.
15220 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15222 * valarith.c: Replace value_ptr with struct value pointer. Remove
15223 register attribute from value declarations.
15226 * scm-lang.c (scm_lookup_name): Ditto.
15228 2002-01-03 Michael Snyder <msnyder@redhat.com>
15230 Abstract the functionality of iterating over mapped memory
15231 regions into a general purpose iterator function.
15232 * procfs.c (iterate_over_mappings): New function, general purpose
15233 iterator for memory sections.
15234 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15235 (solib_mappings_callback): New function, callback for above.
15236 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15237 (info_mappings_callback): New function, callback for above.
15239 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15241 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15243 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15244 * i386-tdep.c: Include "elf-bfd.h".
15245 (process_note_abi_tag_sections): New function.
15246 (i386_gdbarch_init): Add code to recognize various OS/ABI
15249 * maint.c (_initialize_maint_cmds): Add missing \ in
15252 For older changes see ChangeLog-2001
15258 version-control: never