1 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
4 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5 i386_get_longjmp_target.
7 2003-01-05 Andrew Cagney <ac131313@redhat.com>
9 * arm-tdep.c (prologue_cache): Change to a pointer.
10 (_initialize_arm_tdep): Allocate prologue_cache.
11 (check_prologue_cache): Update.
12 (save_prologue_cache): Update.
13 (arm_gdbarch_init): Update.
15 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
17 * stabsread.c (update_method_name_from_physname): Call complaint()
20 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
22 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
23 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
24 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
26 * blockframe.c: Include "gdbcmd.h" and "command.h".
27 (backtrace_below_main): New variable.
28 (file_frame_chain_valid, func_frame_chain_valid)
29 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
30 (generic_func_frame_chain_valid): Remove functions.
31 (frame_chain_valid, do_flush_frames_sfunc): New functions.
32 (_initialize_blockframe): New function.
33 * Makefile.in (blockframe.o): Update dependencies.
34 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
35 comment. Call frame_chain_valid ().
36 * frame.h: Remove old prototypes. Add prototype for
37 frame_chain_valid and update comments to match.
38 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
40 * gdbarch.h: Regenerated.
41 * gdbarch.c: Regenerated.
43 * alpha-tdep.c (alpha_gdbarch_init): Don't call
44 set_gdbarch_frame_chain_valid.
45 * avr-tdep.c (avr_gdbarch_init): Likewise.
46 * cris-tdep.c (cris_gdbarch_init): Likewise.
47 * frv-tdep.c (frv_gdbarch_init): Likewise.
48 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
49 * i386-tdep.c (i386_svr4_init_abi): Likewise.
50 (i386_nw_init_abi): Likewise.
51 (i386_gdbarch_init): Likewise.
52 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
53 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
54 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
55 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
56 * mips-tdep.c (mips_gdbarch_init): Likewise.
57 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
58 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
59 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
60 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
61 * s390-tdep.c (s390_gdbarch_init): Likewise.
62 * sh-tdep.c (sh_gdbarch_init): Likewise.
63 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
64 * v850-tdep.c (v850_gdbarch_init): Likewise.
65 * vax-tdep.c (vax_gdbarch_init): Likewise.
66 * x86-64-tdep.c (x86_64_init_abi): Likewise.
68 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
69 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
70 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
71 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
72 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
73 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
74 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
75 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
77 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
79 * Makefile.in (acconfig_h): Remove incorrect macro.
81 (osabi.o): Update dependencies.
82 * configure.tgt: Set gdb_osabi based on target triplet.
83 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
84 * configure: Regenerated.
85 * config.in: Regenerated.
86 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
87 (GDB_OSABI_DEFAULT): Define if not already defined.
88 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
89 (set_osabi_string): New variables.
90 (gdbarch_register_osabi): Add new OS ABI to
91 gdb_osabi_available_names.
92 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
93 (set_osabi, show_osabi): New functions.
94 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
96 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
98 * arch-utils.c (gdbarch_info_init): Set osabi to
99 GDB_OSABI_UNINITIALIZED.
100 * gdbarch.sh: Add osabi to struct gdbarch and to struct
101 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
102 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
103 * gdbarch.c: Regenerated.
104 * gdbarch.h: Regenerated.
105 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
107 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
108 * osabi.h (enum gdb_osabi): Move to defs.h.
109 (gdbarch_init_osabi): Update prototype.
110 * defs.h (enum gdb_osabi): Moved here.
111 * Makefile.in: Update dependencies.
113 * alpha-tdep.h: Don't include "osabi.h".
114 (struct gdbarch_tdep): Remove osabi member.
115 * alpha-tdep.c: Include "osabi.h".
116 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
117 iterate over arches. Update call to gdbarch_init_osabi.
118 (alpha_dump_tdep): Don't dump osabi.
119 * alpha-linux-tdep.c: Include "osabi.h".
120 * alpha-osf1-tdep.c: Include "osabi.h".
121 * alphafbsd-tdep.c: Include "osabi.h".
122 * alphanbsd-tdep.c: Include "osabi.h".
124 * arm-tdep.h: Don't include "osabi.h".
125 (struct gdbarch_tdep): Remove osabi member.
126 * arm-tdep.c: Include "osabi.h".
127 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
128 iterate over arches. Update call to gdbarch_init_osabi.
129 (arm_dump_tdep): Don't dump osabi.
130 * arm-linux-tdep.c: Include "osabi.h".
131 * armnbsd-tdep.c: Include "osabi.h".
133 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
134 Update call to gdbarch_init_osabi.
136 * i386-tdep.h: Don't include "osabi.h".
137 (struct gdbarch_tdep): Remove osabi member.
138 * i386-tdep.c: Include "osabi.h".
139 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
140 iterate over arches. Update call to gdbarch_init_osabi.
141 (i386_dump_tdep): Don't dump osabi.
142 * i386-linux-tdep.c: Include "osabi.h".
143 * i386-sol2-tdep.c: Include "osabi.h".
144 * i386bsd-tdep.c: Include "osabi.h".
145 * i386gnu-tdep.c: Include "osabi.h".
146 * i386ly-tdep.c: Include "osabi.h".
147 * i386nbsd-tdep.c: Include "osabi.h".
148 * i386obsd-tdep.c: Include "osabi.h".
150 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
151 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
152 check osabi when iterating over arches. Update call to
154 (mips_dump_tdep): Don't dump osabi.
156 * ns32k-tdep.h: Don't include "osabi.h".
157 (struct gdbarch_tdep): Remove.
158 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
159 gdbarch_lookup_osabi. Don't iterate over arches. Don't
160 allocate tdep. Update call to gdbarch_init_osabi.
161 (ns32k_dump_tdep): Remove.
162 (_initialize_ns32k_tdep): Update call to gdbarch_register.
163 * ns32knbsd-tdep.c: Include "osabi.h".
165 * ppc-tdep.h: Don't include "osabi.h".
166 (struct gdbarch_tdep): Remove osabi member.
167 * rs6000-tdep.c: Include "osabi.h".
168 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
169 osabi when iterating over arches. Update call to
171 (rs6000_dump_tdep): Don't dump osabi.
172 * ppc-linux-tdep.c: Include "osabi.h".
173 * ppcnbsd-tdep.c: Include "osabi.h".
175 * sh-tdep.h: Don't include "osabi.h".
176 (struct gdbarch_tdep): Remove osabi member.
177 * sh-tdep.c: Include "osabi.h".
178 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
179 iterate over arches. Update call to gdbarch_init_osabi.
180 (sh_dump_tdep): Don't dump osabi.
181 * shnbsd-tdep.c: Include "osabi.h".
183 * sparc-tdep.c: Include "osabi.h".
184 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
185 iterate over arches. Update call to gdbarch_init_osabi.
186 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
189 * vax-tdep.h: Don't include "osabi.h".
190 (struct gdbarch_tdep): Remove.
191 * vax-tdep.c: Include "osabi.h".
192 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
193 iterate over arches. Don't allocate tdep. Update call
194 to gdbarch_init_osabi.
195 (vax_dump_tdep): Remove.
196 (_initialize_vax_tdep): Update call to gdbarch_register.
198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
200 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
202 (breakpoint_re_set_one): Don't fetch the value for a disabled
205 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
207 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
208 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
209 (COERCE_FLOAT_TO_DOUBLE): Remove.
210 * gdbarch.c: Regenerate.
211 * gdbarch.h: Regenerate.
212 * Makefile.in: Remove value_h from gdbarch_h.
213 * valops.c (coerce_float_to_double): New variable.
214 (default_coerce_float_to_double): Remove.
215 (standard_coerce_float_to_double): Remove.
216 (value_arg_coerce): Use coerce_float_to_double.
217 (_initialize_valops): Add "set coerce-float-to-double".
218 * value.h (default_coerce_float_to_double): Remove prototype.
219 (standard_coerce_float_to_double): Remove prototype.
221 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
223 * mdebugread.c (parse_symbol): Likewise.
224 * stabsread.c (define_symbol): Mark all functions as prototyped.
226 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
227 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
228 set_gdbarch_coerce_float_to_double.
229 * arm-tdep.c (arm_gdbarch_init): Likewise.
230 * frv-tdep.c (frv_gdbarch_init): Likewise.
231 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
232 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
233 * mips-tdep.c (mips_gdbarch_init): Likewise.
234 (mips_coerce_float_to_double): Remove.
235 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
236 (rs6000_coerce_float_to_double): Remove.
237 * s390-tdep.c (s390_gdbarch_init): Likewise.
238 * sh-tdep.c (sh_gdbarch_init): Likewise.
239 (sh_coerce_float_to_double): Remove.
240 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
241 (sparc_coerce_float_to_double): Remove.
242 * v850-tdep.c (v850_gdbarch_init): Likewise.
243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
244 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
245 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
246 (hppa_coerce_float_to_double): Remove prototype.
247 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
249 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
251 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
253 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
255 Suggested by Stewart Brown <sb24@avaya.com>:
256 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
257 in recursive calls. Handle TYPE_CODE_TYPEDEF.
258 (c_type_print_varspec_suffix): Likewise.
260 2003-01-04 Mark Kettenis <kettenis@gnu.org>
262 * configure.in: Don't set and AC_SUBST SUBDIRS.
263 * configure: Regenerated.
265 * configure.in: Remove code dealing with shared libraries.
266 * Makefile.in: Remove HLDFLAGS and HLDENV.
267 * configure: Regenerated.
269 2003-01-04 Andrew Cagney <ac131313@redhat.com>
271 * frame.c (deprecated_frame_xmalloc): New function.
272 (deprecated_set_frame_saved_regs_hack): New function.
273 (deprecated_set_frame_extra_info_hack): New function.
274 * frame.h (deprecated_frame_xmalloc): Declare.
275 (deprecated_set_frame_saved_regs_hack): Declare.
276 (deprecated_set_frame_extra_info_hack): Declare.
278 2003-01-04 Mark Kettenis <kettenis@gnu.org>
280 * configure.in: Move code that provides the --enable-gdbtk option
281 right after the code that handles the --enable-tui option, and
283 * configure: Regenerated.
285 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
286 AC_CHECK_FUNCS and remove the old check for pread64.
287 * acinclude.m4 (AC_GNU_SOURCE): New macro.
288 * acconfig.h (_GNU_SOURCE): Add.
289 (HAVE_PREAD64): Remove.
290 * configure, aclocal.m4, config.in: Regenerated.
292 2003-01-03 Andrew Cagney <ac131313@redhat.com>
294 * alpha-tdep.c: Use get_frame_saved_regs.
295 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
296 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
297 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
298 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
299 * vax-tdep.c, xstormy16-tdep.c: Ditto.
301 2003-01-03 Mark Kettenis <kettenis@gnu.org>
303 * configure.in: Remove all use of the SUBDIRS variable; add
304 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
305 code providing the --enable-multi-ice option, and move it right in
306 front of the code that checks whether gdbserver is supported.
308 * configure: Regenerated.
309 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
312 2003-01-03 Andrew Cagney <cagney@redhat.com>
314 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
315 * avr-tdep.c, cris-tdep.c: Ditto.
316 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
317 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
319 2003-01-03 Mark Kettenis <kettenis@gnu.org>
321 * configure.in: Remove --enable-netrom option.
322 * configure: Regenerated.
324 2003-01-03 Mark Kettenis <kettenis@gnu.org>
326 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
327 declaration for `struct re_pattern_buffer' instead.
328 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
330 2003-01-03 J. Brobecker <brobecker@gnat.com>
332 * mdebugread.c (parse_symbol): Count until the stEnd matching
335 2003-01-02 Mark Kettenis <kettenis@gnu.org>
337 * configure.in: Remove --with-cpu option.
338 subscripts. Remove evil changequotes here.
339 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
340 * config.in, configure: Regenerated.
342 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
343 * configure.in: Cleanup section that sources GDB and BFD configure
344 subscripts. Remove evil changequotes here.
345 * config.in, configure: Regenerated.
347 2003-01-02 Andrew Cagney <ac131313@redhat.com>
349 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
350 frame accessor methods.
351 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
352 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
353 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
354 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
355 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
356 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
359 2003-01-02 Mark Kettenis <kettenis@gnu.org>
361 * configure.in: Remove UI_OUT configuration code.
362 * ada-lang.c: Update assuming UI_OUT is always true.
363 * Makefile.in (UIOUT_CFLAGS): Remove.
364 * configure: Regenerated.
365 * TODO: Remove blurb about elimination of -DUI_OUT.
367 * configure.in: Move code that provides the --enable-gdbcli,
368 --enable-gdbmi options right before the code that handles the
369 --enable-tui option. Polish a bit.
370 * configure: Regenerated.
372 * configure.in: Rewrite check for GNU regex and the
373 --without-included regex option, and move it into the "Checks for
374 library functions" section. This makes us use the system regex
375 again by default on systems with version 2 of the GNU C library.
376 This was apparently broken.
377 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
378 * acconfig.h (USE_INCLUDED_REGEX): Remove.
379 * config.in, configure: Regenerated.
381 * configure.in: Move code that provides the --enable-tui option
382 before the "Checks for libraries" section. Polish the code
383 somewhat and set need_curses to yes if we build the TUI. Rewrite
384 code that looks for a library providing termcap functionality to
385 match more closely what's done in the Readline library, and move
386 it into to the "Checks for libraries" section.
387 * configure: Regenerated.
388 * Makefile.in (TERMCAP): Remove variable.
389 * config/i386/go32.mh (TERMCAP): Remove variable.
391 2003-01-02 Andrew Cagney <ac131313@redhat.com>
393 * MAINTAINERS: Mention gdb_mbuild.sh.
394 * gdb_mbuild.sh: Rewrite.
396 2003-01-02 Mark Kettenis <kettenis@gnu.org>
398 * configure.in: Fix typo in last change.
399 * config.in, configure: Regenerated.
401 2003-01-02 Andrew Cagney <ac131313@redhat.com>
403 * valarith.c (value_binop): Delete obsolete code and comments.
404 * configure.host: Ditto.
405 * buildsym.h (make_blockvector): Ditto.
406 * buildsym.c (make_blockvector): Ditto.
407 * defs.h (enum language): Ditto.
408 (chill_demangle): Ditto.
409 * elfread.c (elf_symtab_read): Ditto.
410 * dwarfread.c (CHILL_PRODUCER): Ditto.
411 (set_cu_language): Ditto.
412 (handle_producer): Ditto.
413 * expprint.c (print_subexp): Ditto.
414 * gdbtypes.c (chill_varying_type): Ditto.
415 * gdbtypes.h (builtin_type_chill_bool): Ditto.
416 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
417 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
418 (chill_varying_type): Ditto.
419 * language.h (_LANG_chill): Ditto.
420 * language.c (binop_result_type, integral_type): Ditto.
421 (character_type, string_type, structured_type): Ditto.
422 (lang_bool_type, binop_type_check): Ditto.
423 * stabsread.h (os9k_stabs): Ditto.
424 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
425 (define_symbol, read_type, read_struct_fields): Ditto.
426 (read_array_type, read_enum_type, read_huge_number): Ditto.
427 (read_range_type, start_stabs): Ditto.
428 * symfile.c (init_filename_language_table): Ditto.
429 (add_psymbol_with_dem_name_to_list): Ditto.
430 * symtab.c (symbol_init_language_specific): Ditto.
431 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
432 * symtab.h (struct general_symbol_info): Ditto.
433 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
434 * typeprint.c (typedef_print): Ditto.
435 * utils.c (fprintf_symbol_filtered): Ditto.
436 * valops.c (value_cast, search_struct_field, value_slice): Delete
438 (varying_to_slice): Delete function.
439 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
440 (varying_to_slice): Delete declaration.
441 * MAINTAINERS: Update.
443 2003-01-02 Mark Kettenis <kettenis@gnu.org>
445 * configure.in: Reorganize "Checks for library functions section"
446 a bit. Remove check for `btowc' and `isascii' functions.
447 * configure: Regenerated.
449 * acconfig.h (_MSE_INT_H): Remove.
450 * configure.in: Create "Checks for header files" section, and move
451 appropriate tests there. Don't check for objlist.h, wchar.h,
452 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
453 misdetection fix. Also add "Checks for types", "Checks for
454 compiler characteristics" and "Checks for library functions"
456 * config.in, configure: Regenerated.
458 * configure.in: Create "Checks for programs" section, and move
459 appropriate tests there.
461 2003-01-01 Mark Kettenis <kettenis@gnu.org>
463 * configure.in: Create "Checks for libraries" section, and move
464 appropriate tests there. Cleanup check for wctype in libw. Use
465 AC_SEARCH_LIBS to see whether we need libsocket.
466 * configure: Regenerated.
468 2002-12-31 Mark Kettenis <kettenis@gnu.org>
470 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
471 * config.in, configure: Regenerated.
473 2002-12-31 Mark Kettenis <kettenis@gnu.org>
475 * gdb_dirent.h: Cleanup and update code to match the example in
477 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
478 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
479 * configure: Regenerated.
481 2002-12-30 Adam Fedor <fedor@gnu.org>
483 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
484 (yylex): Initialize c to avoid uninitialized warning.
486 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
488 * doc/fdl.texi: Revert the last change.
490 2002-12-29 Mark Kettenis <kettenis@gnu.org>
492 * tracepoint.c (ISATTY): Removed.
494 2002-12-26 J. Brobecker <brobecker@gnat.com>
496 Continuing work to convert the hppa targets to multiarch partil.
498 * hppa-tdep.c: Add some missing forward declarations.
499 (frameless_function_invocation): Prefix the function name
500 by "hppa_" to avoid polluting the namespace. Update all calls
501 to use the new function name.
502 (saved_pc_after_call): Ditto.
503 (init_extra_frame_info): Ditto.
504 (frame_chain): Ditto.
505 (push_dummy_frame): Ditto.
506 (target_read_pc): Ditto.
507 (target_write_pc): Ditto.
508 (in_solib_call_trampoline): Ditto.
509 (in_solib_return_trampoline): Ditto.
510 (skip_trampoline_code): Ditto.
511 (hppa_read_fp): New function, renamed from target_read_fp.
512 (hppa_target_read_fp): New function, using hppa_read_fp.
513 This function conforms to the function profile for the
514 READ_FP gdbarch method.
515 (hppa_extract_struct_value_address): New function, extracted
516 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
518 (hppa_frame_num_args): New function.
519 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
521 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
522 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
523 for the switch to multiarch partial.
524 Update some of the macros definitions to match some changes
525 described above in the name of the function they are calling.
526 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
527 not be straightforward to convert. Do now wrap it inside
528 "#if !... #endif" to remember that this macro has still not
530 (FIX_CALL_DUMMY): Likewise.
532 2002-12-26 J. Brobecker <brobecker@gnat.com>
534 Continuing work to convert the hppa targets to multiarch partial.
536 * hppa-tdep.c (hppa_register_raw_size): New function replacing
537 the body of macro REGISTER_RAW_SIZE.
538 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
539 config/pa/tm-hppah.h. These functions will be used to initialize
540 the gdbarch structure.
541 (hppa_hpux_pc_in_sigtramp): New function.
542 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
543 (hppa_hpux_frame_base_before_sigtramp): New function.
544 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
545 Add gdbcore.h #include.
546 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
547 of this gdbarch-eligible macro to a call to the new associated
549 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
550 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
551 into a call to the new associated function.
552 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
553 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
554 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
556 2002-12-24 David Carlton <carlton@math.stanford.edu>
558 * config/sparc/tm-sparc.h: Delete duplicate definition of
559 DEPRECATED_PC_IN_CALL_DUMMY.
561 2002-12-24 Kevin Buettner <kevinb@redhat.com>
563 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
565 * configure.tgt: Recognize mips64*-*-linux*.
566 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
567 (supply_32_bit_reg): New function.
568 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
569 (fill_gregset): Use regcache_collect() instead of
570 deprecated_registers[].
571 (register_addr): Change name to mips_linux_register_addr().
572 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
573 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
574 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
575 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
576 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
577 (MIPS64_LINUX_JB_PC): New defines.
578 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
579 (mips64_elf_fpregset_t): New typedefs.
580 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
581 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
582 (mips64_linux_register_addr, set_mips_linux_register_addr)
583 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
584 (init_register_addr_data)
586 (fetch_core_registers): Add support for core file formats with 64-bit
588 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
589 (register_addr_data): New static global variable.
590 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
591 gdbarch_register_osabi() for each MIPS machine.
592 * config/mips/linux64.mt: New file.
593 * config/mips/tm-linux64.h: New file.
595 2002-12-23 Adam Fedor <fedor@gnu.org>
597 * maint.c (maintenance_demangle): Add switch to demangle
598 ObjC language symbols as well.
600 2002-12-23 Adam Fedor <fedor@gnu.org>
602 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
603 last argument from complaint function call.
605 2002-12-23 Kevin Buettner <kevinb@redhat.com>
607 * exec.c (print_section_info): Add FIXME comments regarding format
610 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
612 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
613 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
615 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
617 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
619 2002-12-23 David Carlton <carlton@math.stanford.edu>
621 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
622 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
623 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
624 information associated to a minsym, not lookup_symbol.
626 2002-12-21 Mark Kettenis <kettenis@gnu.org>
628 * x86-64-tdep.h (x86_64_init_abi): New prototype.
629 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
630 (x86_64_init_abi): Make non-static. Set number of pseudo
632 (x86_64_gdbarch_init): Remove function.
633 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
634 Remove code dealing with dissambly.
635 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
636 (_initialize_x86_64_linux_tdep): New function.
637 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
640 2002-12-14 Mark Kettenis <kettenis@gnu.org>
642 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
643 (struct gdb_osabi_handler): Remove member `arch'. Add member
645 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
646 construct a `struct bfd_arch_info' and store it in the `struct
647 gdb_osabi_handler' that is created.
648 (gdbarch_init_osabi): Check for compatibility based on machine
649 type and architecture.
650 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
652 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
653 second argument in call to gdbarch_register_osabi.
654 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
655 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
656 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
657 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
658 * arm-tdep.c (_initialize_arm_tdep): Likewise.
659 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
660 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
661 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
662 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
663 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
664 * i386-tdep.c (_initialize_i386_tdep): Likewise.
665 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
666 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
667 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
668 _initialize_i386bsd_tdep and updated likewise.
669 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
670 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
671 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
672 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
673 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
674 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
675 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
676 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
677 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
678 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
680 2002-12-20 Kevin Buettner <kevinb@redhat.com>
682 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
683 DT_MIPS_RLD_MAP case for 64-bit targets.
685 2002-12-20 Kevin Buettner <kevinb@redhat.com>
687 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
688 ``temp_saved_regs'', not the pointer or other storage contiguous
691 2002-12-20 Kevin Buettner <kevinb@redhat.com>
693 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
694 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
695 (mips_linux_get_longjmp_target): Delete declarations.
696 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
697 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
698 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
699 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
700 (mips_linux_get_longjmp_target)
701 (mips_linux_svr4_fetch_link_map_offsets): Make static.
702 (mips_linux_init_abi): New function.
703 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
705 2002-12-19 Keith Seitz <keiths@redhat.com>
707 patch committed by Elena Zannoni <ezannoni@redhat.com>
708 * thread.c (do_captured_list_thread_ids): Call prune_threads and
709 target_find_new_threads. Fix for PR mi/669.
711 2002-12-19 David Carlton <carlton@math.stanford.edu>
713 * linespec.c (decode_line_1): Move code into decode_all_digits.
714 (decode_all_digits): New function.
716 2002-12-19 Kevin Buettner <kevinb@redhat.com>
718 * exec.c (print_section_info): Select a format string to use with
719 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
721 2002-12-18 Andrew Cagney <ac131313@redhat.com>
723 * frame.c (deprecated_update_current_frame_pc_hack): Replace
724 deprecated_update_current_frame_pc_hack.
725 (deprecated_update_frame_base_hack): New function.
726 * frame.h (deprecated_update_frame_pc_hack): Replace
727 (deprecated_update_frame_base_hack): Declare.
728 * infrun.c (normal_stop): Update.
730 2002-12-18 Andrew Cagney <ac131313@redhat.com>
732 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
733 frame_extra_info_zalloc.
734 (rs6000_frame_args_address): Use get_frame_extra_info.
735 (frame_get_saved_regs): Use get_frame_saved_regs.
736 (frame_initial_stack_address): Use get_frame_saved_regs and
737 get_frame_extra_info.
738 (frame_initial_stack_address): Use get_frame_extra_info.
740 2002-12-17 Kevin Buettner <kevinb@redhat.com>
742 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
744 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
745 checks for r3900_regnames[].
747 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
749 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
751 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
753 2002-12-17 David Carlton <carlton@math.stanford.edu>
755 * symtab.c (lookup_partial_symbol): Don't search past the end of
758 2002-12-17 Andrew Cagney <ac131313@redhat.com>
760 * stack.c (frame_info): Use get_frame_saved_regs.
761 * breakpoint.c (until_break_command): Use get_frame_pc.
763 2002-12-16 Kevin Buettner <kevinb@redhat.com>
765 * buildsym.c (block_end_complaint, anon_block_end_complaint)
766 (innerblock_complaint, innerblock_anon_complaint)
767 (blockvector_complaint): Delete deprecated complaint structs.
768 (finish_block, make_blockvector, end_symtab): Replace calls
769 to complain() with calls to complaint().
770 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
771 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
772 (unexpected_type_complaint, bad_sclass_complaint)
773 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
774 Delete deprecated complaint structs.
775 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
776 Replace calls to complain() with calls to complaint().
777 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
778 (unknown_symtype_complaint, unknown_symchar_complaint)
779 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
780 (lbrac_mismatch_complaint, repeated_header_complaint)
781 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
782 Delete deprecated complaint structs.
783 (unknown_symtype_complaint, lbrac_mismatch_complaint)
784 (repeated_header_complaint)
785 (function_outside_compiliation_unit_complaint): New functions.
786 (add_old_header_file, find_corresponding_bincl_psymtab)
787 (set_namestring, find_stab_function_addr, read_dbx_symtab)
788 (process_one_symbol): Replace calls to complain() with, possibly
789 indirect, calls to complaint().
790 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
791 (unknown_attribute_form, unknown_attribute_length)
792 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
793 (const_ignored, botched_modified_type, op_deref2, op_deref4)
794 (basereg_not_handled, dup_user_type_allocation)
795 (dup_user_type_definition, missing_tag, bad_array_element_type)
796 (subscript_data_items, unhandled_array_subscript_format)
797 (unknown_array_subscript_format, not_row_major)
798 (missing_at_name): Delete deprecated complaint structs.
799 (bad_die_ref_complaint, unknown_attribute_form_complaint)
800 (dup_user_type_definition_complaint)
801 (bad_array_element_type_complaint): New functions.
802 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
803 (decode_subscript_data_item, dwarf_read_array_type)
804 (read_tag_string_type, read_subroutine_type, read_func_scope)
805 (locval, scan_partial_symbols, decode_modified_type)
806 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
807 (attribute_size): Replace calls to complain() with, possibly
808 indirect, calls to complaint().
809 * elfread.c (section_info_complaint, section_info_dup_complaint)
810 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
811 Delete deprecated complaint structs.
812 (elf_symtab_read, elfstab_offset_sections): Replace calls to
813 complain() with calls to complaint().
814 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
816 (stub_noname_complaint): New function.
817 (check_typedef, add_mangled_type): Replace calls to complain()
818 with calls to complaint().
819 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
820 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
821 (hpread_unhandled_type_complaint, hpread_struct_complaint)
822 (hpread_array_complaint, hpread_type_lookup_complaint)
823 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
824 (hpread_unhandled_common_complaint)
825 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
826 struct definitions and declarations.
827 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
828 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
829 Replace calls to complain() with, possibly indirect, calls to
831 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
833 * mdebugread.c (bad_file_number_complaint, index_complaint)
834 (aux_index_complaint, block_index_complaint)
835 (unknown_ext_complaint, unknown_sym_complaint)
836 (unknown_st_complaint, block_overflow_complaint)
837 (basic_type_complaint, unknown_type_qual_complaint)
838 (array_index_type_complaint, bad_tag_guess_complaint)
839 (block_member_complaint, stEnd_complaint)
840 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
841 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
842 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
843 (bad_continued_complaint, bad_rfd_entry_complaint)
844 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
845 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
846 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
847 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
849 (index_complaint, unknown_ext_complaint, basic_type_complaint)
850 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
851 (unexpected_type_code_complaint)
852 (function_outside_compilation_unit_complaint): New functions.
853 (parse_symbol, parse_type, upgrade_type, parse_procedure)
854 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
855 Replace calls to complain() with, possibly indirect calls to
857 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
858 Delete deprecated complaint structs.
859 (lookup__objc_class, lookup_child_selector): Replace complain()
861 * remote-vx.c (cant_contact_target): Delete deprecated complaint
863 (vx_lookup_symbol): Replace complain() with complaint().
864 * stabsread.c (invalid_cpp_abbrev_complaint)
865 (invalid_cpp_type_complaint, member_fn_complaint)
866 (const_vol_complaint, error_type_complaint)
867 (invalid_member_complaint, range_type_base_complaint)
868 (reg_value_complaint, vtbl_notfound_complaint)
869 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
870 (unresolved_sym_chain_complaint, stabs_general_complaint)
871 (lrs_general_complaint, multiply_defined_struct): Delete
872 deprecated complaint structs.
873 (invalid_cpp_abbrev_complaint, ref_value_complaint)
874 (stabs_general_complaint, lrs_general_complaint)
875 (msg_unknown_complaint): New functions.
876 (dbx_lookup_type, read_cfront_baseclasses)
877 (read_cfront_member_functions, resolve_symbol_reference)
878 (define_symbol, resolve_live_range, add_live_range, read_type)
879 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
880 (read_one_struct_field, read_baseclasses, read_tilde_fields)
881 (read_cfront_static_fields, attach_fields_to_type)
882 (complain_about_struct_wipeout, read_range_type)
883 (common_block_start, common_block_end, cleanup_undefined_types)
884 (scan_file_globals): Replace complain() with complaint().
885 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
886 Delete deprecated complaint struct declarations.
887 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
888 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
889 (bf_not_found_complaint, ef_complaint, eb_complaint)
890 (function_outside_compilation_unit_complaint): New functions.
891 (record_include_begin, record_include_end, enter_line_range)
892 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
893 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
894 complain() with complaint().
896 2002-12-16 Andrew Cagney <ac131313@redhat.com>
898 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
899 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
900 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
901 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
902 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
903 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
904 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
905 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
906 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
907 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
908 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
909 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
910 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
911 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
912 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
913 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
914 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
915 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
916 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
917 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
918 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
919 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
920 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
921 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
922 * config/m88k/xm-dgux.h: Delete.
923 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
924 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
925 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
926 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
927 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
928 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
929 * ch-valprint.c: Delete.
931 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
933 * infrun.c (handle_inferior_event): Rearrange code to resume if
934 no catchpoint triggers for an event.
936 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
938 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
939 and TARGET_WAITKIND_VFORKED cases.
941 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
943 * infrun.c (handle_inferior_event): Assume that catchpoints
944 are not affected by DECR_PC_AFTER_BREAK.
946 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
948 * target.c (update_current_target): Don't inherit DONT_USE.
949 * target.h (struct target_ops): Remove DONT_USE.
950 (target_next): Remove macro.
952 2002-12-15 Mark Kettenis <kettenis@gnu.org>
954 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
956 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
958 * arm-tdep.c (convert_from_extended): New argument to hold the
959 type of floating point result we want to convert to. Make input
960 argument const. Fix all callers.
961 (convert_to_extended): Similarly.
962 (arm_extract_return_value): Now takes a regcache argument. Change
963 code to use regcache accessor functions. Correctly extract
964 smaller-than-word results on big-endian machines.
965 (arm_store_return_value): Now takes a regcache argument. Change
966 code to use regcache accessor functions. Correctly zero/sign extend
967 smaller than word results before storing into r0.
968 (arm_gdbarch_init): Register new-style extract_return_value and
969 store_return_value functions.
971 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
973 * thread-db.c (thread_from_lwp): Uniquify error msg.
974 (lwp_from_thread): Ditto.
975 (check_event): Ditto.
976 (find_new_threads_callback): Ditto.
977 (thread_db_pid_to_str): Ditto.
979 2002-12-13 Andrew Cagney <ac131313@redhat.com>
981 * frame.h (get_frame_saved_regs): Declare.
982 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
984 * frame.c (get_frame_saved_regs): New function.
985 (frame_saved_regs_zalloc): Return the allocated saved_regs.
987 2002-12-13 Andrew Cagney <ac131313@redhat.com>
989 * frame.c (deprecated_update_current_frame_pc_hack): New
991 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
992 * infrun.c (normal_stop): Use said function instead of directly
993 modifying the frame's PC.
995 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
997 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
999 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1001 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1002 config/mips/tm-irix6.h (NUM_REGS): Delete.
1003 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1004 (temp_saved_regs): Declare as a pointer rather than an array.
1005 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1006 that ``temp_saved_regs'' has storage allocated to it and that
1007 it's the correct size.
1009 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1011 * defs.h (init_last_source_visited): New prototype.
1013 * source.c (add_path): New function that adds to a specified path.
1014 (mod_path): Change to call add_path.
1015 (init_last_source_visited): New function to allow interfaces to
1016 initialize static variable: last_source_visited. Part of fix
1018 * Makefile.in: Add support for mi/mi-cmd-env.c.
1020 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1022 * frame.h (frame_id_unwind): Declare.
1023 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1025 (frame_id_unwind_ftype): Declare.
1026 * frame.c (frame_id_unwind): New function.
1027 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1028 (create_new_frame, get_prev_frame): Pass id_unwind to
1030 (frame_saved_regs_id_unwind): New function.
1031 (frame_saved_regs_id_unwind): New function.
1032 * dummy-frame.c (dummy_frame_id_unwind): New function.
1033 (struct dummy_frame): Add field id.
1034 (generic_push_dummy_frame): Initialize `id'.
1035 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1037 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1039 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1040 pass that to set_momentary_breakpoint. Move comments to where they
1042 * frame.h (set_current_frame): Delete declaration.
1043 * frame.c (set_current_frame): Delete function.
1045 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1047 * frame.c (frame_extra_info_zalloc): New function.
1048 * frame.h (frame_extra_info_zalloc): Declare.
1050 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1052 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1053 in the previous prototype change to set_momentary_breakpoint.
1055 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1057 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1059 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1060 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1061 (stop_stepping): Remove outdated check for child vfork events.
1063 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1065 * GDB 5.3 released from gdb_5_3-branch.
1067 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1069 * corelow.c (init_core_ops): Delete references to to_require_attach
1070 and to_require_detach.
1071 * exec.c (init_exec_ops): Likewise.
1072 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1073 hppa_require_detach directly.
1074 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1075 * inftarg.c (child_detach): Remove.
1076 (child_detach_from_process): Rename to child_detach, remove
1077 after_fork argument.
1078 (child_attach): Remove.
1079 (child_attach_to_process): Rename to child_attach, remove after_fork
1081 (init_child_ops): Delete references to to_require_attach
1082 and to_require_detach.
1083 * infttrace.c (hppa_require_attach): Update comment.
1084 * target.c (cleanup_target, update_current_target)
1085 (init_dummy_target, setup_target_debug): Delete references to
1086 to_require_attach and to_require_detach.
1087 (find_default_require_detach, find_default_require_attach)
1088 (debug_to_require_attach, debug_to_require_detach): Remove
1090 * target.h (struct target_ops): Remove to_require_attach
1091 and to_require_detach.
1092 (target_require_attach, target_require_detach): Delete macros.
1093 (find_default_require_detach, find_default_require_attach): Delete
1095 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1097 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1099 * frame.c (get_frame_extra_info): New function.
1100 * frame.h (get_frame_extra_info): Declare.
1102 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1104 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1105 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1106 with `struct frame_id'.
1107 (set_longjmp_resume_breakpoint): Ditto.
1108 * infrun.c (handle_inferior_event): Update.
1109 * breakpoint.c (watch_command_1, until_break_command): Update.
1110 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1111 (handle_inferior_event, step_over_function): Update.
1112 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1113 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1114 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1115 * infcmd.c (finish_command, run_stack_dummy): Update.
1117 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1119 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1120 (dwarf2_non_const_array_bound_ignored)
1121 (dwarf2_missing_line_number_section)
1122 (dwarf2_statement_list_fits_in_line_number_section)
1123 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1124 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1125 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1126 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1127 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1128 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1129 (dwarf2_missing_member_fn_type_complaint)
1130 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1131 (dwarf2_const_value_length_mismatch)
1132 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1133 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1134 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1135 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1136 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1137 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1138 complaints using deprecated struct..
1139 (dwarf2_non_const_array_bound_ignored_complaint)
1140 (dwarf2_complex_location_expr_complaint)
1141 (dwarf2_unsupported_at_frame_base_complaint)
1142 (dwarf2_const_value_length_mismatch_complaint)
1143 (dwarf2_macros_too_long_complaint)
1144 (dwarf2_macro_malformed_definition_complaint)
1145 (dwarf2_invalid_attrib_class_complaint): New functions.
1146 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1147 (read_structure_scope, read_array_type, read_common_block)
1148 (read_tag_pointer_type, read_base_type, read_partial_die)
1149 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1150 (new_symbol, dwarf2_const_value, read_type_die)
1151 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1152 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1153 complain() with, possibly indirect, calls to complaint().
1155 2002-12-11 Andrew Cagney <cagney@redhat.com>
1157 * frame.c (deprecated_get_frame_saved_regs): Rename
1158 get_frame_saved_regs.
1159 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1160 * sparc-tdep.c: Update.
1161 * hppa-tdep.c: Update.
1162 * h8500-tdep.c: Update.
1164 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1166 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1167 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1168 ``char *'' for return and parameter types.
1169 * gdbarch.h, gdbarch.c: Regenerate.
1170 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1171 return type from ``char *'' to ``const char *''.
1172 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1175 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1177 * i386-tdep.c: Include "dummy-frame.h".
1178 (i386_frame_chain, i386_frame_saved_pc): Replace
1179 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1180 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1182 2002-12-10 Andrew Cagney <cagney@redhat.com>
1184 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1185 Change to a function with predicate.
1186 * gdbarch.h, gdbarch.c: Re-generate.
1187 * frame.c (get_prev_frame): Update. Test
1188 DEPRECATED_INIT_FRAME_PC_P.
1189 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1190 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1191 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1192 * alpha-tdep.c (alpha_gdbarch_init): Update.
1193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1194 * mips-tdep.c (mips_gdbarch_init): Update.
1195 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1196 * arm-tdep.c: Update comments.
1197 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1198 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1199 * frv-tdep.c (frv_gdbarch_init): Ditto.
1200 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1201 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1202 * s390-tdep.c (s390_gdbarch_init): Ditto.
1203 * v850-tdep.c (v850_gdbarch_init): Ditto.
1204 * vax-tdep.c (vax_gdbarch_init): Ditto.
1205 * sh-tdep.c (sh_gdbarch_init): Ditto.
1206 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1208 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1209 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1210 * i386-tdep.c (i386_gdbarch_init): Ditto.
1211 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1212 * cris-tdep.c (cris_gdbarch_init): Ditto.
1213 * avr-tdep.c (avr_gdbarch_init): Ditto.
1214 * arm-tdep.c (arm_gdbarch_init): Ditto.
1215 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1216 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1218 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1220 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1222 * hppah-nat.c (saved_vfork_pid): Add.
1223 (child_post_follow_vfork): Remove.
1224 (child_follow_fork): New function.
1225 (child_wait): Call detach_breakpoints after receiving the child vfork.
1226 Call child_resume directly instead of going through resume ().
1227 Make sure we have the exec before reporting the vfork.
1228 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1229 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1230 (follow_fork): New function. Call target_follow_fork.
1231 (follow_inferior_reset_breakpoints): New function broken out from
1232 old follow_inferior_fork.
1233 (resume): Remove hack to follow exec after vfork.
1234 * inftarg.c (child_post_follow_vfork): Remove.
1235 (child_follow_fork): New function.
1236 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1237 * target.c (cleanup_target): Replace to_post_follow_vfork with
1239 (update_current_target): Likewise.
1240 (setup_target_debug): Likewise.
1241 (debug_to_post_follow_vfork): Remove.
1242 (debug_to_follow_fork): New function.
1243 * target.h (struct target_ops): Replace to_post_folow_vfork with
1245 (child_post_follow_vfork): Remove prototype.
1246 (child_follow_fork): Add prototype.
1247 (target_post_follow_vfork): Remove macro.
1248 (target_follow_fork): Add macro.
1250 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1252 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1253 (child_post_follow_vfork): Cancel pending exec event if we follow
1255 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1256 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1257 event at the following wait call if necessary.
1258 * infrun.c (follow_vfork): Don't follow_exec here.
1259 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1260 case about HP/UX 10.20. Remove code pushed down to
1261 hppah-nat.c:child_wait.
1262 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1263 vfork_in_flight is set.
1265 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1267 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1268 for the parent's fork event.
1269 * infrun.c (handle_inferior_event): Only expect one fork event.
1270 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1271 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1273 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1275 * PROBLEMS: Delete reference to PR gdb/725.
1277 * MAINTAINERS (gdb.c++): Add David Carlton.
1279 2002-12-09 David Carlton <carlton@math.stanford.edu>
1281 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1282 * cli/cli-cmds.c: Ditto.
1284 2002-12-09 Andrew Cagney <cagney@redhat.com>
1286 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1287 function address in <>.
1288 * gdbarch.c: Re-generate.
1290 2002-12-09 David Carlton <carlton@math.stanford.edu>
1292 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1294 2002-12-09 David Carlton <carlton@math.stanford.edu>
1296 * linespec.c (symtab_from_filename): New function.
1297 (decode_line_1): Move code into symtab_from_filename.
1299 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1301 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1303 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1305 * f-valprint.c (info_common_command): Use get_frame_pc.
1306 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1307 * ax-gdb.c (agent_command): Ditto.
1308 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1309 (rs6000_pop_frame): Ditto.
1310 (rs6000_frameless_function_invocation): Ditto.
1311 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1312 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1313 * macroscope.c (default_macro_scope): Ditto.
1314 * stack.c (print_frame_info_base): Ditto.
1315 (print_frame, frame_info, print_frame_label_vars): Ditto.
1316 (return_command, func_command, get_frame_language): Ditto.
1317 * infcmd.c (finish_command): Ditto.
1318 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1319 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1320 (break_at_finish_at_depth_command_1): Ditto.
1321 (break_at_finish_command_1): Ditto.
1322 (until_break_command, get_catch_sals): Ditto.
1323 * blockframe.c (func_frame_chain_valid): Ditto.
1324 (frameless_look_for_prologue): Ditto.
1325 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1327 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1329 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1330 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1332 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1334 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1336 * gdbarch.h, gdbarch.c: Re-generate.
1337 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1338 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1340 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1341 declaration to a function returning a CORE_ADDR.
1342 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1343 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1344 (init_frame_pc_default): Ditto.
1345 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1346 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1347 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1348 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1349 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1350 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1352 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1353 to init_frame_pc_noop.
1354 (i386_interix_init_frame_pc): Delete function.
1355 * z8k-tdep.c (init_frame_pc): Delete function.
1356 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1357 (INIT_FRAME_PC_FIRST): Ditto.
1358 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1359 (INIT_FRAME_PC_FIRST): Ditto.
1360 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1361 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1363 (INIT_FRAME_PC_FIRST): Convert to an expression.
1364 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1366 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1368 * blockframe.c: Use get_frame_base instead of directly accessing
1369 the `struct frame_info' member frame.
1370 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1371 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1373 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1375 * Makefile.in (readline_h): Define.
1376 (completer.o): Depend on readline_h.
1378 (event-top.o): Ditto.
1385 (tracepoint.o): Ditto.
1387 (cli-dump.o): Ditto.
1388 (tui-hooks.o): Ditto.
1391 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1393 More cleanup from import of readline 4.3.
1394 * completer.h (complete_line, readline_line_completion_function):
1396 (line_completion_function): Removed, not used outside of completer.c.
1397 * completer.c (readline_line_completion_function,
1398 complete_function, line_completion_function): Use const for first
1400 (line_completion_function): Make static.
1401 (filename_completer): filename_completion_function is now called
1402 rl_filename_completion_function
1403 * corelow.c: Include <readline/readline.h>.
1409 * top.c (init_main): No need to coerce
1410 readline_line_completion_function anymore.
1411 * cli/cli-dump.c: Include <readline/readline.h>.
1413 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1415 * stack.c (frame_info): Use get_prev_frame.
1416 * blockframe.c (frame_address_in_block): Ditto.
1417 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1418 (rs6000_frameless_function_invocation): Ditto.
1419 (rs6000_frame_saved_pc): Ditto.
1420 (rs6000_frame_chain): Ditto.
1421 * arch-utils.c (init_frame_pc_default): Ditto.
1423 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1425 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1426 Delete redundant definition.
1428 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1430 Import of readline 4.3:
1431 * cli/cli-cmds.c: Include readline/tilde.h.
1432 * cli/cli-setshow.c: Ditto.
1433 * defs.h: Don't declare tilde_expand anymore, since readline
1436 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1438 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1439 -Werror on this file.
1441 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1443 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1445 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1446 * gdbarch.c: Regenerate.
1448 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1450 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1451 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1452 provide a default value.
1453 * gdbarch.h, gdbarch.c: Regenerate.
1454 * frame.c (get_prev_frame): Update. Check
1455 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1456 * s390-tdep.c (s390_gdbarch_init): Update.
1457 * mips-tdep.c (mips_gdbarch_init): Update.
1458 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1459 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1460 * alpha-tdep.c (alpha_gdbarch_init): Update.
1462 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1464 * ia64-linux-nat.c: Include gdb_string.h.
1465 * alpha-nat.c: Ditto.
1466 * ppc-linux-nat.c: Ditto.
1467 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1468 Update dependencies.
1470 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1472 * gdbthread.h: Include "frame.h".
1473 (struct thread_info): Replace step_frame_address with
1475 * inferior.h: Include "frame.h".
1476 (step_frame_id): Replace external variable step_frame_address.
1477 * gdbthread.h (save_infrun_state): Replace step_frame_address
1478 parameter with step_frame_id parameter.
1479 (load_infrun_state): Ditto.
1480 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1481 * infcmd.c (step_frame_id, step_1, step_once): Update.
1482 * thread.c (load_infrun_state, save_infrun_state): Update.
1483 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1484 (handle_inferior_event, step_over_function): Update.
1485 (normal_stop, context_switch, restore_inferior_status): Update.
1486 (struct inferior_status): Replace step_frame_address with
1489 2002-12-05 David Carlton <carlton@math.stanford.edu>
1491 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1492 DW_TAG_member as well as a declaration as being a C++ static data
1494 (read_structure_scope): Combine tests for DW_TAG_member and
1497 2002-12-05 David Carlton <carlton@math.stanford.edu>
1499 * linespec.c (decode_compound): New function.
1500 (decode_line_1): Move code into decode_compound.
1502 2002-12-05 David Carlton <carlton@math.stanford.edu>
1504 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1506 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1507 the static block. See PR gdb/804.
1509 2002-12-05 David Carlton <carlton@math.stanford.edu>
1511 * symtab.c (lookup_symbol_aux_block): New function.
1512 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1514 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1516 * gdbarch.sh: Dump the predicate function and macro values.
1517 (read): Print error on standard error.
1518 * gdbarch.c: Regenerate.
1520 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1522 * Makefile.in (mips_tdep_h): Define.
1523 (mips-tdep.o): Add mips_tdep_h to dependency list.
1524 * mips-tdep.h: New file.
1525 * mips-tdep.c (mips-tdep.h): Include.
1526 (enum mips_abi): Move to mips-tdep.h.
1527 (mips_abi): New function.
1529 2002-12-04 David Carlton <carlton@math.stanford.edu>
1531 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1533 2002-12-04 David Carlton <carlton@math.stanford.edu>
1535 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1537 (lookup_symbol_aux_minsyms): New function.
1539 2002-12-04 J. Brobecker <brobecker@gnat.com>
1541 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1543 2002-12-04 J. Brobecker <brobecker@gnat.com>
1545 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1546 which is an obsolete macro name.
1548 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1550 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1551 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1553 2002-12-03 H.J. Lu (hjl@gnu.org)
1555 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1556 (create_breakpoints): Make sure the addr_string field is not
1559 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1561 * sparc-nat.c (fetch_inferior_registers)
1562 (store_inferior_registers): Add comment on problem of LWP vs
1565 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1566 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1567 (lin_lwp_store_registers): Remove.
1568 (init_lin_lwp_ops): Use fetch_inferior_registers
1569 and store_inferior_registers directly.
1570 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1571 (store_inferior_registers): Likewise.
1574 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1576 * frame.h (get_frame_id): Convert to a function.
1577 (null_frame_id, frame_id_p): Declare.
1578 (frame_id_eq, frame_id_inner): Declare.
1579 (frame_id_build): New function.
1580 * frame.c (get_frame_id): Update. Use null_frame_id.
1581 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1583 (null_frame_id, frame_id_p): Define.
1584 (frame_id_eq, frame_id_inner): Define.
1585 (frame_id_build): New function.
1586 * varobj.c (varobj_create): Update.
1587 (varobj_update): Update.
1588 * valops.c (value_assign): Update.
1589 (new_root_variable): Update.
1590 * infrun.c (save_inferior_status): Update.
1591 * breakpoint.c (watch_command_1): Update.
1593 2002-12-03 J. Brobecker <brobecker@gnat.com>
1595 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1598 2002-12-03 Andrew Cagney <cagney@redhat.com>
1600 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1603 * PROBLEMS: Mention PR gdb/725.
1605 2002-12-03 Andreas Schwab <schwab@suse.de>
1607 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1609 2002-12-02 Adam Fedor <fedor@gnu.org>
1610 Klee Dienes <kdienes@apple.com>
1612 * objc-lang.c (objc_printstr): Add width arg to match
1614 (compare_selectors): Add 'const' to arg types.
1615 (compare_classes): Likewise.
1616 (find_imps): Cast msym pointer to avoid compiler warning.
1617 (print_object_command): Validate the address before
1618 passing it to the print routine.
1619 (find_objc_msgcall_submethod): Change function argument to
1621 * objc-lang.h: Add 'extern' to all function declarations.
1622 (value_nsstring): Add declaration.
1624 2002-12-02 J. Brobecker <brobecker@gnat.com>
1626 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1627 Fixes a build failure on HP/UX.
1629 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1631 (hpread_has_name): Advance declaration to avoid a compilation warning.
1632 (pst_syms_count): Add missing variable type. By change, the compiler
1633 was defaulting to int, which seems a good choice. Fixes a compilation
1635 (pst_syms_size): Likewise.
1637 2002-12-02 J. Brobecker <brobecker@gnat.com>
1639 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1640 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1641 later to set the proper gdbarch methods depending on the osabi.
1642 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1644 2002-12-02 J. Brobecker <brobecker@gnat.com>
1646 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1647 * osabi.c (gdb_osabi_name): Add strings images for the two new
1649 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1651 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1653 * MAINTAINERS (Java): Global maintainers are responible for Java.
1654 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1655 part Java maintainers.
1657 2002-12-02 J. Brobecker <brobecker@gnat.com>
1659 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1660 Fixes a compilation failure on AiX.
1662 2002-12-02 J. Brobecker <brobecker@gnat.com>
1664 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1665 why aix-thread.o is not listed.
1667 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1669 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1670 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1671 * gdbarch.h, gdbarch.c: Re-generate.
1672 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1673 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1674 * config/pa/tm-hppa.h, frame.h: Update.
1675 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1676 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1677 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1678 * cris-tdep.c, alpha-tdep.c: Update.
1679 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1680 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1681 (get_prev_frame): Ditto.
1683 2002-11-30 Andrew Cagney <cagney@redhat.com>
1685 * exec.c (xfer_memory): Replace boolean with int.
1686 * p-exp.y: Use 0 instead of false.
1687 * corelow.c (gdb_check_format): Change return type to int from
1689 * utils.c: Don't include <curses.h> or <term.h> first.
1691 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1693 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1694 (m68hc11_register_byte): Remove.
1695 (m68hc11_gdbarch_init): Don't set the above.
1697 2002-11-29 Andrew Cagney <cagney@redhat.com>
1699 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1700 by calling get_selected_frame.
1701 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1702 set_current_frame, create_new_frame, select_frame and
1704 * remote-e7000.c (e7000_start_remote): Ditto.
1705 * remote-mips.c (common_open): Ditto
1706 * remote-rdp.c (remote_rdp_open): Ditto.
1708 2002-11-29 Andreas Schwab <schwab@suse.de>
1710 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1711 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1712 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1713 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1714 read_memory_unsigned_integer instead of read_memory_integer when
1715 dealing with addresses and instruction opcodes.
1716 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1717 (m68k_linux_frame_saved_pc): Likewise.
1719 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1721 * stack.c (selected_frame, select_frame): Move from here ...
1722 * frame.c (selected_frame, select_frame): ... to here. Include
1724 * Makefile.in (frame.o): Update dependencies.
1725 * frame.c (get_selected_frame): New function.
1726 * frame.h (get_selected_frame): Declare.
1727 (deprecated_selected_frame): Rename selected_frame.
1728 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1729 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1730 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1731 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1732 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1733 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1734 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1735 * z8k-tdep.c, cli/cli-cmds.c: Update.
1737 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1739 * frame.h (get_selected_block): Add comments.
1741 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1743 * frame.c (pc_notcurrent): New function.
1744 (find_frame_sal): New function.
1745 * frame.h (find_frame_sal): Declare.
1746 (struct symtab_and_line): Add opaque declaration.
1747 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1749 (frame_info): Ditto.
1750 * ada-lang.c (find_printable_frame): Ditto.
1752 2002-11-28 J. Brobecker <brobecker@gnat.com>
1754 * configure.in: Check that the pthdebug library is recent enough
1755 before enabling thread support on native AiX.
1756 * configure: Regenerate.
1758 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1759 from the list of object files as it is now appended by configure
1760 if thread support is enabled.
1761 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1762 if thread support is enabled.
1764 2002-11-28 Andrew Cagney <cagney@redhat.com>
1766 * stack.c (get_selected_block): In-line get_current_block.
1767 * frame.h (get_current_block): Delete declaration.
1768 * blockframe.c (get_current_block): Delete function.
1770 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1772 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1773 USE_GENERIC_DUMMY_FRAMES.
1774 * gdbarch.h, gdbarch.c: Regenerate.
1775 * valops.c, frame.c: Update.
1776 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1777 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1778 * config/pa/tm-hppa.h, blockframe.c: Update.
1779 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1780 * m68k-tdep.c, alpha-tdep.c: Ditto.
1782 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1783 * mips-tdep.c: Ditto.
1785 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1787 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1788 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1789 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1790 * gdbarch.c, gdbarch.h: Re-generate.
1791 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1792 (CALL_DUMMY_LOCATION): Delete macro definition.
1793 (PC_IN_CALL_DUMMY): Delete macro definitions.
1795 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1796 default is already generic_pc_in_call_dummy.
1797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1798 * v850-tdep.c (v850_gdbarch_init): Ditto.
1799 * sh-tdep.c (sh_gdbarch_init): Ditto.
1800 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1801 * mips-tdep.c (mips_gdbarch_init): Ditto.
1802 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1804 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1805 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1806 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1807 * avr-tdep.c (avr_gdbarch_init): Ditto.
1809 * arm-tdep.c (arm_gdbarch_init): Do not set
1810 use_generic_dummy_frames, default is already 1.
1811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1812 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1813 * v850-tdep.c (v850_gdbarch_init): Ditto.
1814 * sh-tdep.c (sh_gdbarch_init): Ditto.
1815 * s390-tdep.c (s390_gdbarch_init): Ditto.
1816 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1817 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1818 * mips-tdep.c (mips_gdbarch_init): Ditto.
1819 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1821 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1822 * i386-tdep.c (i386_gdbarch_init): Ditto.
1823 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1824 * frv-tdep.c (frv_gdbarch_init): Ditto.
1825 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1826 * cris-tdep.c (cris_gdbarch_init): Ditto.
1827 * avr-tdep.c (avr_gdbarch_init): Ditto.
1829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1830 call_dummy_location, default is already AT_ENTRY_POINT.
1831 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1832 * v850-tdep.c (v850_gdbarch_init): Ditto.
1833 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1834 * sh-tdep.c (sh_gdbarch_init): Ditto.
1835 * s390-tdep.c (s390_gdbarch_init): Ditto.
1836 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1837 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1838 * mips-tdep.c (mips_gdbarch_init): Ditto.
1839 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1840 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1841 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1842 * i386-tdep.c (i386_gdbarch_init): Ditto.
1843 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1844 * frv-tdep.c (frv_gdbarch_init): Ditto.
1845 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1846 * cris-tdep.c (cris_gdbarch_init): Ditto.
1847 * avr-tdep.c (avr_gdbarch_init): Ditto.
1848 * arm-tdep.c (arm_gdbarch_init): Ditto.
1849 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1851 2002-11-28 Andrew Cagney <cagney@redhat.com>
1853 * frame.h: Update comments on set_current_frame, create_new_frame,
1854 flush_cached_frames, reinit_frame_cache, select_frame and
1857 2002-11-27 Andrew Cagney <cagney@redhat.com>
1859 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1860 deprecated pc_in_call_dummy function.
1861 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1862 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1863 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1864 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1865 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1867 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1869 * Makefile.in: Remove Tix dependencies.
1870 * acinclude.m4: Ditto.
1871 * aclocal.m4: Ditto.
1872 * configure.in: Ditto.
1873 * configure: Regenerated.
1875 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1877 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1878 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1879 * gdbarch.c: Re-generate.
1881 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1883 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1884 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1885 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1886 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1887 pc_in_call_dummy_at_entry_point.
1888 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1889 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1890 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1891 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1892 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1893 pc_in_call_dummy_on_stack.
1894 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1895 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1896 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1897 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1898 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1900 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1902 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1903 pc_in_call_dummy_before_text_end
1904 (deprecated_pc_in_call_dummy_after_text_end): Rename
1905 pc_in_call_dummy_after_text_end.
1906 (deprecated_pc_in_call_dummy_on_stack): Rename
1907 pc_in_call_dummy_on_stack.
1908 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1909 pc_in_call_dummy_at_entry_point.
1910 * m68k-tdep.c (m68k_gdbarch_init): Update.
1911 * s390-tdep.c (s390_gdbarch_init): Update.
1912 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1913 * vax-tdep.c (vax_gdbarch_init): Update.
1914 * sparc-tdep.c (sparc_gdbarch_init): Update.
1915 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1916 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1917 * i386-tdep.c (i386_gdbarch_init): Update.
1918 * frv-tdep.c (frv_gdbarch_init): Update.
1919 * cris-tdep.c (cris_gdbarch_init): Update.
1920 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1921 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1922 (deprecated_pc_in_call_dummy_after_text_end)
1923 (deprecated_pc_in_call_dummy_on_stack)
1924 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1925 * alpha-tdep.c (alpha_gdbarch_init): Update.
1927 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1929 * acconfig.h (HAVE_PREAD64): Add.
1930 * configure.in: Check for pread64.
1931 * config.in: Regenerated.
1932 * configure: Regenerated.
1933 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1934 * linux-proc.c (linux_proc_xfer_memory): New function.
1935 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1937 2002-11-25 David Carlton <carlton@math.stanford.edu>
1939 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1942 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1944 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1945 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1947 2002-11-25 Jim Blandy <jimb@redhat.com>
1949 * symfile.c (init_objfile_sect_indices): New function.
1950 (default_symfile_offsets): Move the section-index-initializing
1951 stuff into init_objfile_sect_indices, and call that.
1953 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1954 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1956 * symfile.c (syms_from_objfile): Adjust indentation.
1958 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1959 || info_verbose isn't true.
1961 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1963 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1964 default to get_frame_base.
1965 * gdbarch.h, gdbarch.c: Regenerate.
1966 * arch-utils.c (default_frame_address): Delete function.
1967 * arch-utils.h (default_frame_address): Delete declaration
1969 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1971 * varobj.c (find_frame_addr_in_frame_chain):
1972 Use get_frame_base instead of FRAME_FP,
1975 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1977 * frame.h (FRAME_FP): Delete macro.
1978 (get_frame_base): New function declaration.
1979 * frame.c (get_frame_base): New function.
1980 (get_frame_id): Use ->frame.
1981 (frame_find_by_id): Rewrite to use get_frame_id.
1982 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1983 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1984 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1985 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1986 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1987 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1988 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1990 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1992 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1994 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1996 * frame.c (set_unwind_by_pc): Revert change below, use
1998 (get_prev_frame): Ditto.
2000 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2002 * dummy-frame.c (pc_in_dummy_frame): New function.
2003 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2004 (find_dummy_frame): Update comment.
2005 (generic_pop_current_frame): Use get_frame_type.
2006 * dummy-frame.h (pc_in_dummy_frame): Declare.
2007 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2008 (create_new_frame): Use pc_in_dummy_frame.
2009 (get_prev_frame): Use pc_in_dummy_frame.
2010 (frame_saved_regs_register_unwind): Use get_prev_frame.
2011 (deprecated_generic_get_saved_register): Use get_prev_frame.
2013 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2015 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2017 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2018 (varobj_create): Note that frame ID should be used.
2019 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2021 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2023 * breakpoint.c: Include "gdb_assert.h".
2024 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2026 * Makefile.in (breakpoint.o): Update dependencies.
2027 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2028 deprecated_frame_in_dummy.
2029 * stack.c (print_frame_info_base): Ditto.
2030 (frame_info): Ditto.
2031 (print_frame_info_base): Ditto. Delete dead code.
2033 2002-11-23 Andreas Schwab <schwab@suse.de>
2035 * Makefile.in (m68k_tdep_h): Define.
2036 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2037 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2038 * m68k-tdep.c: Move register number enum ...
2039 * m68k-tdep.h: ... to this new file and rename the constants from
2040 E_* to M68K_*. All uses changed.
2041 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2042 * abug-rom.c: Include "m68k-tdep.h". Use
2043 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2044 * cpu32bug-rom.c: Likewise.
2045 * dbug-rom.c: Likewise.
2046 * m68k-tdep.c: Likewise.
2047 * m68klinux-nat.c: Likewise.
2048 * remote-est.c: Likewise.
2049 * rom68k-rom.c: Likewise.
2050 * config/m68k/tm-linux.h: Likewise.
2052 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2054 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2055 dummy frame initialization code.
2056 * mips-tdep.c (mips_gdbarch_init): Ditto.
2058 2002-11-22 Christopher Faylor <cgf@redhat.com>
2060 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2063 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2065 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2066 to default_frame_address.
2067 * gdbarch.h, gdbarch.c: Re-generate.
2069 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2070 or frame_locals_address to default_frame_address.
2071 * m68k-tdep.c (m68k_gdbarch_init): Update.
2072 * i386-tdep.c (i386_gdbarch_init): Update.
2073 * frv-tdep.c (frv_gdbarch_init): Update.
2074 * sh-tdep.c (sh_gdbarch_init): Update.
2075 * v850-tdep.c (v850_gdbarch_init): Update.
2076 * sparc-tdep.c (sparc_gdbarch_init): Update.
2077 * mips-tdep.c (mips_gdbarch_init): Update.
2078 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2079 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2080 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2082 * cris-tdep.c (cris_frame_args_address): Delete function.
2083 (cris_frame_locals_address): Delete function.
2084 (cris_gdbarch_init): Do not set frame_args_address or
2085 frame_locals_address.
2087 2002-11-22 Michael Snyder <msnyder@redhat.com>
2089 * thread-db.c (thread_db_load): Tell the user what's going on
2090 if dlopen fails on libthread_db.
2092 2002-11-23 Andreas Schwab <schwab@suse.de>
2094 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2095 invariant return values.
2097 2002-11-22 Andreas Schwab <schwab@suse.de>
2099 * valops.c (value_slice): Move declaration of `offset' to avoid
2102 2002-11-22 Christopher Faylor <cgf@redhat.com>
2104 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2105 (struct so_stuff): Add end_addr field.
2106 (register_loaded_dll): Calculate and store end address of loaded dll.
2107 (solib_address): New function.
2108 (child_solib_loaded_library_pathname): Pass carefully constructed
2109 section info to safe_symbol_file_add rather than ignoring it.
2110 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2112 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2113 (child_create_inferior): Fix a compiler warning.
2114 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2115 (solib_address): Declare new function.
2117 2002-11-22 Andreas Schwab <schwab@suse.de>
2119 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2122 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2124 * maint.c (_initialize_maint_cmds): Fix typo. From
2125 Francesco Potorti` <pot@gnu.org>.
2127 2002-11-21 Andrew Cagney <cagney@redhat.com>
2129 * mips-tdep.c (mips_dump_tdep): Delete references to
2130 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2131 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2132 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2133 * printcmd.c (build_address_symbolic): Delete calls to
2134 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2135 (address_info): Ditto.
2138 2002-11-19 Klee Dienes <kdienes@apple.com>
2139 Adam Fedor <fedor@gnu.org>
2141 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2142 the ability to explicitly specify the quote characters and word
2143 break characters; if NULL is specified for either, use the old
2144 behavior of using the characters used by the completer.
2145 (skip_chars): New function. Convenience wrapper around
2146 skip_quoted_chars to provide the original skip_chars behavior.
2147 * completer.h (skip_quoted_chars): Add prototype.
2149 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2151 Problems reported by Paul Eggert.
2152 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2154 2002-11-19 Andreas Schwab <schwab@suse.de>
2156 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2157 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2158 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2159 (m68k_linux_frame_saved_pc): Move to ...
2160 * m68klinux-tdep.c: ... here. New file.
2161 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2162 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2164 2002-11-19 Adam Fedor <fedor@gnu.org>
2166 * objc-exp.y: Revert to old skip_quoted usage.
2168 2002-11-19 Adam Fedor <fedor@gnu.org>
2170 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2171 (objc_lang_h): Define.
2172 (YYFILES): Add objc-exp.tab.c.
2173 (local-maintainer-clean): Remove objc-exp.tab.c.
2174 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2176 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2178 * p-exp.y (typecast rule): Add automatic dereference of
2179 pascal classes if needed.
2180 (THIS): Set current_type.
2181 Automatically dereference pascal classes.
2182 (typebase rule): Add ^typebase recognition.
2184 2002-11-18 Adam Fedor <fedor@gnu.org>
2186 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2187 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2188 (op_name): Handle OP_OBJC_SELF.
2189 * Makefile.in (expprint.o): Add additional depends.
2191 2002-11-18 Adam Fedor <fedor@gnu.org>
2193 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2194 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2195 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2196 * objc-exp.y: Likewise.
2198 2002-11-18 Adam Fedor <fedor@gnu.org>
2200 * gdb/parser-defs.h: (struct objc_class_str): New structure
2201 for parsing ObjC classes.
2203 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2205 * stack.c (frame_relative_level): Copy function from here ...
2206 * frame.c (frame_relative_level): ...to here.
2208 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2210 * frame.h (enum frame_type): Define.
2211 (get_frame_type): Declare.
2212 (struct frame_info): Add field `type'. Delete field
2213 signal_handler_caller.
2214 (deprecated_set_frame_signal_handler_caller): Declare.
2215 * frame.c (get_frame_type): New function.
2216 (deprecated_set_frame_type): New function.
2217 (create_new_frame): Set the frame's type.
2218 (get_prev_frame): Similar.
2219 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2220 * s390-tdep.c: Ditto.
2221 * m68klinux-nat.c: Ditto.
2222 * ns32k-tdep.c: Ditto.
2223 * x86-64-linux-tdep.c: Ditto.
2224 * vax-tdep.c: Ditto.
2225 * rs6000-tdep.c: Ditto.
2226 * ppc-linux-tdep.c: Ditto.
2227 * i386-interix-tdep.c: Ditto.
2228 * mips-tdep.c: Ditto.
2229 * m68k-tdep.c: Ditto.
2230 * hppa-tdep.c: Ditto.
2231 * ia64-tdep.c: Ditto.
2232 * cris-tdep.c: Ditto.
2233 * arm-tdep.c: Ditto.
2234 * alpha-tdep.c: Ditto.
2235 * i386-tdep.c: Ditto.
2237 * ada-lang.c: Ditto.
2238 * blockframe.c: Update.
2239 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2240 deprecated_set_frame_type instead of signal_handler_caller.
2241 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2242 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2243 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2245 2002-11-18 Klee Dienes <kdienes@apple.com>
2247 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2249 2002-11-18 Klee Dienes <kdienes@apple.com>
2251 * buildsym.c (pop_context): Add comment.
2253 2002-11-18 Klee Dienes <kdienes@apple.com>
2255 * buildsym.h (pop_context): Convert to function, defined in
2257 * buildsym.c: Include gdb_assert.h.
2258 (pop_context): Implement as C function. Add check for stack
2260 * dbxread.c (process_one_symbol): Complain and stop processing
2261 that symbol if we are already at the top of the context stack for
2262 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2263 when processing N_RBRAC.
2265 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2267 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2269 (struct target_waitstatus): Add opaque definition.
2270 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2271 * exec.c (init_exec_ops): Likewise.
2272 * fork-child.c (clone_and_follow_inferior): Remove.
2273 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2274 * inferior.h (clone_and_follow_inferior): Remove prototype.
2275 * infrun.c (follow_fork_mode_both): Remove.
2276 (follow_fork_mode_kind_names): Remove commented out "both".
2277 (follow_inferior_fork): Remove follow_fork_mode_both support.
2278 * inftarg.c (child_clone_and_follow_inferior): Remove.
2279 (child_post_follow_inferior_by_clone): Remove.
2280 (init_child_ops): Don't set to_clone_and_follow_inferior
2281 or to_post_follow_inferior_by_clone.
2282 * target.c (default_clone_and_follow_inferior): Remove.
2283 (cleanup_target): Don't set to_clone_and_follow_inferior
2284 or to_post_follow_inferior_by_clone.
2285 (find_default_clone_and_follow_inferior): Remove.
2286 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2287 (debug_to_clone_and_follow_inferior): Remove.
2288 (debug_to_post_follow_inferior_by_clone): Remove.
2289 (setup_target_debug): Don't set to_clone_and_follow_inferior
2290 or to_post_follow_inferior_by_clone.
2291 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2292 and to_post_follow_inferior_by_clone.
2293 (child_clone_and_follow_inferior): Remove prototype.
2294 (child_post_follow_inferior_by_clone): Remove prototype.
2295 (target_clone_and_follow_inferior): Remove macro.
2296 (target_post_follow_inferior_by_clone): Remove macro.
2297 (find_default_clone_and_follow_inferior): Remove prototype.
2299 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2301 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2302 inferior_has_vforked, and inferior_has_execd instead of
2303 target_has_forked, target_has_vforked, and target_has_execd.
2304 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2305 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2306 (CHILD_WAIT): Define.
2307 (child_wait): Add prototype.
2308 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2310 (hpux_has_vforked): Likewise, from child_has_vforked.
2311 (hpux_has_execd): Likewise, from child_has_execd.
2312 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2313 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2314 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2315 and hpux_has_syscall_event instead of the target hooks.
2316 * infrun.c (inferior_has_forked, inferior_has_vforked)
2317 (inferior_has_execd): New functions.
2318 * inftarg.c (not_same_real_pid): Remove.
2319 (child_wait): Remove references to not_same_real_pid,
2320 target_has_forked, target_has_vforked, target_has_execd,
2321 and target_has_syscall_event.
2322 (child_has_forked, child_has_vforked, child_has_execd)
2323 (child_has_syscall_event): Remove.
2324 (init_child_ops): Remove references to child_has_forked,
2325 child_has_vforked, child_has_execd, and child_has_syscall_event.
2326 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2327 (hpux_has_vforked): Likewise, from child_has_vforked.
2328 (hpux_has_execd): Likewise, from child_has_execd.
2329 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2330 * target.c (cleanup_target): Remove references to
2331 to_has_forked, to_has_vforked, to_has_execd, and
2332 to_has_syscall_event.
2333 (update_current_target): Likewise.
2334 (setup_target_debug): Likewise.
2335 (debug_to_has_forked): Remove.
2336 (debug_to_has_vforked): Remove.
2337 (debug_to_has_execd): Remove.
2338 (debug_to_has_syscall_event): Remove.
2339 * target.h (struct target_ops): Remove to_has_forked.
2340 to_has_vforked, to_has_execd, and to_has_syscall_event.
2341 (child_has_forked, child_has_vforked, child_has_execd)
2342 (child_has_syscall_event): Remove prototypes.
2343 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2345 (target_has_forked, target_has_vforked, target_has_execd)
2346 (target_has_syscall_event): Remove macros.
2348 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2350 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2351 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2352 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2353 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2354 * target.c (cleanup_target): Remove reference to
2355 to_can_follow_vfork_prior_to_exec.
2356 (update_current_target): Likewise.
2357 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2358 (setup_target_debug): Remove reference to
2359 to_can_follow_vfork_prior_to_exec.
2360 * target.h (struct target_ops): Remove
2361 to_can_follow_vfork_prior_to_exec.
2362 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2363 (target_can_follow_vfork_prior_to_exec): Remove definition.
2364 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2366 * infrun.c (follow_vfork_when_exec): Remove.
2367 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2368 (follow_exec): Likewise.
2369 (handle_inferior_event): Likewise.
2370 (keep_going): Likewise.
2372 2002-11-15 Andrew Cagney <cagney@redhat.com>
2374 * frame.c (generic_unwind_get_saved_register): Make static.
2375 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2376 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2377 defaults to generic_unwind_get_saved_register.
2378 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2379 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2380 * frv-tdep.c (frv_gdbarch_init): Ditto.
2381 * i386-tdep.c (i386_gdbarch_init): Ditto.
2382 * s390-tdep.c (s390_gdbarch_init): Ditto.
2383 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2384 * v850-tdep.c (v850_gdbarch_init): Ditto.
2385 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2386 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2387 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2389 2002-11-15 Andrew Cagney <cagney@redhat.com>
2391 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2394 2002-11-15 Andrew Cagney <cagney@redhat.com>
2396 * frame.h (sigtramp_saved_pc): Delete declaration.
2397 * blockframe.c (sigtramp_saved_pc): Delete function.
2398 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2399 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2400 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2401 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2403 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2405 * frame.c (frame_pc_unwind): New function.
2406 (frame_saved_regs_pc_unwind): New function.
2407 (frame_register_unwind): Pass unwind_cache instead of
2408 register_unwind_cache.
2409 (set_unwind_by_pc): Add unwind_pc parameter, set.
2410 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2411 (get_prev_frame): Ditto.
2412 * frame.h (frame_pc_unwind_ftype): Declare.
2413 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2414 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2415 (frame_pc_unwind): Declare.
2416 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2417 (struct dummy_frame): Add comment mentioning that values are for
2419 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2420 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2421 (generic_file_frame_chain_valid): Ditto.
2422 * stack.c (frame_info): Ditto.
2424 2002-11-15 David Carlton <carlton@math.stanford.edu>
2426 * linespec.c (locate_first_half): New function.
2427 (decode_line_1): Move code into locate_first_half.
2429 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2431 * complaints.h: Add comment explaining how to eliminate a
2432 deprecated_complain call.
2433 * complaints.h: Fix spelling errors.
2435 2002-11-15 David Carlton <carlton@math.stanford.edu>
2437 * printcmd.c: Remove #include "disasm.h".
2439 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2441 * frame.h: Move the most relevant interface functions to the start
2444 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2446 * regcache.h (deprecated_registers): Rename registers.
2447 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2448 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2449 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2450 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2451 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2452 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2453 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2454 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2455 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2456 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2457 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2458 * v850ice.c: Update.
2460 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2462 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2465 2002-11-13 Andrew Cagney <cagney@redhat.com>
2467 * regcache.h (deprecated_read_register_bytes): Rename
2468 read_register_bytes.
2469 (deprecated_write_register_bytes): Rename write_register_bytes.
2470 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2471 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2472 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2473 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2474 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2475 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2476 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2477 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2478 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2479 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2480 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2481 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2482 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2483 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2485 2002-11-13 Jim Blandy <jimb@redhat.com>
2487 * findvar.c (read_var_value): Doc fix.
2489 2002-11-13 Andrew Cagney <cagney@redhat.com>
2491 * regcache.c (struct regcache): Replace passthough_p with
2493 (regcache_xmalloc): Initialize readonly_p.
2494 (build_regcache): Initialize readonly_p.
2495 (regcache_save): New function.
2496 (regcache_restore): New function.
2497 (regcache_cpy): Re-implement using regcache_save and
2499 (regcache_raw_read): Update.
2500 (regcache_cooked_read): When a read-only cache, checked for cached
2501 pseudo register values.
2502 (regcache_raw_write): Assert that the cache is not read-only.
2503 Remove code handling a non-passthrough cache.
2504 * regcache.h (regcache_save): Declare.
2505 (regcache_restore): Declare.
2507 2002-11-13 Andrew Cagney <cagney@redhat.com>
2509 * regcache.c (struct regcache_descr): Add fields
2510 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2511 (init_legacy_regcache_descr): Compute the size of a cooked
2512 register cache and then assign that to sizeof_raw_registers. Set
2513 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2514 (init_legacy_regcache_descr): Ditto.
2516 2002-11-13 Andrew Cagney <cagney@redhat.com>
2518 * regcache.c (register_buffer): Move to near start of file, update
2520 (regcache_raw_read): Use.
2521 (regcache_raw_write): Use.
2522 (struct regcache): Rename raw_registers to registers and
2523 raw_register_valid_p to register_valid_p.
2524 (regcache_xmalloc): Update.
2525 (regcache_xfree): Update.
2526 (register_buffer): Update.
2527 (regcache_cpy): Update.
2528 (regcache_cpy_no_passthrough): Update.
2529 (regcache_valid_p): Update.
2530 (deprecated_grub_regcache_for_registers): Update.
2531 (deprecated_grub_regcache_for_register_valid): Update.
2532 (set_register_cached): Update.
2533 (regcache_raw_write): Update.
2535 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2537 * p-exp.y (name_not_typename): Use copy_name to
2538 set current_type variable for fields of THIS.
2540 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2542 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2543 * monitor.c (init_base_monitor_ops): Likewise.
2544 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2545 * remote-array.c (init_array_ops): Likewise.
2546 * remote-e7000.c (init_e7000_ops): Likewise.
2547 * remote-es.c (init_es1800_ops): Likewise.
2548 (init_es1800_child_ops): Likewise.
2549 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2550 * remote-sim.c (init_gdbsim_ops): Likewise.
2551 * remote-st.c (init_st2000_ops): Likewise.
2552 * sol-thread.c (init_sol_core_ops): Likewise.
2553 (init_sol_thread_ops): Likewise.
2554 * v850ice.c (init_850ice_ops): Likewise.
2555 * win32-nat.c (init_child_ops): Likewise.
2556 * wince.c (init_child_ops): Likewise.
2558 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2560 * utils.c (gdb_realpath): Make rp a constant pointer.
2562 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2564 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2565 a constant buffer; cannonicalize_file_name(); realpath() with a
2566 pathconf() defined buffer, xstrdup().
2568 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2570 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2571 to hang2.C; hang3.c to hang3.C.
2573 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2575 * findvar.c (read_var_value): Reenable TLS code.
2577 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2578 Jim Blandy <jimb@redhat.com>
2580 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2581 * target.c (update_current_target): Add
2582 to_get_thread_local_address.
2583 * target.h (to_get_thread_local_address): Export.
2584 (target_get_thread_local_address): Define.
2585 (target_get_thread_local_address_p): Define.
2586 * thread-db.c: Include solib-svr4.h.
2587 (td_thr_tls_get_addr_p): Define.
2588 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2589 (thread_db_get_thread_local_address): New function.
2590 (init_thread_db_ops): Initialize to_get_thread_local_address.
2591 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2592 * configure: Regenerate.
2593 * config.in: Regenerate.
2595 2002-11-11 David Carlton <carlton@math.stanford.edu>
2597 * linespec.c (set_flags): New function.
2598 (decode_line_1): Move code into set_flags.
2600 2002-11-11 David Carlton <carlton@math.stanford.edu>
2602 * linespec.c (decode_line_1): Move chunks of code to separate
2604 (initialize_defaults): New function.
2605 (decode_indirect): New function.
2607 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2609 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2610 instead of void_code_ptr.
2611 (sigtramp_saved_pc): Ditto.
2613 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2616 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2618 * gdbtypes.h (struct main_type): Move artificial flag out of
2619 loc. New member of ``struct field'' named static_kind. Reduce
2620 overloaded meaning of bitsize.
2621 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2622 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2623 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2625 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2627 (template_to_fixed_record_type, template_to_static_fixed_type)
2628 (to_record_with_fixed_variant_part): Likewise.
2629 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2630 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2631 * dwarfread.c (struct_type, enum_type): Likewise.
2632 * hpread.c (hpread_read_enum_type)
2633 (hpread_read_function_type, hpread_read_doc_function_type)
2634 (hpread_read_struct_type): Likewise.
2635 * mdebugread.c (parse_symbol): Likewise.
2637 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2639 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2640 * stack.c (print_frame_info_base): Update.
2641 (print_frame_info_base, frame_info): Update.
2642 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2643 (sparc_frame_saved_pc): Update.
2644 * ada-lang.c (find_printable_frame): Update.
2645 * breakpoint.c (deprecated_frame_in_dummy): Update.
2647 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2649 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2651 (regmap): Extend to cover all registers.
2652 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2653 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2655 (fetch_register, sore_register): Simplify.
2656 (old_fetch_inferior_registers, old_store_inferior_registers):
2658 (cannot_fetch_register, cannot_store_register): Change
2659 implementation to use regmap array to decide which registers
2660 cannot be fetched/stored. This removes $orig_eax from the
2661 registers that cannot be fetched/stored.
2662 (fetch_inferior_registers): Call fetch_register directly instead
2663 of calling old_fetch_inferior_registers.
2664 (store_inferior_registers): Call store_register directly instead
2665 of calling old_store_inferior_registers.
2666 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2667 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2668 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2670 2002-11-09 Klee Dienes <kdienes@apple.com>
2672 * i387-tdep.c (i387_supply_register): When called with NULL as a
2673 buffer, mark the register as not provided (to mirror the behavior
2674 of supply_register).
2675 (i387_supply_fxsave): Ditto.
2676 (i387_supply_fsave): Ditto (inherits the behavior from
2677 i387_supply_register).
2679 2002-11-09 Klee Dienes <kdienes@apple.com>
2681 * blockframe.c (sigtramp_saved_pc): Use
2682 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2683 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2684 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2686 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2688 * frame.c (get_prev_frame): Test prev_p to identify a previously
2689 unwound frame. Initialize prev_p.
2690 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2693 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2695 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2696 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2697 more comments. Zap dead code.
2699 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2701 * infcmd.c (print_vector_info, print_float_info): Move code that
2702 checks whether the target has any registers and whether there is a
2703 selected frame up, such that it is also used if a target provides
2704 multi-arch definitions of these functions.
2706 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2708 * Makefile.in (DESTDIR): Define.
2709 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2712 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2713 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2715 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2717 * i386-linux-tdep.c: Include "reggroups.h".
2718 (i386_linux_register_reggroup_p): New function.
2719 (i386_linux_init_abi): Set register_reggroup_p to
2720 i386_linux_register_reggroup_p.
2721 * i386-tdep.h (i386_register_reggroup_p): Declare.
2722 * i386-tdep.c: Include "reggroups.h".
2723 (i386_init_reggroups): New function.
2724 (i386_add_reggroups): New function.
2725 (i386_register_reggroup_p): New function.
2726 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2727 (_initialize_i386_tdep): Call i386_init_reggroups.
2728 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2731 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2733 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2734 request that's available in *BSD.
2736 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2738 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2741 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2743 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2744 * dummy-frame.c (find_dummy_frame): Rename
2745 generic_find_dummy_frame, make static. Return the dummy frame
2746 instead of the regcache.
2747 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2748 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2749 (dummy_frame_register_unwind): Rename
2750 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2751 * dummy-frame.h (dummy_frame_register_unwind): Rename
2752 generic_call_dummy_register_unwind.
2754 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2756 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2757 except the inclusion of "i386/tm-i386.h", to...
2758 * config/i386/nm-i386v42mp.h: ...here.
2759 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2761 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2763 * Makefile.in (frame.o): Update dependencies.
2764 * blockframe.c (current_frame, frame_obstack_alloc)
2765 (frame_saved_regs_zalloc, get_current_frame)
2766 (set_current_frame, create_new_frame)
2767 (set_unwind_by_pc, get_next_frame)
2768 (flush_cached_frames, reinit_frame_cache)
2769 (frame_saved_regs_register_unwind)
2770 (deprecated_generic_get_saved_register)
2771 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2772 (_initialize_blockframe): Move frame code from here...
2773 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2774 "annotate.h" and "dummy-frame.h".
2775 (_initialize_frame): New function.
2777 2002-11-08 Jim Blandy <jimb@redhat.com>
2779 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2780 when we finish a function a context.
2781 * buildsym.h (outermost_context_p): New macro.
2782 (Bug analyzed by David Edelsohn.)
2784 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2786 * blockframe.c: Include "dummy-frame.h".
2787 (struct dummy_frame, dummy_frame_stack)
2788 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2789 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2790 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2791 (generic_save_call_dummy_addr, generic_pop_current_frame)
2792 (generic_pop_dummy_frame, generic_fix_call_dummy)
2793 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2794 dummy frame code from here...
2795 * dummy-frame.c: ...to here. New file.
2796 * dummy-frame.h: New file.
2797 (generic_call_dummy_register_unwind): Declare.
2798 (generic_find_dummy_frame): Declare.
2799 * Makefile.in (SFILES): Add dummy-frame.c.
2800 (dummy-frame.o): Specify dependencies.
2801 (dummy_frame_h): Define.
2802 (COMMON_OBS): Add dummy-frame.o.
2803 (blockframe.o): Update dependencies.
2805 2002-11-08 Jim Blandy <jimb@redhat.com>
2807 * dwarf2read.c (read_func_scope): Restore local_symbols and
2808 param_symbols after we finish the function context. (Based on a
2809 patch from David Edelsohn.)
2811 2002-11-08 David Carlton <carlton@math.stanford.edu>
2813 * linespec.c (symbol_found): New function.
2814 (minsym_found): New function.
2815 (decode_line_1): Separate out some code into separate functions.
2817 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2819 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2820 the benefit of the interix target.
2821 * i386-tdep.h (i386_frameless_signal_p): Declare.
2823 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2825 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2826 declaration that snuck in from change below.
2828 2002-11-06 Andrew Cagney <cagney@redhat.com>
2830 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2832 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2833 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2834 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2835 (i386_mxcsr_regnum_p): new function. Use instead of
2837 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2838 (i386_sse_regnum_p): Declare.
2839 (i386_mxcsr_regnum_p): Declare.
2840 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2841 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2842 (IS_FP_REGNUM): Update definition.
2843 (IS_FPU_CTRL_REGNUM): Update definition..
2844 (IS_SSE_REGNUM): Update definition..
2845 * i386v-nat.c (register_u_addr): Update.
2846 * go32-nat.c (fetch_register): Update.
2847 (store_register): Update.
2849 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2851 Preparation work to convert the hppa targets to multiarch partial.
2853 * hppa-tdep.c: Add new functions replacing macro bodies from
2854 config/pa/tm-hppa.h. These function will be used to initialize
2855 the gdbarch structure. Import some comments from tm-hppa.h,
2856 and place them where appropriate, to avoid loosing them when
2857 we cleanup this file.
2858 (hppa_reg_struct_has_addr): New function.
2859 (hppa_inner_than): New function.
2860 (hppa_stack_align): New function.
2861 (hppa_pc_requires_run_before_use): New function.
2862 (hppa_instruction_nullified): New function.
2863 (hppa_register_byte): New function.
2864 (hppa_register_virtual_type): New function.
2865 (hppa_store_struct_return): New function.
2866 (hppa_cannot_store_register): New function.
2867 (hppa_frame_args_address): New function.
2868 (hppa_frame_locals_address): New function.
2869 (hppa_smash_text_address): New function.
2870 (hppa_coerce_float_to_double): New function. Requires the inclusion
2873 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2875 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2876 gdbarch-eligible macro to a call to the new associated function
2877 created in hppa-tdep.c.
2878 (INNER_THAN): Likewise.
2879 (STACK_ALIGN): Likewise.
2880 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2881 (INSTRUCTION_NULLIFIED): Likewise.
2882 (REGISTER_BYTE): Likewise.
2883 (REGISTER_VIRTUAL_TYPE): Likewise.
2884 (STORE_STRUCT_RETURN): Likewise.
2885 (CANNOT_STORE_REGISTER): Likewise.
2886 (FRAME_ARGS_ADDRESS): Likewise.
2887 (FRAME_LOCALS_ADDRESS): Likewise.
2888 (SMASH_TEXT_ADDRESS): Likewise.
2889 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2890 (ABOUT_TO_RETURN): Delete, as no longer used.
2892 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2894 * printcmd.c (disassemble_command): Remove obsolete function.
2895 (_initialize_printcmd): Do not create disassemble command here.
2896 * cli/cli-cmds.c (disassemble_command): New function. Implements
2897 disassemble command.
2898 (init_cli_cmds): Create disassemble command here instead.
2900 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2902 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2904 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2906 * regcache.h (regcache_cooked_read_using_offset_hack)
2907 (regcache_cooked_write_using_offset_hack): Delete declarations.
2908 (register_changed): Delete declaration.
2909 * regcache.c (regcache_cooked_read_using_offset_hack)
2910 (regcache_cooked_write_using_offset_hack): Delete functions.
2911 (cooked_xfer_using_offset_hack): Delete function.
2912 (register_changed): Delete function.
2914 2002-11-07 Jim Blandy <jimb@redhat.com>
2916 * macroscope.c: #include "complaints.h".
2917 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2918 but not in the macro table.
2919 * Makefile.in (macroscope.o): Record dependency.
2921 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2923 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2925 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2927 * regcache.c (deprecated_registers_fetched): Update.
2928 * regcache.h (deprecated_registers_fetched): Rename
2930 * remote-vxsparc.c (vx_read_register): Update.
2931 * remote-vxmips.c (vx_read_register): Update.
2932 * remote-vx68.c (vx_read_register): Update.
2933 * irix5-nat.c (fetch_core_registers): Update.
2934 * mipsm3-nat.c (fetch_inferior_registers): Update.
2935 * sun3-nat.c (fetch_inferior_registers): Update.
2936 * symm-nat.c (fetch_inferior_registers): Update.
2937 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2938 (fetch_core_registers): Update.
2939 (fetch_kcore_registers): Update.
2940 * mips-nat.c (fetch_inferior_registers): Update.
2941 * corelow.c (get_core_registers): Update.
2942 * a68v-nat.c (fetch_inferior_registers): Update.
2944 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2946 Put in place the framework necessary for multiarching the hppa targets.
2947 * hppa-tdep.c (hppa_gdbarch_init): New function.
2948 (hppa_dump_tdep): New function.
2949 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2950 tdep structure dumper.
2951 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2952 until the multi-arching conversion has partially been completed.
2954 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2956 * valops.c (value_assign): Merge lval_register case into
2957 lval_reg_frame_relative. Use frame_register and
2958 regcache_cooked_write instead of get_saved_register and
2959 write_register_bytes. After flushing the register cache, try to
2960 re-select the selected frame.
2962 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2964 * regcache.h (deprecated_register_valid): Rename register_valid.
2965 * regcache.c: Update.
2966 * ia64-aix-nat.c: Update.
2967 * i386gnu-nat.c: Update.
2968 * alpha-nat.c: Update.
2969 * sparc-nat.c: Update.
2970 * lynx-nat.c: Update.
2971 * remote-mips.c: Update.
2973 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2975 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2976 to end of file, to be more consistent with the pratice followed
2979 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2981 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2982 (print_float_info): Print registers in float_reggroup.
2983 (print_vector_info): Print registers in vector_reggroup.
2984 (default_print_registers_info): When all, print registers in
2985 all_reggroup. Otherwize, print registers in general_reggroup.
2986 (registers_info): Rewrite. Add support for register groups.
2989 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2991 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2993 (symtab_symbol_info): Remove eons old ifdeffed out code.
2994 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2997 2002-11-06 Theodore A. Roth <troth@openavr.org>
2999 * c-exp.y: Add missing semi-colons.
3000 * f-exp.y: Add missing semi-colons.
3001 * m2-exp.y: Add missing semi-colons.
3002 * p-exp.y: Add missing semi-colons.
3003 Add empty action to start rule to avoid a type clash error when
3004 building with bison >= 1.50.
3006 2002-11-06 Jim Blandy <jimb@redhat.com>
3008 * macrotab.h (struct macro_source_file): Doc fix.
3010 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3012 * varobj.c (child_exists, cplus_number_of_children): Change
3013 STREQ macro references to strcmp.
3014 (cplus_name_of_child): Change code to handle the fact that
3015 fields are not necessarily contiguous with regards to their
3016 access control. This is a fix for PR gdb/792.
3018 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3020 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3021 * gdbarch.h, gdbarch.c: Regnerate.
3022 * frame.h (frame_register): Declare.
3023 * frame.c (frame_register): New function.
3024 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3025 GET_SAVED_REGISTER, otherwize call
3026 generic_unwind_get_saved_register.
3027 (frame_register_read): Use frame_register instead of
3030 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3032 From Jim Ingham <jingham@apple.com>:
3033 * event-top.c (gdb_disable_readline): New function.
3034 (_initialize_event_loop): Move comment.
3036 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3038 * event-loop.c (start_event_loop): Add comment.
3041 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3043 * infcmd.c (default_print_registers_info): Do not call
3044 PRINT_REGISTER_HOOK.
3046 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3048 * sparc-tdep.c (sparc_print_register_hook): Make static.
3049 (sparc_print_registers_info): New function.
3050 (sparc_do_registers_info): New function.
3051 (sparclet_print_registers_info): New function.
3052 (sparclet_do_registers_info): New function.
3053 (do_sparc_print_registers_info): New function.
3054 (sparc_print_registers): New static function, clone of infcmd.c's
3055 default_print_registers_info.
3056 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3057 (sparclet_do_registers_info): Declare.
3058 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3059 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3061 (sparc_do_registers_info): Declare.
3062 (PRINT_REGISTER_HOOK): Delete macro.
3063 (sparc_print_register_hook): Delete declaration.
3065 2002-11-05 David Carlton <carlton@math.stanford.edu>
3067 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3069 (lookup_symbol_aux_local): New function.
3070 (lookup_symbol_aux_symtabs): New function.
3071 (lookup_symbol_aux_psymtabs): New function.
3073 2002-11-05 David Carlton <carlton@math.stanford.edu>
3075 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3076 previous values of 'objfile' and 'block'.
3078 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3080 * values.c (value_change_enclosing_type): Set
3081 enclosing_type field correctly also for the case where
3082 more memory needs to be allocated.
3084 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3086 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3089 * i387-tdep.c (i387_print_float_info): Replace calls to
3090 register_read and deprecated_read_register_gen with calls to
3091 frame_register_read, and make the necessary adjustments to the
3094 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3096 * gdbarch.sh (register_reggroup_p): Allow default value.
3097 * gdbarch.h, gdbarch.c: Regenerate.
3099 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3101 * regcache.h: Add coment indicating replacements for deprecated
3104 2002-11-02 Andrew Cagney <cagney@redhat.com>
3106 * reggroups.h, reggroups.c: New files.
3107 * regcache.c: Include "reggroups.h".
3108 (enum regcache_dump_what): Add `regcache_dump_groups'.
3109 (regcache_dump): Contract size of the "Type" column. When
3110 specified, dump the register's groups.
3111 (maintenance_print_register_groups): New function.
3112 (_initialize_regcache): Add command `maint print register-groups'.
3113 * Makefile.in (COMMON_OBS): Add reggroups.o
3114 (SFILES): Add reggroups.c.
3115 (reggroups_h): Define.
3116 (regcache.o, gdbarch.o): Update dependencies.
3117 (reggroups.o): Specify dependencies.
3118 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3119 Add opaque declaration for `struct reggroup' in generated .h file.
3120 Include "reggroups.h" in generated .c file.
3121 gdbarch.h, gdbarch.c: Re-generate.
3123 2002-11-02 Andrew Cagney <cagney@redhat.com>
3125 * regcache.h (deprecated_read_register_gen): Rename
3127 (deprecated_write_register_gen): Rename write_register_gen.
3128 * i387-tdep.c: Update.
3129 * x86-64-linux-nat.c: Update
3131 * thread-db.c: Update.
3132 * win32-nat.c: Update.
3133 * mips-tdep.c: Update.
3134 * d10v-tdep.c: Update.
3135 * cris-tdep.c: Update.
3136 * remote-sim.c: Update.
3137 * remote-rdi.c: Update.
3138 * remote-rdp.c: Update.
3141 * blockframe.c: Update.
3142 * x86-64-tdep.c: Update.
3143 * xstormy16-tdep.c: Update.
3144 * sh-tdep.c: Update.
3145 * s390-tdep.c: Update.
3146 * rs6000-tdep.c: Update.
3147 * sparc-tdep.c: Update.
3148 * i386-tdep.c: Update.
3149 * dwarf2cfi.c: Update.
3150 * regcache.c: Update.
3152 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3154 New interix-specific files:
3155 * config/i386/nm-interix.h: New file.
3156 * config/i386/interix.mh: New file.
3157 * config/i386/interix.mt: New file.
3158 * i386-interix-nat.c: New file.
3159 * i386-interix-tdep.c: New file.
3161 2002-11-01 Andrew Cagney <cagney@redhat.com>
3163 * frame.h (deprecated_generic_get_saved_register): Rename
3164 generic_get_saved_register.
3165 * blockframe.c (deprecated_generic_get_saved_register): Update.
3166 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3167 (xstormy16_frame_saved_register): Update.
3168 * sh-tdep.c (sh_gdbarch_init): Update.
3169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3170 * ia64-tdep.c (ia64_get_saved_register): Update.
3171 * cris-tdep.c (cris_gdbarch_init): Update.
3172 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3173 * arm-tdep.c (arm_gdbarch_init): Update.
3175 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3177 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3179 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3181 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3182 trampolines in sigaction.
3184 2002-10-31 Andrew Cagney <cagney@redhat.com>
3186 * h8300-tdep.c: Include "gdb_assert.h".
3187 (h8300_print_register): Add gdbarch, file and frame parameters.
3188 Use frame_read_unsigned_register to read the register's value.
3189 Use fprintf_filtered to display output.
3190 (h8300_print_registers_info): Replace h8300_do_registers_info.
3191 (h8300_gdbarch_init): Set print_registers_info.
3193 2002-10-31 Andrew Cagney <cagney@redhat.com>
3195 * frame.c (frame_read_unsigned_register): New function.
3196 (frame_read_signed_register): New function.
3197 * frame.h (frame_read_unsigned_register): Declare.
3198 (frame_read_signed_register): Declare.
3200 2002-10-31 Andrew Cagney <cagney@redhat.com>
3202 * h8500-tdep.c (h8500_print_registers_info): New static function,
3203 clone of infcmd.c's default_print_registers_info.
3204 (h8500_do_registers_info): New funtion.
3205 (h8500_print_register_hook): Rename print_register_hook, make
3208 * config/h8500/tm-h8500.h: Update copyright.
3209 (DEPRECATED_DO_REGISTERS_INFO): Define.
3210 (h8500_do_registers_info: Declare.
3211 (PRINT_REGISTER_HOOK): Delete macro.
3212 (print_register_hook): Delete function.
3214 2002-10-31 Andrew Cagney <cagney@redhat.com>
3216 * z8k-tdep.c (z8k_print_register_hook): Make static.
3217 (z8k_print_registers_info): New static function, clone of
3218 infcmd.c's default_print_registers_info.
3219 (z8k_do_registers_info): New function. Wrap
3220 z8k_print_registers_info.
3221 * config/z8k/tm-z8k.h: Update copyright.
3222 (PRINT_REGISTER_HOOK): Delete macro.
3223 (z8k_print_register_hook): Delete declaration.
3224 (DEPRECATED_DO_REGISTERS_INFO): Define.
3225 (z8k_do_registers_info): Declare.
3227 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3229 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3230 as this is already provided by value.h, and was actually causing
3231 a compilation error because of a conflict in parameter type
3232 declaration due to a missing const keyword.
3233 (low_text_segment_addres): Fix a compilation warning.
3235 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3237 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3238 registers without a name.
3239 (mips_linux_cannot_store_register): Don't store registers without
3242 2002-10-28 David Carlton <carlton@math.stanford.edu>
3244 * symtab.c (find_addr_symbol): Delete. (It was already commented
3246 * symtab.h: Delete prototype for find_addr_symbol.
3248 2002-10-26 Andrew Cagney <cagney@redhat.com>
3250 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3252 gdbarch.h, gdbarch.c: Re-generate.
3253 * infcmd.c (default_print_registers_info): Update reference.
3254 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3255 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3256 * sh-tdep.c (sh_gdbarch_init): Ditto.
3257 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3260 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3262 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3263 cfi_init_extra_frame_info.
3264 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3265 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3267 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3268 target where necessary. Add more comments and remove the ones
3269 that don't provide any useful information.
3271 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3272 deprecated_read_register_dummy with
3273 frame_unwind_unsigned_register.
3275 * i386-tdep.c (i386_extract_struct_value_address): Use
3276 regcache_raw_read_unsigned instead of
3277 regcache_cooked_read_unsigned since we know that the register
3278 we're reading isn't a pseudo register. Rename variable 'val' into
3279 the more descriptive 'addr'.
3281 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3282 (x86_64_push_return_address): Add comment.
3283 (x86_64_pop_frame): Make static.
3284 (examine_argument): Clarify comment.
3285 (x86_64_skip_prologue): Make prolog_expact variable static.
3287 * dwarf2cfi.c: Fix some formatting problems.
3288 (context_cpy, read_encoded_pointer): Clarify comments.
3290 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3291 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3292 i386 target back into x86_64_gdbarch_init. Add some comments and
3293 remove meaningless ones.
3295 2002-10-25 Andrew Cagney <cagney@redhat.com>
3297 * complaints.h (struct deprecated_complaint): Rename `struct
3299 * complaints.c (complain): Update.
3300 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3301 incorrect comment indicating that "symfile.h" was being included
3302 for the `struct complaint' definition.
3303 * remote-vx.c: Update.
3304 * objc-lang.c: Update.
3305 * xcoffread.c: Update.
3307 * mdebugread.c: Update.
3308 * stabsread.c: Update.
3309 * dwarf2read.c: Update.
3310 * dwarfread.c: Update.
3311 * elfread.c: Update.
3312 * coffread.c: Update.
3313 * stabsread.h: Update.
3314 * dbxread.c: Update.
3315 * buildsym.c: Update.
3316 * gdbtypes.c: Update.
3317 * macrotab.c: Update.
3319 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3321 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3322 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3323 (x86_64_init_abi): ...new function.
3325 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3326 * i386v-nat.c: Include "i386-tdep.h".
3328 2002-10-25 Andrew Cagney <cagney@redhat.com>
3330 * gdbtypes.c (address_space_name_to_int): Update.
3331 (address_space_int_to_name): Update.
3332 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3333 multi-arch predicate.
3334 (address_class_name_to_type_flags): Ditto.
3335 * gdbarch.h, gdbarch.c: Re-generate.
3337 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3339 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3341 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3343 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3345 * symtab.h (INIT_SAL): Delete macro.
3347 * symtab.c (init_sal): New function.
3349 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3350 to init_sal function call.
3351 (find_sal_from_funcs_and_line): Ditto.
3352 (all_sals_for_line): Ditto.
3353 * breakpoint.c (create_internal_breakpoint): Ditto.
3354 (create_fork_vfork_event_catchpoint): Ditto.
3355 (create_exec_event_catchpoint): Ditto.
3356 (parse_breakpoint_sals): Ditto.
3357 (watch_command_1): Ditto.
3358 (handle_gnu_4_16_catch_command): Ditto.
3359 (clear_command): Ditto.
3360 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3361 * infcmd.c (run_stack_dummy): Ditto.
3362 * infrun.c (process_event_stop_test): Ditto.
3363 (check_sigtramp2): Ditto.
3364 (step_over_function): Ditto.
3365 * linespec.c (decode_line_2): Ditto.
3366 (decode_line_1): Ditto.
3367 * source.c (line_info): Ditto.
3368 * symtab.c (find_pc_sect_line): Ditto.
3370 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3372 * dwarf2cfi.c (struct context)
3373 (struct context_reg): Moved to dwarf2cfi.h
3374 (context_alloc, frame_state_alloc, context_cpy):
3375 Made extern instead of static, removed prototypes.
3376 * dwarf2cfi.h (struct context)
3377 (struct context_reg): New, moved from dwarf2cfi.c
3378 (context_alloc, frame_state_alloc, context_cpy):
3380 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3381 Changed from static to extern.
3382 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3383 (LINUX_SIGCONTEXT_FP_OFFSET)
3384 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3385 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3386 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3387 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3388 set_gdbarch_*() calls now use x86-64 specific functions
3389 instead of DWARF2 CFI ones.
3390 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3391 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3392 (x86_64_init_extra_frame_info): New prototypes.
3394 2002-10-23 David Carlton <carlton@math.stanford.edu>
3396 * linespec.c: #include "parser-defs.h".
3397 Delete prototype for find_template_name_end.
3398 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3400 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3402 * NEWS: add recent mi fixes.
3403 * varobj.c (struct varobj): Add new "updated" flag.
3404 (new_variable): Default "updated" flag to 0.
3405 (varobj_set_value): Set "updated" flag to 1 if value
3407 (varobj_update): Check varobj "updated" flag before
3408 comparing old and refreshed values. Fix for
3411 2002-10-23 David Carlton <carlton@math.stanford.edu>
3413 * parse.c (parse_exp_1): Use BLOCK_START.
3414 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3416 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3418 2002-10-23 David Carlton <carlton@math.stanford.edu>
3420 * symtab.c: Delete cplusplus_hint.
3421 Delete prototype for find_template_name_end.
3423 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3425 * symtab.h: Update comment.
3427 2002-10-23 Michael Snyder <msnyder@redhat.com>
3429 * printcmd.c (address_info): Restore quotes in output.
3430 * valops.c (value_of_local): Restore quotes in error message.
3432 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3434 * symtab.c (symbol_demangled_name): New function.
3435 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3436 turning most of it into a function.
3437 (symbol_demangled_name): Export.
3439 2002-10-23 Michael Snyder <msnyder@redhat.com>
3441 * valops.c (value_of_local): Restore quotes in error message.
3443 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3445 * symtab.c (symbol_init_language_specific): New function.
3446 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3447 turning most of it into a function.
3448 (symbol_init_language_specific): Export.
3450 2002-10-23 David Carlton <carlton@math.stanford.edu>
3452 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3453 (dwarf_attr_name): Ditto.
3454 (dwarf_type_encoding_name): Ditto.
3455 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3456 (process_die): Handle DW_TAG_namespace,
3457 DW_TAG_imported_declaration, DW_TAG_imported_module.
3458 (read_namespace): New function.
3460 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3462 * configure.in: Define NEW_PROC_API on Interix too.
3463 * configure: Regenerate.
3465 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3467 * configure: Regenerate using the proper version of autoconf.
3469 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3471 * findvar.c (read_var_value): Temporarily disable TLS code, until
3472 complete TLS support is added.
3474 2002-10-21 Jim Blandy <jimb@redhat.com>
3475 Elena Zannoni <ezannoni@redhat.com>
3477 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3478 for thread local storage locations.
3479 (struct symbol): Add objfile field.
3480 (SYMBOL_OBJFILE): Define.
3481 * dwarf2read.c (is_thread_local): New static variable.
3482 (new_symbol): If variable is in thread local fill in address class
3483 and objfile appropriately.
3484 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3486 * printcmd.c (address_info): Print the information for thread
3487 local storage variable.
3488 * findvar.c (read_var_value): In case of thread local variable,
3489 defer to the target vector code to compute address.
3491 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3493 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3494 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3496 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3498 * symtab.h (address_class): Rename
3499 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3500 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3501 * printcmd.c (address_info): Ditto.
3502 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3504 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3506 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3507 DBREG_DRX macro to acces debug registers.
3509 * Makefile.in (i386obsd-tdep.o): New target.
3511 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3512 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3514 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3515 * config/i386/obsd.mt: New file.
3516 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3517 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3518 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3519 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3520 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3521 * i386obsd-tdep.c: New file.
3523 2002-10-19 Adam Fedor <fedor@gnu.org>
3525 * objc-exp.y (name_not_typename): Fix invalid comment.
3527 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3529 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3530 to allocate partial syms and macro byte caches.
3532 2002-10-18 David Carlton <carlton@math.stanford.edu>
3534 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3536 2002-10-18 Adam Fedor <fedor@gnu.org>
3538 * stabsread.c (find_name_end): New function.
3539 (define_symbol): Use it.
3541 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3543 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3544 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3545 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3546 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3548 2002-10-17 David Carlton <carlton@math.stanford.edu>
3550 * symfile.h: Add opaque declaration for struct obstack.
3551 Declare obsavestring to take a const char *.
3552 * symfile.c (obsavestring): Make first argument a const char *.
3554 2002-10-16 Adam Fedor <fedor@gnu.org>
3556 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3557 names when matching breakpoints in current file.
3559 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3561 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3562 (read_tag_pointer_type): Add address class support.
3563 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3564 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3566 * gdbarch.h, gdbarch.c: Regenerate.
3567 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3568 (make_type_with_address_space, recursive_type_dump): Add address
3570 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3571 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3572 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3574 2002-10-16 Klee Dienes <kdienes@apple.com>
3576 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3577 to get the last character of a char[] buffer, not
3578 name[sizeof(vptr_name)-1].
3580 2002-10-14 Adam Fedor <fedor@gnu.org>
3582 * symtab.h: New objc_specific struct.
3583 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3584 (SYMBOL_DEMANGLED_NAME): Likewise.
3586 2002-10-14 Adam Fedor <fedor@gnu.org>
3588 * symfile.c (init_filename_language_table): Add ObjC file extension.
3590 2002-10-14 Adam Fedor <fedor@gnu.org>
3592 * utils.c (puts_filtered_tabular): New function.
3593 (fprintf_symbol_filtered): Get ObjC demangled name.
3594 * defs.h (puts_filtered_tabular): Declared.
3596 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3598 * c-lang.h (c_type_print_varspec_prefix): Delete.
3599 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3600 ``need_post_space'' parameter. Adjust all callers.
3602 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3604 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3605 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3606 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3607 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3609 2002-10-13 Adam Fedor <fedor@gnu.org>
3611 * source.c (print_source_lines): Update comments.
3613 2002-10-13 Adam Fedor <fedor@gnu.org>
3615 * valops.c (value_of_local): New function.
3616 (value_of_this): Use it.
3617 * value.h (value_of_local): Declared.
3619 2002-10-13 Adam Fedor <fedor@gnu.org>
3621 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3622 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3624 2002-10-12 Adam Fedor <fedor@gnu.org>
3626 * language.c (binop_result_type): Add language_objc to case.
3627 (integral_type): Likewise.
3628 (character_type): Likewise.
3629 (string_type): Likewise.
3630 (boolean_type): Likewise.
3631 (structured_type): Likewise.
3632 (binop_type_check): Likewise.
3634 2002-10-11 Adam Fedor <fedor@gnu.org>
3636 * printcmd.c (address_info): Print 'self' for ObjC.
3638 2002-10-11 Adam Fedor <fedor@gnu.org>
3640 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3643 2002-10-11 Adam Fedor <fedor@gnu.org>
3645 * language.h (CAST_IS_CONVERSION): Add language_objc.
3647 2002-10-11 Adam Fedor <fedor@gnu.org>
3649 * defs.h (enum language): Add language_objc.
3651 2002-10-11 Klee Dienes <kdienes@apple.com>
3653 * corefile.c (read_memory_typed_address): New function.
3654 * gdbcore.h (read_memory_typed_address): Add prototype.
3655 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3656 to read a value destined for a CORE_ADDR, not read_memory_integer.
3657 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3658 (f77_get_dynamic_lowerbound): Ditto.
3660 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3662 * utils.c (string_to_core_addr): After turning string into
3663 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3664 which will do necessary sign-extension, etc.
3666 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3668 * c-exp.y (THIS): Delete token and grammar rule.
3669 (yylex): Don't return THIS.
3670 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3671 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3672 * demangle.c (cplus_markers): Update comment. Put '$'
3673 first. Remove CPLUS_MARKER.
3674 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3675 * jv-exp.y (THIS): Delete token and grammar rule.
3676 (yylex): Don't return THIS.
3677 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3678 * objc-exp.y (THIS): Delete token and grammar rule.
3679 (yylex): Don't return THIS.
3680 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3681 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3682 (read_member_functions): Likewise for opname.
3683 (read_tilde_fields): Use is_cplus_marker.
3685 * defs.h (CPLUS_MARKER): Don't define.
3686 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3687 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3688 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3689 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3690 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3692 * config/i386/tm-i386v4.h: Delete file.
3693 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3694 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3695 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3696 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3697 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3698 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3699 * config/i386/i386v4.mt (TM_FILE): Likewise.
3700 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3702 2002-10-10 Marko Mlinar <markom@opencores.org>
3704 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3705 accidentially not commited 2002-10-09
3706 * gdbarch.h, gdbarch.c: Re-generate.
3708 2002-10-09 Marko Mlinar <markom@opencores.org>
3710 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3711 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3712 * gdbarch.h, gdbarch.c: Re-generate.
3714 2002-10-08 Petr Sorfa <petrs@caldera.com>
3716 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3718 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3719 so we can work on more than one compilation unit at a time. This
3720 helps prepare GDB to handle inter-CU die references.
3721 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3722 the code to be defined before struct comp_unit_head.
3723 (comp_unit_head): Added new members - offset, cu_head,
3724 begin_die, next and dwarf2_abbrevs.
3725 (dwarf2_abbrevs): Removed single static var; now member of
3726 struct comp_unit_head.
3727 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3729 (psymtab_to_symtab_1): Changed to work with the new
3730 struct comp_unit_head.
3731 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3732 constructs the dwarf2_abbrevs[] inside the cu_header.
3733 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3734 dwarf2_abbrev table to clean up.
3735 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3736 handling of dwarf2_abbrevs inside the cu_header.
3737 (read_partial_die): Now supports the call to the new
3738 dwarf2_lookup_abbrev.
3739 (read_full_die): Now supports the call to the new
3740 dwarf2_lookup_abbrev.
3742 2002-10-06 Christopher Faylor <cgf@redhat.com>
3744 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3745 insure that shell variables, such as "transformed_name" are propagated
3746 to later shell statements in rule.
3748 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3750 * config/i386/nm-i386sco.h: Add protection against
3751 multiple-inclusion. Include "i386/nm-i386v.h".
3752 (REGISTER_U_ADDR): Remove define.
3753 (i386_register_u_addr): Remove prototype.
3755 2002-10-04 Michael Snyder <msnyder@redhat.com>
3757 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3758 before treating it as a single-step event.
3760 2002-10-03 Adam Fedor <fedor@gnu.org>
3762 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3763 (objc_demangle): Remove assignment in if statements, Replace
3765 (add_msglist): Likewise.
3766 (end_msglist): Likewise.
3767 (complare_selectors): Likewise.
3768 (selectors_info): Likewise.
3769 (compare_classes): Likewise.
3770 (classes_info): Likewise.
3771 (print_object_command): Likewise.
3772 (find_objc_msgcall_submethod): Replace PTR with void *.
3773 * objc-lang.h: Remove check for __STDC__.
3775 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3777 * ui-out.h (ui_out_field_fmt_int): New prototype.
3778 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3779 of field width and alignment.
3780 * stack.c (print_frame_info_base): When printing frame level, use
3781 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3784 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3786 * MAINTAINERS: Add self to Write After Approval list.
3788 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3790 * infcmd.c (interrupt_target_command_wrapper): Delete.
3791 (interrupt_target_command): Make non static.
3792 (nofp_registers_info): Make static.
3793 * stack.c (return_command_wrapper): Delete.
3794 (return_command): Make non static.
3796 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3798 * event-top.c (gdb_setup_readline): New function. Code moved from
3799 _initialize_event_loop().
3800 (_initialize_event_loop): Call gdb_setup_readline().
3802 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3804 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3805 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3806 * gdbarch.h, gdbarch.c: Re-generate.
3808 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3811 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3813 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3814 of fill_in_vptr_fieldno.
3816 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3818 * inferior.h (registers_info, stepi_command, nexti_command,
3819 continue_command, interrupt_target_command): Export from infcmd.c.
3820 * frame.h (args_info, selected_frame_level_changed_hook,
3821 return_command): Export from stack.c.
3822 * v850ice.c (stepi_command, nexti_command, continue_command): use
3823 prototypes from inferior.h.
3824 * tracepoint.c (registers_info, args_info, locals_info): Use
3825 prototypes from frame.h and inferior.h.
3826 * Makefile.in (mi-main.o): Add dependency on frame.h.
3828 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3830 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3831 value in register 3 adjusted by ppc_gp0_regnum.
3833 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3835 2002-10-02 Marko Mlinar <markom@opencores.org>
3837 * MAINTAINERS: Add myself to the Write After Approval list.
3839 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3841 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3842 of the section for the N64 ABI, fixed.
3844 * config/mips/tm-irix6.h: Include solib.h.
3846 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3848 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3851 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3853 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3854 and that "mi0" syntax has been removed.
3856 2002-09-30 David Carlton <carlton@math.stanford.edu>
3858 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3859 * ppc-sysv-tdep.c: #include "gdb_string.h".
3860 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3863 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3865 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3866 "vrsave"'s register number.
3868 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3870 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3871 use frame_unwind_signed_register to obtain the PC.
3872 (mips_frame_chain): Handle a generic dummy frame.
3873 (mips_init_extra_frame_info): When a generic dummy frame, don't
3874 re-compute the frame base.
3875 (mips_pop_frame): Handle generic dummy frames.
3876 (mips_gdbarch_init): When generic dummy frames, set
3877 use_generic_dummy_frames, push_dummy_frame to
3878 generic_push_dummy_frame, pc_in_call_dummy to
3879 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3880 generic_save_dummy_frame_tos.
3882 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3884 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3885 against TOP when TOP was explictly set.
3886 (generic_push_dummy_frame): Set TOP to zero.
3888 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3890 * event-loop.c (start_event_loop): Rename variable 'result' to
3891 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3893 2002-09-30 Keith Seitz <keiths@redhat.com>
3895 * gdb-events.sh (selected_thread_changed): New event.
3896 * gdb-events.c: Regenerated.
3897 * gdb-events.h: Regenerated.
3899 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3901 * MAINTAINERS: Add self to Write After Approval list.
3903 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3905 * disasm.c: New file.
3906 * disasm.h: New file.
3907 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3908 (compare_lines): Ditto.
3909 (dump_insns): Ditto.
3910 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3912 (do_assembly_only): Ditto.
3913 (do_disassembly): Renamed to gdb_disassembly and moved to
3914 disasm.c. Sdded uiout argument.
3915 * Makefile.in: Add new files. Reorder SFILES list. Update
3916 dependencies. Include libgdb.a later in the insight executable.
3918 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3920 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3921 bfd/elf64-alpha-fbsd.c.
3923 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3925 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3928 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3930 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3932 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3934 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3935 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3936 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3937 (S_msg_sig_post_reply): Ditto.
3939 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3941 * sh-tdep.c (sh_use_struct_convention): Use definition according
3943 (sh_push_arguments): Store in register with correct endianess.
3944 (sh_default_store_return_value): Ditto.
3945 (sh_gdbarch_init): Set sizeof long double to 8.
3947 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3949 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3950 Fix some whitespace problems.
3952 2002-09-27 David Carlton <carlton@math.stanford.edu>
3954 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3955 (mcore-tdep.o): Ditto.
3956 (ns32k-tdep.o): Ditto.
3957 (ns32knbsd-tdep.o): Ditto.
3959 (vax-tdep.o): Ditto.
3960 * cris-tdep.c: #include "gdb_string.h"
3961 * mcore-tdep.c: Ditto.
3962 * ns32k-tdep.c: Ditto.
3963 * ns32knbsd-tdep.c: Ditto.
3965 * vax-tdep.c: Ditto.
3967 2002-09-27 David Carlton <carlton@math.stanford.edu>
3969 * config/djgpp/fnchange.lst: Add entries for
3970 gdb/testsuite/gdb.c++/m-static files.
3972 2002-09-27 Jim Wilson <wilson@redhat.com>
3974 * MAINTAINERS: Add myself to the Write After Approval list.
3976 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3978 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3981 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3983 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3986 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3988 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3989 (rs6000_struct_return_address): Delete variable.
3990 (rs6000_store_struct_return): Update.
3991 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3992 deprecated_extract_struct_value_address.
3993 (rs6000_frame_align): New function.
3994 (rs6000_gdbarch_init): Set frame_align.
3996 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3998 From Grace Sainsbury <graces@redhat.com>:
3999 * Makefile.in (gdbtk-main.o): New target.
4000 (gdb.o): New target.
4002 (main.o): Update dependencies.
4003 (gdb$(EXEEXT)): Add gdb.o.
4004 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4005 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4006 (SUBDIR_GDBTK_CLEAN): Set.
4007 (install-gdbtk): Install the insight binary.
4008 (uninstall-gdbtk): New target.
4009 (all-gdbtk, clean-gdbtk): New rule.
4010 * top.c (use_windows): Default to zero.
4011 * main.c: Include "main.h".
4013 (struct captured_main_args): Delete.
4014 (gdb_main): New function.
4018 2002-09-25 Andrew Cagney <cagney@redhat.com>
4020 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4021 (frame_map_regnum_to_name): New function.
4022 (frame_map_name_to_regnum): New function.
4023 * frame.h (frame_map_name_to_regnum): Declare.
4024 (frame_map_regnum_to_name): Declare.
4025 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4026 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4027 * parse.c: Do not include "builtin-regs.h".
4028 (target_map_name_to_register): Delete function.
4029 (write_dollar_variable): Use frame_map_name_to_regnum.
4030 * parser-defs.h (target_map_name_to_register): Delete declaration.
4031 * expprint.c: Include "frame.h".
4032 (print_subexp): Use frame_map_regnum_to_name.
4033 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4034 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4036 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4038 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4039 wasn't saved, and the next innermost frame is a dummy, return the
4040 dummy frame's link register.
4042 2002-09-24 Jim Blandy <jimb@redhat.com>
4044 Fix from Paul Breed:
4045 * main.c (captured_main): Add a `break' after the case for 'b'.
4047 2002-09-24 Keith Seitz <keiths@redhat.com>
4049 * varobj.c (c_type_of_child): Use get_target_type instead
4050 of TYPE_TARGET_TYPE.
4052 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4054 * source.c (get_current_or_default_source_symtab_and_line): Remove
4056 (set_default_source_symtab_and_line): New function. Attempts to
4057 determine a source file to list lines from if one is not currently
4059 (get_current_source_symtab_and_line): Initialize sal.pc and
4061 (set_current_source_symtab_and_line): Mark argument as const.
4062 * source.h: Update declarations and comments.
4063 * linespec.c (decode_line_1): Replace call to removed routine above.
4064 * stack.c (print_frame_info_base): Ditto.
4065 * cli/cli-cmds.c (edit_command): Ditto.
4066 (list_command): Ditto.
4068 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4070 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4071 sal.pc and sal.end fields.
4072 (get_current_or_default_source_symtab_and_line): Ditto.
4073 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4074 so we do not cause a new source symtab to be searched for (reverting an
4075 unintentional change from the 2002-09-20 patch).
4076 * scm-lang.c (scm_unpac): Ditto.
4078 2002-09-21 Andrew Cagney <cagney@redhat.com>
4080 * complaints.c (symfile_explanations): Remove new-line from
4081 ``isolated_message''.
4082 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4083 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4085 2002-09-20 Nick Clifton <nickc@redhat.com>
4087 * NEWS: Announce that V850EA ISA is no longer supported.
4088 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4090 2002-09-20 David Carlton <carlton@math.stanford.edu>
4092 * Makefile.in (c-lang.o): Correct dependencies.
4093 (utils.o): Gather dependencies.
4095 * c-lang.c: #include "gdb_string.h"
4097 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4099 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4100 * cli/cli-cmds.c (list_command): New function. Implements the new
4102 (_init_cli_cmds): Add new command definition.
4103 * gdb.1: Document edit command.
4104 * doc/gdb.texinfo: Document edit command.
4106 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4108 * source.c: Make global variables current_source_symtab and
4109 current_source_line static.
4110 (list_command): Moved to cli/cli-cmds.c.
4111 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4112 (get_first_line_listed): New accessor function.
4113 (get_lines_to_list): New accessor function.
4114 (get_current_source_symtab_and_line): New function. Retrieves the
4115 position in the source code that we consider current.
4116 (get_current_or_default_source_symtab_and_line): New function.
4117 Like the above but attempts to determine a default position if one
4118 is not currently defined.
4119 (set_current_source_symtab_and_line): New function. Sets the source
4120 code position considered current and returns the previously set one.
4121 (clear_current_source_symtab_and_line): Reset stored information about
4122 a current source line.
4123 (_initialize_source): Remove registration for the "list" command and
4125 * source.h: Add declarations for the new functions above.
4126 * symtab.h: Remove declarations for the global variables mentioned
4128 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4129 obtain current source line.
4130 * linespec.c (decode_line_1): Ditto.
4131 * macroscope.c (default_macro_scope): Ditto.
4132 * scm-lang.c (scm_unpac): Ditto.
4133 * stack.c (print_frame_info_base): Ditto.
4134 * symfile.c (clear_symtab_users): Ditto.
4135 * symtab.c (decode_line_spec): Ditto.
4136 * cli/cli-cmds.c (list_command): Moved here from source.c.
4137 (ambiguous_line_spec): Moved here from source.c.
4138 (_init_cli_cmds): Add definition for "list" and its alias.
4139 * Makefile.in: Update dependencies.
4141 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4143 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4144 with what gcc thinks is correct.
4146 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4148 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4149 multiple register push instruction.
4151 2002-09-19 Jim Blandy <jimb@redhat.com>
4153 Add support for distinct host and target character sets.
4154 * charset.c, charset.h: New files.
4155 * c-exp.y: #include "charset.h".
4156 (yylex): Convert character and string literals to the target
4157 character set, before returning them as the semantic value of the
4159 * c-lang.c: #include "charset.h".
4160 (c_emit_char): Use charset-specific methods to recognize
4161 characters with backslash escape forms, to decide which characters
4162 to print literally and which to print using numeric escape
4163 sequences, and to convert target characters to host characters
4165 * utils.c: #include "charset.h".
4166 (no_control_char_error): New function.
4167 (parse_escape): Use charset-specific methods to recognize
4168 backslash escapes, parse `control character' notation, and convert
4169 characters from the host character set to the target character set.
4170 * configure.in: Set the default host character set.
4171 Check where to find iconv, and what its argument types might be.
4172 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4173 * Makefile.in (SFILES): List charset.c.
4174 (COMMON_OBS): List charset.o.
4175 (charset.o): New rule.
4176 (charset_h): New header dependency variable.
4177 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4178 (LIBICONV): New variable, set by configure.
4179 (CLIBS): Include $(LIBICONV) here.
4180 * aclocal.m4, config.in, configure: Regenerated.
4182 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4184 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4187 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4189 * gdb_mbuild.sh: New file.
4191 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4193 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4195 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4197 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4198 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4199 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4200 valops.c, value.h: Revert previous change.
4202 2002-09-18 Michael Snyder <msnyder@redhat.com>
4204 Preliminary support for Objective-C:
4205 * defs.h (language_objc): New enum value.
4206 (puts_filtered_tabular): Declaration only, exported from utils.c.
4207 (skip_quoted): Delete, declared in completer.h.
4208 * c-exp.y: Include completer.h.
4211 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4212 New operator enum values.
4213 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4214 * language.c (binop_result_type): Handle language_objc case.
4215 (integral_type, character_type, string_type, boolean_type,
4216 structured_type, binop_type_check): Ditto.
4217 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4218 (struct objc_specific): Add to general_symbol_info.
4219 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4220 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4221 * parser-defs.h (struct objc_class_str): New struct type.
4222 (start_msglist, end_msglist, add_msglist): Declaration only,
4223 exported from objc-lang.c.
4224 * value.h (value_of_local, value_nsstring,
4225 call_function_by_hand_expecting_type): Exported from valops.c.
4226 * valops.c (find_function_addr): Export.
4227 (call_function_by_hand_expecting_type): New function.
4228 (value_of_local): New function.
4229 * symfile.c (init_filename_language_table): Add ".m" extension
4231 * utils.c (puts_filtered_tabular): New function.
4232 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4233 (set/show demangle): Extend help-string to refer to ObjC.
4234 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4235 * stabsread.c (symbol_reference_defined): Objective-C symbols
4236 may contain colons: make allowances when scanning stabs strings
4238 (objc_find_colon): New function.
4239 * printcmd.c (address_info): If language == objc then print
4240 "self" instead of "this".
4241 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4242 OP_NSSTRING, and OP_SELF.
4243 (prefixify_subexp): Ditto.
4244 * source.c (print_source_lines): Mention objc in comment.
4245 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4248 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4250 * complaints.h: Update copyright.
4251 (struct complaints): Declare.
4252 (struct complaint): Make `message' constant.
4253 (internal_complaint): Declare.
4254 (complaint): Declare.
4255 (complaint_root): Delete declaration.
4256 (symfile_complaints): Delete declaration.
4257 (struct complaints): Add opaque declaration.
4258 (clear_complaints): Add a complaints parameter.
4259 * complaints.c: Update copyright.
4260 (enum complaint_series): Define.
4261 (complaint_root): Delete.
4262 (struct complaints): Define.
4263 (complaint_sentinel, symfile_complaint_book): New variables.
4264 (symfile_explanations, symfile_complaints): New variables.
4266 (get_complaints): New function.
4267 (vcomplaint): New function.
4268 (complaint): New function.
4269 (internal_complaint): New function.
4270 (complain): Call vcomplain with symfile_complaint.
4271 (clear_complaints): Rewrite.
4272 (_initialize_complaints): Use add_setshow_command.
4273 * Makefile.in (complaints.o): Update dependencies.
4274 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4275 to call to clear_complaints.
4276 (new_symfile_objfile, reread_symbols): Ditto.
4277 (oldsyms_complaint): Delete.
4278 (empty_symtab_complaint, unknown_option_complaint): Delete.
4279 (free_named_symtabs): Use complaint instead of complain.
4281 2002-09-18 Michael Snyder <msnyder@redhat.com>
4283 Contributed by Apple Computer, Inc. Merged with current sources
4284 by Adam Fedor <fedor@doc.com> [cagney].
4286 * objc-lang.c: First clean-up round: comments, indentation.
4287 * objc-lang.h: Ditto.
4288 * objc-lang.y: Ditto.
4290 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4292 * maint.c (maintenance_internal_error): Print the parameter as the
4294 (maintenance_internal_warning): New function.
4295 (_initialize_maint_cmds): Add command `maint internal-warning'.
4297 * defs.h (internal_warning, internal_vwarning): Declare.
4298 * utils.c (struct internal_problem): Define.
4299 (internal_vproblem): New function.
4300 (internal_warning): New function.
4301 (internal_vwarning): New function.
4302 (internal_warning_problem, internal_error_problem): New variables.
4303 (internal_verror): Just call internal_vproblem.
4305 2002-09-18 Michael Snyder <msnyder@redhat.com>
4307 * objc-lang.c: New file, support for Objective-C.
4308 Preliminary check-in, not yet integrated into gdb.
4309 * objc-lang.h: New file.
4310 * objc-exp.y: New file.
4312 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4314 * infrun.c (signal_stop_update): Convert definition to ISO C.
4315 (signal_print_update): Ditto.
4316 (signal_pass_update): Ditto.
4317 * inflow.c (terminal_save_ours): Ditto.
4319 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4322 * config/djgpp/fnchange.lst: Handle name clashes between
4323 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4326 * i386-linux-tdep.h: Fix tipo.
4328 2002-09-18 Adam Fedor <fedor@gnu.org>
4330 * MAINTAINERS: Add myself to the Write After Approval list.
4332 2002-09-18 Jim Blandy <jimb@redhat.com>
4334 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4335 texthigh and textlow to reader-specific structs caused
4336 objfile_relocate to miss them. This is fixable, but the work that
4337 the change was supposed to prepare GDB for never got done anyway.
4339 2002-09-18 David Carlton <carlton@math.stanford.edu>
4341 * MAINTAINERS: Alphabetize Write After Approval list.
4343 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4346 * values.c (value_static_field): Call read_var_value.
4348 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4350 * valops.c (hand_function_call): Align the initial stack pointer
4351 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4352 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4354 * mips-tdep.c (mips_frame_align): New function.
4355 (mips_gdbarch_init): Set frame_align.
4356 * gdbarch.sh (FRAME_ALIGN): New method.
4357 * gdbarch.h, gdbarch.c: Re-generate.
4359 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4361 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4364 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4366 * NEWS: Mention that MIPS $fp behavior changed.
4367 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4368 reference to FP_REGNUM.
4369 (mipsnbsd_cannot_store_register): Ditto.
4370 * mips-linux-nat.c: Update copyright.
4371 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4372 (mips_linux_cannot_store_register): Ditto.
4373 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4374 * config/mips/tm-mips.h: Update copyright.
4375 (FP_REGNUM): Delete macro.
4376 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4377 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4378 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4379 (mips_r3041_reg_names, mips_r3051_reg_names)
4380 (mips_r3081_reg_names): Replace "fp" with "".
4383 2002-09-17 Theodore A. Roth <troth@verinet.com>
4385 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4386 generic_read_register_dummy() (PR gdb/703).
4387 (avr_push_return_address): #if 0 out unused vars.
4388 (avr_gdbarch_init): Enable use of avr_push_return_address().
4390 2002-09-17 Michael Snyder <msnyder@redhat.com>
4392 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4393 RTE will take care of it.
4395 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4397 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4398 invalid, return SP_REGNUM.
4400 2002-09-17 Michael Snyder <msnyder@redhat.com>
4402 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4403 point registers without sign extension.
4405 2002-09-17 Andrew Cagney <cagney@redhat.com>
4407 * blockframe.c (deprecated_read_register_dummy): Rename
4408 generic_read_register_dummy.
4409 * frame.c (frame_unwind_signed_register): New function.
4410 (frame_unwind_unsigned_register): New function.
4411 * frame.h (frame_unwind_signed_register): Declare.
4412 (frame_unwind_unsigned_register): Declare.
4413 (deprecated_read_register_dummy): Rename
4414 generic_read_register_dummy.
4416 * h8300-tdep.c (h8300_frame_chain): Update.
4417 (h8300_frame_saved_pc): Update.
4418 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4419 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4420 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4421 (s390_frame_chain): Update.
4422 * v850-tdep.c (v850_find_callers_reg): Update.
4423 (v850_frame_saved_pc): Update.
4424 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4425 (m32r_find_callers_reg): Update.
4426 (m32r_frame_saved_pc): Update.
4427 * sh-tdep.c (sh_find_callers_reg): Update.
4428 (sh64_get_saved_pr): Update.
4429 (sh_init_extra_frame_info): Update.
4430 (sh_init_extra_frame_info): Update.
4431 (sh64_init_extra_frame_info): Update.
4432 (sh64_init_extra_frame_info): Update.
4433 * mcore-tdep.c (mcore_find_callers_reg): Update.
4434 (mcore_frame_saved_pc): Update.
4435 (mcore_init_extra_frame_info): Update.
4436 * i386-tdep.c (i386_frame_saved_pc): Update.
4437 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4438 (ia64_init_extra_frame_info): Update.
4439 (ia64_init_extra_frame_info): Update.
4440 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4441 * cris-tdep.c (cris_init_extra_frame_info): Update.
4442 * avr-tdep.c (avr_frame_chain): Update.
4443 (avr_init_extra_frame_info): Update.
4444 (avr_frame_saved_pc): Update.
4445 * arm-tdep.c (arm_find_callers_reg): Update.
4446 (arm_init_extra_frame_info): Update.
4447 (arm_frame_saved_pc): Update.
4449 2002-09-17 Tom Tromey <tromey@redhat.com>
4451 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4454 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4456 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4457 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4459 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4462 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4464 * osfsolib.c: Remove file, replaced by solib-osf.c.
4465 * Makefile.in: Remove compilation rules for osfsolib.c.
4467 2002-09-16 David Carlton <carlton@math.stanford.edu>
4469 * cp-valprint.c (cp_print_class_method): Correct args to
4470 check_stub_method_group.
4472 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4474 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4475 `set architecture'. Unify naming convention of functions.
4476 (h8300_skip_prologue): Improve prologue analysis.
4477 (h8300_push_arguments): Rewritten to more closely match GCC's
4478 bizarre argument-passing behavior, along with the comment describing
4480 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4481 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4482 sim, remote-e7000.c, remote-hms.c and remote.c
4484 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4486 * i386-tdep.c (gdb_print_insn_i386): Removed.
4487 (i386_print_insn): New function.
4488 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4489 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4492 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4494 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4497 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4499 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4500 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4501 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4503 2002-09-13 Christopher Faylor <cgf@redhat.com>
4505 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4507 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4509 * gdbtypes.c (check_stub_method): Make static.
4510 (check_stub_method_group): New function.
4511 * gdbtypes.h: Update prototypes.
4512 * cp-support.c: New file.
4513 * cp-support.h: New file.
4515 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4516 (update_method_name_from_physname): New function.
4517 (read_member_functions): Correct method names for operators
4518 and v3 constructors/destructors. Separate v2 constructors and
4520 * Makefile.in (stabsread.o): Update dependencies.
4521 (SFILES): Add cp-support.c.
4522 (COMMON_OBS): Add cp-support.o.
4523 (cp_support_h, cp-support.o): Add.
4525 * cp-valprint.c (cp_print_class_method): Call
4526 check_stub_method_group instead of check_stub_method. Remove
4528 * p-valprint.c (pascal_object_print_class_method): Likewise.
4529 * valops.c (search_struct_method): Likewise.
4530 (find_method_list, value_struct_elt_for_reference): Likewise.
4532 2002-09-13 Andrew Cagney <cagney@redhat.com>
4534 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4535 * gdbarch.h, gdbarch.c: Regenerate.
4537 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4539 * frame.c (find_saved_register): Delete function.
4540 * frame.h (find_saved_register): Delete declaration.
4543 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4545 * mips-tdep.c (read_next_frame_reg): Re-hack using
4546 frame_register_unwind.
4548 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4550 * mips-tdep.c (mips_get_saved_register): Re-hack using
4551 frame_register_unwind.
4553 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4555 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4556 vector. Will be useful for Interix.
4557 * gdbarch.h, gdbarch.c: Regenerate.
4559 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4560 name of the malloc function by NAME_OF_MALLOC.
4562 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4564 * value.h (find_function_in_inferior): Add const keyword to
4565 one of the parameters. Allows us to invoke this function with
4567 * valops.c (find_function_in_inferior): Likewise.
4569 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4571 * exec.c (xfer_memory): Fix compilation warning with old versions
4573 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4575 2002-09-12 David Carlton <carlton@math.stanford.edu>
4577 * symtab.h: Run through gdb_indent.h.
4578 Add 2002 to Copyright year list.
4580 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4582 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4584 * MAINTAINERS: Add myself to write after approval list.
4586 2002-09-11 J. Brobecker <brobecker@gnat.com>
4588 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4590 2002-09-11 J. Brobecker <brobecker@gnat.com>
4592 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4595 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4597 * procfs.c (do_detach): Clear current signal, not just fault.
4598 Corrects problem with breakpoint trap signal leaking to detached
4601 2002-09-10 Michael Snyder <msnyder@redhat.com>
4603 * buildsym.c (finish_block): Protect against null pointer.
4605 2002-09-10 Andrew Cagney <cagney@redhat.com>
4607 * infcmd.c (default_print_registers_info): Send all output to
4608 ``file'' instead of ``gdb_stdout''.
4610 2002-09-10 Michael Snyder <msnyder@redhat.com>
4612 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4613 LONGEST, and use signed register read (addresses are sign-
4616 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4618 * event-loop.c (gdb_do_one_event): Make public.
4619 * event-loop.h (gdb_do_one_event): Declare.
4621 2002-09-10 Jeff Law <law@redhat.com>
4623 * infttrace.c (child_resume): Simplify and rework to avoid
4626 2002-09-09 Fred Fish <fnf@intrinsity.com>
4628 * printcmd.c (print_scalar_formatted): "len" is the number of
4629 target bytes, NOT the number of target bits.
4631 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4633 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4634 * top.c (init_main): Set rl_terminal_name.
4636 2002-09-08 Aidan Skinner <aidan@velvet.net>
4638 * ada-lang.c (ada_array_bound, ada_type_match,
4639 _initialize_ada_language): Fix K&R definitions.
4640 * ada-tasks.c (get_current_task): Fix K&R definitions.
4641 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4643 2002-09-07 Christopher Faylor <cgf@redhat.com>
4645 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4648 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4650 * i386-tdep.c (i386_register_virtual_type,
4651 i386_register_convertible, i386_register_convert_to_virtual,
4652 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4653 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4654 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4655 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4656 Don't set push_arguments twice.
4658 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4659 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4660 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4661 sigtramp_end to NULL.
4662 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4664 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4666 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4669 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4670 * gdbarch.h, gdbarch.c: Re-generate.
4671 * blockframe.c (find_pc_sect_partial_function): Convert to use
4672 SIGTRAMP_START_P predicate.
4674 2002-09-05 Michael Snyder <msnyder@redhat.com>
4676 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4677 generic_dummy_frame method and old method. Also distinguish
4678 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4679 (arm_extract_return_value): Use new regcache method.
4681 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4682 adjustment that doesn't conform to the ABI.
4683 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4684 saved regcache, not from current regcache.
4686 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4688 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4691 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4693 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4694 if arm_apcs_32 is false.
4696 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4698 GDB 5.3 branch created.
4700 2002-09-03 Theodore A. Roth <troth@verinet.com>
4702 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4703 generic_unwind_get_saved_register.
4705 2002-09-03 David Carlton <carlton@math.stanford.edu>
4707 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4708 argument (PR gdb/653). Update call to smash_to_method_type.
4709 (read_structure_scope): Update call to dwarf2_add_member_fn.
4711 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4713 * x86-64-linux-tdep.c: Include gdb_string.h
4714 * x86-64-linux-nat.c: Ditto.
4716 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4718 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4719 when YYDEBUG is set to 1.
4720 * c-exp.y: Likewise.
4721 * f-exp.y: Likewise.
4722 * jv-exp.y: Likewise.
4723 * m2-exp.y: Likewise.
4724 * p-exp.y: Likewise.
4726 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4728 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4730 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4731 solib_svr4_fetch_link_map_offsets to
4732 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4733 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4734 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4735 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4736 solib-svr4.o, and solib-legacy.o.
4737 * config/i386/tm-nbsd.h: Include solib.h.
4739 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4741 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4742 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4743 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4744 comment noting that this needs its own target configuration.
4745 * config/i386/nbsd.mt: New file.
4746 * config/i386/nbsdaout.mt: Remove.
4747 * config/i386/nbsdelf.mt: Ditto.
4748 * config/i386/tm-nbsdaout.h: Ditto.
4750 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4752 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4753 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4754 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4756 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4757 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4758 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4760 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4762 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4763 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4764 * i386-tdep.h (i386bsd_init_abi): New prototype.
4765 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4766 function declaration.
4767 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4768 for NetBSD-a.out or NetBSD-ELF.
4769 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4770 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4771 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4772 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4774 (i386nbsd_pc_in_sigtramp): New function.
4775 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4776 i386nbsd_pc_in_sigtramp.
4777 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4778 and i386nbsdelf_init_abi OS ABI handlers.
4779 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4780 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4782 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4784 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4785 registers if the target really has them.
4787 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4789 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4792 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4794 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4796 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4797 (alphanbsd_skip_sigtramp_frame): New functions.
4798 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4799 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4800 to alphanbsd_sigcontext_addr.
4802 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4804 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4806 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4807 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4808 nbsd_pc_in_sigtramp.
4809 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4810 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4811 * nbsd-tdep.c: Include gdb_string.h.
4812 (nbsd_pc_in_sigtramp): New function.
4813 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4814 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4815 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4816 ppcnbsd_pc_in_sigtramp.
4817 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4818 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4819 shnbsd_pc_in_sigtramp.
4820 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4821 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4822 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4824 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4826 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4827 watchpoints to NULL.
4828 (insert_breakpoints): set val field of watchpoints if NULL.
4831 2002-08-29 Jim Blandy <jimb@redhat.com>
4833 * symtab.c (lookup_symbol_aux): In the cases where we find a
4834 minimal symbol of an appropriate name and use its address to
4835 select a symtab to read and search, use `name' (as passed to us)
4836 as the demangled name when searching the symtab's global and
4837 static blocks, not the minsym's name.
4839 2002-08-29 Keith Seitz <keiths@redhat.com>
4841 * stack.c (print_frame_info_base): Always set current_source_symtab
4842 and current_source_line.
4844 2002-08-29 Donn Terry <donnte@microsoft.com>
4846 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4848 2002-08-28 Keith Seitz <keiths@redhat.com>
4850 * stack.c (select_frame): Add FIXME concerning selected-frame
4852 (select_frame_command): Send selected-frame-level-changed
4853 event notification, but only if the level actually changed.
4854 (up_silently_base): Add selected-frame-level-changed event
4856 (down_silently_base): Likewise.
4858 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4860 * Makefile.in: Update dependencies for all gdb/*.c files.
4862 2002-08-27 Tom Tromey <tromey@redhat.com>
4864 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4865 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4866 Update dependencies.
4867 * i387-tdep.c: Include gdb_string.h.
4868 * osabi.c: Likewise.
4869 * i386-linux-nat.c: Likewise.
4870 * lin-lwp.c: Likewise.
4871 * ax-gdb.c: Likewise.
4872 * signals/signals.c: Likewise.
4873 * jv-valprint.c: Likewise.
4874 * p-lang.c: Likewise.
4875 * c-valprint.c: Likewise.
4876 * cp-abi.c: Likewise.
4878 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4880 * cli/cli-script.h (copy_command_lines): Export.
4881 * breakpoint.c: Include cli/cli-script.h.
4882 * Makefile.in (breakpoint.o): Update dependencies.
4884 2002-08-26 Michael Snyder <msnyder@redhat.com>
4886 * breakpoint.c (insert_breakpoints): Protect all references
4887 to 'process_warning'. Shorten long lines.
4889 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4891 * cli/cli-script.c (copy_command_lines): New function.
4892 * defs.h (copy_command_lines): Export.
4893 * testsuite/gdb.base/commands.exp: New tests for commands
4894 attached to a temporary breakpoint, and for commands that
4895 delete the breakpoint they are attached to.
4897 2002-08-26 Michael Snyder <msnyder@redhat.com>
4899 * breakpoint.c (bpstat_stop_status): Instead of copying the
4900 pointer to the breakpoint commands struct, make a new copy
4901 of the struct and point to that.
4902 (bpstat_clear): Free the commands struct.
4903 (bpstat_clear_actions): Free the commands struct.
4904 (bpstat_do_actions): Free the command actions. Also execute
4905 the local cleanups, instead of deleting them.
4906 (delete_breakpoint): Leave the commands field of the bpstat
4907 chain alone -- it will be freed later.
4909 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4911 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4912 deleted in 2002-08-20 commit. This function is still used by
4915 2002-08-26 Keith Seitz <keiths@redhat.com>
4917 * gdb-events.sh: Add selected-frame-level-changed event.
4918 * gdb-events.c: Regenerated.
4919 * gdb-events.h: Regenerated.
4921 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4924 * inflow.c (terminal_save_ours): New function to save terminal
4926 * inferior.h (terminal_save_ours): Declare.
4927 * target.c (debug_to_terminal_save_ours): New function.
4928 (cleanup_target): Defaults to_terminal_save_ours.
4929 (update_current_target): Inherit to_terminal_save_ours.
4930 (setup_target_debug): Set to_terminal_save_ours.
4931 * target.h (target_terminal_save_ours): New to save terminal settings.
4932 (target_ops): New member to_terminal_save_ours.
4933 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4934 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4935 * inftarg.c (init_child_ops): Likewise.
4936 * m3-nat.c (init_m3_ops): Likewise.
4937 * procfs.c (init_procfs_ops): Likewise.
4938 * wince.c (init_child_ops): Likewise.
4939 * win32-nat.c (init_child_ops): Likewise.
4940 * sol-thread.c (init_sol_thread_ops): Likewise.
4942 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4944 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4945 use regcache_* functions.
4946 (i386_gdbarch_init): Set store_return_value instead of
4947 deprecated_store_return_value.
4949 * regcache.c (regcache_raw_write_signed,
4950 regcache_raw_write_unsigned): New functions.
4951 * regcache.h (regcache_raw_write_signed,
4952 regcache_raw_write_unsigned): New prototypes.
4954 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4956 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4957 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4958 source file dependencies. Cleanup corresponding generator rules.
4960 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4962 * regcache.h (register_offset_hack): Declare.
4963 (regcache_cooked_read_using_offset_hack): Declare.
4964 (regcache_cooked_write_using_offset_hack): Declare.
4966 * regcache.c (register_offset_hack): New function.
4967 (regcache_cooked_read_using_offset_hack): New function.
4968 (regcache_cooked_write_using_offset_hack): New function.
4969 (regcache_dump): Check that the registers, according to their
4970 offset, are packed hard against each other.
4971 (cooked_xfer_using_offset_hack): New function.
4973 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4975 * regcache.c (struct regcache_descr): Add field register_type.
4976 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4978 (init_regcache_descr): Initialize register_type. Pass the descr
4979 to init_legacy_regcache_descr. Use register_type instead of
4980 REGISTER_VIRTUAL_TYPE.
4981 (register_type): New function.
4982 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4983 * regcache.h (register_type): Declare.
4985 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4987 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4988 instead of deprecated_store_return_value. Fix fallout from
4989 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4991 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4993 * regcache.c (max_register_size): New function.
4994 (init_legacy_regcache_descr): Ensure that max_register_size is
4995 large enough for REGISTER_VIRTUAL_SIZE.
4996 * regcache.h (max_register_size): Declare.
4998 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5000 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5002 (e500_extract_return_value): Change type of valbuf pointer to
5005 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5007 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5010 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5011 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5012 long long) to prevent compiler warning on 64-bit systems.
5014 2002-08-23 Andrew Cagney <cagney@redhat.com>
5016 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5017 (DEPRECATED_STORE_RETURN_VALUE): New method.
5018 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5019 * gdbarch.h, gdbarch.c: Re-generate.
5021 * values.c (set_return_value): Pass current_regcache to
5023 * arch-utils.h (legacy_store_return_value): Declare.
5024 * arch-utils.c (legacy_store_return_value): New function.
5025 (legacy_extract_return_value): Update parameters.
5027 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5029 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5030 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5031 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5032 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5033 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5034 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5035 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5036 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5037 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5038 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5041 * i386-tdep.c (i386_extract_return_value): Update.
5042 * arch-utils.c (legacy_extract_return_value): Update.
5043 * frv-tdep.c (frv_gdbarch_init): Update.
5044 * cris-tdep.c (cris_gdbarch_init): Update.
5045 * d10v-tdep.c (d10v_gdbarch_init): Update.
5046 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5047 * m68k-tdep.c (m68k_gdbarch_init): Update.
5048 * mcore-tdep.c (mcore_gdbarch_init): Update.
5049 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5050 * s390-tdep.c (s390_gdbarch_init): Update.
5051 * sparc-tdep.c (sparc_gdbarch_init): Update.
5052 * sh-tdep.c (sh_gdbarch_init): Update.
5053 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5054 * v850-tdep.c (v850_gdbarch_init): Update.
5055 * avr-tdep.c (avr_gdbarch_init): Update.
5056 * ia64-tdep.c (ia64_gdbarch_init): Update.
5057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5058 * vax-tdep.c (vax_gdbarch_init): Update.
5059 * alpha-tdep.c (alpha_gdbarch_init): Update.
5060 * arm-tdep.c (arm_gdbarch_init): Update.
5061 * mips-tdep.c (mips_gdbarch_init): Update.
5062 * i386-tdep.c (i386_gdbarch_init): Update.
5064 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5066 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5067 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5069 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5071 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5074 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5076 * infrun.c (handle_inferior_event): Move a comment outside of a
5077 function call, in order to avoid indent reformatting this part
5078 of the code in an unreadable way.
5080 2002-08-23 Grace Sainsbury <graces@redhat.com>
5082 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5083 when breakpoints fail. Move general breakpoint error messages to
5085 * breakpoint.c (insert_breakpoints): Change warnings when
5086 breakpoints are nto inserted to specify the type. Remove call to
5087 memory_error when hardware breakpoints can't be inserted. Remove
5088 multiple calls to warning so all messages are sent to the user at
5090 (delete_breakpoints): Make insert error messsages more explicit.
5092 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5094 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5095 gdbserver/ChangeLog.
5097 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5099 * i386-tdep.c: Include "objfiles.h".
5100 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5101 skip_trampoline_code.
5102 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5103 (CPLUS_MARKER): Define to '.'.
5105 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5107 (linux_corefile_thread_callback): Increase args->num_notes.
5108 (linux_make_note_section): Initialize thread_args.num_notes, and
5109 use it to determine whether notes for any threads were created.
5111 2002-08-23 Donn Terry <donnte@microsoft.com>
5113 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5114 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5116 (write_with_trace): Conditionalize out the switch branch handling
5117 PCSHOLD if the corresponding macro is not defined. Likewise for
5118 PRSABORT and PRSTOP.
5119 This change will be needed by the Interix port.
5121 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5123 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5124 write_register wherever possible instead of manipulating the
5125 register bytes directly.
5126 Assign VALUE_CONTENTS to a variable and use that.
5127 The GPR numbers are now dependent on the architecture.
5129 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5131 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5133 (skip_prologue): Add support for BookE/e500 instructions.
5134 (e500_extract_return_value): New function.
5135 (frame_get_saved_regs): Add support for saving ev registers and
5137 (e500_store_return_value): New function.
5138 (rs6000_gdbarch_init): Move up default intializations of
5139 deprecated_extract_return_value and store_return_value. Overwrite
5140 init of store_return_value with e500 specific version.
5141 Set extract_return_value for e500.
5143 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5145 * blockframe.c (generic_call_dummy_register_unwind): Use
5146 regcache_cooked_read to catch cases in which the variable is
5147 stored in a pseudo register.
5149 2002-08-22 Andrew Cagney <cagney@redhat.com>
5151 * NEWS: Mention that the i960 has been made obsolete.
5152 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5154 (remote-nrom.o): Obsolete target.
5155 (remote-nindy.o, i960-tdep.o): Ditto.
5156 * remote-nrom.c: Make file obsolete.
5157 * remote-nindy.c, remote-vx960.c: Ditto.
5158 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5159 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5160 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5161 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5162 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5163 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5164 i960-*-vxworks* obsolete.
5165 * MAINTAINERS: Note that the i960 is obsolete.
5167 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5169 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5170 detach to allow reinitialization.
5172 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5174 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5177 2002-08-22 Jim Blandy <jimb@redhat.com>
5179 * coffread.c (coff_symfile_read): Don't try to read the line
5180 number table from disk if the image file doesn't have a symbol
5181 table; we'll never actually look at the info anyway, and Windows
5182 ships DLL's with bogus file offsets for the line number data.
5184 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5186 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5189 2002-08-21 Michael Snyder <msnyder@redhat.com>
5191 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5192 (MSYMBOL_SIZE): Replace macro with function.
5193 (DEFAULT_MIPS_TYPE): Delete unused macro.
5194 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5195 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5197 2002-08-21 Jim Blandy <jimb@redhat.com>
5199 * valops.c (value_cast): Simplify and correct logic for doing a
5200 static cast from a pointer to a base class to a pointer to a
5203 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5205 * infcmd.c (default_print_registers_info): Replace
5207 (registers_info): Use gdbarch_print_registers_info instead of
5209 * inferior.h (default_print_registers_info): Replace
5211 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5212 (DO_REGISTERS_INFO): Change to a predicate function.
5213 * gdbarch.h, gdbarch.c: Regenerate.
5215 2002-08-21 Keith Seitz <keiths@redhat.com>
5217 * gdb-events.sh: Add target-changed event.
5218 * gdb-events.c: Regenerated.
5219 * gdb-events.c: Regenerated.
5220 * valops.c (value_assign): Add target-changed event notification
5221 to inlval_register, lval_memory, and lval_reg_frame_relative.
5223 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5225 * NEWS: Add an entry regarding the improvement of the next/step
5226 operation on Alpha Tru64 multi-processor machines.
5228 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5230 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5232 * Makefile.in: Update all _h macro definitions.
5233 * Makefile.in (install-gdbtk): Move to install section.
5234 (rdi-share/libangsd.a): Move to end of file.
5236 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5238 * frame.c (frame_register_unwind): When a register, set addrp to
5239 the register's byte.
5241 2002-08-20 Michael Snyder <msnyder@redhat.com>
5243 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5244 used locally, so move them from the target machine header to here.
5245 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5246 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5248 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5250 2002-08-20 Andrew Cagney <cagney@redhat.com>
5252 * NEWS: Mention that the Apollo line was made obsolete.
5253 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5254 m68*-hp-hpux* obsolete.
5255 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5256 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5257 * buildsym.c (make_blockvector): Make static.
5258 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5259 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5260 (ALLDEPFILES): Remove dstread.c.
5261 (dstread.o): Obsolete make rule.
5262 * dstread.c: Makefile obsolete.
5264 * config/m68k/hp300hpux.mt: Ditto.
5265 * config/m68k/hp300hpux.mh: Ditto.
5266 * config/m68k/hp300bsd.mt: Ditto.
5267 * config/m68k/hp300bsd.mh: Ditto.
5268 * config/m68k/apollo68b.mt: Ditto.
5269 * config/m68k/apollo68v.mh: Ditto.
5270 * config/m68k/apollo68b.mh: Ditto.
5272 2002-08-20 Michael Snyder <msnyder@redhat.com>
5274 * mips-tdep.c (mips_in_return_stub): Make static.
5275 (mips_gdbarch_init): Set in_solib_return_trampoline.
5276 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5278 2002-08-20 Michael Snyder <msnyder@redhat.com>
5280 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5281 * gdbarch.c, gdbarch.h: Regenerate.
5282 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5284 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5286 2002-08-20 Michael Snyder <msnyder@redhat.com>
5288 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5289 (mips_gdbarch_init): Set skip_trampoline_code,
5290 in_solib_call_trampoline.
5291 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5292 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5294 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5296 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5298 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5299 vector type for ev registers.
5300 (e500_pseudo_register_read): New function.
5301 (e500_pseudo_register_write): New function.
5302 (e500_dwarf2_reg_to_regnum): New function.
5303 (PPC_UISA_NOFP_SPRS): New macro.
5304 (PPC_EV_REGS): New macro.
5305 (PPC_GPRS_PSEUDO_REGS): New macro.
5306 (registers_e500): New register set for e500.
5307 (variants): Add e500 variant.
5308 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5309 before setting architectural dependent variations. Initialize ev
5310 registers numbers. Add case for e500 architecture. Set the
5311 number of pseudo registers.
5313 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5315 * rs6000-tdep.c: Clean up comments.
5317 2002-08-20 Andrew Cagney <cagney@redhat.com>
5319 * h8300-tdep.c: Re-indent file.
5321 2002-08-20 Jim Blandy <jimb@redhat.com>
5323 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5326 2002-08-20 Keith Seitz <keiths@redhat.com>
5328 * breakpoints.c (watch_command_1): Use internal breakpoint
5329 when setting a watchpoint_scope breakpoint.
5331 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5333 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5334 (build_builtin_type_vec64i): Ditto.
5335 (build_builtin_type_vec128): Ditto.
5336 (build_builtin_type_vec128i): Ditto.
5338 2002-08-19 Michael Snyder <msnyder@redhat.com>
5340 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5341 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5342 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5343 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5344 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5345 CALL_DUMMY_ADDRESS): Delete.
5346 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5347 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5348 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5349 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5350 push_return_address.
5351 (mips_register_raw_size, mips_eabi_use_struct_convention,
5352 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5353 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5354 mips_init_extra_frame_info, mips_eabi_push_arguments,
5355 mips_n32n64_push_arguments, mips_push_return_address,
5356 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5357 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5359 2002-08-19 Michael Snyder <msnyder@redhat.com>
5361 * mips-tdep.c (mips_frame_num_args): New function.
5362 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5363 frame_saved_pc, frame_args_address, frame_locals_address,
5364 frame_num_args, and frame_args_skip.
5365 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5366 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5367 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5368 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5370 2002-08-20 Michael Snyder <msnyder@redhat.com>
5372 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5373 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5374 * mips-tdep.c (mips_store_struct_return): New function.
5375 (mips_extract_struct_value_address): New function.
5376 (mips_gdbarch_init): Set store_struct_return and
5377 extract_struct_value_address.
5379 2002-08-20 David Carlton <carlton@math.stanford.edu>
5381 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5382 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5383 (read_file_scope): Check that line_header is nonzero before
5384 decoding macro information.
5386 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5388 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5389 flag the general-purpose registers as floating-point on targets
5390 that don't support the floating-point registers.
5392 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5394 * rs6000-tdep.c (altivec_register_p): Delete.
5395 (rs6000_do_altivec_registers): Delete.
5396 (rs6000_altivec_registers_info): Delete.
5397 (rs6000_do_registers_info): Delete.
5398 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5399 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5401 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5403 * infcmd.c (do_registers_info): Print vector registers in hex
5405 (print_vector_info): Check that printing registers
5407 (print_float_info): Ditto.
5409 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5411 * mips-tdep.c (mips_gdbarch_init): Update.
5412 (mips_o32_extract_return_value): Rewrite.
5413 (mips_o32_store_return_value): Rewrite.
5414 (mips_o32_xfer_return_value): New function.
5415 (mips_xfer_register): Tweak debug print message. Allow for
5416 buf_offset when dumping the value transfered.
5418 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5420 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5421 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5422 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5423 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5424 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5426 2002-08-14 Michael Snyder <msnyder@redhat.com>
5428 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5430 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5432 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5434 (P): New macro to define a register as a pseudo register.
5435 (R, R4, R8, R16, FR32, R64, R0): Updated.
5436 (struct variant): Add new fields for number of pseudo registers
5437 and number of total registers.
5438 (tot_num_registers): New macro replacing....
5439 (num_registers): ...deleted macro.
5440 (num_registers): New function.
5441 (num_pseudo_registers): New function.
5442 (variants): Update all variants to intialize new fields correctly.
5443 Postpone initialization of number of pseudo regs and real regs.
5444 (init_variants): New function.
5445 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5448 2002-08-19 David Carlton <carlton@math.stanford.edu>
5450 * valops.c (search_struct_field): Change error message to treat
5451 return value of 0 from value_static_field as meaning that field is
5453 (value_struct_elt_for_reference): Ditto.
5454 * values.c (value_static_field): Treat an unresolved location the
5455 same as a nonexistent symbol. Fix PR gdb/635.
5456 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5457 enclosed. Fix PR gdb/574.
5458 * MAINTAINERS: Add self to Write After Approval list.
5460 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5462 * mips-tdep.c (mips_xfer_register): New function.
5463 (mips_n32n64_extract_return_value): Rewrite.
5464 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5465 instead of deprecated_extract_return_value.
5467 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5469 * rs6000-tdep.c (TDEP): Delete macro.
5470 (branch_dest): Replace use of TDEP macro with its body.
5471 (rs6000_pop_frame): Ditto.
5472 (rs6000_push_arguments): Ditto.
5473 (rs6000_skip_trampoline_code): Ditto.
5474 (rs6000_frame_saved_pc): Ditto.
5475 (rs6000_frame_chain): Ditto.
5476 (rs6000_register_name): Ditto.
5477 (rs6000_register_byte): Ditto.
5478 (rs6000_register_raw_size): Ditto.
5479 (rs6000_register_virtual_type): Ditto.
5480 (rs6000_register_convertible): Ditto.
5481 (rs6000_convert_from_func_ptr_addr): Ditto.
5483 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5485 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5487 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5488 MIPS_LINUX_JB_ELEMENT_SIZE.
5489 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5490 for MAX_REGISTER_RAW_SIZE arrays.
5491 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5492 MIPS_LINUX_JB_ELEMENT_SIZE.
5494 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5496 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5498 2002-08-19 Aidan Skinner <aidan@velvet.net>
5500 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5501 ada-valprint.c ada-tasks.c.
5502 (YYFILES): Add ada-exp.y.
5503 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5504 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5505 (ada-exp.tab.o): New target.
5507 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5509 * regcache.c (regcache_xfer_part): New function.
5510 (regcache_raw_read_part): New function.
5511 (regcache_raw_write_part): New function.
5512 (regcache_cooked_read_part): New function.
5513 (regcache_cooked_write_part): New function.
5514 * regcache.h (regcache_raw_read_part): Declare.
5515 (regcache_raw_write_part): Declare.
5516 (regcache_cooked_read_part): Declare.
5517 (regcache_cooked_write_part): Declare.
5519 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5521 * remote.c (remote_open_1): Add async_p.
5522 (remote_async_open_1): Delete.
5523 (open_remote_target): Delete.
5524 (remote_open, extended_remote_open): Update calls to remote_open_1.
5525 (remote_async_open, extended_remote_async_open): Call
5526 remote_open_1 instead of remote_async_open_1.
5528 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5530 * blockframe.c: Fix a few coding standard violations.
5532 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5534 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5536 * config/i386/tm-i386sco5.h: ... here. File removed.
5537 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5539 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5540 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5541 (TM_FILE): Set to tm-i386.h.
5542 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5543 * config/i386/tm-i386v.h: Remove file.
5544 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5545 instead of "i386/tm-i386v.h".
5546 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5547 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5549 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5550 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5553 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5555 * config/i386/nm-i386v.h: Add protection against
5557 (i386_register_u_addr): Remove prototype.
5558 (register_u_addr): New prototype.
5559 (REGISTER_U_ADDR): Redefine accordingly.
5560 * i386v-nat.c: Improve several comments.
5561 (i386_register_u_addr): Change signature and rename to
5562 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5565 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5567 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5568 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5569 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5570 deprecated_extract_return_value.
5571 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5572 rename mips_o32o64_push_arguments.
5573 (mips_gdbarch_init): Update.
5574 (mips_extract_return_value): Delete.
5575 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5576 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5577 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5578 (mips_n32n64_extract_return_value): Clone
5579 mips_extract_return_value.
5580 (mips_store_return_value): Delete.
5581 (mips_o32_store_return_value): Clone mips_store_return_value.
5582 (mips_o64_store_return_value): Clone mips_store_return_value.
5583 (mips_eabi_store_return_value): Clone mips_store_return_value.
5584 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5586 2002-08-18 Aidan Skinner <aidan@velvet.net>
5588 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5589 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5591 2002-08-18 Aidan Skinner <aidan@velvet.net>
5593 * ada-lang.c: Run through gdb_indent.sh.
5594 * ada-lang.h: Run through gdb_indent.sh.
5595 * ada-tasks.c: Run through gdb_indent.sh.
5596 * ada-typeprint.c: Run through gdb_indent.sh.
5597 * ada-valprint.c: Run through gdb_indent.sh.
5599 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5601 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5604 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5606 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5608 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5609 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5611 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5612 write_register_gen instead of write_register_bytes.
5614 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5615 i[3456]-*-osf1mk* configurations have been made obsolete.
5616 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5617 i[3456]86-*-osf1mk* hosts obsolete.
5618 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5620 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5621 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5622 config/i386/i386m3.mt, config/i386/nm-m3.h,
5623 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5624 config/i386/i386mk.mh, config/i386/i386mk.mt,
5625 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5627 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5628 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5629 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5631 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5633 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5634 (hppa_value_returned_from_stack): Declare.
5635 (hppa_extract_return_value): Declare.
5636 * config/pa/hppa.mt: New file.
5637 * configure.tgt: Recognize hppa*-*-*.
5638 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5640 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5642 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5645 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5647 * top.c (gdb_rl_operate_and_get_next): Make sure
5648 operate-and-get-next functions correctly even when the history
5649 list is completely filled.
5651 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5653 * MAINTAINERS (Target Instruction Set Architectures): Rename
5654 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5655 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5656 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5657 already listed under Host/Native.
5659 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5660 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5663 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5665 * config/ia64/ia64.mt: New file.
5666 * config/alpha/alpha.mt: New file.
5667 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5668 ia64-linux-gnu. Mention that ia64-elf is broken.
5669 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5671 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5673 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5674 generic_func_frame_valid instead of func_frame_valid.
5676 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5678 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5679 procfs appears to be broken when debugging on multi-processor
5680 machines. So enable software single stepping in order to avoid
5681 using the procfs interface to do next/step operations, using
5682 internal breakpoints instead.
5684 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5685 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5686 make this pc address equal to the value it would have if the
5687 system stepping capability was used. Also set a new flag used
5688 to ensure that we don't readjust the PC one more time later.
5690 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5691 address by DECR_PC_AFTER_BREAK when software single step is
5692 in use for this architecture, as this has already been taken
5693 care of in handle_inferior_event().
5695 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5697 * infrun.c (handle_inferior_event): Minor reformatting, to make
5698 a rather long condition expression easier to read.
5700 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5702 * Makefile.in (gdbtk.o): Move to end of file.
5703 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5704 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5705 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5706 (gdbtk-wrapper.o, gdbres.o): Ditto.
5708 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5710 * Makefile.in (copying.o): Separate out compile rule.
5711 (hpux-thread.o, procfs.o, signals.o): Ditto.
5712 (v850ice.o, z8k-tdep.o): Ditto.
5713 (tui-file.o): Move to TUI section.
5714 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5715 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5717 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5719 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5720 skip_trampoline_code, for better namespace-proofing.
5722 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5724 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5726 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5728 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5730 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5731 signal, check whether we hit a breakpoint before checking for a
5732 single step breakpoint. Otherwise, GDB fails to notice that a
5733 breakpoint has been hit when stepping onto a breakpoint.
5735 2002-08-16 Keith Seitz <keiths@redhat.com>
5737 * gdb-events.sh (clear_gdb_event_hooks): New function.
5738 * gdb-events.c: Regenerate.
5739 * gdb-events.h: Regenerate.
5741 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5743 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5744 not_a_sw_breakpoint.
5745 * breakpoint.h (bpstat_stop_status): Add parameter names.
5747 2002-08-16 Grace Sainsbury <graces@redhat.com>
5749 * remote.c (remote_insert_hw_breakpoint)
5750 (remote_remove_hw_breakpoint): Fix calculation of length field
5753 2002-08-15 Michael Snyder <msnyder@redhat.com>
5755 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5756 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5757 (supply_fpregset): Ditto.
5759 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5760 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5761 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5762 (TARGET_READ_SP): Delete.
5763 (DO_REGISTERS_INFO): Delete.
5764 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5766 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5767 from macros to functions.
5769 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5770 (mips_register_convertible, mips_register_convert_to_virtual,
5771 mips_register_convert_to_raw): Make static.
5772 (mips_read_sp): New function.
5773 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5774 (mips_do_registers_info): Make static.
5775 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5776 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5777 (mips_register_convert_from_type, mips_register_convert_to_type):
5779 (mips_gdbarch_init): Set up function_start_offset,
5780 register_virtual_size, pc_in_sigtramp.
5782 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5784 * infcmd.c (vector_info): New function.
5785 (_initialize_infcmd): Add command "info vector".
5786 (print_vector_info): New function.
5788 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5789 * gdbarch.h, gdbarch.c: Regenerate.
5791 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5793 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5794 ``print_all''. Only print vector registers when ``print_all''.
5796 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5798 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5799 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5801 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5802 Add `args' parameter.
5803 * gdbarch.h, gdbarch.c: Regenerate.
5805 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5807 * infcmd.c (float_info): Call print_float_info.
5808 (print_float_info): New function. By default, print the
5809 floating-point registers.
5811 * arch-utils.h (default_print_float_info): Delete declaration.
5812 * arch-utils.c (default_print_float_info): Delete function.
5814 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5816 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5819 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5822 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5823 * configure.host: Make i[3456]86-*-aix host obsolete.
5824 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5825 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5826 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5827 config/i386/xm-i386aix.h: Make files obsolete.
5828 * i386aix-nat.c: Make file obsolete.
5829 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5830 (i386aix-nat.o): Make target obsolete.
5832 * config/i386/nm-gnu.h: Removed.
5833 * config/i386/nm-i386gnu.h: New file.
5834 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5835 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5837 * config/i386/tm-i386gnu.h: ... here. Removed.
5838 * config/i386/xm-i386gnu.h: Removed.
5839 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5840 (NAT_FILE): Set to nm-i386gnu.h.
5841 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5842 * i386-tdep.c: New file.
5843 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5844 (i386gnu-tdep.o): Specify dependencies.
5846 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5848 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5849 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5850 Adjust a few comments to reflect reality a bit closer.
5851 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5852 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5853 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5854 target_insert_watchpoint, target_remove_watchpoint):
5856 * config/i386/nm-i386sco5.h: ... here.
5857 (kernel_u_size): Add prototype. Improve a few comments and add
5858 protection against multiple inclusion.
5860 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5863 * uw-thread.c (SP_ARG0): Define if not already defined.
5864 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5866 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5868 * config/i386/tm-i386.h: Don't include "regcache.h".
5870 * i387-tdep.h (i387_print_float_info): New prototype.
5871 * i387-tdep.c (print_i387_value, print_i387_ext,
5872 print_i387_status_word, print_i387_control_word): Add `struct
5873 ui_file *' argument and use it for output.
5874 (i387_print_float_info): Renamed from i387_float_info. Add
5875 `struct gdbarch *' and `struct ui_file *' arguments and use the
5877 * i386-tdep.c: Include "i387-tdep.h".
5878 (i386_gdbarch_init): Set print_float_info.
5879 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5880 (FLOAT_INFO): Remove define.
5882 2002-08-13 Michael Snyder <msnyder@redhat.com>
5884 * mips-tdep.c (mips_push_arguments): Rename to
5885 mips_eabi_push_arguments, and tune for EABI.
5886 (MIPS_REGS_HAVE_HOME_P): Delete.
5887 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5888 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5889 Delete references to mips_regs_have_home_p.
5891 2002-08-14 Keith Seitz <keiths@redhat.com>
5893 * Makefile.in (install-gdbtk): Create insight plugin directory.
5894 Install plugins.tcl file.
5896 2002-08-14 Keith Seitz <keiths@redhat.com>
5898 * configure.in: Move SUBDIRS to near top of the file so that
5899 --enable options may add things to it.
5900 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5901 * configure: Regenerate.
5903 2002-08-13 Michael Snyder <msnyder@redhat.com>
5905 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5906 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5907 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5909 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5911 * vax-tdep.c (vax_get_saved_register): Delete function.
5912 (vax_gdbarch_init): Update.
5913 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5914 (ns32k_gdbarch_init): Update.
5915 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5916 (alpha_gdbarch_init): Update.
5918 2002-08-13 Andrew Cagney <cagney@redhat.com>
5920 * regcache.c (init_regcache_descr): Overallocate the
5921 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5922 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5924 (set_register_cached): Add range checking assertions. Use
5927 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5929 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5930 numbers for MMX registers.
5932 2002-08-13 Andrew Cagney <cagney@redhat.com>
5934 * i386-tdep.c (i386_gdbarch_init): Use
5935 generic_unwind_get_saved_register.
5937 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5939 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5940 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5942 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5943 Delete. Add comment regarding this now-deleted target method.
5945 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5947 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5948 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5949 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5950 real PC and the page number (if it's within the memory bank window).
5951 (m68hc11_pseudo_register_write): Likewise when saving.
5952 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5953 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5954 (m68hc11_register_raw_size): And use 32-bit for it.
5955 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5956 16K memory bank is used by the prog; also use the virtual pc.
5958 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5960 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5961 (m68hc11_gdbarch_init): Install it in gdbarch.
5962 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5963 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5964 (MSYMBOL_SIZE): New for documentation.
5965 (insn_return_kind): Enum to specify how a function returns.
5966 (frame_extra_info): Cleanup and record the return mode.
5967 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5968 register in address computation.
5969 (m68hc11_get_return_insn): New to obtain the return instruction used
5971 (m68hc11_frame_init_saved_regs): Take into account the return
5972 instruction used by the function for far and interrupt functions.
5973 (m68hc11_init_extra_frame_info): Take into account page register.
5974 (m68hc11_frame_args_address): Adjust according to the return mode.
5975 (show_regs): Print page register only when it's used.
5977 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5979 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5980 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5981 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5983 (m68hc11_register_raw_size): Likewise.
5985 2002-08-13 Andrew Cagney <cagney@redhat.com>
5987 * i386-tdep.c (i386_register_name): Handle mmx registers.
5988 (mmx_regnum_p): New function.
5989 (i386_mmx_names): New array.
5990 (mmx_num_regs): New variable.
5991 (i386_pseudo_register_read): New function.
5992 (i386_pseudo_register_write): New function.
5993 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5995 * regcache.c (regcache_raw_read_unsigned): New function.
5996 (regcache_raw_read_signed): New function.
5997 * regcache.h (regcache_raw_read_unsigned): Declare.
5998 (regcache_raw_read_signed): Declare.
6000 2002-08-13 Andrew Cagney <cagney@redhat.com>
6002 * regcache.c (regcache_raw_read_as_address): Delete function.
6003 (regcache_cooked_read_signed): New function.
6004 (regcache_cooked_read_unsigned): New function.
6005 * regcache.h (regcache_cooked_read_signed): Declare.
6006 (regcache_cooked_read_unsigned): Declare.
6007 (regcache_raw_read_as_address): Delete declaration.
6009 * blockframe.c (generic_read_register_dummy): Use
6010 regcache_cooked_read_unsigned.
6011 * i386-tdep.c (i386_extract_struct_value_address): Use
6012 regcache_cooked_read_unsigned.
6014 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6017 double sizes according to ELF ABI flags.
6018 (gdbarch_tdep): Record elf_flags.
6020 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6022 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6023 (m6812_prolog): They can appear in 68HC12 function prologue.
6024 (m68hc11_frame_chain): Cleanup.
6026 2002-08-12 Andrew Cagney <cagney@redhat.com>
6028 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6030 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6031 (i386_linux_register_raw_size): Delete function.
6032 (i386_linux_init_abi): Update.
6033 * i386-tdep.c (i386_register_raw_size): Delete function.
6034 (i386_register_byte): Delete function.
6035 (i386_gdbarch_init): Update.
6036 (i386_register_size): Delete array.
6037 (i386_register_offset): Delete array.
6039 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6040 (REGISTER_RAW_SIZE): Delete macro.
6041 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6042 (REGISTER_BYTE): Delete macro.
6044 2002-08-11 Aidan Skinner <aidan@velvet.net>
6046 * ada-lang.c (ada_lookup_partial_symbol)
6047 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6048 prototype names so that grep ^func works properly.
6050 * ada-lang.c (ada_array_element_type)
6051 (ada_lookup_partial_symbol): Fix typos in parameter list.
6053 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6054 Fix prototype names so that grep ^func works properly.
6056 2002-08-10 Andrew Cagney <cagney@redhat.com>
6057 Elena Zannoni <ezannoni@redhat.com>
6058 Martin M. Hunt <hunt@redhat.com>
6060 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6061 (build_builtin_type_vec128i): Set the vector bit.
6062 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6063 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6064 (build_builtin_type_vec64): New function.
6065 (build_builtin_type_vec64i): New function.
6066 (build_gdbtypes): Initialize builtin_type_vec64 and
6067 builtin_type_vec64i.
6069 2002-08-09 Andrew Cagney <cagney@redhat.com>
6071 * regcache.c (regcache_dump): Compare the register offset
6073 * arch-utils.c (generic_register_byte): New function.
6074 * arch-utils.h (generic_register_byte): Declare.
6075 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6076 * gdbarch.h, gdbarch.c: Regenerate.
6078 2002-08-09 Andrew Cagney <cagney@redhat.com>
6080 * regcache.c: Include "gdbcmd.h"
6081 (_initialize_regcache): Add commands "maintenance print
6082 registers", "maintenance print raw-registers" and "maintenance
6083 print cooked-registers".
6084 (enum regcache_dump_what): Define.
6085 (dump_endian_bytes): New function.
6086 (regcache_dump): New function.
6087 (regcache_print): New function.
6088 (maintenance_print_registers): New function.
6089 (maintenance_print_raw_registers): New function.
6090 (maintenance_print_cooked_registers): New function.
6091 * Makefile.in (regcache.o): Update dependencies.
6093 2002-08-09 Michael Snyder <msnyder@redhat.com>
6095 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6096 (mips_push_arguments): Correct some comments. Use paddr_nz
6097 for printing addresses in debug output. Replace static
6098 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6099 (mips_n32n64_push_arguments): New function, cloned from
6100 mips_push_arguments and tuned for the n32/n64 ABI.
6101 (mips_push_register): Buffer needs dynamic allocation.
6102 (mips_print_register): Ditto.
6103 (do_gp_register_row): Ditto.
6104 (mips_store_return_value): Ditto.
6105 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6107 2002-08-09 Don Howard <dhoward@redhat.com>
6109 * memattr.c (mem_info_command): Print special case of upper bound
6110 as max CORE_ADDR + 1.
6112 2002-08-08 Michael Snyder <msnyder@redhat.com>
6114 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6115 returns structs by ref if they're too big to fit in two registers.
6117 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6119 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6121 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6122 mips_find_saved_regs().
6123 (mips_pop_frame): Likewise.
6125 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6127 * blockframe.c (frame_saved_regs_register_unwind): Revise
6128 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6131 2002-08-09 Grace Sainsbury <graces@redhat.com>
6133 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6134 T-packets; the 'a' is not taken as a register number.
6135 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6136 (remote_stopped_data_address): New functions; add to target
6138 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6139 prototypes to match other implementations of this
6140 function. replace integer argument with pointer -- the length
6141 field in the Z-packet is the length of what is pointed to or 1 if
6142 pointer is null. Add to target vector.
6143 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6147 * remote.c (remote_wait): Add support to extract optional
6148 watchpoint information from T-packet. Ignore unrecognized
6149 optional info in T-packet.
6150 (remote_async_wait): Ditto.
6152 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6154 * cli/cli-dump.c: Change fopen modes to use binary open modes
6155 as defined in include/fopen-bin.h throughout.
6157 2002-08-08 Michael Snyder <msnyder@redhat.com>
6159 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6161 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6163 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6164 assertion failure by returning early after a warning.
6166 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6168 * mips-tdep.c (mips_find_saved_regs): Make static.
6169 (mips_frame_init_saved_regs): New function.
6170 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6171 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6172 (mips_find_saved_regs): Delete declaration.
6174 2002-08-08 Grace Sainsbury <graces@redhat.com>
6176 * remote.c (remote_wait, remote_async_wait): Change
6177 thread_num from int to ULONGEST.
6178 (unpack_varlen_hex): Change result parameter from
6179 int * to ULONGEST *.
6181 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6183 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6184 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6186 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6188 2002-08-08 Andrew Cagney <cagney@redhat.com>
6190 * gcore.c (override_derive_stack_segment): Delete variable.
6191 (preempt_derive_stack_segment): Delete function.
6192 (derive_stack_segment): Delete function.
6193 (default_derive_stack_segment): Renamed to derive_stack_segment.
6194 (override_derive_heap_segment): Delete variable.
6195 (preempt_derive_heap_segment): Delete function.
6196 (derive_heap_segment): Delete function.
6197 (default_derive_heap_segment): Rename to derive_heap_segment.
6199 2002-08-06 Michael Snyder <msnyder@redhat.com>
6201 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6202 * mips-tdep.c (mips_EABI_use_struct_convention,
6203 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6204 New functions. (mips_use_struct_convention): Delete.
6205 (mips_gdbarch_init): set use_gdbarch_convention.
6207 2002-08-06 Michael Snyder <msnyder@redhat.com>
6209 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6210 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6211 mips_o32_reg_struct_has_addr): New functions.
6212 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6214 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6216 * regcache.c (pseudo_register): Delete function.
6217 (fetch_register): Delete function.
6218 (store_register): Delete function.
6219 (regcache_raw_read, legacy_read_register_gen): Use
6220 target_fetch_registers instead of fetch_register.
6221 (legacy_write_register_gen, regcache_raw_write): Use
6222 target_store_register instead of store_register.
6223 (write_register_bytes): Ditto.
6225 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6226 (STORE_PSEUDO_REGISTER): Delete.
6227 * gdbarch.h, gdbarch.c: Regenerate.
6229 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6231 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6232 write dump file binary.
6234 2002-08-05 Michael Snyder <msnyder@redhat.com>
6236 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6237 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6238 (mips_gdbarch_init): Set N32 target to be mips64.
6240 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6242 * frame.c (find_saved_register): Break out of loop once saved
6243 register address is found. Don't mention sparc in loop comment
6246 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6248 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6249 mips_default_saved_regsize to 8.
6251 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6253 * gcore.c: Do not include <sys/procfs.h>.
6254 * Makefile.in (gcore.o): Update dependencies.
6256 2002-08-06 Andrew Cagney <cagney@redhat.com>
6258 * configure.tgt: Make arc-*-* obsolete.
6259 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6260 * MAINTAINERS: Make arc-elf obsolete.
6261 * arc-tdep.c: Make file obsolete.
6262 * config/arc/arc.mt: Ditto.
6263 * config/arc/tm-arc.h: Ditto.
6265 2002-08-05 Theodore A. Roth <troth@verinet.com>
6267 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6269 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6271 * mcore-tdep.c (mcore_gdbarch_init): Use
6272 generic_unwind_get_saved_register instead of
6273 generic_get_saved_register.
6274 * v850-tdep.c (v850_gdbarch_init): Ditto.
6275 * frv-tdep.c (frv_gdbarch_init): Ditto.
6276 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6277 * s390-tdep.c (s390_gdbarch_init): Ditto.
6278 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6279 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6280 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6282 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6284 * objfiles.h: Add missing #include "symfile.h"
6286 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6288 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6290 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6291 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6294 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6296 * NEWS: Cleanup and nitpick.
6298 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6300 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6302 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6304 * Makefile.in (gdbtk-bp.o): Update dependencies.
6305 (gdbtk-register.o): Ditto.
6306 (gdbtk-varobj.o): Ditto.
6308 2002-08-03 Andrew Cagney <cagney@redhat.com>
6310 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6311 m68hc11_fetch_pseudo_register.
6312 (m68hc11_pseudo_register_write): Replace
6313 m68hc11_store_pseudo_register.
6314 (m68hc11_gdbarch_init): Update.
6316 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6318 * gdbarch.sh: Include "gdb_string.h".
6319 * gdbarch.c: Regenerate.
6321 * regcache.c: Include "gdb_string.h".
6322 * ax-general.c: Ditto.
6324 * std-regs.c: Ditto.
6325 * fbsd-proc.c: Ditto.
6328 * Makefile.in (regcache.o): Update dependencies.
6329 (thread.o, gdbarch.o): Ditto.
6330 (ax-general.o, gdbarch.o): Ditto.
6331 (varobj.o, std-regs.o): Ditto.
6332 (fbsd-proc.o): Specify dependencies.
6334 2002-08-02 Andrew Cagney <cagney@redhat.com>
6336 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6338 (regcache_cooked_write): Ditto.
6340 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6342 * regcache.c (regcache_cooked_read): New function.
6343 (regcache_cooked_write): New function.
6344 (read_register_gen): Rewrite using regcache_cooked_read.
6345 (write_register_gen): Rewrite using regcache_cooked_write.
6347 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6350 2002-08-02 Andrew Cagney <cagney@redhat.com>
6352 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6353 Replace the architecture methods register_read and register_write.
6354 * gdbarch.h, gdbarch.c: Regenerate.
6355 * regcache.c (init_regcache_descr): Update.
6356 (read_register_gen): Update.
6357 (write_register_gen): Update.
6358 (supply_register): Update comment.
6360 * sh-tdep.c (sh_gdbarch_init): Update.
6361 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6362 `regcache' and `gdbarch' parameters. Make `buffer' a void
6363 pointer. Update code.
6364 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6365 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6366 void pointer. Update code.
6367 (sh64_register_write): Delete.
6368 (sh4_register_read): Delete.
6369 (sh64_register_read): Delete.
6370 (sh4_register_write): Delete.
6371 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6372 void pointer, `to' parameter a void pointer.
6373 (sh_sh64_register_convert_to_raw): Ditto.
6375 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6377 * mips-tdep.c (mips_register_virtual_type): Use architecture
6378 invariant return values.
6380 2002-08-01 Andrew Cagney <cagney@redhat.com>
6382 * linux-proc.c: Include "gdb_string.h".
6383 * Makefile.in (linux-proc.o): Update dependency list.
6385 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6387 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6390 2002-08-01 Grace Sainsbury <graces@redhat.com>
6392 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6393 to_insert_watchpoint, to_remove_watchpoint,
6394 to_stopped_by_watchpoint, to_stopped_data_address,
6395 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6396 target vecctor. Define their corresponding macros so they call
6399 * target.c: Add default and debug versions of for
6400 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6401 to_insert_watchpoint, to_remove_watchpoint,
6402 to_stopped_by_watchpoint, to_stopped_data_address,
6403 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6405 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6407 * mips-tdep.c (mips_register_virtual_type): New function.
6408 (mips_gdbarch_init): Register mips_register_virtual_type()
6409 with gdbarch machinery.
6410 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6411 this file instead of tm-bigmips.h.
6412 (MIPS_REGSIZE): Delete this macro.
6413 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6414 multiarch version in mips-tdep.c will be found.
6416 2002-08-01 Andrew Cagney <cagney@redhat.com>
6418 * NEWS: Menion that CHILL has been made obsolete.
6420 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6421 * stabsread.c (read_range_type): Ditto.
6422 * gdbtypes.h: Ditto.
6423 * language.c (binop_type_check): Ditto.
6424 (binop_result_type): Ditto.
6425 (integral_type): Ditto.
6426 (character_type): Ditto.
6427 (string_type): Ditto.
6428 (boolean_type): Ditto.
6429 (structured_type): Ditto.
6430 (lang_bool_type): Ditto.
6431 (binop_type_check): Ditto.
6432 * language.h (_LANG_chill): Ditto.
6433 * dwarfread.c (set_cu_language): Ditto.
6434 * dwarfread.c (CHILL_PRODUCER): Ditto.
6435 * dwarfread.c (handle_producer): Ditto.
6436 * expression.h (enum exp_opcode): Ditto.
6437 * eval.c: Ditto for comments.
6438 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6439 * expprint.c (print_subexp): Ditto.
6440 (print_subexp): Ditto.
6441 * valops.c (value_cast): Ditto.
6442 (search_struct_field): Ditto.
6443 * value.h (COERCE_VARYING_ARRAY): Ditto.
6444 * symfile.c (init_filename_language_table): Ditto.
6445 (add_psymbol_with_dem_name_to_list): Ditto.
6446 * valarith.c (value_binop): Ditto.
6448 * valops.c (value_slice): Ditto.
6449 * symtab.h (union language_specific): Ditto.
6450 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6451 (SYMBOL_DEMANGLED_NAME): Ditto.
6452 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6453 * defs.h (enum language): Ditto.
6454 * symtab.c (got_symtab): Ditto.
6455 * utils.c (fprintf_symbol_filtered): Ditto.
6457 * ch-typeprint.c: Make file obsolete.
6458 * ch-valprint.c: Make file obsolete.
6459 * ch-lang.h: Make file obsolete.
6460 * ch-exp.c: Make file obsolete.
6461 * ch-lang.c: Make file obsolete.
6463 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6465 (TARGET_FLAGS_TO_PASS): Ditto.
6466 (CHILLFLAGS): Obsolete.
6468 (CHILL_FOR_TARGET): Obsolete.
6469 (CHILL_LIB): Obsolete.
6470 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6472 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6473 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6475 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6478 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6480 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6481 This does not change anything at the moment, but will be helpful
6482 later when full Ada support is integrated.
6484 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6486 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6489 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6491 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6492 and save it in a local variable. Use variable in later test.
6494 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6496 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6497 test. (Thanks to Daniel Jacobowitz.)
6499 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6501 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6502 (mips_abi_strings): Add "n64".
6503 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6505 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6507 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6508 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6510 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6512 * utils.c (host_pointer_to_address, address_to_host_pointer):
6513 Use gdb_assert() instead of explicit call to internal_error().
6515 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6517 * Makefile.in (rs6000-nat.o): Update dependencies.
6519 From Nicholas Duffek:
6520 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6521 (aix-thread.o): New rule.
6522 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6523 * config/powerpc/aix432.mh: New file.
6525 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6527 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6528 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6529 (fetch_core_registers, ppc_linux_supply_gregset)
6530 (ppc_linux_supply_fpregset): New functions.
6531 (ppc_linux_regset_core_fns): New.
6532 (_initialize_ppc_linux_tdep): Call add_core_fns.
6533 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6534 and ppc_linux_supply_gregset.
6535 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6536 (supply_fpregset): Call ppc_linux_supply_fpregset.
6537 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6539 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6541 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6543 * symtab.c (lookup_symbol): Demangle before lowercasing.
6545 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6547 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6549 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6550 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6551 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6552 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6554 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6555 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6556 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6557 (avr-tdep.o, mon960-rom.o): Ditto.
6558 (aout_stabs_gnu_h): Define.
6559 (symtab_h): Remove $(gdb_obstack_h).
6561 2002-07-30 Jim Blandy <jimb@redhat.com>
6563 Patch from David Carlton <carlton@math.stanford.edu>:
6564 * gdbinit.in: Move the `dir' commands that add GDB's own source
6565 directory to the search path to the end, so that the `gdb' source
6566 directory will be searched first.
6568 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6570 * gdb_obstack.h: New file.
6571 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6572 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6573 * objfiles.h: Include "gdb_obstack.h".
6574 * Makefile.in (gdb_obstack_h): Define.
6575 (symtab_h): Add $(gdb_obstack_h).
6576 (objfiles_h): Add $(gdb_obstack_h).
6578 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6579 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6580 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6581 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6582 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6583 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6584 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6585 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6587 * Makefile.in (bcache.o): Update dependencies.
6588 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6589 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6590 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6591 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6592 (stabsread.o, symfile.o, symmisc.o): Ditto.
6593 (symtab.o, typeprint.o, macroexp.o): Ditto.
6594 (macrotab.o, mdebugread.o): Ditto.
6595 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6596 (coff_ecoff_h, aout_aout64_h): Define.
6597 (aout_stabs_gnu_h, libaout_h): Define.
6599 2002-07-29 Andrew Cagney <cagney@redhat.com>
6601 * regcache.c (struct regcache_descr): Rename nr_registers to
6602 nr_cooked_registers. Revise comments describing the structure
6604 (init_regcache_descr): Update.
6605 (init_legacy_regcache_descr): Update.
6606 (read_register_gen, write_register_gen): When a cooked register in
6607 the raw register range, directly access the value from the raw
6610 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6612 * z8k-tdep.c: Do not include "obstack.h".
6613 * h8300-tdep.c, h8500-tdep.c: Ditto.
6614 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6615 * valprint.c, v850-tdep.c: Ditto.
6616 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6617 * mn10200-tdep.c: Ditto.
6619 * Makefile.in (z8k-tdep.o): Update dependencies.
6620 (m68hc11-tdep.o, valprint.o): Ditto.
6621 (v850-tdep.o, d10v-tdep.o): Ditto.
6622 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6623 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6624 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6625 (sh_opc_h, gdb_sim_sh_h): Define.
6626 (elf_sh_h, elf_bfd_h): Define.
6627 (opcode_m68hc11_h): Define.
6628 (OPCODES_SRC, OPCODES_DIR): define.
6629 (OPCODES): Use $(OPCODES_DIR).
6630 (gdb_sim_d10v_h): Rename sim_d10v_h.
6631 (gdb_sim_arm_h): Rename sim_arm_h.
6633 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6635 * utils.c (host_pointer_to_address, address_to_host_pointer):
6636 Change internal_error() message to indicate function responsible
6639 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6641 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6642 calls to local_hex_string_custom().
6644 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6646 * irix5-nat.c: Move IRIX shared library support from here...
6647 * solib-irix.c: ...to here. Revised substantially to work with
6648 generic solib framework.
6650 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6651 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6652 * mips-irix-tdep.c: New file.
6654 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6655 (mips-irix-tdep.o, solib-irix.o): New rules.
6656 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6658 * config/mips/irix6.mt (TDEPFILES): Likewise.
6659 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6661 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6663 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6664 disabled (via ``#if 0'') includes.
6666 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6668 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6669 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6670 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6671 Add support for the fpscr register.
6672 * rs6000-nat.c (regmap, fetch_inferior_registers)
6673 (store_inferior_registers, fetch_core_registers): Likewise.
6675 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6677 * rs6000-nat.c (language.h): Include.
6678 (special_regs): Delete this array.
6679 (regmap): New function.
6680 (fetch_register, store_register): Use regmap() to map gdb
6681 register numbers to ptrace register numbers. Also, use
6682 outputs from regmap() to make decisions regarding type of
6683 ptrace() call to make. In particular, don't compare against
6684 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6685 (fetch_inferior_registers, store_inferior_registers): Where
6686 possible, obtain register numbers from tdep struct. Don't
6687 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6688 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6689 (LAST_UISA_SP_REGNUM): Delete.
6691 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6693 * rs6000-nat.c (ppc-tdep.h): Include.
6694 (fetch_registers, store_register, fetch_core_registers): Don't
6695 access registers[] directly. Instead, use supply_register() or
6696 regcache_collect() as appropriate.
6697 (find_toc_address): Format hex address with local_hex_string().
6699 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6701 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6704 2002-07-24 Tom Tromey <tromey@redhat.com>
6706 * jv-exp.y: Marked all strings with _().
6707 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6709 (MethodInvocation, CastExpression, parse_number, yyerror,
6710 java_type_from_name, push_expression_name, yylex): Typo fixes.
6712 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6714 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6715 (tee_file_flush, tee_file_write, tee_file_fputs)
6716 (tee_file_isatty): New.
6717 * ui-file.h (tee_file_new): Add prototype.
6719 2002-07-24 Aidan Skinner <aidan@velvet.net>
6721 * ada-lang.c: Change k&r style function definitions to prototyped
6723 * ada-typeprint.c: Change k&r style function definitions to prototyped
6725 * ada-valprint.c: Change k&r style function definitions to prototyped
6728 2002-07-24 Andrew Cagney <cagney@redhat.com>
6730 * README: Remove reference to remote-bug.
6731 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6733 (m88k-nat.o): Delete rule.
6734 (m88k-tdep.o): Delete rule.
6735 (remote-bug.o): Delete rule.
6736 * MAINTAINERS: Mark as obsolete.
6737 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6738 * m88k-tdep.c: Make file obsolete.
6739 * config/m88k/m88k.mh: Ditto.
6740 * config/m88k/delta88v4.mh: Ditto.
6741 * config/m88k/delta88v4.mt: Ditto.
6742 * config/m88k/delta88.mt: Ditto.
6743 * config/m88k/delta88.mh: Ditto.
6744 * remote-bug.c: Ditto.
6745 * config/m88k/tm-delta88.h: Ditto.
6746 * config/m88k/nm-delta88v4.h: Ditto.
6747 * config/m88k/xm-delta88.h: Ditto.
6748 * config/m88k/xm-dgux.h: Ditto.
6749 * config/m88k/tm-m88k.h: Ditto.
6750 * config/m88k/nm-m88k.h: Ditto.
6751 * config/m88k/tm-delta88v4.h: Ditto.
6752 * m88k-nat.c: Ditto.
6753 * cxux-nat.c: Ditto.
6754 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6755 and m88*-*-* obsolete.
6756 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6759 2002-07-24 Andrew Cagney <cagney@redhat.com>
6761 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6762 constant. Same for local pointer variables.
6763 (extract_signed_integer): Ditto.
6764 * defs.h (extract_unsigned_integer): Update.
6765 (extract_signed_integer): Update.
6767 2002-07-24 Andrew Cagney <cagney@redhat.com>
6769 * regcache.c (regcache_raw_write): Change buf parameter to a
6770 constant void pointer.
6771 (regcache_raw_read): Change buf parameter to a void pointer.
6772 (legacy_write_register_gen): Change myaddr parameter a constant
6774 (supply_register): Change val parameter to a const void pointer.
6775 * regcache.h (regcache_raw_write): Update declaration.
6776 (regcache_raw_read): Update declaration.
6777 (supply_register): Update declaration.
6779 2002-07-24 Tom Tromey <tromey@redhat.com>
6781 * defs.h (gdb_readline_wrapper): Declare.
6782 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6783 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6784 * top.c (gdb_readline_wrapper): New function.
6785 (command_line_input): Use it.
6787 2002-07-24 Andrew Cagney <cagney@redhat.com>
6789 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6790 regcache_read and regcache_write.
6791 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6792 * regcache.c: Update.
6793 * sh-tdep.c (sh64_push_arguments): Update comment.
6794 (sh_pseudo_register_read): Update.
6795 (sh_pseudo_register_write): Update.
6796 (sh4_register_read): Update.
6797 (sh4_register_write): Update.
6798 (sh64_pseudo_register_read): Update.
6799 (sh64_pseudo_register_write): Update.
6800 (sh64_register_read): Update.
6801 (sh64_register_write): Update.
6802 * i386-tdep.c (i386_extract_return_value): Update.
6803 (i386_extract_struct_value_address): Update.
6804 (i386_extract_return_value): Update.
6805 * blockframe.c (generic_read_register_dummy): Update.
6806 (generic_call_dummy_register_unwind): Update
6807 * infrun.c (write_inferior_status_register): Update.
6809 2002-07-23 Jim Blandy <jimb@redhat.com>
6811 * parser-defs.h (expression_context_pc): Make this extern.
6812 (Thanks to Michael Snyder.)
6814 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6816 GDB 5.2.1 released from 5.2 branch.
6817 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6818 * README: Update to mention 5.2.1.
6820 2002-07-23 Mark Salter <msalter@redhat.com>
6822 * remote.c (remote_read_bytes): Fix check for error.
6824 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6826 * aix-thread.c (language.h): Include.
6827 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6828 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6829 Print newlines at end of debug messages.
6830 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6831 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6833 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6835 * aix-thread.c (ppc-tdep.h): Include.
6836 (special_register_p): New function.
6837 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6838 (store_regs_user_thread): Use register number information from
6839 gdbarch_tdep struct instead of hardcoded offsets relative to
6840 FIRST_UISA_SP_REGNUM.
6841 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6842 special_register_p() instead of using FPLAST_REGNUM and
6843 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6844 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6845 will be MQ's register number.
6847 2002-07-22 Michael Snyder <msnyder@redhat.com>
6849 * aix-thread.c (ops): Rename to aix_thread_ops.
6850 (base_ops): Rename to base_target.
6851 (ops_attach): Rename to aix_thread_attach.
6852 (ops_detach): Rename to aix_thread_detach.
6853 (ops_resume): Rename to aix_thread_detach.
6854 (ops_wait): Rename to aix_thread_wait.
6855 (ops_kill): Rename to aix_thread_kill.
6856 (init_ops): Rename to init_aix_thread_ops.
6857 (ops_fetch_register): Rename to aix_thread_fetch_register.
6858 (ops_store_register): Rename to aix_thread_store_register.
6859 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6860 (ops_thread_alive): Rename to aix_thread_thread_alive.
6861 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6862 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6863 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6864 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6865 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6866 (store_regs_lib): Rename to store_regs_user_thread.
6867 (store_regs_kern): Rename to store_regs_kernel_thread.
6869 2002-07-22 Michael Snyder <msnyder@redhat.com>
6871 * aix-thread.c (ops_prepare_to_store): Eliminate.
6872 (init_ops): Don't initialize ops.prepare_to_store.
6873 (store_regs_kern): Pre-fetch register buffers from child,
6874 because some registers may not be in the cache. Copy
6875 regs from register cache only if they are cached.
6876 (store_regs_lib): Copy regs from register cache only
6878 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6879 fill_gprs64): Ditto.
6881 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6883 * aix-thread.c (gdb_assert.h): Include.
6884 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6885 register sizes (from register cache) match size of buffer holding
6887 (fill_sprs32): Change parameter types to match those in the ptrace()
6889 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6890 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6892 2002-07-22 Michael Snyder <msnyder@redhat.com>
6894 * aix-thread.c (supply_sprs64): Cosmetic change.
6895 (supply_sprs32): Cosmetic change.
6896 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6897 (fill_sprs64): Use regcache_collect instead of read_register.
6898 (store_regs_lib): Use regcache_collect instead of
6899 read_register. Use fill_sprs32 instead of fill_sprs64,
6900 if debugging a 32-bit architecture.
6901 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6902 out of the register cache, instead of passing a pointer into
6903 the register cache directly to ptrace. Use regcache_collect
6904 insteaad of read_register.
6905 (ops_prepare_to_store): Use target_read_registers instead
6906 of read_register_bytes.
6908 2002-07-20 Aidan Skinner <aidan@velvet.net>
6910 * MAINTAINERS: Add self under write after approval.
6912 2002-07-20 Aidan Skinner <aidan@velvet.net>
6914 * ada-tasks.c: Change k&r style function definitions to prototyped
6917 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6919 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6920 * x86-64-tdep.c: Include "objfiles.h".
6921 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6922 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6924 2002-07-17 Michal Ludvig <michal@suse.cz>
6926 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6927 (update_context): Initialise cfa variable.
6929 2002-07-17 Michael Snyder <msnyder@redhat.com>
6931 * aix-thread.c: Shorten some long lines.
6932 Bring comments into line with code spec.
6934 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6936 * infrun.c: Re-indent using gdb_indent.sh.
6938 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6940 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6941 Leave the indentation temporarily untouched, to minimize the diffs.
6943 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6945 * stabsread.c: Make os9k sections of the code obsolete,
6947 * stabsread.h: Make os9k sections of the code obsolete.
6949 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6951 * linux-low.c (regsets_store_inferior_registers): Add free()
6952 at the end of a loop to prevent memory leak.
6953 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6954 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6955 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6957 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6959 2002-07-17 Jim Blandy <jimb@redhat.com>
6961 * macrocmd.c (info_macro_command): Remove newline from error
6964 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6966 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6967 (sh_gdbarch_init): Use it for sh-dsp.
6969 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6971 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6972 64-bit DWARF2 format.
6974 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6976 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6977 <sys/proc.h> when not available.
6979 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6981 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6982 * stabsread.c: Make os9k sections of the code obsolete.
6983 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6984 * config/i386/i386os9k.mt: Make file obsolete.
6985 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6986 (COMMON_OBS): Remove os9kread.o
6987 (SFILES): Remove os9kread.c.
6988 (os9kread.o, remote-os9k.o): Make target obsolete.
6989 * remote-os9k.c: Make file obsolete.
6990 * os9kread.c: Make file obsolete.
6993 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6995 * NEWS: Mention that the FR30 has been made obsolete.
6996 * fr30-tdep.c: Make file obsolete.
6997 * config/fr30/tm-fr30.h: Ditto.
6998 * config/fr30/fr30.mt: Ditto.
6999 * configure.tgt: Make fr30-*-elf obsolete.
7000 * MAINTAINERS: Make fr30-elf obsolete.
7002 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7004 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7005 found is not inside a section.
7007 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7009 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7011 (pdc_realloc): Use xrealloc() instead of realloc().
7013 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7015 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7016 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7017 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7020 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7022 * aix-thread.c (ptrace_check): Eliminate goto.
7023 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7026 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7028 * aix-thread.c (gdbcmd.h): Include.
7029 (DEBUG, DBG, DBG2, dbg): Eliminate.
7030 (debug_aix_thread): New static global.
7031 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7032 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7033 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7034 invocations to DBG and DBG2 macros to test against
7035 ``debug_aix_thread'' and call fprintf_unfiltered().
7036 (_initialize_aix_thread): Add new command "set debug aix-thread".
7038 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7040 From Gerhard Tonn <TON@de.ibm.com>:
7041 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7042 instead of supply_register.
7044 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7046 * dwarf2cfi.c: Include "gdb_assert.h".
7047 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7049 (update_context): Do not use __func__. Add missing ``break''.
7050 (update_context): Do not use __func__.
7052 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7054 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7055 and its setting. Set gdbarch instruction printing functions
7056 directly. For non-rs6000 case use new function
7057 gdb_print_insn_powerpc.
7058 (gdb_print_insn_powerpc): New function.
7060 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7062 * NEWS: Mention that the d30v has been marked obsolete.
7063 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7064 * configure.tgt: Mark d30v-*-* as obsolete.
7065 * d30v-tdep.c: Mark file as obsolete.
7066 * config/d30v/d30v.mt: Ditto.
7067 * config/d30v/tm-d30v.h: Ditto.
7069 2002-07-13 Aidan Skinner <aidan@velvet.net>
7071 * ada-tasks.c (add_task_entry): replace calls to
7072 malloc() with xmalloc
7073 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7075 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7076 ada_finish_decode_line_1, all_sals_for_line
7077 ada_breakpoint_rewrite): replace calls to free() with xfree()
7079 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7081 From Nicholas Duffek (with minor changes by Martin Hunt,
7082 Louis Hamilton, and Kevin Buettner):
7083 * aix-thread.c: New file.
7085 2002-07-12 Petr Sorfa <petrs@caldera.com>
7087 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7088 complaint for invalid attribute class or form.
7089 (read_func_scope): DW_AT_frame_base
7090 better handling of DW_AT_block*.
7091 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7092 better handling of DW_AT_block*.
7093 (read_common_block): DW_AT_location
7094 better handling of DW_AT_block*.
7095 (read_partial_die): DW_AT_location better handling
7097 (new_symbol): DW_AT_external better handling of
7098 DW_AT_block*. Proper initialization of variable
7100 (attr_form_is_block): New function that returns true
7101 if the attribute's form is of DW_FORM_block*.
7103 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7105 * valops.c (find_method_list): Remove comment about
7106 removed STATIC_MEMFUNCP argument.
7107 (value_find_oload_method_list): Likewise.
7109 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7111 From Nicholas Duffek:
7112 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7113 target_new_objfile_hook.
7115 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7117 From Nicholas Duffek:
7118 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7121 2002-07-12 Andrew Cagney <cagney@redhat.com>
7123 * MAINTAINERS: Mention --enable-sim-build-warnings.
7124 (m68hc11-elf): Disable sim build warnings.
7125 (m32r-elf): Mark as broken obsolete candidate.
7126 (x86_64-linux-gnu): Mark as buildable with -Werror.
7127 (arm-elf): Change -w to ``,'' which enables warnings but not
7130 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7132 * bcache.h: Update copyright.
7133 (struct bstring, struct bcache): Move definition to "bcache.c".
7134 Replaced by opaque declaration.
7135 (bcache_xfree): Replace free_bcache.
7136 (bcache_xmalloc, bcache_memory_used): Declare.
7138 * bcache.c: Update copyright.
7139 (struct bstring, struct bcache): Moved to here from "bcache.h".
7141 (bcache_xmalloc, bcache_memory_used): New functions.
7142 (bcache_xfree): Replace function free_bcache.
7144 * Makefile.in (objfiles.o): Add $(bcache_h).
7145 (objfiles_h): Remove $(bcache_h).
7146 (symfile.o): Add $(bcache_h).
7148 * symmisc.c: Update copyright.
7149 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7150 (print_objfile_statistics): Use bcache_memory_used.
7152 * symfile.c: Include "bcache.h".
7153 (reread_symbols): Use bcache_xfree.
7154 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7155 (add_psymbol_to_list): Pass psymbol_cache by value.
7156 (add_psymbol_with_dem_name_to_list): Ditto.
7158 * objfiles.h: Update copyright.
7159 (struct bcache): Declare opaque. Do not include "bcache.h".
7160 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7162 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7164 * objfiles.c: Include "bcache.h". Update copyright.
7165 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7167 (free_objfile): Use bcache_xfree.
7169 2002-07-11 Grace Sainsbury <graces@redhat.com>
7171 * monitor.c (monitor_fetch_register): Make name a constant.
7172 (monitor_store_register): Same.
7174 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7176 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7177 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7178 (finish_block) For non-function blocks, hash the symbol table. For
7179 function blocks, mark the symbol table as unhashed.
7180 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7181 (msymbol_hash_iw): Likewise.
7182 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7184 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7185 (lookup_minimal_symbol): Likewise for both.
7186 * symtab.h (struct block): Add `hashtable' flag. Comment the
7188 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7189 (ALL_BLOCK_SYMBOLS): Update.
7190 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7191 (struct symbol): Add `hash_next' pointer.
7192 * symtab.c (lookup_block_symbol): Search using the hash table when
7194 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7195 (search_symbols, find_addr_symbol): Likewise.
7197 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7198 (read_dst_symtab): Likewise.
7199 * jv-lang.c (get_java_class_symtab): Likewise.
7200 * mdebugread.c: Include "gdb_assert.h".
7201 (shrink_block): Assert that the block being modified is not hashed.
7202 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7203 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7205 (dump_symtab): Recognize hashed blocks.
7206 * printcmd.c (print_frame_args): Assert that function blocks do not
7207 have hashed symbol tables.
7208 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7209 (fill_in_ada_prototype, debug_print_block): Likewise.
7210 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7212 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7214 * stack.c (print_frame): Use result of frame_address_in_block()
7215 instead of fi->pc when evaluating symbols.
7216 (backtrace_command_1): Ditto.
7218 2002-07-11 Andrew Cagney <cagney@redhat.com>
7220 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7223 * arm-tdep.c (arm_register_name): Make return type constant.
7225 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7227 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7229 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7230 * s390-tdep.c (s390_fp_regnum): Ditto.
7231 (s390_read_fp): Ditto.
7232 (s390_pop_frame): Ditto.
7233 (_initialize_s390_tdep): Ditto.
7234 * remote.c (get_remote_state): Ditto.
7235 * procfs.c (mappingflags): Ditto.
7236 * memattr.c (_initialize_mem): Ditto.
7237 * mcore-tdep.c (mcore_pop_frame): Ditto.
7238 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7239 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7240 * language.c (set_case_str): Ditto.
7241 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7242 * frv-tdep.c (new_variant): Ditto.
7243 (frv_stopped_data_address): Ditto.
7244 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7245 (context_alloc): Ditto.
7246 (frame_state_alloc): Ditto.
7247 (unwind_tmp_obstack_init): Ditto.
7248 (unwind_tmp_obstack_free): Ditto.
7249 (cfi_read_fp): Ditto.
7250 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7251 (cris_pop_frame): Ditto.
7252 * c-lang.c (scanning_macro_expansion): Ditto.
7253 (finished_macro_expansion): Ditto.
7254 (c_preprocess_and_parse): Ditto.
7255 * gdbarch.sh: Ditto.
7256 * gdbarch.h, gdbarch.c: Regenerate.
7257 * config/mn10200/tm-mn10200.h: Adjust indentation.
7258 * target.c: Adjust indentation.
7259 * symtab.h: Adjust indentation.
7260 * stabsread.h: Adjust indentation.
7261 * remote-es.c: Adjust indentation.
7262 * os9kread.c: Adjust indentation.
7264 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7266 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7267 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7269 2002-07-10 Grace Sainsbury <graces@redhat.com>
7271 * NEWS: Mention m68k, mcore multi-arching.
7272 * MAINTAINERS: Change status of m68k, mcore to reflect
7275 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7277 * valops.c (find_overload_match): Free oload_syms.
7279 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7281 Define HAVE_SYS_PROC_H if sys/proc.h exists
7282 * configure.in: Add check for sys/proc.h
7283 * config.in: Regenerate.
7284 * configure: Regenerate.
7286 2002-07-09 Grace Sainsbury <graces@redhat.com>
7288 * config/m68k/tm-m68k.h: Remove macros wrapped in
7289 #if !GDB_MULTI_ARCH.
7291 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7293 * config.in, configure: Regenerate.
7295 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7297 * dwarf2cfi.c: Include "gcore.h".
7298 (execute_stack_op): Fix implementation of the
7299 DW_OP_deref and DW_OP_deref_size operators by letting do their
7300 lookup in the target.
7302 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7304 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7305 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7308 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7310 Fix PR gdb/595, gdb/602
7311 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7312 Don't call value_cast, just read the vtable pointer; update comments
7315 2002-07-05 Grace Sainsbury <graces@redhat.com>
7317 * config/mcore/tm-mcore.h: Remove file.
7318 * config/mcore/mcore.mt: Remove definition of TM_FILE
7319 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7321 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7323 * i386bsd-tdep.c: Include "gdb_string.h".
7325 2002-07-04 Grace Sainsbury <graces@redhat.com>
7327 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7328 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7330 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7331 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7332 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7333 (RETVAL_REGNUM): Move macros from tm-mcore.h
7334 (mcore_reg_struct_has_addr): New function.
7335 (mcore_gdbarch_init): Added initializations for the macros removed
7338 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7340 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7341 traditonal string branding within the ELF header.
7343 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7345 * symtab.c (remove_params): New function.
7346 (make_symbol_overload_list): Use it instead of cplus_demangle.
7347 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7349 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7351 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7353 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7355 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7356 and tdep->sigtramp_end.
7357 * i386obsd-nat.c: New file.
7358 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7360 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7361 Don't call get_current_frame().
7363 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7365 * i386-nat.c (child_post_startup_inferior): New function
7366 calling i386_cleanup_dregs if
7367 I386_USE_GENERIC_WATCHPOINTS is defined.
7368 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7369 conditional to acknowledge that i386-nat.c has its
7370 own child_post_startup_inferior function.
7372 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7374 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7375 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7376 instead of MAX_REGISTER_RAW_SIZE.
7377 (i386_extract_return_value, i386_extract_struct_value_address):
7378 Convert to use regcache.
7379 (i386_gdbarch_init): Set max_register_raw_size and
7380 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7381 Set extract_return_value and extract_struct_value_address instead
7382 of their deprecated variants.
7384 Convert i386 target to generic dummy frames.
7385 * i386-tdep.c: Include "symfile.h".
7386 (i386_frameless_signal_p): Consider a function to be frameless if
7387 the pc points at the first instruction of the function.
7388 (i386_frame_chain): Handle (generic) call dummies.
7389 (i386_frame_saved_pc): Likewise.
7390 (i386_frame_init_saved_regs): Remove code dealing with call
7391 dummies on the stack.
7392 (i386_push_dummy_frame): Removed.
7393 (i386_call_dummy_words): Removed.
7394 (i386_fix_call_dummy): Removed.
7395 (i386_push_return_address): New function.
7396 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7397 parameter, and don't call get_current_frame.
7398 (i386_pop_frame): New function.
7399 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7400 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7401 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7402 call_dummy_length to 0, set call_dummy_words to NULL, set
7403 sizeof_call_dummy_words to 0, set fix_call_dummy to
7404 generic_fix_call_dummy, set pc_in_call_dummy to
7405 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7406 generic_push_dummy_frame, set push_return_address to
7407 i386_push_return_address and set frame_chain_valid to
7408 generic_file_frame_chain_valid.
7410 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7412 * gdbarch.sh (struct regcache): Add opaque declaration.
7413 (EXTRACT_RETURN_VALUE): New architecture method.
7414 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7415 * gdbarch.h, gdbarch.c: Regenerate.
7416 * arch-utils.c (legacy_extract_return_value): New function.
7417 * arch-utils.h (legacy_extract_return_value): Declare.
7418 * values.c (value_being_returned): Re-enable code handling
7419 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7420 deprecated_grub_regcache_for_registers call to block handling
7421 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7422 (EXTRACT_RETURN_VALUE): Do not define.
7424 2002-07-03 Grace Sainsbury <graces@redhat.com>
7426 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7427 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7428 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7429 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7430 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7431 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7432 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7433 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7434 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7435 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7436 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7437 argument so the function fits the prototype in the architecture
7439 (mcore_pop_frame): Remove argument so the function fits the
7440 prototype. Use get_current_frame instead of the argument.
7441 (mcore_push_arguments): Change type of struct_return so the
7442 function can be used in the architecture vector.
7443 (mcore_store_struct_return): Add.
7444 (mcore_frame_init_saved_regs): Add.
7445 (mcore_gdbarch_init): Add function calls to replace the macros
7446 removed from tm-mcore.h
7448 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7450 * infcmd.c (print_return_value): Remove compatibility code calling
7451 deprecated_grub_regcache_for_registers.
7453 * values.c: Include "regcache.h".
7454 (value_being_returned): Update. Use
7455 deprecated_grub_regcache_for_registers to extract the register
7457 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7458 ``struct regcache''.
7459 * Makefile.in (values.o): Add dependency on $(regcache_h).
7461 * inferior.h (run_stack_dummy): Change type of second parameter to
7462 a ``struct regcache''.
7463 * valops.c (hand_function_call): Change type of retbuf to ``struct
7464 regcache''. Allocate using regcache_xmalloc, clean using
7465 make_cleanup_regcache_xfree.
7466 * infcmd.c (run_stack_dummy): Update. Use
7467 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7469 * regcache.c (do_regcache_xfree): New function.
7470 (make_cleanup_regcache_xfree): New function.
7471 * regcache.h (make_cleanup_regcache_xfree): Declare.
7473 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7475 * event-top.c (command_line_handler): Don't read past
7476 beginning of buffer.
7478 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7480 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7482 (varobj_create): Store frame_id for root.
7483 (varobj_gen_name): Use xasprintf.
7484 (varobj_update): Save and restore frame using get_frame_id() and
7486 (create_child): Use xasprintf.
7487 (new_root_variable): Initialize frame_id.
7488 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7489 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7490 to prevent memory leak.
7492 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7494 * valops.c (hand_function_call): Move declaration of retbuf to
7495 start of function, allocate using malloc, add a cleanup but before
7496 the inf_status cleanup, cleanup the buffer. Rename local variable
7497 old_chain to inf_status_cleanup.
7499 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7501 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7503 * cli/cli-decode.c (cmd_func_p): New function.
7504 (cmd_func): New function.
7506 * command.h: Add cmd_func() and cmd_func_p().
7508 2002-07-03 Grace Sainsbury <graces@redhat.com>
7510 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7511 (REGISTER_SIZE): Remove.
7512 (MAX_REGISTER_RAW_SIZE): Remove.
7513 (REGISTER_VIRTUAL_TYPE): Remove.
7514 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7515 (REGISTER_NAME): Remove.
7516 (USE_GENERIC_DUMMY_FRAMES): Remove.
7517 (CALL_DUMMY): Remove.
7518 (CALL_DUMMY_START_OFFSET): Remove.
7519 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7520 (CALL_DUMMY_LOCATION): Remove.
7521 (FIX_CALL_DUMMY): Remove.
7522 (CALL_DUMMY_ADDRESS): Remove.
7523 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7524 (SAVE_DUMMY_FRAME_TOS): Remove.
7525 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7526 (mcore_register_virtual_type): New function.
7527 (mcore_register_byte): New function.
7528 (mcore_register_size): New function.
7529 (mcore_register_name): New function.
7530 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7531 macros removed from tm-mcore.h.
7532 (mcore_dump_tdep): Add.
7533 (_initialize_mcore_tdep): Add gdbarch_register call.
7535 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7537 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7538 frameless_look_for_prologue, such that we actually call this
7541 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7543 * frame.h (frame_address_in_block): New function.
7545 * blockframe.c (frame_address_in_block): New function extracted
7546 from get_frame_block().
7547 (get_frame_block): Use frame_address_in_block().
7548 (block_innermost_frame): Use frame_address_in_block() to match
7549 the frame pc address against the block boundaries rather than
7550 the frame pc directly. This prevents a failure when a frame pc
7551 is actually a return-address pointing immediately after the end
7554 2002-07-02 Grace Sainsbury <graces@redhat.com>
7556 * MAINTAINERS: Add self under write after approval.
7558 2002-07-02 Grace Sainsbury <graces@redhat.com>
7560 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7561 used in architecture vector. The default is
7562 m68k_local_breakpoint_from_pc.
7563 (m68k_local_breakpoint_from_pc): Add.
7564 (enum): Add register numbers from tm-m68k.h.
7565 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7567 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7568 GDB_MULTI_ARCH_PARTIAL.
7569 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7570 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7572 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7573 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7574 to enum in m68k-tdep.c
7576 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7578 * solib-osf.c (open_map): Compute the list of shared libraries
7579 loaded by the inferior, rather than the list of libraries loaded
7580 by GDB itself. Otherwise, GDB ends up reading the symbols from
7581 the wrong shared libraries...
7583 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7585 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7586 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7588 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7590 (FRAMELESS_SIGNAL): Remove function.
7591 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7592 i386_linux_saved_pc_after_call): Removed.
7593 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7594 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7595 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7597 * i386-tdep.c (i386_frameless_signal_p): New function.
7598 (i386_frame_chain): Deal with frameless signals.
7599 (i386_sigtramp_saved_sp): New function.
7600 (i386_frame_saved_pc): Deal with frameless signals.
7601 (i386_saved_pc_after_call): Make sure the correct value is
7602 returned just after entry into a sigtramp.
7603 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7604 i386fbsd4_sc_sp_offset): New variables.
7605 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7606 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7607 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7608 similiar to what we already did for sc_pc_offset.
7609 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7612 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7614 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7616 * config/i386/tm-x86-64linux.h: New.
7617 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7619 * config/i386/nm-x86-64.h: Rename to ...
7620 * config/i386/nm-x86-64linux.h: ... this one.
7621 * config/i386/x86-64linux.mh: Reflect the above change.
7623 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7625 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7626 with sigcontext_addr. Add sc_sp_offset.
7627 (i386bsd_sigtramp_saved_pc): Remove prototype.
7628 (i386bsd_sicontext_addr): Add prototype.
7629 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7630 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7631 (i386_svr4_sigtramp_saved_pc): Removed.
7632 (i386_svr4_sigcontext_addr): New function.
7633 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7634 Initialize tdep->sigcontext_addr instead. Initialize
7635 tdep->sc_pc_offset and tdep->sc_sp_offset.
7636 (i386_gdbarch_init): Likewise.
7637 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7639 (i386bsd_sigtramp_saved_pc): Remove function.
7640 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7641 Initialize tdep->sigcontext_addr instead. Initialize
7643 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7644 of tdep->sigtramp_saved_pc.
7645 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7646 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7649 * i386-tdep.c (i386_frameless_function_invocation,
7650 i386_frame_num_args, i386_frame_init_saved_regs,
7651 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7652 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7653 i386_extract_return_value, i386_store_return_value,
7654 i386_extract_struct_value_address, i386_register_virtual_type,
7655 i386_register_convertible, i386_register_convert_to_virtual,
7656 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7657 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7660 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7662 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7664 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7665 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7666 this macro. Include "value.h".
7668 2002-06-30 Aidan Skinner <aidan@velvet.net>
7670 * ada-exp.tab.c: remove as it's a generated file
7671 * ada-lex.c: remove as it's a generated file
7673 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7675 * config/i386/tm-i386.h (struct frame_info, struct
7676 frame_saved_regs, struct value, struct type): Remove forward
7679 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7680 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7681 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7682 (FILL_FPXREGSET): Define.
7684 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7686 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7687 i[3456]86-*-netbsd* case.
7688 * config/i386/tm-obsd.h: Removed.
7689 * config/i386/obsd.mt: Removed.
7690 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7692 (MH_CFLAGS): Add -DYYDEBUG=0.
7694 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7695 i386nbsd_sc_pc_offset on OpenBSD too.
7697 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7698 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7699 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7701 * i386bsd-tdep.c: Include "arch-utils.h".
7702 (i386bsd_aout_in_solib_call_trampoline): New function.
7703 (i386bsd_init_abi): Set in_solib_call_trampoline to
7704 i386bsd_aout_in_solib_call_trampoline.
7705 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7706 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7708 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7710 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7711 (struct obstack, struct bcache): Add opaque declarations.
7712 * Makefile.in (macrotab_h): Update
7714 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7716 * blockframe.c (generic_find_dummy_frame): Change return type to
7717 ``struct regcache''.
7718 (struct dummy_frame): Replace field ``registers'' with regcache, a
7719 struct regcache object.
7720 (generic_find_dummy_frame): Update.
7721 (generic_push_dummy_frame): Update. Use regcache_xfree,
7722 regcache_xmalloc and regcache_cpy.
7723 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7725 (deprecated_generic_find_dummy_frame): Update.
7726 (generic_read_register_dummy): Update. Use
7727 regcache_read_as_address.
7728 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7729 (generic_get_saved_register): Update. Use regcache_read.
7731 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7733 * Makefile.in (objfiles_h): Add $(bcache_h).
7734 * objfiles.h: Include "bcache.h".
7736 * Makefile.in (symtab_h): Remove $(bcache_h).
7737 * symtab.h: Do not include "bcache.h".
7739 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7741 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7742 generic_func_frame_chain_valid.
7744 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7746 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7747 * config/i386/tm-fbsd.h: Likewise.
7749 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7751 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7752 generic_unwind_get_saved_register.
7754 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7756 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7757 * regcache.c (supply_register): Add missing argument to
7758 register_buffer call.
7760 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7762 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7763 Solaris /bin/grep does not not like it. From Peter Schauer.
7765 2002-06-26 Tom Tromey <tromey@redhat.com>
7767 * command.h (add_setshow_cmd): Declare.
7768 (add_setshow_cmd_full): Declare.
7769 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7770 returns void. Use add_setshow_cmd_full.
7771 (add_setshow_cmd_full): New function.
7772 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7773 (add_setshow_boolean_cmd): Likewise.
7775 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7777 * config/vax/tm-vax.h: Protect from multiple inclusion.
7778 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7779 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7780 * config/vax/tm-vaxbsd.h: ...here. New file.
7781 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7783 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7785 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7786 (BELIEVE_PCC_PROMOTION): Remove.
7787 (AP_REGNUM): Move to...
7788 * config/vax/nm-vax.h: ...here.
7789 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7790 (vax_breakpoint_from_pc): New function.
7791 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7792 and gdbarch_believe_pcc_promotion.
7794 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7796 * Makefile.in (vax_tdep_h): Define.
7797 (vax-tdep.o): Use $(vax_tdep_h).
7798 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7799 (vax_dump_tdep): New function.
7800 (_initialize_vax_tdep): Register vax_dump_tdep.
7801 * vax-tdep.h: Include osabi.h.
7802 (struct gdbarch_tdep): New.
7804 2002-06-26 Andrew Cagney <cagney@redhat.com>
7806 * frame.h (deprecated_generic_find_dummy_frame): Rename
7807 generic_find_dummy_frame.
7808 * blockframe.c (generic_find_dummy_frame): Make static.
7809 (deprecated_generic_find_dummy_frame): New function.
7810 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7811 generic_find_dummy_frame with deprecated_find_dummy_frame.
7812 (sh64_nofp_frame_init_saved_regs): Ditto.
7813 (sh_fp_frame_init_saved_regs): Ditto.
7814 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7815 (s390_frame_chain): Ditto.
7816 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7818 2002-06-26 Grace Sainsbury <graces@redhat.com>
7820 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7821 gdbarch vector are at the top.
7823 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7824 (FRAME_ARGS_ADDRESS): Remove.
7825 (FRAME_LOCALS_ADDRESS): Remove.
7826 (FRAME_NUM_ARGS): Remove.
7827 (FRAME_ARGS_SKIP): Remove.
7828 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7829 (m68k_gdbarch_init): Add gdbarch initializations for macros
7830 undefined in tm-m68k.h
7832 2002-06-26 Grace Sainsbury <graces@redhat.com>
7834 * monitor.h: Add the function regname to monitor_ops
7835 structure. This way NUM_REGS does not have to be a constant.
7836 * monitor.c (monitor_fetch_register): Added support for regname
7837 function. The function is called if the array regnames is NULL.
7838 (monitor_store_register): Same.
7839 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7841 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7842 cpu32bug_cmds.regname to point to new function.
7843 * abug-rom.c (abug_regname): Same as above.
7844 (init_abug_cmds): Same.
7845 * dbug-rom.c (dbug_regname): Same as above.
7846 (init_dbug_cmds): Same.
7847 * remote-est.c (est_regname): Same.
7848 (init_est_cmds): Same.
7849 * rom68k-rom.c (rom68k_regname): Same.
7850 (init_rom68k_cmds): Same.
7852 2002-06-25 Tom Tromey <tromey@redhat.com>
7854 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7856 2002-06-25 Andrew Cagney <cagney@redhat.com>
7858 * infrun.c (stop_registers): Change variable's type to ``struct
7860 (xmalloc_inferior_status): Delete function.
7861 (free_inferior_status): Delete function.
7862 (normal_stop): Use regcache_cpy.
7863 (struct inferior_status): Change type of fields ``stop_registers''
7864 and ``registers'' to ``struct regcache''.
7865 (write_inferior_status_register): Use regcache_write.
7866 (save_inferior_status): Instead of calling
7867 xmalloc_inferior_status, allocate the inf_status buffer directly.
7868 Use regcache_dup_no_passthrough and regcache_dup to save the
7870 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7871 Replace the stop_registers regcache instead of overriding it. Use
7872 regcache_xfree. Instead of calling free_inferior_status, xfree
7873 the buffer directly.
7874 (discard_inferior_status): Use regcache_xfree. Instead of calling
7875 free_inferior_status, xfree the buffer directly.
7876 (build_infrun): Use regcache_xmalloc.
7877 (_initialize_infrun): Delete redundant call to build_infrun.
7879 * Makefile.in (infcmd.o): Add $(regcache_h).
7881 * infcmd.c: Include "regcache.h".
7882 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7883 obtain the address of `stop_registers' register buffer.
7884 (print_return_value): Ditto.
7886 * inferior.h (struct regcache): Add opaque declaration.
7887 (stop_registers): Change variable's declared type to ``struct
7890 2002-06-24 Tom Tromey <tromey@redhat.com>
7892 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7893 * target.c (initialize_targets): Fixed typo in
7894 trust-readonly-sections `show' documentation.
7896 * main.c: Marked all strings with _().
7898 2002-06-24 Don Howard <dhoward@redhat.com>
7900 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7901 that means max CORE_ADDR+1.
7902 (lookup_mem_region): Ditto.
7903 (mem_info_command): Ditto.
7905 2002-06-24 Grace Sainsbury <graces@redhat.com>
7907 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7908 (REGISTER_BYTES_OK): Remove.
7909 (REGISTER_BYTES): Remove.
7910 (STORE_STRUCT_RETURN): Remove.
7911 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7912 (STORE_RETURN_VALUE): Remove.
7913 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7914 (FRAME_CHAIN): Remove.
7915 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7916 (FRAME_SAVED_PC): Remove.
7917 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7918 (m68k_store_struct_return): Add.
7919 (m68k_deprecated_extract_return_value): Add.
7920 (m68k_deprecated_extract_struct_value_address): Add.
7921 (m68k_store_return_value): Add.
7922 (m68k_frame_chain): Add.
7923 (m68k_frameless_function_invocation): Add.
7924 (m68k_frame_saved_pc): Add.
7925 (m68k_gdbarch_init): added set_gdbarch calls for new
7926 functions and deleted macros.
7928 2002-06-23 Tom Tromey <tromey@redhat.com>
7930 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7931 (ALLDEPFILES): Likewise.
7932 (udiheaders): Removed.
7933 (udip2soc.o): Likewise.
7934 (udi2go32.o): Likewise.
7936 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7938 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7940 * infrun.c (_initialize_infrun): Delete unnecessary call to
7943 * regcache.h: Update comments describing the regcache_cpy family
7945 (regcache_save, regcache_restore): Delete declaration.
7946 (regcache_save_no_passthrough): Delete declaration.
7947 (regcache_restore_no_passthrough): Delete declaration.
7948 * regcache.c (regcache_save): Delete function.
7949 (regcache_save_no_passthrough): Delete function.
7950 (regcache_restore): Delete function.
7951 (regcache_restore_no_passthrough): Delete function.
7953 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7955 * config/m68k/tm-m68k.h: Fix typo.
7956 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7957 (m68k_frame_init_saved_regs): Declare.
7959 2002-06-21 Jim Blandy <jimb@redhat.com>
7961 Remove some vestiges of Harris 88k support.
7962 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7963 register numbering quirk.
7964 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7965 odd symbols occurring in Harris 88k ELF targets.
7967 2002-06-21 Tom Tromey <tromey@redhat.com>
7969 * gdb_locale.h: New file.
7970 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7971 (defs_h): Added gdb_locale.h.
7972 * configure, config.in: Rebuilt.
7973 * configure.in (PACKAGE): Define.
7974 * defs.h: Include gdb_locale.h.
7975 * main.c (captured_main): Call setlocale, bindtextdomain,
7978 2002-06-21 Dave Brolley <brolley@redhat.com>
7980 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7981 * config/frv/frv.mt: New file.
7982 * config/frv/tm-frv.h: New file.
7983 * configure.tgt: Support frv-*-*.
7984 * Makefile.in (frv-tdep.o): New target.
7985 * frv-tdep.c: New file.
7986 * NEWS: Mention frv.
7988 2002-06-21 Dave Brolley <brolley@redhat.com>
7990 * MAINTAINERS: Add self to "Write After Approval" list.
7992 2002-06-21 Grace Sainsbury <graces@redhat.com>
7994 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7995 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7996 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7997 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7998 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8000 * m68k-tdep.c: Include arch-utils.h
8001 (m68k_register_raw_size): Add.
8002 (m68k_register_virtual_size): Add.
8003 (m68k_register_virtual_type): Add.
8004 (m68k_register_name): Add.
8005 (m68k_stack_align): Add.
8006 (m68k_register_byte): Add.
8007 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8010 2002-06-21 Grace Sainsbury <graces@redhat.com>
8012 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8013 m68k_find_saved_regs.
8014 (m68k_pop_frame): Removed saved_regs structure, and replaced
8015 references to it with frame->saved_regs.
8016 (m68k_gdbarch_init): Added function calls to initialize the
8018 (m68k_fix_call_dummy): Add.
8019 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8020 (CALL_DUMMY): Remove.
8021 (CALL_DUMMY_LENGTH): Remove.
8022 (CALL_DUMMY_START_OFFSET): Remove.
8023 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8024 (FIX_CALL_DUMMY): Remove.
8025 (PUSH_DUMMY_FRAME): Remove.
8026 (POP_FRAME): Remove.
8028 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8030 * parse.c (parse_fprintf): New function used to avoid calls to
8031 fprintf in bison parser generated debug code.
8032 * parser-defs.h: Declaration of new parse_fprintf function.
8033 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8034 Set YYDEBUG to 1 by default.
8035 Set YYFPRINTF as parse_fprintf.
8037 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8039 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8041 (pointer_encoding, enum ptr_encoding): New.
8042 (execute_cfa_program): Take care about pointer encoding.
8043 (dwarf2_build_frame_info): Only call parse_frame_info for
8044 .debug_frame and .eh_frame.
8045 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8046 fixed augmentation handling, added relative addressing,
8047 ignore duplicate FDEs. Added comments.
8048 * dwarf2cfi.c: Reindented.
8050 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8052 * event-top.c (command_handler): Don't use space_at_cmd_start
8053 unless there is sbrk() on the host. Assign time and space data
8054 to union fields of the appropriate length.
8056 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8058 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8059 x86_64_register_name. Return type changed to 'const char *'.
8060 (x86_64_register_name2nr): Rename to x86_64_register_number.
8061 (x86_64_gdbarch_init): Update to reflect the change.
8062 * x86-64-tdep.h: Ditto.
8063 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8064 (supply_fpregset): Ditto.
8066 2002-06-19 Andrew Cagney <cagney@redhat.com>
8068 * regcache.h: Update copyright.
8069 (struct regcache, struct gdbarch): Add opaque declarations.
8070 (current_regcache): Declare global variable.
8071 (regcache_read, regcache_write): Add gdbarch parameter.
8072 (regcache_save, regcache_save_no_passthrough)
8073 (regcache_restore, regcache_restore_no_passthrough)
8074 (regcache_dup, regcache_dup_no_passthrough)
8075 (regcache_cpy, regcache_cpy_no_passthrough)
8076 (deprecated_grub_regcache_for_registers)
8077 (deprecated_grub_regcache_for_register_valid)
8078 (regcache_valid_p): Add function declarations.
8080 * regcache.c: Update copyright.
8081 (regcache_descr_handle): New global variable.
8082 (struct regcache_descr): Define.
8083 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8084 (regcache_descr, xfree_regcache_descr): New functions.
8085 (struct regcache): Define.
8086 (regcache_xmalloc, regcache_xfree): New functions.
8087 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8088 (regcache_dup, regcache_dup_no_passthrough): New functions.
8089 (regcache_valid_p, regcache_read_as_address): New functions.
8090 (deprecated_grub_regcache_for_registers): New function.
8091 (deprecated_grub_regcache_for_register_valid): New function.
8092 (current_regcache): New global variable.
8093 (register_buffer): Add regcache parameter. Update calls.
8094 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8095 (read_register_gen, write_register_gen): Update register_buffer
8096 call. Test for legacy_p instead of gdbarch_register_read_p or
8097 gdbarch_register_write_p.
8098 (regcache_collect): Update register_buffer call.
8099 (build_regcache): Rewrite. Use deprecated grub functions.
8100 (regcache_save, regcache_save_no_passthrough): New functions.
8101 (regcache_restore, regcache_restore_no_passthrough): New
8103 (_initialize_regcache): Create the regcache_data_handle. Swap
8104 current_regcache global variable.
8106 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8107 parameter to regcache_read and regcache_write calls.
8108 (sh4_register_read): Ditto.
8109 (sh64_pseudo_register_read): Ditto.
8110 (sh64_register_read): Ditto.
8111 (sh_pseudo_register_write): Ditto.
8112 (sh4_register_write): Ditto.
8113 (sh64_pseudo_register_write): Ditto.
8114 (sh64_register_write): Ditto.
8116 * defs.h (XCALLOC): Define.
8118 2002-06-19 Grace Sainsbury <graces@redhat.com>
8120 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8121 * m68k-tdep.c (m68k_gdbarch_init): Added.
8122 (m68k_dump_tdep): Added.
8124 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8126 * ada-lang.c (fill_in_ada_prototype): Update comment.
8128 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8130 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8132 (mips_abi_string, mips_abi_strings): New.
8133 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8134 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8135 tdep->mips_abi_string. Honor mips_abi_string. Default to
8136 O32 if no ABI is found.
8137 (mips_dump_tdep): Use mips_abi_strings.
8138 (mips_abi_update): New function.
8139 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8140 ``set mips abi'' and ``show mips abi''. Check the size of
8143 2002-06-19 Andrew Cagney <cagney@redhat.com>
8145 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8148 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8150 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8151 current frame using only the first stack size adjustment. All
8152 subsequent size adjustments are not considered to be part of
8153 the "static" part of the current frame.
8154 Compute the address of the saved registers relative to the
8155 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8156 in use in this frame.
8158 2002-06-18 Don Howard <dhoward@redhat.com>
8160 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8161 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8162 suggesting this solution.
8164 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8166 * config/romp/xm-rtbsd.h: Delete file.
8167 * config/romp/rtbsd.mh: Delete file.
8169 2002-06-18 Keith Seitz <keiths@redhat.com>
8171 * breakpoint.c (condition_command): Post breakpoint_modify
8172 when a condition is added to an existing breakpoint.
8173 (commands_command): Likewise for commands.
8174 (set_ignore_count): Likewise for ignore counts.
8175 If no tty, do not simply return, still need to send event
8177 (ignore_command): Only print a newline if the command came
8179 Don't call breakpoints_changed, since this is now properly
8180 handled by set_ignore_count.
8182 2002-06-18 Andrew Cagney <cagney@redhat.com>
8184 * MAINTAINERS: Note that cris-elf target can be compiled with
8186 * cris-tdep.c (cris_register_name): Make return type constant.
8187 (cris_breakpoint_from_pc): Ditto.
8189 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8191 * frame.h (struct frame_info): Change type of context to
8194 2002-06-17 Andrew Cagney <cagney@redhat.com>
8196 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8198 * gdbarch.h, gdbarch.c: Regenerate.
8199 * config/mips/tm-mips.h (mips_register_name): Update.
8200 * i386-tdep.h (i386_register_name): Update.
8201 * mips-tdep.c (mips_register_name): Update
8202 * alpha-tdep.c (alpha_register_name): Update.
8203 * arch-utils.c (legacy_register_name): Update.
8204 * arch-utils.h (legacy_register_name): Update.
8205 * avr-tdep.c (avr_register_name): Update.
8206 * ia64-tdep.c (ia64_register_name): Update.
8207 * i386-tdep.c (i386_register_name): Update.
8208 * sparc-tdep.c (sparc32_register_name): Update.
8209 (sparc64_register_name): Update.
8210 (sparclite_register_name): Update.
8211 (sparclet_register_name): Update.
8212 * sh-tdep.c (sh_generic_register_name): Update.
8213 (sh_sh_register_name): Update.
8214 (sh_sh3_register_name): Update.
8215 (sh_sh3e_register_name): Update.
8216 (sh_sh_dsp_register_name): Update.
8217 (sh_sh3_dsp_register_name): Update.
8218 (sh_sh4_register_name): Update.
8219 (sh_sh64_register_name): Update.
8220 * s390-tdep.c (s390_register_name): Update.
8221 * rs6000-tdep.c (rs6000_register_name): Update.
8222 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8223 (ns32k_register_name_32382): Update.
8224 * d10v-tdep.c (d10v_ts2_register_name): Update.
8225 (d10v_ts3_register_name): Update.
8226 * xstormy16-tdep.c (xstormy16_register_name): Update.
8227 * vax-tdep.c (vax_register_name): Update.
8228 * v850-tdep.c (v850_register_name): Update.
8229 * m68hc11-tdep.c (m68hc11_register_name): Update.
8230 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8231 (am33_register_name): Update.
8233 2002-06-17 Grace Sainsbury <graces@redhat.com>
8235 * m68k-tdep.c: Reindented.
8237 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8239 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8240 list of predefined types.
8242 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8244 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8245 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8246 REGISTER_CONVERT_TO_RAW): Remove defines.
8247 (i386_register_virtual_type, i386_register_convertible,
8248 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8250 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8251 macros mentioned above.
8253 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8254 (i386lynx_saved_pc_after_call): Remove prototype.
8255 * i386ly-tdep.c: Include "i386-tdep.h".
8256 (i386lynx_saved_pc_after_call): Make static. Use
8257 read_memory_nobpt instead of read_memory. Use
8258 read_memory_unsigned_integer instead of read_memory_integer.
8259 (i386lynx_init_abi): New function.
8260 (i386lynx_coff_osabi_sniffer): New function.
8261 (_initialize_i386bsd_tdep): New function.
8263 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8264 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8265 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8266 (i386_fix_call_dummy): Remove prototype.
8267 * i386-tdep.c (i386_call_dummy_words): New variable.
8268 (i386_gdbarch_init): Adjust for removal of the
8269 macros mentioned above.
8271 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8273 * command.h (add_setshow_auto_boolean_cmd): Replace
8274 add_set_auto_boolean_cmd.
8275 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8276 add_set_auto_boolean_cmd.
8277 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8278 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8279 mask-address'' command.
8280 (show_mask_address): Add cmd parameter.
8281 * remote.c (add_packet_config_cmd): Update. Change type of
8282 set_func and show_func to cmd_sfunc_ftype.
8283 (_initialize_remote): Update `set remote Z-packet'
8284 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8285 (show_remote_protocol_e_packet_cmd): Ditto.
8286 (show_remote_protocol_E_packet_cmd): Ditto.
8287 (show_remote_protocol_P_packet_cmd): Ditto.
8288 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8289 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8290 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8291 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8292 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8293 (show_remote_protocol_Z_packet_cmd): Ditto.
8294 (show_remote_protocol_binary_download_cmd): Ditto.
8295 (show_remote_cmd): Pass NULL to all of above.
8297 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8299 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8300 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8301 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8302 POP_FRAME): Remove defines.
8303 (i386_push_arguments, i386_store_struct_return,
8304 i386_extract_return_value, i386_store_return_value,
8305 i386_extract_struct_value_address, i386_push_dummy_frame,
8306 i386_pop_frame): Renove prototypes.
8307 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8308 macros mentioned above.
8310 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8312 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8313 add_set_boolean_cmd.
8314 (add_setshow_cmd): New function.
8315 * command.h (add_setshow_boolean_cmd): Replace
8316 add_set_boolean_cmd.
8317 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8318 and ``set rdiromatzero''.
8319 * maint.c (_initialize_maint_cmds): Update commented out code.
8320 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8321 * target.c (initialize_targets): Update `set
8322 trust-readonly-sections'.
8323 * remote.c (_initialize_remote): Update `set remotebreak'.
8325 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8327 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8328 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8329 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8330 fit into multi-arch framework.
8331 (i386_breakpoint_from_pc): New function.
8332 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8335 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8336 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8337 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8338 (i386_frameless_function_invocation, i386_frame_num_args,
8339 i386_frame_init_saved_regs): Remove prototypes.
8340 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8341 macros mentioned above.
8343 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8345 * cli/cli-decode.c (set_cmd_cfunc): Update.
8346 (set_cmd_sfunc): Update.
8347 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8348 (set_cmd_sfunc, set_cmd_cfunc): Update.
8349 * cli/cli-decode.h: Update.
8351 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8353 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8354 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8356 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8358 * defs.h (auto_boolean): Declare enum.
8359 * command.h (cmd_auto_boolean): Delete enum.
8360 * mips-tdep.c (mask_address_var): Update.
8361 (mips_mask_address_p): Update.
8362 (show_mask_address): Update.
8363 * remote.c (struct packet_config): Update.
8364 (update_packet_config): Update.
8365 (show_packet_config_cmd): Update.
8366 (packet_ok): Update.
8367 (add_packet_config_cmd): Update.
8368 (_initialize_remote):
8369 * command.h: Update.
8370 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8371 (do_setshow_command): Update.
8372 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8373 * cli/cli-decode.h: Update.
8375 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8377 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8378 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8379 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8380 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8381 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8382 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8384 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8385 list of DJGPP COFF targets.
8387 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8388 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8389 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8390 (FP0_REGNUM): Remove define.
8391 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8392 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8393 (i386_register_virtual_size): Remove protoype.
8394 * i386-tdep.c (i386_register_virtual_size): Removed.
8395 (i386_extract_return_value, i386_store_return_value): Use
8396 FP0_REGNUM instead of NUM_FREGS to determine whether the
8397 floating-point registers are available.
8398 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8399 Adjust for removal of macros mentioned above.
8401 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8403 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8405 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8407 (supply_gregset, fill_gregset): Remove use of register keyword and
8408 remove declaration for regmap. Use I386_NUM_GREGS instead of
8409 NUM_REGS and NUM_FREGS.
8410 (FPREGSET_FSAVE_OFFSET): Remove.
8411 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8412 NUM_FREGS to determine whether the floating-point registers are
8415 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8416 gnu_store_registers): Replace usage of NUM_GREGS with
8419 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8420 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8421 usage of NUM_GREGS with I386_NUM_GREGS.
8423 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8425 * i386bsd-nat.c: Include "i386-tdep.h".
8426 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8429 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8430 and associated comment. They no longer make any sense, since we
8431 don't use this file anymore on Linux.
8433 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8434 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8435 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8436 elements in these arrays.
8437 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8440 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8442 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8443 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8445 2002-06-14 Andrew Cagney <cagney@redhat.com>
8447 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8448 EXTRACT_RETURN_VALUE.
8449 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8450 EXTRACT_STRUCT_VALUE_ADDRESS.
8451 * gdbarch.h, gdbarch.c: Regenerate.
8453 * values.c (value_being_returned): Handle
8454 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8455 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8457 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8458 * arm-tdep.c (arm_gdbarch_init): Update.
8459 * avr-tdep.c (avr_gdbarch_init): Update.
8460 * cris-tdep.c (cris_gdbarch_init): Update.
8461 * d10v-tdep.c (d10v_gdbarch_init): Update.
8462 * ia64-tdep.c (ia64_gdbarch_init): Update.
8463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8464 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8465 * s390-tdep.c (s390_gdbarch_init): Update.
8466 * sh-tdep.c (sh_gdbarch_init): Update.
8467 * s390-tdep.c (s390_gdbarch_init): Update.
8468 * sparc-tdep.c (sparc_gdbarch_init): Update.
8469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8470 * v850-tdep.c (v850_gdbarch_init): Update.
8471 * vax-tdep.c (vax_gdbarch_init): Update.
8472 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8473 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8475 * config/arc/tm-arc.h: Update.
8476 * config/d30v/tm-d30v.h: Update.
8477 * config/fr30/tm-fr30.h: Update.
8478 * config/h8300/tm-h8300.h: Update.
8479 * config/h8500/tm-h8500.h: Update.
8480 * config/i386/tm-i386.h: Update.
8481 * config/i386/tm-ptx.h: Update.
8482 * config/i386/tm-symmetry.h: Update.
8483 * config/i960/tm-i960.h: Update.
8484 * config/m32r/tm-m32r.h: Update.
8485 * config/m68k/tm-delta68.h: Update.
8486 * config/m68k/tm-linux.h: Update.
8487 * config/m68k/tm-m68k.h: Update.
8488 * config/m88k/tm-m88k.h: Update.
8489 * config/mcore/tm-mcore.h: Update.
8490 * config/mips/tm-mips.h: Update.
8491 * config/mn10200/tm-mn10200.h: Update.
8492 * config/pa/tm-hppa.h: Update.
8493 * config/pa/tm-hppa64.h: Update.
8494 * config/sparc/tm-sp64.h: Update.
8495 * config/sparc/tm-sparc.h: Update.
8496 * config/sparc/tm-sparclet.h: Update.
8497 * config/z8k/tm-z8k.h: Update.
8499 2002-06-14 Andrew Cagney <cagney@redhat.com>
8501 * Makefile.in (i386_linux_tdep_h): Define.
8502 (i386_tdep_h, i387_tdep_h): Define.
8503 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8504 $(i386_tdep_h) and $(i387_tdep_h).
8505 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8507 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8509 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8510 Already covered by the default.
8512 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8513 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8514 (i386_gdbarch_init): Initialize long_double_format and long_double
8517 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8518 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8520 * config/i386/i386sol2.mh: ... here.
8521 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8522 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8523 (SIGCONTEXT_PC_OFFSET): Remove define.
8524 (IN_SIGTRAMP): Remove define.
8525 * i386-sol2-tdep.c: New file.
8527 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8528 * config/i386/tm-i386nw.h: Removed.
8530 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8531 USE_STRUCT_CONVENTION): Remove defines.
8532 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8533 (get_longjmp_target): Remove prototype.
8534 (IN_SIGTRAMP): Remove define.
8535 (i386bsd_in_sigtramp): Remove prototype.
8536 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8537 function. Update comment accordingly
8538 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8539 (FRAME_SAVED_PC): Remove define.
8540 (i386bsd_frame_saved_pc): Remove prototype.
8541 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8542 GET_LONGJMP_TARGET): Remove defines.
8543 (get_longjmp_target): Remove prototype.
8544 (IN_SIGTRAMP): Remove define.
8545 (i386bsd_in_sigtramp): Remove prototype.
8546 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8547 function. Update comment accordingly
8548 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8549 (FRAME_SAVED_PC): Remove define.
8550 (i386bsd_frame_saved_pc): Remove prototype.
8551 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8553 (USE_STRUCT_CONVENTION): Remove prototype.
8554 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8556 (_initialize_i386bsd_nat): Revise logic to determine some
8557 constants at compile time when compiling a native GDB. Warn if
8558 things don't match up with what we expect.
8559 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8561 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8562 to use date stored in `struct gdbarch_tdep'.
8563 (i386bsd_sigcontext_offset): Remove varaible.
8564 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8565 stored in `struct gdbarch_tdep'.
8566 (i386bsd_frame_saved_pc): Make static.
8567 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8568 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8569 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8570 i386fbsd4_sc_pc_offset): New variables.
8571 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8572 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8574 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8576 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8577 Modify the value of i386fbsd_sigtramp_start and
8578 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8579 i386fbsd_sigtramp_end.
8580 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8583 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8584 define to i386-linux-tdep.h.
8585 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8586 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8588 (i386_linux_register_name, i386_linux_register_byte,
8589 i386_linux_register_raw_size): Remove prototypes.
8590 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8591 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8592 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8593 TARGET_WRITE_PC): Remove defines.
8594 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8595 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8596 i386_linux_write_pc): Remove prototypes.
8597 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8598 (get_longjmp_target): Remove prototype.
8599 * i386-linux-tdep.h: New file.
8600 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8601 * i386-linux-tdep.c: Include "i386-tdep.h" and
8602 "i386-linux-tdep.h".
8603 (i386_linux_register_name, i386_linux_register_byte,
8604 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8605 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8607 (i386_linux_init_abi): New function.
8608 (_initialize_i386_linux_tdep): New function.
8610 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8611 (i386_saved_pc_after_call): Remove prototype.
8612 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8613 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8614 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8615 (i386_register_name, i386_stab_reg_to_regnum,
8616 i386_dwarf_reg_to_regnum): Remove prototypes.
8617 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8618 SIZEOF_SSE_REGS): Remove defines.
8619 (REGISTER_BYTES): Remove define.
8620 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8621 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8622 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8623 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8624 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8625 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8626 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8627 (get_longjmp_target): Remove prototype.
8628 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8629 (sigtramp_saved_pc): Remove define.
8630 (i386v4_sigtramp_saved_pc): Remove prototype.
8631 * config/i386/tm-go32.h (FRAME_CHAIN,
8632 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8633 (i386go32_frame_saved_pc): Remove prototype.
8634 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8635 (get_longjmp_target): Remove prototype.
8636 * i386-tdep.h: Include "osabi.h".
8637 (enum i386_abi): Removed.
8638 (enum struct_return): New enum.
8639 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8640 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8641 sc_pc_offset members.
8642 (i386_gdbarch_register_os_abi): Remove prototype.
8643 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8644 I386_SSE_NUM_REGS): New defines.
8645 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8646 I386_SSE_SIZEOF_REGS): New defines.
8647 (i386_register_name, i386_register_byte, i386_register_raw_size):
8649 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8650 (i386bsd_sigtramp_saved_pc): New prototype.
8651 * i386-tdep.c: Don't include "elf-bfd.h".
8652 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8653 i386_frame_chain, i386_saved_pc_after_call): Make static.
8654 (i386_frame_saved_pc): Rewrite to call architecture dependent
8655 function to deal with signal handlers. Make static.
8656 (i386go32_frame_saved_pc): Removed.
8657 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8659 (i386_get_longjmp_target): New function.
8660 (default_struct_convention, pcc_struct_convention,
8661 reg_struct_convention, valid_conventions, struct_convention): New
8663 (i386_use_struct_convention): New function.
8664 (i386v4_sigtramp_saved_pc): Renamed to
8665 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8666 (i386_pc_in_sigtramp): New function.
8667 (i386_abi_names): Removed.
8668 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8669 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8671 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8672 i386_gdbarch_register_os_abi): Removed.
8673 (struct i386_abi_handler): Removed.
8674 (i386_abi_handler_list): Removed.
8675 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8677 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8678 i386_nw_init_abi): New functions.
8679 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8680 Use set_gdbarch_xxx() calls instead of relying on macros for a
8682 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8683 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8684 Register the various architecture variants defined in this file.
8686 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8688 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8689 (struct main_type): Remove arg_types member. Update comments for
8691 (TYPE_ARG_TYPES): Remove.
8692 (TYPE_FN_FIELD_ARGS): Update.
8693 (smash_to_method_type): Update prototype.
8695 * c-typeprint.c (cp_type_print_method_args): Take method type
8696 instead of argument list. Use new argument layout. Simplify.
8697 (c_type_print_args): Use new argument layout. Simplify.
8698 (c_type_print_base): Update call to cp_type_print_method_args.
8699 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8700 argument; use die->type instead. Update call to
8701 smash_to_method_type.
8702 (read_structure_scope): Update call to dwarf2_add_member_fn.
8703 * gdbtypes.c (allocate_stub_method): Update comment.
8704 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8705 Use new argument layout.
8706 (check_stub_method): Use new argument layout. Don't count
8707 void as an argument.
8708 (print_arg_types): Update comments. Use new argument layout.
8709 (recursive_dump_type): Don't print arg_types member.
8710 * hpread.c (hpread_read_struct_type): Use new argument layout.
8711 (fixup_class_method_type): Likewise.
8712 (hpread_type_lookup): Likewise.
8713 * stabsread.c (read_type): Update calls to read_args and
8714 smash_to_method_type.
8715 (read_args): Use new argument layout. Simplify.
8716 * valops.c (typecmp): Use new argument layout. Update parameters
8717 and comments. Simplify.
8718 (hand_function_call): Use new argument layout.
8719 (search_struct_method): Update call to typecmp.
8720 (find_overload_match): Use new argument layout.
8722 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8724 * NEWS: Mention multithreaded debug support for gdbserver.
8726 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8728 * MAINTAINERS: Mention NEWS.
8730 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8732 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8733 (struct mips_objfile_private, compare_pdr_entries): New.
8734 (non_heuristic_proc_desc): Read the ".pdr" section if it
8737 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8739 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8740 (arm_debug): New static variable.
8741 (_initialize_arm_tdep): Add ``set debug arm'' command.
8743 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8745 * Makefile.in (sim_arm_h): Define.
8746 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8747 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8748 (arm_register_sim_regno): New function, map an internal REGNUM
8749 onto a simulator register number.
8750 (arm_gdbarch_init): Set register_sim_regno.
8752 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8754 * MAINTAINERS: Add self.
8756 2002-06-11 Jim Blandy <jimb@redhat.com>
8758 * source.c (source_info): Mention whether the symtab has
8759 information about preprocessor macros.
8761 Call the command `info macro', not `show macro'.
8762 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8764 (_initialize_macrocmd): Register `info_macro_command' in
8765 `infolist', not `showlist'.
8767 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8769 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8770 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8771 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8772 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8773 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8775 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8776 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8777 (_initialize_mips_tdep): Remove dead code.
8778 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8779 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8780 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8781 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8782 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8783 MIPS_LAST_FP_ARG_REGNUM): Remove.
8785 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8787 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8788 (unwind_tmp_obstack_free, parse_frame_info)
8789 (update_context, cfi_read_fp, cfi_write_fp)
8790 (cfi_frame_chain, cfi_init_extra_frame_info)
8791 (cfi_virtual_frame_pointer): Use the above function.
8792 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8794 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8796 * v850-tdep.c (v850_type_is_scalar): New function.
8797 (v850_use_struct_convention): Match current gcc implementation
8798 as close as possible.
8799 (v850_push_arguments): Fix stack_offset handling. Don't write
8800 struct_addr into register. This is done by v850_store_struct_return.
8801 (v850_extract_return_value): Care for structs.
8802 (v850_store_return_value): Ditto.
8803 (v850_store_struct_return): Actually write address.
8805 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8807 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8808 without debug information too.
8810 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8812 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8813 Make multi-arch pure.
8814 * gdbarch.h, gdbarch.c: Re-generate.
8815 * arm-tdep.c (arm_print_float_info): Update.
8816 * arch-utils.h (default_print_float_info): Update.
8817 * arch-utils.c (default_print_float_info): Update.
8818 * infcmd.c (float_info): Update call.
8820 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8822 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8823 the front of the initialize list.
8825 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8827 * infrun.c (struct inferior_status): Replace fields
8828 selected_frame_address and selected_level with field
8830 (save_inferior_status): Update. Use get_frame_id.
8831 (struct restore_selected_frame_args): Delete.
8832 (restore_selected_frame): Update. Use frame_find_by_id.
8833 (restore_inferior_status): Update.
8835 * breakpoint.h (struct breakpoint): Change type of
8836 watchpoint_frame to frame_id.
8837 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8838 call to get_current_frame.
8839 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8841 (watchpoint_check): Use frame_find_by_id.
8843 * frame.h (record_selected_frame): Delete declaration.
8844 * stack.c (record_selected_frame): Delete function.
8846 * frame.h (struct frame_id): Define.
8847 (get_frame_id): Declare.
8848 (frame_find_by_id): Declare.
8849 * frame.c (frame_find_by_id): New function.
8850 (get_frame_id): New function.
8852 2002-06-10 Andrey Volkov <avolkov@transas.com>
8854 * ser-e7kpc.c: Fix duplicated define and call of
8855 _initialize_ser_e7000pc
8857 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8859 * signals/signals.c (target_signal_from_host): Fix #ifdef
8861 (do_target_signal_to_host): Likewise.
8863 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8865 * mips-tdep.c (mips_find_abi_section): New function.
8866 (mips_gdbarch_init): Call it.
8868 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8870 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8871 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8872 after Andrew's 2002-06-08 gdbarch change.
8874 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8876 * i386-linux-nat.c (suppy_gregset): Don't supply
8877 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8879 (fill_gregset): Don't fetch it under the same circumstances.
8881 2002-06-09 Andrew Cagney <cagney@redhat.com>
8883 * Makefile.in (callback_h): Define.
8884 (remote_sim_h): Update path to remote-sim.h.
8885 (remote-rdp.o): Add $(callback_h).
8886 (remote-sim.o): Use $(callback_h).
8887 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8888 * remote-rdp.c: Include "gdb/callback.h".
8890 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8892 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8893 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8895 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8897 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8898 * rdi-share/serpardr.c: Ditto.
8899 * rdi-share/unixcomm.c: Ditto.
8900 * rdi-share/serdrv.c: Ditto.
8901 * rdi-share/hostchan.h: Ditto.
8902 * rdi-share/hostchan.c: Ditto.
8903 * rdi-share/host.h: Ditto.
8904 * rdi-share/devsw.c: Ditto.
8906 * objfiles.h: Change type of obj_private to void pointer.
8907 * pa64solib.c: Update copyright. Don't include "assert.h", use
8908 strcmp instead of STREQ, use LONGEST, do not use PTR
8909 * somsolib.c: Ditto.
8911 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8912 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8913 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8915 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8917 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8918 (default_get_saved_register): Delete function.
8919 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8920 generic_unwind_get_saved_register.
8921 * gdbarch.h, gdbarch.c: Re-generate.
8923 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8925 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8926 generic_func_frame_chain_valid.
8927 * gdbarch.h, gdbarch.c: Re-generate.
8928 * blockframe.c (generic_func_frame_chain_valid): Only check
8929 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8930 passing FP to PC_IN_CALL_DUMMY.
8933 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8935 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8936 (register_gdbarch_data): Initialize init_p.
8937 (gdbarch_data): Initialize data pointer using the init function.
8938 (init_gdbarch_data): Delete function.
8939 (gdbarch_update_p): Update.
8940 (initialize_non_multiarch): Update.
8941 (struct gdbarch): Add field initialized_p.
8942 * gdbarch.h, gdbarch.c: Re-generate.
8944 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8946 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8947 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8948 better do the things actually here.
8949 * x86-64-tdep.c (x86_64_register_name2nr): New.
8950 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8951 (x86_64_gdbarch_init): Respect the above change.
8952 * x86-64-tdep.h (x86_64_register_name2nr)
8953 (x86_64_register_nr2name): Add prototypes.
8954 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8956 2002-06-06 Michael Snyder <msnyder@redhat.com>
8958 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8959 Delete extra braces and re-indent.
8960 (d10v_store_return_value): Char return values
8961 must be shifted over by one byte in R0.
8962 (d10v_extract_return_value): Delete extra braces, re-indent.
8964 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8966 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8967 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8968 (d10v_integer_to_address): Rewrite.
8969 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8970 the d10v specific functions which take care of converting to the
8973 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8975 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8976 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8978 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8980 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8982 * config/tm-linux.h: Ditto.
8983 * config/alpha/tm-alphalinux.h: Ditto.
8984 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8985 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8986 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8987 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8988 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8989 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8990 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8991 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8992 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8993 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8994 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8995 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8996 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8997 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8998 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8999 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9000 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9001 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9002 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9003 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9004 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9005 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9006 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9007 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9008 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9009 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9010 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9011 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9012 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9013 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9014 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9015 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9016 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9017 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9018 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9019 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9020 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9022 2002-05-04 Aidan Skinner <aidan@velvet.net>
9024 * ada-exp.tab.c: New file
9025 * ada-exp.y: New file
9026 * ada-lang.c: New file
9027 * ada-lang.h: New file
9028 * ada-lex.c: New file
9029 * ada-lex.l: New file
9030 * ada-tasks.c: New file
9031 * ada-typeprint.c: New file
9032 * ada-valprint.c: New file
9034 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9036 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9037 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9039 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9041 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9042 insetead of ppc-linux-tdep.o.
9043 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9044 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9046 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9048 2002-05-07 Christian Groessler <chris@groessler.org>
9049 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9050 bit register contents for little endian hosts.
9052 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9054 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9057 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9059 * gdbarch.h: Regenerate.
9061 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9063 * MAINTAINERS: Add everyone to write-after-approval list.
9065 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9067 * stack.c (frame_info): Use frame_register_unwind instead of
9068 saved_regs. Mention when the SP is on the stack or in a register.
9070 * frame.h (frame_register_unwind_ftype): Define. Document.
9071 (struct frame_info): Add field register_unwind and
9072 register_unwind_cache.
9073 (frame_register_unwind): Declare.
9074 (generic_unwind_get_saved_register): Declare.
9076 * frame.c (frame_register_unwind): New function.
9077 (generic_unwind_get_saved_register): New function.
9079 * blockframe.c (generic_call_dummy_register_unwind): New function.
9080 (frame_saved_regs_register_unwind): New function.
9081 (set_unwind_by_pc): New function.
9082 (create_new_frame): New function.
9083 (get_prev_frame): New function.
9085 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9087 * a29k-share/: Delete directory.
9088 * remote-vx29k.c: Delete file.
9090 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9092 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9093 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9095 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9097 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9098 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9101 (sparcnbsd-tdep.o): New dependency lists.
9102 * NEWS: Note new UltraSPARC NetBSD native configuration.
9103 * configure.host (sparc64-*-netbsd*): New host.
9104 * configure.tgt (sparc-*-netbsdelf*)
9105 (sparc-*-netbsd*): Set gdb_target to nbsd.
9106 (sparc64-*-netbsd*): New target.
9107 * sparc64nbsd-nat.c: New file.
9108 * sparcnbsd-nat.c: New file.
9109 * sparcnbsd-tdep.c: New file.
9110 * sparcnbsd-tdep.h: New file.
9111 * config/sparc/nbsd.mt: New file.
9112 * config/sparc/nbsd64.mh: New file.
9113 * config/sparc/nbsd64.mt: New file.
9114 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9115 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9117 * config/sparc/nbsdaout.mt: Remove.
9118 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9119 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9121 * config/sparc/nbsdelf.mt: Remove.
9122 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9123 sparc-nat.c compatiblity defines.
9124 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9125 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9126 * config/sparc/tm-nbsd64.h: New file.
9127 * config/sparc/tm-nbsdaout.h: Remove.
9128 * config/sparc/xm-nbsd.h: Remove.
9130 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9132 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9133 * sparc-tdep.c: Include osabi.h.
9134 (gdbarch_tdep): Add osabi member.
9135 (_initialize_sparc_tdep): Use gdbarch_register.
9136 (sparc_gdbarch_init): Use generic OS ABI framework.
9137 (sparc_dump_tdep): New function.
9139 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9141 * corefile.c (do_captured_read_memory_integer): Return non-zero
9143 (safe_read_memory_integer): Copy result of memory read when
9144 status is non-zero. Also, add comments.
9146 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9148 * Makefile.in (ppc_tdep_h): Define.
9151 (rs6000-tdep.o): Use $(ppc_tdep_h).
9154 (ppcnbsd-tdep.o): New dependency lists.
9155 * ppc-tdep.h: Use generic OS ABI framework.
9156 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9157 (ppc_linux_init_abi): New functions.
9158 (ppc_sysv_abi_broken_use_struct_convention)
9159 (ppc_sysv_abi_use_struct_convention)
9160 (ppc_sysv_abi_push_arguments): Move to...
9161 * ppc-sysv-tdep.c: ...here.
9162 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9163 * rs6000-tdep.c (process_note_abi_tag_sections)
9164 (get_elfosabi): Remove.
9165 (rs6000_gdbarch_init): Use generic OS ABI framework.
9166 (rs6000_dump_tdep): New function.
9167 (_initialize_rs6000_tdep): Use gdbarch_register.
9168 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9169 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9170 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9171 of ppc-linux-tdep.o.
9172 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9173 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9174 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9175 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9176 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9177 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9179 2002-05-29 Jim Blandy <jimb@redhat.com>
9181 * macroscope.c (default_macro_scope): Put `void' in empty argument
9184 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9186 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9187 * arch-utils.c: Include "sim-regno.h".
9188 * gdbarch.sh: Don't include "sim-regno.h".
9189 * gdbarch.h, gdbarch.c: Regenerate.
9190 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9192 * arch-utils.h (legacy_register_sim_regno): To here.
9193 * remote-sim.c (legacy_register_sim_regno): Move function from
9195 * arch-utils.c (legacy_register_sim_regno): To here.
9197 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9199 * sim-regno.h: New file.
9200 * Makefile.in (sim_regno_h): Define.
9201 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9202 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9203 (legacy_register_sim_regno): New function.
9204 (one2one_register_sim_regno): New function.
9205 (gdbsim_fetch_register): Rewrite.
9206 (gdbsim_store_register): Only store a register when
9207 REGISTER_SIM_REGNO is valid.
9208 * d10v-tdep.c: Include "sim-regno.h".
9209 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9210 (d10v_ts3_register_sim_regno): Ditto.
9211 * gdbarch.sh: Include "sim-regno.h".
9212 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9213 * gdbarch.h, gdbarch.c: Regenerate.
9214 * arch-utils.h (default_register_sim_regno): Delete declaration.
9215 * arch-utils.c (default_register_sim_regno): Delete function.
9217 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9219 * ppcnbsd-nat.c: Rewrite.
9220 * ppcnbsd-tdep.c: New file.
9221 * ppcnbsd-tdep.h: New file.
9222 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9223 solib.o, and solib-svr4.o.
9224 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9225 nbsd-tdep.o, and corelow.o.
9227 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9229 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9230 `tr' and `sed'. Mention that `broken' targets are not expected to
9233 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9235 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9236 Let PC point right after the prologue before looking up symbols.
9238 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9240 * i386-tdep.c (i386_register_virtual_type): Return
9241 builtin_type_vec128i for SSE registers.
9243 * gdbtypes.h (builtin_type_vec128i): Declare.
9245 * gdbtypes.c (build_builtin_type_vec128i): New function.
9246 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9247 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9248 (build_gdbtypes): Initialize new builtin vector types.
9249 (_initialize_gdbtypes): Register new vector types with gdbarch.
9251 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9253 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9254 since it has been multi-arch'd.
9255 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9256 Move Alpha and VAX multi-arch news entries to same section
9257 as other multi-arch news.
9259 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9261 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9262 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9263 static. Rename some register numbers to put them in ns32k-tdep
9265 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9266 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9268 (_initialize_ns32k_tdep): Use gdbarch_register.
9269 * ns32k-tdep.h: New file.
9270 * ns32knbsd-tdep.c: New file.
9271 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9272 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9273 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9274 REGISTER_BYTES, REGISTER_BYTE): Remove.
9275 * config/ns32k/tm-ns32k.h: New file.
9276 * config/ns32k/tm-umax.h: Remove.
9278 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9280 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9281 ns32k_store_struct_return, ns32k_extract_return_value,
9282 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9284 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9285 ns32k_saved_pc_after_call.
9286 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9287 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9288 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9289 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9290 ns32k_extract_struct_value_address.
9292 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9294 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9295 ns32k_fix_call_dummy): New.
9296 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9297 ns32k_call_dummy_words.
9298 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9299 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9300 CALL_DUMMY_NARGS): Remove.
9301 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9303 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9305 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9306 ns32k_frame_saved_pc, ns32k_frame_args_address,
9307 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9308 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9309 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9310 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9311 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9312 (BREAKPOINT): Remove..
9313 (FRAME_CHAIN): Define as ns32k_frame_chain.
9314 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9315 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9316 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9317 (FRAME_FIND_SAVED_REGS): Remove.
9318 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9319 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9320 (POP_FRAME): Define as ns32k_pop_frame.
9322 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9324 * ns32k-tdep.c (ns32k_register_byte_32082,
9325 ns32k_register_byte_32382, ns32k_register_raw_size,
9326 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9328 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9329 ns32k_register_byte_32382.
9330 * config/ns32k/tm-umax.h: Update copyright years.
9331 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9332 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9333 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9334 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9335 (ns32k_get_enter_addr): Fix prototype.
9337 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9339 * ns32k-tdep.c: Update copyright years.
9340 (ns32k_register_name_32082): New function.
9341 (ns32k_register_name_32382): Ditto.
9342 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9343 (REGISTER_NAME): Define as ns32k_register_name_32382.
9344 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9345 (REGISTER_NAME): Define as ns32k_register_name_32082.
9347 2002-05-24 Jim Blandy <jimb@redhat.com>
9349 * dwarf2read.c (free_line_header): Use xfree, not free.
9351 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9353 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9354 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9356 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9358 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9360 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9362 From Ross Alexander at NEC Europe:
9363 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9365 2002-05-23 Michael Snyder <msnyder@redhat.com>
9367 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9368 for input, rather than parse_and_eval_address.
9370 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9372 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9373 * Makefile.in (sim_d10v_h): Update definition.
9375 2002-05-24 Andrew Cagney <cagney@redhat.com>
9377 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9378 change `2002-05-22 Michael Snyder' below.
9379 (d10v_push_arguments): Ditto.
9380 (d10v_extract_return_value): Ditto.
9382 2002-05-23 Jim Blandy <jimb@redhat.com>
9384 * macrotab.c (check_for_redefinition): Don't complain if the new
9385 definition is the same as the previous one. Take more arguments
9386 to allow the comparison.
9387 (macro_define_object, macro_define_function): Pass more arguments
9388 to check_for_redefinition.
9390 2002-05-22 Michael Snyder <msnyder@redhat.com>
9392 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9393 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9394 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9395 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9396 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9397 Add a temp variable to save a call (and a memory read).
9398 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9399 if possible (so that PC_IN_CALL_DUMMY will work).
9401 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9403 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9405 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9407 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9409 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9410 (dwarf2_build_frame_info): Add offset to fde->initial_location
9411 so that frames of shared libraries are mapped correctly.
9412 (execute_stack_op): Change type of 'result' from ULONGEST to
9415 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9417 * config/alpha/tm-nbsd.h: Include solib.h.
9419 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9421 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9422 assumptions about the host's byte order.
9424 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9426 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9428 * alphanbsd-tdep.c: Include solib-svr4.h.
9429 * shnbsd-tdep.c: Ditto.
9431 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9433 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9434 nbsd-tdep.h to dependency list.
9435 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9436 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9437 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9438 nbsdaout.mh and nbsdelf.mh consistently.
9439 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9440 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9441 nbsdaout.mt and nbsdelf.mh consistently.
9442 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9443 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9444 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9445 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9446 a.out shared library stuff from here...
9447 * config/nm-nbsdaout.h: ...to here.
9448 * config/tm-nbsd.h: Remove.
9449 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9450 * config/arm/nbsd.mh: Remove.
9451 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9453 * config/arm/nbsdaout.mh: New file.
9454 * config/arm/nbsdelf.mh: New file.
9455 * config/arm/nm-nbsdaout.h: New file.
9456 * config/i386/nbsd.mh: Remove.
9457 * config/i386/nbsd.mt: Remove.
9458 * config/i386/nbsdaout.mh: New file.
9459 * config/i386/nbsdaout.mt: New file.
9460 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9461 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9462 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9463 i386_register_u_addr): Remove.
9464 * config/i386/nm-nbsdaout.h: New file.
9465 * config/i386/nm-nbsdelf.h: Remove.
9466 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9467 (USE_STRUCT_CONVENTION): Remove.
9468 * config/i386/tm-nbsdaout.h: New file.
9469 * config/i386/tm-nbsdelf.h: Remove.
9470 * config/m68k/nbsd.mh: Remove.
9471 * config/m68k/nbsd.mt: Remove.
9472 * config/m68k/nbsdaout.mh: New file.
9473 * config/m68k/nbsdaout.mt: New file.
9474 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9475 * config/m68k/nm-nbsdaout.h: New file.
9476 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9477 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9478 * config/ns32k/nbsd.mh: Remove.
9479 * config/ns32k/nbsd.mt: Remove.
9480 * config/ns32k/nbsdaout.mh: New file.
9481 * config/ns32k/nbsdaout.mt: New file.
9482 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9483 * config/ns32k/nm-nbsdaout.h: New file.
9484 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9485 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9486 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9487 (SVR4_SHARED_LIBS): Remove.
9488 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9489 * config/sparc/nbsd.mh: Remove.
9490 * config/sparc/nbsd.mt: Remove.
9491 * config/sparc/nbsdaout.mh: New file.
9492 * config/sparc/nbsdaout.mt: New file.
9493 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9494 * config/sparc/nbsdelf.mt: New file.
9495 * config/sparc/nm-nbsdaout.h: New file.
9496 * config/sparc/nm-nbsdelf.h: Remove.
9497 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9498 * config/sparc/tm-nbsdaout.h: New file.
9500 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9502 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9504 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9506 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9508 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9510 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9512 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9514 * NEWS: Note new MIPS NetBSD native configuration.
9515 * configure.host (mips*-*-netbsd*): New host.
9516 * configure.tgt (mips*-*-netbsd*): New target.
9517 * mipsnbsd-nat.c: New file.
9518 * mipsnbsd-tdep.c: New file.
9519 * mipsnbsd-tdep.h: New file.
9520 * config/mips/nbsd.mh: New file.
9521 * config/mips/nbsd.mt: New file.
9522 * config/mips/nm-nbsd.h: New file.
9523 * config/mips/tm-nbsd.h: New file.
9525 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9527 * Makefile.in (SFILES): Add osabi.c.
9528 (COMMON_OBS): Add osabi.o.
9529 (osabi.o): New dependency list.
9530 * osabi.c: New file.
9531 * osabi.h: New file.
9532 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9534 * Makefile.in (alpha_tdep_h): Define and use instead of
9536 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9537 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9539 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9540 * alpha-tdep.h: Include osabi.h.
9541 (alpha_abi): Remove.
9542 (gdbarch_tdep): Use generic OS ABI framework.
9543 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9544 gdbarch_register_osabi.
9545 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9546 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9547 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9549 * Makefile.in (sh_tdep_h): Add osabi.h.
9550 * sh-tdep.h (sh_osabi): Remove.
9551 (gdbarch_tdep): Use generic OS ABI framework.
9552 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9553 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9554 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9555 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9557 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9558 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9559 gdbarch_register_osabi.
9560 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9561 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9562 (get_elfosabi): Rename to...
9563 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9564 ABI framework support routines.
9565 (arm_gdbarch_init): Use generic OS ABI framework.
9566 (arm_dump_tdep): Likewise.
9567 (_initialize_arm_tdep): Likewise.
9568 * arm-tdep.h: Include osabi.h.
9570 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9572 (arm_gdbarch_register_os_abi): Remove prototype.
9573 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9574 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9576 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9577 * mips-tdep.c: Include osabi.h.
9578 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9581 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9583 * h8300-tdep.c: Fix formatting.
9585 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9587 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9588 printing vector registers.
9590 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9592 From Fernando Nasser:
9593 * remote.c (remote_async_open_1): Re-throw the exception when the
9595 (remote_cisco_open): Ditto.
9596 (remote_open_1): Ditto.
9598 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9600 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9601 (remote_start_remote): Add uiout parameter. Pass through to
9602 remote_start_remote_dummy.
9603 (remote_open_1): Use catch_exception instead of catch_errors.
9604 (remote_async_open_1): Ditto.
9605 (remote_cisco_open): Ditto.
9607 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9609 * remote.c (remote_start_remote): Replace PTR with void pointer.
9610 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9613 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9615 * gdb_indent.sh: Allow the script to be run in the sim directory.
9617 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9619 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9620 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9622 * corelow.c (core_open): Only call set_gdbarch_from_file if
9625 2002-05-17 Andrey Volkov <avolkov@transas.com>
9627 * h8300-tdep.c: Add support of EXR register
9628 * config/h8300/tm-h8300.h: Ditto.
9630 2002-05-17 Andrey Volkov <avolkov@transas.com>
9632 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9634 2002-05-17 Andrey Volkov <avolkov@transas.com>
9636 * h8300-tdep.c: Change literal regnums to REGNO.
9638 2002-05-17 Jim Blandy <jimb@redhat.com>
9640 * NEWS: Note addition of macro support.
9642 Expand preprocessor macros in C expressions.
9643 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9644 (scan_macro_expansion, scanning_macro_expansion,
9645 finished_macro_expansion): New function declarations.
9646 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9647 variable declarations.
9648 * parser-defs.h (expression_context_pc): New declaration.
9649 * parse.c (expression_context_pc): New variable.
9650 (parse_exp_1): Set expression_context_pc, as well as
9651 expression_context_block.
9652 * c-exp.y (yylex): If we're not already reading the result of a
9653 macro expansion, try to macro-expand the next token. When we're
9654 done scanning a macro expansion, switch back to the mainline text.
9655 Commas and `if's in a macro's expansion don't terminate the input.
9656 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9657 (macro_original_text, macro_expanded_text,
9658 expression_macro_lookup_func, expression_macro_lookup_baton): New
9660 (scan_macro_expansion, scanning_macro_expansion,
9661 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9662 c_preprocess_and_parse): New functions.
9663 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9664 c_preprocess_and_parse, instead of c_parse.
9665 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9666 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9668 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9670 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9671 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9672 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9674 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9676 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9678 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9680 * Makefile.in (sh_tdep_h): Define and use.
9681 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9682 register enum): Move to...
9683 * * sh-tdep.h: ...here.
9684 * sh-tdep.c: Include sh-tdep.h.
9685 * sh3-rom.c: Likewise.
9686 * shnbsd-tdep.c: Likewise.
9688 2002-05-16 Michael Snyder <msnyder@redhat.com>
9690 * arm-tdep.c: Spelling fix in comment.
9692 2002-05-16 Jim Blandy <jimb@redhat.com>
9694 Add commands for manually expanding macros and showing their
9696 * macrocmd.c, macroscope.c, macroscope.h: New files.
9697 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9698 (macroscope_h): New variable.
9699 (HFILES_NO_SRCDIR): Add macroscope.h.
9700 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9701 (macroscope.o, macrocmd.o): New rules.
9703 Teach the Dwarf 2 reader to read macro information.
9704 * dwarf2read.c: #include "macrotab.h".
9705 (dwarf_macinfo_buffer): New variable.
9706 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9708 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9709 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9710 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9711 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9712 dwarf2_macro_spaces_in_definition): New complaints.
9713 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9714 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9715 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9716 the partial symbol table.
9717 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9718 from what's recorded in the partial symbol table.
9719 (read_file_scope): If the compilation unit has a
9720 `DW_AT_macro_info' attribute, read its macro information.
9721 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9723 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9726 * ser-tcp.c: Don't include <netinet/udp.h>.
9728 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9730 * MAINTAINERS: Update my email address.
9732 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9734 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9735 include file of the same name.
9737 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9739 * configure.tgt: Mark v850 as multi-arched.
9740 * config/v850/tm-v850.h: Remove file.
9741 * config/v850/v850.mt: Eliminate TM_FILE.
9743 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9745 * v850-tdep.c: Full multi-arch.
9746 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9747 Define GDB_MULTI_ARCH to 2.
9749 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9751 * p-exp.y (current_type): New static variable.
9752 Carries the type of the expression at the position that is parsed.
9753 (push_current_type, pop_current_type): Two new functions. Used
9754 to store/restore current_type in expression on specific tokens.
9755 (search_field): New static variable. Set to one after parsing a point
9756 as at that point only a FIELDNAME token should be searched.
9757 (FIELDNAME): New token. After a point only a token belonging to
9758 current_type type definition is allowed.
9759 (all over token rules): reset and change current_type according
9761 (exp '[' rule): insert implicit array index field if
9762 exp is a pascal string type.
9764 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9766 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9767 frame info. Use frame_info's saved_regs instead of matching member
9768 in extra_frame_info throughout.
9769 (v850_frame_init_saved_regs): New function.
9770 (v850_init_extra_frame_info): Move most functionality into
9771 v850_frame_init_saved_regs().
9772 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9773 (v850_frame_find_saved_regs): Remove declaration.
9774 (FRAME_FIND_SAVED_REGS): Remove definition.
9775 (v850_frame_init_saved_regs): Add declaration.
9776 (FRAME_INIT_SAVED_REGS): Add definition.
9778 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9780 * v850-tdep.c: Begin multi-arch'ing v850.
9781 (v850_target_architecture_hook): Remove function.
9782 (v850_gdbarch_init): New function. Add code previously in
9783 v850_target_architecture_hook().
9784 (_initialize_v850_tdep): Don't set target_architecture_hook.
9785 Call register_gdbarch_init() instead.
9787 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9789 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9790 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9791 (fixup_class_method_type): Likewise.
9793 2002-05-15 Jim Blandy <jimb@redhat.com>
9795 Add macro structures to GDB's symbol tables. Nobody puts anything
9797 * symtab.h (struct symtab): New member: `macro_table'.
9798 * buildsym.h (pending_macros): New global variable.
9799 * buildsym.c: #include "macrotab.h".
9800 (buildsym_init): Initialize `pending_macros'.
9801 (end_symtab): If we found macro information while reading a CU's
9802 debugging info, do build a symtab structure for it. Make the
9803 symtab point to the macro information, and clear the
9804 `pending_macros' pointer which held it while we were reading the
9806 (really_free_pendings): Free any pending macro table.
9807 * objfiles.h (struct objfile): New member: `macro_cache'.
9808 * objfiles.c (allocate_objfile): Set allocate and free functions
9809 for the macro cache's objstack.
9810 (free_objfile): Empty the macro cache's obstack.
9811 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9812 set new allocate and free functions for it.
9813 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9814 free functions for the macro cache's objstack. (Why is this
9815 function building its own objfile?)
9816 * symmisc.c (print_objfile_statistics): Print statistics on the
9818 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9820 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9822 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9823 (REGISTER_U_ADDR): Delete definition.
9824 (arm_register_u_addr): Delete declaration.
9826 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9828 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9829 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9831 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9833 * regcache.c (register_valid): Revise comments refering to "Not
9834 available" and "unavailable".
9835 * frame.c (frame_register_read): Ditto.
9836 * findvar.c (value_of_register): Ditto.
9838 2002-05-15 Andrew Cagney <cagney@redhat.com>
9840 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9841 (remote-sim.o): Update dependencies.
9842 (d10v-tdep.o): Specify dependencies.
9843 (sim_d10v_h): Define.
9845 2002-05-14 Jim Blandy <jimb@redhat.com>
9847 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9848 * macrotab.c (macro_lookup_inclusion, find_definition,
9849 new_macro_table): Same.
9851 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9852 not `! strcmp ()'. This is a dubious improvement.
9853 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9855 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9856 although it's not necessary, to avoid a warning.
9858 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9860 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9861 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9862 TYPE_INSTANCE_FLAGS.
9863 (struct main_type): New.
9864 (struct type): Move most members to struct main_type. Change
9865 cv_type and as_type to new type_chain member. Add instance_flags.
9866 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9867 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9868 (finish_cv_type): Remove prototype.
9869 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9871 (alloc_type_instance): New function.
9872 (smash_type): New function.
9873 (make_pointer_type, make_reference_type, make_function_type)
9874 (smash_to_member_type, smash_to_method_type): Call smash_type.
9875 (make_qualified_type): New function.
9876 (make_type_with_address_space): Call make_qualified_type.
9877 (make_cv_type): Likewise.
9878 (finish_cv_type): Remove unnecessary function.
9879 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9880 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9881 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9882 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9883 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9884 * hpread.c (hpread_read_struct_type): Likewise.
9885 * stabsread.c (read_struct_type): Likewise.
9887 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9889 * configure.tgt: Add a catch all sh* target, for cases like
9890 sh[2,3,4]-elf and sh-hms.
9892 2002-05-14 Keith Seitz <keiths@redhat.com>
9894 * event-loop.c (create_file_handler): Don't do anything but
9895 update data when we are given a fd which we are already
9898 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9900 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9901 (update_context): Use __func__ in warnings.
9903 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9905 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9906 and tcp_close to net_open and net_close.
9907 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9908 using UDP if requested. Don't try to disable Nagle on UDP
9910 * remote.c (remote_serial_open): New function. Warn about UDP.
9911 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9913 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9915 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9917 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9919 * configure.tgt: Remove sh-hms target.
9920 * MAINTAINERS: Don't list sh-hms as a separate target.
9922 2002-05-13 Jim Blandy <jimb@redhat.com>
9924 Add first preprocessor macro-expansion files.
9925 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9926 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9927 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9928 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9929 (COMMON_OBS): Add macrotab.o, macroexp.o.
9930 (macroexp.o, macrotab.o): New rules.
9932 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9934 * config/m88k/tm-m88k.h: Update copyright.
9935 (m88k_target_write_pc): Declare
9936 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9937 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9938 (SHIFT_INST_REGS): Update definition.
9939 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9940 using old definition of TARGET_WRITE_PC.
9941 * regcache.c (generic_target_write_pc): Delete code handling
9943 * gdbarch.sh (NNPC_REGNUM): Delete.
9944 * gdbarch.h, gdbarch.c: Regenerate.
9946 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9948 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9951 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9953 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9954 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9955 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9957 * c-typeprint.c (cp_type_print_method_args): Likewise.
9958 (c_type_print_args): Likewise.
9959 * d10v-tdep.c (d10v_push_arguments): Likewise.
9960 (d10v_extract_return_value): Likewise.
9961 * expprint.c (print_subexp): Likewise.
9962 * gdbtypes.c (lookup_primitive_typename): Likewise.
9963 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9964 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9965 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9966 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9967 (TYPE_VECTOR): Likewise.
9968 * hpread.c (hpread_read_struct_type)
9969 (fix_static_member_physnames, fixup_class_method_type)
9970 (hpread_type_lookup): Likewise.
9971 * mdebugread.c (parse_symbol, parse_type): Likewise.
9972 * p-lang.c (is_pascal_string_type): Likewise.
9973 * valops.c (hand_function_call): Likewise.
9974 * x86-64-tdep.c (classify_argument): Likewise.
9976 * hpread.c (hpread_read_function_type)
9977 (hpread_read_doc_function_type): Call replace_type.
9978 * dstread.c (create_new_type): Delete.
9979 (decode_dst_structure, process_dst_function): Call alloc_type.
9980 Use type access macros.
9982 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9984 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9985 the're not supported by the current architecture.
9986 (i387_fill_fxsave): Likewise.
9988 2002-05-12 Fred Fish <fnf@redhat.com>
9990 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9991 sect_index_xxx members to index the first slot in section_offsets
9992 if all of the section_offsets are zero.
9994 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9996 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9997 checked in with last change.
9999 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10001 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10002 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10005 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10007 * Makefile.in: Update dependencies.
10009 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10011 * language.c (local_hex_string_custom): Simplify. Do not depend
10012 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10014 * memattr.c (mem_info_command): Replace calls to
10015 longest_local_hex_string and longest_local_hex_string_custom.
10016 * buildsym.c (make_blockvector): Ditto.
10017 * solib.c (info_sharedlibrary_command): Ditto.
10018 * tracepoint.c (tracepoints_info): Ditto.
10019 * symtab.c (print_msymbol_info): Ditto.
10021 * language.c (local_hex_string): Delete.
10022 (local_hex_string_custom): Delete.
10023 (longest_local_hex_string): Rename to local_hex_string.
10024 (longest_local_hex_string_custom): Rename to
10025 local_hex_string_custom.
10026 * language.h (local_hex_string): Change parameter type to LONGEST.
10027 (local_hex_string_custom): Ditto.
10028 (longest_local_hex_string): Delete declaration.
10029 (longest_local_hex_string_custom): Ditto.
10031 * solib.c: Update copyright.
10032 * memattr.c: Update copyright.
10034 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10036 * arch-utils.h (legacy_register_to_value): Declare.
10037 (legacy_value_to_register): Declare.
10038 (legacy_convert_register_p): Declare.
10039 * arch-utils.c (legacy_register_to_value): New function.
10040 (legacy_value_to_register): New function.
10041 (legacy_convert_register_p): New function.
10043 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10044 (VALUE_TO_REGISTER): Define.
10045 (CONVERT_REGISTER_P): Define.
10046 * gdbarch.h, gdbarch.c: Regenerate.
10048 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10050 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10051 CONVERT_REGISTER_P.
10053 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10054 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10056 * Makefile.in: Update dependencies for valops.c.
10057 * valops.c: Include "gdb_assert.h".
10058 (typecmp): Skip THIS parameter to methods.
10059 (find_method_list): Remove static_memfuncp argument,
10060 update callers. Check for stub methods.
10061 (find_value_oload_method_list): Don't set *static_memfuncp.
10062 (find_overload_match): Don't check for stub methods. Assert
10063 that methods are not stubbed. Handle static methods.
10064 (value_find_oload_method_list): Remove static_memfuncp argument.
10065 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10066 to the argument list for static stub methods.
10067 * value.h (value_find_oload_method_list): Update prototype.
10069 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10071 * arch-utils.h (generic_register_size): Declare.
10072 (generic_register_raw_size, generic_register_virtual_size): Delete
10074 * arch-utils.c (generic_register_raw_size): Delete.
10075 (generic_register_size): New function.
10076 (generic_register_virtual_size): Delete.
10078 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10079 default generic_register_size.
10080 * gdbarch.h, gdbarch.c: Re-generate.
10082 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10083 register_virtual_size.
10084 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10085 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10087 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10089 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10090 * gdbarch.h, gdbarch.c: Regenerate.
10091 * gnu-v3-abi.c: Update copyright.
10092 (vtable_address_point_offset): Update.
10093 (gnuv3_rtti_type): Update.
10094 (gnuv3_baseclass_offset): Update.
10095 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10096 (init_fetch_link_map_offsets): Update.
10097 * remote.c (get_remote_state): Update.
10099 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10101 * TODO: Remove value_headof/value_from_vtable_info comment.
10102 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10103 * values.c (value_headof, value_from_vtable_info): Delete.
10104 * value.h (value_from_vtable_info): Delete prototype.
10106 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10108 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10109 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10111 (gdb_assert_h): Define.
10112 (gdb_wait_h): Define.
10113 (gdb_regex_h): Define.
10115 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10117 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10118 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10120 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10122 * nbsd-tdep.c: Fix comment.
10124 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10126 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10127 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10128 (nbsd-tdep.o): New dependency list.
10129 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10131 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10132 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10133 * nbsd-tdep.c: New file.
10134 * nbsd-tdep.h: New file.
10135 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10137 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10138 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10139 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10140 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10142 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10144 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10145 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10146 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10147 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10148 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10149 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10151 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10153 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10154 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10155 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10156 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10157 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10158 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10159 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10161 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10163 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10164 fetch_elfcore_registers to...
10165 * i386nbsd-tdep.c: ...here.
10166 (i386nbsd_use_struct_convention): Rename to...
10167 (i386nbsd_aout_use_struct_convention): ...this.
10168 (i386nbsd_supply_reg): New function.
10169 (i386nbsd_fill_reg): New function.
10170 (fetch_core_registers): Use i386nbsd_supply_reg.
10171 (fetch_elfcore_registers): Likewise.
10172 (_initialize_i386nbsd_tdep): New function.
10173 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10174 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10175 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10176 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10177 (i386nbsd_aout_use_struct_convention): ...this.
10179 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10181 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10182 (store_inferior_registers): Use shnbsd_fill_reg.
10183 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10184 sh_nbsd_supply_register): Collapse into...
10185 (shnbsd_supply_reg): ...this.
10186 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10187 (shnbsd_fill_reg): ...this.
10188 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10189 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10190 (fetch_core_registers): Use shnbsd_supply_reg.
10191 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10192 (sh_nbsd_core_fns): Rename to...
10193 (shnbsd_core_fns): ...this.
10194 (sh_nbsd_elfcore_fns): Rename to...
10195 (shnbsd_elfcore_fns): ...this.
10196 (sh_nbsd_init_abi): Rename to...
10197 (shnbsd_init_abi): ...this.
10198 (_initialize_sh_nbsd_tdep): Rename to...
10199 (_initialize_shnbsd_tdep): ...this.
10200 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10201 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10202 sh_nbsd_fill_register): Remove prototypes.
10203 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10205 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10207 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10208 (i387-nat.o): Delete dependency list.
10209 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10210 (x86-64-linux-nat.o): Likewise.
10211 * i387-nat.c: Delete file, moving contents to...
10212 * i387-tdep.c: ...here.
10213 * i387-nat.h: Rename...
10214 * i387-tdep.h: ...to this.
10215 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10216 * i386-linux-nat.c: Likewise.
10217 * i386bsd-nat.c: Likewise.
10218 * i386gnu-nat.c: Likewise.
10219 * i386nbsd-nat.c: Likewise.
10220 * i386v4-nat.c: Likewise.
10221 * x86-64-linux-nat.c: Likewise.
10222 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10223 * config/i386/go32.mh (NATDEPFILES): Likewise.
10224 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10225 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10226 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10227 * config/i386/linux.mh (NATDEPFILES): Likewise.
10228 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10229 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10230 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10231 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10233 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10235 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10236 (alphanbsd-nat.o): Remove dependency list.
10237 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10238 * alphanbsd-nat.c: Delete. Contents moved to...
10239 * alphanbsd-tdep.c: ...here.
10240 (_initialize_alphanbsd_tdep): Register core functions.
10241 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10243 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10245 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10246 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10247 (alphanbsd-nat.o): Likewise.
10248 (alphabsd-tdep.o): New dependency list.
10249 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10250 (fill_gregset): Use alphabsd_fill_reg.
10251 (supply_fpregset): Use alphabsd_supply_fpreg.
10252 (fill_fpregset): Use alphabsd_fill_fpreg.
10253 (fetch_inferior_registers): Use struct reg and struct fpreg
10254 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10255 and alphabsd_supply_fpreg.
10256 (store_inferior_registers): Use struct reg and struct fpreg
10257 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10258 and alphabsd_fill_fpreg.
10259 * alphabsd-tdep.c: New file.
10260 * alphabsd-tdep.h: New file.
10261 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10262 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10263 alphabsd_supply_fpreg.
10264 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10265 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10267 2002-05-11 Eric Christopher <echristo@redhat.com>
10269 * mips-tdep.c (mips_double_register_type): Fix thinko.
10270 (mips_single_register_type): Ditto.
10271 * MAINTAINERS: Add self.
10273 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10275 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10276 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10277 right thing on architectures with different endianness and/or
10280 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10282 From Christian Limpach <chris@Pin.LU>
10283 * configure.in: Change sed expression which comments out
10284 NATDEPFILES to also comment out continuation lines.
10285 * configure: Regenerate.
10287 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10289 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10292 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10294 * sh-tdep.c: Include correct file.
10296 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10298 New support for sh64-elf (sh5) target.
10300 * configure.tgt: For sh64-elf target, default to sh-elf.
10302 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10303 (struct gdbarch_tdep): Add new fields for new registers and ABI
10306 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10307 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10308 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10309 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10310 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10311 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10312 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10313 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10314 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10315 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10316 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10317 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10318 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10319 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10320 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10321 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10322 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10323 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10324 sign_extend, sh64_nofp_frame_init_saved_regs,
10325 sh64_init_extra_frame_info, sh64_get_saved_register,
10326 sh64_extract_struct_value_address, sh64_pop_frame,
10327 sh64_push_arguments, sh64_extract_return_value,
10328 sh64_store_return_value, sh64_show_media_regs,
10329 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10330 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10331 sh_sh64_register_virtual_type,
10332 sh_sh64_register_convert_to_virtual,
10333 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10334 sh64_register_read, sh64_pseudo_register_write,
10335 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10336 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10337 sh64_do_pseudo_register, sh_compact_do_registers_info,
10338 sh64_do_registers_info, sh_gdbarch_init): New functions.
10340 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10342 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10344 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10346 * linespec.c (decode_line_1): Check for a double quote after
10347 a filename correctly.
10349 2002-05-10 Jim Blandy <jimb@redhat.com>
10351 Properly track the size of the current objfile's .debug_line section.
10352 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10353 (DWARF_LINE_SIZE): New macro.
10354 (dwarf2_build_psymtabs_hard): Record the line section's size in
10355 the partial symbol table.
10356 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10359 2002-05-10 Petr Sorfa <petrs@caldera.com>
10361 * ia64-tdep.c: Handle breakpoints on L instruction type
10362 in MLX instruction bundle by moving the breakpoint to
10363 the third slot (X instruction type) as L holds only data.
10365 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10367 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10368 (process_one_symbol): Complain about discarding local symbols
10369 due to a misplaced N_LBRAC entry.
10371 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10373 From Daniel Berlin <dan@cgsoftware.com>
10374 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10375 decrease the depth we are at, in the case of templates.
10377 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10379 * mips-tdep.c (mips_float_register_type): New function.
10380 (mips_double_register_type): New function.
10381 (mips_print_register): Use them.
10382 (do_fp_register_row): Likewise.
10384 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10386 * signals/signals.c (signals): Remove conditional compilation around
10387 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10388 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10390 2002-05-09 Michael Snyder <msnyder@redhat.com>
10392 * remote-rdp.c (remote_rdp_can_run): Remove.
10394 2002-05-09 Tom Tromey <tromey@redhat.com>
10396 * jv-valprint.c (java_val_print): Handle `char' as a special case
10399 2002-05-09 Michael Snyder <msnyder@redhat.com>
10401 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10402 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10403 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10404 str r(0123),[sp,#nn].
10405 (arm_skip_prologue): Ditto. Also make disassembly
10406 order-independent by placing it in a loop.
10408 2002-05-06 Michael Snyder <msnyder@redhat.com>
10410 * stabsread.c (read_type): Add recognition for new attribute:
10411 "@V;" means that an array type is actually a vector.
10412 This is analogous to the vector flag that's been added to dwarf2.
10414 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10416 * i386-tdep.h (i386_abi): New enum.
10417 (struct gdbarch_tdep): Replace os_ident member with abi.
10418 (i386_gdbarch_register_os_abi): New prototype.
10419 * i386-tdep.c (i386_abi_names): New array.
10420 (process_note_abi_tag_sections): Removed.
10421 (process_note_sections): New function.
10422 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10423 (struct i386_abi_handler): New struct.
10424 (i386_abi_handler_list): New variable.
10425 (i386_gdbarch_register_os_abi): New function.
10426 (i386_gdbarch_init): Adapt for the changes given above.
10428 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10430 * gregset.h: Say "GNU/Linux".
10432 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10434 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10435 (build_gdbtypes): Build builtin_type_v2_float.
10436 (_initialize_gdbtypes): Register new builtin type.
10438 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10440 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10441 (clear_gdbarch_swap): New function.
10442 (initialize_non_multiarch): Call.
10443 (gdbarch_update_p): Before calling init(), swap out and clear the
10444 existing architecture.
10445 * gdbarch.c: Regenerate.
10447 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10449 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10452 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10454 * sh-nbsd-nat.c: Rename to...
10455 * shnbsd-nat.c: ...this.
10456 * sh-nbsd-tdep.c: Rename to...
10457 * shnbsd-tdep.c: ...this.
10458 * sh-nbsd-tdep.h: Rename to...
10459 * shnbsd-tdep.h: ...this.
10460 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10461 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10463 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10465 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10466 concatenation for command help messages.
10468 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10470 * NEWS: Note new sh*-*-netbsdelf* configuration.
10471 * configure.host: Set gdb_host_cpu to sh for all sh*.
10472 (sh*-*-netbsdelf*): New host.
10473 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10474 (sh*-*-netbsdelf*): New target.
10475 * sh-nbsd-nat.c: New file.
10476 * sh-nbsd-tdep.c: New file.
10477 * sh-nbsd-tdep.h: New file.
10478 * config/sh/nbsd.mh: New file.
10479 * config/sh/nbsd.mt: New file.
10480 * config/sh/nm-nbsd.h: New file.
10481 * config/sh/tm-nbsd.h: New file.
10483 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10485 * sh-tdep.c (sh_osabi_names): Declare.
10486 (process_note_abi_tag_sections): New function.
10487 (get_elfosabi): Ditto.
10488 (sh_gdbarch_register_os_abi): Ditto.
10489 (sh_dump_tdep): Ditto.
10490 _initialize_sh_tdep): Use gdbarch_register to register
10491 sh_gdbarch_init and sh_dump_tdep.
10492 * config/sh/tm-sh.h (sh_osabi): Declare.
10493 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10495 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10497 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10498 (thumb_scan_prologue): Ditto.
10499 (arm_find_callers_reg): Ditto.
10500 (arm_frame_chain): Ditto.
10501 (arm_init_extra_frame_info): Ditto.
10502 (arm_frame_saved_pc): Ditto.
10503 (arm_pop_frame): Ditto.
10504 (arm_push_return_address): New function.
10505 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10506 call_dummy_location, call_dummy_breakpoint_offset_p,
10507 call_dummy_breakpoint_offset, call_dummy_p,
10508 call_dummy_stack_adjust_p, call_dummy_words,
10509 sizeof_call_dummy_words, call_dummy_start_offset,
10510 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10511 call_dummy_address, push_return_address and push_dummy_frame for
10512 generic dummy frames.
10514 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10516 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10517 size computation for alloca.
10518 (sh_fp_frame_init_saved_regs): Likewise.
10520 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10522 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10523 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10524 * arm-tdep.c (arm_store_return_value): Use them.
10525 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10526 * remote-rdp.c (remote_rdp_fetch_register): Use
10527 ARM_MAX_REGISTER_RAW_SIZE.
10528 (remote_rdp_store_register): Likewise.
10530 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10532 * dwarf2cfi.c: Code cleanup, removed unused variables,
10533 added default labels to switch {} statements.
10534 * x86-64-tdep.c: Ditto.
10535 * x86-64-linux-nat.c: Ditto.
10537 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10539 * solib.h: Protect against multiple inclusion.
10541 2002-05-06 Jim Blandy <jimb@redhat.com>
10543 Add first preprocessor macro-expansion files.
10544 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10545 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10546 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10547 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10548 (COMMON_OBS): Add macrotab.o, macroexp.o.
10549 (macroexp.o, macrotab.o): New rules.
10551 Separate the job of reading the line number info statement program
10552 header (...expialidocious) out into its own function.
10553 * dwarf2read.c (struct line_head, struct filenames, struct
10554 directories): Replace with...
10555 (struct line_header): New structure, containing the full
10556 contents of the statement program header, including the
10557 include directory and file name tables.
10558 (read_file_scope): If we have line number info, instead of just
10559 calling dwarf_decode_lines to do all the work, call
10560 dwarf_decode_line_header first to get a `struct line_header'
10561 containing the data in the statement program header, and then
10562 pass that to dwarf_decode_lines, which will pick up where that
10563 left off. Be sure to clean up the `struct line_header' object.
10564 (dwarf_decode_line_header, free_line_header, add_include_dir,
10565 add_file_name): New functions.
10566 (dwarf_decode_lines): Move all the code to read the statement
10567 program header into dwarf_decode_line_header. Take the line
10568 header it built as the first argument, instead of the offset to
10569 the compilation unit's line number info. Use the new `struct
10570 line_header' type instead of the old structures. No need to do
10571 cleanups here now, since we don't allocate anything.
10572 (dwarf2_statement_list_fits_in_line_number_section,
10573 dwarf2_line_header_too_long): New complaints.
10575 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10577 * gdbtypes.c (init_vector_type): New function.
10578 (build_builtin_type_vec128): Simplify the representation of SIMD
10580 (build_gdbtypes): Initialize new builtin vector types.
10581 (_initialize_gdbtypes): Register new vector types with gdbarch.
10582 (builtin_type_v4_float, builtin_type_v4_int32,
10583 builtin_type_v8_int16, builtin_type_v16_int8,
10584 builtin_type_v2_int32, builtin_type_v4_int16,
10585 builtin_type_v8_int8): New (renamed) SIMD types.
10587 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10589 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10590 (i387_fill_fxsave): Likewise.
10592 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10594 * alpha-tdep.c (alpha_extract_return_value): Don't use
10595 non-constant array size in prototype.
10597 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10599 From Brian Taylor <briant at model dot com>:
10600 * ui-out.c (ui_out_field_core_addr): Use the function
10601 longest_local_hex_string_custom'to format addresses > 32 bits
10604 * ui-out.c (ui_out_field_core_addr): Update comment.
10606 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10608 * stack.c (select_and_print_frame): Make static. Delete the
10610 (func_command): Update call.
10611 (select_frame_command): Delete code computing the frame level.
10612 * frame.h (select_and_print_frame): Delete declaration.
10614 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10616 * sparc-tdep.c (sparc_get_saved_register): Comment why
10617 get_prev_frame call is safe.
10619 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10621 * frame.h (select_frame): Delete level parameter.
10622 * stack.c (select_frame): Update. Use frame_relative_level to
10623 obtain the frame's level.
10624 (select_and_print_frame): Update call.
10625 (select_frame_command): Ditto.
10626 (up_silently_base): Ditto.
10627 (down_silently_base): Ditto.
10628 * ocd.c (ocd_start_remote): Ditto.
10629 * remote-rdp.c (remote_rdp_open): Ditto.
10630 * remote-mips.c (mips_initialize): Ditto.
10631 (common_open): Ditto.
10632 * remote-e7000.c (e7000_start_remote): Ditto.
10633 * m3-nat.c (select_thread): Ditto.
10634 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10635 (child_get_current_exception_event): Ditto.
10636 * varobj.c (varobj_create): Ditto.
10637 (varobj_update): Ditto.
10638 (c_value_of_root): Ditto.
10639 * tracepoint.c (finish_tfind_command): Ditto.
10640 * corelow.c (core_open): Ditto.
10641 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10642 * thread.c (info_threads_command): Ditto.
10643 (switch_to_thread): Ditto.
10644 * infrun.c (normal_stop): Ditto.
10645 (restore_selected_frame): Ditto.
10646 (restore_inferior_status): Ditto.
10647 * breakpoint.c (insert_breakpoints): Ditto.
10648 (watchpoint_check): Ditto.
10649 (bpstat_stop_status): Ditto.
10650 (do_enable_breakpoint): Ditto.
10651 * blockframe.c (flush_cached_frames): Ditto.
10652 (reinit_frame_cache): Ditto.
10654 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10656 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10659 2002-05-04 Jim Blandy <jimb@redhat.com>
10661 * gdbtypes.c (replace_type): Doc fix.
10663 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10665 * valprint.c (strcat_longest): Delete commented out function.
10668 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10670 * MAINTAINERS: Mark a29k as deleted.
10671 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10672 Move new configurations to the top.
10673 * configure.tgt: Remove a29k.
10674 * config/a29k/tm-vx29k.h: Delete.
10675 * config/a29k/vx29k.mt: Delete.
10676 * config/a29k/tm-a29k.h: Delete.
10677 * config/a29k/a29k-udi.mt: Delete.
10678 * config/a29k/a29k.mt: Delete.
10679 * a29k-tdep.c: Delete.
10680 * remote-udi.c: Delete.
10681 * remote-mm.c: Delete.
10682 * remote-eb.c: Delete.
10683 * remote-adapt.c: Delete.
10684 * Makefile.in: Remove obsolete code.
10685 * config/s390/s390x.mt: Ditto.
10686 * config/s390/s390.mt: Ditto.
10687 * config/sparc/sparclynx.mh: Ditto.
10688 * config/sparc/linux.mh: Ditto.
10689 * config/pa/hppaosf.mh: Ditto.
10690 * config/pa/hppabsd.mh: Ditto.
10691 * config/ns32k/nbsd.mt: Ditto.
10692 * config/mips/vr5000.mt: Ditto.
10693 * config/m68k/sun3os4.mh: Ditto.
10694 * config/m68k/nbsd.mt: Ditto.
10695 * config/m68k/m68klynx.mh: Ditto.
10696 * config/m32r/m32r.mt: Ditto.
10697 * config/i386/x86-64linux.mt: Ditto.
10698 * config/i386/nbsdelf.mt: Ditto.
10699 * config/i386/nbsd.mt: Ditto.
10700 * config/i386/i386lynx.mh: Ditto.
10702 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10704 * target.c (debug_print_register): New function. Handle oversize
10706 (debug_to_fetch_registers): Call.
10707 (debug_to_store_registers): Call.
10709 2002-05-03 Jim Blandy <jimb@redhat.com>
10711 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10712 (read_type): Doc fix.
10713 * gdbtypes.c (replace_type): Doc fix.
10715 * stabsread.c (multiply_defined_struct): New complaint.
10716 (read_struct_type): If the type we were passed isn't empty, or
10717 incomplete, don't read the new struct type into it; complain,
10718 and return the original type unchanged. Take a new `type_code'
10719 argument, which is the type code for the new type.
10720 (read_type): Rather than storing the type's type code here, pass
10721 it as an argument to read_struct_type, and let that take care of
10722 storing it. That way, we don't overwrite the original type code,
10723 so read_struct_type can use it to decide whether we're overwriting
10724 something we shouldn't.
10725 (complain_about_struct_wipeout): New function.
10727 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10729 * gdbarch.sh: Assert that gdbarch is non-NULL.
10730 * gdbarch.c: Regenerate.
10732 2002-05-03 Jason Merrill <jason@redhat.com>
10734 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10737 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10739 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10740 (x86_64_dwarf2gdb_regno_map_length),
10741 (x86_64_dwarf2_reg_to_regnum): Added.
10742 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10743 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10744 (_initialize_x86_64_tdep): Synced with the change above.
10745 (x86_64_skip_prologue): Reformulated message.
10747 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10749 * f-exp.y: Also use new prev_lexptr variable
10750 to improve error reporting. Based on Michael Snyder
10751 2002-04-24 dated patch to c-exp.y.
10752 * jv-exp.y: Likewise.
10753 * m2-exp.y: Likewise.
10755 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10757 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10758 we are dealing with vectors.
10760 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10762 * config/m68k/tm-nbsd.h: Obvious fix,
10763 correct machine name.
10765 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10767 * p-typeprint.c (pascal_type_print_base): Add support
10768 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10770 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10772 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10773 for fondamental pascal 'char' type.
10775 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10777 * p-lang.h (is_pascal_string_type): Declaration changed,
10778 new sixth argument of type char ** added.
10779 * p-lang.c (is_pascal_string_type): Implementation
10780 changed. Args length_pos, length_size, string_pos, char_size
10781 can now be NULL. New argument arrayname set to the field
10782 name of the char array. Return value set to char array
10783 field index plus one.
10784 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10785 is_pascal_string_type function.
10787 2002-05-02 Andrew Cagney <cagney@redhat.com>
10789 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10790 <cagney@redhat.com> change.
10791 * gdbarch.c: Regenerate.
10793 2002-05-02 Andrew Cagney <cagney@redhat.com>
10795 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10796 before probing for a new one. Detect errorenous gdbarch_init
10798 * gdbarch.c: Regenerate.
10800 2002-05-01 Andrew Cagney <cagney@redhat.com>
10802 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10803 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10804 * config/v850/tm-v850.h: Ditto. Update copyright.
10806 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10808 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10811 2002-04-30 Michael Snyder <msnyder@redhat.com>
10813 * arm-tdep.c: Whitespace clean-ups.
10814 (arm_skip_prologue): Fix thinko; two lines
10815 should have been removed as part of 4/24 change.
10817 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10819 * rs6000-tdep.c: Added comment describing how fpscr register
10820 numbers were chosen.
10822 2002-04-30 Michael Snyder <msnyder@redhat.com>
10824 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10826 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10828 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10829 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10830 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10832 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10834 From Louis Hamilton <hamilton@redhat.com>:
10835 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10836 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10837 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10838 not bfd-private xcoff data, to determine wordsize.
10839 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10841 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10843 GDB 5.2 released from 5.2 branch.
10845 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10847 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10848 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10849 (x86_64_register_info_table): Added comments with register numbers.
10851 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10853 * rs6000-tdep.c (rs6000_extract_return_value,
10854 rs6000_store_return_value): Handle returning vectors.
10855 (rs6000_gdbarch_init): Use
10856 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10857 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10859 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10861 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10862 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10864 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10866 * hpread.c (hpread_psymtab_to_symtab_1,
10867 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10868 with fprintf_unfiltered (gdb_stderr,...).
10870 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10872 * remote-array.c (printf_monitor, write_monitor,
10873 array_insert_breakpoint, array_remove_breakpoint ):
10874 Replace fprintf (stderr,...
10875 with fprintf_unfiltered (gdb_stderr,....
10876 * remote-es.c: Likewise.
10877 * remote-os9k.c: Likewise.
10878 * remote-st.c: Likewise.
10880 2002-04-28 Andreas Schwab <schwab@suse.de>
10882 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10883 linux-proc.o and gcore.o.
10885 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10887 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10888 code without frame pointers.
10890 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10892 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10893 ON_STACK is needed.
10895 2002-04-26 Ben Elliston <bje@redhat.com>
10897 * target.c (do_xfer_memory): Correct reference to the new option
10898 "trust-readonly-sections".
10900 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10902 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10903 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10904 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10906 (read_array_type): Record the fact that this array type is really a
10907 vector (i.e. are passed in by value).
10909 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10911 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10912 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10913 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10914 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10915 * alpha-linux-tdep.c: Include frame.h.
10916 (alpha_linux_sigcontext_addr): New function.
10917 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10918 alpha_linux_sigcontext_addr.
10919 * alpha-osf1-tdep.c: Include gdbcore.h.
10920 (alpha_osf1_sigcontext_addr): New function.
10921 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10922 alpha_osf1_sigcontext_addr.
10923 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10924 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10926 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10928 * stack.c (selected_frame_level):
10929 (select_frame): Do not set selected_frame_level.
10930 * frame.h (selected_frame_level): Delete declaration.
10932 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10934 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10935 convert_from_func_ptr-addr when AIX / PowerOpen.
10937 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10939 * valops.c (hand_function_call): Call
10940 generic_save_call_dummy_addr.
10941 * frame.h (generic_save_call_dummy_addr): Declare.
10942 * blockframe.c (struct dummy_frame): Add fields call_lo and
10944 (generic_find_dummy_frame): Check for PC in range call_lo to
10945 call_hi instead of entry_point_address.
10946 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10947 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10948 (generic_save_call_dummy_addr): New function.
10950 2002-04-24 David S. Miller <davem@redhat.com>
10952 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10953 sparc_skip_prologue.
10954 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10955 information to find prologue when possible.
10956 (sparc_prologue_frameless_p): Call examine_prologue directly.
10957 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10958 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10960 (SKIP_PROLOGUE): Likewise.
10962 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10964 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10965 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10966 indicate that the condition it was testing is always true.
10967 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10968 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10969 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10971 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10973 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10974 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10975 tdep->jb_pc and tdep->jb_elt_size.
10976 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10977 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10978 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10979 * alpha-nat.c (get_longjmp_target): Remove.
10980 (JB_ELEMENT_SIZE): Ditto.
10982 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10983 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10984 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10985 to alpha_get_longjmp_target.
10986 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10987 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10988 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10990 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10992 * README: Update to GDB 5.2.
10994 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10996 * gdbarch.sh (LC_ALL): Set to `c'.
10998 2002-04-25 Theodore A. Roth <troth@verinet.com>
11000 * avr-tdep.c: Ran through gdb_indent.sh.
11002 2002-04-25 Theodore A. Roth <troth@verinet.com>
11004 * MAINTAINERS: Add myself as AVR maintainer.
11005 * NEWS: Note new target avr.
11007 2002-04-25 Theodore A. Roth <troth@verinet.com>
11009 * Makefile.in: Add support for AVR target.
11010 * configure.tgt: Add support for AVR target.
11011 * avr-tdep.c: New file
11012 * config/avr/avr.mt: New file.
11014 2002-04-25 Theodore A. Roth <troth@verinet.com>
11016 * MAINTAINERS: Add myself to write-after-approval.
11018 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11020 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11021 with fprintf_unfiltered (gdb_stderr,....
11023 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11026 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11028 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11030 * p-exp.y: Also use new prev_lexptr variable
11031 to improve error reporting. Based on Michael Snyder
11032 2002-04-24 dated patch to c-exp.y.
11034 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11036 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11037 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11038 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11040 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11042 (FUNCTION_START_OFFSET): Remove.
11043 (BREAKPOINT): Ditto.
11045 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11047 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11050 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11052 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11053 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11054 alpha_linux_pc_in_sigtramp.
11055 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11056 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11057 alpha_osf1_pc_in_sigtramp.
11058 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11059 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11060 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11061 alphafbsd_pc_in_sigtramp.
11062 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11063 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11064 alphanbsd_pc_in_sigtramp.
11065 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11066 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11068 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11070 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11072 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11074 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11076 (alphanbsd-nat.o): New dependency list.
11077 (alphanbsd-tdep.o): Ditto.
11078 * NEWS: Note new native NetBSD/alpha configuration.
11079 * alphanbsd-nat.c: New file.
11080 * alphanbsd-tdep.c: Ditto.
11081 * configure.host (alpha*-*-netbsd*): New host.
11082 * configure.tgt (alpha*-*-netbsd*): New target.
11083 * config/alpha/nbsd.mh: New file.
11084 * config/alpha/nbsd.mt: Ditto.
11085 * config/alpha/nm-nbsd.h: Ditto.
11086 * config/alpha/tm-nbsd.h: Ditto.
11088 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11090 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11091 (alpha-osf1-tdep.o): New dependency list.
11092 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11093 and skip_sigtramp_frame members.
11094 * alpha-linux-tdep.c: Include gdbcore.h.
11095 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11096 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11097 * alpha-osf1-tdep.c: New file.
11098 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11100 (alpha_frame_past_sigtramp_frame): New function.
11101 (alpha_dynamic_sigtramp_offset): Ditto.
11102 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11103 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11104 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11105 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11106 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11107 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11108 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11109 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11110 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11111 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11112 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11113 to find_solib_trampoline_target.
11114 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11115 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11116 (SKIP_TRAMPOLINE_CODE): Remove.
11117 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11118 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11119 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11120 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11121 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11122 (PROC_SIGTRAMP_MAGIC): Ditto.
11123 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11124 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11125 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11126 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11127 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11129 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11131 * NEWS: Note that Alpha targets are now multi-arch.
11133 2002-04-24 Michael Snyder <msnyder@redhat.com>
11135 * parser-defs.h (prev_lexptr): New external variable.
11136 * parse.c (parse_exp_1): Set prev_lexptr to null before
11137 calling the language-specific parser.
11138 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11139 (yyerror): Use prev_lexptr in error reporting.
11141 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11143 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11144 * gregset.h: If FILL_FPXREGSET is defined, provide
11145 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11146 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11147 is defined, call fill_fpxregset.
11149 2002-04-24 Roland McGrath <roland@frob.com>
11151 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11152 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11153 (supply_gregset, supply_fpregset): New functions.
11155 * gnu-nat.c (gnu_find_memory_regions): New function.
11156 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11157 (gnu_xfer_memory): Add a cast.
11159 2002-04-24 Michael Snyder <msnyder@redhat.com>
11161 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11162 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11163 of argument regs ("str r(0123), [r11, #-nn"]).
11164 (arm_skip_prologue): Better handling for frameless functions.
11165 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11166 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11168 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11170 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11171 NUM_PSEUDO_REGS can be used.
11173 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11175 * arch-utils.h: Update copyright.
11177 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11178 * gdbarch.h, gdbarch.c: Re-generate.
11180 * inferior.h (IN_SIGTRAMP): Delete definition.
11181 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11182 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11184 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11185 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11186 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11187 (find_proc_framesize): Ditto.
11188 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11189 (alpha_init_extra_frame_info): Ditto.
11190 * infrun.c (handle_inferior_event): Ditto.
11191 (handle_inferior_event): Ditto.
11192 (check_sigtramp2): Ditto.
11193 * blockframe.c (create_new_frame): Ditto.
11194 (get_prev_frame): Ditto.
11195 * ppc-linux-tdep.c: Update comments.
11196 * i386-linux-tdep.c: Update comments.
11197 * breakpoint.c (bpstat_what): Update comment.
11199 2002-04-24 David S. Miller <davem@redhat.com>
11201 * i960-tdep.c (register_in_window_p): New function.
11202 (i960_find_saved_register): Use it instead of
11203 REGISTER_IN_WINDOW_P.
11204 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11206 * symtab.h (find_stab_function_addr): Kill extern.
11207 * minsyms.c (find_stab_function_addr): Remove from here...
11208 * dbxread.c: ... to here, and mark it static.
11210 2002-04-20 David S. Miller <davem@redhat.com>
11212 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11213 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11215 2002-04-21 David S. Miller <davem@redhat.com>
11217 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11218 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11219 (vx_write_register): Likewise.
11221 2002-04-23 J. Brobecker <brobecker@gnat.com>
11223 * source.c (is_regular_file): New function.
11224 (openp): Check wether file to open is a regular file
11225 to avoid opening directories.
11227 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11229 * findvar.c (extract_signed_integer): Cast printf argument
11230 to suppress format warning.
11231 (extract_unsigned_integer): Likewise.
11232 * infcmd.c (registers_info): Likewise.
11233 * top.c (get_prompt_1): Likewise.
11234 * valops.c (value_assign): Likewise.
11235 * valprint.c (print_decimal): Likewise.
11237 2002-04-22 H.J. Lu (hjl@gnu.org)
11239 * c-exp.y (typebase): Support
11241 [long|long long|short] [signed|unsigned] [int|]
11245 signed [long|long long|short] int
11247 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11249 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11251 * vax-tdep.h: New file.
11252 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11253 Make several routines static.
11254 (vax_get_saved_register): New function.
11255 (vax_gdbarch_init): New function.
11256 (_initialize_vax_tdep): Register vax_gdbarch_init.
11257 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11258 Remove macros now under the control of gdbarch.
11260 2002-04-22 Michael Snyder <msnyder@redhat.com>
11262 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11263 Some whitespace and coding standards tweaks.
11265 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11267 * vax-tdep.c: Include regcache.h.
11268 (vax_call_dummy_words): New.
11269 (sizeof_vax_call_dummy_words): New.
11270 (vax_fix_call_dummy): New function.
11271 (vax_saved_pc_after_call): Ditto.
11272 * config/vax/tm-vax.h: Don't include regcache.h.
11273 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11274 (CALL_DUMMY): Remove.
11275 (CALL_DUMMY_WORDS): Define.
11276 (SIZEOF_CALL_DUMMY_WORDS): Define.
11277 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11279 2002-04-18 Michael Snyder <msnyder@redhat.com>
11281 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11283 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11285 * vax-tdep.c (vax_frame_chain): New function.
11286 (vax_push_dummy_frame): Ditto.
11287 (vax_pop_frame): Ditto.
11288 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11289 (FRAMELESS_FUNCTION_INVOCATION): Use
11290 generic_frameless_function_invocation_not.
11291 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11292 (POP_FRAME): Use vax_pop_frame.
11294 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11296 * vax-tdep.c (vax_store_struct_return): New function.
11297 (vax_extract_return_value): Ditto.
11298 (vax_store_return_value): Ditto.
11299 (vax_extract_struct_value_address): Ditto.
11300 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11301 vax_store_struct_return.
11302 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11303 (STORE_RETURN_VALUE): Use vax_store_return_value.
11304 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11306 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11308 * vax-tdep.c (vax_frame_saved_pc): New function.
11309 (vax_frame_args_address_correct): Ditto.
11310 (vax_frame_args_address): Ditto.
11311 (vax_frame_locals_address): Ditto.
11312 (vax_frame_num_args): Move code to be in proximity to
11313 other frame-related functions.
11314 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11315 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11316 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11317 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11318 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11320 2002-04-22 H.J. Lu (hjl@gnu.org)
11322 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11325 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11327 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11328 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11329 (FRAME_INIT_SAVED_REGS): New macro.
11331 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11333 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11335 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11337 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11339 (fetch_osf_core_registers): Likewise.
11340 (supply_gregset): Likewise.
11342 2002-04-22 J. Brobecker <brobecker@gnat.com>
11344 * symfile.h (get_section_index): Define.
11345 * symfile.c (get_section_index): New function.
11346 * mdebugread.c (SC_IS_SBSS): New macro.
11347 (SC_IS_BSS): Return true for the scBss storage class only, as
11348 the scSBss storage class refers to the .sbss section.
11349 (parse_partial_symbols): Discard the symbols which associated
11350 section does not exist.
11351 Make sure to use the .sbss section index for symbols which
11352 storage class is scBss, rather than using the .bss section index.
11354 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11356 * vax-tdep.c: Update copyright years.
11357 (vax_register_name): New function.
11358 (vax_register_byte): Ditto.
11359 (vax_register_raw_size): Ditto.
11360 (vax_register_virtual_size): Ditto.
11361 (vax_register_virtual_type): Ditto.
11362 * config/vax/tm-vax.h: Update copyright years.
11363 (REGISTER_NAMES): Remove.
11364 (REGISTER_NAME): Define.
11365 (REGISTER_BYTE): Use vax_register_byte.
11366 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11367 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11368 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11370 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11372 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11374 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11376 2002-04-21 David S. Miller <davem@redhat.com>
11378 * arch-utils.c (generic_prologue_frameless_p): Kill
11379 SKIP_PROLOGUE_FRAMELESS_P code.
11380 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11382 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11383 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11384 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11386 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11387 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11388 (sparc_gdbarch_init): Pass it to
11389 set_gdbarch_prologue_frameless_p.
11391 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11393 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11394 (alphabsd-nat.o): New dependency list.
11396 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11398 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11400 (alpha-linux-tdep.o): New dependency list.
11401 (alphafbsd-tdep.o): Likewise.
11403 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11405 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11407 * alpha-tdep.c: ...from here.
11408 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11410 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11412 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11413 prototype from here...
11414 * alpha-tdep.h: ...to here.
11416 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11418 * frame.h (selected_frame_level): Document as deprecated.
11419 (frame_relative_level): Declare.
11420 * stack.c (frame_relative_level): New function.
11421 (selected_frame_level): Document as deprecated.
11422 (select_frame): Do not set the selected_frame_level.
11424 * stack.c (frame_info, record_selected_frame): Update.
11425 (frame_command, current_frame_command): Update.
11426 (up_silently_base, up_command, down_silently_base): Update.
11427 (down_command): Update.
11428 * inflow.c (kill_command): Update.
11429 * tracepoint.c (finish_tfind_command): Update.
11430 * corelow.c (core_open): Update.
11431 * thread.c (info_threads_command): Update.
11432 (do_captured_thread_select): Update.
11433 * infcmd.c (finish_command): Update.
11434 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11436 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11438 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11440 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11442 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11445 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11447 * alphafbsd-tdep.c: Update copyright years. Include
11449 (alphafbsd_use_struct_convention): Make static.
11450 (alphafbsd_init_abi): New function.
11451 (_initialize_alphafbsd_tdep): New function.
11452 * config/alpha/tm-fbsd.h: Update copyright years.
11453 (USE_STRUCT_CONVENTION): Remove.
11455 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11457 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11458 an Alpha ABI variant.
11459 (alpha_abi_handler_list): Declare.
11460 (alpha_gdbarch_register_os_abi): New function.
11461 (alpha_gdbarch_init): Give registered ABI variant handlers a
11462 chance to tweak the gdbarch once we have set up defaults.
11463 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11465 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11467 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11468 to standard_coerce_float_to_double.
11469 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11471 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11473 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11474 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11475 from gdbarch_tdep rather than a constant.
11476 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11477 the default text address for all Alpha Unix ABIs.
11478 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11479 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11481 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11483 * alpha-tdep.h: New file. Includes several Alpha target constants
11485 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11486 let gdbarch deal with.
11487 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11488 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11489 to dependency list.
11490 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11491 Alpha target register names.
11492 * alphabsd-nat.c: Likewise.
11493 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11494 Alpha target register names. Make serveral routines static.
11495 (alpha_get_saved_register): New function.
11496 (alpha_abi_names): New.
11497 (process_note_abi_tag_sections): New function.
11498 (get_elfosabi): New function.
11499 (alpha_gdbarch_init): New function.
11500 (alpha_dump_tdep): New function.
11501 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11503 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11505 * frame.c (find_saved_register): Delete #ifdef
11506 HAVE_REGISTER_WINDOWS code.
11507 * config/sparc/tm-sparc.h: Update comments.
11508 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11510 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11512 * i960-tdep.c (i960_find_saved_register): New function.
11513 (i960_get_saved_register): New function.
11514 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11515 (i960_get_saved_register): Declare.
11516 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11518 2002-04-20 David S. Miller <davem@redhat.com>
11520 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11522 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11524 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11525 instead of NUM_PSEUDO_REGS.
11527 2002-04-20 David S. Miller <davem@redhat.com>
11529 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11530 GDB_MULTI_ARCH_PARTIAL
11531 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11532 define, let tm-sp64.h do it.
11534 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11536 * frame.c (find_saved_register): Avoid a NULL pointer
11537 dereference and actually walk the frame list.
11539 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11541 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11542 sorted in most most-recent-used order. Document.
11543 * gdbarch.h, gdbarch.c: Regenerate.
11545 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11547 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11549 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11550 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11551 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11554 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11557 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11558 (build_builtin_type_vec128): Ditto.
11559 (append_composite_type_field): Fix calculation of type length in
11562 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11564 * config/djgpp/README: Update.
11566 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11569 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11571 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11572 (alpha_setup_arbitrary_frame): ...to this.
11573 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11574 for alpha_setup_arbitrary_frame.
11576 2002-04-18 Andrew Cagney <cagney@redhat.com>
11578 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11579 * gdbarch.h, gdbarch.c: Regenerate.
11581 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11582 * target.h (memory_breakpoint_from_pc): Update declaration.
11583 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11585 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11586 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11587 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11588 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11589 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11590 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11591 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11592 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11593 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11594 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11595 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11596 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11598 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11600 * monitor.c (monitor_insert_breakpoint): Ditto.
11601 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11603 * config/mcore/tm-mcore.h: Update copyright.
11604 * mem-break.c: Ditto.
11605 * xstormy16-tdep.c: Ditto.
11607 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11609 * p-exp.y: Add precedence rule for '^' token.
11610 This removes the shift/reduce conflicts.
11611 Remove the comment concerning these shift/reduce conflicts.
11613 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11615 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11616 (registers_powerpc_nofp): New register set for processors
11617 without floating point unit.
11619 2002-04-18 David S. Miller <davem@redhat.com>
11621 * MAINTAINERS: Add myself to write-after-approval.
11623 2002-04-17 Michael Snyder <msnyder@redhat.com>
11625 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11627 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11629 * rs6000-tdep.c (frame_initial_stack_address): Use
11630 frame_register_read to read the alloca_reg.
11632 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11634 * frame.c (find_saved_register): Find saved registers in the next
11638 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11640 * gdbarch.sh (LANG): Set to ``c''.
11642 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11644 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11646 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11648 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11651 * hpread.c (hpread_get_lntt): Add declaration.
11652 Also fix PR gdb/391.
11654 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11656 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11657 * aclocal.m4, configure: Re-generate.
11660 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11662 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11663 instead of tm_print_insn.
11665 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11667 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11669 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11671 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11672 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11673 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11675 2002-04-12 Don Howard <dhoward@redhat.com>
11677 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11678 max_user_call_depth.
11679 (init_cmd_lists): Initialize the new value;
11680 * cli/cli-script.c (execute_user_command): Limit the call depth of
11681 user defined commands. This avoids a core-dump when user commands
11682 are infinitly recursive.
11684 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11686 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11687 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11688 from tdep struct instead of DEFAULT_LR_SAVE.
11689 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11690 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11691 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11693 2002-04-12 Michael Snyder <msnyder@redhat.com>
11695 * Remote.c: Spelling fix.
11696 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11697 If no symbol found for "sbrk", try "_sbrk".
11698 (make_output_phdrs): Use bfd_section_name.
11699 (gcore_copy_callback): Use bfd_section_name.
11700 * eval.c: Indentation fix-ups.
11701 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11702 in case it gets applied to an address that is already
11703 in the instruction space.
11704 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11705 * symfile.c: Fix indentation, long lines.
11706 * source.c: White space fix-up.
11708 2002-04-12 Andrew Cagney <cagney@redhat.com>
11710 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11711 * frame.c (frame_register_read): New function. Return non-zero on
11713 (read_relative_register_raw_bytes_for_frame): Delete.
11714 (read_relative_register_raw_bytes): Delete.
11715 * frame.h (frame_register_read): Declare.
11716 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11717 * sh-tdep.c: Ditto.
11718 * infcmd.c (do_registers_info): Ditto.
11719 * hppa-tdep.c: Ditto.
11720 * rs6000-tdep.c: Ditto.
11721 * h8500-tdep.c: Ditto.
11722 * mips-tdep.c: Ditto.
11723 * h8300-tdep.c: Ditto.
11724 * z8k-tdep.c: Ditto.
11726 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11728 From Jimi X <jimix@watson.ibm.com>:
11729 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11732 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11734 From Jimi X <jimix@watson.ibm.com>:
11735 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11738 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11740 From Jimi X <jimix@watson.ibm.com>:
11741 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11742 register sets for these processor variants.
11744 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11746 * regformats/reg-ppc.dat: Support FPSCR.
11748 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11750 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11751 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11752 Add fpscr as an invalid/unfetchable register.
11753 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11754 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11755 (fill_fpregset): Add support for register fpscr.
11756 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11757 (fill_gregset): Account for the fact that register ``mq'' might
11759 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11760 (registers_power): Add fpscr to register set at slot 71.
11761 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11762 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11764 2002-04-11 Michael Snyder <msnyder@redhat.com>
11766 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11767 * configure: Regenerate.
11768 * config.in: Regenerate.
11769 * acconfig.h: Add define for _SYSCALL32.
11770 * core-sol2.c: Remove #define _SYSCALL32.
11771 * solib-legacy.c: Remove #define _SYSCALL32.
11773 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11775 * stack.c (select_frame): Cleanup internal error message, do not
11778 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11780 * stack.c (select_frame): Check that selected_frame and the
11781 specified level are as expected.
11782 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11784 * frame.h (struct frame_info): Add field `level'. Update
11786 Work-in-progress PR gdb/464.
11788 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11790 * maint.c (maint_print_section_info): Rename print_section_info.
11791 (print_bfd_section_info, print_objfile_section_info): Update.
11792 * inferior.h (struct gdbarch): Add opaque declaration.
11793 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11794 * gdbarch.h: Regenerate.
11796 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11798 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11799 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11800 (kernel_u_size): Added.
11801 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11802 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11804 2002-04-04 Jim Ingham <jingham@apple.com>
11806 * valarith.c (find_size_for_pointer_math): New function, either returns
11807 the size for a pointer's target, returns 1 for void *, or errors for
11809 (value_add, value_sub): use find_size_for_pointer_math.
11811 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11813 * linux-low.c (linux_look_up_symbols): New hook.
11814 (linux_target_ops): Add linux_look_up_symbols.
11815 * remote-utils.c (decode_address): New function.
11816 (look_up_one_symbol): New function.
11817 * server.c (handle_query): Call target look_up_symbols hook.
11818 * server.h (look_up_one_symbol): Add prototype.
11819 * target.h (struct target_ops): Add look_up_symbols hook.
11821 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11823 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11824 override FP_REGNUM with frame->fp. Update copyright.
11825 * parse.c (num_std_regs, std_regs): Delete.
11826 (target_map_name_to_register): Do not search std_regs. Update
11827 function description.
11828 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11829 declarations. Update copyright.
11832 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11834 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11835 after the last symbol in a block.
11837 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11839 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11840 is non zero as a found symbol.
11842 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11844 * findvar.c: Include "builtin-regs.h".
11845 (value_of_register): Call value_of_builtin_reg when applicable.
11846 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11847 (target_map_name_to_register): Call
11848 builtin_reg_map_name_to_regnum.
11849 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11850 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11851 (builtin_regs_h): Define.
11852 (builtin-regs.o): New target.
11853 (findvar.o): Add $(builtin_regs_h).
11854 * builtin-regs.c, builtin-regs.h: New files.
11855 * std-regs.c: New file.
11856 Partial fix for PR gdb/251.
11858 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11860 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11861 it's no longer required.
11863 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11865 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11867 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11869 From Jimi X <jimix@watson.ibm.com>:
11870 * rs6000-tdep.c (rs6000_software_single_step): Use
11871 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11872 and size. Use target_insert_breakpoint() and
11873 target_remove_breakpoint() to insert and remove breakpoints
11874 instead of explicit memory reads and writes.
11876 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11878 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11879 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11880 ELF_OBJECT_FORMAT ifdef.
11882 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11884 From Jimi X <jimix@watson.ibm.com>:
11885 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11887 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11889 From Jimi X <jimix@watson.ibm.com>:
11890 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11891 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11893 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11895 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11896 s/asprintf/xasprintf/.
11897 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11899 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11901 I believe Jeff Law denies responsability for this one:
11902 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11903 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11904 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11905 Work-around for PR gdb/366.
11907 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11909 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11910 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11911 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11913 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11915 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11916 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11919 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11921 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11924 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11926 * README (Reporting Bugs in GDB): Document the bug web page as the
11927 prefered way of submitting bugs.
11930 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11932 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11933 -1. Update comment.
11934 * gdbarch.h, gdbarch.c: Re-generate.
11936 2002-04-07 Andreas Schwab <schwab@suse.de>
11938 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11939 buffer to regcache_collect.
11941 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11943 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11944 * gdbarch.c, gdbarch.h: Re-generate.
11946 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11948 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11949 declaration. Fix -Werror.
11951 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11953 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11954 * gdbarch.c: Regenerate.
11956 2002-04-05 Michael Snyder <msnyder@redhat.com>
11958 * breakpoint.c (clear_command): Rewrite middle section to
11959 combine two loops with identical control conditions.
11960 Add a cleanup to eliminate a memory leak.
11961 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11963 2002-04-05 H.J. Lu (hjl@gnu.org)
11965 * solib-svr4.c (bkpt_names): Add "__start".
11967 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11969 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11970 as test for 64 bit target.
11972 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11974 * h8500-tdep.c (h8500_write_fp): Delete function.
11975 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11976 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11977 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11978 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11979 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11980 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11982 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11983 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11984 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11985 (d10v_write_fp): Delete function.
11986 * inferior.h (write_fp, generic_target_write_fp): Delete
11988 * regcache.c (generic_target_write_fp): Delete function.
11989 (write_fp): Delete function.
11990 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11991 * gdbarch.h, gdbarch.c: Regenerate.
11992 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11993 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11994 (sparc64_write_fp): Delete declaration.
11995 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11996 (h8500_write_fp): Delete declaration.
11998 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12000 * sparc-tdep.c (sparc64_write_fp): Delete.
12001 (sparc_push_dummy_frame): Replace write_fp call with code to store
12003 (sparc_gdbarch_init): Do not initialize write_fp.
12005 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12007 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12010 2002-03-29 Jim Blandy <jimb@redhat.com>
12012 * stack.c (get_selected_block): Add new argument `addr_in_block',
12013 used to return the exact code address we used to select the block,
12014 not just the block.
12015 * blockframe.c (get_frame_block, get_current_block): Same.
12016 * frame.h (get_frame_block, get_current_block,
12017 get_selected_block): Update declarations.
12018 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12019 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12021 2002-04-05 Michael Snyder <msnyder@redhat.com>
12023 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12026 2002-04-05 J. Brobecker <brobecker@gnat.com>
12028 * utils.c (xfullpath): New function.
12029 * defs.h (xfullpath): Add declaration.
12030 * source.c (openp): Use xfullpath in place of gdb_realpath to
12031 avoid resolving the basename part of filenames when the
12032 associated file is a symbolic link. This fixes a potential
12033 inconsistency between the filenames known to GDB and the
12034 filenames it prints in the annotations.
12035 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12036 to be able to match a filename with either the real filename, or
12037 the name of any symbolic link to this file.
12038 (lookup_partial_symtab): Ditto.
12040 2002-04-04 Michael Snyder <msnyder@redhat.com>
12042 * breakpoint.c: Add support for hardware breakpoints in overlays.
12043 (overlay_events_enabled): New state variable.
12044 (insert_breakpoints): Use overlay_events_enabled to decide
12045 whether to attempt to set a breakpoint at the overlay load addr.
12046 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12047 (remove_breakpoint): Use overlay_events_enabled to decide
12048 whether breakpoints need to be removed from overlay load addr.
12049 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12050 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12051 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12052 disable_overlay_breakpoints): Update overlay_events_enabled.
12054 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12056 * dwarf2read.c (struct function_range): New.
12057 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12058 (check_cu_functions): New.
12059 (read_file_scope): Initialize global function lists.
12060 Call dwarf_decode_line after processing children.
12061 (read_func_scope): Add to global function list.
12062 (dwarf_decode_lines): Call check_cu_functions everywhere
12063 record_line is called. Call record_line with a linenumber
12064 of 0 to mark sequence ends.
12066 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12068 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12069 change sync with glibc.
12071 2002-04-03 Jim Blandy <jimb@redhat.com>
12073 * configure.in: Call AC_C_INLINE.
12074 * configure: Regenerated.
12076 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12078 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12079 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12081 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12083 * NEWS: Mention gcore support on FreeBSD/i386.
12085 * fbsd-proc.c: New file.
12086 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12087 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12089 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12092 2002-03-29 Jim Blandy <jimb@redhat.com>
12094 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12095 unescaped newlines in string literals, but newer ones don't. So
12098 2002-03-26 Michael Snyder <msnyder@redhat.com>
12099 Andrew Cagney <cagney@redhat.com>
12101 * cli/cli-dump.c: New file. Dump memory to file,
12102 restore file to memory.
12103 * cli/cli-dump.h: New file.
12104 * Makefile.in: Add rules, dependencies for cli-dump.o.
12105 * NEWS: Mention new commands.
12107 2002-03-28 Michael Snyder <msnyder@redhat.com>
12109 * symfile.c (symbol_file_add): Move test for null symbols to later.
12111 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12113 From veksler at il.ibm.com:
12114 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12115 the xstrduped original path.
12118 2002-03-27 Michael Snyder <msnyder@redhat.com>
12120 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12121 * infcmd.c (_initialize_infcmd): Ditto.
12122 * language.c (_initialize_language): Ditto.
12123 * symfile.c (_initialize_symfile): Ditto.
12124 * top.c (_init_main): Ditto.
12125 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12127 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12129 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12130 vector registers handling.
12131 (skip_prologue): Handle new AltiVec instructions. Fill in new
12132 fields of frame data.
12133 (frame_get_saved_regs): Fill in information for AltiVec registers.
12135 2002-03-27 Jim Blandy <jimb@redhat.com>
12137 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12138 a function; leave this macro here to invoke that function.
12139 (symbol_init_mangled_name): Declaration for that function.
12140 * symtab.c (symbol_init_mangled_name): New function.
12142 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12144 * valarith.c: Replace strerror with safe_strerror.
12145 * tracepoint.c: Ditto.
12146 * lin-lwp.c: Ditto.
12147 * go32-nat.c: Ditto.
12149 * gnu-nat.c: Ditto.
12151 2002-03-27 Andreas Schwab <schwab@suse.de>
12153 * event-top.c (command_line_handler): Remove useless if.
12155 2002-03-27 Andreas Jaeger <aj@suse.de>
12157 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12160 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12162 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12163 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12164 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12165 (x86_64_linux_dr_get_status, supply_gregset),
12166 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12167 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12168 (x86_64_register_info_table): Add.
12169 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12170 (x86_64_register_raw_size, x86_64_register_virtual_type),
12171 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12172 general x86_64_register_info_table.
12173 (i386_gdbarch_init): gdbarch_register_bytes is now set
12174 dynamicaly during initialization.
12175 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12176 * gdbserver/linux-x86-64-low.c: Ditto.
12178 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12180 * gdbserver/server.c (main): Call target_signal_to_host_p
12181 and target_signal_to_host on signals received from the remote.
12182 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12183 target_signal_from_host on signals sent to the remote.
12184 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12185 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12187 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12189 * signals/signals.c: Include "server.h" in gdbserver build.
12190 (target_signal_from_name): Don't use STREQ.
12191 (_initialize_signals): Likewise. Don't include function in
12194 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12196 * signals.c: Moved to...
12197 * signals/signals.c: Here.
12198 * Makefile (signals.o): Update.
12200 2002-03-26 Jeff Law (law@redhat.com)
12202 * somread.c (som_symtab_read): Remove some commented out code and
12203 updated related comments. Do not set the minimal symbol table to
12204 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12205 in a dynamic executable.
12206 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12207 where we are unable to find the minimal symbol for the given
12210 2002-03-25 Jeff Law (law@redhat.com)
12212 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12214 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12216 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12218 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12220 * command.h: Update copyright.
12221 (struct cmd_list_element): Replace definition with opaque
12223 (enum cmd_types): Document that it will eventually be moved to
12225 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12226 (MALLOCED_REPLACEMENT): Delete macro.
12227 * Makefile.in (cli_decode_h): Add $(command_h).
12228 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12229 * top.c: Include "cli/cli-decode.h".
12230 * completer.c: Include "cli/cli-decode.h".
12231 * maint.c: Include "cli/cli-decode.h".
12232 * cli/cli-decode.h: Include "command.h".
12233 (enum command_class): Delete.
12234 (enum cmd_types): Comment out.
12235 (enum cmd_auto_boolean): Delete.
12236 (enum var_types): Delete.
12238 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12240 * cli/cli-decode.c: Include "gdb_assert.h".
12241 (add_set_or_show_cmd): New static function.
12242 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12243 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12244 all fields, such as func, from the set command.
12246 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12248 * MAINTAINERS (sh-elf): Change warning flag to -w.
12250 2002-03-23 Andrew Cagney <cagney@redhat.com>
12252 * defs.h (error): Add printf format attribute.
12253 * thread-db.c (thread_from_lwp): Fix error format string.
12254 * stack.c (parse_frame_specification): Ditto.
12255 * cli/cli-decode.c (undef_cmd_error): Ditto.
12256 * scm-lang.c (scm_lookup_name): Ditto.
12257 * tracepoint.c (trace_error): Ditto.
12258 * remote-utils.c (usage): Ditto.
12259 * remote.c (compare_sections_command): Ditto.
12262 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12264 * gdbtypes.c (append_composite_type_field): New function.
12265 (init_composite_type): New function.
12266 * gdbtypes.h (append_composite_type_field): Declare.
12267 (init_composite_type): Ditto.
12269 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12271 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12273 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12274 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12275 structure returning convention for SYSV ABI case, but not
12276 for GNU/Linux, FreeBSD, or NetBSD.
12278 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12280 * symtab.h (lookup_block_symbol): Add mangled_name argument
12283 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12284 with new mangled_name argument.
12285 * linespec.c (decode_line_1): Likewise.
12286 * valops (value_of_this): Likewise.
12287 * symtab.c (lookup_transparent_type): Likewise.
12288 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12289 (lookup_symbol): If we are given a mangled name, pass it down
12290 to lookup_symbol_aux.
12291 (lookup_block_symbol): If we are given a mangled name to check
12292 against, only return symbols which match it.
12294 2002-03-22 Christopher Faylor <cgf@redhat.com>
12296 * win32-nat.c (child_create_inferior): Check for proper shell to use
12297 here, in case the user changes it on the fly.
12298 (_initialize_inftarg): Remove shell path considerations.
12300 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12302 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12303 for gdbarch_max_register_raw_size and max_register_virtual_size.
12304 Adjust copyright year.
12306 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12308 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12309 in a function to cover the entire beginning of the function
12310 as well if it does not already.
12312 2002-03-21 Tom Rix <trix@redhat.com>
12314 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12315 (rs6000_ptrace64): Renamed from ptrace64.
12317 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12319 * gdbserver/remote-utils.c (remote_open): Don't call
12320 getprotobyname, we're all using TCP here so just use
12322 * gdbserver/gdbreplay.c (remote_open): Ditto.
12324 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12326 * regcache.c (_initialize_regcache): No need to call
12327 build_regcache() at this time; it gets called whenever
12328 the gdbarch changes.
12330 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12332 * sparc-nat.c: Include sys/param.h where possible.
12334 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12337 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12338 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12339 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12341 * stabsread.c (rs6000_builtin_type): Likewise.
12342 (read_sun_floating_type): Likewise.
12344 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12346 * stabsread.c (read_member_functions): Remove skip code for duplicate
12347 constructor/destructor methods. Use standard parsing for these
12348 methods and just do not chain them to the list of methods after
12351 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12353 * coffread.c: Remove redundant static declarations. Replace
12354 occurrences of `PTR' with `void *'.
12355 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12356 * top.h (quit_cover): Likewise.
12357 * defs.h (catch_errors): Likewise.
12359 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12361 * defs.h (XMALLOC): Define.
12362 * gdb-events.sh (XMALLOC): Delete macro.
12363 * gdb-events.c, gdb-events.h: Regenerate.
12364 * gdbarch.sh (XMALLOC): Delete macro.
12365 * gdbarch.c: Regenerate.
12366 * serial.c (XMALLOC): Delete macro.
12367 * ui-file.c (XMALLOC): Ditto.
12368 * ser-unix.h (XMALLOC): Ditto.
12369 * sh-tdep.c (XMALLOC): Ditto.
12370 * ui-out.c (XMALLOC): Ditto.
12371 * utils.c (XMALLOC): Ditto.
12372 * i386-tdep.c (XMALLOC): Ditto.
12373 * gdb-events.c (XMALLOC): Ditto.
12374 * d10v-tdep.c (XMALLOC): Ditto.
12375 * cli-out.c (XMALLOC): Ditto.
12377 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12378 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12379 * ui-file.c, ui-out.c: Ditto.
12381 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12383 * command.h (struct cmd_list_element): Add field context.
12384 (set_cmd_context, get_cmd_context): Declare.
12385 * cli/cli-decode.h: Ditto.
12386 * cli/cli-decode.c (get_cmd_context): New function.
12387 (set_cmd_context): New function.
12388 (add_cmd): Initialize context.
12389 Part of fixing PR gdb/145 and PR gdb/146.
12391 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12393 * cli/cli-decode.c (cmd_type): New function.
12394 * command.h (cmd_type): Declare.
12395 * infrun.c (set_schedlock_func): Call function cmd_type.
12396 * kod.c (kod_set_os): Call cmd_type.
12397 * cris-tdep.c (cris_version_update): Use function cmd_type.
12398 (cris_mode_update, cris_abi_update): Ditto.
12400 * command.h: (execute_cmd_post_hook): Declare.
12401 (execute_cmd_pre_hook): Declare.
12402 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12403 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12404 functions. Execute pre/post hook while ensuring that afterwords
12405 hook_in is cleared.
12406 * top.c (execute_command): Use execute_cmd_post_hook, and
12407 execute_cmd_pre_hook to execute pre/post commands.
12408 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12410 (hook_stop_stub): Call execute_cmd_pre_hook.
12412 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12414 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12415 set'' and this leads to a core dump. Move xstrdup of
12416 operating_system to after check that it is not NULL.
12418 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12420 * kod.c (kod_set_os): Remove unnecessary check that
12421 ``command->type'' is set_cmd.
12423 * valprint.c (set_input_radix): Use input_radix.
12424 (set_output_radix): Use output_radix.
12425 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12428 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12430 * value.h (struct value): Delete field ``substring_addr''. Change
12431 aligner fields to force_doublest_align, force_longest_align,
12432 force_core_addr_align and force_pointer_aligh.
12434 * value.h (struct value): Fix typo in above change.
12436 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12438 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12439 to fix internal_error from ``maintenance print architecture''.
12441 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12443 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12444 for gcc versions after gcc-2.8.1.
12446 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12448 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12449 for method resolution. Restore adjustment of ``this'' pointer after
12450 calling value_struct_elt, which was accidentally removed during the
12453 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12455 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12457 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12458 get_saved_register.
12459 * value.h (value_of_register): Update.
12461 2002-03-14 Richard Henderson <rth@redhat.com>
12463 * configure.in: Detect declaration for canonicalize_file_name.
12464 * utils.c (canonicalize_file_name): Declare, if needed.
12465 (gdb_realpath): Prefer realpath if available and usable.
12466 * config.in, configure: Rebuild.
12468 2002-03-14 Richard Henderson <rth@redhat.com>
12470 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12471 a constant array bound.
12473 * MAINTAINERS: Add myself to write-after-approval.
12475 2002-03-14 Michael Snyder <msnyder@redhat.com>
12477 * symfile.c (syms_from_objfile): Return immediately if no syms.
12478 (symbol_file_add): Return immediately if no syms.
12479 (find_sym_fns): Return immediately if no syms.
12481 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12483 * gdbserver/remote-util.c (remote_open): Print remote-side's
12484 IP address when remote debugging over the network.
12486 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12488 * config/sparc/fbsd.mh: Fix copyright.
12489 * config/sparc/fbsd.mt: Likewise.
12491 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12493 * MAINTAINERS: Fix typo in name of gdb warnings option.
12494 (x86-64): Fix formating so that this can be parsed by awk.
12496 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12498 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12499 * defs.h: Include "gdb/signals.h".
12500 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12502 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12504 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12505 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12508 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12509 Don Howard <dhoward@redhat.com>
12511 * mips-tdep.c (ST0_FR): Define.
12512 (mips2_fp_compat): New function, temporarily disabled.
12513 (mips_read_fp_register_single): New function.
12514 (mips_read_fp_register_double): New function.
12515 (mips_print_register): Use them.
12516 (do_fp_register_row): Likewise.
12518 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12520 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12523 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12525 * stabsread.c (read_member_functions): Fix is_stub test for
12526 static member functions, improve comment.
12528 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12530 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12531 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12532 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12533 commands that set boolean values.
12534 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12535 (arm_rdi_resume): Always initialize PC.
12536 (arm_rdi_open): Don't use rslt as a boolean.
12537 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12538 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12539 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12540 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12542 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12544 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12545 * configure: Rebuilt.
12547 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12549 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12550 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12552 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12554 * cli/cli-decode.c (set_cmd_completer): New function.
12555 * command.h (set_cmd_completer): Declare.
12556 * cli/cli-decode.h (set_cmd_completer): Ditto.
12558 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12559 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12560 * win32-nat.c (_initialize_inftarg): Ditto.
12561 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12562 * proc-api.c (_initialize_proc_api): Ditto.
12563 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12564 * source.c (_initialize_source): Ditto.
12565 * exec.c (_initialize_exec): Ditto.
12566 * solib.c (_initialize_solib): Ditto.
12567 * top.c (init_main): Ditto.
12568 * tracepoint.c (_initialize_tracepoint): Ditto.
12569 * symfile.c (_initialize_symfile): Ditto.
12570 * printcmd.c (_initialize_printcmd): Ditto.
12571 * infcmd.c (_initialize_infcmd): Ditto.
12572 * corefile.c (_initialize_core): Ditto.
12574 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12576 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12578 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12580 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12582 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12584 * NEWS: Update headings, 5.2 has branched.
12586 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12588 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12589 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12590 (register_addr, REGISTER_RAW_SIZE): Likewise.
12591 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12592 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12594 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12596 * MAINTAINERS (x86-64): Add myself.
12597 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12598 changed value_ptr -> struct value *
12600 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12602 * configure.host (sparc64-*-freebsd): Add.
12603 * configure.tgt: Likewise.
12604 * config/sparc/fbsd.mh: New file.
12605 * config/sparc/fbsd.mt: Likewise.
12606 * config/sparc/nm-fbsd.h: Likewise.
12607 * config/sparc/tm-fbsd.h: Likewise.
12609 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12611 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12612 regformats/reg-s390x.dat.
12614 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12616 * utils.c: Add FIXME explaining true/false problem.
12618 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12620 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12622 2002-02-28 Michael Chastain <mec@shout.net>
12624 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12626 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12628 * gdbserver/linux-s390-low.c: New file.
12629 * regformats/reg-s390.dat: New file.
12630 * regformats/reg-s390x.dat: New file.
12631 * gdbserver/configure.srv: Add S/390.
12632 * gdbserver/Makefile.in: Add S/390.
12633 * configure.tgt: Enable gdbserver for S/390.
12635 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12637 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12638 first line of the doc string for "info dos", except at the end of
12639 the sentence, since the short help stops at the first period.
12641 2002-02-28 Jason Merrill <jason@redhat.com>
12643 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12645 2002-02-27 Fred Fish <fnf@redhat.com>
12647 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12648 comment (dumy -> dummy).
12650 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12652 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12654 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12656 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12658 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12660 * gdbserver/acconfig.h: New file.
12661 * gdbserver/i387-fp.c: New file.
12662 * gdbserver/i387-fp.h: New file.
12663 * gdbserver/linux-x86-64.c: New file.
12664 * regformats/reg-x86-64.dat: New file.
12665 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12666 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12667 * gdbserver/configure.in: Add support for regsets.
12668 * gdbserver/config.in: Regenerate.
12669 * gdbserver/configure: Regenerate.
12670 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12671 * gdbserver/linux-low.h: New file.
12672 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12674 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12675 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12676 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12677 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12678 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12679 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12680 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12681 "i387-fp.h". Add PTRACE_GETREGS and friends.
12682 * gdbserver/regcache.c (supply_register): New function.
12683 (supply_register_by_name): New function.
12684 (collect_register): New function.
12685 (collect_register_by_name): New function.
12687 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12689 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12690 (config.status): Add configure.srv dependency.
12691 (server_h): Add config.h dependency.
12693 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12695 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12696 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12697 * gdbserver/configure.srv: Change i386-*-linux* to use
12700 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12702 * x86-64-tdep.c: Re-indent. Update copyright date.
12704 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12706 From Michal Ludvig <mludvig@suse.cz>:
12707 * x86-64-tdep.c (value.h): Delete.
12708 (gdb_assert.h): Include.
12709 (x86_64_register_convert_to_virtual,
12710 x86_64_register_convert_to_raw ): Add check which lets only
12711 floating-point values to be converted.
12712 (value_push): Delete.
12713 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12714 (i386_gdbarch_init): Number of register_bytes fixed.
12716 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12718 * MAINTAINERS: Add x86-64 target.
12720 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12722 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12723 * osfsolib.c (solib_map_sections): Ditto.
12724 * irix5-nat.c (solib_map_sections): Ditto.
12725 * corelow.c (gdb_check_format): Ditto.
12726 * symfile.c (symfile_bfd_open): Ditto.
12727 * solib.c (solib_map_sections): Ditto.
12730 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12732 * remote.c (_initialize_remote): By default, disable ``e'' and
12733 ``E'' step out-of-range packets.
12735 2002-02-26 Andreas Schwab <schwab@suse.de>
12737 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12738 m68k_linux_frame_saved_pc.
12739 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12741 (SIGCONTEXT_PC_OFFSET): Remove.
12742 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12743 m68k_linux_sigtramp_saved_pc): New functions.
12744 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12745 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12746 (UCONTEXT_PC_OFFSET): Define.
12747 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12748 non-RT and RT signal trampolines.
12750 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12752 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12753 (TARGET_NBPG, STACK_END_ADDR): Delete
12754 (VARIABLES_INSIDE_BLOCK): Delete.
12756 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12758 * utils.c (perror_with_name): Make string parameter constant.
12759 (print_sys_errmsg): Ditto.
12761 * defs.h (perror_with_name): Update.
12762 (print_sys_errmsg): Update.
12765 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12767 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12768 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12770 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12772 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12773 if it already matches the current architecture from the exec file.
12774 Include arch-utils.h for gdbarch_info_init prototype.
12775 * Makefile.in (rs6000-nat.o): Update dependencies.
12777 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12779 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12780 list of exported variables.
12782 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12784 * gdbserver/configure.srv: New file.
12785 * gdbserver/configure.in: Use configure.srv instead
12786 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12788 * gdbserver/configure: Regenerated.
12789 * gdbserver/terminal.h: New file.
12790 * gdbserver/Makefile.in: Update for configure changes. Remove
12791 more unneeded include paths.
12793 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12795 From wiz at danbala:
12796 * config/sparc/tm-sp64.h: Fix grammar and typos.
12799 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12801 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12802 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12803 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12804 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12805 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12806 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12807 * s390-tdep.c: Ditto.
12808 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12809 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12810 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12811 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12812 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12813 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12814 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12815 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12816 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12817 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12820 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12822 * lin-thread.c: Delete file.
12823 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12824 to gdb_proc_service.h.
12825 * configure: Re-generate.
12827 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12828 * serial.c (serial_open): Delete check for "ocd".
12831 * Makefile.in (linux-thread.o): Delete target.
12832 * linux-thread.c: Delete file.
12834 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12835 renamed SH files to be consistent.
12837 * symtab.c (sort_search_symbols): Use xfree.
12839 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12841 * arm-linux-tdep.c (arm_linux_init_abi): Register
12842 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12843 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12844 definition with undef, since we don't want the sysvr4 definition.
12845 (SKIP_TRAMPOLINE_CODE): Likewise.
12847 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12849 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12851 * configure.in: (AC_CHECK_FUNCS) Added test for
12852 canonicalize_file_name Regenerated.
12853 * config.in, configure: Regenerated.
12854 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12855 defined use canonicalize_file_name.
12857 2002-02-23 Michael Chastain <mec@shout.net>
12859 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12861 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12863 * README: Remove references to cygnus.com.
12864 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12865 dot com'' form. Remove references to cygnus.com and sourceware.
12867 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12869 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12870 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12871 1003.1-2001 no longer allows "head -1".
12872 * gdb/Makefile.in (version.c): Likewise.
12873 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12874 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12875 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12877 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12879 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12880 * command.h (cmd_cfunc_eq): Declare.
12881 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12883 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12884 ``struct cmd_list_element *''.
12885 * cli/cli-cmds.c (is_complete_command): Update. Use
12887 * top.c (execute_command): Pass the command to
12888 is_complete_command.
12889 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12891 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12893 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12894 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12895 architecture defines.
12896 * s390-tdep.c (s390_gdbarch_init): Likewise.
12898 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12900 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12901 (arm_linux_push_arguments): Likewise.
12902 (arm_linux_init_abi): Register them. Also register linux-specific
12904 (find_minsym_and_objfile): Use strcmp, not STREQ.
12905 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12906 (arm_linux_call_dummy_words): Delete declaration.
12907 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12908 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12910 (LOWEST_PC): Delete.
12912 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12914 * maint.c (print_section_info): Do not prepend `0x' to filepos
12915 output, it will be handled by local_hex_string_custom.
12917 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12919 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12920 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12921 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12923 2002-02-22 Jim Blandy <jimb@redhat.com>
12925 Indicate that the bcache functions don't change the strings
12927 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12928 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12930 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12932 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12934 2002-02-21 Christopher Faylor <cgf@redhat.com>
12936 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12937 find the complete path to a loaded DLL.
12939 2002-02-21 Fred Fish <fnf@redhat.com>
12941 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12942 that marks the end of the range of a function, enter a line number
12943 entry that has a line number of zero and a PC offset that matches
12944 the end of the function. This starts a range of PC's for which no
12945 line number information is known.
12946 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12947 PC's for which no line number info is found (line number is zero)
12948 then we didn't find any valid line information.
12949 * symtab.h: Document use of zero line number entry.
12951 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12953 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12954 (have_ptrace_getvrregs): Define for run time checks.
12955 (gdb_vrregset_t): New type for Altivec register handling.
12956 (fetch_register, store_register): Fetch/store altivec register
12958 (fetch_altivec_register, store_altivec_register): New functions.
12959 (supply_vrregset, fill_vrregset): New functions.
12960 (fetch_altivec_registers, store_altivec_registers): New functions.
12961 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12964 2002-02-21 Jiri Smid <smid@suse.cz>
12966 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12968 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12970 * Makefile.in (armnbsd-nat.o): Update dependencies.
12971 * armnbsd-nat.c (supply_gregset): New function. Common code to
12972 supply the integer register set.
12973 (supply_fparegset): New function. Similar for FPA registers.
12974 (fetch_regs, fetch_fp_regs): Use them.
12975 (fetch_core_registers): Likewise.
12976 (fetch_elfcore_registers): New function.
12977 (arm_netbsd_elfcore_fns): New core-file type specification.
12978 (_initialize_arm_netbsd_nat): Register it.
12980 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12982 * armnbsd-nat.c: Include gdbcore.h.
12983 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12984 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12985 'void' to declaration, to shut up ARI.
12986 (fetch_core_registers): Make static. Rewrite using supply_register.
12987 (arm_netbsd_core_fns): New core-file type specification.
12988 (_initialize_arm_netbsd_nat): New function.
12990 2002-02-21 Christopher Faylor <cgf@redhat.com>
12992 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12995 2002-02-20 Christopher Faylor <cgf@redhat.com>
12997 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13000 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13002 * jv-exp.y (parse_number): Change type of implicit longs
13003 to builtin_type_uint64.
13005 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13007 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13008 to be an integer instead of a `union wait'.
13010 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13012 * mips-linux-nat.c: Call the operating system GNU/Linux.
13013 * mips-linux-tdep.c: Likewise.
13014 * mips-tdep.c: Likewise.
13016 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13019 * jv-exp.y (parse_number): Handle 64-bit integers.
13021 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13023 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13024 AC_STDC_HEADERS to AC_HEADER_STDC.
13025 * gdbserver/configure: Regenerated.
13027 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13029 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13031 * sparc-tdep.c (get_longjmp_target): Likewise.
13033 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13035 * News: Add news about ARM and Multi-arch. Mention the new target
13038 2002-02-19 Jim Blandy <jimb@redhat.com>
13040 * stabsread.c (error_type_complaint): Improve error message.
13042 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13044 * gdbserver/README: Update documentation.
13045 * gdbserver/configure.in: Update configury to match documentation.
13046 * gdbserver/Makefile.in: Likewise.
13047 * gdbserver/configure: Regenerated.
13048 * gdbserver/aclocal.m4: New file, generated by aclocal.
13049 * gdbserver/config.in: New file, generated by autoheader.
13051 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13053 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13056 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13058 * arm-tdep.h (enum arm_float_model): New enum.
13059 (struct gdbarch_tdep): Add fp_model.
13060 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13061 up floating-point conversions until we know the floating-point model
13062 in use by the inferior. Don't complain about being unable to
13063 determine the ABI of the inferior when we don't have one.
13064 (arm_extract_return_value): Support different floating-point models.
13065 (arm_store_return_value): Likewise.
13066 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13068 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13070 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13072 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13073 of ``current_gdbarch''.
13075 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13077 * armnbsd-nat.c : ANSIfy all function declarations.
13078 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13079 (fetch_inferior_registers): Re-implement in terms of above.
13080 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13081 (store_inferior_registers): Re-implement in terms of above.
13083 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13085 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13087 * arm-linux-tdep.c: Likewise.
13088 * config/arm/tm-linux.h: Likewise.
13090 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13092 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13093 * config/arm/nbsd.mt (TM_FILE): Delete.
13094 * config/arm/tm-nbsd.h: Delete.
13096 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13098 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13099 Initialize CALL_DUMMY_LENGTH.
13101 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13103 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13105 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13106 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13107 defines one thing and that is incorrect for this port.
13108 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13110 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13112 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13114 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13116 * win32-nat.c (display_selector): New function. Displays information
13117 about the information returned by GetThreadSelectorEntry API function.
13118 (display_selectors): New function. Displays the infomation of
13119 the selector given as argument, or of CS, DS ans FS selectors
13120 if no argument is given.
13121 ( _initialize_inftarg): Add "w32" as info prefix command.
13122 Add "info w32 selector" as command calling display_selectors.
13124 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13126 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13127 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13130 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13132 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13134 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13136 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13137 (arm_fix_call_dummy): Call it.
13138 (arm_call_dummy_breakpoint_offset): Delete.
13139 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13140 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13142 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13144 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13145 Default to func_frame_chain_valid.
13146 * gdbarch.h, gdbarch.c: Re-generate.
13147 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13149 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13151 * ppc-linux-nat.c: Update copyright.
13152 (fetch_register, store_register): Add tid parameter, don't compute
13154 (fetch_ppc_registers, store_ppc_registers): Add tid
13155 parameter. Pass it along to callees.
13156 (fetch_inferior_registers, store_inferior_registers): Compute tid
13157 here, and pass it to calleed functions.
13158 (fill_gregset, supply_fpregset): Clean up formatting.
13160 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13162 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13163 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13165 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13167 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13168 * gdbarch.c gdbarch.h: Regenerate.
13169 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13171 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13172 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13173 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13175 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13176 * arm-tdep.c (arm_get_longjmp_target): New function.
13177 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13178 this to a positive value register arm_get_longjmp_target as the
13180 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13181 (arm_linux_init_abi): Set up longjmp description in tdep.
13182 * armnbsd-nat.c (get_longjmp_target): Delete.
13183 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13184 description in tdep.
13185 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13186 (get_longjmp_target): Delete declaration.
13187 (GET_LONGJMP_TARGET): Delete.
13188 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13189 (GET_LONGJMP_TARGET): Delete.
13191 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13193 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13194 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13195 of ``current_gdbarch''.
13197 2002-02-17 Tom Tromey <tromey@redhat.com>
13199 * cli/cli-cmds.c (compare_strings): New function.
13200 (complete_command): Only print each unique item once.
13201 * completer.h (complete_line): Declare.
13202 * completer.c (complete_line): New function.
13203 (line_completion_function): Use it.
13205 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13207 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13208 * gdbarch.h, gdbarch.c: Re-generate.
13210 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13212 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13214 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13216 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13217 * valops.c (value_arg_coerce): Don't take the address of a reference
13218 to convert an argument to a reference.
13220 2002-02-15 Christopher Faylor <cgf@redhat.com>
13222 * win32-nat.c (get_image_name): New function.
13223 (handle_load_dll): Use get_image_name function.
13224 (get_child_debug_event): Avoid registering debug events until possibly
13225 execed process is started.
13226 (child_create_inferior): Allow invocation via shell so that command
13227 line redirection, etc. works ok.
13228 (_initialize_inftarg): Add new command: "set shell" to control whether
13229 a shell is used to start a process.
13231 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13233 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13234 instead of find_register_by_number.
13235 (cannot_store_register): Likewise.
13237 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13239 * dwarf2read.c: Replace fprintf (stderr, ...) by
13240 fprintf_unfiltered (gdb_stderr, ...).
13242 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13244 * gdbserver/gdbserver.1: Document --attach.
13246 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13248 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13250 * arm-tdep.c (arm_default_arm_le_breakpoint)
13251 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13252 (arm_default_thumb_be_breakpoint): New. Initialize them from
13253 traditional breakpoint defines.
13254 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13255 (arm_gdbarch_init): Initialize new breakpoint variables.
13256 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13257 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13258 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13259 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13261 (arm_netbsd_init_abi_common): ... here; new function.
13262 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13263 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13264 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13265 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13267 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13269 * arm-tdep.h (enum arm_abi): New enum.
13270 (struct gdbarch_tdep): New structure.
13271 (LOWEST_PC): Provide a default.
13272 (arm_gdbarch_register_os_abi): Declare new function.
13273 * arm-tdep.c (arm_abi_names): New array.
13274 (process_note_abi_tag_sections): New function.
13275 (get_elfosabi): New function.
13276 (arm_gdbarch_register_os_abi): New function.
13277 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13278 support for that ABI has been built in, then call the appropriate
13279 configuration routine. Use gdbarch_num_regs() to get the number
13281 (arm_dump_tdep): New function.
13282 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13283 place-holder functions.
13284 (_initialize_arm_tdep): Register them.
13285 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13287 * armnbsd-tdep.c: New file.
13288 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13289 * config/arm/nbsd.mt (TDEPFILES): Add it.
13290 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13292 * armnbsd-nat.c: Include regcache.h.
13293 * Makefile.in (armnbsd-nat.o): Update dependency list.
13295 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13297 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13299 * gdbserver/Makefile.in: Fix typos in target rules.
13301 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13303 Fix part of PR gdb/267.
13304 * linespec.c (find_methods): Handle constructors specially for now.
13306 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13308 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13310 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13311 standard_coerce_float_to_double().
13313 2002-02-14 Christopher Faylor <cgf@redhat.com>
13315 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13318 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13320 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13321 find_variant_by_name, because it confuses the multiarch
13322 framework. Return NULL if there isn't an architecture with the
13323 user supplied name, instead of forcing a different one without
13324 recording the change with the multiarch machinery.
13325 (find_variant_by_name): Delete.
13327 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13329 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13330 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13332 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13334 * stack.c (print_frame_info_base): When calling
13335 print_frame_info_listing_hook, set current_source_symtab.
13337 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13339 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13340 and remove unused $(INCLUDE_DIR).
13341 Add regcache.c to OBS.
13342 Add generated register protocol files to clean target.
13343 Update dependencies for new objects, obsolete old target code.
13345 * gdbserver/linux-low.c: Remove all platform-specific code to
13346 new files. Remove various dead code. Update to use regcache
13348 * gdbserver/remote-utils.c (fromhex): Add return statement
13350 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13352 (input_interrupt): Add integer parameter to match prototype
13353 of a signal handler.
13354 (outreg): Use register_data ().
13355 (prepare_resume_reply): Use gdbserver_expedite_regs.
13356 * gdbserver/server.c (main): Dynamically allocate own_buf because
13357 PBUFSIZ is no longer constant. Use registers_to_string () and
13358 registers_from_string ().
13359 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13360 for error (), fatal (), and warning (). Update definition of
13361 PBUFSIZ to use regcache functionality. Add include guard.
13362 * gdbserver/utils.c (fatal): Add missing ``const''.
13363 (warning): New function.
13365 * regformats/regdat.sh: Include "regcache.h" in generated files.
13366 Provide init_registers () function.
13367 * regformats/regdef.h: Add prototype for set_register_cache ().
13370 * gdbserver/linux-arm-low.c: New file.
13371 * gdbserver/linux-i386-low.c: New file.
13372 * gdbserver/linux-ia64-low.c: New file.
13373 * gdbserver/linux-m68k-low.c: New file.
13374 * gdbserver/linux-mips-low.c: New file.
13375 * gdbserver/linux-ppc-low.c: New file.
13376 * gdbserver/linux-sh-low.c: New file.
13378 * gdbserver/regcache.c: New file.
13379 * gdbserver/regcache.h: New file.
13381 * gdbserver/low-linux.c: Removed obsolete file.
13383 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13385 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13386 * config/i386/linux.mt: Likewise.
13387 * config/ia64/linux.mt: Likewise.
13388 * config/m68k/linux.mh: Likewise.
13389 * config/powerpc/linux.mh: Likewise.
13390 * config/mips/linux.mt: Likewise.
13392 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13394 * config/i386/i386lynx.mh: Mark gdbserver variables
13395 as (currently) obsolete for this target.
13396 * config/i386/nbsd.mt: Likewise.
13397 * config/i386/nbsdelf.mt: Likewise.
13398 * config/m32r/m32r.mt: Likewise.
13399 * config/m68k/m68klynx.mh: Likewise.
13400 * config/m68k/nbsd.mt: Likewise.
13401 * config/m68k/sun3os4.mh: Likewise.
13402 * config/mips/vr5000.mt: Likewise.
13403 * config/ns32k/nbsd.mt: Likewise.
13404 * config/pa/hppabsd.mh: Likewise.
13405 * config/pa/hppaosf.mh: Likewise.
13406 * config/powerpc/nbsd.mt: Likewise.
13407 * config/rs6000/rs6000lynx.mh: Likewise.
13408 * config/s390/s390.mt: Likewise.
13409 * config/s390/s390x.mt: Likewise.
13410 * config/sparc/sparclynx.mh: Likewise.
13411 * config/sparc/sun4os4.mh: Likewise.
13412 * config/i386/x86-64linux.mt: Likewise.
13413 * config/sparc/linux.mh: Likewise.
13415 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13417 * configure.tgt: Configure gdbserver only for known working
13418 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13419 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13420 SUBDIRS if it is configured. Update comment for ${nativefile}.
13421 * configure: Regenerated.
13423 2002-02-13 Michael Snyder <msnyder@redhat.com>
13425 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13427 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13428 (default_gcore_mach): Just return 0, work around a problem in bfd.
13429 (default_gcore_target): OK to return NULL if exec_bfd is null.
13430 (make_mem_sec): Use a cast, avoid a warning.
13432 * procfs.c (find_memory_regions_callback): Use a cast instead of
13433 calling host_pointer_to_address (which complains if
13434 sizeof (host pointer) != sizeof (target pointer)).
13435 (procfs_make_note_section): Avoid overflow in psargs string.
13437 * procfs.c (procfs_make_note_section): Make the default
13438 implementation return an error.
13440 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13442 * procfs.c (procfs_make_note_section): Provide a default definition
13443 (for alpha-dec-osf4.0f). Fix typos.
13445 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13447 * linux-proc.c: Add include of regcache.h.
13448 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13450 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13452 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13453 * memattr.c (create_mem_region): Disallow useless empty region.
13454 Regions are half-open intervals, so allow [A..B) [B..C) as
13457 2002-02-13 Michael Chastain <mec@shout.net>
13459 * defs.h: Kill CONST_PTR.
13460 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13461 * c-lang.c (c_builtin_types): Likewise.
13462 * ch-lang.c (ch_builtin_types): Likewise.
13463 * f-lang.c (f_builtin_types): Likewise.
13464 * language.c (unknown_builtin_types): Likewise.
13465 * m2-lang.c (m2_builtin_types): Likewise.
13466 * p-lang.c (pascal_builtin_types): Likewise.
13467 * scm-lang.c (c_builtin_types): Likewise.
13469 2002-02-13 Keith Seitz <keiths@redhat.com>
13471 * arm-tdep.h (arm_get_next_pc): Add declaration.
13473 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13475 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13476 with other related struct-returning functions.
13477 (arm_extract_struct_value_address): New function.
13478 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13479 initialize float_format, double_format and long_double_format as
13480 appropriate to the endianness of the target.
13481 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13482 (arm_use_struct_convention): Delete declaration.
13483 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13485 2002-02-13 Keith Seitz <keiths@redhat.com>
13487 * defs.h (core_addr_to_string_nz): New function.
13489 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13491 Apply missing bits of 2002-01-15 patch.
13492 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13493 (fill_fpregset): Use i387_fill_fsave.
13495 2002-02-12 Keith Seitz <keiths@redhat.com>
13497 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13498 (core_addr_to_string_nz): New function.
13500 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13502 * arm-linux-nat.c: Really include arm-tdep.h.
13503 * config/arm/tm-linux.h (struct type, struct value): Declare.
13505 2002-02-11 Michael Snyder <msnyder@redhat.com>
13507 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13508 (gcore section): Ifdef for Solaris and Unixware only.
13509 (procfs_do_thread_registers): Unixware needs one lwpstatus
13510 per thread (not one prstatus or pstatus).
13511 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13512 not over all gdb threads. For unixware, call elfcore_write_pstatus
13513 once before iterating over threads.
13515 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13517 * arm-tdep.h: New file.
13518 * arm-tdep.c: Include arm-tdep.h.
13519 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13520 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13521 (arm_print_float_info, arm_register_type, convert_to_extended)
13522 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13523 (arm_extract_return_value, arm_register_name): Make static.
13524 (arm_software_single_step): Similarly. Fix types in declaration.
13525 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13526 (arm_store_return_value, arm_store_struct_return): New functions.
13527 (arm_gdbarch_init): Register the above functions. Also register
13528 call_dummy_start_offset, sizeof_call_dummy_words,
13529 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13530 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13531 max_register_virtual_size, register_size. Set up
13532 prologue_cache.saved_regs here, rather than ...
13533 (_initialize_arm_tdep): ... here.
13534 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13536 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13537 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13538 (arm_print_float_info, arm_register_type, convert_to_extended)
13539 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13540 (arm_extract_return_value, arm_register_name): Delete declarations.
13541 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13542 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13543 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13544 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13545 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13546 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13547 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13548 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13549 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13550 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13551 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13552 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13554 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13555 * remote-rdi.c remote-rdp.c: Likewise.
13556 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13557 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13558 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13561 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13562 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13563 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13564 from non-ARM_ prefixed definitions.
13565 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13567 * remote-rdi.c remote-rdp.c: Likewise.
13568 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13570 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13572 * arm-tdep.c (arm_frameless_function_invocation)
13573 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13574 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13575 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13576 (arm_pop_frame, arm_get_next_pc): Make static.
13577 (arm_gdbarch_init): Register above in gdbarch structure.
13578 (arm_read_fp): Renamed from arm_target_read_fp.
13579 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13580 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13581 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13582 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13583 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13584 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13585 (arm_pc_is_thumb_dummy): Delete declarations.
13586 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13587 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13588 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13589 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13591 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13593 * symtab.c (compare_search_syms): New function.
13594 (sort_search_symbols): New function.
13595 (search_symbols): Sort symbols after searching rather than
13598 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13600 * NEWS: Linux -> GNU/Linux.
13602 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13604 * gdbarch.sh: For for level one methods, disallow a definition
13605 when partially multi-arched. Add comments explaining rationale.
13606 * gdbarch.h: Re-generate.
13608 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13610 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13611 multi-arch partial.
13613 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13615 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13616 field. Use diff -u.
13617 * gdbarch.c: Re-generate.
13619 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13621 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13622 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13625 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13627 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13628 multi-arch partial.
13629 (PUSH_ARGUMENTS): Switch to using predefault.
13630 * gdbarch.c: Regenerate.
13632 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13634 * valops.c (PUSH_ARGUMENTS): Delete definition.
13635 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13636 partial. Default to default_push_arguments.
13637 * gdbarch.h, gdbarch.c: Regenerate.
13639 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13641 * defs.h (throw_exception): Rename return_to_top_level. Update
13643 * utils.c (error_stream, internal_verror, quit): Ditto.
13644 * top.c (throw_exception, catcher): Ditto.
13645 * sparclet-rom.c (sparclet_load): Ditto.
13646 * remote.c (interrupt_query, minitelnet): Ditto.
13647 * remote-sds.c (interrupt_query): Ditto.
13648 * remote-mips.c (mips_error, mips_kill): Ditto.
13649 * ocd.c (interrupt_query): Ditto.
13650 * monitor.c (monitor_interrupt_query): Ditto.
13651 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13652 * target.h: Update comment.
13654 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13656 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13658 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13659 default_double_format.
13660 * gdbarch.h, gdbarch.c: Re-generate.
13661 * findvar.c (floatformat_unknown): Delete variable definition.
13662 * doublest.h (floatformat_unknown): Delete variable declaration.
13664 2002-02-09 Jim Blandy <jimb@redhat.com>
13666 * stabsread.c (read_type): Add code to parse Sun's syntax for
13667 prototyped function types.
13669 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13671 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13672 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13674 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13676 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13677 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13678 now _initialize_xcoffsolib gets called again and overrides the
13679 commands from solib.c in a native configuration.
13681 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13683 * doublest.c (store_typed_floating): Don't try to return a value.
13686 2002-02-08 Jim Blandy <jimb@redhat.com>
13688 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13689 is prototyped and has no arguments, print its argument list as
13692 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13694 * MAINTAINERS (write-after-approval): Add myself.
13695 (paper-trail): I've escaped!
13697 2002-02-08 Christopher Faylor <cgf@redhat.com>
13699 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13701 (_initialize_check_for_gdb_ini): Ditto.
13703 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13705 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13706 xaprintf -> xasprintf.
13708 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13710 * win32-nat.c: Remove use of printf and sprintf functions.
13712 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13714 * arm-tdep.c (arm_frame_chain_valid): Make static.
13715 (arm_push_arguments): Likewise.
13716 (arm_gdbarch_init): New function.
13717 (_initialize_arm_tdep): Call it.
13718 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13719 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13720 (FRAME_CHAIN_VALID): Delete.
13721 (arm_frame_chain_valid): Delete declaration.
13722 (PUSH_ARGUMENTS): Delete.
13723 (arm_push_arguments): Delete declaration.
13724 (CALL_DUMMY_P): Delete.
13726 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13727 Corinna Vinschen <vinschen@redhat.com>
13729 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13730 on builtin float types.
13732 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13734 * utils.c: Include <curses.h> before "bfd.h".
13735 * tui/tui-hooks.c: Likewise.
13736 * tui/tui.c: Likewise.
13737 * tui/tuiCommand.c: Likewise.
13738 * tui/tuiData.c: Likewise.
13739 * tui/tuiDataWin.c: Likewise.
13740 * tui/tuiDisassem.c: Likewise.
13741 * tui/tuiGeneralWin.c: Likewise.
13742 * tui/tuiIO.c: Likewise.
13743 * tui/tuiLayout.c: Likewise.
13744 * tui/tuiRegs.c: Likewise.
13745 * tui/tuiSource.c: Likewise.
13746 * tui/tuiSourceWin.c: Likewise.
13747 * tui/tuiStack.c: Likewise.
13748 * tui/tuiWin.c: Likewise.
13750 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13752 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13753 to include space for pseudoregs as well. Update loops accordingly.
13754 (sh_fp_frame_init_saved_regs): Ditto.
13755 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13757 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13759 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13760 Add Richard Earnshaw to Arm maintainers.
13762 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13764 * defs.h (warning_begin): Delete declaration.
13766 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13769 2002-02-07 Michael Snyder <msnyder@redhat.com>
13771 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13772 Logic bug, remove misplaced else.
13774 2002-02-07 Klee Dienes <klee@apple.com>
13776 * fork-inferior.c (fork_inferior): Add '!' to the list of
13777 characters that need to be quoted when building a string for the
13778 shell. Quote '!' specifically with a backslash, since CSH chokes
13779 when trying to evaluate "str!str".
13781 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13783 * rdi-share/host.h: Only provide a typedef for bool if it is not
13786 2002-02-04 Michael Snyder <msnyder@redhat.com>
13788 * breakpoint.h (enum bptype): Add new overlay event bp type.
13789 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13791 * breakpoint.c (create_internal_breakpoint): New function.
13792 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13793 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13794 (create_thread_event_breakpoint): Ditto.
13795 (create_solib_event_breakpoint): Ditto.
13796 (create_overlay_event_breakpoint): New function.
13797 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13798 (update_breakpoints_after_exec): Delete and re-initialize
13799 overlay event breakpoints after an exec. Add FIXME comment
13800 about longjmp breakpoint.
13801 (print_it_typical): Ignore overlay event breakpoints.
13802 (print_one_breakpoint): Ditto.
13804 (bpstat_what): Do not stop for overlay event breakpoints.
13805 (delete_breakpoint): Don't delete overlay event breakpoints.
13806 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13807 (breakpoint_re_set): Re-create overlay event breakpoint.
13809 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13810 (overlay_manual_command): Disable overlay breakpoints.
13811 (overlay_off_command): Disable overlay breakpoints.
13813 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13815 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13816 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13817 to here from config/tm-arm.h.
13818 (coff_sym_is_thumb): Make static.
13819 (arm_elf_make_msymbol_special): New function.
13820 (arm_coff_make_msymbol_special): New function.
13821 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13822 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13823 (coff_sym_is_thumb): Delete declaration.
13824 (arm_elf_make_msymbol_special): Declare.
13825 (arm_coff_make_msymbol_special): Declare.
13826 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13827 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13829 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13831 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13833 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13835 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13836 * gdbarch.c gdbarch.h: Regenerate.
13837 * arch-utils.c (default_print_float_info): New function.
13838 * arch-utils.h (default_print_float_info): Prototype it.
13839 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13840 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13841 (PRINT_FLOAT_INFO): Document it.
13843 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13844 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13845 (PRINT_FLOAT_INFO): Define.
13847 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13849 * win32-nat.c (_initialize_check_for_gdb_ini):
13850 Add typecast to sprintf argument to suppress a warning.
13852 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13854 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13855 to allow easier handling of pass state.
13856 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13857 that gives exception name and address.
13858 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13859 and set last_sig value to ourstatus->value.sig. Some missing
13861 (child_continue): Correctly report continue_status.
13862 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13863 TARGET_SIGNAL_0 (new default value).
13864 (child_resume): consider sig argument passed to decide if
13865 the exception should be passed to debuggee or not.
13867 2002-02-05 Michael Snyder <msnyder@redhat.com>
13869 * regcache.c (fetch_register): Call target_fetch_register
13870 only if we don't call FETCH_PSEUDO_REGISTER.
13871 (store_register): Call target_store_register only if we
13872 don't call STORE_PSEUDO_REGISTER.
13874 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13876 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13877 ELF_MAKE_MSYMBOL_SPECIAL.
13878 * gdbarch.c, gdbarch.h: Regenerate.
13879 * arch-utils.c (default_make_msymbol_special): New function.
13880 * arch-utils.h (default_make_msymbol_special): Export.
13881 * elfread.c (elf_symtab_read): Compile use of
13882 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13884 * coffread.c (coff_symtab_read): Ditto, for
13885 COFF_MAKE_MSYMBOL_SPECIAL.
13887 2002-02-05 Jim Blandy <jimb@redhat.com>
13889 * solib-svr4.c (svr4_truncate_ptr): New function.
13890 (svr4_relocate_section_addresses): Do the address arithmetic with
13891 the appropriate truncation for target addresses, even when
13892 CORE_ADDR is larger than a target address.
13894 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13896 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13899 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13901 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13904 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13906 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13908 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13910 * gdbserver/linux-low.c: Remove unused include files.
13912 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13914 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13915 (read_inferior_memory): Use it.
13916 (write_inferior_memory): Likewise.
13918 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13920 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13921 grubbing through sys_errlist.
13923 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13925 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13927 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13928 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13930 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13932 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13933 (do_sfunc, set_cmd_sfunc): New functions.
13935 * command.h (struct cmd_list_element): Add field func.
13936 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13937 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13938 * cli/cli-decode.h: Ditto.
13940 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13941 (help_all, help_cmd_list): Ditto.
13942 (find_cmd, complete_on_cmdlist): Ditto.
13943 * top.c (execute_command): Ditto.
13945 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13948 * infcmd.c (notice_args_read): Fix function signature.
13950 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13951 * cli/cli-decode.c (add_set_cmd): Ditto.
13952 * utils.c (initialize_utils): Ditto.
13953 * maint.c (_initialize_maint_cmds): Ditto.
13954 * infrun.c (_initialize_infrun): Ditto.
13955 * demangle.c (_initialize_demangler): Ditto.
13956 * remote.c (add_packet_config_cmd): Ditto.
13957 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13958 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13959 * proc-api.c (_initialize_proc_api): Ditto.
13960 * kod.c (_initialize_kod): Ditto.
13961 * valprint.c (_initialize_valprint): Ditto.
13962 * top.c (init_main): Ditto.
13963 * infcmd.c (_initialize_infcmd): Ditto.
13964 * corefile.c (_initialize_core): Ditto.
13965 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13966 * arch-utils.c (initialize_current_architecture): Ditto.
13967 (_initialize_gdbarch_utils): Ditto.
13968 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13970 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13971 * wince.c (_initialize_inftarg): Ditto.
13972 * symfile.c (_initialize_symfile): Ditto.
13973 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13974 * language.c (_initialize_language): Ditto.
13975 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13977 2002-02-04 Michael Snyder <msnyder@redhat.com>
13979 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13981 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13983 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13984 Add rules for building the register data files.
13986 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13988 * regformats/regdat.sh: Add braces to the definition of
13989 expedite_regs_${arch}.
13991 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13993 * regformats/regdef.h (struct reg): Add comment describing the
13994 requirements for offset and size fields.
13996 2002-02-04 Andreas Schwab <schwab@suse.de>
13998 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13999 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14001 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14003 * gdbarch.sh (copyright): Update years in generated header.
14004 (SMASH_TEXT_ADDRESS): Add rule.
14005 * gdbarch.h, gdbarch.c: Re-generate.
14006 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14007 * dbxread.c: Likewise.
14008 * dwarfread.c: Likewise.
14009 * elfread.c: Likewise.
14010 * somread.c: Likewise.
14012 * arm-tdep.c (arm_smash_text_address): New function.
14013 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14015 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14017 Add support for hardware watchpoints on win32 native.
14018 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14019 CONTEXT_DEBUG_REGISTERS.
14020 (dr variable): New variable. Static array containing a local copy
14021 of debug registers.
14022 (debug_registers_changed): New variable. Reflects when debug registers
14023 are changed and need to be written to inferior.
14024 (debug_registers_used): New variable. Reflects when any debug register
14025 was set, used when new threads are created.
14026 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14028 (thread_rec): Set dr array if id is the thread of current_event .
14029 (child_continue, child_resume): Change the debug registers for all
14030 threads if debug_registers_changed.
14031 (child_add_thread): Change the debug registers if debug_registers_used.
14032 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14033 Link nm.h to new nm-cygwin.h file.
14034 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14035 of hardware registers.
14037 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14039 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14040 Restore behavour broken by 2002-01-20 Andrew Cagney
14041 <ac131313@redhat.com> IEEE_FLOAT removal.
14043 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14045 * c-valprint.c (c_val_print): Pass a proper valaddr to
14046 cp_print_class_method.
14047 * valops.c (search_struct_method): If there is only one method
14048 and args is NULL, return that method.
14050 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14052 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14053 accessing tag_name directly.
14055 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14057 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14058 of accessing tag_name directly.
14060 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14063 * gdbtypes.c (replace_type): New function.
14064 * gdbtypes.h (replace_type): Add prototype.
14065 * stabsread.c (read_type): Use replace_type.
14067 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14069 * Makefile.in (memattr.o): Add missing dependencies rule.
14071 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14073 * breakpoint.c (break_at_finish_command): Really export.
14074 (break_at_finish_at_depth_command): Ditto.
14075 (tbreak_at_finish_command): Ditto.
14076 * hppa-tdep.c: Include completer.h.
14077 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14078 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14080 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14082 * utils.c (do_write): New function.
14083 (error_stream): Rewrite combining the code from error_begin and
14085 (verror): Rewrite using error_stream.
14086 (error_begin): Delete function.
14088 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14090 * utils.c (error_begin): Make static.
14091 * defs.h (error_begin): Delete declaration.
14093 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14094 (decode_line_1): Use cplusplus_error instead of error_begin,
14095 cplusplus_hint and return_to_top_level.
14096 * coffread.c (coff_symfile_read): Use error instead of error_begin
14097 and return_to_top_level.
14098 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14100 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14102 * language.h (type_error, range_error): Make string parameter
14104 * language.c (warning_pre_print): Delete extern declaration.
14105 * dwarfread.c (warning_pre_print): Ditto.
14106 * language.c (type_error, range_error): Rewrite to use verror and
14107 vwarning instead of warning_begin.
14109 2002-02-01 Michael Snyder <msnyder@redhat.com>
14111 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14112 (set_ignore_count): Move misplaced comment back where it belongs.
14114 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14116 * command.h (NO_FUNCTION): Delete macro.
14117 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14118 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14119 * tracepoint.c (_initialize_tracepoint): Ditto.
14120 * cli/cli-decode.c (add_set_cmd): Ditto.
14121 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14123 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14125 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14126 Update ``this'' pointer when calling virtual functions.
14128 2002-02-01 Michael Snyder <msnyder@redhat.com>
14130 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14131 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14133 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14135 * regformats/reg-arm.dat: New file.
14136 * regformats/reg-i386.dat: New file.
14137 * regformats/reg-ia64.dat: New file.
14138 * regformats/reg-m68k.dat: New file.
14139 * regformats/reg-mips.dat: New file.
14140 * regformats/reg-ppc.dat: New file.
14141 * regformats/reg-sh.dat: New file.
14142 * regformats/regdef.h: New file.
14143 * regformats/regdat.sh: New file.
14145 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14147 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14148 (arm_frame_args_address, arm_frame_locals_address): New functions.
14149 (arm_frame_num_args): New function.
14150 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14151 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14152 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14154 2002-01-31 Michael Snyder <msnyder@redhat.com>
14156 * breakpoint.c (break_at_finish_command): Export.
14157 (break_at_finish_at_depth_command): Export.
14158 (tbreak_at_finish_command): Export.
14159 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14160 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14161 "txbreak" commands, which are HPPA specific.
14163 * printcmd.c (disassemble_command): Remove an ancient
14164 artifact of an old merge.
14166 * symfile.h (enum overlay_debugging_state):
14167 Define enum constant values for overlay mode.
14168 * symfile.c (overlay_debugging): Use enums instead of literals.
14169 (overlay_is_mapped, overlay_auto_command,
14170 overlay_manual_command): Ditto.
14172 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14173 breakpoint_here_p, breakpoint_inserted_here_p,
14174 breakpoint_thread_match, bpstat_stop_status,
14175 describe_other_breakpoints, check_duplicates, clear_command):
14176 Coding standard fixes.
14178 * target.c (target_xfer_memory): Add spaces, coding standard.
14179 (do_xfer_memory): Add missing line to trust-readonly
14180 code: check bfd SEC_READONLY flag for section.
14182 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14184 * PROBLEMS: Fix typo, 5.1->5.1.1.
14186 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14188 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14189 data symbols, since we search based on textlow and texthigh.
14190 (find_pc_sect_symtab): Likewise.
14192 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14194 * defs.h (vwarning): Declare.
14195 * utils.c (vwarning): New function.
14196 (warning): Call vwarning.
14197 (warning_begin): Delete function.
14199 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14200 the warning message.
14201 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14204 2002-01-30 Michael Snyder <msnyder@redhat.com>
14206 * NEWS: Mention "set trust-readonly-sections" command.
14207 Mention generate-core-file command.
14209 2002-01-15 Michael Snyder <msnyder@redhat.com>
14211 * target.c: New command, "set trust-readonly-sections on".
14212 (do_xfer_memory): Honor the suggestion to trust readonly sections
14213 by reading them from the object file instead of from the target.
14214 (initialize_targets): Register command "set trust-readonly-sections".
14216 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14218 * parse.c (target_map_name_to_register): Simplify, search regs and
14219 pseudo-regs using a single loop.
14221 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14223 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14225 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14227 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14228 * config/i386/i386v42mp.mh: Add i387-nat.o .
14229 * i386v4-nat.c: Include i387-nat.h.
14230 (supply_fpregset): Use i387_supply_fsave.
14231 (fill_fpregset): Use i387_fill_fsave.
14233 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14235 * arm-tdep.c (arm_call_dummy_words): Define.
14236 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14237 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14238 (CALL_DUMMY_WORDS): Define.
14239 (arm_call_dummy_words): Declare.
14240 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14241 (arm_linux_call_dummy_words): Declare.
14243 2002-01-30 Andreas Schwab <schwab@suse.de>
14245 * m68klinux-nat.c: Fix last change to use regcache_collect
14246 instead of referencing registers[] directly.
14248 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14250 * parse.c (target_map_name_to_register): Delete code wrapped in
14251 #ifdef REGISTER_NAME_ALIAS_HOOK.
14253 2002-01-28 Michael Snyder <msnyder@redhat.com>
14255 * regcache.c (legacy_read_register_gen): Need to be able to
14256 read pseudo-register as well as real register.
14257 (legacy_write_register_gen): Ditto.
14259 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14261 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14262 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14263 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14264 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14265 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14266 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14267 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14268 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14269 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14270 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14271 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14272 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14273 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14274 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14275 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14276 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14277 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14278 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14279 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14280 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14282 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14284 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14285 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14286 (initialize_current_architecture): Update target_byte_order using
14287 information from BFD.
14288 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14289 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14291 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14293 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14294 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14296 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14297 #ifdef INVALID_FLOAT.
14298 * infcmd.c (do_registers_info): Ditto.
14299 * values.c (unpack_double): Ditto. Add comment.
14301 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14302 already commented out.
14304 2002-01-26 Andreas Schwab <schwab@suse.de>
14306 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14307 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14308 registers and add support for PTRACE_GETREGS.
14310 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14312 GDB 5.1.1 released from 5.1 branch.
14313 * NEWS: Add 5.1.1 news.
14314 * README: Sync with 5.1 branch.
14316 2002-01-23 Fred Fish <fnf@redhat.com>
14318 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14319 stabstring on initial malloc. Reallocing will copy it for us,
14322 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14324 * Makefile.in (hpread_h): Delete.
14325 (HFILES_NO_SRCDIR): Remove hpread.h.
14326 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14327 (hpread.o): Update dependencies.
14328 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14330 * hp-psymtab-read.c: Remove file.
14331 * hp-symtab-read.c: Remove file.
14332 * hpread.h: Remove file.
14334 * hpread.c: Merge all contents of hp-psymtab-read.c,
14335 hp-symtab-read.c and hpread.h into this file, as it was prior to
14338 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14339 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14340 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14341 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14343 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14345 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14346 fill_gregset): Call gdbarch_tdep() just once, assign result to
14347 variable and use that, instead of calling the function several
14350 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14352 * configure.host: Accept sparcv9 as alias for sparc64.
14353 * configure.tgt: Likewise.
14355 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14357 * solib-aix5.c (build_so_list_from_mapfile)
14358 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14359 arguments is not reversed.
14360 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14361 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14363 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14365 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14366 modified version of obsolete sh_fetch_pseudo_register.
14367 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14368 (sh4_register_read): New function.
14369 (sh_pseudo_register_write): New function. Renamed and modified
14370 version of obsolete sh_store_pseudo_register.
14371 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14372 (sh4_register_write): New function.
14373 (sh_gdbarch_init): Remove setting of gdbarch function
14374 fetch_pseudo_register and store_pseudo_register. Remove setting of
14375 register_convert_to_raw, register_convert_to_virtual,
14376 register_convertible.
14377 (sh_sh4_register_convertible): Delete. No longer needed. All is
14378 taken care by architecture specific functions
14379 register_read/register_write.
14380 (sh_sh4_register_convert_to_virtual): Make static.
14381 (sh_sh4_register_convert_to_raw): Ditto.
14383 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14385 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14386 (floatformat_is_nan, floatformat_mantissa): Ditto.
14388 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14389 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14390 builtin_type_ieee_double_little,
14391 builtin_type_ieee_double_littlebyte_bigword,
14392 builtin_type_m68881_ext, builtin_type_i960_ext,
14393 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14394 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14395 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14396 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14398 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14400 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14401 parameter. Set frameless flag if it exists and depended of
14402 whether the scanned function is frameless or not.
14403 (xstormy16_skip_prologue): If function is frameless, return
14404 result of xstormy16_scan_prologue().
14405 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14408 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14410 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14411 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14412 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14413 sh_sh4_register_byte, sh_sh4_register_raw_size,
14414 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14415 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14416 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14417 sh_store_pseudo_register, sh_do_pseudo_register): Call
14418 gdbarch_tdep() just once, assign result to variable and use that,
14419 instead of calling the function several times.
14421 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14423 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14424 macros instead of LAST_FPU_CTRL_REGNUM.
14425 (store_register): Likewise.
14427 2002-01-21 Jim Blandy <jimb@redhat.com>
14429 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14430 is up-to-date before running the program, not just when a program
14433 2002-01-21 Fred Fish <fnf@redhat.com>
14435 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14436 when we have found all instructions we are looking for.
14438 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14440 * arm-tdep.c (arm_register_name): New function.
14441 (arm_registers_names): Make static.
14442 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14443 (arm_register_name): Declare.
14444 (REGISTER_NAME): Use it.
14446 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14447 Kevin Buettner <kevinb@redhat.com>
14449 Convert arm targets to new FRAME interface.
14450 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14451 (arm_frame_find_save_regs): Delete.
14452 (arm_frame_init_saved_regs): New.
14453 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14454 Allocate extra_info as required. Convert all uses of fsr.regs
14455 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14457 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14458 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14459 (check_prologue_cache, save_prologue_cache): Likewise.
14460 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14461 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14462 (FRAME_FIND_SAVED_REGS): Delete.
14463 (arm_frame_find_saved_regs): Delete prototype.
14464 (arm_frame_init_saved_regs): New prototype.
14465 (FRAME_INIT_SAVED_REGS): Define.
14467 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14469 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14471 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14473 From Jeff Law <law@redhat.com>:
14474 * infttrace.c: Include <sys/pstat.h>.
14475 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14476 exec file if the ttrace equivalent fails.
14478 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14480 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14481 (closeLogFile): Ditto.
14483 2002-01-20 Michael Chastain <mec@shout.net>
14485 * top.c (print_gdb_version): Bump copyright year to 2002.
14487 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14489 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14490 Zannoni and Eli Zaretskii.
14492 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14494 * buildsym.c: Update copyright years.
14495 * c-typeprint.c: Likewise.
14496 * dwarf2read.c: Likewise.
14497 * f-typeprint.c: Likewise.
14498 * gdbtypes.c: Likewise.
14499 * gdbtypes.h: Likewise.
14500 * hp-symtab-read.c: Likewise.
14501 * hpread.c: Likewise.
14502 * mdebugread.c: Likewise.
14503 * p-typeprint.c: Likewise.
14505 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14507 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14508 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14509 byte-order selectable.
14510 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14511 * arch-utils.c: Ditto.
14512 (set_endian): Ditto.
14513 (set_endian_from_file): Ditto.
14514 * gdbserver/low-sim.c (create_inferior): Ditto.
14515 * gdbarch.sh: Ditto.
14516 * gdbarch.h: Re-generate.
14517 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14518 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14519 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14520 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14521 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14522 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14523 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14524 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14526 * config/mips/tm-wince.h: Remove #undef of macro
14527 TARGET_BYTE_ORDER_SELECTABLE.
14528 * config/sh/tm-wince.h: Ditto.
14530 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14532 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14533 member function fields. Add accessor macro
14534 TYPE_FN_FIELD_ARTIFICIAL.
14535 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14536 * c-typeprint.c (c_type_print_base): Skip artificial member
14539 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14541 * f-typeprint.c: Delete unused function f_type_print_args.
14542 * p-typeprint.c: Delete unused function pascal_type_print_args.
14544 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14546 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14547 comment. Add ``artificial'' to ``union field_location''.
14549 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14551 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14552 * mdebugread.c (parse_symbol): Likewise.
14553 * stabsread.c (define_symbol): Likewise.
14554 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14555 initializing TYPE_FIELD_BITPOS to n (obsolete).
14556 (hpread_doc_function_type): Likewise.
14557 * hpread.c (hpread_function_type): Likewise.
14559 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14561 * configure.in (host_makefile_frag): Only require a host makefile
14562 fragment when a native build.
14563 * configure: Re-generate.
14565 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14567 * doublest.h (floatformat_from_type): Declare.
14568 * doublest.c (floatformat_from_type): New function.
14569 (convert_typed_floating): Use.
14571 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14572 call to function floatformat_from_type.
14574 * gdbarch.sh (IEEE_FLOAT): Delete.
14575 * gdbarch.h, gdbarch.c: Re-generate.
14576 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14577 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14578 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14579 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14580 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14581 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14582 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14583 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14584 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14585 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14586 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14587 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14589 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14590 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14591 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14592 * sh-tdep.c (sh_gdbarch_init): Ditto.
14593 * mips-tdep.c (mips_gdbarch_init): Ditto.
14594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14595 * cris-tdep.c (cris_gdbarch_init): Ditto.
14597 2002-01-20 Jiri Smid <smid@suse.cz>
14599 * configure.host, configure.tgt: Support x86-64.
14600 * NEWS: Note new target x86-64.
14602 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14603 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14604 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14605 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14606 x86-64-linux-nat.o): Fix dependencies.
14608 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14610 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14611 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14612 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14613 * config/sparc/xm-sun4os4.h: Delete file.
14614 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14616 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14618 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14619 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14620 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14621 * config/i386/i386lynx.mh (XM_FILE): Delete.
14622 * config/rs6000/xm-rs6000ly.h: Delete file.
14623 * config/sparc/xm-sparclynx.h: Delete file.
14624 * config/m68k/xm-m68klynx.h: Delete file.
14625 * config/i386/xm-i386lynx.h: Delete file.
14626 * config/xm-lynx.h: Delete file.
14627 * config/djgpp/fnchange.lst: Update.
14629 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14631 * alpha-tdep.c (alpha_register_byte): New function.
14632 (alpha_register_raw_size): Ditto.
14633 (alpha_register_virtual_size): Ditto.
14634 (alpha_skip_prologue_internal): Renamed from
14635 alpha_skip_prologue.
14636 (alpha_skip_prologue): New version that calls
14637 alpha_skip_prologue_internal.
14638 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14639 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14640 second argument from alpha_skip_prologue.
14641 (REGISTER_BYTE): Use alpha_register_byte.
14642 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14643 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14644 (FRAMELESS_FUNCTION_INVOCATION): Use
14645 generic_frameless_function_invocation_not.
14646 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14647 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14649 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14651 * config/mips/xm-news-mips.h: Delete file.
14652 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14654 * config/m88k/xm-m88k.h: Delete file.
14655 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14656 * config/m88k/xm-delta88v4.h: Ditto.
14657 * config/m88k/xm-delta88.h: Ditto.
14659 * config/alpha/xm-fbsd.h: Delete file.
14660 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14662 * config/sparc/xm-sparc.h: Delete file.
14663 * Makefile.in (xm-sun4os4.h): Delete dependency.
14664 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14665 * config/sparc/xm-sun4os4.h: Ditto.
14666 * config/sparc/xm-linux.h: Ditto.
14668 * config/i386/xm-windows.h: Delete file.
14670 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14672 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14673 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14675 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14677 * alpha-tdep.c (alpha_call_dummy_words): New.
14678 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14679 (CALL_DUMMY_P): Define.
14680 (CALL_DUMMY_WORDS): Define.
14681 (SIZEOF_CALL_DUMMY_WORDS): Define.
14683 2002-01-19 Per Bothner <per@bothner.com>
14685 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14686 isn't NULL, which can happen with some gcj-3.x-produced code.
14688 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14690 * alpha-tdep.c (alpha_register_virtual_type): New function.
14691 (alpha_init_frame_pc_first): Ditto.
14692 (alpha_fix_call_dummy): Ditto.
14693 (alpha_store_struct_return): Ditto.
14694 (alpha_extract_struct_value_address): Ditto.
14695 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14696 alpha_register_virtual_type.
14697 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14698 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14699 alpha_extract_struct_value_address.
14700 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14701 (INIT_FRAME_PC): Use init_frame_pc_noop.
14702 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14704 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14706 * i386gnu-nat.c: Include "i386-tdep.h".
14707 (fetch_fpregs): Simplify code dealing with uninitialized floating
14708 point states such that it doesn't require FP7_REGNUM.
14710 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14712 * alpha-tdep.c (frame_extra_info): New.
14713 (alpha_find_saved_regs): Make static. Use
14715 (alpha_frame_init_saved_regs): New function.
14716 (alpha_frame_saved_pc): Use frame->extra_info.
14717 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14718 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14719 (init_extra_frame_info): Rename to...
14720 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14721 (alpha_print_extra_frame_info): New function.
14722 (alpha_frame_locals_address): Ditto.
14723 (alpha_frame_args_address): Ditto.
14724 (alpha_pop_frame): Use frame->extra_info.
14725 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14726 alpha_frame_args_address.
14727 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14728 (alpha_find_saved_regs): Remove prototype.
14729 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14730 (EXTRA_FRAME_INFO): Remove.
14731 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14732 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14734 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14736 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14737 (alpha_cannot_fetch_register): Ditto.
14738 (alpha_cannot_store_register): Ditto.
14739 (alpha_register_convertible): Ditto.
14740 (alpha_use_struct_convention): Ditto.
14741 * config/alpha/tm-alpha.h: Update copyright years.
14742 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14743 (INNER_THAN): Use core_addr_lessthan.
14744 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14745 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14746 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14747 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14748 (FRAME_CHAIN): Remove unnecessary cast.
14750 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14752 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14755 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14757 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14758 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14759 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14760 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14761 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14762 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14763 * x86-64-linux-nat.c: Ditto.
14765 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14767 * alpha-tdep.c (alpha_register_name): New function.
14768 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14769 (REGISTER_NAME): Define.
14771 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14773 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14775 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14777 * alpha-tdep.c: Update copyright years.
14778 (alpha_next_pc): New function.
14779 (alpha_software_single_step): Ditto.
14780 * config/alpha/tm-alpha.h: Add prototype for
14781 alpha_software_single_step.
14783 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14785 * alphabsd-nat.c: Update copyright years.
14786 (fill_gregset): Use regcache_collect.
14787 (fill_fpregset): Likewise.
14788 (fetch_inferior_registers): Only fetch integer registers
14789 if requested to do so.
14790 (store_inferior_registers): Only store integer registers
14791 if requested to do so.
14793 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14795 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14796 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14797 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14798 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14799 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14800 * config/arm/linux.mh (XDEPFILES): Delete.
14801 * config/arm/nbsd.mh (XDEPFILES): Delete.
14802 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14803 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14804 * config/i386/i386m3.mh (XDEPFILES): Delete.
14805 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14806 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14807 * config/i386/fbsd.mh (XDEPFILES): Delete.
14808 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14809 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14810 * config/i386/i386v4.mh (XDEPFILES): Delete.
14811 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14812 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14813 * config/i386/i386aix.mh (XDEPFILES): Delete.
14814 * config/i386/go32.mh (XDEPFILES): Delete.
14815 * config/i386/cygwin.mh (XDEPFILES): Delete.
14816 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14817 * config/i386/i386mach.mh (XDEPFILES): Delete.
14818 * config/i386/i386v32.mh (XDEPFILES): Delete.
14819 * config/i386/linux.mh (XDEPFILES): Delete.
14820 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14821 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14822 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14823 * config/i386/i386sco.mh (XDEPFILES): Delete.
14824 * config/i386/i386v.mh (XDEPFILES): Delete.
14825 * config/i386/nbsd.mh (XDEPFILES): Delete.
14826 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14827 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14828 * config/i386/symmetry.mh (XDEPFILES): Delete.
14829 * config/i386/obsd.mh (XDEPFILES): Delete.
14830 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14831 * config/ia64/linux.mh (XDEPFILES): Delete.
14832 * config/ia64/aix.mh (XDEPFILES): Delete.
14833 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14834 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14835 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14836 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14837 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14838 * config/m68k/linux.mh (XDEPFILES): Delete.
14839 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14840 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14841 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14842 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14843 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14844 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14845 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14846 * config/m88k/delta88.mh (XDEPFILES): Delete.
14847 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14848 * config/m88k/m88k.mh (XDEPFILES): Delete.
14849 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14850 * config/mips/linux.mh (XDEPFILES): Delete.
14851 * config/mips/irix6.mh (XDEPFILES): Delete.
14852 * config/mips/irix5.mh (XDEPFILES): Delete.
14853 * config/mips/irix4.mh (XDEPFILES): Delete.
14854 * config/mips/irix3.mh (XDEPFILES): Delete.
14855 * config/mips/decstation.mh (XDEPFILES): Delete.
14856 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14857 (NATDEPFILES): Move core-aout.o to here.
14858 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14859 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14860 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14861 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14862 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14863 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14864 * config/pa/hpux11.mh (XDEPFILES): Delete.
14865 * config/powerpc/aix.mh (XDEPFILES): Delete.
14866 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14867 * config/powerpc/linux.mh (XDEPFILES): Delete.
14868 * config/romp/rtbsd.mh: Rename XDEPFILES.
14869 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14870 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14871 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14872 * config/s390/s390.mh (XDEPFILES): Delete.
14873 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14874 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14875 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14876 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14877 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14878 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14879 * config/sparc/linux.mh (XDEPFILES): Delete.
14880 * config/vax/vaxult.mh (XDEPFILES): Delete.
14881 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14882 * Makefile.in (DEPFILES): Remove XDEPFILES.
14884 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14886 * utils.c (internal_verror): Fix comments, default is yes not no.
14887 Update queries to match. Default to quit and dump core.
14889 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14891 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14893 * defs.h, event-top.c, gdbcmd.h: Ditto.
14894 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14895 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14896 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14897 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14898 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14899 * mi/mi-main.c:Ditto.
14901 * stack.c, symfile.c: Update copyright.
14903 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14905 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14906 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14907 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14908 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14910 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14912 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14913 * gdbserver/low-lynx.c (myattach): Likewise.
14914 * gdbserver/low-nbsd.c (myattach): Likewise.
14915 * gdbserver/low-sim.c (myattach): Likewise.
14916 * gdbserver/low-sparc.c (myattach): Likewise.
14917 * gdbserver/low-sun3.c (myattach): Likewise.
14919 * gdbserver/low-linux.c (myattach): New function.
14921 * gdbserver/server.c (attach_inferior): New function.
14922 (main): Handle "--attach".
14924 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14926 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14929 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14931 * c-typeprint.c (is_type_conversion_operator): Add additional
14932 check for non-conversion operators.
14934 2002-01-15 Michael Snyder <msnyder@redhat.com>
14936 * linux-proc.c: Add "info proc" command, a la procfs.c.
14937 (read_mapping): New function, abstract and re-use code.
14938 (linux_find_memory_regions): Use new func read_mapping.
14939 (linux_info_proc_cmd): New function, implement "info proc".
14940 (_initialize_linux_proc): Add new command "info proc".
14942 2002-01-15 Michael Snyder <msnyder@redhat.com>
14944 * symfile.c (generic_load): Use bfd_map_over_sections method
14945 instead of manipulating bfd structure members directly.
14946 (add_section_size_callback): New function, bfd sections callback
14947 used by generic_load.
14948 (load_sections_callback): New function, bfd sections callback
14949 used by generic_load.
14951 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14953 [Based on work by Jim Blandy]
14954 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14955 (builtin_type_vec128): Export.
14956 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14958 (builtin_type_vec128): New builtin type for 128 bit vector
14960 (build_gdbtypes): Initialize builtin_type_v16qi and
14961 builtin_type_v8hi. Create the vec128 register builtin type
14963 (build_builtin_type_vec128): New function.
14964 (_initialize_gdbtypes): Register builtin_type_v16qi and
14965 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14966 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14967 AltiVec register to new builtin type.
14969 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14971 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14974 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14976 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14977 CLEAN_UP_REGISTER_VALUE.
14978 * regcache.c (supply_register): Update only call.
14980 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14982 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14983 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14984 a29k-*-vxworks* targets as obsolete.
14986 2002-01-14 Michael Snyder <msnyder@redhat.com>
14988 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14989 until we can resolve portability issues.
14990 * gregset.h: Remove references to fpxregs.
14991 * gcore.c (gcore_command): Initialize note_sec to NULL.
14993 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14995 * signals.c (target_signal_to_name): Rewrite. Only use
14996 signals[].name when in bounds and non-NULL.
14998 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15000 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15001 * signals.c (target_signal_to_name): Verify that SIG is within the
15002 bounds of the signals array.
15004 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15006 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15008 2002-01-13 Keith Seitz <keiths@redhat.com>
15010 * stack.c (print_frame_info_base): Print the frame's pc
15011 only if when print_frame_info_listing_hook is not defined.
15013 2002-01-13 Keith Seitz <keiths@redhat.com>
15015 * varobj.c (varobj_set_value): Make sure that there were no
15016 errors evaluating the object before attempting to set its
15018 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15019 so this offset adjustment is no longer necessary.
15020 (create_child): Don't set the error flag if the child is
15021 a CPLUS_FAKE_CHILD.
15022 (value_of_child): If value_fetch_lazy fails, return NULL
15023 so that callers will be notified that an error occurred.
15024 (c_value_of_variable): Delay check of variable's validity
15025 until later. We actually want all structs and unions to have
15027 Do not return "???" for variables which could not be evaluated.
15028 This error condition must be returned to the caller so that it
15029 can get the error condition from gdb.
15030 (cplus_name_of_child): Adjust index for vptr before figuring
15031 out the name of the child.
15032 (cplus_value_of_child): If a child's (real) parent is not valid,
15033 don't even bother trying to give a value for it. Just return
15034 an error. Change all instances in this function.
15035 (cplus_type_of_child): If our parent is one of the "fake"
15036 parents, we need to get at the type of the real parent, and
15037 derive the child's true type using this information.
15039 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15041 From 2002-01-09 John Marshall <johnm@falch.net>:
15042 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15043 sources.redhat.com, and tweak some related URLs which had
15044 suffered from linkrot.
15046 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15049 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15050 structures passed in registers.
15052 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15054 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15055 white space which prevented compilation. Reported by DSK
15056 <dsk@student.unsw.edu.au>.
15058 2002-01-11 Michael Snyder <msnyder@redhat.com>
15060 * symfile.c (build_section_addr_info_from_section_tab):
15061 Use bfd access method instead of manipulating bfd directly.
15062 (syms_from_objfile): Ditto.
15063 (simple_overlay_update_1): Ditto.
15064 (simple_overlay_update): Ditto.
15065 (generic_load): Ditto.
15066 (overlay_unmapped_address): FIXME comment, bfd access methods.
15067 (sections_overlap): FIXME comment, bfd access methods.
15068 (pc_in_mapped_range): FIXME comment, bfd access methods.
15069 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15070 (section_is_mapped): FIXME comment, bfd access methods.
15071 (section_is_overlay): FIXME comment, bfd access methods.
15073 * symfile.c (generic_load): Whitespace and long line cleanups.
15074 Remove duplicate variable, change several local variables to
15075 more appropriate data types.
15076 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15078 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15080 From Peter Schauer:
15081 * language.c (longest_local_hex_string_custom): Use phex_nz to
15082 convert NUM to a hex string.
15084 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15086 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15088 Update Copyright year.
15090 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15092 * language.c (longest_raw_hex_string): Delete unused function.
15094 2002-01-11 Petr Sorfa <petrs@caldera.com>
15096 * MAINTAINERS (write-after-approval): Add myself.
15097 * dwarf2read.c (read_tag_string_type): Handling of
15099 (read_tag_string_type): FORTRAN fix to prevent propagation of
15101 (set_cu_language): Handling of DW_LANG_Fortran95
15103 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15105 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15106 GETPID(inferior_ptid).
15107 (store_inferior_registers): Likewise.
15109 2002-01-10 Jason Merrill <jason@redhat.com>
15111 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15114 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15116 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15117 and bfd/elf32-sh-nbsd.c.
15119 2002-01-10 Michael Snyder <msnyder@redhat.com>
15121 * NEWS: Mention --pid and corefile/proc-id behavior change.
15123 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15124 * gcore.c: Include cli/cli-decode.h instead of command.h.
15126 * main.c (captured_main): Add new command line option "--pid".
15127 If the second command line argument (following the symbol-file)
15128 begins with a digit, try to attach to it before trying to open
15130 (print_gdb_help): Document the "--pid" argument.
15132 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15134 * completer.c (command_completer): New function.
15136 * completer.h <command_completer>: Add prototype.
15138 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15139 completer for the "help" command.
15141 2002-01-09 Jason Merrill <jason@redhat.com>
15143 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15145 2002-01-09 Michael Snyder <msnyder@redhat.com>
15147 * i386-linux-nat.c (fill_fpxregset): Make global.
15148 (store_fpxregset): Ditto.
15150 * gregset.h (gdb_fpxregset_t): Define.
15151 (supply_fpxregset): Prototype.
15152 (fill_fpxregset): Prototype.
15154 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15156 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15158 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15159 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15160 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15162 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15164 * MAINTAINERS: Update target maintainer rules so that any
15165 Maintainer can approve a tested patch for a maintenance-only
15168 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15170 * MAINTAINERS (write-after-approval): Add myself.
15172 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15175 2002-01-08 Michael Snyder <msnyder@redhat.com>
15177 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15178 real name of the executable, rather than the /proc name.
15180 2002-01-03 Michael Snyder <msnyder@redhat.com>
15182 Implement a "generate-core-file" command in gdb, save target state.
15183 * gcore.c: New file. Implement new command 'generate-core-file'.
15184 Save a corefile image of the current state of the inferior.
15185 * linux-proc.c: Add linux-specific code for saving corefiles.
15186 * target.h (struct target_ops): Add new target vectors for saving
15187 corefiles; to_find_memory_regions and to_make_corefile_notes.
15188 (target_find_memory_regions): New macro.
15189 (target_make_corefile_notes): New macro.
15190 * target.c (update_current_target): Inherit new target methods.
15191 (dummy_find_memory_regions): New place-holder method.
15192 (dummy_make_corefile_notes): New place-holder method.
15193 (init_dummy_target): Initialize new dummy target vectors.
15194 * exec.c (exec_set_find_memory_regions): New function.
15195 Allow the exec_ops vector for memory regions to be taken over.
15196 (exec_make_note_section): New function, target vector method.
15197 * defs.h (exec_set_find_memory_regions): Export prototype.
15198 * procfs.c (proc_find_memory_regions): New function, corefile method.
15199 (procfs_make_note_section): New function, corefile method.
15200 (init_procfs_ops): Set new target vector pointers.
15201 (find_memory_regions_callback): New function.
15202 (procfs_do_thread_registers): New function.
15203 (procfs_corefile_thread_callback): New function.
15204 * sol-thread.c (sol_find_memory_regions): New function.
15205 (sol_make_note_section): New function.
15206 (init_sol_thread_ops): Initialize new target vectors.
15207 * inftarg.c (inftarg_set_find_memory_regions): New function.
15208 Allow to_find_memory_regions vector to be taken over.
15209 (inftarg_set_make_corefile_notes): New function.
15210 Allow to_make_corefile_notes vector to be taken over.
15211 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15212 interface layer if not target_has_execution (may be a corefile).
15213 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15214 * config/sparc/sun4sol2.mh: Ditto.
15215 * config/alpha/alpha-linux.mh: Ditto.
15216 * config/arm/linux.mh: Ditto.
15217 * config/i386/x86-64linux.mh: Ditto.
15218 * config/ia64/linux.mh: Ditto.
15219 * config/m68k/linux.mh: Ditto.
15220 * config/mips/linux.mh: Ditto.
15221 * config/powerpc/linux.mh: Ditto.
15222 * config/sparc/linux.mh: Ditto.
15224 2002-01-07 Michael Snyder <msnyder@redhat.com>
15226 * arm-linux-nat.c: Remove references to regcache.c internal data
15227 (registers[] and register_valid[]).
15229 2002-01-07 Michael Snyder <msnyder@redhat.com>
15231 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15232 so that attaching to a pid will automatically read the process's
15233 symbol file and shlibs.
15234 * Makefile.in: Add rule for linux-proc.o.
15235 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15236 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15237 * config/arm/linux.mh: Ditto.
15238 * config/i386/linux.mh: Ditto.
15239 * config/i386/x86-64linux.mh: Ditto.
15240 * config/ia64/linux.mh: Ditto.
15241 * config/m68k/linux.mh: Ditto.
15242 * config/mips/linux.mh: Ditto.
15243 * config/powerpc/linux.mh: Ditto.
15244 * config/sparc/linux.mh: Ditto.
15246 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15248 * win32-nat.c: Add i386-tdep.h dependency.
15250 2002-01-07 Michael Snyder <msnyder@redhat.com>
15252 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15253 instead of bfd_get_arch_size. Don't bail out just because
15254 there's no exec_bfd.
15256 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15257 * p-valprint.c (pascal_object_print_value): Ditto.
15258 * somread.c (som_symtab_read): Ditto.
15259 * symfile.c (simple_free_overlay_region_table): Ditto.
15260 * valops.c (value_assign): Ditto.
15262 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15263 use tilde_expand and strerror for opening save-tracepoints file.
15265 * thread-db.c (thread_db_new_objfile): Indendation fix.
15267 * infptrace.c (GDB_MAX_ALLOCA): New define.
15268 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15269 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15270 can be overridden with whatever value is appropriate to the host).
15271 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15272 alloca to allocate potentially large buffer.
15273 * rs6000-nat.c (child_xfer_memory): Ditto.
15274 * symm-nat.c (child_xfer_memory): Ditto.
15275 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15277 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15279 From Nick Clifton <nickc@redhat.com>
15280 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15282 2002-01-07 Michael Snyder <msnyder@redhat.com>
15284 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15285 Don't use exec_bfd if it's NULL.
15287 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15289 * valops.c (value_arg_coerce): Fix formatting.
15291 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15293 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15294 * gnu-nat.c: Ditto.
15296 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15298 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15299 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15300 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15301 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15302 z8k-coff have not been multi-arched. Update z8k-coff build
15305 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15307 * MAINTAINERS: Mark a29k target as obsolete.
15308 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15309 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15311 * NEWS: Note that a29k targets are obsolete.
15312 * a29k-tdep.c: Mark as obsolete.
15313 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15314 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15315 a29k-*-vxworks* targets as obsolete.
15316 * remote-adapt.c: Obsolete.
15317 * remote-eb.c: Obsolete.
15318 * remote-mm.c: Obsolete.
15319 * remote-udi.c: Obsolete.
15320 * config/a29k/a29k-udi.mt: Obsolete.
15321 * config/a29k/a29k.mt: Obsolete.
15322 * config/a29k/tm-a29k.h: Obsolete.
15323 * config/a29k/tm-vx29k.h: Obsolete.
15324 * config/a29k/vx29k.mt: Obsolete.
15326 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15328 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15329 with BFD_ENDIAN_BIG.
15331 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15333 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15334 * configure, config.in: Re-generate.
15335 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15336 * defs.h: Do not include <endian.h>.
15338 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15340 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15341 * config.in: Regenerate.
15342 * configure.in: Update copyright years.
15343 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15344 * configure: Regenerate.
15345 * i386bsd-nat.c: Update copyright years.
15346 (fill_gregset): Use regcache_collect.
15347 (fetch_inferior_registers): Only fetch integer registers
15348 if requested to do so. Add support for XMM registers
15349 using PT_GETXMMREGS.
15350 (store_inferior_registers): Only store integer registers
15351 if requested to do so. Add support for XMM registers
15352 using PT_SETXMMREGS.
15353 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15354 (store_inferior_registers): Remove.
15355 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15356 (fetch_elfcore_registers): New function.
15357 (i386nbsd_elfcore_fns): New.
15358 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15359 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15361 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15362 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15363 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15364 * config/i386/tm-nbsd.h: Update copyright years.
15365 (HAVE_SSE_REGS): Define.
15366 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15367 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15368 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15369 (SIGCONTEXT_PC_OFFSET): Remove.
15370 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15372 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15374 * configure.tgt: Remove powerpc-*-macos* target.
15375 * config/m68k/xm-mpw.h: Delete file.
15376 * config/xm-mpw.h: Delete file.
15377 * ser-mac.c: Delete file.
15378 * mpw-make.sed: Delete file.
15379 * mpw-config.in: Delete file.
15380 * mac-xdep.c: Delete file.
15381 * mac-gdb.r: Delete file.
15382 * mac-defs.h: Delete file.
15383 * mac-nat.c: Delete file.
15384 * config/powerpc/macos.mh: Delete file.
15385 * config/powerpc/macos.mt: Delete file.
15386 * config/powerpc/nm-macos.h: Delete file.
15387 * config/powerpc/tm-macos.h: Delete file.
15388 * source.c (openp, open_source_file): Remove obsolete code.
15389 * top.c (gdb_readline): Ditto.
15390 * utils.c (query): Ditto.
15391 * event-top.c (display_gdb_prompt): Ditto.
15392 * Makefile.in (ser-mac.o): Delete obsolete target.
15395 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15397 * defs.h (BIG_ENDIAN): Delete macro definition.
15398 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15399 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15400 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15401 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15402 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15403 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15404 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15405 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15406 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15407 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15408 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15409 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15410 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15411 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15412 * gdbarch.c: Re-generate.
15414 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15416 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15419 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15421 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15423 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15425 * value.h (value_ptr): Delete typedef.
15427 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15429 * i386nbsd-nat.c: Update copyright years.
15430 Include i386-tdep.h.
15432 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15434 * stabsread.c: Update copyright years.
15436 From Debashis Mahata <debashis.mahata@wipro.com>:
15437 (read_struct_fields): Deal with Sun C compiler erroneous stab
15438 output for structs and unions.
15441 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15443 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15446 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15448 * cp-abi.c: Fix whitespace.
15449 (baseclass_offset): New wrapper function.
15450 * cp-abi.h (baseclass_offset): Add prototype.
15451 (struct cp_abi_ops): Add baseclass_offset pointer.
15453 * valops.c (vb_match): Move to...
15454 * gnu-v2-abi.c (vb_match): here.
15455 * valops.c (baseclass_offset): Move to...
15456 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15458 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15460 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15461 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15462 * hpacc-abi.c (init_hpacc_ops): Likewise.
15464 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15466 * valops.c (find_overload_match): Accept obj as a
15467 reference parameter. Update it before returning.
15468 * value.h (find_overload_match): Update prototype.
15469 * eval.c (evaluate_subexp_standard): Pass object to
15470 find_overload_match by reference.
15472 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15474 * valarith.c: Replace value_ptr with struct value pointer. Remove
15475 register attribute from value declarations.
15478 * scm-lang.c (scm_lookup_name): Ditto.
15480 2002-01-03 Michael Snyder <msnyder@redhat.com>
15482 Abstract the functionality of iterating over mapped memory
15483 regions into a general purpose iterator function.
15484 * procfs.c (iterate_over_mappings): New function, general purpose
15485 iterator for memory sections.
15486 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15487 (solib_mappings_callback): New function, callback for above.
15488 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15489 (info_mappings_callback): New function, callback for above.
15491 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15493 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15495 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15496 * i386-tdep.c: Include "elf-bfd.h".
15497 (process_note_abi_tag_sections): New function.
15498 (i386_gdbarch_init): Add code to recognize various OS/ABI
15501 * maint.c (_initialize_maint_cmds): Add missing \ in
15504 For older changes see ChangeLog-2001
15510 version-control: never