1 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3 * stabsread.c (update_method_name_from_physname): Call complaint()
6 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
8 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
10 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12 * blockframe.c: Include "gdbcmd.h" and "command.h".
13 (backtrace_below_main): New variable.
14 (file_frame_chain_valid, func_frame_chain_valid)
15 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
16 (generic_func_frame_chain_valid): Remove functions.
17 (frame_chain_valid, do_flush_frames_sfunc): New functions.
18 (_initialize_blockframe): New function.
19 * Makefile.in (blockframe.o): Update dependencies.
20 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
21 comment. Call frame_chain_valid ().
22 * frame.h: Remove old prototypes. Add prototype for
23 frame_chain_valid and update comments to match.
24 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
26 * gdbarch.h: Regenerated.
27 * gdbarch.c: Regenerated.
29 * alpha-tdep.c (alpha_gdbarch_init): Don't call
30 set_gdbarch_frame_chain_valid.
31 * avr-tdep.c (avr_gdbarch_init): Likewise.
32 * cris-tdep.c (cris_gdbarch_init): Likewise.
33 * frv-tdep.c (frv_gdbarch_init): Likewise.
34 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
35 * i386-tdep.c (i386_svr4_init_abi): Likewise.
36 (i386_nw_init_abi): Likewise.
37 (i386_gdbarch_init): Likewise.
38 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
39 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
40 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
41 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
42 * mips-tdep.c (mips_gdbarch_init): Likewise.
43 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
44 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
45 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
46 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
47 * s390-tdep.c (s390_gdbarch_init): Likewise.
48 * sh-tdep.c (sh_gdbarch_init): Likewise.
49 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
50 * v850-tdep.c (v850_gdbarch_init): Likewise.
51 * vax-tdep.c (vax_gdbarch_init): Likewise.
52 * x86-64-tdep.c (x86_64_init_abi): Likewise.
54 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
55 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
56 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
57 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
58 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
59 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
60 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
61 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
63 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
65 * Makefile.in (acconfig_h): Remove incorrect macro.
67 (osabi.o): Update dependencies.
68 * configure.tgt: Set gdb_osabi based on target triplet.
69 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
70 * configure: Regenerated.
71 * config.in: Regenerated.
72 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
73 (GDB_OSABI_DEFAULT): Define if not already defined.
74 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
75 (set_osabi_string): New variables.
76 (gdbarch_register_osabi): Add new OS ABI to
77 gdb_osabi_available_names.
78 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
79 (set_osabi, show_osabi): New functions.
80 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
82 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
84 * arch-utils.c (gdbarch_info_init): Set osabi to
85 GDB_OSABI_UNINITIALIZED.
86 * gdbarch.sh: Add osabi to struct gdbarch and to struct
87 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
88 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
89 * gdbarch.c: Regenerated.
90 * gdbarch.h: Regenerated.
91 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
93 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
94 * osabi.h (enum gdb_osabi): Move to defs.h.
95 (gdbarch_init_osabi): Update prototype.
96 * defs.h (enum gdb_osabi): Moved here.
97 * Makefile.in: Update dependencies.
99 * alpha-tdep.h: Don't include "osabi.h".
100 (struct gdbarch_tdep): Remove osabi member.
101 * alpha-tdep.c: Include "osabi.h".
102 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
103 iterate over arches. Update call to gdbarch_init_osabi.
104 (alpha_dump_tdep): Don't dump osabi.
105 * alpha-linux-tdep.c: Include "osabi.h".
106 * alpha-osf1-tdep.c: Include "osabi.h".
107 * alphafbsd-tdep.c: Include "osabi.h".
108 * alphanbsd-tdep.c: Include "osabi.h".
110 * arm-tdep.h: Don't include "osabi.h".
111 (struct gdbarch_tdep): Remove osabi member.
112 * arm-tdep.c: Include "osabi.h".
113 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
114 iterate over arches. Update call to gdbarch_init_osabi.
115 (arm_dump_tdep): Don't dump osabi.
116 * arm-linux-tdep.c: Include "osabi.h".
117 * armnbsd-tdep.c: Include "osabi.h".
119 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
120 Update call to gdbarch_init_osabi.
122 * i386-tdep.h: Don't include "osabi.h".
123 (struct gdbarch_tdep): Remove osabi member.
124 * i386-tdep.c: Include "osabi.h".
125 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
126 iterate over arches. Update call to gdbarch_init_osabi.
127 (i386_dump_tdep): Don't dump osabi.
128 * i386-linux-tdep.c: Include "osabi.h".
129 * i386-sol2-tdep.c: Include "osabi.h".
130 * i386bsd-tdep.c: Include "osabi.h".
131 * i386gnu-tdep.c: Include "osabi.h".
132 * i386ly-tdep.c: Include "osabi.h".
133 * i386nbsd-tdep.c: Include "osabi.h".
134 * i386obsd-tdep.c: Include "osabi.h".
136 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
137 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
138 check osabi when iterating over arches. Update call to
140 (mips_dump_tdep): Don't dump osabi.
142 * ns32k-tdep.h: Don't include "osabi.h".
143 (struct gdbarch_tdep): Remove.
144 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
145 gdbarch_lookup_osabi. Don't iterate over arches. Don't
146 allocate tdep. Update call to gdbarch_init_osabi.
147 (ns32k_dump_tdep): Remove.
148 (_initialize_ns32k_tdep): Update call to gdbarch_register.
149 * ns32knbsd-tdep.c: Include "osabi.h".
151 * ppc-tdep.h: Don't include "osabi.h".
152 (struct gdbarch_tdep): Remove osabi member.
153 * rs6000-tdep.c: Include "osabi.h".
154 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
155 osabi when iterating over arches. Update call to
157 (rs6000_dump_tdep): Don't dump osabi.
158 * ppc-linux-tdep.c: Include "osabi.h".
159 * ppcnbsd-tdep.c: Include "osabi.h".
161 * sh-tdep.h: Don't include "osabi.h".
162 (struct gdbarch_tdep): Remove osabi member.
163 * sh-tdep.c: Include "osabi.h".
164 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
165 iterate over arches. Update call to gdbarch_init_osabi.
166 (sh_dump_tdep): Don't dump osabi.
167 * shnbsd-tdep.c: Include "osabi.h".
169 * sparc-tdep.c: Include "osabi.h".
170 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
171 iterate over arches. Update call to gdbarch_init_osabi.
172 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
175 * vax-tdep.h: Don't include "osabi.h".
176 (struct gdbarch_tdep): Remove.
177 * vax-tdep.c: Include "osabi.h".
178 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
179 iterate over arches. Don't allocate tdep. Update call
180 to gdbarch_init_osabi.
181 (vax_dump_tdep): Remove.
182 (_initialize_vax_tdep): Update call to gdbarch_register.
184 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
186 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
188 (breakpoint_re_set_one): Don't fetch the value for a disabled
191 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
193 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
194 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
195 (COERCE_FLOAT_TO_DOUBLE): Remove.
196 * gdbarch.c: Regenerate.
197 * gdbarch.h: Regenerate.
198 * Makefile.in: Remove value_h from gdbarch_h.
199 * valops.c (coerce_float_to_double): New variable.
200 (default_coerce_float_to_double): Remove.
201 (standard_coerce_float_to_double): Remove.
202 (value_arg_coerce): Use coerce_float_to_double.
203 (_initialize_valops): Add "set coerce-float-to-double".
204 * value.h (default_coerce_float_to_double): Remove prototype.
205 (standard_coerce_float_to_double): Remove prototype.
207 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
209 * mdebugread.c (parse_symbol): Likewise.
210 * stabsread.c (define_symbol): Mark all functions as prototyped.
212 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
213 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
214 set_gdbarch_coerce_float_to_double.
215 * arm-tdep.c (arm_gdbarch_init): Likewise.
216 * frv-tdep.c (frv_gdbarch_init): Likewise.
217 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
218 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
219 * mips-tdep.c (mips_gdbarch_init): Likewise.
220 (mips_coerce_float_to_double): Remove.
221 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
222 (rs6000_coerce_float_to_double): Remove.
223 * s390-tdep.c (s390_gdbarch_init): Likewise.
224 * sh-tdep.c (sh_gdbarch_init): Likewise.
225 (sh_coerce_float_to_double): Remove.
226 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
227 (sparc_coerce_float_to_double): Remove.
228 * v850-tdep.c (v850_gdbarch_init): Likewise.
229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
230 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
231 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
232 (hppa_coerce_float_to_double): Remove prototype.
233 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
235 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
237 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
239 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
241 Suggested by Stewart Brown <sb24@avaya.com>:
242 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
243 in recursive calls. Handle TYPE_CODE_TYPEDEF.
244 (c_type_print_varspec_suffix): Likewise.
246 2003-01-04 Mark Kettenis <kettenis@gnu.org>
248 * configure.in: Don't set and AC_SUBST SUBDIRS.
249 * configure: Regenerated.
251 * configure.in: Remove code dealing with shared libraries.
252 * Makefile.in: Remove HLDFLAGS and HLDENV.
253 * configure: Regenerated.
255 2003-01-04 Andrew Cagney <ac131313@redhat.com>
257 * frame.c (deprecated_frame_xmalloc): New function.
258 (deprecated_set_frame_saved_regs_hack): New function.
259 (deprecated_set_frame_extra_info_hack): New function.
260 * frame.h (deprecated_frame_xmalloc): Declare.
261 (deprecated_set_frame_saved_regs_hack): Declare.
262 (deprecated_set_frame_extra_info_hack): Declare.
264 2003-01-04 Mark Kettenis <kettenis@gnu.org>
266 * configure.in: Move code that provides the --enable-gdbtk option
267 right after the code that handles the --enable-tui option, and
269 * configure: Regenerated.
271 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
272 AC_CHECK_FUNCS and remove the old check for pread64.
273 * acinclude.m4 (AC_GNU_SOURCE): New macro.
274 * acconfig.h (_GNU_SOURCE): Add.
275 (HAVE_PREAD64): Remove.
276 * configure, aclocal.m4, config.in: Regenerated.
278 2003-01-03 Andrew Cagney <ac131313@redhat.com>
280 * alpha-tdep.c: Use get_frame_saved_regs.
281 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
282 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
283 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
284 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
285 * vax-tdep.c, xstormy16-tdep.c: Ditto.
287 2003-01-03 Mark Kettenis <kettenis@gnu.org>
289 * configure.in: Remove all use of the SUBDIRS variable; add
290 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
291 code providing the --enable-multi-ice option, and move it right in
292 front of the code that checks whether gdbserver is supported.
294 * configure: Regenerated.
295 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
298 2003-01-03 Andrew Cagney <cagney@redhat.com>
300 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
301 * avr-tdep.c, cris-tdep.c: Ditto.
302 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
303 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
305 2003-01-03 Mark Kettenis <kettenis@gnu.org>
307 * configure.in: Remove --enable-netrom option.
308 * configure: Regenerated.
310 2003-01-03 Mark Kettenis <kettenis@gnu.org>
312 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
313 declaration for `struct re_pattern_buffer' instead.
314 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
316 2003-01-03 J. Brobecker <brobecker@gnat.com>
318 * mdebugread.c (parse_symbol): Count until the stEnd matching
321 2003-01-02 Mark Kettenis <kettenis@gnu.org>
323 * configure.in: Remove --with-cpu option.
324 subscripts. Remove evil changequotes here.
325 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
326 * config.in, configure: Regenerated.
328 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
329 * configure.in: Cleanup section that sources GDB and BFD configure
330 subscripts. Remove evil changequotes here.
331 * config.in, configure: Regenerated.
333 2003-01-02 Andrew Cagney <ac131313@redhat.com>
335 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
336 frame accessor methods.
337 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
338 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
339 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
340 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
341 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
342 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
345 2003-01-02 Mark Kettenis <kettenis@gnu.org>
347 * configure.in: Remove UI_OUT configuration code.
348 * ada-lang.c: Update assuming UI_OUT is always true.
349 * Makefile.in (UIOUT_CFLAGS): Remove.
350 * configure: Regenerated.
351 * TODO: Remove blurb about elimination of -DUI_OUT.
353 * configure.in: Move code that provides the --enable-gdbcli,
354 --enable-gdbmi options right before the code that handles the
355 --enable-tui option. Polish a bit.
356 * configure: Regenerated.
358 * configure.in: Rewrite check for GNU regex and the
359 --without-included regex option, and move it into the "Checks for
360 library functions" section. This makes us use the system regex
361 again by default on systems with version 2 of the GNU C library.
362 This was apparently broken.
363 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
364 * acconfig.h (USE_INCLUDED_REGEX): Remove.
365 * config.in, configure: Regenerated.
367 * configure.in: Move code that provides the --enable-tui option
368 before the "Checks for libraries" section. Polish the code
369 somewhat and set need_curses to yes if we build the TUI. Rewrite
370 code that looks for a library providing termcap functionality to
371 match more closely what's done in the Readline library, and move
372 it into to the "Checks for libraries" section.
373 * configure: Regenerated.
374 * Makefile.in (TERMCAP): Remove variable.
375 * config/i386/go32.mh (TERMCAP): Remove variable.
377 2003-01-02 Andrew Cagney <ac131313@redhat.com>
379 * MAINTAINERS: Mention gdb_mbuild.sh.
380 * gdb_mbuild.sh: Rewrite.
382 2003-01-02 Mark Kettenis <kettenis@gnu.org>
384 * configure.in: Fix typo in last change.
385 * config.in, configure: Regenerated.
387 2003-01-02 Andrew Cagney <ac131313@redhat.com>
389 * valarith.c (value_binop): Delete obsolete code and comments.
390 * configure.host: Ditto.
391 * buildsym.h (make_blockvector): Ditto.
392 * buildsym.c (make_blockvector): Ditto.
393 * defs.h (enum language): Ditto.
394 (chill_demangle): Ditto.
395 * elfread.c (elf_symtab_read): Ditto.
396 * dwarfread.c (CHILL_PRODUCER): Ditto.
397 (set_cu_language): Ditto.
398 (handle_producer): Ditto.
399 * expprint.c (print_subexp): Ditto.
400 * gdbtypes.c (chill_varying_type): Ditto.
401 * gdbtypes.h (builtin_type_chill_bool): Ditto.
402 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
403 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
404 (chill_varying_type): Ditto.
405 * language.h (_LANG_chill): Ditto.
406 * language.c (binop_result_type, integral_type): Ditto.
407 (character_type, string_type, structured_type): Ditto.
408 (lang_bool_type, binop_type_check): Ditto.
409 * stabsread.h (os9k_stabs): Ditto.
410 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
411 (define_symbol, read_type, read_struct_fields): Ditto.
412 (read_array_type, read_enum_type, read_huge_number): Ditto.
413 (read_range_type, start_stabs): Ditto.
414 * symfile.c (init_filename_language_table): Ditto.
415 (add_psymbol_with_dem_name_to_list): Ditto.
416 * symtab.c (symbol_init_language_specific): Ditto.
417 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
418 * symtab.h (struct general_symbol_info): Ditto.
419 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
420 * typeprint.c (typedef_print): Ditto.
421 * utils.c (fprintf_symbol_filtered): Ditto.
422 * valops.c (value_cast, search_struct_field, value_slice): Delete
424 (varying_to_slice): Delete function.
425 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
426 (varying_to_slice): Delete declaration.
427 * MAINTAINERS: Update.
429 2003-01-02 Mark Kettenis <kettenis@gnu.org>
431 * configure.in: Reorganize "Checks for library functions section"
432 a bit. Remove check for `btowc' and `isascii' functions.
433 * configure: Regenerated.
435 * acconfig.h (_MSE_INT_H): Remove.
436 * configure.in: Create "Checks for header files" section, and move
437 appropriate tests there. Don't check for objlist.h, wchar.h,
438 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
439 misdetection fix. Also add "Checks for types", "Checks for
440 compiler characteristics" and "Checks for library functions"
442 * config.in, configure: Regenerated.
444 * configure.in: Create "Checks for programs" section, and move
445 appropriate tests there.
447 2003-01-01 Mark Kettenis <kettenis@gnu.org>
449 * configure.in: Create "Checks for libraries" section, and move
450 appropriate tests there. Cleanup check for wctype in libw. Use
451 AC_SEARCH_LIBS to see whether we need libsocket.
452 * configure: Regenerated.
454 2002-12-31 Mark Kettenis <kettenis@gnu.org>
456 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
457 * config.in, configure: Regenerated.
459 2002-12-31 Mark Kettenis <kettenis@gnu.org>
461 * gdb_dirent.h: Cleanup and update code to match the example in
463 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
464 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
465 * configure: Regenerated.
467 2002-12-30 Adam Fedor <fedor@gnu.org>
469 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
470 (yylex): Initialize c to avoid uninitialized warning.
472 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
474 * doc/fdl.texi: Revert the last change.
476 2002-12-29 Mark Kettenis <kettenis@gnu.org>
478 * tracepoint.c (ISATTY): Removed.
480 2002-12-26 J. Brobecker <brobecker@gnat.com>
482 Continuing work to convert the hppa targets to multiarch partil.
484 * hppa-tdep.c: Add some missing forward declarations.
485 (frameless_function_invocation): Prefix the function name
486 by "hppa_" to avoid polluting the namespace. Update all calls
487 to use the new function name.
488 (saved_pc_after_call): Ditto.
489 (init_extra_frame_info): Ditto.
490 (frame_chain): Ditto.
491 (push_dummy_frame): Ditto.
492 (target_read_pc): Ditto.
493 (target_write_pc): Ditto.
494 (in_solib_call_trampoline): Ditto.
495 (in_solib_return_trampoline): Ditto.
496 (skip_trampoline_code): Ditto.
497 (hppa_read_fp): New function, renamed from target_read_fp.
498 (hppa_target_read_fp): New function, using hppa_read_fp.
499 This function conforms to the function profile for the
500 READ_FP gdbarch method.
501 (hppa_extract_struct_value_address): New function, extracted
502 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
504 (hppa_frame_num_args): New function.
505 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
507 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
508 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
509 for the switch to multiarch partial.
510 Update some of the macros definitions to match some changes
511 described above in the name of the function they are calling.
512 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
513 not be straightforward to convert. Do now wrap it inside
514 "#if !... #endif" to remember that this macro has still not
516 (FIX_CALL_DUMMY): Likewise.
518 2002-12-26 J. Brobecker <brobecker@gnat.com>
520 Continuing work to convert the hppa targets to multiarch partial.
522 * hppa-tdep.c (hppa_register_raw_size): New function replacing
523 the body of macro REGISTER_RAW_SIZE.
524 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
525 config/pa/tm-hppah.h. These functions will be used to initialize
526 the gdbarch structure.
527 (hppa_hpux_pc_in_sigtramp): New function.
528 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
529 (hppa_hpux_frame_base_before_sigtramp): New function.
530 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
531 Add gdbcore.h #include.
532 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
533 of this gdbarch-eligible macro to a call to the new associated
535 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
536 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
537 into a call to the new associated function.
538 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
539 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
540 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
542 2002-12-24 David Carlton <carlton@math.stanford.edu>
544 * config/sparc/tm-sparc.h: Delete duplicate definition of
545 DEPRECATED_PC_IN_CALL_DUMMY.
547 2002-12-24 Kevin Buettner <kevinb@redhat.com>
549 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
551 * configure.tgt: Recognize mips64*-*-linux*.
552 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
553 (supply_32_bit_reg): New function.
554 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
555 (fill_gregset): Use regcache_collect() instead of
556 deprecated_registers[].
557 (register_addr): Change name to mips_linux_register_addr().
558 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
559 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
560 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
561 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
562 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
563 (MIPS64_LINUX_JB_PC): New defines.
564 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
565 (mips64_elf_fpregset_t): New typedefs.
566 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
567 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
568 (mips64_linux_register_addr, set_mips_linux_register_addr)
569 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
570 (init_register_addr_data)
572 (fetch_core_registers): Add support for core file formats with 64-bit
574 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
575 (register_addr_data): New static global variable.
576 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
577 gdbarch_register_osabi() for each MIPS machine.
578 * config/mips/linux64.mt: New file.
579 * config/mips/tm-linux64.h: New file.
581 2002-12-23 Adam Fedor <fedor@gnu.org>
583 * maint.c (maintenance_demangle): Add switch to demangle
584 ObjC language symbols as well.
586 2002-12-23 Adam Fedor <fedor@gnu.org>
588 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
589 last argument from complaint function call.
591 2002-12-23 Kevin Buettner <kevinb@redhat.com>
593 * exec.c (print_section_info): Add FIXME comments regarding format
596 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
598 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
599 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
601 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
603 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
605 2002-12-23 David Carlton <carlton@math.stanford.edu>
607 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
608 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
609 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
610 information associated to a minsym, not lookup_symbol.
612 2002-12-21 Mark Kettenis <kettenis@gnu.org>
614 * x86-64-tdep.h (x86_64_init_abi): New prototype.
615 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
616 (x86_64_init_abi): Make non-static. Set number of pseudo
618 (x86_64_gdbarch_init): Remove function.
619 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
620 Remove code dealing with dissambly.
621 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
622 (_initialize_x86_64_linux_tdep): New function.
623 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
626 2002-12-14 Mark Kettenis <kettenis@gnu.org>
628 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
629 (struct gdb_osabi_handler): Remove member `arch'. Add member
631 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
632 construct a `struct bfd_arch_info' and store it in the `struct
633 gdb_osabi_handler' that is created.
634 (gdbarch_init_osabi): Check for compatibility based on machine
635 type and architecture.
636 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
638 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
639 second argument in call to gdbarch_register_osabi.
640 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
641 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
642 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
643 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
644 * arm-tdep.c (_initialize_arm_tdep): Likewise.
645 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
646 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
647 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
648 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
649 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
650 * i386-tdep.c (_initialize_i386_tdep): Likewise.
651 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
652 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
653 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
654 _initialize_i386bsd_tdep and updated likewise.
655 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
656 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
657 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
658 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
659 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
660 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
661 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
662 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
663 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
664 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
666 2002-12-20 Kevin Buettner <kevinb@redhat.com>
668 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
669 DT_MIPS_RLD_MAP case for 64-bit targets.
671 2002-12-20 Kevin Buettner <kevinb@redhat.com>
673 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
674 ``temp_saved_regs'', not the pointer or other storage contiguous
677 2002-12-20 Kevin Buettner <kevinb@redhat.com>
679 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
680 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
681 (mips_linux_get_longjmp_target): Delete declarations.
682 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
683 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
684 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
685 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
686 (mips_linux_get_longjmp_target)
687 (mips_linux_svr4_fetch_link_map_offsets): Make static.
688 (mips_linux_init_abi): New function.
689 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
691 2002-12-19 Keith Seitz <keiths@redhat.com>
693 patch committed by Elena Zannoni <ezannoni@redhat.com>
694 * thread.c (do_captured_list_thread_ids): Call prune_threads and
695 target_find_new_threads. Fix for PR mi/669.
697 2002-12-19 David Carlton <carlton@math.stanford.edu>
699 * linespec.c (decode_line_1): Move code into decode_all_digits.
700 (decode_all_digits): New function.
702 2002-12-19 Kevin Buettner <kevinb@redhat.com>
704 * exec.c (print_section_info): Select a format string to use with
705 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
707 2002-12-18 Andrew Cagney <ac131313@redhat.com>
709 * frame.c (deprecated_update_current_frame_pc_hack): Replace
710 deprecated_update_current_frame_pc_hack.
711 (deprecated_update_frame_base_hack): New function.
712 * frame.h (deprecated_update_frame_pc_hack): Replace
713 (deprecated_update_frame_base_hack): Declare.
714 * infrun.c (normal_stop): Update.
716 2002-12-18 Andrew Cagney <ac131313@redhat.com>
718 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
719 frame_extra_info_zalloc.
720 (rs6000_frame_args_address): Use get_frame_extra_info.
721 (frame_get_saved_regs): Use get_frame_saved_regs.
722 (frame_initial_stack_address): Use get_frame_saved_regs and
723 get_frame_extra_info.
724 (frame_initial_stack_address): Use get_frame_extra_info.
726 2002-12-17 Kevin Buettner <kevinb@redhat.com>
728 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
730 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
731 checks for r3900_regnames[].
733 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
735 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
737 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
739 2002-12-17 David Carlton <carlton@math.stanford.edu>
741 * symtab.c (lookup_partial_symbol): Don't search past the end of
744 2002-12-17 Andrew Cagney <ac131313@redhat.com>
746 * stack.c (frame_info): Use get_frame_saved_regs.
747 * breakpoint.c (until_break_command): Use get_frame_pc.
749 2002-12-16 Kevin Buettner <kevinb@redhat.com>
751 * buildsym.c (block_end_complaint, anon_block_end_complaint)
752 (innerblock_complaint, innerblock_anon_complaint)
753 (blockvector_complaint): Delete deprecated complaint structs.
754 (finish_block, make_blockvector, end_symtab): Replace calls
755 to complain() with calls to complaint().
756 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
757 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
758 (unexpected_type_complaint, bad_sclass_complaint)
759 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
760 Delete deprecated complaint structs.
761 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
762 Replace calls to complain() with calls to complaint().
763 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
764 (unknown_symtype_complaint, unknown_symchar_complaint)
765 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
766 (lbrac_mismatch_complaint, repeated_header_complaint)
767 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
768 Delete deprecated complaint structs.
769 (unknown_symtype_complaint, lbrac_mismatch_complaint)
770 (repeated_header_complaint)
771 (function_outside_compiliation_unit_complaint): New functions.
772 (add_old_header_file, find_corresponding_bincl_psymtab)
773 (set_namestring, find_stab_function_addr, read_dbx_symtab)
774 (process_one_symbol): Replace calls to complain() with, possibly
775 indirect, calls to complaint().
776 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
777 (unknown_attribute_form, unknown_attribute_length)
778 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
779 (const_ignored, botched_modified_type, op_deref2, op_deref4)
780 (basereg_not_handled, dup_user_type_allocation)
781 (dup_user_type_definition, missing_tag, bad_array_element_type)
782 (subscript_data_items, unhandled_array_subscript_format)
783 (unknown_array_subscript_format, not_row_major)
784 (missing_at_name): Delete deprecated complaint structs.
785 (bad_die_ref_complaint, unknown_attribute_form_complaint)
786 (dup_user_type_definition_complaint)
787 (bad_array_element_type_complaint): New functions.
788 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
789 (decode_subscript_data_item, dwarf_read_array_type)
790 (read_tag_string_type, read_subroutine_type, read_func_scope)
791 (locval, scan_partial_symbols, decode_modified_type)
792 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
793 (attribute_size): Replace calls to complain() with, possibly
794 indirect, calls to complaint().
795 * elfread.c (section_info_complaint, section_info_dup_complaint)
796 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
797 Delete deprecated complaint structs.
798 (elf_symtab_read, elfstab_offset_sections): Replace calls to
799 complain() with calls to complaint().
800 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
802 (stub_noname_complaint): New function.
803 (check_typedef, add_mangled_type): Replace calls to complain()
804 with calls to complaint().
805 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
806 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
807 (hpread_unhandled_type_complaint, hpread_struct_complaint)
808 (hpread_array_complaint, hpread_type_lookup_complaint)
809 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
810 (hpread_unhandled_common_complaint)
811 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
812 struct definitions and declarations.
813 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
814 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
815 Replace calls to complain() with, possibly indirect, calls to
817 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
819 * mdebugread.c (bad_file_number_complaint, index_complaint)
820 (aux_index_complaint, block_index_complaint)
821 (unknown_ext_complaint, unknown_sym_complaint)
822 (unknown_st_complaint, block_overflow_complaint)
823 (basic_type_complaint, unknown_type_qual_complaint)
824 (array_index_type_complaint, bad_tag_guess_complaint)
825 (block_member_complaint, stEnd_complaint)
826 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
827 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
828 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
829 (bad_continued_complaint, bad_rfd_entry_complaint)
830 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
831 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
832 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
833 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
835 (index_complaint, unknown_ext_complaint, basic_type_complaint)
836 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
837 (unexpected_type_code_complaint)
838 (function_outside_compilation_unit_complaint): New functions.
839 (parse_symbol, parse_type, upgrade_type, parse_procedure)
840 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
841 Replace calls to complain() with, possibly indirect calls to
843 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
844 Delete deprecated complaint structs.
845 (lookup__objc_class, lookup_child_selector): Replace complain()
847 * remote-vx.c (cant_contact_target): Delete deprecated complaint
849 (vx_lookup_symbol): Replace complain() with complaint().
850 * stabsread.c (invalid_cpp_abbrev_complaint)
851 (invalid_cpp_type_complaint, member_fn_complaint)
852 (const_vol_complaint, error_type_complaint)
853 (invalid_member_complaint, range_type_base_complaint)
854 (reg_value_complaint, vtbl_notfound_complaint)
855 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
856 (unresolved_sym_chain_complaint, stabs_general_complaint)
857 (lrs_general_complaint, multiply_defined_struct): Delete
858 deprecated complaint structs.
859 (invalid_cpp_abbrev_complaint, ref_value_complaint)
860 (stabs_general_complaint, lrs_general_complaint)
861 (msg_unknown_complaint): New functions.
862 (dbx_lookup_type, read_cfront_baseclasses)
863 (read_cfront_member_functions, resolve_symbol_reference)
864 (define_symbol, resolve_live_range, add_live_range, read_type)
865 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
866 (read_one_struct_field, read_baseclasses, read_tilde_fields)
867 (read_cfront_static_fields, attach_fields_to_type)
868 (complain_about_struct_wipeout, read_range_type)
869 (common_block_start, common_block_end, cleanup_undefined_types)
870 (scan_file_globals): Replace complain() with complaint().
871 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
872 Delete deprecated complaint struct declarations.
873 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
874 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
875 (bf_not_found_complaint, ef_complaint, eb_complaint)
876 (function_outside_compilation_unit_complaint): New functions.
877 (record_include_begin, record_include_end, enter_line_range)
878 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
879 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
880 complain() with complaint().
882 2002-12-16 Andrew Cagney <ac131313@redhat.com>
884 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
885 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
886 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
887 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
888 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
889 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
890 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
891 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
892 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
893 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
894 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
895 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
896 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
897 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
898 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
899 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
900 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
901 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
902 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
903 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
904 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
905 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
906 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
907 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
908 * config/m88k/xm-dgux.h: Delete.
909 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
910 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
911 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
912 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
913 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
914 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
915 * ch-valprint.c: Delete.
917 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
919 * infrun.c (handle_inferior_event): Rearrange code to resume if
920 no catchpoint triggers for an event.
922 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
924 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
925 and TARGET_WAITKIND_VFORKED cases.
927 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
929 * infrun.c (handle_inferior_event): Assume that catchpoints
930 are not affected by DECR_PC_AFTER_BREAK.
932 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
934 * target.c (update_current_target): Don't inherit DONT_USE.
935 * target.h (struct target_ops): Remove DONT_USE.
936 (target_next): Remove macro.
938 2002-12-15 Mark Kettenis <kettenis@gnu.org>
940 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
942 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
944 * arm-tdep.c (convert_from_extended): New argument to hold the
945 type of floating point result we want to convert to. Make input
946 argument const. Fix all callers.
947 (convert_to_extended): Similarly.
948 (arm_extract_return_value): Now takes a regcache argument. Change
949 code to use regcache accessor functions. Correctly extract
950 smaller-than-word results on big-endian machines.
951 (arm_store_return_value): Now takes a regcache argument. Change
952 code to use regcache accessor functions. Correctly zero/sign extend
953 smaller than word results before storing into r0.
954 (arm_gdbarch_init): Register new-style extract_return_value and
955 store_return_value functions.
957 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
959 * thread-db.c (thread_from_lwp): Uniquify error msg.
960 (lwp_from_thread): Ditto.
961 (check_event): Ditto.
962 (find_new_threads_callback): Ditto.
963 (thread_db_pid_to_str): Ditto.
965 2002-12-13 Andrew Cagney <ac131313@redhat.com>
967 * frame.h (get_frame_saved_regs): Declare.
968 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
970 * frame.c (get_frame_saved_regs): New function.
971 (frame_saved_regs_zalloc): Return the allocated saved_regs.
973 2002-12-13 Andrew Cagney <ac131313@redhat.com>
975 * frame.c (deprecated_update_current_frame_pc_hack): New
977 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
978 * infrun.c (normal_stop): Use said function instead of directly
979 modifying the frame's PC.
981 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
983 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
985 2002-12-13 Kevin Buettner <kevinb@redhat.com>
987 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
988 config/mips/tm-irix6.h (NUM_REGS): Delete.
989 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
990 (temp_saved_regs): Declare as a pointer rather than an array.
991 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
992 that ``temp_saved_regs'' has storage allocated to it and that
993 it's the correct size.
995 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
997 * defs.h (init_last_source_visited): New prototype.
999 * source.c (add_path): New function that adds to a specified path.
1000 (mod_path): Change to call add_path.
1001 (init_last_source_visited): New function to allow interfaces to
1002 initialize static variable: last_source_visited. Part of fix
1004 * Makefile.in: Add support for mi/mi-cmd-env.c.
1006 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1008 * frame.h (frame_id_unwind): Declare.
1009 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1011 (frame_id_unwind_ftype): Declare.
1012 * frame.c (frame_id_unwind): New function.
1013 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1014 (create_new_frame, get_prev_frame): Pass id_unwind to
1016 (frame_saved_regs_id_unwind): New function.
1017 (frame_saved_regs_id_unwind): New function.
1018 * dummy-frame.c (dummy_frame_id_unwind): New function.
1019 (struct dummy_frame): Add field id.
1020 (generic_push_dummy_frame): Initialize `id'.
1021 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1023 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1025 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1026 pass that to set_momentary_breakpoint. Move comments to where they
1028 * frame.h (set_current_frame): Delete declaration.
1029 * frame.c (set_current_frame): Delete function.
1031 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1033 * frame.c (frame_extra_info_zalloc): New function.
1034 * frame.h (frame_extra_info_zalloc): Declare.
1036 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1038 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1039 in the previous prototype change to set_momentary_breakpoint.
1041 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1043 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1045 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1046 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1047 (stop_stepping): Remove outdated check for child vfork events.
1049 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1051 * GDB 5.3 released from gdb_5_3-branch.
1053 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1055 * corelow.c (init_core_ops): Delete references to to_require_attach
1056 and to_require_detach.
1057 * exec.c (init_exec_ops): Likewise.
1058 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1059 hppa_require_detach directly.
1060 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1061 * inftarg.c (child_detach): Remove.
1062 (child_detach_from_process): Rename to child_detach, remove
1063 after_fork argument.
1064 (child_attach): Remove.
1065 (child_attach_to_process): Rename to child_attach, remove after_fork
1067 (init_child_ops): Delete references to to_require_attach
1068 and to_require_detach.
1069 * infttrace.c (hppa_require_attach): Update comment.
1070 * target.c (cleanup_target, update_current_target)
1071 (init_dummy_target, setup_target_debug): Delete references to
1072 to_require_attach and to_require_detach.
1073 (find_default_require_detach, find_default_require_attach)
1074 (debug_to_require_attach, debug_to_require_detach): Remove
1076 * target.h (struct target_ops): Remove to_require_attach
1077 and to_require_detach.
1078 (target_require_attach, target_require_detach): Delete macros.
1079 (find_default_require_detach, find_default_require_attach): Delete
1081 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1083 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1085 * frame.c (get_frame_extra_info): New function.
1086 * frame.h (get_frame_extra_info): Declare.
1088 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1090 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1091 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1092 with `struct frame_id'.
1093 (set_longjmp_resume_breakpoint): Ditto.
1094 * infrun.c (handle_inferior_event): Update.
1095 * breakpoint.c (watch_command_1, until_break_command): Update.
1096 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1097 (handle_inferior_event, step_over_function): Update.
1098 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1099 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1100 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1101 * infcmd.c (finish_command, run_stack_dummy): Update.
1103 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1105 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1106 (dwarf2_non_const_array_bound_ignored)
1107 (dwarf2_missing_line_number_section)
1108 (dwarf2_statement_list_fits_in_line_number_section)
1109 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1110 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1111 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1112 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1113 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1114 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1115 (dwarf2_missing_member_fn_type_complaint)
1116 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1117 (dwarf2_const_value_length_mismatch)
1118 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1119 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1120 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1121 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1122 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1123 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1124 complaints using deprecated struct..
1125 (dwarf2_non_const_array_bound_ignored_complaint)
1126 (dwarf2_complex_location_expr_complaint)
1127 (dwarf2_unsupported_at_frame_base_complaint)
1128 (dwarf2_const_value_length_mismatch_complaint)
1129 (dwarf2_macros_too_long_complaint)
1130 (dwarf2_macro_malformed_definition_complaint)
1131 (dwarf2_invalid_attrib_class_complaint): New functions.
1132 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1133 (read_structure_scope, read_array_type, read_common_block)
1134 (read_tag_pointer_type, read_base_type, read_partial_die)
1135 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1136 (new_symbol, dwarf2_const_value, read_type_die)
1137 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1138 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1139 complain() with, possibly indirect, calls to complaint().
1141 2002-12-11 Andrew Cagney <cagney@redhat.com>
1143 * frame.c (deprecated_get_frame_saved_regs): Rename
1144 get_frame_saved_regs.
1145 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1146 * sparc-tdep.c: Update.
1147 * hppa-tdep.c: Update.
1148 * h8500-tdep.c: Update.
1150 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1152 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1153 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1154 ``char *'' for return and parameter types.
1155 * gdbarch.h, gdbarch.c: Regenerate.
1156 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1157 return type from ``char *'' to ``const char *''.
1158 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1161 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1163 * i386-tdep.c: Include "dummy-frame.h".
1164 (i386_frame_chain, i386_frame_saved_pc): Replace
1165 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1166 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1168 2002-12-10 Andrew Cagney <cagney@redhat.com>
1170 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1171 Change to a function with predicate.
1172 * gdbarch.h, gdbarch.c: Re-generate.
1173 * frame.c (get_prev_frame): Update. Test
1174 DEPRECATED_INIT_FRAME_PC_P.
1175 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1176 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1177 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1178 * alpha-tdep.c (alpha_gdbarch_init): Update.
1179 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1180 * mips-tdep.c (mips_gdbarch_init): Update.
1181 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1182 * arm-tdep.c: Update comments.
1183 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1184 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1185 * frv-tdep.c (frv_gdbarch_init): Ditto.
1186 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1187 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1188 * s390-tdep.c (s390_gdbarch_init): Ditto.
1189 * v850-tdep.c (v850_gdbarch_init): Ditto.
1190 * vax-tdep.c (vax_gdbarch_init): Ditto.
1191 * sh-tdep.c (sh_gdbarch_init): Ditto.
1192 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1193 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1194 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1196 * i386-tdep.c (i386_gdbarch_init): Ditto.
1197 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1198 * cris-tdep.c (cris_gdbarch_init): Ditto.
1199 * avr-tdep.c (avr_gdbarch_init): Ditto.
1200 * arm-tdep.c (arm_gdbarch_init): Ditto.
1201 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1202 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1204 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1206 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1208 * hppah-nat.c (saved_vfork_pid): Add.
1209 (child_post_follow_vfork): Remove.
1210 (child_follow_fork): New function.
1211 (child_wait): Call detach_breakpoints after receiving the child vfork.
1212 Call child_resume directly instead of going through resume ().
1213 Make sure we have the exec before reporting the vfork.
1214 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1215 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1216 (follow_fork): New function. Call target_follow_fork.
1217 (follow_inferior_reset_breakpoints): New function broken out from
1218 old follow_inferior_fork.
1219 (resume): Remove hack to follow exec after vfork.
1220 * inftarg.c (child_post_follow_vfork): Remove.
1221 (child_follow_fork): New function.
1222 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1223 * target.c (cleanup_target): Replace to_post_follow_vfork with
1225 (update_current_target): Likewise.
1226 (setup_target_debug): Likewise.
1227 (debug_to_post_follow_vfork): Remove.
1228 (debug_to_follow_fork): New function.
1229 * target.h (struct target_ops): Replace to_post_folow_vfork with
1231 (child_post_follow_vfork): Remove prototype.
1232 (child_follow_fork): Add prototype.
1233 (target_post_follow_vfork): Remove macro.
1234 (target_follow_fork): Add macro.
1236 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1238 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1239 (child_post_follow_vfork): Cancel pending exec event if we follow
1241 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1242 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1243 event at the following wait call if necessary.
1244 * infrun.c (follow_vfork): Don't follow_exec here.
1245 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1246 case about HP/UX 10.20. Remove code pushed down to
1247 hppah-nat.c:child_wait.
1248 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1249 vfork_in_flight is set.
1251 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1253 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1254 for the parent's fork event.
1255 * infrun.c (handle_inferior_event): Only expect one fork event.
1256 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1257 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1259 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1261 * PROBLEMS: Delete reference to PR gdb/725.
1263 * MAINTAINERS (gdb.c++): Add David Carlton.
1265 2002-12-09 David Carlton <carlton@math.stanford.edu>
1267 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1268 * cli/cli-cmds.c: Ditto.
1270 2002-12-09 Andrew Cagney <cagney@redhat.com>
1272 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1273 function address in <>.
1274 * gdbarch.c: Re-generate.
1276 2002-12-09 David Carlton <carlton@math.stanford.edu>
1278 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1280 2002-12-09 David Carlton <carlton@math.stanford.edu>
1282 * linespec.c (symtab_from_filename): New function.
1283 (decode_line_1): Move code into symtab_from_filename.
1285 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1287 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1289 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1291 * f-valprint.c (info_common_command): Use get_frame_pc.
1292 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1293 * ax-gdb.c (agent_command): Ditto.
1294 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1295 (rs6000_pop_frame): Ditto.
1296 (rs6000_frameless_function_invocation): Ditto.
1297 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1298 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1299 * macroscope.c (default_macro_scope): Ditto.
1300 * stack.c (print_frame_info_base): Ditto.
1301 (print_frame, frame_info, print_frame_label_vars): Ditto.
1302 (return_command, func_command, get_frame_language): Ditto.
1303 * infcmd.c (finish_command): Ditto.
1304 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1305 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1306 (break_at_finish_at_depth_command_1): Ditto.
1307 (break_at_finish_command_1): Ditto.
1308 (until_break_command, get_catch_sals): Ditto.
1309 * blockframe.c (func_frame_chain_valid): Ditto.
1310 (frameless_look_for_prologue): Ditto.
1311 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1313 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1315 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1316 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1318 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1320 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1322 * gdbarch.h, gdbarch.c: Re-generate.
1323 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1324 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1326 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1327 declaration to a function returning a CORE_ADDR.
1328 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1329 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1330 (init_frame_pc_default): Ditto.
1331 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1332 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1333 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1334 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1335 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1336 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1338 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1339 to init_frame_pc_noop.
1340 (i386_interix_init_frame_pc): Delete function.
1341 * z8k-tdep.c (init_frame_pc): Delete function.
1342 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1343 (INIT_FRAME_PC_FIRST): Ditto.
1344 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1345 (INIT_FRAME_PC_FIRST): Ditto.
1346 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1347 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1349 (INIT_FRAME_PC_FIRST): Convert to an expression.
1350 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1352 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1354 * blockframe.c: Use get_frame_base instead of directly accessing
1355 the `struct frame_info' member frame.
1356 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1357 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1359 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1361 * Makefile.in (readline_h): Define.
1362 (completer.o): Depend on readline_h.
1364 (event-top.o): Ditto.
1371 (tracepoint.o): Ditto.
1373 (cli-dump.o): Ditto.
1374 (tui-hooks.o): Ditto.
1377 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1379 More cleanup from import of readline 4.3.
1380 * completer.h (complete_line, readline_line_completion_function):
1382 (line_completion_function): Removed, not used outside of completer.c.
1383 * completer.c (readline_line_completion_function,
1384 complete_function, line_completion_function): Use const for first
1386 (line_completion_function): Make static.
1387 (filename_completer): filename_completion_function is now called
1388 rl_filename_completion_function
1389 * corelow.c: Include <readline/readline.h>.
1395 * top.c (init_main): No need to coerce
1396 readline_line_completion_function anymore.
1397 * cli/cli-dump.c: Include <readline/readline.h>.
1399 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1401 * stack.c (frame_info): Use get_prev_frame.
1402 * blockframe.c (frame_address_in_block): Ditto.
1403 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1404 (rs6000_frameless_function_invocation): Ditto.
1405 (rs6000_frame_saved_pc): Ditto.
1406 (rs6000_frame_chain): Ditto.
1407 * arch-utils.c (init_frame_pc_default): Ditto.
1409 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1411 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1412 Delete redundant definition.
1414 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1416 Import of readline 4.3:
1417 * cli/cli-cmds.c: Include readline/tilde.h.
1418 * cli/cli-setshow.c: Ditto.
1419 * defs.h: Don't declare tilde_expand anymore, since readline
1422 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1424 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1425 -Werror on this file.
1427 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1429 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1431 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1432 * gdbarch.c: Regenerate.
1434 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1436 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1437 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1438 provide a default value.
1439 * gdbarch.h, gdbarch.c: Regenerate.
1440 * frame.c (get_prev_frame): Update. Check
1441 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1442 * s390-tdep.c (s390_gdbarch_init): Update.
1443 * mips-tdep.c (mips_gdbarch_init): Update.
1444 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1445 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1446 * alpha-tdep.c (alpha_gdbarch_init): Update.
1448 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1450 * ia64-linux-nat.c: Include gdb_string.h.
1451 * alpha-nat.c: Ditto.
1452 * ppc-linux-nat.c: Ditto.
1453 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1454 Update dependencies.
1456 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1458 * gdbthread.h: Include "frame.h".
1459 (struct thread_info): Replace step_frame_address with
1461 * inferior.h: Include "frame.h".
1462 (step_frame_id): Replace external variable step_frame_address.
1463 * gdbthread.h (save_infrun_state): Replace step_frame_address
1464 parameter with step_frame_id parameter.
1465 (load_infrun_state): Ditto.
1466 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1467 * infcmd.c (step_frame_id, step_1, step_once): Update.
1468 * thread.c (load_infrun_state, save_infrun_state): Update.
1469 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1470 (handle_inferior_event, step_over_function): Update.
1471 (normal_stop, context_switch, restore_inferior_status): Update.
1472 (struct inferior_status): Replace step_frame_address with
1475 2002-12-05 David Carlton <carlton@math.stanford.edu>
1477 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1478 DW_TAG_member as well as a declaration as being a C++ static data
1480 (read_structure_scope): Combine tests for DW_TAG_member and
1483 2002-12-05 David Carlton <carlton@math.stanford.edu>
1485 * linespec.c (decode_compound): New function.
1486 (decode_line_1): Move code into decode_compound.
1488 2002-12-05 David Carlton <carlton@math.stanford.edu>
1490 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1492 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1493 the static block. See PR gdb/804.
1495 2002-12-05 David Carlton <carlton@math.stanford.edu>
1497 * symtab.c (lookup_symbol_aux_block): New function.
1498 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1500 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1502 * gdbarch.sh: Dump the predicate function and macro values.
1503 (read): Print error on standard error.
1504 * gdbarch.c: Regenerate.
1506 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1508 * Makefile.in (mips_tdep_h): Define.
1509 (mips-tdep.o): Add mips_tdep_h to dependency list.
1510 * mips-tdep.h: New file.
1511 * mips-tdep.c (mips-tdep.h): Include.
1512 (enum mips_abi): Move to mips-tdep.h.
1513 (mips_abi): New function.
1515 2002-12-04 David Carlton <carlton@math.stanford.edu>
1517 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1519 2002-12-04 David Carlton <carlton@math.stanford.edu>
1521 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1523 (lookup_symbol_aux_minsyms): New function.
1525 2002-12-04 J. Brobecker <brobecker@gnat.com>
1527 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1529 2002-12-04 J. Brobecker <brobecker@gnat.com>
1531 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1532 which is an obsolete macro name.
1534 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1536 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1537 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1539 2002-12-03 H.J. Lu (hjl@gnu.org)
1541 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1542 (create_breakpoints): Make sure the addr_string field is not
1545 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1547 * sparc-nat.c (fetch_inferior_registers)
1548 (store_inferior_registers): Add comment on problem of LWP vs
1551 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1552 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1553 (lin_lwp_store_registers): Remove.
1554 (init_lin_lwp_ops): Use fetch_inferior_registers
1555 and store_inferior_registers directly.
1556 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1557 (store_inferior_registers): Likewise.
1560 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1562 * frame.h (get_frame_id): Convert to a function.
1563 (null_frame_id, frame_id_p): Declare.
1564 (frame_id_eq, frame_id_inner): Declare.
1565 (frame_id_build): New function.
1566 * frame.c (get_frame_id): Update. Use null_frame_id.
1567 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1569 (null_frame_id, frame_id_p): Define.
1570 (frame_id_eq, frame_id_inner): Define.
1571 (frame_id_build): New function.
1572 * varobj.c (varobj_create): Update.
1573 (varobj_update): Update.
1574 * valops.c (value_assign): Update.
1575 (new_root_variable): Update.
1576 * infrun.c (save_inferior_status): Update.
1577 * breakpoint.c (watch_command_1): Update.
1579 2002-12-03 J. Brobecker <brobecker@gnat.com>
1581 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1584 2002-12-03 Andrew Cagney <cagney@redhat.com>
1586 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1589 * PROBLEMS: Mention PR gdb/725.
1591 2002-12-03 Andreas Schwab <schwab@suse.de>
1593 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1595 2002-12-02 Adam Fedor <fedor@gnu.org>
1596 Klee Dienes <kdienes@apple.com>
1598 * objc-lang.c (objc_printstr): Add width arg to match
1600 (compare_selectors): Add 'const' to arg types.
1601 (compare_classes): Likewise.
1602 (find_imps): Cast msym pointer to avoid compiler warning.
1603 (print_object_command): Validate the address before
1604 passing it to the print routine.
1605 (find_objc_msgcall_submethod): Change function argument to
1607 * objc-lang.h: Add 'extern' to all function declarations.
1608 (value_nsstring): Add declaration.
1610 2002-12-02 J. Brobecker <brobecker@gnat.com>
1612 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1613 Fixes a build failure on HP/UX.
1615 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1617 (hpread_has_name): Advance declaration to avoid a compilation warning.
1618 (pst_syms_count): Add missing variable type. By change, the compiler
1619 was defaulting to int, which seems a good choice. Fixes a compilation
1621 (pst_syms_size): Likewise.
1623 2002-12-02 J. Brobecker <brobecker@gnat.com>
1625 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1626 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1627 later to set the proper gdbarch methods depending on the osabi.
1628 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1630 2002-12-02 J. Brobecker <brobecker@gnat.com>
1632 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1633 * osabi.c (gdb_osabi_name): Add strings images for the two new
1635 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1637 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1639 * MAINTAINERS (Java): Global maintainers are responible for Java.
1640 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1641 part Java maintainers.
1643 2002-12-02 J. Brobecker <brobecker@gnat.com>
1645 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1646 Fixes a compilation failure on AiX.
1648 2002-12-02 J. Brobecker <brobecker@gnat.com>
1650 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1651 why aix-thread.o is not listed.
1653 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1655 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1656 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1657 * gdbarch.h, gdbarch.c: Re-generate.
1658 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1659 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1660 * config/pa/tm-hppa.h, frame.h: Update.
1661 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1662 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1663 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1664 * cris-tdep.c, alpha-tdep.c: Update.
1665 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1666 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1667 (get_prev_frame): Ditto.
1669 2002-11-30 Andrew Cagney <cagney@redhat.com>
1671 * exec.c (xfer_memory): Replace boolean with int.
1672 * p-exp.y: Use 0 instead of false.
1673 * corelow.c (gdb_check_format): Change return type to int from
1675 * utils.c: Don't include <curses.h> or <term.h> first.
1677 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1679 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1680 (m68hc11_register_byte): Remove.
1681 (m68hc11_gdbarch_init): Don't set the above.
1683 2002-11-29 Andrew Cagney <cagney@redhat.com>
1685 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1686 by calling get_selected_frame.
1687 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1688 set_current_frame, create_new_frame, select_frame and
1690 * remote-e7000.c (e7000_start_remote): Ditto.
1691 * remote-mips.c (common_open): Ditto
1692 * remote-rdp.c (remote_rdp_open): Ditto.
1694 2002-11-29 Andreas Schwab <schwab@suse.de>
1696 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1697 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1698 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1699 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1700 read_memory_unsigned_integer instead of read_memory_integer when
1701 dealing with addresses and instruction opcodes.
1702 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1703 (m68k_linux_frame_saved_pc): Likewise.
1705 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1707 * stack.c (selected_frame, select_frame): Move from here ...
1708 * frame.c (selected_frame, select_frame): ... to here. Include
1710 * Makefile.in (frame.o): Update dependencies.
1711 * frame.c (get_selected_frame): New function.
1712 * frame.h (get_selected_frame): Declare.
1713 (deprecated_selected_frame): Rename selected_frame.
1714 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1715 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1716 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1717 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1718 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1719 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1720 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1721 * z8k-tdep.c, cli/cli-cmds.c: Update.
1723 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1725 * frame.h (get_selected_block): Add comments.
1727 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1729 * frame.c (pc_notcurrent): New function.
1730 (find_frame_sal): New function.
1731 * frame.h (find_frame_sal): Declare.
1732 (struct symtab_and_line): Add opaque declaration.
1733 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1735 (frame_info): Ditto.
1736 * ada-lang.c (find_printable_frame): Ditto.
1738 2002-11-28 J. Brobecker <brobecker@gnat.com>
1740 * configure.in: Check that the pthdebug library is recent enough
1741 before enabling thread support on native AiX.
1742 * configure: Regenerate.
1744 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1745 from the list of object files as it is now appended by configure
1746 if thread support is enabled.
1747 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1748 if thread support is enabled.
1750 2002-11-28 Andrew Cagney <cagney@redhat.com>
1752 * stack.c (get_selected_block): In-line get_current_block.
1753 * frame.h (get_current_block): Delete declaration.
1754 * blockframe.c (get_current_block): Delete function.
1756 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1758 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1759 USE_GENERIC_DUMMY_FRAMES.
1760 * gdbarch.h, gdbarch.c: Regenerate.
1761 * valops.c, frame.c: Update.
1762 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1763 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1764 * config/pa/tm-hppa.h, blockframe.c: Update.
1765 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1766 * m68k-tdep.c, alpha-tdep.c: Ditto.
1768 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1769 * mips-tdep.c: Ditto.
1771 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1773 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1774 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1775 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1776 * gdbarch.c, gdbarch.h: Re-generate.
1777 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1778 (CALL_DUMMY_LOCATION): Delete macro definition.
1779 (PC_IN_CALL_DUMMY): Delete macro definitions.
1781 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1782 default is already generic_pc_in_call_dummy.
1783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1784 * v850-tdep.c (v850_gdbarch_init): Ditto.
1785 * sh-tdep.c (sh_gdbarch_init): Ditto.
1786 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1787 * mips-tdep.c (mips_gdbarch_init): Ditto.
1788 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1789 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1790 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1792 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1793 * avr-tdep.c (avr_gdbarch_init): Ditto.
1795 * arm-tdep.c (arm_gdbarch_init): Do not set
1796 use_generic_dummy_frames, default is already 1.
1797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1798 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1799 * v850-tdep.c (v850_gdbarch_init): Ditto.
1800 * sh-tdep.c (sh_gdbarch_init): Ditto.
1801 * s390-tdep.c (s390_gdbarch_init): Ditto.
1802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1803 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1804 * mips-tdep.c (mips_gdbarch_init): Ditto.
1805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1807 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1808 * i386-tdep.c (i386_gdbarch_init): Ditto.
1809 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1810 * frv-tdep.c (frv_gdbarch_init): Ditto.
1811 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1812 * cris-tdep.c (cris_gdbarch_init): Ditto.
1813 * avr-tdep.c (avr_gdbarch_init): Ditto.
1815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1816 call_dummy_location, default is already AT_ENTRY_POINT.
1817 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1818 * v850-tdep.c (v850_gdbarch_init): Ditto.
1819 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1820 * sh-tdep.c (sh_gdbarch_init): Ditto.
1821 * s390-tdep.c (s390_gdbarch_init): Ditto.
1822 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1824 * mips-tdep.c (mips_gdbarch_init): Ditto.
1825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1826 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1827 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1828 * i386-tdep.c (i386_gdbarch_init): Ditto.
1829 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1830 * frv-tdep.c (frv_gdbarch_init): Ditto.
1831 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1832 * cris-tdep.c (cris_gdbarch_init): Ditto.
1833 * avr-tdep.c (avr_gdbarch_init): Ditto.
1834 * arm-tdep.c (arm_gdbarch_init): Ditto.
1835 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1837 2002-11-28 Andrew Cagney <cagney@redhat.com>
1839 * frame.h: Update comments on set_current_frame, create_new_frame,
1840 flush_cached_frames, reinit_frame_cache, select_frame and
1843 2002-11-27 Andrew Cagney <cagney@redhat.com>
1845 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1846 deprecated pc_in_call_dummy function.
1847 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1848 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1849 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1850 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1851 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1853 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1855 * Makefile.in: Remove Tix dependencies.
1856 * acinclude.m4: Ditto.
1857 * aclocal.m4: Ditto.
1858 * configure.in: Ditto.
1859 * configure: Regenerated.
1861 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1863 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1864 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1865 * gdbarch.c: Re-generate.
1867 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1869 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1870 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1871 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1872 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1873 pc_in_call_dummy_at_entry_point.
1874 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1875 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1876 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1877 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1878 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1879 pc_in_call_dummy_on_stack.
1880 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1881 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1882 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1883 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1884 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1886 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1888 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1889 pc_in_call_dummy_before_text_end
1890 (deprecated_pc_in_call_dummy_after_text_end): Rename
1891 pc_in_call_dummy_after_text_end.
1892 (deprecated_pc_in_call_dummy_on_stack): Rename
1893 pc_in_call_dummy_on_stack.
1894 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1895 pc_in_call_dummy_at_entry_point.
1896 * m68k-tdep.c (m68k_gdbarch_init): Update.
1897 * s390-tdep.c (s390_gdbarch_init): Update.
1898 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1899 * vax-tdep.c (vax_gdbarch_init): Update.
1900 * sparc-tdep.c (sparc_gdbarch_init): Update.
1901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1902 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1903 * i386-tdep.c (i386_gdbarch_init): Update.
1904 * frv-tdep.c (frv_gdbarch_init): Update.
1905 * cris-tdep.c (cris_gdbarch_init): Update.
1906 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1907 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1908 (deprecated_pc_in_call_dummy_after_text_end)
1909 (deprecated_pc_in_call_dummy_on_stack)
1910 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1911 * alpha-tdep.c (alpha_gdbarch_init): Update.
1913 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1915 * acconfig.h (HAVE_PREAD64): Add.
1916 * configure.in: Check for pread64.
1917 * config.in: Regenerated.
1918 * configure: Regenerated.
1919 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1920 * linux-proc.c (linux_proc_xfer_memory): New function.
1921 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1923 2002-11-25 David Carlton <carlton@math.stanford.edu>
1925 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1928 2002-11-25 Andrew Cagney <ac131313@redhat.com>
1930 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1931 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
1933 2002-11-25 Jim Blandy <jimb@redhat.com>
1935 * symfile.c (init_objfile_sect_indices): New function.
1936 (default_symfile_offsets): Move the section-index-initializing
1937 stuff into init_objfile_sect_indices, and call that.
1939 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1940 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1942 * symfile.c (syms_from_objfile): Adjust indentation.
1944 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1945 || info_verbose isn't true.
1947 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1949 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1950 default to get_frame_base.
1951 * gdbarch.h, gdbarch.c: Regenerate.
1952 * arch-utils.c (default_frame_address): Delete function.
1953 * arch-utils.h (default_frame_address): Delete declaration
1955 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
1957 * varobj.c (find_frame_addr_in_frame_chain):
1958 Use get_frame_base instead of FRAME_FP,
1961 2002-11-19 Andrew Cagney <ac131313@redhat.com>
1963 * frame.h (FRAME_FP): Delete macro.
1964 (get_frame_base): New function declaration.
1965 * frame.c (get_frame_base): New function.
1966 (get_frame_id): Use ->frame.
1967 (frame_find_by_id): Rewrite to use get_frame_id.
1968 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1969 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1970 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1971 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1972 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1973 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1974 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1976 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1978 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1980 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1982 * frame.c (set_unwind_by_pc): Revert change below, use
1984 (get_prev_frame): Ditto.
1986 2002-11-24 Andrew Cagney <ac131313@redhat.com>
1988 * dummy-frame.c (pc_in_dummy_frame): New function.
1989 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1990 (find_dummy_frame): Update comment.
1991 (generic_pop_current_frame): Use get_frame_type.
1992 * dummy-frame.h (pc_in_dummy_frame): Declare.
1993 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1994 (create_new_frame): Use pc_in_dummy_frame.
1995 (get_prev_frame): Use pc_in_dummy_frame.
1996 (frame_saved_regs_register_unwind): Use get_prev_frame.
1997 (deprecated_generic_get_saved_register): Use get_prev_frame.
1999 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2001 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2003 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2004 (varobj_create): Note that frame ID should be used.
2005 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2007 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2009 * breakpoint.c: Include "gdb_assert.h".
2010 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2012 * Makefile.in (breakpoint.o): Update dependencies.
2013 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2014 deprecated_frame_in_dummy.
2015 * stack.c (print_frame_info_base): Ditto.
2016 (frame_info): Ditto.
2017 (print_frame_info_base): Ditto. Delete dead code.
2019 2002-11-23 Andreas Schwab <schwab@suse.de>
2021 * Makefile.in (m68k_tdep_h): Define.
2022 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2023 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2024 * m68k-tdep.c: Move register number enum ...
2025 * m68k-tdep.h: ... to this new file and rename the constants from
2026 E_* to M68K_*. All uses changed.
2027 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2028 * abug-rom.c: Include "m68k-tdep.h". Use
2029 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2030 * cpu32bug-rom.c: Likewise.
2031 * dbug-rom.c: Likewise.
2032 * m68k-tdep.c: Likewise.
2033 * m68klinux-nat.c: Likewise.
2034 * remote-est.c: Likewise.
2035 * rom68k-rom.c: Likewise.
2036 * config/m68k/tm-linux.h: Likewise.
2038 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2040 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2041 dummy frame initialization code.
2042 * mips-tdep.c (mips_gdbarch_init): Ditto.
2044 2002-11-22 Christopher Faylor <cgf@redhat.com>
2046 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2049 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2051 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2052 to default_frame_address.
2053 * gdbarch.h, gdbarch.c: Re-generate.
2055 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2056 or frame_locals_address to default_frame_address.
2057 * m68k-tdep.c (m68k_gdbarch_init): Update.
2058 * i386-tdep.c (i386_gdbarch_init): Update.
2059 * frv-tdep.c (frv_gdbarch_init): Update.
2060 * sh-tdep.c (sh_gdbarch_init): Update.
2061 * v850-tdep.c (v850_gdbarch_init): Update.
2062 * sparc-tdep.c (sparc_gdbarch_init): Update.
2063 * mips-tdep.c (mips_gdbarch_init): Update.
2064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2065 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2066 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2068 * cris-tdep.c (cris_frame_args_address): Delete function.
2069 (cris_frame_locals_address): Delete function.
2070 (cris_gdbarch_init): Do not set frame_args_address or
2071 frame_locals_address.
2073 2002-11-22 Michael Snyder <msnyder@redhat.com>
2075 * thread-db.c (thread_db_load): Tell the user what's going on
2076 if dlopen fails on libthread_db.
2078 2002-11-23 Andreas Schwab <schwab@suse.de>
2080 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2081 invariant return values.
2083 2002-11-22 Andreas Schwab <schwab@suse.de>
2085 * valops.c (value_slice): Move declaration of `offset' to avoid
2088 2002-11-22 Christopher Faylor <cgf@redhat.com>
2090 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2091 (struct so_stuff): Add end_addr field.
2092 (register_loaded_dll): Calculate and store end address of loaded dll.
2093 (solib_address): New function.
2094 (child_solib_loaded_library_pathname): Pass carefully constructed
2095 section info to safe_symbol_file_add rather than ignoring it.
2096 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2098 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2099 (child_create_inferior): Fix a compiler warning.
2100 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2101 (solib_address): Declare new function.
2103 2002-11-22 Andreas Schwab <schwab@suse.de>
2105 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2108 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2110 * maint.c (_initialize_maint_cmds): Fix typo. From
2111 Francesco Potorti` <pot@gnu.org>.
2113 2002-11-21 Andrew Cagney <cagney@redhat.com>
2115 * mips-tdep.c (mips_dump_tdep): Delete references to
2116 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2117 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2118 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2119 * printcmd.c (build_address_symbolic): Delete calls to
2120 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2121 (address_info): Ditto.
2124 2002-11-19 Klee Dienes <kdienes@apple.com>
2125 Adam Fedor <fedor@gnu.org>
2127 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2128 the ability to explicitly specify the quote characters and word
2129 break characters; if NULL is specified for either, use the old
2130 behavior of using the characters used by the completer.
2131 (skip_chars): New function. Convenience wrapper around
2132 skip_quoted_chars to provide the original skip_chars behavior.
2133 * completer.h (skip_quoted_chars): Add prototype.
2135 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2137 Problems reported by Paul Eggert.
2138 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2140 2002-11-19 Andreas Schwab <schwab@suse.de>
2142 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2143 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2144 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2145 (m68k_linux_frame_saved_pc): Move to ...
2146 * m68klinux-tdep.c: ... here. New file.
2147 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2148 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2150 2002-11-19 Adam Fedor <fedor@gnu.org>
2152 * objc-exp.y: Revert to old skip_quoted usage.
2154 2002-11-19 Adam Fedor <fedor@gnu.org>
2156 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2157 (objc_lang_h): Define.
2158 (YYFILES): Add objc-exp.tab.c.
2159 (local-maintainer-clean): Remove objc-exp.tab.c.
2160 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2162 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2164 * p-exp.y (typecast rule): Add automatic dereference of
2165 pascal classes if needed.
2166 (THIS): Set current_type.
2167 Automatically dereference pascal classes.
2168 (typebase rule): Add ^typebase recognition.
2170 2002-11-18 Adam Fedor <fedor@gnu.org>
2172 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2173 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2174 (op_name): Handle OP_OBJC_SELF.
2175 * Makefile.in (expprint.o): Add additional depends.
2177 2002-11-18 Adam Fedor <fedor@gnu.org>
2179 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2180 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2181 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2182 * objc-exp.y: Likewise.
2184 2002-11-18 Adam Fedor <fedor@gnu.org>
2186 * gdb/parser-defs.h: (struct objc_class_str): New structure
2187 for parsing ObjC classes.
2189 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2191 * stack.c (frame_relative_level): Copy function from here ...
2192 * frame.c (frame_relative_level): ...to here.
2194 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2196 * frame.h (enum frame_type): Define.
2197 (get_frame_type): Declare.
2198 (struct frame_info): Add field `type'. Delete field
2199 signal_handler_caller.
2200 (deprecated_set_frame_signal_handler_caller): Declare.
2201 * frame.c (get_frame_type): New function.
2202 (deprecated_set_frame_type): New function.
2203 (create_new_frame): Set the frame's type.
2204 (get_prev_frame): Similar.
2205 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2206 * s390-tdep.c: Ditto.
2207 * m68klinux-nat.c: Ditto.
2208 * ns32k-tdep.c: Ditto.
2209 * x86-64-linux-tdep.c: Ditto.
2210 * vax-tdep.c: Ditto.
2211 * rs6000-tdep.c: Ditto.
2212 * ppc-linux-tdep.c: Ditto.
2213 * i386-interix-tdep.c: Ditto.
2214 * mips-tdep.c: Ditto.
2215 * m68k-tdep.c: Ditto.
2216 * hppa-tdep.c: Ditto.
2217 * ia64-tdep.c: Ditto.
2218 * cris-tdep.c: Ditto.
2219 * arm-tdep.c: Ditto.
2220 * alpha-tdep.c: Ditto.
2221 * i386-tdep.c: Ditto.
2223 * ada-lang.c: Ditto.
2224 * blockframe.c: Update.
2225 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2226 deprecated_set_frame_type instead of signal_handler_caller.
2227 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2228 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2229 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2231 2002-11-18 Klee Dienes <kdienes@apple.com>
2233 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2235 2002-11-18 Klee Dienes <kdienes@apple.com>
2237 * buildsym.c (pop_context): Add comment.
2239 2002-11-18 Klee Dienes <kdienes@apple.com>
2241 * buildsym.h (pop_context): Convert to function, defined in
2243 * buildsym.c: Include gdb_assert.h.
2244 (pop_context): Implement as C function. Add check for stack
2246 * dbxread.c (process_one_symbol): Complain and stop processing
2247 that symbol if we are already at the top of the context stack for
2248 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2249 when processing N_RBRAC.
2251 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2253 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2255 (struct target_waitstatus): Add opaque definition.
2256 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2257 * exec.c (init_exec_ops): Likewise.
2258 * fork-child.c (clone_and_follow_inferior): Remove.
2259 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2260 * inferior.h (clone_and_follow_inferior): Remove prototype.
2261 * infrun.c (follow_fork_mode_both): Remove.
2262 (follow_fork_mode_kind_names): Remove commented out "both".
2263 (follow_inferior_fork): Remove follow_fork_mode_both support.
2264 * inftarg.c (child_clone_and_follow_inferior): Remove.
2265 (child_post_follow_inferior_by_clone): Remove.
2266 (init_child_ops): Don't set to_clone_and_follow_inferior
2267 or to_post_follow_inferior_by_clone.
2268 * target.c (default_clone_and_follow_inferior): Remove.
2269 (cleanup_target): Don't set to_clone_and_follow_inferior
2270 or to_post_follow_inferior_by_clone.
2271 (find_default_clone_and_follow_inferior): Remove.
2272 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2273 (debug_to_clone_and_follow_inferior): Remove.
2274 (debug_to_post_follow_inferior_by_clone): Remove.
2275 (setup_target_debug): Don't set to_clone_and_follow_inferior
2276 or to_post_follow_inferior_by_clone.
2277 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2278 and to_post_follow_inferior_by_clone.
2279 (child_clone_and_follow_inferior): Remove prototype.
2280 (child_post_follow_inferior_by_clone): Remove prototype.
2281 (target_clone_and_follow_inferior): Remove macro.
2282 (target_post_follow_inferior_by_clone): Remove macro.
2283 (find_default_clone_and_follow_inferior): Remove prototype.
2285 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2287 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2288 inferior_has_vforked, and inferior_has_execd instead of
2289 target_has_forked, target_has_vforked, and target_has_execd.
2290 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2291 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2292 (CHILD_WAIT): Define.
2293 (child_wait): Add prototype.
2294 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2296 (hpux_has_vforked): Likewise, from child_has_vforked.
2297 (hpux_has_execd): Likewise, from child_has_execd.
2298 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2299 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2300 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2301 and hpux_has_syscall_event instead of the target hooks.
2302 * infrun.c (inferior_has_forked, inferior_has_vforked)
2303 (inferior_has_execd): New functions.
2304 * inftarg.c (not_same_real_pid): Remove.
2305 (child_wait): Remove references to not_same_real_pid,
2306 target_has_forked, target_has_vforked, target_has_execd,
2307 and target_has_syscall_event.
2308 (child_has_forked, child_has_vforked, child_has_execd)
2309 (child_has_syscall_event): Remove.
2310 (init_child_ops): Remove references to child_has_forked,
2311 child_has_vforked, child_has_execd, and child_has_syscall_event.
2312 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2313 (hpux_has_vforked): Likewise, from child_has_vforked.
2314 (hpux_has_execd): Likewise, from child_has_execd.
2315 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2316 * target.c (cleanup_target): Remove references to
2317 to_has_forked, to_has_vforked, to_has_execd, and
2318 to_has_syscall_event.
2319 (update_current_target): Likewise.
2320 (setup_target_debug): Likewise.
2321 (debug_to_has_forked): Remove.
2322 (debug_to_has_vforked): Remove.
2323 (debug_to_has_execd): Remove.
2324 (debug_to_has_syscall_event): Remove.
2325 * target.h (struct target_ops): Remove to_has_forked.
2326 to_has_vforked, to_has_execd, and to_has_syscall_event.
2327 (child_has_forked, child_has_vforked, child_has_execd)
2328 (child_has_syscall_event): Remove prototypes.
2329 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2331 (target_has_forked, target_has_vforked, target_has_execd)
2332 (target_has_syscall_event): Remove macros.
2334 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2336 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2337 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2338 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2339 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2340 * target.c (cleanup_target): Remove reference to
2341 to_can_follow_vfork_prior_to_exec.
2342 (update_current_target): Likewise.
2343 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2344 (setup_target_debug): Remove reference to
2345 to_can_follow_vfork_prior_to_exec.
2346 * target.h (struct target_ops): Remove
2347 to_can_follow_vfork_prior_to_exec.
2348 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2349 (target_can_follow_vfork_prior_to_exec): Remove definition.
2350 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2352 * infrun.c (follow_vfork_when_exec): Remove.
2353 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2354 (follow_exec): Likewise.
2355 (handle_inferior_event): Likewise.
2356 (keep_going): Likewise.
2358 2002-11-15 Andrew Cagney <cagney@redhat.com>
2360 * frame.c (generic_unwind_get_saved_register): Make static.
2361 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2362 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2363 defaults to generic_unwind_get_saved_register.
2364 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2366 * frv-tdep.c (frv_gdbarch_init): Ditto.
2367 * i386-tdep.c (i386_gdbarch_init): Ditto.
2368 * s390-tdep.c (s390_gdbarch_init): Ditto.
2369 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2370 * v850-tdep.c (v850_gdbarch_init): Ditto.
2371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2372 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2373 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2375 2002-11-15 Andrew Cagney <cagney@redhat.com>
2377 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2380 2002-11-15 Andrew Cagney <cagney@redhat.com>
2382 * frame.h (sigtramp_saved_pc): Delete declaration.
2383 * blockframe.c (sigtramp_saved_pc): Delete function.
2384 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2385 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2386 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2387 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2389 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2391 * frame.c (frame_pc_unwind): New function.
2392 (frame_saved_regs_pc_unwind): New function.
2393 (frame_register_unwind): Pass unwind_cache instead of
2394 register_unwind_cache.
2395 (set_unwind_by_pc): Add unwind_pc parameter, set.
2396 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2397 (get_prev_frame): Ditto.
2398 * frame.h (frame_pc_unwind_ftype): Declare.
2399 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2400 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2401 (frame_pc_unwind): Declare.
2402 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2403 (struct dummy_frame): Add comment mentioning that values are for
2405 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2406 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2407 (generic_file_frame_chain_valid): Ditto.
2408 * stack.c (frame_info): Ditto.
2410 2002-11-15 David Carlton <carlton@math.stanford.edu>
2412 * linespec.c (locate_first_half): New function.
2413 (decode_line_1): Move code into locate_first_half.
2415 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2417 * complaints.h: Add comment explaining how to eliminate a
2418 deprecated_complain call.
2419 * complaints.h: Fix spelling errors.
2421 2002-11-15 David Carlton <carlton@math.stanford.edu>
2423 * printcmd.c: Remove #include "disasm.h".
2425 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2427 * frame.h: Move the most relevant interface functions to the start
2430 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2432 * regcache.h (deprecated_registers): Rename registers.
2433 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2434 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2435 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2436 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2437 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2438 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2439 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2440 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2441 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2442 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2443 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2444 * v850ice.c: Update.
2446 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2448 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2451 2002-11-13 Andrew Cagney <cagney@redhat.com>
2453 * regcache.h (deprecated_read_register_bytes): Rename
2454 read_register_bytes.
2455 (deprecated_write_register_bytes): Rename write_register_bytes.
2456 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2457 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2458 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2459 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2460 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2461 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2462 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2463 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2464 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2465 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2466 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2467 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2468 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2469 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2471 2002-11-13 Jim Blandy <jimb@redhat.com>
2473 * findvar.c (read_var_value): Doc fix.
2475 2002-11-13 Andrew Cagney <cagney@redhat.com>
2477 * regcache.c (struct regcache): Replace passthough_p with
2479 (regcache_xmalloc): Initialize readonly_p.
2480 (build_regcache): Initialize readonly_p.
2481 (regcache_save): New function.
2482 (regcache_restore): New function.
2483 (regcache_cpy): Re-implement using regcache_save and
2485 (regcache_raw_read): Update.
2486 (regcache_cooked_read): When a read-only cache, checked for cached
2487 pseudo register values.
2488 (regcache_raw_write): Assert that the cache is not read-only.
2489 Remove code handling a non-passthrough cache.
2490 * regcache.h (regcache_save): Declare.
2491 (regcache_restore): Declare.
2493 2002-11-13 Andrew Cagney <cagney@redhat.com>
2495 * regcache.c (struct regcache_descr): Add fields
2496 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2497 (init_legacy_regcache_descr): Compute the size of a cooked
2498 register cache and then assign that to sizeof_raw_registers. Set
2499 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2500 (init_legacy_regcache_descr): Ditto.
2502 2002-11-13 Andrew Cagney <cagney@redhat.com>
2504 * regcache.c (register_buffer): Move to near start of file, update
2506 (regcache_raw_read): Use.
2507 (regcache_raw_write): Use.
2508 (struct regcache): Rename raw_registers to registers and
2509 raw_register_valid_p to register_valid_p.
2510 (regcache_xmalloc): Update.
2511 (regcache_xfree): Update.
2512 (register_buffer): Update.
2513 (regcache_cpy): Update.
2514 (regcache_cpy_no_passthrough): Update.
2515 (regcache_valid_p): Update.
2516 (deprecated_grub_regcache_for_registers): Update.
2517 (deprecated_grub_regcache_for_register_valid): Update.
2518 (set_register_cached): Update.
2519 (regcache_raw_write): Update.
2521 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2523 * p-exp.y (name_not_typename): Use copy_name to
2524 set current_type variable for fields of THIS.
2526 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2528 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2529 * monitor.c (init_base_monitor_ops): Likewise.
2530 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2531 * remote-array.c (init_array_ops): Likewise.
2532 * remote-e7000.c (init_e7000_ops): Likewise.
2533 * remote-es.c (init_es1800_ops): Likewise.
2534 (init_es1800_child_ops): Likewise.
2535 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2536 * remote-sim.c (init_gdbsim_ops): Likewise.
2537 * remote-st.c (init_st2000_ops): Likewise.
2538 * sol-thread.c (init_sol_core_ops): Likewise.
2539 (init_sol_thread_ops): Likewise.
2540 * v850ice.c (init_850ice_ops): Likewise.
2541 * win32-nat.c (init_child_ops): Likewise.
2542 * wince.c (init_child_ops): Likewise.
2544 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2546 * utils.c (gdb_realpath): Make rp a constant pointer.
2548 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2550 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2551 a constant buffer; cannonicalize_file_name(); realpath() with a
2552 pathconf() defined buffer, xstrdup().
2554 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2556 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2557 to hang2.C; hang3.c to hang3.C.
2559 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2561 * findvar.c (read_var_value): Reenable TLS code.
2563 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2564 Jim Blandy <jimb@redhat.com>
2566 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2567 * target.c (update_current_target): Add
2568 to_get_thread_local_address.
2569 * target.h (to_get_thread_local_address): Export.
2570 (target_get_thread_local_address): Define.
2571 (target_get_thread_local_address_p): Define.
2572 * thread-db.c: Include solib-svr4.h.
2573 (td_thr_tls_get_addr_p): Define.
2574 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2575 (thread_db_get_thread_local_address): New function.
2576 (init_thread_db_ops): Initialize to_get_thread_local_address.
2577 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2578 * configure: Regenerate.
2579 * config.in: Regenerate.
2581 2002-11-11 David Carlton <carlton@math.stanford.edu>
2583 * linespec.c (set_flags): New function.
2584 (decode_line_1): Move code into set_flags.
2586 2002-11-11 David Carlton <carlton@math.stanford.edu>
2588 * linespec.c (decode_line_1): Move chunks of code to separate
2590 (initialize_defaults): New function.
2591 (decode_indirect): New function.
2593 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2595 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2596 instead of void_code_ptr.
2597 (sigtramp_saved_pc): Ditto.
2599 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2602 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2604 * gdbtypes.h (struct main_type): Move artificial flag out of
2605 loc. New member of ``struct field'' named static_kind. Reduce
2606 overloaded meaning of bitsize.
2607 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2608 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2609 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2611 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2613 (template_to_fixed_record_type, template_to_static_fixed_type)
2614 (to_record_with_fixed_variant_part): Likewise.
2615 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2616 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2617 * dwarfread.c (struct_type, enum_type): Likewise.
2618 * hpread.c (hpread_read_enum_type)
2619 (hpread_read_function_type, hpread_read_doc_function_type)
2620 (hpread_read_struct_type): Likewise.
2621 * mdebugread.c (parse_symbol): Likewise.
2623 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2625 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2626 * stack.c (print_frame_info_base): Update.
2627 (print_frame_info_base, frame_info): Update.
2628 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2629 (sparc_frame_saved_pc): Update.
2630 * ada-lang.c (find_printable_frame): Update.
2631 * breakpoint.c (deprecated_frame_in_dummy): Update.
2633 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2635 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2637 (regmap): Extend to cover all registers.
2638 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2639 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2641 (fetch_register, sore_register): Simplify.
2642 (old_fetch_inferior_registers, old_store_inferior_registers):
2644 (cannot_fetch_register, cannot_store_register): Change
2645 implementation to use regmap array to decide which registers
2646 cannot be fetched/stored. This removes $orig_eax from the
2647 registers that cannot be fetched/stored.
2648 (fetch_inferior_registers): Call fetch_register directly instead
2649 of calling old_fetch_inferior_registers.
2650 (store_inferior_registers): Call store_register directly instead
2651 of calling old_store_inferior_registers.
2652 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2653 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2654 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2656 2002-11-09 Klee Dienes <kdienes@apple.com>
2658 * i387-tdep.c (i387_supply_register): When called with NULL as a
2659 buffer, mark the register as not provided (to mirror the behavior
2660 of supply_register).
2661 (i387_supply_fxsave): Ditto.
2662 (i387_supply_fsave): Ditto (inherits the behavior from
2663 i387_supply_register).
2665 2002-11-09 Klee Dienes <kdienes@apple.com>
2667 * blockframe.c (sigtramp_saved_pc): Use
2668 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2669 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2670 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2672 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2674 * frame.c (get_prev_frame): Test prev_p to identify a previously
2675 unwound frame. Initialize prev_p.
2676 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2679 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2681 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2682 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2683 more comments. Zap dead code.
2685 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2687 * infcmd.c (print_vector_info, print_float_info): Move code that
2688 checks whether the target has any registers and whether there is a
2689 selected frame up, such that it is also used if a target provides
2690 multi-arch definitions of these functions.
2692 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2694 * Makefile.in (DESTDIR): Define.
2695 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2698 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2699 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2701 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2703 * i386-linux-tdep.c: Include "reggroups.h".
2704 (i386_linux_register_reggroup_p): New function.
2705 (i386_linux_init_abi): Set register_reggroup_p to
2706 i386_linux_register_reggroup_p.
2707 * i386-tdep.h (i386_register_reggroup_p): Declare.
2708 * i386-tdep.c: Include "reggroups.h".
2709 (i386_init_reggroups): New function.
2710 (i386_add_reggroups): New function.
2711 (i386_register_reggroup_p): New function.
2712 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2713 (_initialize_i386_tdep): Call i386_init_reggroups.
2714 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2717 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2719 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2720 request that's available in *BSD.
2722 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2724 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2727 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2729 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2730 * dummy-frame.c (find_dummy_frame): Rename
2731 generic_find_dummy_frame, make static. Return the dummy frame
2732 instead of the regcache.
2733 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2734 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2735 (dummy_frame_register_unwind): Rename
2736 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2737 * dummy-frame.h (dummy_frame_register_unwind): Rename
2738 generic_call_dummy_register_unwind.
2740 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2742 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2743 except the inclusion of "i386/tm-i386.h", to...
2744 * config/i386/nm-i386v42mp.h: ...here.
2745 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2747 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2749 * Makefile.in (frame.o): Update dependencies.
2750 * blockframe.c (current_frame, frame_obstack_alloc)
2751 (frame_saved_regs_zalloc, get_current_frame)
2752 (set_current_frame, create_new_frame)
2753 (set_unwind_by_pc, get_next_frame)
2754 (flush_cached_frames, reinit_frame_cache)
2755 (frame_saved_regs_register_unwind)
2756 (deprecated_generic_get_saved_register)
2757 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2758 (_initialize_blockframe): Move frame code from here...
2759 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2760 "annotate.h" and "dummy-frame.h".
2761 (_initialize_frame): New function.
2763 2002-11-08 Jim Blandy <jimb@redhat.com>
2765 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2766 when we finish a function a context.
2767 * buildsym.h (outermost_context_p): New macro.
2768 (Bug analyzed by David Edelsohn.)
2770 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2772 * blockframe.c: Include "dummy-frame.h".
2773 (struct dummy_frame, dummy_frame_stack)
2774 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2775 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2776 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2777 (generic_save_call_dummy_addr, generic_pop_current_frame)
2778 (generic_pop_dummy_frame, generic_fix_call_dummy)
2779 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2780 dummy frame code from here...
2781 * dummy-frame.c: ...to here. New file.
2782 * dummy-frame.h: New file.
2783 (generic_call_dummy_register_unwind): Declare.
2784 (generic_find_dummy_frame): Declare.
2785 * Makefile.in (SFILES): Add dummy-frame.c.
2786 (dummy-frame.o): Specify dependencies.
2787 (dummy_frame_h): Define.
2788 (COMMON_OBS): Add dummy-frame.o.
2789 (blockframe.o): Update dependencies.
2791 2002-11-08 Jim Blandy <jimb@redhat.com>
2793 * dwarf2read.c (read_func_scope): Restore local_symbols and
2794 param_symbols after we finish the function context. (Based on a
2795 patch from David Edelsohn.)
2797 2002-11-08 David Carlton <carlton@math.stanford.edu>
2799 * linespec.c (symbol_found): New function.
2800 (minsym_found): New function.
2801 (decode_line_1): Separate out some code into separate functions.
2803 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2805 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2806 the benefit of the interix target.
2807 * i386-tdep.h (i386_frameless_signal_p): Declare.
2809 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2811 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2812 declaration that snuck in from change below.
2814 2002-11-06 Andrew Cagney <cagney@redhat.com>
2816 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2818 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2819 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2820 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2821 (i386_mxcsr_regnum_p): new function. Use instead of
2823 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2824 (i386_sse_regnum_p): Declare.
2825 (i386_mxcsr_regnum_p): Declare.
2826 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2827 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2828 (IS_FP_REGNUM): Update definition.
2829 (IS_FPU_CTRL_REGNUM): Update definition..
2830 (IS_SSE_REGNUM): Update definition..
2831 * i386v-nat.c (register_u_addr): Update.
2832 * go32-nat.c (fetch_register): Update.
2833 (store_register): Update.
2835 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2837 Preparation work to convert the hppa targets to multiarch partial.
2839 * hppa-tdep.c: Add new functions replacing macro bodies from
2840 config/pa/tm-hppa.h. These function will be used to initialize
2841 the gdbarch structure. Import some comments from tm-hppa.h,
2842 and place them where appropriate, to avoid loosing them when
2843 we cleanup this file.
2844 (hppa_reg_struct_has_addr): New function.
2845 (hppa_inner_than): New function.
2846 (hppa_stack_align): New function.
2847 (hppa_pc_requires_run_before_use): New function.
2848 (hppa_instruction_nullified): New function.
2849 (hppa_register_byte): New function.
2850 (hppa_register_virtual_type): New function.
2851 (hppa_store_struct_return): New function.
2852 (hppa_cannot_store_register): New function.
2853 (hppa_frame_args_address): New function.
2854 (hppa_frame_locals_address): New function.
2855 (hppa_smash_text_address): New function.
2856 (hppa_coerce_float_to_double): New function. Requires the inclusion
2859 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2861 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2862 gdbarch-eligible macro to a call to the new associated function
2863 created in hppa-tdep.c.
2864 (INNER_THAN): Likewise.
2865 (STACK_ALIGN): Likewise.
2866 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2867 (INSTRUCTION_NULLIFIED): Likewise.
2868 (REGISTER_BYTE): Likewise.
2869 (REGISTER_VIRTUAL_TYPE): Likewise.
2870 (STORE_STRUCT_RETURN): Likewise.
2871 (CANNOT_STORE_REGISTER): Likewise.
2872 (FRAME_ARGS_ADDRESS): Likewise.
2873 (FRAME_LOCALS_ADDRESS): Likewise.
2874 (SMASH_TEXT_ADDRESS): Likewise.
2875 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2876 (ABOUT_TO_RETURN): Delete, as no longer used.
2878 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2880 * printcmd.c (disassemble_command): Remove obsolete function.
2881 (_initialize_printcmd): Do not create disassemble command here.
2882 * cli/cli-cmds.c (disassemble_command): New function. Implements
2883 disassemble command.
2884 (init_cli_cmds): Create disassemble command here instead.
2886 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2888 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2890 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2892 * regcache.h (regcache_cooked_read_using_offset_hack)
2893 (regcache_cooked_write_using_offset_hack): Delete declarations.
2894 (register_changed): Delete declaration.
2895 * regcache.c (regcache_cooked_read_using_offset_hack)
2896 (regcache_cooked_write_using_offset_hack): Delete functions.
2897 (cooked_xfer_using_offset_hack): Delete function.
2898 (register_changed): Delete function.
2900 2002-11-07 Jim Blandy <jimb@redhat.com>
2902 * macroscope.c: #include "complaints.h".
2903 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2904 but not in the macro table.
2905 * Makefile.in (macroscope.o): Record dependency.
2907 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2909 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2911 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2913 * regcache.c (deprecated_registers_fetched): Update.
2914 * regcache.h (deprecated_registers_fetched): Rename
2916 * remote-vxsparc.c (vx_read_register): Update.
2917 * remote-vxmips.c (vx_read_register): Update.
2918 * remote-vx68.c (vx_read_register): Update.
2919 * irix5-nat.c (fetch_core_registers): Update.
2920 * mipsm3-nat.c (fetch_inferior_registers): Update.
2921 * sun3-nat.c (fetch_inferior_registers): Update.
2922 * symm-nat.c (fetch_inferior_registers): Update.
2923 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2924 (fetch_core_registers): Update.
2925 (fetch_kcore_registers): Update.
2926 * mips-nat.c (fetch_inferior_registers): Update.
2927 * corelow.c (get_core_registers): Update.
2928 * a68v-nat.c (fetch_inferior_registers): Update.
2930 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2932 Put in place the framework necessary for multiarching the hppa targets.
2933 * hppa-tdep.c (hppa_gdbarch_init): New function.
2934 (hppa_dump_tdep): New function.
2935 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2936 tdep structure dumper.
2937 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2938 until the multi-arching conversion has partially been completed.
2940 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2942 * valops.c (value_assign): Merge lval_register case into
2943 lval_reg_frame_relative. Use frame_register and
2944 regcache_cooked_write instead of get_saved_register and
2945 write_register_bytes. After flushing the register cache, try to
2946 re-select the selected frame.
2948 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2950 * regcache.h (deprecated_register_valid): Rename register_valid.
2951 * regcache.c: Update.
2952 * ia64-aix-nat.c: Update.
2953 * i386gnu-nat.c: Update.
2954 * alpha-nat.c: Update.
2955 * sparc-nat.c: Update.
2956 * lynx-nat.c: Update.
2957 * remote-mips.c: Update.
2959 2002-11-06 Joel Brobecker <brobecker@gnat.com>
2961 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2962 to end of file, to be more consistent with the pratice followed
2965 2002-11-06 Andrew Cagney <ac131313@redhat.com>
2967 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2968 (print_float_info): Print registers in float_reggroup.
2969 (print_vector_info): Print registers in vector_reggroup.
2970 (default_print_registers_info): When all, print registers in
2971 all_reggroup. Otherwize, print registers in general_reggroup.
2972 (registers_info): Rewrite. Add support for register groups.
2975 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
2977 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2979 (symtab_symbol_info): Remove eons old ifdeffed out code.
2980 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2983 2002-11-06 Theodore A. Roth <troth@openavr.org>
2985 * c-exp.y: Add missing semi-colons.
2986 * f-exp.y: Add missing semi-colons.
2987 * m2-exp.y: Add missing semi-colons.
2988 * p-exp.y: Add missing semi-colons.
2989 Add empty action to start rule to avoid a type clash error when
2990 building with bison >= 1.50.
2992 2002-11-06 Jim Blandy <jimb@redhat.com>
2994 * macrotab.h (struct macro_source_file): Doc fix.
2996 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
2998 * varobj.c (child_exists, cplus_number_of_children): Change
2999 STREQ macro references to strcmp.
3000 (cplus_name_of_child): Change code to handle the fact that
3001 fields are not necessarily contiguous with regards to their
3002 access control. This is a fix for PR gdb/792.
3004 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3006 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3007 * gdbarch.h, gdbarch.c: Regnerate.
3008 * frame.h (frame_register): Declare.
3009 * frame.c (frame_register): New function.
3010 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3011 GET_SAVED_REGISTER, otherwize call
3012 generic_unwind_get_saved_register.
3013 (frame_register_read): Use frame_register instead of
3016 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3018 From Jim Ingham <jingham@apple.com>:
3019 * event-top.c (gdb_disable_readline): New function.
3020 (_initialize_event_loop): Move comment.
3022 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3024 * event-loop.c (start_event_loop): Add comment.
3027 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3029 * infcmd.c (default_print_registers_info): Do not call
3030 PRINT_REGISTER_HOOK.
3032 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3034 * sparc-tdep.c (sparc_print_register_hook): Make static.
3035 (sparc_print_registers_info): New function.
3036 (sparc_do_registers_info): New function.
3037 (sparclet_print_registers_info): New function.
3038 (sparclet_do_registers_info): New function.
3039 (do_sparc_print_registers_info): New function.
3040 (sparc_print_registers): New static function, clone of infcmd.c's
3041 default_print_registers_info.
3042 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3043 (sparclet_do_registers_info): Declare.
3044 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3045 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3047 (sparc_do_registers_info): Declare.
3048 (PRINT_REGISTER_HOOK): Delete macro.
3049 (sparc_print_register_hook): Delete declaration.
3051 2002-11-05 David Carlton <carlton@math.stanford.edu>
3053 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3055 (lookup_symbol_aux_local): New function.
3056 (lookup_symbol_aux_symtabs): New function.
3057 (lookup_symbol_aux_psymtabs): New function.
3059 2002-11-05 David Carlton <carlton@math.stanford.edu>
3061 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3062 previous values of 'objfile' and 'block'.
3064 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3066 * values.c (value_change_enclosing_type): Set
3067 enclosing_type field correctly also for the case where
3068 more memory needs to be allocated.
3070 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3072 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3075 * i387-tdep.c (i387_print_float_info): Replace calls to
3076 register_read and deprecated_read_register_gen with calls to
3077 frame_register_read, and make the necessary adjustments to the
3080 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3082 * gdbarch.sh (register_reggroup_p): Allow default value.
3083 * gdbarch.h, gdbarch.c: Regenerate.
3085 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3087 * regcache.h: Add coment indicating replacements for deprecated
3090 2002-11-02 Andrew Cagney <cagney@redhat.com>
3092 * reggroups.h, reggroups.c: New files.
3093 * regcache.c: Include "reggroups.h".
3094 (enum regcache_dump_what): Add `regcache_dump_groups'.
3095 (regcache_dump): Contract size of the "Type" column. When
3096 specified, dump the register's groups.
3097 (maintenance_print_register_groups): New function.
3098 (_initialize_regcache): Add command `maint print register-groups'.
3099 * Makefile.in (COMMON_OBS): Add reggroups.o
3100 (SFILES): Add reggroups.c.
3101 (reggroups_h): Define.
3102 (regcache.o, gdbarch.o): Update dependencies.
3103 (reggroups.o): Specify dependencies.
3104 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3105 Add opaque declaration for `struct reggroup' in generated .h file.
3106 Include "reggroups.h" in generated .c file.
3107 gdbarch.h, gdbarch.c: Re-generate.
3109 2002-11-02 Andrew Cagney <cagney@redhat.com>
3111 * regcache.h (deprecated_read_register_gen): Rename
3113 (deprecated_write_register_gen): Rename write_register_gen.
3114 * i387-tdep.c: Update.
3115 * x86-64-linux-nat.c: Update
3117 * thread-db.c: Update.
3118 * win32-nat.c: Update.
3119 * mips-tdep.c: Update.
3120 * d10v-tdep.c: Update.
3121 * cris-tdep.c: Update.
3122 * remote-sim.c: Update.
3123 * remote-rdi.c: Update.
3124 * remote-rdp.c: Update.
3127 * blockframe.c: Update.
3128 * x86-64-tdep.c: Update.
3129 * xstormy16-tdep.c: Update.
3130 * sh-tdep.c: Update.
3131 * s390-tdep.c: Update.
3132 * rs6000-tdep.c: Update.
3133 * sparc-tdep.c: Update.
3134 * i386-tdep.c: Update.
3135 * dwarf2cfi.c: Update.
3136 * regcache.c: Update.
3138 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3140 New interix-specific files:
3141 * config/i386/nm-interix.h: New file.
3142 * config/i386/interix.mh: New file.
3143 * config/i386/interix.mt: New file.
3144 * i386-interix-nat.c: New file.
3145 * i386-interix-tdep.c: New file.
3147 2002-11-01 Andrew Cagney <cagney@redhat.com>
3149 * frame.h (deprecated_generic_get_saved_register): Rename
3150 generic_get_saved_register.
3151 * blockframe.c (deprecated_generic_get_saved_register): Update.
3152 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3153 (xstormy16_frame_saved_register): Update.
3154 * sh-tdep.c (sh_gdbarch_init): Update.
3155 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3156 * ia64-tdep.c (ia64_get_saved_register): Update.
3157 * cris-tdep.c (cris_gdbarch_init): Update.
3158 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3159 * arm-tdep.c (arm_gdbarch_init): Update.
3161 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3163 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3165 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3167 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3168 trampolines in sigaction.
3170 2002-10-31 Andrew Cagney <cagney@redhat.com>
3172 * h8300-tdep.c: Include "gdb_assert.h".
3173 (h8300_print_register): Add gdbarch, file and frame parameters.
3174 Use frame_read_unsigned_register to read the register's value.
3175 Use fprintf_filtered to display output.
3176 (h8300_print_registers_info): Replace h8300_do_registers_info.
3177 (h8300_gdbarch_init): Set print_registers_info.
3179 2002-10-31 Andrew Cagney <cagney@redhat.com>
3181 * frame.c (frame_read_unsigned_register): New function.
3182 (frame_read_signed_register): New function.
3183 * frame.h (frame_read_unsigned_register): Declare.
3184 (frame_read_signed_register): Declare.
3186 2002-10-31 Andrew Cagney <cagney@redhat.com>
3188 * h8500-tdep.c (h8500_print_registers_info): New static function,
3189 clone of infcmd.c's default_print_registers_info.
3190 (h8500_do_registers_info): New funtion.
3191 (h8500_print_register_hook): Rename print_register_hook, make
3194 * config/h8500/tm-h8500.h: Update copyright.
3195 (DEPRECATED_DO_REGISTERS_INFO): Define.
3196 (h8500_do_registers_info: Declare.
3197 (PRINT_REGISTER_HOOK): Delete macro.
3198 (print_register_hook): Delete function.
3200 2002-10-31 Andrew Cagney <cagney@redhat.com>
3202 * z8k-tdep.c (z8k_print_register_hook): Make static.
3203 (z8k_print_registers_info): New static function, clone of
3204 infcmd.c's default_print_registers_info.
3205 (z8k_do_registers_info): New function. Wrap
3206 z8k_print_registers_info.
3207 * config/z8k/tm-z8k.h: Update copyright.
3208 (PRINT_REGISTER_HOOK): Delete macro.
3209 (z8k_print_register_hook): Delete declaration.
3210 (DEPRECATED_DO_REGISTERS_INFO): Define.
3211 (z8k_do_registers_info): Declare.
3213 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3215 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3216 as this is already provided by value.h, and was actually causing
3217 a compilation error because of a conflict in parameter type
3218 declaration due to a missing const keyword.
3219 (low_text_segment_addres): Fix a compilation warning.
3221 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3223 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3224 registers without a name.
3225 (mips_linux_cannot_store_register): Don't store registers without
3228 2002-10-28 David Carlton <carlton@math.stanford.edu>
3230 * symtab.c (find_addr_symbol): Delete. (It was already commented
3232 * symtab.h: Delete prototype for find_addr_symbol.
3234 2002-10-26 Andrew Cagney <cagney@redhat.com>
3236 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3238 gdbarch.h, gdbarch.c: Re-generate.
3239 * infcmd.c (default_print_registers_info): Update reference.
3240 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3241 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3242 * sh-tdep.c (sh_gdbarch_init): Ditto.
3243 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3244 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3246 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3248 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3249 cfi_init_extra_frame_info.
3250 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3251 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3253 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3254 target where necessary. Add more comments and remove the ones
3255 that don't provide any useful information.
3257 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3258 deprecated_read_register_dummy with
3259 frame_unwind_unsigned_register.
3261 * i386-tdep.c (i386_extract_struct_value_address): Use
3262 regcache_raw_read_unsigned instead of
3263 regcache_cooked_read_unsigned since we know that the register
3264 we're reading isn't a pseudo register. Rename variable 'val' into
3265 the more descriptive 'addr'.
3267 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3268 (x86_64_push_return_address): Add comment.
3269 (x86_64_pop_frame): Make static.
3270 (examine_argument): Clarify comment.
3271 (x86_64_skip_prologue): Make prolog_expact variable static.
3273 * dwarf2cfi.c: Fix some formatting problems.
3274 (context_cpy, read_encoded_pointer): Clarify comments.
3276 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3277 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3278 i386 target back into x86_64_gdbarch_init. Add some comments and
3279 remove meaningless ones.
3281 2002-10-25 Andrew Cagney <cagney@redhat.com>
3283 * complaints.h (struct deprecated_complaint): Rename `struct
3285 * complaints.c (complain): Update.
3286 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3287 incorrect comment indicating that "symfile.h" was being included
3288 for the `struct complaint' definition.
3289 * remote-vx.c: Update.
3290 * objc-lang.c: Update.
3291 * xcoffread.c: Update.
3293 * mdebugread.c: Update.
3294 * stabsread.c: Update.
3295 * dwarf2read.c: Update.
3296 * dwarfread.c: Update.
3297 * elfread.c: Update.
3298 * coffread.c: Update.
3299 * stabsread.h: Update.
3300 * dbxread.c: Update.
3301 * buildsym.c: Update.
3302 * gdbtypes.c: Update.
3303 * macrotab.c: Update.
3305 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3307 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3308 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3309 (x86_64_init_abi): ...new function.
3311 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3312 * i386v-nat.c: Include "i386-tdep.h".
3314 2002-10-25 Andrew Cagney <cagney@redhat.com>
3316 * gdbtypes.c (address_space_name_to_int): Update.
3317 (address_space_int_to_name): Update.
3318 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3319 multi-arch predicate.
3320 (address_class_name_to_type_flags): Ditto.
3321 * gdbarch.h, gdbarch.c: Re-generate.
3323 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3325 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3327 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3329 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3331 * symtab.h (INIT_SAL): Delete macro.
3333 * symtab.c (init_sal): New function.
3335 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3336 to init_sal function call.
3337 (find_sal_from_funcs_and_line): Ditto.
3338 (all_sals_for_line): Ditto.
3339 * breakpoint.c (create_internal_breakpoint): Ditto.
3340 (create_fork_vfork_event_catchpoint): Ditto.
3341 (create_exec_event_catchpoint): Ditto.
3342 (parse_breakpoint_sals): Ditto.
3343 (watch_command_1): Ditto.
3344 (handle_gnu_4_16_catch_command): Ditto.
3345 (clear_command): Ditto.
3346 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3347 * infcmd.c (run_stack_dummy): Ditto.
3348 * infrun.c (process_event_stop_test): Ditto.
3349 (check_sigtramp2): Ditto.
3350 (step_over_function): Ditto.
3351 * linespec.c (decode_line_2): Ditto.
3352 (decode_line_1): Ditto.
3353 * source.c (line_info): Ditto.
3354 * symtab.c (find_pc_sect_line): Ditto.
3356 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3358 * dwarf2cfi.c (struct context)
3359 (struct context_reg): Moved to dwarf2cfi.h
3360 (context_alloc, frame_state_alloc, context_cpy):
3361 Made extern instead of static, removed prototypes.
3362 * dwarf2cfi.h (struct context)
3363 (struct context_reg): New, moved from dwarf2cfi.c
3364 (context_alloc, frame_state_alloc, context_cpy):
3366 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3367 Changed from static to extern.
3368 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3369 (LINUX_SIGCONTEXT_FP_OFFSET)
3370 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3371 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3372 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3373 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3374 set_gdbarch_*() calls now use x86-64 specific functions
3375 instead of DWARF2 CFI ones.
3376 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3377 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3378 (x86_64_init_extra_frame_info): New prototypes.
3380 2002-10-23 David Carlton <carlton@math.stanford.edu>
3382 * linespec.c: #include "parser-defs.h".
3383 Delete prototype for find_template_name_end.
3384 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3386 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3388 * NEWS: add recent mi fixes.
3389 * varobj.c (struct varobj): Add new "updated" flag.
3390 (new_variable): Default "updated" flag to 0.
3391 (varobj_set_value): Set "updated" flag to 1 if value
3393 (varobj_update): Check varobj "updated" flag before
3394 comparing old and refreshed values. Fix for
3397 2002-10-23 David Carlton <carlton@math.stanford.edu>
3399 * parse.c (parse_exp_1): Use BLOCK_START.
3400 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3402 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3404 2002-10-23 David Carlton <carlton@math.stanford.edu>
3406 * symtab.c: Delete cplusplus_hint.
3407 Delete prototype for find_template_name_end.
3409 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3411 * symtab.h: Update comment.
3413 2002-10-23 Michael Snyder <msnyder@redhat.com>
3415 * printcmd.c (address_info): Restore quotes in output.
3416 * valops.c (value_of_local): Restore quotes in error message.
3418 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3420 * symtab.c (symbol_demangled_name): New function.
3421 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3422 turning most of it into a function.
3423 (symbol_demangled_name): Export.
3425 2002-10-23 Michael Snyder <msnyder@redhat.com>
3427 * valops.c (value_of_local): Restore quotes in error message.
3429 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3431 * symtab.c (symbol_init_language_specific): New function.
3432 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3433 turning most of it into a function.
3434 (symbol_init_language_specific): Export.
3436 2002-10-23 David Carlton <carlton@math.stanford.edu>
3438 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3439 (dwarf_attr_name): Ditto.
3440 (dwarf_type_encoding_name): Ditto.
3441 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3442 (process_die): Handle DW_TAG_namespace,
3443 DW_TAG_imported_declaration, DW_TAG_imported_module.
3444 (read_namespace): New function.
3446 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3448 * configure.in: Define NEW_PROC_API on Interix too.
3449 * configure: Regenerate.
3451 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3453 * configure: Regenerate using the proper version of autoconf.
3455 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3457 * findvar.c (read_var_value): Temporarily disable TLS code, until
3458 complete TLS support is added.
3460 2002-10-21 Jim Blandy <jimb@redhat.com>
3461 Elena Zannoni <ezannoni@redhat.com>
3463 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3464 for thread local storage locations.
3465 (struct symbol): Add objfile field.
3466 (SYMBOL_OBJFILE): Define.
3467 * dwarf2read.c (is_thread_local): New static variable.
3468 (new_symbol): If variable is in thread local fill in address class
3469 and objfile appropriately.
3470 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3472 * printcmd.c (address_info): Print the information for thread
3473 local storage variable.
3474 * findvar.c (read_var_value): In case of thread local variable,
3475 defer to the target vector code to compute address.
3477 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3479 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3480 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3482 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3484 * symtab.h (address_class): Rename
3485 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3486 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3487 * printcmd.c (address_info): Ditto.
3488 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3490 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3492 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3493 DBREG_DRX macro to acces debug registers.
3495 * Makefile.in (i386obsd-tdep.o): New target.
3497 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3498 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3500 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3501 * config/i386/obsd.mt: New file.
3502 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3503 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3504 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3505 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3506 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3507 * i386obsd-tdep.c: New file.
3509 2002-10-19 Adam Fedor <fedor@gnu.org>
3511 * objc-exp.y (name_not_typename): Fix invalid comment.
3513 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3515 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3516 to allocate partial syms and macro byte caches.
3518 2002-10-18 David Carlton <carlton@math.stanford.edu>
3520 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3522 2002-10-18 Adam Fedor <fedor@gnu.org>
3524 * stabsread.c (find_name_end): New function.
3525 (define_symbol): Use it.
3527 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3529 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3530 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3531 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3532 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3534 2002-10-17 David Carlton <carlton@math.stanford.edu>
3536 * symfile.h: Add opaque declaration for struct obstack.
3537 Declare obsavestring to take a const char *.
3538 * symfile.c (obsavestring): Make first argument a const char *.
3540 2002-10-16 Adam Fedor <fedor@gnu.org>
3542 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3543 names when matching breakpoints in current file.
3545 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3547 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3548 (read_tag_pointer_type): Add address class support.
3549 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3550 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3552 * gdbarch.h, gdbarch.c: Regenerate.
3553 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3554 (make_type_with_address_space, recursive_type_dump): Add address
3556 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3557 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3558 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3560 2002-10-16 Klee Dienes <kdienes@apple.com>
3562 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3563 to get the last character of a char[] buffer, not
3564 name[sizeof(vptr_name)-1].
3566 2002-10-14 Adam Fedor <fedor@gnu.org>
3568 * symtab.h: New objc_specific struct.
3569 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3570 (SYMBOL_DEMANGLED_NAME): Likewise.
3572 2002-10-14 Adam Fedor <fedor@gnu.org>
3574 * symfile.c (init_filename_language_table): Add ObjC file extension.
3576 2002-10-14 Adam Fedor <fedor@gnu.org>
3578 * utils.c (puts_filtered_tabular): New function.
3579 (fprintf_symbol_filtered): Get ObjC demangled name.
3580 * defs.h (puts_filtered_tabular): Declared.
3582 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3584 * c-lang.h (c_type_print_varspec_prefix): Delete.
3585 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3586 ``need_post_space'' parameter. Adjust all callers.
3588 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3590 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3591 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3592 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3593 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3595 2002-10-13 Adam Fedor <fedor@gnu.org>
3597 * source.c (print_source_lines): Update comments.
3599 2002-10-13 Adam Fedor <fedor@gnu.org>
3601 * valops.c (value_of_local): New function.
3602 (value_of_this): Use it.
3603 * value.h (value_of_local): Declared.
3605 2002-10-13 Adam Fedor <fedor@gnu.org>
3607 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3608 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3610 2002-10-12 Adam Fedor <fedor@gnu.org>
3612 * language.c (binop_result_type): Add language_objc to case.
3613 (integral_type): Likewise.
3614 (character_type): Likewise.
3615 (string_type): Likewise.
3616 (boolean_type): Likewise.
3617 (structured_type): Likewise.
3618 (binop_type_check): Likewise.
3620 2002-10-11 Adam Fedor <fedor@gnu.org>
3622 * printcmd.c (address_info): Print 'self' for ObjC.
3624 2002-10-11 Adam Fedor <fedor@gnu.org>
3626 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3629 2002-10-11 Adam Fedor <fedor@gnu.org>
3631 * language.h (CAST_IS_CONVERSION): Add language_objc.
3633 2002-10-11 Adam Fedor <fedor@gnu.org>
3635 * defs.h (enum language): Add language_objc.
3637 2002-10-11 Klee Dienes <kdienes@apple.com>
3639 * corefile.c (read_memory_typed_address): New function.
3640 * gdbcore.h (read_memory_typed_address): Add prototype.
3641 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3642 to read a value destined for a CORE_ADDR, not read_memory_integer.
3643 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3644 (f77_get_dynamic_lowerbound): Ditto.
3646 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3648 * utils.c (string_to_core_addr): After turning string into
3649 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3650 which will do necessary sign-extension, etc.
3652 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3654 * c-exp.y (THIS): Delete token and grammar rule.
3655 (yylex): Don't return THIS.
3656 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3657 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3658 * demangle.c (cplus_markers): Update comment. Put '$'
3659 first. Remove CPLUS_MARKER.
3660 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3661 * jv-exp.y (THIS): Delete token and grammar rule.
3662 (yylex): Don't return THIS.
3663 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3664 * objc-exp.y (THIS): Delete token and grammar rule.
3665 (yylex): Don't return THIS.
3666 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3667 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3668 (read_member_functions): Likewise for opname.
3669 (read_tilde_fields): Use is_cplus_marker.
3671 * defs.h (CPLUS_MARKER): Don't define.
3672 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3673 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3674 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3675 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3676 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3678 * config/i386/tm-i386v4.h: Delete file.
3679 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3680 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3681 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3682 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3683 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3684 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3685 * config/i386/i386v4.mt (TM_FILE): Likewise.
3686 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3688 2002-10-10 Marko Mlinar <markom@opencores.org>
3690 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3691 accidentially not commited 2002-10-09
3692 * gdbarch.h, gdbarch.c: Re-generate.
3694 2002-10-09 Marko Mlinar <markom@opencores.org>
3696 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3697 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3698 * gdbarch.h, gdbarch.c: Re-generate.
3700 2002-10-08 Petr Sorfa <petrs@caldera.com>
3702 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3704 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3705 so we can work on more than one compilation unit at a time. This
3706 helps prepare GDB to handle inter-CU die references.
3707 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3708 the code to be defined before struct comp_unit_head.
3709 (comp_unit_head): Added new members - offset, cu_head,
3710 begin_die, next and dwarf2_abbrevs.
3711 (dwarf2_abbrevs): Removed single static var; now member of
3712 struct comp_unit_head.
3713 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3715 (psymtab_to_symtab_1): Changed to work with the new
3716 struct comp_unit_head.
3717 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3718 constructs the dwarf2_abbrevs[] inside the cu_header.
3719 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3720 dwarf2_abbrev table to clean up.
3721 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3722 handling of dwarf2_abbrevs inside the cu_header.
3723 (read_partial_die): Now supports the call to the new
3724 dwarf2_lookup_abbrev.
3725 (read_full_die): Now supports the call to the new
3726 dwarf2_lookup_abbrev.
3728 2002-10-06 Christopher Faylor <cgf@redhat.com>
3730 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3731 insure that shell variables, such as "transformed_name" are propagated
3732 to later shell statements in rule.
3734 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3736 * config/i386/nm-i386sco.h: Add protection against
3737 multiple-inclusion. Include "i386/nm-i386v.h".
3738 (REGISTER_U_ADDR): Remove define.
3739 (i386_register_u_addr): Remove prototype.
3741 2002-10-04 Michael Snyder <msnyder@redhat.com>
3743 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3744 before treating it as a single-step event.
3746 2002-10-03 Adam Fedor <fedor@gnu.org>
3748 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3749 (objc_demangle): Remove assignment in if statements, Replace
3751 (add_msglist): Likewise.
3752 (end_msglist): Likewise.
3753 (complare_selectors): Likewise.
3754 (selectors_info): Likewise.
3755 (compare_classes): Likewise.
3756 (classes_info): Likewise.
3757 (print_object_command): Likewise.
3758 (find_objc_msgcall_submethod): Replace PTR with void *.
3759 * objc-lang.h: Remove check for __STDC__.
3761 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3763 * ui-out.h (ui_out_field_fmt_int): New prototype.
3764 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3765 of field width and alignment.
3766 * stack.c (print_frame_info_base): When printing frame level, use
3767 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3770 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3772 * MAINTAINERS: Add self to Write After Approval list.
3774 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3776 * infcmd.c (interrupt_target_command_wrapper): Delete.
3777 (interrupt_target_command): Make non static.
3778 (nofp_registers_info): Make static.
3779 * stack.c (return_command_wrapper): Delete.
3780 (return_command): Make non static.
3782 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3784 * event-top.c (gdb_setup_readline): New function. Code moved from
3785 _initialize_event_loop().
3786 (_initialize_event_loop): Call gdb_setup_readline().
3788 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3790 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3791 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3792 * gdbarch.h, gdbarch.c: Re-generate.
3794 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3797 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3799 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3800 of fill_in_vptr_fieldno.
3802 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3804 * inferior.h (registers_info, stepi_command, nexti_command,
3805 continue_command, interrupt_target_command): Export from infcmd.c.
3806 * frame.h (args_info, selected_frame_level_changed_hook,
3807 return_command): Export from stack.c.
3808 * v850ice.c (stepi_command, nexti_command, continue_command): use
3809 prototypes from inferior.h.
3810 * tracepoint.c (registers_info, args_info, locals_info): Use
3811 prototypes from frame.h and inferior.h.
3812 * Makefile.in (mi-main.o): Add dependency on frame.h.
3814 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3816 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3817 value in register 3 adjusted by ppc_gp0_regnum.
3819 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3821 2002-10-02 Marko Mlinar <markom@opencores.org>
3823 * MAINTAINERS: Add myself to the Write After Approval list.
3825 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3827 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3828 of the section for the N64 ABI, fixed.
3830 * config/mips/tm-irix6.h: Include solib.h.
3832 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3834 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3837 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3839 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3840 and that "mi0" syntax has been removed.
3842 2002-09-30 David Carlton <carlton@math.stanford.edu>
3844 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3845 * ppc-sysv-tdep.c: #include "gdb_string.h".
3846 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3849 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3851 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3852 "vrsave"'s register number.
3854 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3856 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3857 use frame_unwind_signed_register to obtain the PC.
3858 (mips_frame_chain): Handle a generic dummy frame.
3859 (mips_init_extra_frame_info): When a generic dummy frame, don't
3860 re-compute the frame base.
3861 (mips_pop_frame): Handle generic dummy frames.
3862 (mips_gdbarch_init): When generic dummy frames, set
3863 use_generic_dummy_frames, push_dummy_frame to
3864 generic_push_dummy_frame, pc_in_call_dummy to
3865 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3866 generic_save_dummy_frame_tos.
3868 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3870 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3871 against TOP when TOP was explictly set.
3872 (generic_push_dummy_frame): Set TOP to zero.
3874 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3876 * event-loop.c (start_event_loop): Rename variable 'result' to
3877 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3879 2002-09-30 Keith Seitz <keiths@redhat.com>
3881 * gdb-events.sh (selected_thread_changed): New event.
3882 * gdb-events.c: Regenerated.
3883 * gdb-events.h: Regenerated.
3885 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3887 * MAINTAINERS: Add self to Write After Approval list.
3889 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3891 * disasm.c: New file.
3892 * disasm.h: New file.
3893 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3894 (compare_lines): Ditto.
3895 (dump_insns): Ditto.
3896 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3898 (do_assembly_only): Ditto.
3899 (do_disassembly): Renamed to gdb_disassembly and moved to
3900 disasm.c. Sdded uiout argument.
3901 * Makefile.in: Add new files. Reorder SFILES list. Update
3902 dependencies. Include libgdb.a later in the insight executable.
3904 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3906 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3907 bfd/elf64-alpha-fbsd.c.
3909 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3911 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3914 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3916 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3918 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3920 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3921 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3922 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3923 (S_msg_sig_post_reply): Ditto.
3925 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
3927 * sh-tdep.c (sh_use_struct_convention): Use definition according
3929 (sh_push_arguments): Store in register with correct endianess.
3930 (sh_default_store_return_value): Ditto.
3931 (sh_gdbarch_init): Set sizeof long double to 8.
3933 2002-09-27 Mark Kettenis <kettenis@gnu.org>
3935 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3936 Fix some whitespace problems.
3938 2002-09-27 David Carlton <carlton@math.stanford.edu>
3940 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3941 (mcore-tdep.o): Ditto.
3942 (ns32k-tdep.o): Ditto.
3943 (ns32knbsd-tdep.o): Ditto.
3945 (vax-tdep.o): Ditto.
3946 * cris-tdep.c: #include "gdb_string.h"
3947 * mcore-tdep.c: Ditto.
3948 * ns32k-tdep.c: Ditto.
3949 * ns32knbsd-tdep.c: Ditto.
3951 * vax-tdep.c: Ditto.
3953 2002-09-27 David Carlton <carlton@math.stanford.edu>
3955 * config/djgpp/fnchange.lst: Add entries for
3956 gdb/testsuite/gdb.c++/m-static files.
3958 2002-09-27 Jim Wilson <wilson@redhat.com>
3960 * MAINTAINERS: Add myself to the Write After Approval list.
3962 2002-09-26 Martin M. Hunt <hunt@redhat.com>
3964 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3967 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3969 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3972 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3974 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3975 (rs6000_struct_return_address): Delete variable.
3976 (rs6000_store_struct_return): Update.
3977 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3978 deprecated_extract_struct_value_address.
3979 (rs6000_frame_align): New function.
3980 (rs6000_gdbarch_init): Set frame_align.
3982 2002-09-26 Andrew Cagney <ac131313@redhat.com>
3984 From Grace Sainsbury <graces@redhat.com>:
3985 * Makefile.in (gdbtk-main.o): New target.
3986 (gdb.o): New target.
3988 (main.o): Update dependencies.
3989 (gdb$(EXEEXT)): Add gdb.o.
3990 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3991 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3992 (SUBDIR_GDBTK_CLEAN): Set.
3993 (install-gdbtk): Install the insight binary.
3994 (uninstall-gdbtk): New target.
3995 (all-gdbtk, clean-gdbtk): New rule.
3996 * top.c (use_windows): Default to zero.
3997 * main.c: Include "main.h".
3999 (struct captured_main_args): Delete.
4000 (gdb_main): New function.
4004 2002-09-25 Andrew Cagney <cagney@redhat.com>
4006 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4007 (frame_map_regnum_to_name): New function.
4008 (frame_map_name_to_regnum): New function.
4009 * frame.h (frame_map_name_to_regnum): Declare.
4010 (frame_map_regnum_to_name): Declare.
4011 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4012 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4013 * parse.c: Do not include "builtin-regs.h".
4014 (target_map_name_to_register): Delete function.
4015 (write_dollar_variable): Use frame_map_name_to_regnum.
4016 * parser-defs.h (target_map_name_to_register): Delete declaration.
4017 * expprint.c: Include "frame.h".
4018 (print_subexp): Use frame_map_regnum_to_name.
4019 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4020 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4022 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4024 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4025 wasn't saved, and the next innermost frame is a dummy, return the
4026 dummy frame's link register.
4028 2002-09-24 Jim Blandy <jimb@redhat.com>
4030 Fix from Paul Breed:
4031 * main.c (captured_main): Add a `break' after the case for 'b'.
4033 2002-09-24 Keith Seitz <keiths@redhat.com>
4035 * varobj.c (c_type_of_child): Use get_target_type instead
4036 of TYPE_TARGET_TYPE.
4038 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4040 * source.c (get_current_or_default_source_symtab_and_line): Remove
4042 (set_default_source_symtab_and_line): New function. Attempts to
4043 determine a source file to list lines from if one is not currently
4045 (get_current_source_symtab_and_line): Initialize sal.pc and
4047 (set_current_source_symtab_and_line): Mark argument as const.
4048 * source.h: Update declarations and comments.
4049 * linespec.c (decode_line_1): Replace call to removed routine above.
4050 * stack.c (print_frame_info_base): Ditto.
4051 * cli/cli-cmds.c (edit_command): Ditto.
4052 (list_command): Ditto.
4054 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4056 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4057 sal.pc and sal.end fields.
4058 (get_current_or_default_source_symtab_and_line): Ditto.
4059 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4060 so we do not cause a new source symtab to be searched for (reverting an
4061 unintentional change from the 2002-09-20 patch).
4062 * scm-lang.c (scm_unpac): Ditto.
4064 2002-09-21 Andrew Cagney <cagney@redhat.com>
4066 * complaints.c (symfile_explanations): Remove new-line from
4067 ``isolated_message''.
4068 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4069 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4071 2002-09-20 Nick Clifton <nickc@redhat.com>
4073 * NEWS: Announce that V850EA ISA is no longer supported.
4074 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4076 2002-09-20 David Carlton <carlton@math.stanford.edu>
4078 * Makefile.in (c-lang.o): Correct dependencies.
4079 (utils.o): Gather dependencies.
4081 * c-lang.c: #include "gdb_string.h"
4083 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4085 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4086 * cli/cli-cmds.c (list_command): New function. Implements the new
4088 (_init_cli_cmds): Add new command definition.
4089 * gdb.1: Document edit command.
4090 * doc/gdb.texinfo: Document edit command.
4092 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4094 * source.c: Make global variables current_source_symtab and
4095 current_source_line static.
4096 (list_command): Moved to cli/cli-cmds.c.
4097 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4098 (get_first_line_listed): New accessor function.
4099 (get_lines_to_list): New accessor function.
4100 (get_current_source_symtab_and_line): New function. Retrieves the
4101 position in the source code that we consider current.
4102 (get_current_or_default_source_symtab_and_line): New function.
4103 Like the above but attempts to determine a default position if one
4104 is not currently defined.
4105 (set_current_source_symtab_and_line): New function. Sets the source
4106 code position considered current and returns the previously set one.
4107 (clear_current_source_symtab_and_line): Reset stored information about
4108 a current source line.
4109 (_initialize_source): Remove registration for the "list" command and
4111 * source.h: Add declarations for the new functions above.
4112 * symtab.h: Remove declarations for the global variables mentioned
4114 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4115 obtain current source line.
4116 * linespec.c (decode_line_1): Ditto.
4117 * macroscope.c (default_macro_scope): Ditto.
4118 * scm-lang.c (scm_unpac): Ditto.
4119 * stack.c (print_frame_info_base): Ditto.
4120 * symfile.c (clear_symtab_users): Ditto.
4121 * symtab.c (decode_line_spec): Ditto.
4122 * cli/cli-cmds.c (list_command): Moved here from source.c.
4123 (ambiguous_line_spec): Moved here from source.c.
4124 (_init_cli_cmds): Add definition for "list" and its alias.
4125 * Makefile.in: Update dependencies.
4127 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4129 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4130 with what gcc thinks is correct.
4132 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4134 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4135 multiple register push instruction.
4137 2002-09-19 Jim Blandy <jimb@redhat.com>
4139 Add support for distinct host and target character sets.
4140 * charset.c, charset.h: New files.
4141 * c-exp.y: #include "charset.h".
4142 (yylex): Convert character and string literals to the target
4143 character set, before returning them as the semantic value of the
4145 * c-lang.c: #include "charset.h".
4146 (c_emit_char): Use charset-specific methods to recognize
4147 characters with backslash escape forms, to decide which characters
4148 to print literally and which to print using numeric escape
4149 sequences, and to convert target characters to host characters
4151 * utils.c: #include "charset.h".
4152 (no_control_char_error): New function.
4153 (parse_escape): Use charset-specific methods to recognize
4154 backslash escapes, parse `control character' notation, and convert
4155 characters from the host character set to the target character set.
4156 * configure.in: Set the default host character set.
4157 Check where to find iconv, and what its argument types might be.
4158 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4159 * Makefile.in (SFILES): List charset.c.
4160 (COMMON_OBS): List charset.o.
4161 (charset.o): New rule.
4162 (charset_h): New header dependency variable.
4163 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4164 (LIBICONV): New variable, set by configure.
4165 (CLIBS): Include $(LIBICONV) here.
4166 * aclocal.m4, config.in, configure: Regenerated.
4168 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4170 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4173 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4175 * gdb_mbuild.sh: New file.
4177 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4179 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4181 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4183 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4184 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4185 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4186 valops.c, value.h: Revert previous change.
4188 2002-09-18 Michael Snyder <msnyder@redhat.com>
4190 Preliminary support for Objective-C:
4191 * defs.h (language_objc): New enum value.
4192 (puts_filtered_tabular): Declaration only, exported from utils.c.
4193 (skip_quoted): Delete, declared in completer.h.
4194 * c-exp.y: Include completer.h.
4197 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4198 New operator enum values.
4199 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4200 * language.c (binop_result_type): Handle language_objc case.
4201 (integral_type, character_type, string_type, boolean_type,
4202 structured_type, binop_type_check): Ditto.
4203 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4204 (struct objc_specific): Add to general_symbol_info.
4205 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4206 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4207 * parser-defs.h (struct objc_class_str): New struct type.
4208 (start_msglist, end_msglist, add_msglist): Declaration only,
4209 exported from objc-lang.c.
4210 * value.h (value_of_local, value_nsstring,
4211 call_function_by_hand_expecting_type): Exported from valops.c.
4212 * valops.c (find_function_addr): Export.
4213 (call_function_by_hand_expecting_type): New function.
4214 (value_of_local): New function.
4215 * symfile.c (init_filename_language_table): Add ".m" extension
4217 * utils.c (puts_filtered_tabular): New function.
4218 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4219 (set/show demangle): Extend help-string to refer to ObjC.
4220 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4221 * stabsread.c (symbol_reference_defined): Objective-C symbols
4222 may contain colons: make allowances when scanning stabs strings
4224 (objc_find_colon): New function.
4225 * printcmd.c (address_info): If language == objc then print
4226 "self" instead of "this".
4227 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4228 OP_NSSTRING, and OP_SELF.
4229 (prefixify_subexp): Ditto.
4230 * source.c (print_source_lines): Mention objc in comment.
4231 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4234 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4236 * complaints.h: Update copyright.
4237 (struct complaints): Declare.
4238 (struct complaint): Make `message' constant.
4239 (internal_complaint): Declare.
4240 (complaint): Declare.
4241 (complaint_root): Delete declaration.
4242 (symfile_complaints): Delete declaration.
4243 (struct complaints): Add opaque declaration.
4244 (clear_complaints): Add a complaints parameter.
4245 * complaints.c: Update copyright.
4246 (enum complaint_series): Define.
4247 (complaint_root): Delete.
4248 (struct complaints): Define.
4249 (complaint_sentinel, symfile_complaint_book): New variables.
4250 (symfile_explanations, symfile_complaints): New variables.
4252 (get_complaints): New function.
4253 (vcomplaint): New function.
4254 (complaint): New function.
4255 (internal_complaint): New function.
4256 (complain): Call vcomplain with symfile_complaint.
4257 (clear_complaints): Rewrite.
4258 (_initialize_complaints): Use add_setshow_command.
4259 * Makefile.in (complaints.o): Update dependencies.
4260 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4261 to call to clear_complaints.
4262 (new_symfile_objfile, reread_symbols): Ditto.
4263 (oldsyms_complaint): Delete.
4264 (empty_symtab_complaint, unknown_option_complaint): Delete.
4265 (free_named_symtabs): Use complaint instead of complain.
4267 2002-09-18 Michael Snyder <msnyder@redhat.com>
4269 Contributed by Apple Computer, Inc. Merged with current sources
4270 by Adam Fedor <fedor@doc.com> [cagney].
4272 * objc-lang.c: First clean-up round: comments, indentation.
4273 * objc-lang.h: Ditto.
4274 * objc-lang.y: Ditto.
4276 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4278 * maint.c (maintenance_internal_error): Print the parameter as the
4280 (maintenance_internal_warning): New function.
4281 (_initialize_maint_cmds): Add command `maint internal-warning'.
4283 * defs.h (internal_warning, internal_vwarning): Declare.
4284 * utils.c (struct internal_problem): Define.
4285 (internal_vproblem): New function.
4286 (internal_warning): New function.
4287 (internal_vwarning): New function.
4288 (internal_warning_problem, internal_error_problem): New variables.
4289 (internal_verror): Just call internal_vproblem.
4291 2002-09-18 Michael Snyder <msnyder@redhat.com>
4293 * objc-lang.c: New file, support for Objective-C.
4294 Preliminary check-in, not yet integrated into gdb.
4295 * objc-lang.h: New file.
4296 * objc-exp.y: New file.
4298 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4300 * infrun.c (signal_stop_update): Convert definition to ISO C.
4301 (signal_print_update): Ditto.
4302 (signal_pass_update): Ditto.
4303 * inflow.c (terminal_save_ours): Ditto.
4305 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4308 * config/djgpp/fnchange.lst: Handle name clashes between
4309 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4312 * i386-linux-tdep.h: Fix tipo.
4314 2002-09-18 Adam Fedor <fedor@gnu.org>
4316 * MAINTAINERS: Add myself to the Write After Approval list.
4318 2002-09-18 Jim Blandy <jimb@redhat.com>
4320 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4321 texthigh and textlow to reader-specific structs caused
4322 objfile_relocate to miss them. This is fixable, but the work that
4323 the change was supposed to prepare GDB for never got done anyway.
4325 2002-09-18 David Carlton <carlton@math.stanford.edu>
4327 * MAINTAINERS: Alphabetize Write After Approval list.
4329 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4332 * values.c (value_static_field): Call read_var_value.
4334 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4336 * valops.c (hand_function_call): Align the initial stack pointer
4337 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4338 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4340 * mips-tdep.c (mips_frame_align): New function.
4341 (mips_gdbarch_init): Set frame_align.
4342 * gdbarch.sh (FRAME_ALIGN): New method.
4343 * gdbarch.h, gdbarch.c: Re-generate.
4345 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4347 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4350 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4352 * NEWS: Mention that MIPS $fp behavior changed.
4353 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4354 reference to FP_REGNUM.
4355 (mipsnbsd_cannot_store_register): Ditto.
4356 * mips-linux-nat.c: Update copyright.
4357 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4358 (mips_linux_cannot_store_register): Ditto.
4359 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4360 * config/mips/tm-mips.h: Update copyright.
4361 (FP_REGNUM): Delete macro.
4362 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4363 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4364 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4365 (mips_r3041_reg_names, mips_r3051_reg_names)
4366 (mips_r3081_reg_names): Replace "fp" with "".
4369 2002-09-17 Theodore A. Roth <troth@verinet.com>
4371 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4372 generic_read_register_dummy() (PR gdb/703).
4373 (avr_push_return_address): #if 0 out unused vars.
4374 (avr_gdbarch_init): Enable use of avr_push_return_address().
4376 2002-09-17 Michael Snyder <msnyder@redhat.com>
4378 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4379 RTE will take care of it.
4381 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4383 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4384 invalid, return SP_REGNUM.
4386 2002-09-17 Michael Snyder <msnyder@redhat.com>
4388 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4389 point registers without sign extension.
4391 2002-09-17 Andrew Cagney <cagney@redhat.com>
4393 * blockframe.c (deprecated_read_register_dummy): Rename
4394 generic_read_register_dummy.
4395 * frame.c (frame_unwind_signed_register): New function.
4396 (frame_unwind_unsigned_register): New function.
4397 * frame.h (frame_unwind_signed_register): Declare.
4398 (frame_unwind_unsigned_register): Declare.
4399 (deprecated_read_register_dummy): Rename
4400 generic_read_register_dummy.
4402 * h8300-tdep.c (h8300_frame_chain): Update.
4403 (h8300_frame_saved_pc): Update.
4404 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4405 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4406 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4407 (s390_frame_chain): Update.
4408 * v850-tdep.c (v850_find_callers_reg): Update.
4409 (v850_frame_saved_pc): Update.
4410 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4411 (m32r_find_callers_reg): Update.
4412 (m32r_frame_saved_pc): Update.
4413 * sh-tdep.c (sh_find_callers_reg): Update.
4414 (sh64_get_saved_pr): Update.
4415 (sh_init_extra_frame_info): Update.
4416 (sh_init_extra_frame_info): Update.
4417 (sh64_init_extra_frame_info): Update.
4418 (sh64_init_extra_frame_info): Update.
4419 * mcore-tdep.c (mcore_find_callers_reg): Update.
4420 (mcore_frame_saved_pc): Update.
4421 (mcore_init_extra_frame_info): Update.
4422 * i386-tdep.c (i386_frame_saved_pc): Update.
4423 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4424 (ia64_init_extra_frame_info): Update.
4425 (ia64_init_extra_frame_info): Update.
4426 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4427 * cris-tdep.c (cris_init_extra_frame_info): Update.
4428 * avr-tdep.c (avr_frame_chain): Update.
4429 (avr_init_extra_frame_info): Update.
4430 (avr_frame_saved_pc): Update.
4431 * arm-tdep.c (arm_find_callers_reg): Update.
4432 (arm_init_extra_frame_info): Update.
4433 (arm_frame_saved_pc): Update.
4435 2002-09-17 Tom Tromey <tromey@redhat.com>
4437 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4440 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4442 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4443 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4445 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4448 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4450 * osfsolib.c: Remove file, replaced by solib-osf.c.
4451 * Makefile.in: Remove compilation rules for osfsolib.c.
4453 2002-09-16 David Carlton <carlton@math.stanford.edu>
4455 * cp-valprint.c (cp_print_class_method): Correct args to
4456 check_stub_method_group.
4458 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4460 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4461 `set architecture'. Unify naming convention of functions.
4462 (h8300_skip_prologue): Improve prologue analysis.
4463 (h8300_push_arguments): Rewritten to more closely match GCC's
4464 bizarre argument-passing behavior, along with the comment describing
4466 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4467 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4468 sim, remote-e7000.c, remote-hms.c and remote.c
4470 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4472 * i386-tdep.c (gdb_print_insn_i386): Removed.
4473 (i386_print_insn): New function.
4474 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4475 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4478 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4480 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4483 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4485 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4486 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4487 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4489 2002-09-13 Christopher Faylor <cgf@redhat.com>
4491 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4493 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4495 * gdbtypes.c (check_stub_method): Make static.
4496 (check_stub_method_group): New function.
4497 * gdbtypes.h: Update prototypes.
4498 * cp-support.c: New file.
4499 * cp-support.h: New file.
4501 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4502 (update_method_name_from_physname): New function.
4503 (read_member_functions): Correct method names for operators
4504 and v3 constructors/destructors. Separate v2 constructors and
4506 * Makefile.in (stabsread.o): Update dependencies.
4507 (SFILES): Add cp-support.c.
4508 (COMMON_OBS): Add cp-support.o.
4509 (cp_support_h, cp-support.o): Add.
4511 * cp-valprint.c (cp_print_class_method): Call
4512 check_stub_method_group instead of check_stub_method. Remove
4514 * p-valprint.c (pascal_object_print_class_method): Likewise.
4515 * valops.c (search_struct_method): Likewise.
4516 (find_method_list, value_struct_elt_for_reference): Likewise.
4518 2002-09-13 Andrew Cagney <cagney@redhat.com>
4520 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4521 * gdbarch.h, gdbarch.c: Regenerate.
4523 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4525 * frame.c (find_saved_register): Delete function.
4526 * frame.h (find_saved_register): Delete declaration.
4529 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4531 * mips-tdep.c (read_next_frame_reg): Re-hack using
4532 frame_register_unwind.
4534 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4536 * mips-tdep.c (mips_get_saved_register): Re-hack using
4537 frame_register_unwind.
4539 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4541 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4542 vector. Will be useful for Interix.
4543 * gdbarch.h, gdbarch.c: Regenerate.
4545 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4546 name of the malloc function by NAME_OF_MALLOC.
4548 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4550 * value.h (find_function_in_inferior): Add const keyword to
4551 one of the parameters. Allows us to invoke this function with
4553 * valops.c (find_function_in_inferior): Likewise.
4555 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4557 * exec.c (xfer_memory): Fix compilation warning with old versions
4559 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4561 2002-09-12 David Carlton <carlton@math.stanford.edu>
4563 * symtab.h: Run through gdb_indent.h.
4564 Add 2002 to Copyright year list.
4566 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4568 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4570 * MAINTAINERS: Add myself to write after approval list.
4572 2002-09-11 J. Brobecker <brobecker@gnat.com>
4574 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4576 2002-09-11 J. Brobecker <brobecker@gnat.com>
4578 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4581 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4583 * procfs.c (do_detach): Clear current signal, not just fault.
4584 Corrects problem with breakpoint trap signal leaking to detached
4587 2002-09-10 Michael Snyder <msnyder@redhat.com>
4589 * buildsym.c (finish_block): Protect against null pointer.
4591 2002-09-10 Andrew Cagney <cagney@redhat.com>
4593 * infcmd.c (default_print_registers_info): Send all output to
4594 ``file'' instead of ``gdb_stdout''.
4596 2002-09-10 Michael Snyder <msnyder@redhat.com>
4598 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4599 LONGEST, and use signed register read (addresses are sign-
4602 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4604 * event-loop.c (gdb_do_one_event): Make public.
4605 * event-loop.h (gdb_do_one_event): Declare.
4607 2002-09-10 Jeff Law <law@redhat.com>
4609 * infttrace.c (child_resume): Simplify and rework to avoid
4612 2002-09-09 Fred Fish <fnf@intrinsity.com>
4614 * printcmd.c (print_scalar_formatted): "len" is the number of
4615 target bytes, NOT the number of target bits.
4617 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4619 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4620 * top.c (init_main): Set rl_terminal_name.
4622 2002-09-08 Aidan Skinner <aidan@velvet.net>
4624 * ada-lang.c (ada_array_bound, ada_type_match,
4625 _initialize_ada_language): Fix K&R definitions.
4626 * ada-tasks.c (get_current_task): Fix K&R definitions.
4627 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4629 2002-09-07 Christopher Faylor <cgf@redhat.com>
4631 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4634 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4636 * i386-tdep.c (i386_register_virtual_type,
4637 i386_register_convertible, i386_register_convert_to_virtual,
4638 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4639 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4640 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4641 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4642 Don't set push_arguments twice.
4644 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4645 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4646 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4647 sigtramp_end to NULL.
4648 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4650 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4652 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4655 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4656 * gdbarch.h, gdbarch.c: Re-generate.
4657 * blockframe.c (find_pc_sect_partial_function): Convert to use
4658 SIGTRAMP_START_P predicate.
4660 2002-09-05 Michael Snyder <msnyder@redhat.com>
4662 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4663 generic_dummy_frame method and old method. Also distinguish
4664 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4665 (arm_extract_return_value): Use new regcache method.
4667 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4668 adjustment that doesn't conform to the ABI.
4669 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4670 saved regcache, not from current regcache.
4672 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4674 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4677 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4679 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4680 if arm_apcs_32 is false.
4682 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4684 GDB 5.3 branch created.
4686 2002-09-03 Theodore A. Roth <troth@verinet.com>
4688 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4689 generic_unwind_get_saved_register.
4691 2002-09-03 David Carlton <carlton@math.stanford.edu>
4693 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4694 argument (PR gdb/653). Update call to smash_to_method_type.
4695 (read_structure_scope): Update call to dwarf2_add_member_fn.
4697 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4699 * x86-64-linux-tdep.c: Include gdb_string.h
4700 * x86-64-linux-nat.c: Ditto.
4702 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4704 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4705 when YYDEBUG is set to 1.
4706 * c-exp.y: Likewise.
4707 * f-exp.y: Likewise.
4708 * jv-exp.y: Likewise.
4709 * m2-exp.y: Likewise.
4710 * p-exp.y: Likewise.
4712 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4714 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4716 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4717 solib_svr4_fetch_link_map_offsets to
4718 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4719 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4720 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4721 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4722 solib-svr4.o, and solib-legacy.o.
4723 * config/i386/tm-nbsd.h: Include solib.h.
4725 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4727 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4728 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4729 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4730 comment noting that this needs its own target configuration.
4731 * config/i386/nbsd.mt: New file.
4732 * config/i386/nbsdaout.mt: Remove.
4733 * config/i386/nbsdelf.mt: Ditto.
4734 * config/i386/tm-nbsdaout.h: Ditto.
4736 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4738 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4739 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4740 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4742 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4743 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4744 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4746 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4748 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4749 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4750 * i386-tdep.h (i386bsd_init_abi): New prototype.
4751 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4752 function declaration.
4753 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4754 for NetBSD-a.out or NetBSD-ELF.
4755 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4756 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4757 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4758 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4760 (i386nbsd_pc_in_sigtramp): New function.
4761 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4762 i386nbsd_pc_in_sigtramp.
4763 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4764 and i386nbsdelf_init_abi OS ABI handlers.
4765 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4766 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4768 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4770 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4771 registers if the target really has them.
4773 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4775 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4778 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4780 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4782 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4783 (alphanbsd_skip_sigtramp_frame): New functions.
4784 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4785 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4786 to alphanbsd_sigcontext_addr.
4788 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4790 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4792 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4793 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4794 nbsd_pc_in_sigtramp.
4795 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4796 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4797 * nbsd-tdep.c: Include gdb_string.h.
4798 (nbsd_pc_in_sigtramp): New function.
4799 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4800 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4801 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4802 ppcnbsd_pc_in_sigtramp.
4803 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4804 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4805 shnbsd_pc_in_sigtramp.
4806 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4807 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4808 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4810 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4812 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4813 watchpoints to NULL.
4814 (insert_breakpoints): set val field of watchpoints if NULL.
4817 2002-08-29 Jim Blandy <jimb@redhat.com>
4819 * symtab.c (lookup_symbol_aux): In the cases where we find a
4820 minimal symbol of an appropriate name and use its address to
4821 select a symtab to read and search, use `name' (as passed to us)
4822 as the demangled name when searching the symtab's global and
4823 static blocks, not the minsym's name.
4825 2002-08-29 Keith Seitz <keiths@redhat.com>
4827 * stack.c (print_frame_info_base): Always set current_source_symtab
4828 and current_source_line.
4830 2002-08-29 Donn Terry <donnte@microsoft.com>
4832 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4834 2002-08-28 Keith Seitz <keiths@redhat.com>
4836 * stack.c (select_frame): Add FIXME concerning selected-frame
4838 (select_frame_command): Send selected-frame-level-changed
4839 event notification, but only if the level actually changed.
4840 (up_silently_base): Add selected-frame-level-changed event
4842 (down_silently_base): Likewise.
4844 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4846 * Makefile.in: Update dependencies for all gdb/*.c files.
4848 2002-08-27 Tom Tromey <tromey@redhat.com>
4850 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4851 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4852 Update dependencies.
4853 * i387-tdep.c: Include gdb_string.h.
4854 * osabi.c: Likewise.
4855 * i386-linux-nat.c: Likewise.
4856 * lin-lwp.c: Likewise.
4857 * ax-gdb.c: Likewise.
4858 * signals/signals.c: Likewise.
4859 * jv-valprint.c: Likewise.
4860 * p-lang.c: Likewise.
4861 * c-valprint.c: Likewise.
4862 * cp-abi.c: Likewise.
4864 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4866 * cli/cli-script.h (copy_command_lines): Export.
4867 * breakpoint.c: Include cli/cli-script.h.
4868 * Makefile.in (breakpoint.o): Update dependencies.
4870 2002-08-26 Michael Snyder <msnyder@redhat.com>
4872 * breakpoint.c (insert_breakpoints): Protect all references
4873 to 'process_warning'. Shorten long lines.
4875 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4877 * cli/cli-script.c (copy_command_lines): New function.
4878 * defs.h (copy_command_lines): Export.
4879 * testsuite/gdb.base/commands.exp: New tests for commands
4880 attached to a temporary breakpoint, and for commands that
4881 delete the breakpoint they are attached to.
4883 2002-08-26 Michael Snyder <msnyder@redhat.com>
4885 * breakpoint.c (bpstat_stop_status): Instead of copying the
4886 pointer to the breakpoint commands struct, make a new copy
4887 of the struct and point to that.
4888 (bpstat_clear): Free the commands struct.
4889 (bpstat_clear_actions): Free the commands struct.
4890 (bpstat_do_actions): Free the command actions. Also execute
4891 the local cleanups, instead of deleting them.
4892 (delete_breakpoint): Leave the commands field of the bpstat
4893 chain alone -- it will be freed later.
4895 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4897 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4898 deleted in 2002-08-20 commit. This function is still used by
4901 2002-08-26 Keith Seitz <keiths@redhat.com>
4903 * gdb-events.sh: Add selected-frame-level-changed event.
4904 * gdb-events.c: Regenerated.
4905 * gdb-events.h: Regenerated.
4907 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4910 * inflow.c (terminal_save_ours): New function to save terminal
4912 * inferior.h (terminal_save_ours): Declare.
4913 * target.c (debug_to_terminal_save_ours): New function.
4914 (cleanup_target): Defaults to_terminal_save_ours.
4915 (update_current_target): Inherit to_terminal_save_ours.
4916 (setup_target_debug): Set to_terminal_save_ours.
4917 * target.h (target_terminal_save_ours): New to save terminal settings.
4918 (target_ops): New member to_terminal_save_ours.
4919 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4920 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4921 * inftarg.c (init_child_ops): Likewise.
4922 * m3-nat.c (init_m3_ops): Likewise.
4923 * procfs.c (init_procfs_ops): Likewise.
4924 * wince.c (init_child_ops): Likewise.
4925 * win32-nat.c (init_child_ops): Likewise.
4926 * sol-thread.c (init_sol_thread_ops): Likewise.
4928 2002-08-26 Mark Kettenis <kettenis@gnu.org>
4930 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4931 use regcache_* functions.
4932 (i386_gdbarch_init): Set store_return_value instead of
4933 deprecated_store_return_value.
4935 * regcache.c (regcache_raw_write_signed,
4936 regcache_raw_write_unsigned): New functions.
4937 * regcache.h (regcache_raw_write_signed,
4938 regcache_raw_write_unsigned): New prototypes.
4940 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4942 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4943 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4944 source file dependencies. Cleanup corresponding generator rules.
4946 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4948 * regcache.h (register_offset_hack): Declare.
4949 (regcache_cooked_read_using_offset_hack): Declare.
4950 (regcache_cooked_write_using_offset_hack): Declare.
4952 * regcache.c (register_offset_hack): New function.
4953 (regcache_cooked_read_using_offset_hack): New function.
4954 (regcache_cooked_write_using_offset_hack): New function.
4955 (regcache_dump): Check that the registers, according to their
4956 offset, are packed hard against each other.
4957 (cooked_xfer_using_offset_hack): New function.
4959 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4961 * regcache.c (struct regcache_descr): Add field register_type.
4962 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4964 (init_regcache_descr): Initialize register_type. Pass the descr
4965 to init_legacy_regcache_descr. Use register_type instead of
4966 REGISTER_VIRTUAL_TYPE.
4967 (register_type): New function.
4968 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4969 * regcache.h (register_type): Declare.
4971 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4973 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4974 instead of deprecated_store_return_value. Fix fallout from
4975 2002-08-23 Andrew Cagney <cagney@redhat.com>.
4977 2002-08-25 Andrew Cagney <ac131313@redhat.com>
4979 * regcache.c (max_register_size): New function.
4980 (init_legacy_regcache_descr): Ensure that max_register_size is
4981 large enough for REGISTER_VIRTUAL_SIZE.
4982 * regcache.h (max_register_size): Declare.
4984 2002-08-24 Andrew Cagney <ac131313@redhat.com>
4986 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4988 (e500_extract_return_value): Change type of valbuf pointer to
4991 2002-08-24 Mark Kettenis <kettenis@gnu.org>
4993 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4996 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4997 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4998 long long) to prevent compiler warning on 64-bit systems.
5000 2002-08-23 Andrew Cagney <cagney@redhat.com>
5002 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5003 (DEPRECATED_STORE_RETURN_VALUE): New method.
5004 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5005 * gdbarch.h, gdbarch.c: Re-generate.
5007 * values.c (set_return_value): Pass current_regcache to
5009 * arch-utils.h (legacy_store_return_value): Declare.
5010 * arch-utils.c (legacy_store_return_value): New function.
5011 (legacy_extract_return_value): Update parameters.
5013 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5015 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5016 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5017 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5018 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5019 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5020 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5021 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5022 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5023 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5024 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5027 * i386-tdep.c (i386_extract_return_value): Update.
5028 * arch-utils.c (legacy_extract_return_value): Update.
5029 * frv-tdep.c (frv_gdbarch_init): Update.
5030 * cris-tdep.c (cris_gdbarch_init): Update.
5031 * d10v-tdep.c (d10v_gdbarch_init): Update.
5032 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5033 * m68k-tdep.c (m68k_gdbarch_init): Update.
5034 * mcore-tdep.c (mcore_gdbarch_init): Update.
5035 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5036 * s390-tdep.c (s390_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_gdbarch_init): Update.
5038 * sh-tdep.c (sh_gdbarch_init): Update.
5039 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5040 * v850-tdep.c (v850_gdbarch_init): Update.
5041 * avr-tdep.c (avr_gdbarch_init): Update.
5042 * ia64-tdep.c (ia64_gdbarch_init): Update.
5043 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5044 * vax-tdep.c (vax_gdbarch_init): Update.
5045 * alpha-tdep.c (alpha_gdbarch_init): Update.
5046 * arm-tdep.c (arm_gdbarch_init): Update.
5047 * mips-tdep.c (mips_gdbarch_init): Update.
5048 * i386-tdep.c (i386_gdbarch_init): Update.
5050 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5052 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5053 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5055 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5057 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5060 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5062 * infrun.c (handle_inferior_event): Move a comment outside of a
5063 function call, in order to avoid indent reformatting this part
5064 of the code in an unreadable way.
5066 2002-08-23 Grace Sainsbury <graces@redhat.com>
5068 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5069 when breakpoints fail. Move general breakpoint error messages to
5071 * breakpoint.c (insert_breakpoints): Change warnings when
5072 breakpoints are nto inserted to specify the type. Remove call to
5073 memory_error when hardware breakpoints can't be inserted. Remove
5074 multiple calls to warning so all messages are sent to the user at
5076 (delete_breakpoints): Make insert error messsages more explicit.
5078 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5080 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5081 gdbserver/ChangeLog.
5083 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5085 * i386-tdep.c: Include "objfiles.h".
5086 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5087 skip_trampoline_code.
5088 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5089 (CPLUS_MARKER): Define to '.'.
5091 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5093 (linux_corefile_thread_callback): Increase args->num_notes.
5094 (linux_make_note_section): Initialize thread_args.num_notes, and
5095 use it to determine whether notes for any threads were created.
5097 2002-08-23 Donn Terry <donnte@microsoft.com>
5099 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5100 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5102 (write_with_trace): Conditionalize out the switch branch handling
5103 PCSHOLD if the corresponding macro is not defined. Likewise for
5104 PRSABORT and PRSTOP.
5105 This change will be needed by the Interix port.
5107 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5109 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5110 write_register wherever possible instead of manipulating the
5111 register bytes directly.
5112 Assign VALUE_CONTENTS to a variable and use that.
5113 The GPR numbers are now dependent on the architecture.
5115 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5117 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5119 (skip_prologue): Add support for BookE/e500 instructions.
5120 (e500_extract_return_value): New function.
5121 (frame_get_saved_regs): Add support for saving ev registers and
5123 (e500_store_return_value): New function.
5124 (rs6000_gdbarch_init): Move up default intializations of
5125 deprecated_extract_return_value and store_return_value. Overwrite
5126 init of store_return_value with e500 specific version.
5127 Set extract_return_value for e500.
5129 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5131 * blockframe.c (generic_call_dummy_register_unwind): Use
5132 regcache_cooked_read to catch cases in which the variable is
5133 stored in a pseudo register.
5135 2002-08-22 Andrew Cagney <cagney@redhat.com>
5137 * NEWS: Mention that the i960 has been made obsolete.
5138 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5140 (remote-nrom.o): Obsolete target.
5141 (remote-nindy.o, i960-tdep.o): Ditto.
5142 * remote-nrom.c: Make file obsolete.
5143 * remote-nindy.c, remote-vx960.c: Ditto.
5144 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5145 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5146 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5147 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5148 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5149 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5150 i960-*-vxworks* obsolete.
5151 * MAINTAINERS: Note that the i960 is obsolete.
5153 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5155 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5156 detach to allow reinitialization.
5158 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5160 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5163 2002-08-22 Jim Blandy <jimb@redhat.com>
5165 * coffread.c (coff_symfile_read): Don't try to read the line
5166 number table from disk if the image file doesn't have a symbol
5167 table; we'll never actually look at the info anyway, and Windows
5168 ships DLL's with bogus file offsets for the line number data.
5170 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5172 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5175 2002-08-21 Michael Snyder <msnyder@redhat.com>
5177 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5178 (MSYMBOL_SIZE): Replace macro with function.
5179 (DEFAULT_MIPS_TYPE): Delete unused macro.
5180 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5181 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5183 2002-08-21 Jim Blandy <jimb@redhat.com>
5185 * valops.c (value_cast): Simplify and correct logic for doing a
5186 static cast from a pointer to a base class to a pointer to a
5189 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5191 * infcmd.c (default_print_registers_info): Replace
5193 (registers_info): Use gdbarch_print_registers_info instead of
5195 * inferior.h (default_print_registers_info): Replace
5197 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5198 (DO_REGISTERS_INFO): Change to a predicate function.
5199 * gdbarch.h, gdbarch.c: Regenerate.
5201 2002-08-21 Keith Seitz <keiths@redhat.com>
5203 * gdb-events.sh: Add target-changed event.
5204 * gdb-events.c: Regenerated.
5205 * gdb-events.c: Regenerated.
5206 * valops.c (value_assign): Add target-changed event notification
5207 to inlval_register, lval_memory, and lval_reg_frame_relative.
5209 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5211 * NEWS: Add an entry regarding the improvement of the next/step
5212 operation on Alpha Tru64 multi-processor machines.
5214 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5216 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5218 * Makefile.in: Update all _h macro definitions.
5219 * Makefile.in (install-gdbtk): Move to install section.
5220 (rdi-share/libangsd.a): Move to end of file.
5222 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5224 * frame.c (frame_register_unwind): When a register, set addrp to
5225 the register's byte.
5227 2002-08-20 Michael Snyder <msnyder@redhat.com>
5229 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5230 used locally, so move them from the target machine header to here.
5231 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5232 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5234 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5236 2002-08-20 Andrew Cagney <cagney@redhat.com>
5238 * NEWS: Mention that the Apollo line was made obsolete.
5239 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5240 m68*-hp-hpux* obsolete.
5241 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5242 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5243 * buildsym.c (make_blockvector): Make static.
5244 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5245 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5246 (ALLDEPFILES): Remove dstread.c.
5247 (dstread.o): Obsolete make rule.
5248 * dstread.c: Makefile obsolete.
5250 * config/m68k/hp300hpux.mt: Ditto.
5251 * config/m68k/hp300hpux.mh: Ditto.
5252 * config/m68k/hp300bsd.mt: Ditto.
5253 * config/m68k/hp300bsd.mh: Ditto.
5254 * config/m68k/apollo68b.mt: Ditto.
5255 * config/m68k/apollo68v.mh: Ditto.
5256 * config/m68k/apollo68b.mh: Ditto.
5258 2002-08-20 Michael Snyder <msnyder@redhat.com>
5260 * mips-tdep.c (mips_in_return_stub): Make static.
5261 (mips_gdbarch_init): Set in_solib_return_trampoline.
5262 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5264 2002-08-20 Michael Snyder <msnyder@redhat.com>
5266 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5267 * gdbarch.c, gdbarch.h: Regenerate.
5268 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5270 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5272 2002-08-20 Michael Snyder <msnyder@redhat.com>
5274 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5275 (mips_gdbarch_init): Set skip_trampoline_code,
5276 in_solib_call_trampoline.
5277 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5278 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5280 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5282 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5284 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5285 vector type for ev registers.
5286 (e500_pseudo_register_read): New function.
5287 (e500_pseudo_register_write): New function.
5288 (e500_dwarf2_reg_to_regnum): New function.
5289 (PPC_UISA_NOFP_SPRS): New macro.
5290 (PPC_EV_REGS): New macro.
5291 (PPC_GPRS_PSEUDO_REGS): New macro.
5292 (registers_e500): New register set for e500.
5293 (variants): Add e500 variant.
5294 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5295 before setting architectural dependent variations. Initialize ev
5296 registers numbers. Add case for e500 architecture. Set the
5297 number of pseudo registers.
5299 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5301 * rs6000-tdep.c: Clean up comments.
5303 2002-08-20 Andrew Cagney <cagney@redhat.com>
5305 * h8300-tdep.c: Re-indent file.
5307 2002-08-20 Jim Blandy <jimb@redhat.com>
5309 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5312 2002-08-20 Keith Seitz <keiths@redhat.com>
5314 * breakpoints.c (watch_command_1): Use internal breakpoint
5315 when setting a watchpoint_scope breakpoint.
5317 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5319 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5320 (build_builtin_type_vec64i): Ditto.
5321 (build_builtin_type_vec128): Ditto.
5322 (build_builtin_type_vec128i): Ditto.
5324 2002-08-19 Michael Snyder <msnyder@redhat.com>
5326 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5327 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5328 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5329 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5330 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5331 CALL_DUMMY_ADDRESS): Delete.
5332 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5333 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5334 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5335 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5336 push_return_address.
5337 (mips_register_raw_size, mips_eabi_use_struct_convention,
5338 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5339 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5340 mips_init_extra_frame_info, mips_eabi_push_arguments,
5341 mips_n32n64_push_arguments, mips_push_return_address,
5342 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5343 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5345 2002-08-19 Michael Snyder <msnyder@redhat.com>
5347 * mips-tdep.c (mips_frame_num_args): New function.
5348 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5349 frame_saved_pc, frame_args_address, frame_locals_address,
5350 frame_num_args, and frame_args_skip.
5351 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5352 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5353 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5354 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5356 2002-08-20 Michael Snyder <msnyder@redhat.com>
5358 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5359 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5360 * mips-tdep.c (mips_store_struct_return): New function.
5361 (mips_extract_struct_value_address): New function.
5362 (mips_gdbarch_init): Set store_struct_return and
5363 extract_struct_value_address.
5365 2002-08-20 David Carlton <carlton@math.stanford.edu>
5367 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5368 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5369 (read_file_scope): Check that line_header is nonzero before
5370 decoding macro information.
5372 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5374 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5375 flag the general-purpose registers as floating-point on targets
5376 that don't support the floating-point registers.
5378 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5380 * rs6000-tdep.c (altivec_register_p): Delete.
5381 (rs6000_do_altivec_registers): Delete.
5382 (rs6000_altivec_registers_info): Delete.
5383 (rs6000_do_registers_info): Delete.
5384 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5385 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5387 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5389 * infcmd.c (do_registers_info): Print vector registers in hex
5391 (print_vector_info): Check that printing registers
5393 (print_float_info): Ditto.
5395 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5397 * mips-tdep.c (mips_gdbarch_init): Update.
5398 (mips_o32_extract_return_value): Rewrite.
5399 (mips_o32_store_return_value): Rewrite.
5400 (mips_o32_xfer_return_value): New function.
5401 (mips_xfer_register): Tweak debug print message. Allow for
5402 buf_offset when dumping the value transfered.
5404 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5406 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5407 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5408 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5409 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5410 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5412 2002-08-14 Michael Snyder <msnyder@redhat.com>
5414 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5416 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5418 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5420 (P): New macro to define a register as a pseudo register.
5421 (R, R4, R8, R16, FR32, R64, R0): Updated.
5422 (struct variant): Add new fields for number of pseudo registers
5423 and number of total registers.
5424 (tot_num_registers): New macro replacing....
5425 (num_registers): ...deleted macro.
5426 (num_registers): New function.
5427 (num_pseudo_registers): New function.
5428 (variants): Update all variants to intialize new fields correctly.
5429 Postpone initialization of number of pseudo regs and real regs.
5430 (init_variants): New function.
5431 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5434 2002-08-19 David Carlton <carlton@math.stanford.edu>
5436 * valops.c (search_struct_field): Change error message to treat
5437 return value of 0 from value_static_field as meaning that field is
5439 (value_struct_elt_for_reference): Ditto.
5440 * values.c (value_static_field): Treat an unresolved location the
5441 same as a nonexistent symbol. Fix PR gdb/635.
5442 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5443 enclosed. Fix PR gdb/574.
5444 * MAINTAINERS: Add self to Write After Approval list.
5446 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5448 * mips-tdep.c (mips_xfer_register): New function.
5449 (mips_n32n64_extract_return_value): Rewrite.
5450 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5451 instead of deprecated_extract_return_value.
5453 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5455 * rs6000-tdep.c (TDEP): Delete macro.
5456 (branch_dest): Replace use of TDEP macro with its body.
5457 (rs6000_pop_frame): Ditto.
5458 (rs6000_push_arguments): Ditto.
5459 (rs6000_skip_trampoline_code): Ditto.
5460 (rs6000_frame_saved_pc): Ditto.
5461 (rs6000_frame_chain): Ditto.
5462 (rs6000_register_name): Ditto.
5463 (rs6000_register_byte): Ditto.
5464 (rs6000_register_raw_size): Ditto.
5465 (rs6000_register_virtual_type): Ditto.
5466 (rs6000_register_convertible): Ditto.
5467 (rs6000_convert_from_func_ptr_addr): Ditto.
5469 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5471 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5473 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5474 MIPS_LINUX_JB_ELEMENT_SIZE.
5475 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5476 for MAX_REGISTER_RAW_SIZE arrays.
5477 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5478 MIPS_LINUX_JB_ELEMENT_SIZE.
5480 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5482 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5484 2002-08-19 Aidan Skinner <aidan@velvet.net>
5486 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5487 ada-valprint.c ada-tasks.c.
5488 (YYFILES): Add ada-exp.y.
5489 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5490 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5491 (ada-exp.tab.o): New target.
5493 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5495 * regcache.c (regcache_xfer_part): New function.
5496 (regcache_raw_read_part): New function.
5497 (regcache_raw_write_part): New function.
5498 (regcache_cooked_read_part): New function.
5499 (regcache_cooked_write_part): New function.
5500 * regcache.h (regcache_raw_read_part): Declare.
5501 (regcache_raw_write_part): Declare.
5502 (regcache_cooked_read_part): Declare.
5503 (regcache_cooked_write_part): Declare.
5505 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5507 * remote.c (remote_open_1): Add async_p.
5508 (remote_async_open_1): Delete.
5509 (open_remote_target): Delete.
5510 (remote_open, extended_remote_open): Update calls to remote_open_1.
5511 (remote_async_open, extended_remote_async_open): Call
5512 remote_open_1 instead of remote_async_open_1.
5514 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5516 * blockframe.c: Fix a few coding standard violations.
5518 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5520 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5522 * config/i386/tm-i386sco5.h: ... here. File removed.
5523 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5525 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5526 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5527 (TM_FILE): Set to tm-i386.h.
5528 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5529 * config/i386/tm-i386v.h: Remove file.
5530 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5531 instead of "i386/tm-i386v.h".
5532 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5533 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5535 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5536 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5539 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5541 * config/i386/nm-i386v.h: Add protection against
5543 (i386_register_u_addr): Remove prototype.
5544 (register_u_addr): New prototype.
5545 (REGISTER_U_ADDR): Redefine accordingly.
5546 * i386v-nat.c: Improve several comments.
5547 (i386_register_u_addr): Change signature and rename to
5548 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5551 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5553 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5554 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5555 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5556 deprecated_extract_return_value.
5557 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5558 rename mips_o32o64_push_arguments.
5559 (mips_gdbarch_init): Update.
5560 (mips_extract_return_value): Delete.
5561 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5562 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5563 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5564 (mips_n32n64_extract_return_value): Clone
5565 mips_extract_return_value.
5566 (mips_store_return_value): Delete.
5567 (mips_o32_store_return_value): Clone mips_store_return_value.
5568 (mips_o64_store_return_value): Clone mips_store_return_value.
5569 (mips_eabi_store_return_value): Clone mips_store_return_value.
5570 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5572 2002-08-18 Aidan Skinner <aidan@velvet.net>
5574 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5575 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5577 2002-08-18 Aidan Skinner <aidan@velvet.net>
5579 * ada-lang.c: Run through gdb_indent.sh.
5580 * ada-lang.h: Run through gdb_indent.sh.
5581 * ada-tasks.c: Run through gdb_indent.sh.
5582 * ada-typeprint.c: Run through gdb_indent.sh.
5583 * ada-valprint.c: Run through gdb_indent.sh.
5585 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5587 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5590 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5592 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5594 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5595 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5597 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5598 write_register_gen instead of write_register_bytes.
5600 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5601 i[3456]-*-osf1mk* configurations have been made obsolete.
5602 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5603 i[3456]86-*-osf1mk* hosts obsolete.
5604 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5606 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5607 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5608 config/i386/i386m3.mt, config/i386/nm-m3.h,
5609 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5610 config/i386/i386mk.mh, config/i386/i386mk.mt,
5611 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5613 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5614 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5615 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5617 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5619 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5620 (hppa_value_returned_from_stack): Declare.
5621 (hppa_extract_return_value): Declare.
5622 * config/pa/hppa.mt: New file.
5623 * configure.tgt: Recognize hppa*-*-*.
5624 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5626 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5628 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5631 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5633 * top.c (gdb_rl_operate_and_get_next): Make sure
5634 operate-and-get-next functions correctly even when the history
5635 list is completely filled.
5637 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5639 * MAINTAINERS (Target Instruction Set Architectures): Rename
5640 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5641 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5642 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5643 already listed under Host/Native.
5645 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5646 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5649 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5651 * config/ia64/ia64.mt: New file.
5652 * config/alpha/alpha.mt: New file.
5653 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5654 ia64-linux-gnu. Mention that ia64-elf is broken.
5655 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5657 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5659 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5660 generic_func_frame_valid instead of func_frame_valid.
5662 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5664 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5665 procfs appears to be broken when debugging on multi-processor
5666 machines. So enable software single stepping in order to avoid
5667 using the procfs interface to do next/step operations, using
5668 internal breakpoints instead.
5670 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5671 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5672 make this pc address equal to the value it would have if the
5673 system stepping capability was used. Also set a new flag used
5674 to ensure that we don't readjust the PC one more time later.
5676 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5677 address by DECR_PC_AFTER_BREAK when software single step is
5678 in use for this architecture, as this has already been taken
5679 care of in handle_inferior_event().
5681 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5683 * infrun.c (handle_inferior_event): Minor reformatting, to make
5684 a rather long condition expression easier to read.
5686 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5688 * Makefile.in (gdbtk.o): Move to end of file.
5689 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5690 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5691 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5692 (gdbtk-wrapper.o, gdbres.o): Ditto.
5694 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5696 * Makefile.in (copying.o): Separate out compile rule.
5697 (hpux-thread.o, procfs.o, signals.o): Ditto.
5698 (v850ice.o, z8k-tdep.o): Ditto.
5699 (tui-file.o): Move to TUI section.
5700 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5701 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5703 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5705 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5706 skip_trampoline_code, for better namespace-proofing.
5708 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5710 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5712 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5714 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5716 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5717 signal, check whether we hit a breakpoint before checking for a
5718 single step breakpoint. Otherwise, GDB fails to notice that a
5719 breakpoint has been hit when stepping onto a breakpoint.
5721 2002-08-16 Keith Seitz <keiths@redhat.com>
5723 * gdb-events.sh (clear_gdb_event_hooks): New function.
5724 * gdb-events.c: Regenerate.
5725 * gdb-events.h: Regenerate.
5727 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5729 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5730 not_a_sw_breakpoint.
5731 * breakpoint.h (bpstat_stop_status): Add parameter names.
5733 2002-08-16 Grace Sainsbury <graces@redhat.com>
5735 * remote.c (remote_insert_hw_breakpoint)
5736 (remote_remove_hw_breakpoint): Fix calculation of length field
5739 2002-08-15 Michael Snyder <msnyder@redhat.com>
5741 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5742 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5743 (supply_fpregset): Ditto.
5745 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5746 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5747 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5748 (TARGET_READ_SP): Delete.
5749 (DO_REGISTERS_INFO): Delete.
5750 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5752 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5753 from macros to functions.
5755 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5756 (mips_register_convertible, mips_register_convert_to_virtual,
5757 mips_register_convert_to_raw): Make static.
5758 (mips_read_sp): New function.
5759 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5760 (mips_do_registers_info): Make static.
5761 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5762 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5763 (mips_register_convert_from_type, mips_register_convert_to_type):
5765 (mips_gdbarch_init): Set up function_start_offset,
5766 register_virtual_size, pc_in_sigtramp.
5768 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5770 * infcmd.c (vector_info): New function.
5771 (_initialize_infcmd): Add command "info vector".
5772 (print_vector_info): New function.
5774 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5775 * gdbarch.h, gdbarch.c: Regenerate.
5777 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5779 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5780 ``print_all''. Only print vector registers when ``print_all''.
5782 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5784 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5785 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5787 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5788 Add `args' parameter.
5789 * gdbarch.h, gdbarch.c: Regenerate.
5791 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5793 * infcmd.c (float_info): Call print_float_info.
5794 (print_float_info): New function. By default, print the
5795 floating-point registers.
5797 * arch-utils.h (default_print_float_info): Delete declaration.
5798 * arch-utils.c (default_print_float_info): Delete function.
5800 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5802 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5805 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5808 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5809 * configure.host: Make i[3456]86-*-aix host obsolete.
5810 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5811 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5812 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5813 config/i386/xm-i386aix.h: Make files obsolete.
5814 * i386aix-nat.c: Make file obsolete.
5815 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5816 (i386aix-nat.o): Make target obsolete.
5818 * config/i386/nm-gnu.h: Removed.
5819 * config/i386/nm-i386gnu.h: New file.
5820 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5821 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5823 * config/i386/tm-i386gnu.h: ... here. Removed.
5824 * config/i386/xm-i386gnu.h: Removed.
5825 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5826 (NAT_FILE): Set to nm-i386gnu.h.
5827 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5828 * i386-tdep.c: New file.
5829 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5830 (i386gnu-tdep.o): Specify dependencies.
5832 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5834 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5835 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5836 Adjust a few comments to reflect reality a bit closer.
5837 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5838 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5839 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5840 target_insert_watchpoint, target_remove_watchpoint):
5842 * config/i386/nm-i386sco5.h: ... here.
5843 (kernel_u_size): Add prototype. Improve a few comments and add
5844 protection against multiple inclusion.
5846 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5849 * uw-thread.c (SP_ARG0): Define if not already defined.
5850 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5852 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5854 * config/i386/tm-i386.h: Don't include "regcache.h".
5856 * i387-tdep.h (i387_print_float_info): New prototype.
5857 * i387-tdep.c (print_i387_value, print_i387_ext,
5858 print_i387_status_word, print_i387_control_word): Add `struct
5859 ui_file *' argument and use it for output.
5860 (i387_print_float_info): Renamed from i387_float_info. Add
5861 `struct gdbarch *' and `struct ui_file *' arguments and use the
5863 * i386-tdep.c: Include "i387-tdep.h".
5864 (i386_gdbarch_init): Set print_float_info.
5865 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5866 (FLOAT_INFO): Remove define.
5868 2002-08-13 Michael Snyder <msnyder@redhat.com>
5870 * mips-tdep.c (mips_push_arguments): Rename to
5871 mips_eabi_push_arguments, and tune for EABI.
5872 (MIPS_REGS_HAVE_HOME_P): Delete.
5873 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5874 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5875 Delete references to mips_regs_have_home_p.
5877 2002-08-14 Keith Seitz <keiths@redhat.com>
5879 * Makefile.in (install-gdbtk): Create insight plugin directory.
5880 Install plugins.tcl file.
5882 2002-08-14 Keith Seitz <keiths@redhat.com>
5884 * configure.in: Move SUBDIRS to near top of the file so that
5885 --enable options may add things to it.
5886 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5887 * configure: Regenerate.
5889 2002-08-13 Michael Snyder <msnyder@redhat.com>
5891 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5892 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5893 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5895 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5897 * vax-tdep.c (vax_get_saved_register): Delete function.
5898 (vax_gdbarch_init): Update.
5899 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5900 (ns32k_gdbarch_init): Update.
5901 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5902 (alpha_gdbarch_init): Update.
5904 2002-08-13 Andrew Cagney <cagney@redhat.com>
5906 * regcache.c (init_regcache_descr): Overallocate the
5907 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5908 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5910 (set_register_cached): Add range checking assertions. Use
5913 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5915 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5916 numbers for MMX registers.
5918 2002-08-13 Andrew Cagney <cagney@redhat.com>
5920 * i386-tdep.c (i386_gdbarch_init): Use
5921 generic_unwind_get_saved_register.
5923 2002-08-13 Kevin Buettner <kevinb@redhat.com>
5925 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5926 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5928 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5929 Delete. Add comment regarding this now-deleted target method.
5931 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5933 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5934 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5935 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5936 real PC and the page number (if it's within the memory bank window).
5937 (m68hc11_pseudo_register_write): Likewise when saving.
5938 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5939 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5940 (m68hc11_register_raw_size): And use 32-bit for it.
5941 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5942 16K memory bank is used by the prog; also use the virtual pc.
5944 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5946 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5947 (m68hc11_gdbarch_init): Install it in gdbarch.
5948 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5949 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5950 (MSYMBOL_SIZE): New for documentation.
5951 (insn_return_kind): Enum to specify how a function returns.
5952 (frame_extra_info): Cleanup and record the return mode.
5953 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5954 register in address computation.
5955 (m68hc11_get_return_insn): New to obtain the return instruction used
5957 (m68hc11_frame_init_saved_regs): Take into account the return
5958 instruction used by the function for far and interrupt functions.
5959 (m68hc11_init_extra_frame_info): Take into account page register.
5960 (m68hc11_frame_args_address): Adjust according to the return mode.
5961 (show_regs): Print page register only when it's used.
5963 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
5965 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5966 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5967 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5969 (m68hc11_register_raw_size): Likewise.
5971 2002-08-13 Andrew Cagney <cagney@redhat.com>
5973 * i386-tdep.c (i386_register_name): Handle mmx registers.
5974 (mmx_regnum_p): New function.
5975 (i386_mmx_names): New array.
5976 (mmx_num_regs): New variable.
5977 (i386_pseudo_register_read): New function.
5978 (i386_pseudo_register_write): New function.
5979 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5981 * regcache.c (regcache_raw_read_unsigned): New function.
5982 (regcache_raw_read_signed): New function.
5983 * regcache.h (regcache_raw_read_unsigned): Declare.
5984 (regcache_raw_read_signed): Declare.
5986 2002-08-13 Andrew Cagney <cagney@redhat.com>
5988 * regcache.c (regcache_raw_read_as_address): Delete function.
5989 (regcache_cooked_read_signed): New function.
5990 (regcache_cooked_read_unsigned): New function.
5991 * regcache.h (regcache_cooked_read_signed): Declare.
5992 (regcache_cooked_read_unsigned): Declare.
5993 (regcache_raw_read_as_address): Delete declaration.
5995 * blockframe.c (generic_read_register_dummy): Use
5996 regcache_cooked_read_unsigned.
5997 * i386-tdep.c (i386_extract_struct_value_address): Use
5998 regcache_cooked_read_unsigned.
6000 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6003 double sizes according to ELF ABI flags.
6004 (gdbarch_tdep): Record elf_flags.
6006 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6008 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6009 (m6812_prolog): They can appear in 68HC12 function prologue.
6010 (m68hc11_frame_chain): Cleanup.
6012 2002-08-12 Andrew Cagney <cagney@redhat.com>
6014 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6016 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6017 (i386_linux_register_raw_size): Delete function.
6018 (i386_linux_init_abi): Update.
6019 * i386-tdep.c (i386_register_raw_size): Delete function.
6020 (i386_register_byte): Delete function.
6021 (i386_gdbarch_init): Update.
6022 (i386_register_size): Delete array.
6023 (i386_register_offset): Delete array.
6025 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6026 (REGISTER_RAW_SIZE): Delete macro.
6027 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6028 (REGISTER_BYTE): Delete macro.
6030 2002-08-11 Aidan Skinner <aidan@velvet.net>
6032 * ada-lang.c (ada_lookup_partial_symbol)
6033 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6034 prototype names so that grep ^func works properly.
6036 * ada-lang.c (ada_array_element_type)
6037 (ada_lookup_partial_symbol): Fix typos in parameter list.
6039 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6040 Fix prototype names so that grep ^func works properly.
6042 2002-08-10 Andrew Cagney <cagney@redhat.com>
6043 Elena Zannoni <ezannoni@redhat.com>
6044 Martin M. Hunt <hunt@redhat.com>
6046 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6047 (build_builtin_type_vec128i): Set the vector bit.
6048 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6049 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6050 (build_builtin_type_vec64): New function.
6051 (build_builtin_type_vec64i): New function.
6052 (build_gdbtypes): Initialize builtin_type_vec64 and
6053 builtin_type_vec64i.
6055 2002-08-09 Andrew Cagney <cagney@redhat.com>
6057 * regcache.c (regcache_dump): Compare the register offset
6059 * arch-utils.c (generic_register_byte): New function.
6060 * arch-utils.h (generic_register_byte): Declare.
6061 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6062 * gdbarch.h, gdbarch.c: Regenerate.
6064 2002-08-09 Andrew Cagney <cagney@redhat.com>
6066 * regcache.c: Include "gdbcmd.h"
6067 (_initialize_regcache): Add commands "maintenance print
6068 registers", "maintenance print raw-registers" and "maintenance
6069 print cooked-registers".
6070 (enum regcache_dump_what): Define.
6071 (dump_endian_bytes): New function.
6072 (regcache_dump): New function.
6073 (regcache_print): New function.
6074 (maintenance_print_registers): New function.
6075 (maintenance_print_raw_registers): New function.
6076 (maintenance_print_cooked_registers): New function.
6077 * Makefile.in (regcache.o): Update dependencies.
6079 2002-08-09 Michael Snyder <msnyder@redhat.com>
6081 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6082 (mips_push_arguments): Correct some comments. Use paddr_nz
6083 for printing addresses in debug output. Replace static
6084 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6085 (mips_n32n64_push_arguments): New function, cloned from
6086 mips_push_arguments and tuned for the n32/n64 ABI.
6087 (mips_push_register): Buffer needs dynamic allocation.
6088 (mips_print_register): Ditto.
6089 (do_gp_register_row): Ditto.
6090 (mips_store_return_value): Ditto.
6091 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6093 2002-08-09 Don Howard <dhoward@redhat.com>
6095 * memattr.c (mem_info_command): Print special case of upper bound
6096 as max CORE_ADDR + 1.
6098 2002-08-08 Michael Snyder <msnyder@redhat.com>
6100 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6101 returns structs by ref if they're too big to fit in two registers.
6103 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6105 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6107 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6108 mips_find_saved_regs().
6109 (mips_pop_frame): Likewise.
6111 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6113 * blockframe.c (frame_saved_regs_register_unwind): Revise
6114 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6117 2002-08-09 Grace Sainsbury <graces@redhat.com>
6119 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6120 T-packets; the 'a' is not taken as a register number.
6121 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6122 (remote_stopped_data_address): New functions; add to target
6124 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6125 prototypes to match other implementations of this
6126 function. replace integer argument with pointer -- the length
6127 field in the Z-packet is the length of what is pointed to or 1 if
6128 pointer is null. Add to target vector.
6129 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6133 * remote.c (remote_wait): Add support to extract optional
6134 watchpoint information from T-packet. Ignore unrecognized
6135 optional info in T-packet.
6136 (remote_async_wait): Ditto.
6138 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6140 * cli/cli-dump.c: Change fopen modes to use binary open modes
6141 as defined in include/fopen-bin.h throughout.
6143 2002-08-08 Michael Snyder <msnyder@redhat.com>
6145 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6147 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6149 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6150 assertion failure by returning early after a warning.
6152 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6154 * mips-tdep.c (mips_find_saved_regs): Make static.
6155 (mips_frame_init_saved_regs): New function.
6156 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6157 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6158 (mips_find_saved_regs): Delete declaration.
6160 2002-08-08 Grace Sainsbury <graces@redhat.com>
6162 * remote.c (remote_wait, remote_async_wait): Change
6163 thread_num from int to ULONGEST.
6164 (unpack_varlen_hex): Change result parameter from
6165 int * to ULONGEST *.
6167 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6169 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6170 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6172 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6174 2002-08-08 Andrew Cagney <cagney@redhat.com>
6176 * gcore.c (override_derive_stack_segment): Delete variable.
6177 (preempt_derive_stack_segment): Delete function.
6178 (derive_stack_segment): Delete function.
6179 (default_derive_stack_segment): Renamed to derive_stack_segment.
6180 (override_derive_heap_segment): Delete variable.
6181 (preempt_derive_heap_segment): Delete function.
6182 (derive_heap_segment): Delete function.
6183 (default_derive_heap_segment): Rename to derive_heap_segment.
6185 2002-08-06 Michael Snyder <msnyder@redhat.com>
6187 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6188 * mips-tdep.c (mips_EABI_use_struct_convention,
6189 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6190 New functions. (mips_use_struct_convention): Delete.
6191 (mips_gdbarch_init): set use_gdbarch_convention.
6193 2002-08-06 Michael Snyder <msnyder@redhat.com>
6195 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6196 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6197 mips_o32_reg_struct_has_addr): New functions.
6198 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6200 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6202 * regcache.c (pseudo_register): Delete function.
6203 (fetch_register): Delete function.
6204 (store_register): Delete function.
6205 (regcache_raw_read, legacy_read_register_gen): Use
6206 target_fetch_registers instead of fetch_register.
6207 (legacy_write_register_gen, regcache_raw_write): Use
6208 target_store_register instead of store_register.
6209 (write_register_bytes): Ditto.
6211 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6212 (STORE_PSEUDO_REGISTER): Delete.
6213 * gdbarch.h, gdbarch.c: Regenerate.
6215 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6217 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6218 write dump file binary.
6220 2002-08-05 Michael Snyder <msnyder@redhat.com>
6222 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6223 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6224 (mips_gdbarch_init): Set N32 target to be mips64.
6226 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6228 * frame.c (find_saved_register): Break out of loop once saved
6229 register address is found. Don't mention sparc in loop comment
6232 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6234 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6235 mips_default_saved_regsize to 8.
6237 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6239 * gcore.c: Do not include <sys/procfs.h>.
6240 * Makefile.in (gcore.o): Update dependencies.
6242 2002-08-06 Andrew Cagney <cagney@redhat.com>
6244 * configure.tgt: Make arc-*-* obsolete.
6245 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6246 * MAINTAINERS: Make arc-elf obsolete.
6247 * arc-tdep.c: Make file obsolete.
6248 * config/arc/arc.mt: Ditto.
6249 * config/arc/tm-arc.h: Ditto.
6251 2002-08-05 Theodore A. Roth <troth@verinet.com>
6253 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6255 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6257 * mcore-tdep.c (mcore_gdbarch_init): Use
6258 generic_unwind_get_saved_register instead of
6259 generic_get_saved_register.
6260 * v850-tdep.c (v850_gdbarch_init): Ditto.
6261 * frv-tdep.c (frv_gdbarch_init): Ditto.
6262 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6263 * s390-tdep.c (s390_gdbarch_init): Ditto.
6264 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6265 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6266 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6268 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6270 * objfiles.h: Add missing #include "symfile.h"
6272 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6274 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6276 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6277 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6280 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6282 * NEWS: Cleanup and nitpick.
6284 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6286 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6288 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6290 * Makefile.in (gdbtk-bp.o): Update dependencies.
6291 (gdbtk-register.o): Ditto.
6292 (gdbtk-varobj.o): Ditto.
6294 2002-08-03 Andrew Cagney <cagney@redhat.com>
6296 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6297 m68hc11_fetch_pseudo_register.
6298 (m68hc11_pseudo_register_write): Replace
6299 m68hc11_store_pseudo_register.
6300 (m68hc11_gdbarch_init): Update.
6302 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6304 * gdbarch.sh: Include "gdb_string.h".
6305 * gdbarch.c: Regenerate.
6307 * regcache.c: Include "gdb_string.h".
6308 * ax-general.c: Ditto.
6310 * std-regs.c: Ditto.
6311 * fbsd-proc.c: Ditto.
6314 * Makefile.in (regcache.o): Update dependencies.
6315 (thread.o, gdbarch.o): Ditto.
6316 (ax-general.o, gdbarch.o): Ditto.
6317 (varobj.o, std-regs.o): Ditto.
6318 (fbsd-proc.o): Specify dependencies.
6320 2002-08-02 Andrew Cagney <cagney@redhat.com>
6322 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6324 (regcache_cooked_write): Ditto.
6326 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6328 * regcache.c (regcache_cooked_read): New function.
6329 (regcache_cooked_write): New function.
6330 (read_register_gen): Rewrite using regcache_cooked_read.
6331 (write_register_gen): Rewrite using regcache_cooked_write.
6333 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6336 2002-08-02 Andrew Cagney <cagney@redhat.com>
6338 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6339 Replace the architecture methods register_read and register_write.
6340 * gdbarch.h, gdbarch.c: Regenerate.
6341 * regcache.c (init_regcache_descr): Update.
6342 (read_register_gen): Update.
6343 (write_register_gen): Update.
6344 (supply_register): Update comment.
6346 * sh-tdep.c (sh_gdbarch_init): Update.
6347 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6348 `regcache' and `gdbarch' parameters. Make `buffer' a void
6349 pointer. Update code.
6350 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6351 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6352 void pointer. Update code.
6353 (sh64_register_write): Delete.
6354 (sh4_register_read): Delete.
6355 (sh64_register_read): Delete.
6356 (sh4_register_write): Delete.
6357 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6358 void pointer, `to' parameter a void pointer.
6359 (sh_sh64_register_convert_to_raw): Ditto.
6361 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6363 * mips-tdep.c (mips_register_virtual_type): Use architecture
6364 invariant return values.
6366 2002-08-01 Andrew Cagney <cagney@redhat.com>
6368 * linux-proc.c: Include "gdb_string.h".
6369 * Makefile.in (linux-proc.o): Update dependency list.
6371 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6373 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6376 2002-08-01 Grace Sainsbury <graces@redhat.com>
6378 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6379 to_insert_watchpoint, to_remove_watchpoint,
6380 to_stopped_by_watchpoint, to_stopped_data_address,
6381 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6382 target vecctor. Define their corresponding macros so they call
6385 * target.c: Add default and debug versions of for
6386 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6387 to_insert_watchpoint, to_remove_watchpoint,
6388 to_stopped_by_watchpoint, to_stopped_data_address,
6389 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6391 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6393 * mips-tdep.c (mips_register_virtual_type): New function.
6394 (mips_gdbarch_init): Register mips_register_virtual_type()
6395 with gdbarch machinery.
6396 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6397 this file instead of tm-bigmips.h.
6398 (MIPS_REGSIZE): Delete this macro.
6399 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6400 multiarch version in mips-tdep.c will be found.
6402 2002-08-01 Andrew Cagney <cagney@redhat.com>
6404 * NEWS: Menion that CHILL has been made obsolete.
6406 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6407 * stabsread.c (read_range_type): Ditto.
6408 * gdbtypes.h: Ditto.
6409 * language.c (binop_type_check): Ditto.
6410 (binop_result_type): Ditto.
6411 (integral_type): Ditto.
6412 (character_type): Ditto.
6413 (string_type): Ditto.
6414 (boolean_type): Ditto.
6415 (structured_type): Ditto.
6416 (lang_bool_type): Ditto.
6417 (binop_type_check): Ditto.
6418 * language.h (_LANG_chill): Ditto.
6419 * dwarfread.c (set_cu_language): Ditto.
6420 * dwarfread.c (CHILL_PRODUCER): Ditto.
6421 * dwarfread.c (handle_producer): Ditto.
6422 * expression.h (enum exp_opcode): Ditto.
6423 * eval.c: Ditto for comments.
6424 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6425 * expprint.c (print_subexp): Ditto.
6426 (print_subexp): Ditto.
6427 * valops.c (value_cast): Ditto.
6428 (search_struct_field): Ditto.
6429 * value.h (COERCE_VARYING_ARRAY): Ditto.
6430 * symfile.c (init_filename_language_table): Ditto.
6431 (add_psymbol_with_dem_name_to_list): Ditto.
6432 * valarith.c (value_binop): Ditto.
6434 * valops.c (value_slice): Ditto.
6435 * symtab.h (union language_specific): Ditto.
6436 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6437 (SYMBOL_DEMANGLED_NAME): Ditto.
6438 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6439 * defs.h (enum language): Ditto.
6440 * symtab.c (got_symtab): Ditto.
6441 * utils.c (fprintf_symbol_filtered): Ditto.
6443 * ch-typeprint.c: Make file obsolete.
6444 * ch-valprint.c: Make file obsolete.
6445 * ch-lang.h: Make file obsolete.
6446 * ch-exp.c: Make file obsolete.
6447 * ch-lang.c: Make file obsolete.
6449 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6451 (TARGET_FLAGS_TO_PASS): Ditto.
6452 (CHILLFLAGS): Obsolete.
6454 (CHILL_FOR_TARGET): Obsolete.
6455 (CHILL_LIB): Obsolete.
6456 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6458 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6459 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6461 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6464 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6466 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6467 This does not change anything at the moment, but will be helpful
6468 later when full Ada support is integrated.
6470 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6472 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6475 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6477 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6478 and save it in a local variable. Use variable in later test.
6480 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6482 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6483 test. (Thanks to Daniel Jacobowitz.)
6485 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6487 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6488 (mips_abi_strings): Add "n64".
6489 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6491 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6493 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6494 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6496 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6498 * utils.c (host_pointer_to_address, address_to_host_pointer):
6499 Use gdb_assert() instead of explicit call to internal_error().
6501 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6503 * Makefile.in (rs6000-nat.o): Update dependencies.
6505 From Nicholas Duffek:
6506 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6507 (aix-thread.o): New rule.
6508 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6509 * config/powerpc/aix432.mh: New file.
6511 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6513 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6514 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6515 (fetch_core_registers, ppc_linux_supply_gregset)
6516 (ppc_linux_supply_fpregset): New functions.
6517 (ppc_linux_regset_core_fns): New.
6518 (_initialize_ppc_linux_tdep): Call add_core_fns.
6519 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6520 and ppc_linux_supply_gregset.
6521 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6522 (supply_fpregset): Call ppc_linux_supply_fpregset.
6523 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6525 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6527 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6529 * symtab.c (lookup_symbol): Demangle before lowercasing.
6531 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6533 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6535 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6536 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6537 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6538 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6540 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6541 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6542 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6543 (avr-tdep.o, mon960-rom.o): Ditto.
6544 (aout_stabs_gnu_h): Define.
6545 (symtab_h): Remove $(gdb_obstack_h).
6547 2002-07-30 Jim Blandy <jimb@redhat.com>
6549 Patch from David Carlton <carlton@math.stanford.edu>:
6550 * gdbinit.in: Move the `dir' commands that add GDB's own source
6551 directory to the search path to the end, so that the `gdb' source
6552 directory will be searched first.
6554 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6556 * gdb_obstack.h: New file.
6557 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6558 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6559 * objfiles.h: Include "gdb_obstack.h".
6560 * Makefile.in (gdb_obstack_h): Define.
6561 (symtab_h): Add $(gdb_obstack_h).
6562 (objfiles_h): Add $(gdb_obstack_h).
6564 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6565 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6566 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6567 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6568 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6569 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6570 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6571 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6573 * Makefile.in (bcache.o): Update dependencies.
6574 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6575 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6576 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6577 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6578 (stabsread.o, symfile.o, symmisc.o): Ditto.
6579 (symtab.o, typeprint.o, macroexp.o): Ditto.
6580 (macrotab.o, mdebugread.o): Ditto.
6581 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6582 (coff_ecoff_h, aout_aout64_h): Define.
6583 (aout_stabs_gnu_h, libaout_h): Define.
6585 2002-07-29 Andrew Cagney <cagney@redhat.com>
6587 * regcache.c (struct regcache_descr): Rename nr_registers to
6588 nr_cooked_registers. Revise comments describing the structure
6590 (init_regcache_descr): Update.
6591 (init_legacy_regcache_descr): Update.
6592 (read_register_gen, write_register_gen): When a cooked register in
6593 the raw register range, directly access the value from the raw
6596 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6598 * z8k-tdep.c: Do not include "obstack.h".
6599 * h8300-tdep.c, h8500-tdep.c: Ditto.
6600 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6601 * valprint.c, v850-tdep.c: Ditto.
6602 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6603 * mn10200-tdep.c: Ditto.
6605 * Makefile.in (z8k-tdep.o): Update dependencies.
6606 (m68hc11-tdep.o, valprint.o): Ditto.
6607 (v850-tdep.o, d10v-tdep.o): Ditto.
6608 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6609 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6610 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6611 (sh_opc_h, gdb_sim_sh_h): Define.
6612 (elf_sh_h, elf_bfd_h): Define.
6613 (opcode_m68hc11_h): Define.
6614 (OPCODES_SRC, OPCODES_DIR): define.
6615 (OPCODES): Use $(OPCODES_DIR).
6616 (gdb_sim_d10v_h): Rename sim_d10v_h.
6617 (gdb_sim_arm_h): Rename sim_arm_h.
6619 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6621 * utils.c (host_pointer_to_address, address_to_host_pointer):
6622 Change internal_error() message to indicate function responsible
6625 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6627 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6628 calls to local_hex_string_custom().
6630 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6632 * irix5-nat.c: Move IRIX shared library support from here...
6633 * solib-irix.c: ...to here. Revised substantially to work with
6634 generic solib framework.
6636 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6637 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6638 * mips-irix-tdep.c: New file.
6640 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6641 (mips-irix-tdep.o, solib-irix.o): New rules.
6642 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6644 * config/mips/irix6.mt (TDEPFILES): Likewise.
6645 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6647 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6649 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6650 disabled (via ``#if 0'') includes.
6652 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6654 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6655 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6656 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6657 Add support for the fpscr register.
6658 * rs6000-nat.c (regmap, fetch_inferior_registers)
6659 (store_inferior_registers, fetch_core_registers): Likewise.
6661 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6663 * rs6000-nat.c (language.h): Include.
6664 (special_regs): Delete this array.
6665 (regmap): New function.
6666 (fetch_register, store_register): Use regmap() to map gdb
6667 register numbers to ptrace register numbers. Also, use
6668 outputs from regmap() to make decisions regarding type of
6669 ptrace() call to make. In particular, don't compare against
6670 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6671 (fetch_inferior_registers, store_inferior_registers): Where
6672 possible, obtain register numbers from tdep struct. Don't
6673 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6674 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6675 (LAST_UISA_SP_REGNUM): Delete.
6677 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6679 * rs6000-nat.c (ppc-tdep.h): Include.
6680 (fetch_registers, store_register, fetch_core_registers): Don't
6681 access registers[] directly. Instead, use supply_register() or
6682 regcache_collect() as appropriate.
6683 (find_toc_address): Format hex address with local_hex_string().
6685 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6687 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6690 2002-07-24 Tom Tromey <tromey@redhat.com>
6692 * jv-exp.y: Marked all strings with _().
6693 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6695 (MethodInvocation, CastExpression, parse_number, yyerror,
6696 java_type_from_name, push_expression_name, yylex): Typo fixes.
6698 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6700 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6701 (tee_file_flush, tee_file_write, tee_file_fputs)
6702 (tee_file_isatty): New.
6703 * ui-file.h (tee_file_new): Add prototype.
6705 2002-07-24 Aidan Skinner <aidan@velvet.net>
6707 * ada-lang.c: Change k&r style function definitions to prototyped
6709 * ada-typeprint.c: Change k&r style function definitions to prototyped
6711 * ada-valprint.c: Change k&r style function definitions to prototyped
6714 2002-07-24 Andrew Cagney <cagney@redhat.com>
6716 * README: Remove reference to remote-bug.
6717 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6719 (m88k-nat.o): Delete rule.
6720 (m88k-tdep.o): Delete rule.
6721 (remote-bug.o): Delete rule.
6722 * MAINTAINERS: Mark as obsolete.
6723 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6724 * m88k-tdep.c: Make file obsolete.
6725 * config/m88k/m88k.mh: Ditto.
6726 * config/m88k/delta88v4.mh: Ditto.
6727 * config/m88k/delta88v4.mt: Ditto.
6728 * config/m88k/delta88.mt: Ditto.
6729 * config/m88k/delta88.mh: Ditto.
6730 * remote-bug.c: Ditto.
6731 * config/m88k/tm-delta88.h: Ditto.
6732 * config/m88k/nm-delta88v4.h: Ditto.
6733 * config/m88k/xm-delta88.h: Ditto.
6734 * config/m88k/xm-dgux.h: Ditto.
6735 * config/m88k/tm-m88k.h: Ditto.
6736 * config/m88k/nm-m88k.h: Ditto.
6737 * config/m88k/tm-delta88v4.h: Ditto.
6738 * m88k-nat.c: Ditto.
6739 * cxux-nat.c: Ditto.
6740 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6741 and m88*-*-* obsolete.
6742 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6745 2002-07-24 Andrew Cagney <cagney@redhat.com>
6747 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6748 constant. Same for local pointer variables.
6749 (extract_signed_integer): Ditto.
6750 * defs.h (extract_unsigned_integer): Update.
6751 (extract_signed_integer): Update.
6753 2002-07-24 Andrew Cagney <cagney@redhat.com>
6755 * regcache.c (regcache_raw_write): Change buf parameter to a
6756 constant void pointer.
6757 (regcache_raw_read): Change buf parameter to a void pointer.
6758 (legacy_write_register_gen): Change myaddr parameter a constant
6760 (supply_register): Change val parameter to a const void pointer.
6761 * regcache.h (regcache_raw_write): Update declaration.
6762 (regcache_raw_read): Update declaration.
6763 (supply_register): Update declaration.
6765 2002-07-24 Tom Tromey <tromey@redhat.com>
6767 * defs.h (gdb_readline_wrapper): Declare.
6768 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6769 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6770 * top.c (gdb_readline_wrapper): New function.
6771 (command_line_input): Use it.
6773 2002-07-24 Andrew Cagney <cagney@redhat.com>
6775 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6776 regcache_read and regcache_write.
6777 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6778 * regcache.c: Update.
6779 * sh-tdep.c (sh64_push_arguments): Update comment.
6780 (sh_pseudo_register_read): Update.
6781 (sh_pseudo_register_write): Update.
6782 (sh4_register_read): Update.
6783 (sh4_register_write): Update.
6784 (sh64_pseudo_register_read): Update.
6785 (sh64_pseudo_register_write): Update.
6786 (sh64_register_read): Update.
6787 (sh64_register_write): Update.
6788 * i386-tdep.c (i386_extract_return_value): Update.
6789 (i386_extract_struct_value_address): Update.
6790 (i386_extract_return_value): Update.
6791 * blockframe.c (generic_read_register_dummy): Update.
6792 (generic_call_dummy_register_unwind): Update
6793 * infrun.c (write_inferior_status_register): Update.
6795 2002-07-23 Jim Blandy <jimb@redhat.com>
6797 * parser-defs.h (expression_context_pc): Make this extern.
6798 (Thanks to Michael Snyder.)
6800 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6802 GDB 5.2.1 released from 5.2 branch.
6803 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6804 * README: Update to mention 5.2.1.
6806 2002-07-23 Mark Salter <msalter@redhat.com>
6808 * remote.c (remote_read_bytes): Fix check for error.
6810 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6812 * aix-thread.c (language.h): Include.
6813 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6814 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6815 Print newlines at end of debug messages.
6816 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6817 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6819 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6821 * aix-thread.c (ppc-tdep.h): Include.
6822 (special_register_p): New function.
6823 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6824 (store_regs_user_thread): Use register number information from
6825 gdbarch_tdep struct instead of hardcoded offsets relative to
6826 FIRST_UISA_SP_REGNUM.
6827 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6828 special_register_p() instead of using FPLAST_REGNUM and
6829 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6830 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6831 will be MQ's register number.
6833 2002-07-22 Michael Snyder <msnyder@redhat.com>
6835 * aix-thread.c (ops): Rename to aix_thread_ops.
6836 (base_ops): Rename to base_target.
6837 (ops_attach): Rename to aix_thread_attach.
6838 (ops_detach): Rename to aix_thread_detach.
6839 (ops_resume): Rename to aix_thread_detach.
6840 (ops_wait): Rename to aix_thread_wait.
6841 (ops_kill): Rename to aix_thread_kill.
6842 (init_ops): Rename to init_aix_thread_ops.
6843 (ops_fetch_register): Rename to aix_thread_fetch_register.
6844 (ops_store_register): Rename to aix_thread_store_register.
6845 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6846 (ops_thread_alive): Rename to aix_thread_thread_alive.
6847 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6848 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6849 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6850 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6851 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6852 (store_regs_lib): Rename to store_regs_user_thread.
6853 (store_regs_kern): Rename to store_regs_kernel_thread.
6855 2002-07-22 Michael Snyder <msnyder@redhat.com>
6857 * aix-thread.c (ops_prepare_to_store): Eliminate.
6858 (init_ops): Don't initialize ops.prepare_to_store.
6859 (store_regs_kern): Pre-fetch register buffers from child,
6860 because some registers may not be in the cache. Copy
6861 regs from register cache only if they are cached.
6862 (store_regs_lib): Copy regs from register cache only
6864 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6865 fill_gprs64): Ditto.
6867 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6869 * aix-thread.c (gdb_assert.h): Include.
6870 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6871 register sizes (from register cache) match size of buffer holding
6873 (fill_sprs32): Change parameter types to match those in the ptrace()
6875 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6876 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6878 2002-07-22 Michael Snyder <msnyder@redhat.com>
6880 * aix-thread.c (supply_sprs64): Cosmetic change.
6881 (supply_sprs32): Cosmetic change.
6882 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6883 (fill_sprs64): Use regcache_collect instead of read_register.
6884 (store_regs_lib): Use regcache_collect instead of
6885 read_register. Use fill_sprs32 instead of fill_sprs64,
6886 if debugging a 32-bit architecture.
6887 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6888 out of the register cache, instead of passing a pointer into
6889 the register cache directly to ptrace. Use regcache_collect
6890 insteaad of read_register.
6891 (ops_prepare_to_store): Use target_read_registers instead
6892 of read_register_bytes.
6894 2002-07-20 Aidan Skinner <aidan@velvet.net>
6896 * MAINTAINERS: Add self under write after approval.
6898 2002-07-20 Aidan Skinner <aidan@velvet.net>
6900 * ada-tasks.c: Change k&r style function definitions to prototyped
6903 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6905 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6906 * x86-64-tdep.c: Include "objfiles.h".
6907 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6908 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6910 2002-07-17 Michal Ludvig <michal@suse.cz>
6912 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6913 (update_context): Initialise cfa variable.
6915 2002-07-17 Michael Snyder <msnyder@redhat.com>
6917 * aix-thread.c: Shorten some long lines.
6918 Bring comments into line with code spec.
6920 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6922 * infrun.c: Re-indent using gdb_indent.sh.
6924 2002-07-18 Joel Brobecker <brobecker@gnat.com>
6926 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6927 Leave the indentation temporarily untouched, to minimize the diffs.
6929 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
6931 * stabsread.c: Make os9k sections of the code obsolete,
6933 * stabsread.h: Make os9k sections of the code obsolete.
6935 2002-07-18 Michal Ludvig <mludvig@suse.cz>
6937 * linux-low.c (regsets_store_inferior_registers): Add free()
6938 at the end of a loop to prevent memory leak.
6939 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6940 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
6941 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6943 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
6945 2002-07-17 Jim Blandy <jimb@redhat.com>
6947 * macrocmd.c (info_macro_command): Remove newline from error
6950 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
6952 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6953 (sh_gdbarch_init): Use it for sh-dsp.
6955 2002-07-16 Kevin Buettner <kevinb@redhat.com>
6957 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6958 64-bit DWARF2 format.
6960 2002-07-16 Joel Brobecker <brobecker@gnat.com>
6962 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6963 <sys/proc.h> when not available.
6965 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6967 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6968 * stabsread.c: Make os9k sections of the code obsolete.
6969 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6970 * config/i386/i386os9k.mt: Make file obsolete.
6971 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6972 (COMMON_OBS): Remove os9kread.o
6973 (SFILES): Remove os9kread.c.
6974 (os9kread.o, remote-os9k.o): Make target obsolete.
6975 * remote-os9k.c: Make file obsolete.
6976 * os9kread.c: Make file obsolete.
6979 2002-07-16 Andrew Cagney <ac131313@redhat.com>
6981 * NEWS: Mention that the FR30 has been made obsolete.
6982 * fr30-tdep.c: Make file obsolete.
6983 * config/fr30/tm-fr30.h: Ditto.
6984 * config/fr30/fr30.mt: Ditto.
6985 * configure.tgt: Make fr30-*-elf obsolete.
6986 * MAINTAINERS: Make fr30-elf obsolete.
6988 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
6990 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6991 found is not inside a section.
6993 2002-07-15 Kevin Buettner <kevinb@redhat.com>
6995 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6997 (pdc_realloc): Use xrealloc() instead of realloc().
6999 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7001 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7002 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7003 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7006 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7008 * aix-thread.c (ptrace_check): Eliminate goto.
7009 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7012 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7014 * aix-thread.c (gdbcmd.h): Include.
7015 (DEBUG, DBG, DBG2, dbg): Eliminate.
7016 (debug_aix_thread): New static global.
7017 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7018 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7019 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7020 invocations to DBG and DBG2 macros to test against
7021 ``debug_aix_thread'' and call fprintf_unfiltered().
7022 (_initialize_aix_thread): Add new command "set debug aix-thread".
7024 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7026 From Gerhard Tonn <TON@de.ibm.com>:
7027 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7028 instead of supply_register.
7030 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7032 * dwarf2cfi.c: Include "gdb_assert.h".
7033 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7035 (update_context): Do not use __func__. Add missing ``break''.
7036 (update_context): Do not use __func__.
7038 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7040 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7041 and its setting. Set gdbarch instruction printing functions
7042 directly. For non-rs6000 case use new function
7043 gdb_print_insn_powerpc.
7044 (gdb_print_insn_powerpc): New function.
7046 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7048 * NEWS: Mention that the d30v has been marked obsolete.
7049 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7050 * configure.tgt: Mark d30v-*-* as obsolete.
7051 * d30v-tdep.c: Mark file as obsolete.
7052 * config/d30v/d30v.mt: Ditto.
7053 * config/d30v/tm-d30v.h: Ditto.
7055 2002-07-13 Aidan Skinner <aidan@velvet.net>
7057 * ada-tasks.c (add_task_entry): replace calls to
7058 malloc() with xmalloc
7059 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7061 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7062 ada_finish_decode_line_1, all_sals_for_line
7063 ada_breakpoint_rewrite): replace calls to free() with xfree()
7065 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7067 From Nicholas Duffek (with minor changes by Martin Hunt,
7068 Louis Hamilton, and Kevin Buettner):
7069 * aix-thread.c: New file.
7071 2002-07-12 Petr Sorfa <petrs@caldera.com>
7073 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7074 complaint for invalid attribute class or form.
7075 (read_func_scope): DW_AT_frame_base
7076 better handling of DW_AT_block*.
7077 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7078 better handling of DW_AT_block*.
7079 (read_common_block): DW_AT_location
7080 better handling of DW_AT_block*.
7081 (read_partial_die): DW_AT_location better handling
7083 (new_symbol): DW_AT_external better handling of
7084 DW_AT_block*. Proper initialization of variable
7086 (attr_form_is_block): New function that returns true
7087 if the attribute's form is of DW_FORM_block*.
7089 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7091 * valops.c (find_method_list): Remove comment about
7092 removed STATIC_MEMFUNCP argument.
7093 (value_find_oload_method_list): Likewise.
7095 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7097 From Nicholas Duffek:
7098 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7099 target_new_objfile_hook.
7101 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7103 From Nicholas Duffek:
7104 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7107 2002-07-12 Andrew Cagney <cagney@redhat.com>
7109 * MAINTAINERS: Mention --enable-sim-build-warnings.
7110 (m68hc11-elf): Disable sim build warnings.
7111 (m32r-elf): Mark as broken obsolete candidate.
7112 (x86_64-linux-gnu): Mark as buildable with -Werror.
7113 (arm-elf): Change -w to ``,'' which enables warnings but not
7116 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7118 * bcache.h: Update copyright.
7119 (struct bstring, struct bcache): Move definition to "bcache.c".
7120 Replaced by opaque declaration.
7121 (bcache_xfree): Replace free_bcache.
7122 (bcache_xmalloc, bcache_memory_used): Declare.
7124 * bcache.c: Update copyright.
7125 (struct bstring, struct bcache): Moved to here from "bcache.h".
7127 (bcache_xmalloc, bcache_memory_used): New functions.
7128 (bcache_xfree): Replace function free_bcache.
7130 * Makefile.in (objfiles.o): Add $(bcache_h).
7131 (objfiles_h): Remove $(bcache_h).
7132 (symfile.o): Add $(bcache_h).
7134 * symmisc.c: Update copyright.
7135 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7136 (print_objfile_statistics): Use bcache_memory_used.
7138 * symfile.c: Include "bcache.h".
7139 (reread_symbols): Use bcache_xfree.
7140 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7141 (add_psymbol_to_list): Pass psymbol_cache by value.
7142 (add_psymbol_with_dem_name_to_list): Ditto.
7144 * objfiles.h: Update copyright.
7145 (struct bcache): Declare opaque. Do not include "bcache.h".
7146 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7148 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7150 * objfiles.c: Include "bcache.h". Update copyright.
7151 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7153 (free_objfile): Use bcache_xfree.
7155 2002-07-11 Grace Sainsbury <graces@redhat.com>
7157 * monitor.c (monitor_fetch_register): Make name a constant.
7158 (monitor_store_register): Same.
7160 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7162 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7163 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7164 (finish_block) For non-function blocks, hash the symbol table. For
7165 function blocks, mark the symbol table as unhashed.
7166 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7167 (msymbol_hash_iw): Likewise.
7168 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7170 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7171 (lookup_minimal_symbol): Likewise for both.
7172 * symtab.h (struct block): Add `hashtable' flag. Comment the
7174 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7175 (ALL_BLOCK_SYMBOLS): Update.
7176 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7177 (struct symbol): Add `hash_next' pointer.
7178 * symtab.c (lookup_block_symbol): Search using the hash table when
7180 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7181 (search_symbols, find_addr_symbol): Likewise.
7183 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7184 (read_dst_symtab): Likewise.
7185 * jv-lang.c (get_java_class_symtab): Likewise.
7186 * mdebugread.c: Include "gdb_assert.h".
7187 (shrink_block): Assert that the block being modified is not hashed.
7188 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7189 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7191 (dump_symtab): Recognize hashed blocks.
7192 * printcmd.c (print_frame_args): Assert that function blocks do not
7193 have hashed symbol tables.
7194 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7195 (fill_in_ada_prototype, debug_print_block): Likewise.
7196 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7198 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7200 * stack.c (print_frame): Use result of frame_address_in_block()
7201 instead of fi->pc when evaluating symbols.
7202 (backtrace_command_1): Ditto.
7204 2002-07-11 Andrew Cagney <cagney@redhat.com>
7206 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7209 * arm-tdep.c (arm_register_name): Make return type constant.
7211 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7213 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7215 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7216 * s390-tdep.c (s390_fp_regnum): Ditto.
7217 (s390_read_fp): Ditto.
7218 (s390_pop_frame): Ditto.
7219 (_initialize_s390_tdep): Ditto.
7220 * remote.c (get_remote_state): Ditto.
7221 * procfs.c (mappingflags): Ditto.
7222 * memattr.c (_initialize_mem): Ditto.
7223 * mcore-tdep.c (mcore_pop_frame): Ditto.
7224 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7225 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7226 * language.c (set_case_str): Ditto.
7227 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7228 * frv-tdep.c (new_variant): Ditto.
7229 (frv_stopped_data_address): Ditto.
7230 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7231 (context_alloc): Ditto.
7232 (frame_state_alloc): Ditto.
7233 (unwind_tmp_obstack_init): Ditto.
7234 (unwind_tmp_obstack_free): Ditto.
7235 (cfi_read_fp): Ditto.
7236 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7237 (cris_pop_frame): Ditto.
7238 * c-lang.c (scanning_macro_expansion): Ditto.
7239 (finished_macro_expansion): Ditto.
7240 (c_preprocess_and_parse): Ditto.
7241 * gdbarch.sh: Ditto.
7242 * gdbarch.h, gdbarch.c: Regenerate.
7243 * config/mn10200/tm-mn10200.h: Adjust indentation.
7244 * target.c: Adjust indentation.
7245 * symtab.h: Adjust indentation.
7246 * stabsread.h: Adjust indentation.
7247 * remote-es.c: Adjust indentation.
7248 * os9kread.c: Adjust indentation.
7250 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7252 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7253 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7255 2002-07-10 Grace Sainsbury <graces@redhat.com>
7257 * NEWS: Mention m68k, mcore multi-arching.
7258 * MAINTAINERS: Change status of m68k, mcore to reflect
7261 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7263 * valops.c (find_overload_match): Free oload_syms.
7265 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7267 Define HAVE_SYS_PROC_H if sys/proc.h exists
7268 * configure.in: Add check for sys/proc.h
7269 * config.in: Regenerate.
7270 * configure: Regenerate.
7272 2002-07-09 Grace Sainsbury <graces@redhat.com>
7274 * config/m68k/tm-m68k.h: Remove macros wrapped in
7275 #if !GDB_MULTI_ARCH.
7277 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7279 * config.in, configure: Regenerate.
7281 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7283 * dwarf2cfi.c: Include "gcore.h".
7284 (execute_stack_op): Fix implementation of the
7285 DW_OP_deref and DW_OP_deref_size operators by letting do their
7286 lookup in the target.
7288 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7290 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7291 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7294 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7296 Fix PR gdb/595, gdb/602
7297 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7298 Don't call value_cast, just read the vtable pointer; update comments
7301 2002-07-05 Grace Sainsbury <graces@redhat.com>
7303 * config/mcore/tm-mcore.h: Remove file.
7304 * config/mcore/mcore.mt: Remove definition of TM_FILE
7305 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7307 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7309 * i386bsd-tdep.c: Include "gdb_string.h".
7311 2002-07-04 Grace Sainsbury <graces@redhat.com>
7313 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7314 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7316 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7317 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7318 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7319 (RETVAL_REGNUM): Move macros from tm-mcore.h
7320 (mcore_reg_struct_has_addr): New function.
7321 (mcore_gdbarch_init): Added initializations for the macros removed
7324 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7326 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7327 traditonal string branding within the ELF header.
7329 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7331 * symtab.c (remove_params): New function.
7332 (make_symbol_overload_list): Use it instead of cplus_demangle.
7333 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7335 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7337 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7339 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7341 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7342 and tdep->sigtramp_end.
7343 * i386obsd-nat.c: New file.
7344 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7346 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7347 Don't call get_current_frame().
7349 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7351 * i386-nat.c (child_post_startup_inferior): New function
7352 calling i386_cleanup_dregs if
7353 I386_USE_GENERIC_WATCHPOINTS is defined.
7354 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7355 conditional to acknowledge that i386-nat.c has its
7356 own child_post_startup_inferior function.
7358 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7360 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7361 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7362 instead of MAX_REGISTER_RAW_SIZE.
7363 (i386_extract_return_value, i386_extract_struct_value_address):
7364 Convert to use regcache.
7365 (i386_gdbarch_init): Set max_register_raw_size and
7366 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7367 Set extract_return_value and extract_struct_value_address instead
7368 of their deprecated variants.
7370 Convert i386 target to generic dummy frames.
7371 * i386-tdep.c: Include "symfile.h".
7372 (i386_frameless_signal_p): Consider a function to be frameless if
7373 the pc points at the first instruction of the function.
7374 (i386_frame_chain): Handle (generic) call dummies.
7375 (i386_frame_saved_pc): Likewise.
7376 (i386_frame_init_saved_regs): Remove code dealing with call
7377 dummies on the stack.
7378 (i386_push_dummy_frame): Removed.
7379 (i386_call_dummy_words): Removed.
7380 (i386_fix_call_dummy): Removed.
7381 (i386_push_return_address): New function.
7382 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7383 parameter, and don't call get_current_frame.
7384 (i386_pop_frame): New function.
7385 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7386 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7387 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7388 call_dummy_length to 0, set call_dummy_words to NULL, set
7389 sizeof_call_dummy_words to 0, set fix_call_dummy to
7390 generic_fix_call_dummy, set pc_in_call_dummy to
7391 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7392 generic_push_dummy_frame, set push_return_address to
7393 i386_push_return_address and set frame_chain_valid to
7394 generic_file_frame_chain_valid.
7396 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7398 * gdbarch.sh (struct regcache): Add opaque declaration.
7399 (EXTRACT_RETURN_VALUE): New architecture method.
7400 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7401 * gdbarch.h, gdbarch.c: Regenerate.
7402 * arch-utils.c (legacy_extract_return_value): New function.
7403 * arch-utils.h (legacy_extract_return_value): Declare.
7404 * values.c (value_being_returned): Re-enable code handling
7405 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7406 deprecated_grub_regcache_for_registers call to block handling
7407 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7408 (EXTRACT_RETURN_VALUE): Do not define.
7410 2002-07-03 Grace Sainsbury <graces@redhat.com>
7412 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7413 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7414 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7415 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7416 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7417 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7418 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7419 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7420 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7421 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7422 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7423 argument so the function fits the prototype in the architecture
7425 (mcore_pop_frame): Remove argument so the function fits the
7426 prototype. Use get_current_frame instead of the argument.
7427 (mcore_push_arguments): Change type of struct_return so the
7428 function can be used in the architecture vector.
7429 (mcore_store_struct_return): Add.
7430 (mcore_frame_init_saved_regs): Add.
7431 (mcore_gdbarch_init): Add function calls to replace the macros
7432 removed from tm-mcore.h
7434 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7436 * infcmd.c (print_return_value): Remove compatibility code calling
7437 deprecated_grub_regcache_for_registers.
7439 * values.c: Include "regcache.h".
7440 (value_being_returned): Update. Use
7441 deprecated_grub_regcache_for_registers to extract the register
7443 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7444 ``struct regcache''.
7445 * Makefile.in (values.o): Add dependency on $(regcache_h).
7447 * inferior.h (run_stack_dummy): Change type of second parameter to
7448 a ``struct regcache''.
7449 * valops.c (hand_function_call): Change type of retbuf to ``struct
7450 regcache''. Allocate using regcache_xmalloc, clean using
7451 make_cleanup_regcache_xfree.
7452 * infcmd.c (run_stack_dummy): Update. Use
7453 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7455 * regcache.c (do_regcache_xfree): New function.
7456 (make_cleanup_regcache_xfree): New function.
7457 * regcache.h (make_cleanup_regcache_xfree): Declare.
7459 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7461 * event-top.c (command_line_handler): Don't read past
7462 beginning of buffer.
7464 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7466 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7468 (varobj_create): Store frame_id for root.
7469 (varobj_gen_name): Use xasprintf.
7470 (varobj_update): Save and restore frame using get_frame_id() and
7472 (create_child): Use xasprintf.
7473 (new_root_variable): Initialize frame_id.
7474 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7475 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7476 to prevent memory leak.
7478 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7480 * valops.c (hand_function_call): Move declaration of retbuf to
7481 start of function, allocate using malloc, add a cleanup but before
7482 the inf_status cleanup, cleanup the buffer. Rename local variable
7483 old_chain to inf_status_cleanup.
7485 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7487 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7489 * cli/cli-decode.c (cmd_func_p): New function.
7490 (cmd_func): New function.
7492 * command.h: Add cmd_func() and cmd_func_p().
7494 2002-07-03 Grace Sainsbury <graces@redhat.com>
7496 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7497 (REGISTER_SIZE): Remove.
7498 (MAX_REGISTER_RAW_SIZE): Remove.
7499 (REGISTER_VIRTUAL_TYPE): Remove.
7500 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7501 (REGISTER_NAME): Remove.
7502 (USE_GENERIC_DUMMY_FRAMES): Remove.
7503 (CALL_DUMMY): Remove.
7504 (CALL_DUMMY_START_OFFSET): Remove.
7505 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7506 (CALL_DUMMY_LOCATION): Remove.
7507 (FIX_CALL_DUMMY): Remove.
7508 (CALL_DUMMY_ADDRESS): Remove.
7509 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7510 (SAVE_DUMMY_FRAME_TOS): Remove.
7511 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7512 (mcore_register_virtual_type): New function.
7513 (mcore_register_byte): New function.
7514 (mcore_register_size): New function.
7515 (mcore_register_name): New function.
7516 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7517 macros removed from tm-mcore.h.
7518 (mcore_dump_tdep): Add.
7519 (_initialize_mcore_tdep): Add gdbarch_register call.
7521 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7523 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7524 frameless_look_for_prologue, such that we actually call this
7527 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7529 * frame.h (frame_address_in_block): New function.
7531 * blockframe.c (frame_address_in_block): New function extracted
7532 from get_frame_block().
7533 (get_frame_block): Use frame_address_in_block().
7534 (block_innermost_frame): Use frame_address_in_block() to match
7535 the frame pc address against the block boundaries rather than
7536 the frame pc directly. This prevents a failure when a frame pc
7537 is actually a return-address pointing immediately after the end
7540 2002-07-02 Grace Sainsbury <graces@redhat.com>
7542 * MAINTAINERS: Add self under write after approval.
7544 2002-07-02 Grace Sainsbury <graces@redhat.com>
7546 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7547 used in architecture vector. The default is
7548 m68k_local_breakpoint_from_pc.
7549 (m68k_local_breakpoint_from_pc): Add.
7550 (enum): Add register numbers from tm-m68k.h.
7551 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7553 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7554 GDB_MULTI_ARCH_PARTIAL.
7555 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7556 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7558 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7559 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7560 to enum in m68k-tdep.c
7562 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7564 * solib-osf.c (open_map): Compute the list of shared libraries
7565 loaded by the inferior, rather than the list of libraries loaded
7566 by GDB itself. Otherwise, GDB ends up reading the symbols from
7567 the wrong shared libraries...
7569 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7571 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7572 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7574 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7576 (FRAMELESS_SIGNAL): Remove function.
7577 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7578 i386_linux_saved_pc_after_call): Removed.
7579 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7580 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7581 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7583 * i386-tdep.c (i386_frameless_signal_p): New function.
7584 (i386_frame_chain): Deal with frameless signals.
7585 (i386_sigtramp_saved_sp): New function.
7586 (i386_frame_saved_pc): Deal with frameless signals.
7587 (i386_saved_pc_after_call): Make sure the correct value is
7588 returned just after entry into a sigtramp.
7589 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7590 i386fbsd4_sc_sp_offset): New variables.
7591 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7592 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7593 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7594 similiar to what we already did for sc_pc_offset.
7595 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7598 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7600 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7602 * config/i386/tm-x86-64linux.h: New.
7603 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7605 * config/i386/nm-x86-64.h: Rename to ...
7606 * config/i386/nm-x86-64linux.h: ... this one.
7607 * config/i386/x86-64linux.mh: Reflect the above change.
7609 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7611 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7612 with sigcontext_addr. Add sc_sp_offset.
7613 (i386bsd_sigtramp_saved_pc): Remove prototype.
7614 (i386bsd_sicontext_addr): Add prototype.
7615 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7616 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7617 (i386_svr4_sigtramp_saved_pc): Removed.
7618 (i386_svr4_sigcontext_addr): New function.
7619 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7620 Initialize tdep->sigcontext_addr instead. Initialize
7621 tdep->sc_pc_offset and tdep->sc_sp_offset.
7622 (i386_gdbarch_init): Likewise.
7623 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7625 (i386bsd_sigtramp_saved_pc): Remove function.
7626 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7627 Initialize tdep->sigcontext_addr instead. Initialize
7629 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7630 of tdep->sigtramp_saved_pc.
7631 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7632 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7635 * i386-tdep.c (i386_frameless_function_invocation,
7636 i386_frame_num_args, i386_frame_init_saved_regs,
7637 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7638 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7639 i386_extract_return_value, i386_store_return_value,
7640 i386_extract_struct_value_address, i386_register_virtual_type,
7641 i386_register_convertible, i386_register_convert_to_virtual,
7642 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7643 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7646 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7648 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7650 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7651 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7652 this macro. Include "value.h".
7654 2002-06-30 Aidan Skinner <aidan@velvet.net>
7656 * ada-exp.tab.c: remove as it's a generated file
7657 * ada-lex.c: remove as it's a generated file
7659 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7661 * config/i386/tm-i386.h (struct frame_info, struct
7662 frame_saved_regs, struct value, struct type): Remove forward
7665 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7666 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7667 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7668 (FILL_FPXREGSET): Define.
7670 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7672 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7673 i[3456]86-*-netbsd* case.
7674 * config/i386/tm-obsd.h: Removed.
7675 * config/i386/obsd.mt: Removed.
7676 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7678 (MH_CFLAGS): Add -DYYDEBUG=0.
7680 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7681 i386nbsd_sc_pc_offset on OpenBSD too.
7683 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7684 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7685 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7687 * i386bsd-tdep.c: Include "arch-utils.h".
7688 (i386bsd_aout_in_solib_call_trampoline): New function.
7689 (i386bsd_init_abi): Set in_solib_call_trampoline to
7690 i386bsd_aout_in_solib_call_trampoline.
7691 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7692 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7694 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7696 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7697 (struct obstack, struct bcache): Add opaque declarations.
7698 * Makefile.in (macrotab_h): Update
7700 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7702 * blockframe.c (generic_find_dummy_frame): Change return type to
7703 ``struct regcache''.
7704 (struct dummy_frame): Replace field ``registers'' with regcache, a
7705 struct regcache object.
7706 (generic_find_dummy_frame): Update.
7707 (generic_push_dummy_frame): Update. Use regcache_xfree,
7708 regcache_xmalloc and regcache_cpy.
7709 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7711 (deprecated_generic_find_dummy_frame): Update.
7712 (generic_read_register_dummy): Update. Use
7713 regcache_read_as_address.
7714 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7715 (generic_get_saved_register): Update. Use regcache_read.
7717 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7719 * Makefile.in (objfiles_h): Add $(bcache_h).
7720 * objfiles.h: Include "bcache.h".
7722 * Makefile.in (symtab_h): Remove $(bcache_h).
7723 * symtab.h: Do not include "bcache.h".
7725 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7727 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7728 generic_func_frame_chain_valid.
7730 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7732 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7733 * config/i386/tm-fbsd.h: Likewise.
7735 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7737 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7738 generic_unwind_get_saved_register.
7740 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7742 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7743 * regcache.c (supply_register): Add missing argument to
7744 register_buffer call.
7746 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7748 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7749 Solaris /bin/grep does not not like it. From Peter Schauer.
7751 2002-06-26 Tom Tromey <tromey@redhat.com>
7753 * command.h (add_setshow_cmd): Declare.
7754 (add_setshow_cmd_full): Declare.
7755 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7756 returns void. Use add_setshow_cmd_full.
7757 (add_setshow_cmd_full): New function.
7758 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7759 (add_setshow_boolean_cmd): Likewise.
7761 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7763 * config/vax/tm-vax.h: Protect from multiple inclusion.
7764 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7765 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7766 * config/vax/tm-vaxbsd.h: ...here. New file.
7767 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7769 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7771 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7772 (BELIEVE_PCC_PROMOTION): Remove.
7773 (AP_REGNUM): Move to...
7774 * config/vax/nm-vax.h: ...here.
7775 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7776 (vax_breakpoint_from_pc): New function.
7777 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7778 and gdbarch_believe_pcc_promotion.
7780 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7782 * Makefile.in (vax_tdep_h): Define.
7783 (vax-tdep.o): Use $(vax_tdep_h).
7784 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7785 (vax_dump_tdep): New function.
7786 (_initialize_vax_tdep): Register vax_dump_tdep.
7787 * vax-tdep.h: Include osabi.h.
7788 (struct gdbarch_tdep): New.
7790 2002-06-26 Andrew Cagney <cagney@redhat.com>
7792 * frame.h (deprecated_generic_find_dummy_frame): Rename
7793 generic_find_dummy_frame.
7794 * blockframe.c (generic_find_dummy_frame): Make static.
7795 (deprecated_generic_find_dummy_frame): New function.
7796 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7797 generic_find_dummy_frame with deprecated_find_dummy_frame.
7798 (sh64_nofp_frame_init_saved_regs): Ditto.
7799 (sh_fp_frame_init_saved_regs): Ditto.
7800 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7801 (s390_frame_chain): Ditto.
7802 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7804 2002-06-26 Grace Sainsbury <graces@redhat.com>
7806 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7807 gdbarch vector are at the top.
7809 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7810 (FRAME_ARGS_ADDRESS): Remove.
7811 (FRAME_LOCALS_ADDRESS): Remove.
7812 (FRAME_NUM_ARGS): Remove.
7813 (FRAME_ARGS_SKIP): Remove.
7814 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7815 (m68k_gdbarch_init): Add gdbarch initializations for macros
7816 undefined in tm-m68k.h
7818 2002-06-26 Grace Sainsbury <graces@redhat.com>
7820 * monitor.h: Add the function regname to monitor_ops
7821 structure. This way NUM_REGS does not have to be a constant.
7822 * monitor.c (monitor_fetch_register): Added support for regname
7823 function. The function is called if the array regnames is NULL.
7824 (monitor_store_register): Same.
7825 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7827 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7828 cpu32bug_cmds.regname to point to new function.
7829 * abug-rom.c (abug_regname): Same as above.
7830 (init_abug_cmds): Same.
7831 * dbug-rom.c (dbug_regname): Same as above.
7832 (init_dbug_cmds): Same.
7833 * remote-est.c (est_regname): Same.
7834 (init_est_cmds): Same.
7835 * rom68k-rom.c (rom68k_regname): Same.
7836 (init_rom68k_cmds): Same.
7838 2002-06-25 Tom Tromey <tromey@redhat.com>
7840 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7842 2002-06-25 Andrew Cagney <cagney@redhat.com>
7844 * infrun.c (stop_registers): Change variable's type to ``struct
7846 (xmalloc_inferior_status): Delete function.
7847 (free_inferior_status): Delete function.
7848 (normal_stop): Use regcache_cpy.
7849 (struct inferior_status): Change type of fields ``stop_registers''
7850 and ``registers'' to ``struct regcache''.
7851 (write_inferior_status_register): Use regcache_write.
7852 (save_inferior_status): Instead of calling
7853 xmalloc_inferior_status, allocate the inf_status buffer directly.
7854 Use regcache_dup_no_passthrough and regcache_dup to save the
7856 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7857 Replace the stop_registers regcache instead of overriding it. Use
7858 regcache_xfree. Instead of calling free_inferior_status, xfree
7859 the buffer directly.
7860 (discard_inferior_status): Use regcache_xfree. Instead of calling
7861 free_inferior_status, xfree the buffer directly.
7862 (build_infrun): Use regcache_xmalloc.
7863 (_initialize_infrun): Delete redundant call to build_infrun.
7865 * Makefile.in (infcmd.o): Add $(regcache_h).
7867 * infcmd.c: Include "regcache.h".
7868 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7869 obtain the address of `stop_registers' register buffer.
7870 (print_return_value): Ditto.
7872 * inferior.h (struct regcache): Add opaque declaration.
7873 (stop_registers): Change variable's declared type to ``struct
7876 2002-06-24 Tom Tromey <tromey@redhat.com>
7878 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7879 * target.c (initialize_targets): Fixed typo in
7880 trust-readonly-sections `show' documentation.
7882 * main.c: Marked all strings with _().
7884 2002-06-24 Don Howard <dhoward@redhat.com>
7886 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7887 that means max CORE_ADDR+1.
7888 (lookup_mem_region): Ditto.
7889 (mem_info_command): Ditto.
7891 2002-06-24 Grace Sainsbury <graces@redhat.com>
7893 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7894 (REGISTER_BYTES_OK): Remove.
7895 (REGISTER_BYTES): Remove.
7896 (STORE_STRUCT_RETURN): Remove.
7897 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7898 (STORE_RETURN_VALUE): Remove.
7899 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7900 (FRAME_CHAIN): Remove.
7901 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7902 (FRAME_SAVED_PC): Remove.
7903 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7904 (m68k_store_struct_return): Add.
7905 (m68k_deprecated_extract_return_value): Add.
7906 (m68k_deprecated_extract_struct_value_address): Add.
7907 (m68k_store_return_value): Add.
7908 (m68k_frame_chain): Add.
7909 (m68k_frameless_function_invocation): Add.
7910 (m68k_frame_saved_pc): Add.
7911 (m68k_gdbarch_init): added set_gdbarch calls for new
7912 functions and deleted macros.
7914 2002-06-23 Tom Tromey <tromey@redhat.com>
7916 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7917 (ALLDEPFILES): Likewise.
7918 (udiheaders): Removed.
7919 (udip2soc.o): Likewise.
7920 (udi2go32.o): Likewise.
7922 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7924 2002-06-22 Andrew Cagney <ac131313@redhat.com>
7926 * infrun.c (_initialize_infrun): Delete unnecessary call to
7929 * regcache.h: Update comments describing the regcache_cpy family
7931 (regcache_save, regcache_restore): Delete declaration.
7932 (regcache_save_no_passthrough): Delete declaration.
7933 (regcache_restore_no_passthrough): Delete declaration.
7934 * regcache.c (regcache_save): Delete function.
7935 (regcache_save_no_passthrough): Delete function.
7936 (regcache_restore): Delete function.
7937 (regcache_restore_no_passthrough): Delete function.
7939 2002-06-21 Andrew Cagney <ac131313@redhat.com>
7941 * config/m68k/tm-m68k.h: Fix typo.
7942 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7943 (m68k_frame_init_saved_regs): Declare.
7945 2002-06-21 Jim Blandy <jimb@redhat.com>
7947 Remove some vestiges of Harris 88k support.
7948 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7949 register numbering quirk.
7950 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7951 odd symbols occurring in Harris 88k ELF targets.
7953 2002-06-21 Tom Tromey <tromey@redhat.com>
7955 * gdb_locale.h: New file.
7956 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7957 (defs_h): Added gdb_locale.h.
7958 * configure, config.in: Rebuilt.
7959 * configure.in (PACKAGE): Define.
7960 * defs.h: Include gdb_locale.h.
7961 * main.c (captured_main): Call setlocale, bindtextdomain,
7964 2002-06-21 Dave Brolley <brolley@redhat.com>
7966 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7967 * config/frv/frv.mt: New file.
7968 * config/frv/tm-frv.h: New file.
7969 * configure.tgt: Support frv-*-*.
7970 * Makefile.in (frv-tdep.o): New target.
7971 * frv-tdep.c: New file.
7972 * NEWS: Mention frv.
7974 2002-06-21 Dave Brolley <brolley@redhat.com>
7976 * MAINTAINERS: Add self to "Write After Approval" list.
7978 2002-06-21 Grace Sainsbury <graces@redhat.com>
7980 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7981 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7982 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7983 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7984 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7986 * m68k-tdep.c: Include arch-utils.h
7987 (m68k_register_raw_size): Add.
7988 (m68k_register_virtual_size): Add.
7989 (m68k_register_virtual_type): Add.
7990 (m68k_register_name): Add.
7991 (m68k_stack_align): Add.
7992 (m68k_register_byte): Add.
7993 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7996 2002-06-21 Grace Sainsbury <graces@redhat.com>
7998 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7999 m68k_find_saved_regs.
8000 (m68k_pop_frame): Removed saved_regs structure, and replaced
8001 references to it with frame->saved_regs.
8002 (m68k_gdbarch_init): Added function calls to initialize the
8004 (m68k_fix_call_dummy): Add.
8005 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8006 (CALL_DUMMY): Remove.
8007 (CALL_DUMMY_LENGTH): Remove.
8008 (CALL_DUMMY_START_OFFSET): Remove.
8009 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8010 (FIX_CALL_DUMMY): Remove.
8011 (PUSH_DUMMY_FRAME): Remove.
8012 (POP_FRAME): Remove.
8014 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8016 * parse.c (parse_fprintf): New function used to avoid calls to
8017 fprintf in bison parser generated debug code.
8018 * parser-defs.h: Declaration of new parse_fprintf function.
8019 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8020 Set YYDEBUG to 1 by default.
8021 Set YYFPRINTF as parse_fprintf.
8023 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8025 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8027 (pointer_encoding, enum ptr_encoding): New.
8028 (execute_cfa_program): Take care about pointer encoding.
8029 (dwarf2_build_frame_info): Only call parse_frame_info for
8030 .debug_frame and .eh_frame.
8031 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8032 fixed augmentation handling, added relative addressing,
8033 ignore duplicate FDEs. Added comments.
8034 * dwarf2cfi.c: Reindented.
8036 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8038 * event-top.c (command_handler): Don't use space_at_cmd_start
8039 unless there is sbrk() on the host. Assign time and space data
8040 to union fields of the appropriate length.
8042 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8044 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8045 x86_64_register_name. Return type changed to 'const char *'.
8046 (x86_64_register_name2nr): Rename to x86_64_register_number.
8047 (x86_64_gdbarch_init): Update to reflect the change.
8048 * x86-64-tdep.h: Ditto.
8049 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8050 (supply_fpregset): Ditto.
8052 2002-06-19 Andrew Cagney <cagney@redhat.com>
8054 * regcache.h: Update copyright.
8055 (struct regcache, struct gdbarch): Add opaque declarations.
8056 (current_regcache): Declare global variable.
8057 (regcache_read, regcache_write): Add gdbarch parameter.
8058 (regcache_save, regcache_save_no_passthrough)
8059 (regcache_restore, regcache_restore_no_passthrough)
8060 (regcache_dup, regcache_dup_no_passthrough)
8061 (regcache_cpy, regcache_cpy_no_passthrough)
8062 (deprecated_grub_regcache_for_registers)
8063 (deprecated_grub_regcache_for_register_valid)
8064 (regcache_valid_p): Add function declarations.
8066 * regcache.c: Update copyright.
8067 (regcache_descr_handle): New global variable.
8068 (struct regcache_descr): Define.
8069 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8070 (regcache_descr, xfree_regcache_descr): New functions.
8071 (struct regcache): Define.
8072 (regcache_xmalloc, regcache_xfree): New functions.
8073 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8074 (regcache_dup, regcache_dup_no_passthrough): New functions.
8075 (regcache_valid_p, regcache_read_as_address): New functions.
8076 (deprecated_grub_regcache_for_registers): New function.
8077 (deprecated_grub_regcache_for_register_valid): New function.
8078 (current_regcache): New global variable.
8079 (register_buffer): Add regcache parameter. Update calls.
8080 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8081 (read_register_gen, write_register_gen): Update register_buffer
8082 call. Test for legacy_p instead of gdbarch_register_read_p or
8083 gdbarch_register_write_p.
8084 (regcache_collect): Update register_buffer call.
8085 (build_regcache): Rewrite. Use deprecated grub functions.
8086 (regcache_save, regcache_save_no_passthrough): New functions.
8087 (regcache_restore, regcache_restore_no_passthrough): New
8089 (_initialize_regcache): Create the regcache_data_handle. Swap
8090 current_regcache global variable.
8092 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8093 parameter to regcache_read and regcache_write calls.
8094 (sh4_register_read): Ditto.
8095 (sh64_pseudo_register_read): Ditto.
8096 (sh64_register_read): Ditto.
8097 (sh_pseudo_register_write): Ditto.
8098 (sh4_register_write): Ditto.
8099 (sh64_pseudo_register_write): Ditto.
8100 (sh64_register_write): Ditto.
8102 * defs.h (XCALLOC): Define.
8104 2002-06-19 Grace Sainsbury <graces@redhat.com>
8106 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8107 * m68k-tdep.c (m68k_gdbarch_init): Added.
8108 (m68k_dump_tdep): Added.
8110 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8112 * ada-lang.c (fill_in_ada_prototype): Update comment.
8114 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8116 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8118 (mips_abi_string, mips_abi_strings): New.
8119 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8120 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8121 tdep->mips_abi_string. Honor mips_abi_string. Default to
8122 O32 if no ABI is found.
8123 (mips_dump_tdep): Use mips_abi_strings.
8124 (mips_abi_update): New function.
8125 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8126 ``set mips abi'' and ``show mips abi''. Check the size of
8129 2002-06-19 Andrew Cagney <cagney@redhat.com>
8131 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8134 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8136 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8137 current frame using only the first stack size adjustment. All
8138 subsequent size adjustments are not considered to be part of
8139 the "static" part of the current frame.
8140 Compute the address of the saved registers relative to the
8141 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8142 in use in this frame.
8144 2002-06-18 Don Howard <dhoward@redhat.com>
8146 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8147 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8148 suggesting this solution.
8150 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8152 * config/romp/xm-rtbsd.h: Delete file.
8153 * config/romp/rtbsd.mh: Delete file.
8155 2002-06-18 Keith Seitz <keiths@redhat.com>
8157 * breakpoint.c (condition_command): Post breakpoint_modify
8158 when a condition is added to an existing breakpoint.
8159 (commands_command): Likewise for commands.
8160 (set_ignore_count): Likewise for ignore counts.
8161 If no tty, do not simply return, still need to send event
8163 (ignore_command): Only print a newline if the command came
8165 Don't call breakpoints_changed, since this is now properly
8166 handled by set_ignore_count.
8168 2002-06-18 Andrew Cagney <cagney@redhat.com>
8170 * MAINTAINERS: Note that cris-elf target can be compiled with
8172 * cris-tdep.c (cris_register_name): Make return type constant.
8173 (cris_breakpoint_from_pc): Ditto.
8175 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8177 * frame.h (struct frame_info): Change type of context to
8180 2002-06-17 Andrew Cagney <cagney@redhat.com>
8182 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8184 * gdbarch.h, gdbarch.c: Regenerate.
8185 * config/mips/tm-mips.h (mips_register_name): Update.
8186 * i386-tdep.h (i386_register_name): Update.
8187 * mips-tdep.c (mips_register_name): Update
8188 * alpha-tdep.c (alpha_register_name): Update.
8189 * arch-utils.c (legacy_register_name): Update.
8190 * arch-utils.h (legacy_register_name): Update.
8191 * avr-tdep.c (avr_register_name): Update.
8192 * ia64-tdep.c (ia64_register_name): Update.
8193 * i386-tdep.c (i386_register_name): Update.
8194 * sparc-tdep.c (sparc32_register_name): Update.
8195 (sparc64_register_name): Update.
8196 (sparclite_register_name): Update.
8197 (sparclet_register_name): Update.
8198 * sh-tdep.c (sh_generic_register_name): Update.
8199 (sh_sh_register_name): Update.
8200 (sh_sh3_register_name): Update.
8201 (sh_sh3e_register_name): Update.
8202 (sh_sh_dsp_register_name): Update.
8203 (sh_sh3_dsp_register_name): Update.
8204 (sh_sh4_register_name): Update.
8205 (sh_sh64_register_name): Update.
8206 * s390-tdep.c (s390_register_name): Update.
8207 * rs6000-tdep.c (rs6000_register_name): Update.
8208 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8209 (ns32k_register_name_32382): Update.
8210 * d10v-tdep.c (d10v_ts2_register_name): Update.
8211 (d10v_ts3_register_name): Update.
8212 * xstormy16-tdep.c (xstormy16_register_name): Update.
8213 * vax-tdep.c (vax_register_name): Update.
8214 * v850-tdep.c (v850_register_name): Update.
8215 * m68hc11-tdep.c (m68hc11_register_name): Update.
8216 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8217 (am33_register_name): Update.
8219 2002-06-17 Grace Sainsbury <graces@redhat.com>
8221 * m68k-tdep.c: Reindented.
8223 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8225 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8226 list of predefined types.
8228 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8230 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8231 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8232 REGISTER_CONVERT_TO_RAW): Remove defines.
8233 (i386_register_virtual_type, i386_register_convertible,
8234 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8236 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8237 macros mentioned above.
8239 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8240 (i386lynx_saved_pc_after_call): Remove prototype.
8241 * i386ly-tdep.c: Include "i386-tdep.h".
8242 (i386lynx_saved_pc_after_call): Make static. Use
8243 read_memory_nobpt instead of read_memory. Use
8244 read_memory_unsigned_integer instead of read_memory_integer.
8245 (i386lynx_init_abi): New function.
8246 (i386lynx_coff_osabi_sniffer): New function.
8247 (_initialize_i386bsd_tdep): New function.
8249 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8250 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8251 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8252 (i386_fix_call_dummy): Remove prototype.
8253 * i386-tdep.c (i386_call_dummy_words): New variable.
8254 (i386_gdbarch_init): Adjust for removal of the
8255 macros mentioned above.
8257 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8259 * command.h (add_setshow_auto_boolean_cmd): Replace
8260 add_set_auto_boolean_cmd.
8261 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8262 add_set_auto_boolean_cmd.
8263 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8264 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8265 mask-address'' command.
8266 (show_mask_address): Add cmd parameter.
8267 * remote.c (add_packet_config_cmd): Update. Change type of
8268 set_func and show_func to cmd_sfunc_ftype.
8269 (_initialize_remote): Update `set remote Z-packet'
8270 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8271 (show_remote_protocol_e_packet_cmd): Ditto.
8272 (show_remote_protocol_E_packet_cmd): Ditto.
8273 (show_remote_protocol_P_packet_cmd): Ditto.
8274 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8275 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8276 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8277 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8278 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8279 (show_remote_protocol_Z_packet_cmd): Ditto.
8280 (show_remote_protocol_binary_download_cmd): Ditto.
8281 (show_remote_cmd): Pass NULL to all of above.
8283 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8285 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8286 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8287 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8288 POP_FRAME): Remove defines.
8289 (i386_push_arguments, i386_store_struct_return,
8290 i386_extract_return_value, i386_store_return_value,
8291 i386_extract_struct_value_address, i386_push_dummy_frame,
8292 i386_pop_frame): Renove prototypes.
8293 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8294 macros mentioned above.
8296 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8298 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8299 add_set_boolean_cmd.
8300 (add_setshow_cmd): New function.
8301 * command.h (add_setshow_boolean_cmd): Replace
8302 add_set_boolean_cmd.
8303 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8304 and ``set rdiromatzero''.
8305 * maint.c (_initialize_maint_cmds): Update commented out code.
8306 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8307 * target.c (initialize_targets): Update `set
8308 trust-readonly-sections'.
8309 * remote.c (_initialize_remote): Update `set remotebreak'.
8311 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8313 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8314 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8315 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8316 fit into multi-arch framework.
8317 (i386_breakpoint_from_pc): New function.
8318 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8321 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8322 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8323 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8324 (i386_frameless_function_invocation, i386_frame_num_args,
8325 i386_frame_init_saved_regs): Remove prototypes.
8326 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8327 macros mentioned above.
8329 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8331 * cli/cli-decode.c (set_cmd_cfunc): Update.
8332 (set_cmd_sfunc): Update.
8333 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8334 (set_cmd_sfunc, set_cmd_cfunc): Update.
8335 * cli/cli-decode.h: Update.
8337 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8339 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8340 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8342 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8344 * defs.h (auto_boolean): Declare enum.
8345 * command.h (cmd_auto_boolean): Delete enum.
8346 * mips-tdep.c (mask_address_var): Update.
8347 (mips_mask_address_p): Update.
8348 (show_mask_address): Update.
8349 * remote.c (struct packet_config): Update.
8350 (update_packet_config): Update.
8351 (show_packet_config_cmd): Update.
8352 (packet_ok): Update.
8353 (add_packet_config_cmd): Update.
8354 (_initialize_remote):
8355 * command.h: Update.
8356 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8357 (do_setshow_command): Update.
8358 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8359 * cli/cli-decode.h: Update.
8361 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8363 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8364 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8365 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8366 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8367 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8368 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8370 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8371 list of DJGPP COFF targets.
8373 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8374 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8375 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8376 (FP0_REGNUM): Remove define.
8377 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8378 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8379 (i386_register_virtual_size): Remove protoype.
8380 * i386-tdep.c (i386_register_virtual_size): Removed.
8381 (i386_extract_return_value, i386_store_return_value): Use
8382 FP0_REGNUM instead of NUM_FREGS to determine whether the
8383 floating-point registers are available.
8384 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8385 Adjust for removal of macros mentioned above.
8387 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8389 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8391 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8393 (supply_gregset, fill_gregset): Remove use of register keyword and
8394 remove declaration for regmap. Use I386_NUM_GREGS instead of
8395 NUM_REGS and NUM_FREGS.
8396 (FPREGSET_FSAVE_OFFSET): Remove.
8397 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8398 NUM_FREGS to determine whether the floating-point registers are
8401 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8402 gnu_store_registers): Replace usage of NUM_GREGS with
8405 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8406 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8407 usage of NUM_GREGS with I386_NUM_GREGS.
8409 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8411 * i386bsd-nat.c: Include "i386-tdep.h".
8412 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8415 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8416 and associated comment. They no longer make any sense, since we
8417 don't use this file anymore on Linux.
8419 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8420 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8421 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8422 elements in these arrays.
8423 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8426 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8428 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8429 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8431 2002-06-14 Andrew Cagney <cagney@redhat.com>
8433 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8434 EXTRACT_RETURN_VALUE.
8435 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8436 EXTRACT_STRUCT_VALUE_ADDRESS.
8437 * gdbarch.h, gdbarch.c: Regenerate.
8439 * values.c (value_being_returned): Handle
8440 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8441 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8443 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8444 * arm-tdep.c (arm_gdbarch_init): Update.
8445 * avr-tdep.c (avr_gdbarch_init): Update.
8446 * cris-tdep.c (cris_gdbarch_init): Update.
8447 * d10v-tdep.c (d10v_gdbarch_init): Update.
8448 * ia64-tdep.c (ia64_gdbarch_init): Update.
8449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8450 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8451 * s390-tdep.c (s390_gdbarch_init): Update.
8452 * sh-tdep.c (sh_gdbarch_init): Update.
8453 * s390-tdep.c (s390_gdbarch_init): Update.
8454 * sparc-tdep.c (sparc_gdbarch_init): Update.
8455 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8456 * v850-tdep.c (v850_gdbarch_init): Update.
8457 * vax-tdep.c (vax_gdbarch_init): Update.
8458 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8461 * config/arc/tm-arc.h: Update.
8462 * config/d30v/tm-d30v.h: Update.
8463 * config/fr30/tm-fr30.h: Update.
8464 * config/h8300/tm-h8300.h: Update.
8465 * config/h8500/tm-h8500.h: Update.
8466 * config/i386/tm-i386.h: Update.
8467 * config/i386/tm-ptx.h: Update.
8468 * config/i386/tm-symmetry.h: Update.
8469 * config/i960/tm-i960.h: Update.
8470 * config/m32r/tm-m32r.h: Update.
8471 * config/m68k/tm-delta68.h: Update.
8472 * config/m68k/tm-linux.h: Update.
8473 * config/m68k/tm-m68k.h: Update.
8474 * config/m88k/tm-m88k.h: Update.
8475 * config/mcore/tm-mcore.h: Update.
8476 * config/mips/tm-mips.h: Update.
8477 * config/mn10200/tm-mn10200.h: Update.
8478 * config/pa/tm-hppa.h: Update.
8479 * config/pa/tm-hppa64.h: Update.
8480 * config/sparc/tm-sp64.h: Update.
8481 * config/sparc/tm-sparc.h: Update.
8482 * config/sparc/tm-sparclet.h: Update.
8483 * config/z8k/tm-z8k.h: Update.
8485 2002-06-14 Andrew Cagney <cagney@redhat.com>
8487 * Makefile.in (i386_linux_tdep_h): Define.
8488 (i386_tdep_h, i387_tdep_h): Define.
8489 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8490 $(i386_tdep_h) and $(i387_tdep_h).
8491 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8493 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8495 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8496 Already covered by the default.
8498 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8499 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8500 (i386_gdbarch_init): Initialize long_double_format and long_double
8503 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8504 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8506 * config/i386/i386sol2.mh: ... here.
8507 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8508 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8509 (SIGCONTEXT_PC_OFFSET): Remove define.
8510 (IN_SIGTRAMP): Remove define.
8511 * i386-sol2-tdep.c: New file.
8513 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8514 * config/i386/tm-i386nw.h: Removed.
8516 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8517 USE_STRUCT_CONVENTION): Remove defines.
8518 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8519 (get_longjmp_target): Remove prototype.
8520 (IN_SIGTRAMP): Remove define.
8521 (i386bsd_in_sigtramp): Remove prototype.
8522 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8523 function. Update comment accordingly
8524 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8525 (FRAME_SAVED_PC): Remove define.
8526 (i386bsd_frame_saved_pc): Remove prototype.
8527 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8528 GET_LONGJMP_TARGET): Remove defines.
8529 (get_longjmp_target): Remove prototype.
8530 (IN_SIGTRAMP): Remove define.
8531 (i386bsd_in_sigtramp): Remove prototype.
8532 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8533 function. Update comment accordingly
8534 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8535 (FRAME_SAVED_PC): Remove define.
8536 (i386bsd_frame_saved_pc): Remove prototype.
8537 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8539 (USE_STRUCT_CONVENTION): Remove prototype.
8540 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8542 (_initialize_i386bsd_nat): Revise logic to determine some
8543 constants at compile time when compiling a native GDB. Warn if
8544 things don't match up with what we expect.
8545 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8547 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8548 to use date stored in `struct gdbarch_tdep'.
8549 (i386bsd_sigcontext_offset): Remove varaible.
8550 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8551 stored in `struct gdbarch_tdep'.
8552 (i386bsd_frame_saved_pc): Make static.
8553 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8554 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8555 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8556 i386fbsd4_sc_pc_offset): New variables.
8557 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8558 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8560 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8562 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8563 Modify the value of i386fbsd_sigtramp_start and
8564 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8565 i386fbsd_sigtramp_end.
8566 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8569 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8570 define to i386-linux-tdep.h.
8571 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8572 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8574 (i386_linux_register_name, i386_linux_register_byte,
8575 i386_linux_register_raw_size): Remove prototypes.
8576 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8577 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8578 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8579 TARGET_WRITE_PC): Remove defines.
8580 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8581 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8582 i386_linux_write_pc): Remove prototypes.
8583 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8584 (get_longjmp_target): Remove prototype.
8585 * i386-linux-tdep.h: New file.
8586 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8587 * i386-linux-tdep.c: Include "i386-tdep.h" and
8588 "i386-linux-tdep.h".
8589 (i386_linux_register_name, i386_linux_register_byte,
8590 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8591 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8593 (i386_linux_init_abi): New function.
8594 (_initialize_i386_linux_tdep): New function.
8596 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8597 (i386_saved_pc_after_call): Remove prototype.
8598 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8599 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8600 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8601 (i386_register_name, i386_stab_reg_to_regnum,
8602 i386_dwarf_reg_to_regnum): Remove prototypes.
8603 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8604 SIZEOF_SSE_REGS): Remove defines.
8605 (REGISTER_BYTES): Remove define.
8606 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8607 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8608 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8609 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8610 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8611 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8612 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8613 (get_longjmp_target): Remove prototype.
8614 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8615 (sigtramp_saved_pc): Remove define.
8616 (i386v4_sigtramp_saved_pc): Remove prototype.
8617 * config/i386/tm-go32.h (FRAME_CHAIN,
8618 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8619 (i386go32_frame_saved_pc): Remove prototype.
8620 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8621 (get_longjmp_target): Remove prototype.
8622 * i386-tdep.h: Include "osabi.h".
8623 (enum i386_abi): Removed.
8624 (enum struct_return): New enum.
8625 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8626 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8627 sc_pc_offset members.
8628 (i386_gdbarch_register_os_abi): Remove prototype.
8629 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8630 I386_SSE_NUM_REGS): New defines.
8631 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8632 I386_SSE_SIZEOF_REGS): New defines.
8633 (i386_register_name, i386_register_byte, i386_register_raw_size):
8635 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8636 (i386bsd_sigtramp_saved_pc): New prototype.
8637 * i386-tdep.c: Don't include "elf-bfd.h".
8638 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8639 i386_frame_chain, i386_saved_pc_after_call): Make static.
8640 (i386_frame_saved_pc): Rewrite to call architecture dependent
8641 function to deal with signal handlers. Make static.
8642 (i386go32_frame_saved_pc): Removed.
8643 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8645 (i386_get_longjmp_target): New function.
8646 (default_struct_convention, pcc_struct_convention,
8647 reg_struct_convention, valid_conventions, struct_convention): New
8649 (i386_use_struct_convention): New function.
8650 (i386v4_sigtramp_saved_pc): Renamed to
8651 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8652 (i386_pc_in_sigtramp): New function.
8653 (i386_abi_names): Removed.
8654 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8655 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8657 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8658 i386_gdbarch_register_os_abi): Removed.
8659 (struct i386_abi_handler): Removed.
8660 (i386_abi_handler_list): Removed.
8661 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8663 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8664 i386_nw_init_abi): New functions.
8665 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8666 Use set_gdbarch_xxx() calls instead of relying on macros for a
8668 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8669 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8670 Register the various architecture variants defined in this file.
8672 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8674 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8675 (struct main_type): Remove arg_types member. Update comments for
8677 (TYPE_ARG_TYPES): Remove.
8678 (TYPE_FN_FIELD_ARGS): Update.
8679 (smash_to_method_type): Update prototype.
8681 * c-typeprint.c (cp_type_print_method_args): Take method type
8682 instead of argument list. Use new argument layout. Simplify.
8683 (c_type_print_args): Use new argument layout. Simplify.
8684 (c_type_print_base): Update call to cp_type_print_method_args.
8685 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8686 argument; use die->type instead. Update call to
8687 smash_to_method_type.
8688 (read_structure_scope): Update call to dwarf2_add_member_fn.
8689 * gdbtypes.c (allocate_stub_method): Update comment.
8690 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8691 Use new argument layout.
8692 (check_stub_method): Use new argument layout. Don't count
8693 void as an argument.
8694 (print_arg_types): Update comments. Use new argument layout.
8695 (recursive_dump_type): Don't print arg_types member.
8696 * hpread.c (hpread_read_struct_type): Use new argument layout.
8697 (fixup_class_method_type): Likewise.
8698 (hpread_type_lookup): Likewise.
8699 * stabsread.c (read_type): Update calls to read_args and
8700 smash_to_method_type.
8701 (read_args): Use new argument layout. Simplify.
8702 * valops.c (typecmp): Use new argument layout. Update parameters
8703 and comments. Simplify.
8704 (hand_function_call): Use new argument layout.
8705 (search_struct_method): Update call to typecmp.
8706 (find_overload_match): Use new argument layout.
8708 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8710 * NEWS: Mention multithreaded debug support for gdbserver.
8712 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8714 * MAINTAINERS: Mention NEWS.
8716 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8718 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8719 (struct mips_objfile_private, compare_pdr_entries): New.
8720 (non_heuristic_proc_desc): Read the ".pdr" section if it
8723 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8725 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8726 (arm_debug): New static variable.
8727 (_initialize_arm_tdep): Add ``set debug arm'' command.
8729 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8731 * Makefile.in (sim_arm_h): Define.
8732 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8733 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8734 (arm_register_sim_regno): New function, map an internal REGNUM
8735 onto a simulator register number.
8736 (arm_gdbarch_init): Set register_sim_regno.
8738 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8740 * MAINTAINERS: Add self.
8742 2002-06-11 Jim Blandy <jimb@redhat.com>
8744 * source.c (source_info): Mention whether the symtab has
8745 information about preprocessor macros.
8747 Call the command `info macro', not `show macro'.
8748 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8750 (_initialize_macrocmd): Register `info_macro_command' in
8751 `infolist', not `showlist'.
8753 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8755 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8756 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8757 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8758 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8759 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8761 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8762 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8763 (_initialize_mips_tdep): Remove dead code.
8764 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8765 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8766 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8767 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8768 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8769 MIPS_LAST_FP_ARG_REGNUM): Remove.
8771 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8773 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8774 (unwind_tmp_obstack_free, parse_frame_info)
8775 (update_context, cfi_read_fp, cfi_write_fp)
8776 (cfi_frame_chain, cfi_init_extra_frame_info)
8777 (cfi_virtual_frame_pointer): Use the above function.
8778 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8780 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8782 * v850-tdep.c (v850_type_is_scalar): New function.
8783 (v850_use_struct_convention): Match current gcc implementation
8784 as close as possible.
8785 (v850_push_arguments): Fix stack_offset handling. Don't write
8786 struct_addr into register. This is done by v850_store_struct_return.
8787 (v850_extract_return_value): Care for structs.
8788 (v850_store_return_value): Ditto.
8789 (v850_store_struct_return): Actually write address.
8791 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8793 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8794 without debug information too.
8796 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8798 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8799 Make multi-arch pure.
8800 * gdbarch.h, gdbarch.c: Re-generate.
8801 * arm-tdep.c (arm_print_float_info): Update.
8802 * arch-utils.h (default_print_float_info): Update.
8803 * arch-utils.c (default_print_float_info): Update.
8804 * infcmd.c (float_info): Update call.
8806 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8808 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8809 the front of the initialize list.
8811 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8813 * infrun.c (struct inferior_status): Replace fields
8814 selected_frame_address and selected_level with field
8816 (save_inferior_status): Update. Use get_frame_id.
8817 (struct restore_selected_frame_args): Delete.
8818 (restore_selected_frame): Update. Use frame_find_by_id.
8819 (restore_inferior_status): Update.
8821 * breakpoint.h (struct breakpoint): Change type of
8822 watchpoint_frame to frame_id.
8823 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8824 call to get_current_frame.
8825 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8827 (watchpoint_check): Use frame_find_by_id.
8829 * frame.h (record_selected_frame): Delete declaration.
8830 * stack.c (record_selected_frame): Delete function.
8832 * frame.h (struct frame_id): Define.
8833 (get_frame_id): Declare.
8834 (frame_find_by_id): Declare.
8835 * frame.c (frame_find_by_id): New function.
8836 (get_frame_id): New function.
8838 2002-06-10 Andrey Volkov <avolkov@transas.com>
8840 * ser-e7kpc.c: Fix duplicated define and call of
8841 _initialize_ser_e7000pc
8843 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8845 * signals/signals.c (target_signal_from_host): Fix #ifdef
8847 (do_target_signal_to_host): Likewise.
8849 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8851 * mips-tdep.c (mips_find_abi_section): New function.
8852 (mips_gdbarch_init): Call it.
8854 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8856 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8857 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8858 after Andrew's 2002-06-08 gdbarch change.
8860 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8862 * i386-linux-nat.c (suppy_gregset): Don't supply
8863 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8865 (fill_gregset): Don't fetch it under the same circumstances.
8867 2002-06-09 Andrew Cagney <cagney@redhat.com>
8869 * Makefile.in (callback_h): Define.
8870 (remote_sim_h): Update path to remote-sim.h.
8871 (remote-rdp.o): Add $(callback_h).
8872 (remote-sim.o): Use $(callback_h).
8873 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8874 * remote-rdp.c: Include "gdb/callback.h".
8876 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8878 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8879 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8881 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8883 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8884 * rdi-share/serpardr.c: Ditto.
8885 * rdi-share/unixcomm.c: Ditto.
8886 * rdi-share/serdrv.c: Ditto.
8887 * rdi-share/hostchan.h: Ditto.
8888 * rdi-share/hostchan.c: Ditto.
8889 * rdi-share/host.h: Ditto.
8890 * rdi-share/devsw.c: Ditto.
8892 * objfiles.h: Change type of obj_private to void pointer.
8893 * pa64solib.c: Update copyright. Don't include "assert.h", use
8894 strcmp instead of STREQ, use LONGEST, do not use PTR
8895 * somsolib.c: Ditto.
8897 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8898 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8899 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8901 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8903 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8904 (default_get_saved_register): Delete function.
8905 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8906 generic_unwind_get_saved_register.
8907 * gdbarch.h, gdbarch.c: Re-generate.
8909 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8911 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8912 generic_func_frame_chain_valid.
8913 * gdbarch.h, gdbarch.c: Re-generate.
8914 * blockframe.c (generic_func_frame_chain_valid): Only check
8915 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8916 passing FP to PC_IN_CALL_DUMMY.
8919 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8921 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8922 (register_gdbarch_data): Initialize init_p.
8923 (gdbarch_data): Initialize data pointer using the init function.
8924 (init_gdbarch_data): Delete function.
8925 (gdbarch_update_p): Update.
8926 (initialize_non_multiarch): Update.
8927 (struct gdbarch): Add field initialized_p.
8928 * gdbarch.h, gdbarch.c: Re-generate.
8930 2002-06-07 Michal Ludvig <mludvig@suse.cz>
8932 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8933 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8934 better do the things actually here.
8935 * x86-64-tdep.c (x86_64_register_name2nr): New.
8936 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8937 (x86_64_gdbarch_init): Respect the above change.
8938 * x86-64-tdep.h (x86_64_register_name2nr)
8939 (x86_64_register_nr2name): Add prototypes.
8940 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8942 2002-06-06 Michael Snyder <msnyder@redhat.com>
8944 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8945 Delete extra braces and re-indent.
8946 (d10v_store_return_value): Char return values
8947 must be shifted over by one byte in R0.
8948 (d10v_extract_return_value): Delete extra braces, re-indent.
8950 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8952 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8953 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8954 (d10v_integer_to_address): Rewrite.
8955 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8956 the d10v specific functions which take care of converting to the
8959 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
8961 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8962 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8964 2002-06-02 Andrew Cagney <ac131313@redhat.com>
8966 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8968 * config/tm-linux.h: Ditto.
8969 * config/alpha/tm-alphalinux.h: Ditto.
8970 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8971 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8972 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8973 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8974 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8975 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8976 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8977 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8978 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8979 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8980 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8981 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8982 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8983 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8984 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8985 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8986 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8987 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8988 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8989 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8990 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8991 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8992 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8993 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8994 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8995 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8996 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8997 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8998 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8999 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9000 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9001 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9002 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9003 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9004 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9005 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9006 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9008 2002-05-04 Aidan Skinner <aidan@velvet.net>
9010 * ada-exp.tab.c: New file
9011 * ada-exp.y: New file
9012 * ada-lang.c: New file
9013 * ada-lang.h: New file
9014 * ada-lex.c: New file
9015 * ada-lex.l: New file
9016 * ada-tasks.c: New file
9017 * ada-typeprint.c: New file
9018 * ada-valprint.c: New file
9020 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9022 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9023 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9025 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9027 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9028 insetead of ppc-linux-tdep.o.
9029 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9030 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9032 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9034 2002-05-07 Christian Groessler <chris@groessler.org>
9035 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9036 bit register contents for little endian hosts.
9038 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9040 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9043 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9045 * gdbarch.h: Regenerate.
9047 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9049 * MAINTAINERS: Add everyone to write-after-approval list.
9051 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9053 * stack.c (frame_info): Use frame_register_unwind instead of
9054 saved_regs. Mention when the SP is on the stack or in a register.
9056 * frame.h (frame_register_unwind_ftype): Define. Document.
9057 (struct frame_info): Add field register_unwind and
9058 register_unwind_cache.
9059 (frame_register_unwind): Declare.
9060 (generic_unwind_get_saved_register): Declare.
9062 * frame.c (frame_register_unwind): New function.
9063 (generic_unwind_get_saved_register): New function.
9065 * blockframe.c (generic_call_dummy_register_unwind): New function.
9066 (frame_saved_regs_register_unwind): New function.
9067 (set_unwind_by_pc): New function.
9068 (create_new_frame): New function.
9069 (get_prev_frame): New function.
9071 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9073 * a29k-share/: Delete directory.
9074 * remote-vx29k.c: Delete file.
9076 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9078 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9079 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9081 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9083 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9084 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9087 (sparcnbsd-tdep.o): New dependency lists.
9088 * NEWS: Note new UltraSPARC NetBSD native configuration.
9089 * configure.host (sparc64-*-netbsd*): New host.
9090 * configure.tgt (sparc-*-netbsdelf*)
9091 (sparc-*-netbsd*): Set gdb_target to nbsd.
9092 (sparc64-*-netbsd*): New target.
9093 * sparc64nbsd-nat.c: New file.
9094 * sparcnbsd-nat.c: New file.
9095 * sparcnbsd-tdep.c: New file.
9096 * sparcnbsd-tdep.h: New file.
9097 * config/sparc/nbsd.mt: New file.
9098 * config/sparc/nbsd64.mh: New file.
9099 * config/sparc/nbsd64.mt: New file.
9100 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9101 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9103 * config/sparc/nbsdaout.mt: Remove.
9104 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9105 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9107 * config/sparc/nbsdelf.mt: Remove.
9108 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9109 sparc-nat.c compatiblity defines.
9110 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9111 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9112 * config/sparc/tm-nbsd64.h: New file.
9113 * config/sparc/tm-nbsdaout.h: Remove.
9114 * config/sparc/xm-nbsd.h: Remove.
9116 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9118 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9119 * sparc-tdep.c: Include osabi.h.
9120 (gdbarch_tdep): Add osabi member.
9121 (_initialize_sparc_tdep): Use gdbarch_register.
9122 (sparc_gdbarch_init): Use generic OS ABI framework.
9123 (sparc_dump_tdep): New function.
9125 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9127 * corefile.c (do_captured_read_memory_integer): Return non-zero
9129 (safe_read_memory_integer): Copy result of memory read when
9130 status is non-zero. Also, add comments.
9132 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9134 * Makefile.in (ppc_tdep_h): Define.
9137 (rs6000-tdep.o): Use $(ppc_tdep_h).
9140 (ppcnbsd-tdep.o): New dependency lists.
9141 * ppc-tdep.h: Use generic OS ABI framework.
9142 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9143 (ppc_linux_init_abi): New functions.
9144 (ppc_sysv_abi_broken_use_struct_convention)
9145 (ppc_sysv_abi_use_struct_convention)
9146 (ppc_sysv_abi_push_arguments): Move to...
9147 * ppc-sysv-tdep.c: ...here.
9148 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9149 * rs6000-tdep.c (process_note_abi_tag_sections)
9150 (get_elfosabi): Remove.
9151 (rs6000_gdbarch_init): Use generic OS ABI framework.
9152 (rs6000_dump_tdep): New function.
9153 (_initialize_rs6000_tdep): Use gdbarch_register.
9154 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9155 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9156 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9157 of ppc-linux-tdep.o.
9158 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9159 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9160 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9161 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9162 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9163 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9165 2002-05-29 Jim Blandy <jimb@redhat.com>
9167 * macroscope.c (default_macro_scope): Put `void' in empty argument
9170 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9172 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9173 * arch-utils.c: Include "sim-regno.h".
9174 * gdbarch.sh: Don't include "sim-regno.h".
9175 * gdbarch.h, gdbarch.c: Regenerate.
9176 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9178 * arch-utils.h (legacy_register_sim_regno): To here.
9179 * remote-sim.c (legacy_register_sim_regno): Move function from
9181 * arch-utils.c (legacy_register_sim_regno): To here.
9183 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9185 * sim-regno.h: New file.
9186 * Makefile.in (sim_regno_h): Define.
9187 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9188 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9189 (legacy_register_sim_regno): New function.
9190 (one2one_register_sim_regno): New function.
9191 (gdbsim_fetch_register): Rewrite.
9192 (gdbsim_store_register): Only store a register when
9193 REGISTER_SIM_REGNO is valid.
9194 * d10v-tdep.c: Include "sim-regno.h".
9195 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9196 (d10v_ts3_register_sim_regno): Ditto.
9197 * gdbarch.sh: Include "sim-regno.h".
9198 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9199 * gdbarch.h, gdbarch.c: Regenerate.
9200 * arch-utils.h (default_register_sim_regno): Delete declaration.
9201 * arch-utils.c (default_register_sim_regno): Delete function.
9203 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9205 * ppcnbsd-nat.c: Rewrite.
9206 * ppcnbsd-tdep.c: New file.
9207 * ppcnbsd-tdep.h: New file.
9208 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9209 solib.o, and solib-svr4.o.
9210 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9211 nbsd-tdep.o, and corelow.o.
9213 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9215 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9216 `tr' and `sed'. Mention that `broken' targets are not expected to
9219 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9221 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9222 Let PC point right after the prologue before looking up symbols.
9224 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9226 * i386-tdep.c (i386_register_virtual_type): Return
9227 builtin_type_vec128i for SSE registers.
9229 * gdbtypes.h (builtin_type_vec128i): Declare.
9231 * gdbtypes.c (build_builtin_type_vec128i): New function.
9232 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9233 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9234 (build_gdbtypes): Initialize new builtin vector types.
9235 (_initialize_gdbtypes): Register new vector types with gdbarch.
9237 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9239 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9240 since it has been multi-arch'd.
9241 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9242 Move Alpha and VAX multi-arch news entries to same section
9243 as other multi-arch news.
9245 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9247 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9248 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9249 static. Rename some register numbers to put them in ns32k-tdep
9251 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9252 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9254 (_initialize_ns32k_tdep): Use gdbarch_register.
9255 * ns32k-tdep.h: New file.
9256 * ns32knbsd-tdep.c: New file.
9257 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9258 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9259 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9260 REGISTER_BYTES, REGISTER_BYTE): Remove.
9261 * config/ns32k/tm-ns32k.h: New file.
9262 * config/ns32k/tm-umax.h: Remove.
9264 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9266 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9267 ns32k_store_struct_return, ns32k_extract_return_value,
9268 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9270 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9271 ns32k_saved_pc_after_call.
9272 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9273 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9274 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9275 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9276 ns32k_extract_struct_value_address.
9278 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9280 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9281 ns32k_fix_call_dummy): New.
9282 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9283 ns32k_call_dummy_words.
9284 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9285 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9286 CALL_DUMMY_NARGS): Remove.
9287 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9289 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9291 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9292 ns32k_frame_saved_pc, ns32k_frame_args_address,
9293 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9294 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9295 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9296 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9297 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9298 (BREAKPOINT): Remove..
9299 (FRAME_CHAIN): Define as ns32k_frame_chain.
9300 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9301 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9302 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9303 (FRAME_FIND_SAVED_REGS): Remove.
9304 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9305 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9306 (POP_FRAME): Define as ns32k_pop_frame.
9308 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9310 * ns32k-tdep.c (ns32k_register_byte_32082,
9311 ns32k_register_byte_32382, ns32k_register_raw_size,
9312 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9314 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9315 ns32k_register_byte_32382.
9316 * config/ns32k/tm-umax.h: Update copyright years.
9317 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9318 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9319 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9320 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9321 (ns32k_get_enter_addr): Fix prototype.
9323 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9325 * ns32k-tdep.c: Update copyright years.
9326 (ns32k_register_name_32082): New function.
9327 (ns32k_register_name_32382): Ditto.
9328 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9329 (REGISTER_NAME): Define as ns32k_register_name_32382.
9330 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9331 (REGISTER_NAME): Define as ns32k_register_name_32082.
9333 2002-05-24 Jim Blandy <jimb@redhat.com>
9335 * dwarf2read.c (free_line_header): Use xfree, not free.
9337 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9339 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9340 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9342 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9344 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9346 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9348 From Ross Alexander at NEC Europe:
9349 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9351 2002-05-23 Michael Snyder <msnyder@redhat.com>
9353 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9354 for input, rather than parse_and_eval_address.
9356 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9358 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9359 * Makefile.in (sim_d10v_h): Update definition.
9361 2002-05-24 Andrew Cagney <cagney@redhat.com>
9363 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9364 change `2002-05-22 Michael Snyder' below.
9365 (d10v_push_arguments): Ditto.
9366 (d10v_extract_return_value): Ditto.
9368 2002-05-23 Jim Blandy <jimb@redhat.com>
9370 * macrotab.c (check_for_redefinition): Don't complain if the new
9371 definition is the same as the previous one. Take more arguments
9372 to allow the comparison.
9373 (macro_define_object, macro_define_function): Pass more arguments
9374 to check_for_redefinition.
9376 2002-05-22 Michael Snyder <msnyder@redhat.com>
9378 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9379 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9380 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9381 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9382 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9383 Add a temp variable to save a call (and a memory read).
9384 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9385 if possible (so that PC_IN_CALL_DUMMY will work).
9387 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9389 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9391 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9393 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9395 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9396 (dwarf2_build_frame_info): Add offset to fde->initial_location
9397 so that frames of shared libraries are mapped correctly.
9398 (execute_stack_op): Change type of 'result' from ULONGEST to
9401 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9403 * config/alpha/tm-nbsd.h: Include solib.h.
9405 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9407 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9408 assumptions about the host's byte order.
9410 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9412 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9414 * alphanbsd-tdep.c: Include solib-svr4.h.
9415 * shnbsd-tdep.c: Ditto.
9417 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9419 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9420 nbsd-tdep.h to dependency list.
9421 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9422 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9423 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9424 nbsdaout.mh and nbsdelf.mh consistently.
9425 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9426 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9427 nbsdaout.mt and nbsdelf.mh consistently.
9428 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9429 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9430 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9431 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9432 a.out shared library stuff from here...
9433 * config/nm-nbsdaout.h: ...to here.
9434 * config/tm-nbsd.h: Remove.
9435 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9436 * config/arm/nbsd.mh: Remove.
9437 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9439 * config/arm/nbsdaout.mh: New file.
9440 * config/arm/nbsdelf.mh: New file.
9441 * config/arm/nm-nbsdaout.h: New file.
9442 * config/i386/nbsd.mh: Remove.
9443 * config/i386/nbsd.mt: Remove.
9444 * config/i386/nbsdaout.mh: New file.
9445 * config/i386/nbsdaout.mt: New file.
9446 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9447 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9448 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9449 i386_register_u_addr): Remove.
9450 * config/i386/nm-nbsdaout.h: New file.
9451 * config/i386/nm-nbsdelf.h: Remove.
9452 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9453 (USE_STRUCT_CONVENTION): Remove.
9454 * config/i386/tm-nbsdaout.h: New file.
9455 * config/i386/tm-nbsdelf.h: Remove.
9456 * config/m68k/nbsd.mh: Remove.
9457 * config/m68k/nbsd.mt: Remove.
9458 * config/m68k/nbsdaout.mh: New file.
9459 * config/m68k/nbsdaout.mt: New file.
9460 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9461 * config/m68k/nm-nbsdaout.h: New file.
9462 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9463 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9464 * config/ns32k/nbsd.mh: Remove.
9465 * config/ns32k/nbsd.mt: Remove.
9466 * config/ns32k/nbsdaout.mh: New file.
9467 * config/ns32k/nbsdaout.mt: New file.
9468 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9469 * config/ns32k/nm-nbsdaout.h: New file.
9470 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9471 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9472 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9473 (SVR4_SHARED_LIBS): Remove.
9474 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9475 * config/sparc/nbsd.mh: Remove.
9476 * config/sparc/nbsd.mt: Remove.
9477 * config/sparc/nbsdaout.mh: New file.
9478 * config/sparc/nbsdaout.mt: New file.
9479 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9480 * config/sparc/nbsdelf.mt: New file.
9481 * config/sparc/nm-nbsdaout.h: New file.
9482 * config/sparc/nm-nbsdelf.h: Remove.
9483 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9484 * config/sparc/tm-nbsdaout.h: New file.
9486 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9488 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9490 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9492 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9494 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9496 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9498 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9500 * NEWS: Note new MIPS NetBSD native configuration.
9501 * configure.host (mips*-*-netbsd*): New host.
9502 * configure.tgt (mips*-*-netbsd*): New target.
9503 * mipsnbsd-nat.c: New file.
9504 * mipsnbsd-tdep.c: New file.
9505 * mipsnbsd-tdep.h: New file.
9506 * config/mips/nbsd.mh: New file.
9507 * config/mips/nbsd.mt: New file.
9508 * config/mips/nm-nbsd.h: New file.
9509 * config/mips/tm-nbsd.h: New file.
9511 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9513 * Makefile.in (SFILES): Add osabi.c.
9514 (COMMON_OBS): Add osabi.o.
9515 (osabi.o): New dependency list.
9516 * osabi.c: New file.
9517 * osabi.h: New file.
9518 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9520 * Makefile.in (alpha_tdep_h): Define and use instead of
9522 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9523 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9525 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9526 * alpha-tdep.h: Include osabi.h.
9527 (alpha_abi): Remove.
9528 (gdbarch_tdep): Use generic OS ABI framework.
9529 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9530 gdbarch_register_osabi.
9531 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9532 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9533 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9535 * Makefile.in (sh_tdep_h): Add osabi.h.
9536 * sh-tdep.h (sh_osabi): Remove.
9537 (gdbarch_tdep): Use generic OS ABI framework.
9538 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9539 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9540 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9541 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9543 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9544 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9545 gdbarch_register_osabi.
9546 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9547 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9548 (get_elfosabi): Rename to...
9549 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9550 ABI framework support routines.
9551 (arm_gdbarch_init): Use generic OS ABI framework.
9552 (arm_dump_tdep): Likewise.
9553 (_initialize_arm_tdep): Likewise.
9554 * arm-tdep.h: Include osabi.h.
9556 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9558 (arm_gdbarch_register_os_abi): Remove prototype.
9559 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9560 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9562 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9563 * mips-tdep.c: Include osabi.h.
9564 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9567 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9569 * h8300-tdep.c: Fix formatting.
9571 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9573 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9574 printing vector registers.
9576 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9578 From Fernando Nasser:
9579 * remote.c (remote_async_open_1): Re-throw the exception when the
9581 (remote_cisco_open): Ditto.
9582 (remote_open_1): Ditto.
9584 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9586 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9587 (remote_start_remote): Add uiout parameter. Pass through to
9588 remote_start_remote_dummy.
9589 (remote_open_1): Use catch_exception instead of catch_errors.
9590 (remote_async_open_1): Ditto.
9591 (remote_cisco_open): Ditto.
9593 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9595 * remote.c (remote_start_remote): Replace PTR with void pointer.
9596 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9599 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9601 * gdb_indent.sh: Allow the script to be run in the sim directory.
9603 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9605 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9606 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9608 * corelow.c (core_open): Only call set_gdbarch_from_file if
9611 2002-05-17 Andrey Volkov <avolkov@transas.com>
9613 * h8300-tdep.c: Add support of EXR register
9614 * config/h8300/tm-h8300.h: Ditto.
9616 2002-05-17 Andrey Volkov <avolkov@transas.com>
9618 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9620 2002-05-17 Andrey Volkov <avolkov@transas.com>
9622 * h8300-tdep.c: Change literal regnums to REGNO.
9624 2002-05-17 Jim Blandy <jimb@redhat.com>
9626 * NEWS: Note addition of macro support.
9628 Expand preprocessor macros in C expressions.
9629 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9630 (scan_macro_expansion, scanning_macro_expansion,
9631 finished_macro_expansion): New function declarations.
9632 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9633 variable declarations.
9634 * parser-defs.h (expression_context_pc): New declaration.
9635 * parse.c (expression_context_pc): New variable.
9636 (parse_exp_1): Set expression_context_pc, as well as
9637 expression_context_block.
9638 * c-exp.y (yylex): If we're not already reading the result of a
9639 macro expansion, try to macro-expand the next token. When we're
9640 done scanning a macro expansion, switch back to the mainline text.
9641 Commas and `if's in a macro's expansion don't terminate the input.
9642 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9643 (macro_original_text, macro_expanded_text,
9644 expression_macro_lookup_func, expression_macro_lookup_baton): New
9646 (scan_macro_expansion, scanning_macro_expansion,
9647 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9648 c_preprocess_and_parse): New functions.
9649 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9650 c_preprocess_and_parse, instead of c_parse.
9651 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9652 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9654 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9656 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9657 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9658 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9660 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9662 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9664 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9666 * Makefile.in (sh_tdep_h): Define and use.
9667 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9668 register enum): Move to...
9669 * * sh-tdep.h: ...here.
9670 * sh-tdep.c: Include sh-tdep.h.
9671 * sh3-rom.c: Likewise.
9672 * shnbsd-tdep.c: Likewise.
9674 2002-05-16 Michael Snyder <msnyder@redhat.com>
9676 * arm-tdep.c: Spelling fix in comment.
9678 2002-05-16 Jim Blandy <jimb@redhat.com>
9680 Add commands for manually expanding macros and showing their
9682 * macrocmd.c, macroscope.c, macroscope.h: New files.
9683 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9684 (macroscope_h): New variable.
9685 (HFILES_NO_SRCDIR): Add macroscope.h.
9686 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9687 (macroscope.o, macrocmd.o): New rules.
9689 Teach the Dwarf 2 reader to read macro information.
9690 * dwarf2read.c: #include "macrotab.h".
9691 (dwarf_macinfo_buffer): New variable.
9692 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9694 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9695 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9696 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9697 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9698 dwarf2_macro_spaces_in_definition): New complaints.
9699 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9700 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9701 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9702 the partial symbol table.
9703 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9704 from what's recorded in the partial symbol table.
9705 (read_file_scope): If the compilation unit has a
9706 `DW_AT_macro_info' attribute, read its macro information.
9707 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9709 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9712 * ser-tcp.c: Don't include <netinet/udp.h>.
9714 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9716 * MAINTAINERS: Update my email address.
9718 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9720 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9721 include file of the same name.
9723 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9725 * configure.tgt: Mark v850 as multi-arched.
9726 * config/v850/tm-v850.h: Remove file.
9727 * config/v850/v850.mt: Eliminate TM_FILE.
9729 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9731 * v850-tdep.c: Full multi-arch.
9732 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9733 Define GDB_MULTI_ARCH to 2.
9735 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9737 * p-exp.y (current_type): New static variable.
9738 Carries the type of the expression at the position that is parsed.
9739 (push_current_type, pop_current_type): Two new functions. Used
9740 to store/restore current_type in expression on specific tokens.
9741 (search_field): New static variable. Set to one after parsing a point
9742 as at that point only a FIELDNAME token should be searched.
9743 (FIELDNAME): New token. After a point only a token belonging to
9744 current_type type definition is allowed.
9745 (all over token rules): reset and change current_type according
9747 (exp '[' rule): insert implicit array index field if
9748 exp is a pascal string type.
9750 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9752 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9753 frame info. Use frame_info's saved_regs instead of matching member
9754 in extra_frame_info throughout.
9755 (v850_frame_init_saved_regs): New function.
9756 (v850_init_extra_frame_info): Move most functionality into
9757 v850_frame_init_saved_regs().
9758 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9759 (v850_frame_find_saved_regs): Remove declaration.
9760 (FRAME_FIND_SAVED_REGS): Remove definition.
9761 (v850_frame_init_saved_regs): Add declaration.
9762 (FRAME_INIT_SAVED_REGS): Add definition.
9764 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9766 * v850-tdep.c: Begin multi-arch'ing v850.
9767 (v850_target_architecture_hook): Remove function.
9768 (v850_gdbarch_init): New function. Add code previously in
9769 v850_target_architecture_hook().
9770 (_initialize_v850_tdep): Don't set target_architecture_hook.
9771 Call register_gdbarch_init() instead.
9773 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9775 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9776 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9777 (fixup_class_method_type): Likewise.
9779 2002-05-15 Jim Blandy <jimb@redhat.com>
9781 Add macro structures to GDB's symbol tables. Nobody puts anything
9783 * symtab.h (struct symtab): New member: `macro_table'.
9784 * buildsym.h (pending_macros): New global variable.
9785 * buildsym.c: #include "macrotab.h".
9786 (buildsym_init): Initialize `pending_macros'.
9787 (end_symtab): If we found macro information while reading a CU's
9788 debugging info, do build a symtab structure for it. Make the
9789 symtab point to the macro information, and clear the
9790 `pending_macros' pointer which held it while we were reading the
9792 (really_free_pendings): Free any pending macro table.
9793 * objfiles.h (struct objfile): New member: `macro_cache'.
9794 * objfiles.c (allocate_objfile): Set allocate and free functions
9795 for the macro cache's objstack.
9796 (free_objfile): Empty the macro cache's obstack.
9797 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9798 set new allocate and free functions for it.
9799 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9800 free functions for the macro cache's objstack. (Why is this
9801 function building its own objfile?)
9802 * symmisc.c (print_objfile_statistics): Print statistics on the
9804 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9806 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9808 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9809 (REGISTER_U_ADDR): Delete definition.
9810 (arm_register_u_addr): Delete declaration.
9812 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9814 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9815 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9817 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9819 * regcache.c (register_valid): Revise comments refering to "Not
9820 available" and "unavailable".
9821 * frame.c (frame_register_read): Ditto.
9822 * findvar.c (value_of_register): Ditto.
9824 2002-05-15 Andrew Cagney <cagney@redhat.com>
9826 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9827 (remote-sim.o): Update dependencies.
9828 (d10v-tdep.o): Specify dependencies.
9829 (sim_d10v_h): Define.
9831 2002-05-14 Jim Blandy <jimb@redhat.com>
9833 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9834 * macrotab.c (macro_lookup_inclusion, find_definition,
9835 new_macro_table): Same.
9837 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9838 not `! strcmp ()'. This is a dubious improvement.
9839 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9841 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9842 although it's not necessary, to avoid a warning.
9844 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9846 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9847 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9848 TYPE_INSTANCE_FLAGS.
9849 (struct main_type): New.
9850 (struct type): Move most members to struct main_type. Change
9851 cv_type and as_type to new type_chain member. Add instance_flags.
9852 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9853 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9854 (finish_cv_type): Remove prototype.
9855 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9857 (alloc_type_instance): New function.
9858 (smash_type): New function.
9859 (make_pointer_type, make_reference_type, make_function_type)
9860 (smash_to_member_type, smash_to_method_type): Call smash_type.
9861 (make_qualified_type): New function.
9862 (make_type_with_address_space): Call make_qualified_type.
9863 (make_cv_type): Likewise.
9864 (finish_cv_type): Remove unnecessary function.
9865 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9866 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9867 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9868 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9869 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9870 * hpread.c (hpread_read_struct_type): Likewise.
9871 * stabsread.c (read_struct_type): Likewise.
9873 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9875 * configure.tgt: Add a catch all sh* target, for cases like
9876 sh[2,3,4]-elf and sh-hms.
9878 2002-05-14 Keith Seitz <keiths@redhat.com>
9880 * event-loop.c (create_file_handler): Don't do anything but
9881 update data when we are given a fd which we are already
9884 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9886 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9887 (update_context): Use __func__ in warnings.
9889 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9891 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9892 and tcp_close to net_open and net_close.
9893 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9894 using UDP if requested. Don't try to disable Nagle on UDP
9896 * remote.c (remote_serial_open): New function. Warn about UDP.
9897 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9899 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9901 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9903 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9905 * configure.tgt: Remove sh-hms target.
9906 * MAINTAINERS: Don't list sh-hms as a separate target.
9908 2002-05-13 Jim Blandy <jimb@redhat.com>
9910 Add first preprocessor macro-expansion files.
9911 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9912 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9913 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9914 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9915 (COMMON_OBS): Add macrotab.o, macroexp.o.
9916 (macroexp.o, macrotab.o): New rules.
9918 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9920 * config/m88k/tm-m88k.h: Update copyright.
9921 (m88k_target_write_pc): Declare
9922 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9923 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9924 (SHIFT_INST_REGS): Update definition.
9925 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9926 using old definition of TARGET_WRITE_PC.
9927 * regcache.c (generic_target_write_pc): Delete code handling
9929 * gdbarch.sh (NNPC_REGNUM): Delete.
9930 * gdbarch.h, gdbarch.c: Regenerate.
9932 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
9934 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9937 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
9939 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9940 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9941 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9943 * c-typeprint.c (cp_type_print_method_args): Likewise.
9944 (c_type_print_args): Likewise.
9945 * d10v-tdep.c (d10v_push_arguments): Likewise.
9946 (d10v_extract_return_value): Likewise.
9947 * expprint.c (print_subexp): Likewise.
9948 * gdbtypes.c (lookup_primitive_typename): Likewise.
9949 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9950 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9951 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9952 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9953 (TYPE_VECTOR): Likewise.
9954 * hpread.c (hpread_read_struct_type)
9955 (fix_static_member_physnames, fixup_class_method_type)
9956 (hpread_type_lookup): Likewise.
9957 * mdebugread.c (parse_symbol, parse_type): Likewise.
9958 * p-lang.c (is_pascal_string_type): Likewise.
9959 * valops.c (hand_function_call): Likewise.
9960 * x86-64-tdep.c (classify_argument): Likewise.
9962 * hpread.c (hpread_read_function_type)
9963 (hpread_read_doc_function_type): Call replace_type.
9964 * dstread.c (create_new_type): Delete.
9965 (decode_dst_structure, process_dst_function): Call alloc_type.
9966 Use type access macros.
9968 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9970 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9971 the're not supported by the current architecture.
9972 (i387_fill_fxsave): Likewise.
9974 2002-05-12 Fred Fish <fnf@redhat.com>
9976 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9977 sect_index_xxx members to index the first slot in section_offsets
9978 if all of the section_offsets are zero.
9980 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9982 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9983 checked in with last change.
9985 2002-05-12 Mark Kettenis <kettenis@gnu.org>
9987 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9988 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9991 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
9993 * Makefile.in: Update dependencies.
9995 2002-05-11 Andrew Cagney <ac131313@redhat.com>
9997 * language.c (local_hex_string_custom): Simplify. Do not depend
9998 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10000 * memattr.c (mem_info_command): Replace calls to
10001 longest_local_hex_string and longest_local_hex_string_custom.
10002 * buildsym.c (make_blockvector): Ditto.
10003 * solib.c (info_sharedlibrary_command): Ditto.
10004 * tracepoint.c (tracepoints_info): Ditto.
10005 * symtab.c (print_msymbol_info): Ditto.
10007 * language.c (local_hex_string): Delete.
10008 (local_hex_string_custom): Delete.
10009 (longest_local_hex_string): Rename to local_hex_string.
10010 (longest_local_hex_string_custom): Rename to
10011 local_hex_string_custom.
10012 * language.h (local_hex_string): Change parameter type to LONGEST.
10013 (local_hex_string_custom): Ditto.
10014 (longest_local_hex_string): Delete declaration.
10015 (longest_local_hex_string_custom): Ditto.
10017 * solib.c: Update copyright.
10018 * memattr.c: Update copyright.
10020 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10022 * arch-utils.h (legacy_register_to_value): Declare.
10023 (legacy_value_to_register): Declare.
10024 (legacy_convert_register_p): Declare.
10025 * arch-utils.c (legacy_register_to_value): New function.
10026 (legacy_value_to_register): New function.
10027 (legacy_convert_register_p): New function.
10029 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10030 (VALUE_TO_REGISTER): Define.
10031 (CONVERT_REGISTER_P): Define.
10032 * gdbarch.h, gdbarch.c: Regenerate.
10034 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10036 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10037 CONVERT_REGISTER_P.
10039 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10040 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10042 * Makefile.in: Update dependencies for valops.c.
10043 * valops.c: Include "gdb_assert.h".
10044 (typecmp): Skip THIS parameter to methods.
10045 (find_method_list): Remove static_memfuncp argument,
10046 update callers. Check for stub methods.
10047 (find_value_oload_method_list): Don't set *static_memfuncp.
10048 (find_overload_match): Don't check for stub methods. Assert
10049 that methods are not stubbed. Handle static methods.
10050 (value_find_oload_method_list): Remove static_memfuncp argument.
10051 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10052 to the argument list for static stub methods.
10053 * value.h (value_find_oload_method_list): Update prototype.
10055 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10057 * arch-utils.h (generic_register_size): Declare.
10058 (generic_register_raw_size, generic_register_virtual_size): Delete
10060 * arch-utils.c (generic_register_raw_size): Delete.
10061 (generic_register_size): New function.
10062 (generic_register_virtual_size): Delete.
10064 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10065 default generic_register_size.
10066 * gdbarch.h, gdbarch.c: Re-generate.
10068 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10069 register_virtual_size.
10070 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10071 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10073 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10075 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10076 * gdbarch.h, gdbarch.c: Regenerate.
10077 * gnu-v3-abi.c: Update copyright.
10078 (vtable_address_point_offset): Update.
10079 (gnuv3_rtti_type): Update.
10080 (gnuv3_baseclass_offset): Update.
10081 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10082 (init_fetch_link_map_offsets): Update.
10083 * remote.c (get_remote_state): Update.
10085 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10087 * TODO: Remove value_headof/value_from_vtable_info comment.
10088 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10089 * values.c (value_headof, value_from_vtable_info): Delete.
10090 * value.h (value_from_vtable_info): Delete prototype.
10092 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10094 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10095 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10097 (gdb_assert_h): Define.
10098 (gdb_wait_h): Define.
10099 (gdb_regex_h): Define.
10101 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10103 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10104 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10106 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10108 * nbsd-tdep.c: Fix comment.
10110 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10112 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10113 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10114 (nbsd-tdep.o): New dependency list.
10115 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10117 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10118 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10119 * nbsd-tdep.c: New file.
10120 * nbsd-tdep.h: New file.
10121 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10123 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10124 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10125 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10126 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10128 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10130 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10131 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10132 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10133 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10134 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10135 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10137 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10139 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10140 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10141 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10142 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10143 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10144 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10145 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10147 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10149 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10150 fetch_elfcore_registers to...
10151 * i386nbsd-tdep.c: ...here.
10152 (i386nbsd_use_struct_convention): Rename to...
10153 (i386nbsd_aout_use_struct_convention): ...this.
10154 (i386nbsd_supply_reg): New function.
10155 (i386nbsd_fill_reg): New function.
10156 (fetch_core_registers): Use i386nbsd_supply_reg.
10157 (fetch_elfcore_registers): Likewise.
10158 (_initialize_i386nbsd_tdep): New function.
10159 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10160 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10161 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10162 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10163 (i386nbsd_aout_use_struct_convention): ...this.
10165 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10167 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10168 (store_inferior_registers): Use shnbsd_fill_reg.
10169 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10170 sh_nbsd_supply_register): Collapse into...
10171 (shnbsd_supply_reg): ...this.
10172 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10173 (shnbsd_fill_reg): ...this.
10174 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10175 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10176 (fetch_core_registers): Use shnbsd_supply_reg.
10177 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10178 (sh_nbsd_core_fns): Rename to...
10179 (shnbsd_core_fns): ...this.
10180 (sh_nbsd_elfcore_fns): Rename to...
10181 (shnbsd_elfcore_fns): ...this.
10182 (sh_nbsd_init_abi): Rename to...
10183 (shnbsd_init_abi): ...this.
10184 (_initialize_sh_nbsd_tdep): Rename to...
10185 (_initialize_shnbsd_tdep): ...this.
10186 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10187 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10188 sh_nbsd_fill_register): Remove prototypes.
10189 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10191 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10193 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10194 (i387-nat.o): Delete dependency list.
10195 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10196 (x86-64-linux-nat.o): Likewise.
10197 * i387-nat.c: Delete file, moving contents to...
10198 * i387-tdep.c: ...here.
10199 * i387-nat.h: Rename...
10200 * i387-tdep.h: ...to this.
10201 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10202 * i386-linux-nat.c: Likewise.
10203 * i386bsd-nat.c: Likewise.
10204 * i386gnu-nat.c: Likewise.
10205 * i386nbsd-nat.c: Likewise.
10206 * i386v4-nat.c: Likewise.
10207 * x86-64-linux-nat.c: Likewise.
10208 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10209 * config/i386/go32.mh (NATDEPFILES): Likewise.
10210 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10211 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10212 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10213 * config/i386/linux.mh (NATDEPFILES): Likewise.
10214 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10215 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10216 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10217 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10219 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10221 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10222 (alphanbsd-nat.o): Remove dependency list.
10223 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10224 * alphanbsd-nat.c: Delete. Contents moved to...
10225 * alphanbsd-tdep.c: ...here.
10226 (_initialize_alphanbsd_tdep): Register core functions.
10227 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10229 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10231 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10232 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10233 (alphanbsd-nat.o): Likewise.
10234 (alphabsd-tdep.o): New dependency list.
10235 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10236 (fill_gregset): Use alphabsd_fill_reg.
10237 (supply_fpregset): Use alphabsd_supply_fpreg.
10238 (fill_fpregset): Use alphabsd_fill_fpreg.
10239 (fetch_inferior_registers): Use struct reg and struct fpreg
10240 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10241 and alphabsd_supply_fpreg.
10242 (store_inferior_registers): Use struct reg and struct fpreg
10243 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10244 and alphabsd_fill_fpreg.
10245 * alphabsd-tdep.c: New file.
10246 * alphabsd-tdep.h: New file.
10247 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10248 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10249 alphabsd_supply_fpreg.
10250 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10251 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10253 2002-05-11 Eric Christopher <echristo@redhat.com>
10255 * mips-tdep.c (mips_double_register_type): Fix thinko.
10256 (mips_single_register_type): Ditto.
10257 * MAINTAINERS: Add self.
10259 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10261 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10262 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10263 right thing on architectures with different endianness and/or
10266 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10268 From Christian Limpach <chris@Pin.LU>
10269 * configure.in: Change sed expression which comments out
10270 NATDEPFILES to also comment out continuation lines.
10271 * configure: Regenerate.
10273 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10275 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10278 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10280 * sh-tdep.c: Include correct file.
10282 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10284 New support for sh64-elf (sh5) target.
10286 * configure.tgt: For sh64-elf target, default to sh-elf.
10288 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10289 (struct gdbarch_tdep): Add new fields for new registers and ABI
10292 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10293 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10294 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10295 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10296 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10297 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10298 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10299 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10300 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10301 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10302 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10303 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10304 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10305 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10306 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10307 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10308 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10309 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10310 sign_extend, sh64_nofp_frame_init_saved_regs,
10311 sh64_init_extra_frame_info, sh64_get_saved_register,
10312 sh64_extract_struct_value_address, sh64_pop_frame,
10313 sh64_push_arguments, sh64_extract_return_value,
10314 sh64_store_return_value, sh64_show_media_regs,
10315 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10316 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10317 sh_sh64_register_virtual_type,
10318 sh_sh64_register_convert_to_virtual,
10319 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10320 sh64_register_read, sh64_pseudo_register_write,
10321 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10322 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10323 sh64_do_pseudo_register, sh_compact_do_registers_info,
10324 sh64_do_registers_info, sh_gdbarch_init): New functions.
10326 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10328 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10330 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10332 * linespec.c (decode_line_1): Check for a double quote after
10333 a filename correctly.
10335 2002-05-10 Jim Blandy <jimb@redhat.com>
10337 Properly track the size of the current objfile's .debug_line section.
10338 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10339 (DWARF_LINE_SIZE): New macro.
10340 (dwarf2_build_psymtabs_hard): Record the line section's size in
10341 the partial symbol table.
10342 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10345 2002-05-10 Petr Sorfa <petrs@caldera.com>
10347 * ia64-tdep.c: Handle breakpoints on L instruction type
10348 in MLX instruction bundle by moving the breakpoint to
10349 the third slot (X instruction type) as L holds only data.
10351 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10353 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10354 (process_one_symbol): Complain about discarding local symbols
10355 due to a misplaced N_LBRAC entry.
10357 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10359 From Daniel Berlin <dan@cgsoftware.com>
10360 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10361 decrease the depth we are at, in the case of templates.
10363 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10365 * mips-tdep.c (mips_float_register_type): New function.
10366 (mips_double_register_type): New function.
10367 (mips_print_register): Use them.
10368 (do_fp_register_row): Likewise.
10370 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10372 * signals/signals.c (signals): Remove conditional compilation around
10373 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10374 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10376 2002-05-09 Michael Snyder <msnyder@redhat.com>
10378 * remote-rdp.c (remote_rdp_can_run): Remove.
10380 2002-05-09 Tom Tromey <tromey@redhat.com>
10382 * jv-valprint.c (java_val_print): Handle `char' as a special case
10385 2002-05-09 Michael Snyder <msnyder@redhat.com>
10387 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10388 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10389 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10390 str r(0123),[sp,#nn].
10391 (arm_skip_prologue): Ditto. Also make disassembly
10392 order-independent by placing it in a loop.
10394 2002-05-06 Michael Snyder <msnyder@redhat.com>
10396 * stabsread.c (read_type): Add recognition for new attribute:
10397 "@V;" means that an array type is actually a vector.
10398 This is analogous to the vector flag that's been added to dwarf2.
10400 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10402 * i386-tdep.h (i386_abi): New enum.
10403 (struct gdbarch_tdep): Replace os_ident member with abi.
10404 (i386_gdbarch_register_os_abi): New prototype.
10405 * i386-tdep.c (i386_abi_names): New array.
10406 (process_note_abi_tag_sections): Removed.
10407 (process_note_sections): New function.
10408 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10409 (struct i386_abi_handler): New struct.
10410 (i386_abi_handler_list): New variable.
10411 (i386_gdbarch_register_os_abi): New function.
10412 (i386_gdbarch_init): Adapt for the changes given above.
10414 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10416 * gregset.h: Say "GNU/Linux".
10418 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10420 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10421 (build_gdbtypes): Build builtin_type_v2_float.
10422 (_initialize_gdbtypes): Register new builtin type.
10424 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10426 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10427 (clear_gdbarch_swap): New function.
10428 (initialize_non_multiarch): Call.
10429 (gdbarch_update_p): Before calling init(), swap out and clear the
10430 existing architecture.
10431 * gdbarch.c: Regenerate.
10433 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10435 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10438 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10440 * sh-nbsd-nat.c: Rename to...
10441 * shnbsd-nat.c: ...this.
10442 * sh-nbsd-tdep.c: Rename to...
10443 * shnbsd-tdep.c: ...this.
10444 * sh-nbsd-tdep.h: Rename to...
10445 * shnbsd-tdep.h: ...this.
10446 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10447 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10449 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10451 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10452 concatenation for command help messages.
10454 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10456 * NEWS: Note new sh*-*-netbsdelf* configuration.
10457 * configure.host: Set gdb_host_cpu to sh for all sh*.
10458 (sh*-*-netbsdelf*): New host.
10459 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10460 (sh*-*-netbsdelf*): New target.
10461 * sh-nbsd-nat.c: New file.
10462 * sh-nbsd-tdep.c: New file.
10463 * sh-nbsd-tdep.h: New file.
10464 * config/sh/nbsd.mh: New file.
10465 * config/sh/nbsd.mt: New file.
10466 * config/sh/nm-nbsd.h: New file.
10467 * config/sh/tm-nbsd.h: New file.
10469 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10471 * sh-tdep.c (sh_osabi_names): Declare.
10472 (process_note_abi_tag_sections): New function.
10473 (get_elfosabi): Ditto.
10474 (sh_gdbarch_register_os_abi): Ditto.
10475 (sh_dump_tdep): Ditto.
10476 _initialize_sh_tdep): Use gdbarch_register to register
10477 sh_gdbarch_init and sh_dump_tdep.
10478 * config/sh/tm-sh.h (sh_osabi): Declare.
10479 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10481 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10483 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10484 (thumb_scan_prologue): Ditto.
10485 (arm_find_callers_reg): Ditto.
10486 (arm_frame_chain): Ditto.
10487 (arm_init_extra_frame_info): Ditto.
10488 (arm_frame_saved_pc): Ditto.
10489 (arm_pop_frame): Ditto.
10490 (arm_push_return_address): New function.
10491 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10492 call_dummy_location, call_dummy_breakpoint_offset_p,
10493 call_dummy_breakpoint_offset, call_dummy_p,
10494 call_dummy_stack_adjust_p, call_dummy_words,
10495 sizeof_call_dummy_words, call_dummy_start_offset,
10496 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10497 call_dummy_address, push_return_address and push_dummy_frame for
10498 generic dummy frames.
10500 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10502 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10503 size computation for alloca.
10504 (sh_fp_frame_init_saved_regs): Likewise.
10506 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10508 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10509 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10510 * arm-tdep.c (arm_store_return_value): Use them.
10511 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10512 * remote-rdp.c (remote_rdp_fetch_register): Use
10513 ARM_MAX_REGISTER_RAW_SIZE.
10514 (remote_rdp_store_register): Likewise.
10516 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10518 * dwarf2cfi.c: Code cleanup, removed unused variables,
10519 added default labels to switch {} statements.
10520 * x86-64-tdep.c: Ditto.
10521 * x86-64-linux-nat.c: Ditto.
10523 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10525 * solib.h: Protect against multiple inclusion.
10527 2002-05-06 Jim Blandy <jimb@redhat.com>
10529 Add first preprocessor macro-expansion files.
10530 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10531 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10532 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10533 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10534 (COMMON_OBS): Add macrotab.o, macroexp.o.
10535 (macroexp.o, macrotab.o): New rules.
10537 Separate the job of reading the line number info statement program
10538 header (...expialidocious) out into its own function.
10539 * dwarf2read.c (struct line_head, struct filenames, struct
10540 directories): Replace with...
10541 (struct line_header): New structure, containing the full
10542 contents of the statement program header, including the
10543 include directory and file name tables.
10544 (read_file_scope): If we have line number info, instead of just
10545 calling dwarf_decode_lines to do all the work, call
10546 dwarf_decode_line_header first to get a `struct line_header'
10547 containing the data in the statement program header, and then
10548 pass that to dwarf_decode_lines, which will pick up where that
10549 left off. Be sure to clean up the `struct line_header' object.
10550 (dwarf_decode_line_header, free_line_header, add_include_dir,
10551 add_file_name): New functions.
10552 (dwarf_decode_lines): Move all the code to read the statement
10553 program header into dwarf_decode_line_header. Take the line
10554 header it built as the first argument, instead of the offset to
10555 the compilation unit's line number info. Use the new `struct
10556 line_header' type instead of the old structures. No need to do
10557 cleanups here now, since we don't allocate anything.
10558 (dwarf2_statement_list_fits_in_line_number_section,
10559 dwarf2_line_header_too_long): New complaints.
10561 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10563 * gdbtypes.c (init_vector_type): New function.
10564 (build_builtin_type_vec128): Simplify the representation of SIMD
10566 (build_gdbtypes): Initialize new builtin vector types.
10567 (_initialize_gdbtypes): Register new vector types with gdbarch.
10568 (builtin_type_v4_float, builtin_type_v4_int32,
10569 builtin_type_v8_int16, builtin_type_v16_int8,
10570 builtin_type_v2_int32, builtin_type_v4_int16,
10571 builtin_type_v8_int8): New (renamed) SIMD types.
10573 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10575 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10576 (i387_fill_fxsave): Likewise.
10578 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10580 * alpha-tdep.c (alpha_extract_return_value): Don't use
10581 non-constant array size in prototype.
10583 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10585 From Brian Taylor <briant at model dot com>:
10586 * ui-out.c (ui_out_field_core_addr): Use the function
10587 longest_local_hex_string_custom'to format addresses > 32 bits
10590 * ui-out.c (ui_out_field_core_addr): Update comment.
10592 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10594 * stack.c (select_and_print_frame): Make static. Delete the
10596 (func_command): Update call.
10597 (select_frame_command): Delete code computing the frame level.
10598 * frame.h (select_and_print_frame): Delete declaration.
10600 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10602 * sparc-tdep.c (sparc_get_saved_register): Comment why
10603 get_prev_frame call is safe.
10605 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10607 * frame.h (select_frame): Delete level parameter.
10608 * stack.c (select_frame): Update. Use frame_relative_level to
10609 obtain the frame's level.
10610 (select_and_print_frame): Update call.
10611 (select_frame_command): Ditto.
10612 (up_silently_base): Ditto.
10613 (down_silently_base): Ditto.
10614 * ocd.c (ocd_start_remote): Ditto.
10615 * remote-rdp.c (remote_rdp_open): Ditto.
10616 * remote-mips.c (mips_initialize): Ditto.
10617 (common_open): Ditto.
10618 * remote-e7000.c (e7000_start_remote): Ditto.
10619 * m3-nat.c (select_thread): Ditto.
10620 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10621 (child_get_current_exception_event): Ditto.
10622 * varobj.c (varobj_create): Ditto.
10623 (varobj_update): Ditto.
10624 (c_value_of_root): Ditto.
10625 * tracepoint.c (finish_tfind_command): Ditto.
10626 * corelow.c (core_open): Ditto.
10627 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10628 * thread.c (info_threads_command): Ditto.
10629 (switch_to_thread): Ditto.
10630 * infrun.c (normal_stop): Ditto.
10631 (restore_selected_frame): Ditto.
10632 (restore_inferior_status): Ditto.
10633 * breakpoint.c (insert_breakpoints): Ditto.
10634 (watchpoint_check): Ditto.
10635 (bpstat_stop_status): Ditto.
10636 (do_enable_breakpoint): Ditto.
10637 * blockframe.c (flush_cached_frames): Ditto.
10638 (reinit_frame_cache): Ditto.
10640 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10642 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10645 2002-05-04 Jim Blandy <jimb@redhat.com>
10647 * gdbtypes.c (replace_type): Doc fix.
10649 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10651 * valprint.c (strcat_longest): Delete commented out function.
10654 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10656 * MAINTAINERS: Mark a29k as deleted.
10657 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10658 Move new configurations to the top.
10659 * configure.tgt: Remove a29k.
10660 * config/a29k/tm-vx29k.h: Delete.
10661 * config/a29k/vx29k.mt: Delete.
10662 * config/a29k/tm-a29k.h: Delete.
10663 * config/a29k/a29k-udi.mt: Delete.
10664 * config/a29k/a29k.mt: Delete.
10665 * a29k-tdep.c: Delete.
10666 * remote-udi.c: Delete.
10667 * remote-mm.c: Delete.
10668 * remote-eb.c: Delete.
10669 * remote-adapt.c: Delete.
10670 * Makefile.in: Remove obsolete code.
10671 * config/s390/s390x.mt: Ditto.
10672 * config/s390/s390.mt: Ditto.
10673 * config/sparc/sparclynx.mh: Ditto.
10674 * config/sparc/linux.mh: Ditto.
10675 * config/pa/hppaosf.mh: Ditto.
10676 * config/pa/hppabsd.mh: Ditto.
10677 * config/ns32k/nbsd.mt: Ditto.
10678 * config/mips/vr5000.mt: Ditto.
10679 * config/m68k/sun3os4.mh: Ditto.
10680 * config/m68k/nbsd.mt: Ditto.
10681 * config/m68k/m68klynx.mh: Ditto.
10682 * config/m32r/m32r.mt: Ditto.
10683 * config/i386/x86-64linux.mt: Ditto.
10684 * config/i386/nbsdelf.mt: Ditto.
10685 * config/i386/nbsd.mt: Ditto.
10686 * config/i386/i386lynx.mh: Ditto.
10688 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10690 * target.c (debug_print_register): New function. Handle oversize
10692 (debug_to_fetch_registers): Call.
10693 (debug_to_store_registers): Call.
10695 2002-05-03 Jim Blandy <jimb@redhat.com>
10697 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10698 (read_type): Doc fix.
10699 * gdbtypes.c (replace_type): Doc fix.
10701 * stabsread.c (multiply_defined_struct): New complaint.
10702 (read_struct_type): If the type we were passed isn't empty, or
10703 incomplete, don't read the new struct type into it; complain,
10704 and return the original type unchanged. Take a new `type_code'
10705 argument, which is the type code for the new type.
10706 (read_type): Rather than storing the type's type code here, pass
10707 it as an argument to read_struct_type, and let that take care of
10708 storing it. That way, we don't overwrite the original type code,
10709 so read_struct_type can use it to decide whether we're overwriting
10710 something we shouldn't.
10711 (complain_about_struct_wipeout): New function.
10713 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10715 * gdbarch.sh: Assert that gdbarch is non-NULL.
10716 * gdbarch.c: Regenerate.
10718 2002-05-03 Jason Merrill <jason@redhat.com>
10720 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10723 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10725 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10726 (x86_64_dwarf2gdb_regno_map_length),
10727 (x86_64_dwarf2_reg_to_regnum): Added.
10728 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10729 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10730 (_initialize_x86_64_tdep): Synced with the change above.
10731 (x86_64_skip_prologue): Reformulated message.
10733 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10735 * f-exp.y: Also use new prev_lexptr variable
10736 to improve error reporting. Based on Michael Snyder
10737 2002-04-24 dated patch to c-exp.y.
10738 * jv-exp.y: Likewise.
10739 * m2-exp.y: Likewise.
10741 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10743 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10744 we are dealing with vectors.
10746 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10748 * config/m68k/tm-nbsd.h: Obvious fix,
10749 correct machine name.
10751 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10753 * p-typeprint.c (pascal_type_print_base): Add support
10754 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10756 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10758 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10759 for fondamental pascal 'char' type.
10761 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10763 * p-lang.h (is_pascal_string_type): Declaration changed,
10764 new sixth argument of type char ** added.
10765 * p-lang.c (is_pascal_string_type): Implementation
10766 changed. Args length_pos, length_size, string_pos, char_size
10767 can now be NULL. New argument arrayname set to the field
10768 name of the char array. Return value set to char array
10769 field index plus one.
10770 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10771 is_pascal_string_type function.
10773 2002-05-02 Andrew Cagney <cagney@redhat.com>
10775 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10776 <cagney@redhat.com> change.
10777 * gdbarch.c: Regenerate.
10779 2002-05-02 Andrew Cagney <cagney@redhat.com>
10781 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10782 before probing for a new one. Detect errorenous gdbarch_init
10784 * gdbarch.c: Regenerate.
10786 2002-05-01 Andrew Cagney <cagney@redhat.com>
10788 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10789 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10790 * config/v850/tm-v850.h: Ditto. Update copyright.
10792 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10794 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10797 2002-04-30 Michael Snyder <msnyder@redhat.com>
10799 * arm-tdep.c: Whitespace clean-ups.
10800 (arm_skip_prologue): Fix thinko; two lines
10801 should have been removed as part of 4/24 change.
10803 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10805 * rs6000-tdep.c: Added comment describing how fpscr register
10806 numbers were chosen.
10808 2002-04-30 Michael Snyder <msnyder@redhat.com>
10810 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10812 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10814 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10815 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10816 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10818 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10820 From Louis Hamilton <hamilton@redhat.com>:
10821 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10822 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10823 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10824 not bfd-private xcoff data, to determine wordsize.
10825 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10827 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10829 GDB 5.2 released from 5.2 branch.
10831 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10833 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10834 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10835 (x86_64_register_info_table): Added comments with register numbers.
10837 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10839 * rs6000-tdep.c (rs6000_extract_return_value,
10840 rs6000_store_return_value): Handle returning vectors.
10841 (rs6000_gdbarch_init): Use
10842 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10843 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10845 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10847 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10848 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10850 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10852 * hpread.c (hpread_psymtab_to_symtab_1,
10853 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10854 with fprintf_unfiltered (gdb_stderr,...).
10856 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10858 * remote-array.c (printf_monitor, write_monitor,
10859 array_insert_breakpoint, array_remove_breakpoint ):
10860 Replace fprintf (stderr,...
10861 with fprintf_unfiltered (gdb_stderr,....
10862 * remote-es.c: Likewise.
10863 * remote-os9k.c: Likewise.
10864 * remote-st.c: Likewise.
10866 2002-04-28 Andreas Schwab <schwab@suse.de>
10868 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10869 linux-proc.o and gcore.o.
10871 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10873 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10874 code without frame pointers.
10876 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10878 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10879 ON_STACK is needed.
10881 2002-04-26 Ben Elliston <bje@redhat.com>
10883 * target.c (do_xfer_memory): Correct reference to the new option
10884 "trust-readonly-sections".
10886 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10888 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10889 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10890 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10892 (read_array_type): Record the fact that this array type is really a
10893 vector (i.e. are passed in by value).
10895 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10897 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10898 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10899 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10900 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10901 * alpha-linux-tdep.c: Include frame.h.
10902 (alpha_linux_sigcontext_addr): New function.
10903 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10904 alpha_linux_sigcontext_addr.
10905 * alpha-osf1-tdep.c: Include gdbcore.h.
10906 (alpha_osf1_sigcontext_addr): New function.
10907 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10908 alpha_osf1_sigcontext_addr.
10909 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10910 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10912 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10914 * stack.c (selected_frame_level):
10915 (select_frame): Do not set selected_frame_level.
10916 * frame.h (selected_frame_level): Delete declaration.
10918 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10920 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10921 convert_from_func_ptr-addr when AIX / PowerOpen.
10923 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10925 * valops.c (hand_function_call): Call
10926 generic_save_call_dummy_addr.
10927 * frame.h (generic_save_call_dummy_addr): Declare.
10928 * blockframe.c (struct dummy_frame): Add fields call_lo and
10930 (generic_find_dummy_frame): Check for PC in range call_lo to
10931 call_hi instead of entry_point_address.
10932 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10933 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10934 (generic_save_call_dummy_addr): New function.
10936 2002-04-24 David S. Miller <davem@redhat.com>
10938 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10939 sparc_skip_prologue.
10940 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10941 information to find prologue when possible.
10942 (sparc_prologue_frameless_p): Call examine_prologue directly.
10943 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10944 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10946 (SKIP_PROLOGUE): Likewise.
10948 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10950 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10951 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10952 indicate that the condition it was testing is always true.
10953 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10954 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10955 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10957 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
10959 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10960 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10961 tdep->jb_pc and tdep->jb_elt_size.
10962 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10963 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10964 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10965 * alpha-nat.c (get_longjmp_target): Remove.
10966 (JB_ELEMENT_SIZE): Ditto.
10968 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10969 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10970 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10971 to alpha_get_longjmp_target.
10972 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10973 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10974 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10976 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10978 * README: Update to GDB 5.2.
10980 2002-04-25 Andrew Cagney <ac131313@redhat.com>
10982 * gdbarch.sh (LC_ALL): Set to `c'.
10984 2002-04-25 Theodore A. Roth <troth@verinet.com>
10986 * avr-tdep.c: Ran through gdb_indent.sh.
10988 2002-04-25 Theodore A. Roth <troth@verinet.com>
10990 * MAINTAINERS: Add myself as AVR maintainer.
10991 * NEWS: Note new target avr.
10993 2002-04-25 Theodore A. Roth <troth@verinet.com>
10995 * Makefile.in: Add support for AVR target.
10996 * configure.tgt: Add support for AVR target.
10997 * avr-tdep.c: New file
10998 * config/avr/avr.mt: New file.
11000 2002-04-25 Theodore A. Roth <troth@verinet.com>
11002 * MAINTAINERS: Add myself to write-after-approval.
11004 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11006 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11007 with fprintf_unfiltered (gdb_stderr,....
11009 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11012 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11014 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11016 * p-exp.y: Also use new prev_lexptr variable
11017 to improve error reporting. Based on Michael Snyder
11018 2002-04-24 dated patch to c-exp.y.
11020 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11022 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11023 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11024 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11026 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11028 (FUNCTION_START_OFFSET): Remove.
11029 (BREAKPOINT): Ditto.
11031 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11033 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11036 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11038 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11039 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11040 alpha_linux_pc_in_sigtramp.
11041 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11042 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11043 alpha_osf1_pc_in_sigtramp.
11044 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11045 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11046 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11047 alphafbsd_pc_in_sigtramp.
11048 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11049 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11050 alphanbsd_pc_in_sigtramp.
11051 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11052 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11054 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11056 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11058 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11060 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11062 (alphanbsd-nat.o): New dependency list.
11063 (alphanbsd-tdep.o): Ditto.
11064 * NEWS: Note new native NetBSD/alpha configuration.
11065 * alphanbsd-nat.c: New file.
11066 * alphanbsd-tdep.c: Ditto.
11067 * configure.host (alpha*-*-netbsd*): New host.
11068 * configure.tgt (alpha*-*-netbsd*): New target.
11069 * config/alpha/nbsd.mh: New file.
11070 * config/alpha/nbsd.mt: Ditto.
11071 * config/alpha/nm-nbsd.h: Ditto.
11072 * config/alpha/tm-nbsd.h: Ditto.
11074 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11076 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11077 (alpha-osf1-tdep.o): New dependency list.
11078 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11079 and skip_sigtramp_frame members.
11080 * alpha-linux-tdep.c: Include gdbcore.h.
11081 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11082 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11083 * alpha-osf1-tdep.c: New file.
11084 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11086 (alpha_frame_past_sigtramp_frame): New function.
11087 (alpha_dynamic_sigtramp_offset): Ditto.
11088 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11089 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11090 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11091 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11092 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11093 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11094 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11095 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11096 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11097 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11098 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11099 to find_solib_trampoline_target.
11100 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11101 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11102 (SKIP_TRAMPOLINE_CODE): Remove.
11103 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11104 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11105 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11106 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11107 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11108 (PROC_SIGTRAMP_MAGIC): Ditto.
11109 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11110 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11111 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11112 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11113 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11115 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11117 * NEWS: Note that Alpha targets are now multi-arch.
11119 2002-04-24 Michael Snyder <msnyder@redhat.com>
11121 * parser-defs.h (prev_lexptr): New external variable.
11122 * parse.c (parse_exp_1): Set prev_lexptr to null before
11123 calling the language-specific parser.
11124 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11125 (yyerror): Use prev_lexptr in error reporting.
11127 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11129 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11130 * gregset.h: If FILL_FPXREGSET is defined, provide
11131 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11132 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11133 is defined, call fill_fpxregset.
11135 2002-04-24 Roland McGrath <roland@frob.com>
11137 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11138 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11139 (supply_gregset, supply_fpregset): New functions.
11141 * gnu-nat.c (gnu_find_memory_regions): New function.
11142 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11143 (gnu_xfer_memory): Add a cast.
11145 2002-04-24 Michael Snyder <msnyder@redhat.com>
11147 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11148 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11149 of argument regs ("str r(0123), [r11, #-nn"]).
11150 (arm_skip_prologue): Better handling for frameless functions.
11151 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11152 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11154 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11156 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11157 NUM_PSEUDO_REGS can be used.
11159 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11161 * arch-utils.h: Update copyright.
11163 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11164 * gdbarch.h, gdbarch.c: Re-generate.
11166 * inferior.h (IN_SIGTRAMP): Delete definition.
11167 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11168 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11170 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11171 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11172 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11173 (find_proc_framesize): Ditto.
11174 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11175 (alpha_init_extra_frame_info): Ditto.
11176 * infrun.c (handle_inferior_event): Ditto.
11177 (handle_inferior_event): Ditto.
11178 (check_sigtramp2): Ditto.
11179 * blockframe.c (create_new_frame): Ditto.
11180 (get_prev_frame): Ditto.
11181 * ppc-linux-tdep.c: Update comments.
11182 * i386-linux-tdep.c: Update comments.
11183 * breakpoint.c (bpstat_what): Update comment.
11185 2002-04-24 David S. Miller <davem@redhat.com>
11187 * i960-tdep.c (register_in_window_p): New function.
11188 (i960_find_saved_register): Use it instead of
11189 REGISTER_IN_WINDOW_P.
11190 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11192 * symtab.h (find_stab_function_addr): Kill extern.
11193 * minsyms.c (find_stab_function_addr): Remove from here...
11194 * dbxread.c: ... to here, and mark it static.
11196 2002-04-20 David S. Miller <davem@redhat.com>
11198 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11199 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11201 2002-04-21 David S. Miller <davem@redhat.com>
11203 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11204 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11205 (vx_write_register): Likewise.
11207 2002-04-23 J. Brobecker <brobecker@gnat.com>
11209 * source.c (is_regular_file): New function.
11210 (openp): Check wether file to open is a regular file
11211 to avoid opening directories.
11213 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11215 * findvar.c (extract_signed_integer): Cast printf argument
11216 to suppress format warning.
11217 (extract_unsigned_integer): Likewise.
11218 * infcmd.c (registers_info): Likewise.
11219 * top.c (get_prompt_1): Likewise.
11220 * valops.c (value_assign): Likewise.
11221 * valprint.c (print_decimal): Likewise.
11223 2002-04-22 H.J. Lu (hjl@gnu.org)
11225 * c-exp.y (typebase): Support
11227 [long|long long|short] [signed|unsigned] [int|]
11231 signed [long|long long|short] int
11233 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11235 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11237 * vax-tdep.h: New file.
11238 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11239 Make several routines static.
11240 (vax_get_saved_register): New function.
11241 (vax_gdbarch_init): New function.
11242 (_initialize_vax_tdep): Register vax_gdbarch_init.
11243 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11244 Remove macros now under the control of gdbarch.
11246 2002-04-22 Michael Snyder <msnyder@redhat.com>
11248 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11249 Some whitespace and coding standards tweaks.
11251 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11253 * vax-tdep.c: Include regcache.h.
11254 (vax_call_dummy_words): New.
11255 (sizeof_vax_call_dummy_words): New.
11256 (vax_fix_call_dummy): New function.
11257 (vax_saved_pc_after_call): Ditto.
11258 * config/vax/tm-vax.h: Don't include regcache.h.
11259 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11260 (CALL_DUMMY): Remove.
11261 (CALL_DUMMY_WORDS): Define.
11262 (SIZEOF_CALL_DUMMY_WORDS): Define.
11263 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11265 2002-04-18 Michael Snyder <msnyder@redhat.com>
11267 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11269 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11271 * vax-tdep.c (vax_frame_chain): New function.
11272 (vax_push_dummy_frame): Ditto.
11273 (vax_pop_frame): Ditto.
11274 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11275 (FRAMELESS_FUNCTION_INVOCATION): Use
11276 generic_frameless_function_invocation_not.
11277 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11278 (POP_FRAME): Use vax_pop_frame.
11280 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11282 * vax-tdep.c (vax_store_struct_return): New function.
11283 (vax_extract_return_value): Ditto.
11284 (vax_store_return_value): Ditto.
11285 (vax_extract_struct_value_address): Ditto.
11286 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11287 vax_store_struct_return.
11288 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11289 (STORE_RETURN_VALUE): Use vax_store_return_value.
11290 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11292 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11294 * vax-tdep.c (vax_frame_saved_pc): New function.
11295 (vax_frame_args_address_correct): Ditto.
11296 (vax_frame_args_address): Ditto.
11297 (vax_frame_locals_address): Ditto.
11298 (vax_frame_num_args): Move code to be in proximity to
11299 other frame-related functions.
11300 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11301 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11302 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11303 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11304 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11306 2002-04-22 H.J. Lu (hjl@gnu.org)
11308 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11311 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11313 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11314 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11315 (FRAME_INIT_SAVED_REGS): New macro.
11317 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11319 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11321 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11323 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11325 (fetch_osf_core_registers): Likewise.
11326 (supply_gregset): Likewise.
11328 2002-04-22 J. Brobecker <brobecker@gnat.com>
11330 * symfile.h (get_section_index): Define.
11331 * symfile.c (get_section_index): New function.
11332 * mdebugread.c (SC_IS_SBSS): New macro.
11333 (SC_IS_BSS): Return true for the scBss storage class only, as
11334 the scSBss storage class refers to the .sbss section.
11335 (parse_partial_symbols): Discard the symbols which associated
11336 section does not exist.
11337 Make sure to use the .sbss section index for symbols which
11338 storage class is scBss, rather than using the .bss section index.
11340 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11342 * vax-tdep.c: Update copyright years.
11343 (vax_register_name): New function.
11344 (vax_register_byte): Ditto.
11345 (vax_register_raw_size): Ditto.
11346 (vax_register_virtual_size): Ditto.
11347 (vax_register_virtual_type): Ditto.
11348 * config/vax/tm-vax.h: Update copyright years.
11349 (REGISTER_NAMES): Remove.
11350 (REGISTER_NAME): Define.
11351 (REGISTER_BYTE): Use vax_register_byte.
11352 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11353 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11354 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11356 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11358 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11360 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11362 2002-04-21 David S. Miller <davem@redhat.com>
11364 * arch-utils.c (generic_prologue_frameless_p): Kill
11365 SKIP_PROLOGUE_FRAMELESS_P code.
11366 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11368 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11369 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11370 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11372 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11373 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11374 (sparc_gdbarch_init): Pass it to
11375 set_gdbarch_prologue_frameless_p.
11377 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11379 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11380 (alphabsd-nat.o): New dependency list.
11382 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11384 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11386 (alpha-linux-tdep.o): New dependency list.
11387 (alphafbsd-tdep.o): Likewise.
11389 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11391 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11393 * alpha-tdep.c: ...from here.
11394 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11396 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11398 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11399 prototype from here...
11400 * alpha-tdep.h: ...to here.
11402 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11404 * frame.h (selected_frame_level): Document as deprecated.
11405 (frame_relative_level): Declare.
11406 * stack.c (frame_relative_level): New function.
11407 (selected_frame_level): Document as deprecated.
11408 (select_frame): Do not set the selected_frame_level.
11410 * stack.c (frame_info, record_selected_frame): Update.
11411 (frame_command, current_frame_command): Update.
11412 (up_silently_base, up_command, down_silently_base): Update.
11413 (down_command): Update.
11414 * inflow.c (kill_command): Update.
11415 * tracepoint.c (finish_tfind_command): Update.
11416 * corelow.c (core_open): Update.
11417 * thread.c (info_threads_command): Update.
11418 (do_captured_thread_select): Update.
11419 * infcmd.c (finish_command): Update.
11420 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11422 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11424 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11426 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11428 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11431 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11433 * alphafbsd-tdep.c: Update copyright years. Include
11435 (alphafbsd_use_struct_convention): Make static.
11436 (alphafbsd_init_abi): New function.
11437 (_initialize_alphafbsd_tdep): New function.
11438 * config/alpha/tm-fbsd.h: Update copyright years.
11439 (USE_STRUCT_CONVENTION): Remove.
11441 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11443 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11444 an Alpha ABI variant.
11445 (alpha_abi_handler_list): Declare.
11446 (alpha_gdbarch_register_os_abi): New function.
11447 (alpha_gdbarch_init): Give registered ABI variant handlers a
11448 chance to tweak the gdbarch once we have set up defaults.
11449 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11451 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11453 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11454 to standard_coerce_float_to_double.
11455 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11457 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11459 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11460 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11461 from gdbarch_tdep rather than a constant.
11462 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11463 the default text address for all Alpha Unix ABIs.
11464 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11465 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11467 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11469 * alpha-tdep.h: New file. Includes several Alpha target constants
11471 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11472 let gdbarch deal with.
11473 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11474 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11475 to dependency list.
11476 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11477 Alpha target register names.
11478 * alphabsd-nat.c: Likewise.
11479 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11480 Alpha target register names. Make serveral routines static.
11481 (alpha_get_saved_register): New function.
11482 (alpha_abi_names): New.
11483 (process_note_abi_tag_sections): New function.
11484 (get_elfosabi): New function.
11485 (alpha_gdbarch_init): New function.
11486 (alpha_dump_tdep): New function.
11487 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11489 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11491 * frame.c (find_saved_register): Delete #ifdef
11492 HAVE_REGISTER_WINDOWS code.
11493 * config/sparc/tm-sparc.h: Update comments.
11494 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11496 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11498 * i960-tdep.c (i960_find_saved_register): New function.
11499 (i960_get_saved_register): New function.
11500 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11501 (i960_get_saved_register): Declare.
11502 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11504 2002-04-20 David S. Miller <davem@redhat.com>
11506 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11508 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11510 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11511 instead of NUM_PSEUDO_REGS.
11513 2002-04-20 David S. Miller <davem@redhat.com>
11515 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11516 GDB_MULTI_ARCH_PARTIAL
11517 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11518 define, let tm-sp64.h do it.
11520 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11522 * frame.c (find_saved_register): Avoid a NULL pointer
11523 dereference and actually walk the frame list.
11525 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11527 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11528 sorted in most most-recent-used order. Document.
11529 * gdbarch.h, gdbarch.c: Regenerate.
11531 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11533 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11535 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11536 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11537 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11540 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11543 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11544 (build_builtin_type_vec128): Ditto.
11545 (append_composite_type_field): Fix calculation of type length in
11548 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11550 * config/djgpp/README: Update.
11552 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11555 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11557 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11558 (alpha_setup_arbitrary_frame): ...to this.
11559 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11560 for alpha_setup_arbitrary_frame.
11562 2002-04-18 Andrew Cagney <cagney@redhat.com>
11564 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11565 * gdbarch.h, gdbarch.c: Regenerate.
11567 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11568 * target.h (memory_breakpoint_from_pc): Update declaration.
11569 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11571 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11572 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11573 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11574 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11575 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11576 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11577 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11578 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11579 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11580 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11581 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11582 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11584 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11586 * monitor.c (monitor_insert_breakpoint): Ditto.
11587 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11589 * config/mcore/tm-mcore.h: Update copyright.
11590 * mem-break.c: Ditto.
11591 * xstormy16-tdep.c: Ditto.
11593 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11595 * p-exp.y: Add precedence rule for '^' token.
11596 This removes the shift/reduce conflicts.
11597 Remove the comment concerning these shift/reduce conflicts.
11599 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11601 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11602 (registers_powerpc_nofp): New register set for processors
11603 without floating point unit.
11605 2002-04-18 David S. Miller <davem@redhat.com>
11607 * MAINTAINERS: Add myself to write-after-approval.
11609 2002-04-17 Michael Snyder <msnyder@redhat.com>
11611 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11613 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11615 * rs6000-tdep.c (frame_initial_stack_address): Use
11616 frame_register_read to read the alloca_reg.
11618 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11620 * frame.c (find_saved_register): Find saved registers in the next
11624 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11626 * gdbarch.sh (LANG): Set to ``c''.
11628 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11630 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11632 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11634 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11637 * hpread.c (hpread_get_lntt): Add declaration.
11638 Also fix PR gdb/391.
11640 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11642 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11643 * aclocal.m4, configure: Re-generate.
11646 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11648 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11649 instead of tm_print_insn.
11651 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11653 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11655 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11657 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11658 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11659 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11661 2002-04-12 Don Howard <dhoward@redhat.com>
11663 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11664 max_user_call_depth.
11665 (init_cmd_lists): Initialize the new value;
11666 * cli/cli-script.c (execute_user_command): Limit the call depth of
11667 user defined commands. This avoids a core-dump when user commands
11668 are infinitly recursive.
11670 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11672 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11673 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11674 from tdep struct instead of DEFAULT_LR_SAVE.
11675 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11676 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11677 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11679 2002-04-12 Michael Snyder <msnyder@redhat.com>
11681 * Remote.c: Spelling fix.
11682 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11683 If no symbol found for "sbrk", try "_sbrk".
11684 (make_output_phdrs): Use bfd_section_name.
11685 (gcore_copy_callback): Use bfd_section_name.
11686 * eval.c: Indentation fix-ups.
11687 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11688 in case it gets applied to an address that is already
11689 in the instruction space.
11690 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11691 * symfile.c: Fix indentation, long lines.
11692 * source.c: White space fix-up.
11694 2002-04-12 Andrew Cagney <cagney@redhat.com>
11696 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11697 * frame.c (frame_register_read): New function. Return non-zero on
11699 (read_relative_register_raw_bytes_for_frame): Delete.
11700 (read_relative_register_raw_bytes): Delete.
11701 * frame.h (frame_register_read): Declare.
11702 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11703 * sh-tdep.c: Ditto.
11704 * infcmd.c (do_registers_info): Ditto.
11705 * hppa-tdep.c: Ditto.
11706 * rs6000-tdep.c: Ditto.
11707 * h8500-tdep.c: Ditto.
11708 * mips-tdep.c: Ditto.
11709 * h8300-tdep.c: Ditto.
11710 * z8k-tdep.c: Ditto.
11712 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11714 From Jimi X <jimix@watson.ibm.com>:
11715 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11718 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11720 From Jimi X <jimix@watson.ibm.com>:
11721 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11724 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11726 From Jimi X <jimix@watson.ibm.com>:
11727 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11728 register sets for these processor variants.
11730 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11732 * regformats/reg-ppc.dat: Support FPSCR.
11734 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11736 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11737 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11738 Add fpscr as an invalid/unfetchable register.
11739 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11740 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11741 (fill_fpregset): Add support for register fpscr.
11742 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11743 (fill_gregset): Account for the fact that register ``mq'' might
11745 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11746 (registers_power): Add fpscr to register set at slot 71.
11747 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11748 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11750 2002-04-11 Michael Snyder <msnyder@redhat.com>
11752 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11753 * configure: Regenerate.
11754 * config.in: Regenerate.
11755 * acconfig.h: Add define for _SYSCALL32.
11756 * core-sol2.c: Remove #define _SYSCALL32.
11757 * solib-legacy.c: Remove #define _SYSCALL32.
11759 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11761 * stack.c (select_frame): Cleanup internal error message, do not
11764 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11766 * stack.c (select_frame): Check that selected_frame and the
11767 specified level are as expected.
11768 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11770 * frame.h (struct frame_info): Add field `level'. Update
11772 Work-in-progress PR gdb/464.
11774 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11776 * maint.c (maint_print_section_info): Rename print_section_info.
11777 (print_bfd_section_info, print_objfile_section_info): Update.
11778 * inferior.h (struct gdbarch): Add opaque declaration.
11779 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11780 * gdbarch.h: Regenerate.
11782 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11784 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11785 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11786 (kernel_u_size): Added.
11787 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11788 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11790 2002-04-04 Jim Ingham <jingham@apple.com>
11792 * valarith.c (find_size_for_pointer_math): New function, either returns
11793 the size for a pointer's target, returns 1 for void *, or errors for
11795 (value_add, value_sub): use find_size_for_pointer_math.
11797 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11799 * linux-low.c (linux_look_up_symbols): New hook.
11800 (linux_target_ops): Add linux_look_up_symbols.
11801 * remote-utils.c (decode_address): New function.
11802 (look_up_one_symbol): New function.
11803 * server.c (handle_query): Call target look_up_symbols hook.
11804 * server.h (look_up_one_symbol): Add prototype.
11805 * target.h (struct target_ops): Add look_up_symbols hook.
11807 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11809 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11810 override FP_REGNUM with frame->fp. Update copyright.
11811 * parse.c (num_std_regs, std_regs): Delete.
11812 (target_map_name_to_register): Do not search std_regs. Update
11813 function description.
11814 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11815 declarations. Update copyright.
11818 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11820 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11821 after the last symbol in a block.
11823 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11825 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11826 is non zero as a found symbol.
11828 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11830 * findvar.c: Include "builtin-regs.h".
11831 (value_of_register): Call value_of_builtin_reg when applicable.
11832 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11833 (target_map_name_to_register): Call
11834 builtin_reg_map_name_to_regnum.
11835 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11836 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11837 (builtin_regs_h): Define.
11838 (builtin-regs.o): New target.
11839 (findvar.o): Add $(builtin_regs_h).
11840 * builtin-regs.c, builtin-regs.h: New files.
11841 * std-regs.c: New file.
11842 Partial fix for PR gdb/251.
11844 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11846 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11847 it's no longer required.
11849 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11851 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11853 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11855 From Jimi X <jimix@watson.ibm.com>:
11856 * rs6000-tdep.c (rs6000_software_single_step): Use
11857 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11858 and size. Use target_insert_breakpoint() and
11859 target_remove_breakpoint() to insert and remove breakpoints
11860 instead of explicit memory reads and writes.
11862 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11864 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11865 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11866 ELF_OBJECT_FORMAT ifdef.
11868 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11870 From Jimi X <jimix@watson.ibm.com>:
11871 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11873 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11875 From Jimi X <jimix@watson.ibm.com>:
11876 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11877 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11879 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11881 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11882 s/asprintf/xasprintf/.
11883 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11885 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11887 I believe Jeff Law denies responsability for this one:
11888 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11889 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11890 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11891 Work-around for PR gdb/366.
11893 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11895 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11896 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11897 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11899 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11901 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11902 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11905 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11907 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11910 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11912 * README (Reporting Bugs in GDB): Document the bug web page as the
11913 prefered way of submitting bugs.
11916 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11918 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11919 -1. Update comment.
11920 * gdbarch.h, gdbarch.c: Re-generate.
11922 2002-04-07 Andreas Schwab <schwab@suse.de>
11924 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11925 buffer to regcache_collect.
11927 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11929 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11930 * gdbarch.c, gdbarch.h: Re-generate.
11932 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11934 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11935 declaration. Fix -Werror.
11937 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
11939 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11940 * gdbarch.c: Regenerate.
11942 2002-04-05 Michael Snyder <msnyder@redhat.com>
11944 * breakpoint.c (clear_command): Rewrite middle section to
11945 combine two loops with identical control conditions.
11946 Add a cleanup to eliminate a memory leak.
11947 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11949 2002-04-05 H.J. Lu (hjl@gnu.org)
11951 * solib-svr4.c (bkpt_names): Add "__start".
11953 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11955 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11956 as test for 64 bit target.
11958 2002-04-05 Andrew Cagney <ac131313@redhat.com>
11960 * h8500-tdep.c (h8500_write_fp): Delete function.
11961 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11962 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11963 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11964 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11965 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11966 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11968 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11969 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11970 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11971 (d10v_write_fp): Delete function.
11972 * inferior.h (write_fp, generic_target_write_fp): Delete
11974 * regcache.c (generic_target_write_fp): Delete function.
11975 (write_fp): Delete function.
11976 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11977 * gdbarch.h, gdbarch.c: Regenerate.
11978 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11979 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11980 (sparc64_write_fp): Delete declaration.
11981 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11982 (h8500_write_fp): Delete declaration.
11984 2002-04-04 Andrew Cagney <ac131313@redhat.com>
11986 * sparc-tdep.c (sparc64_write_fp): Delete.
11987 (sparc_push_dummy_frame): Replace write_fp call with code to store
11989 (sparc_gdbarch_init): Do not initialize write_fp.
11991 2002-04-05 Kevin Buettner <kevinb@redhat.com>
11993 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11996 2002-03-29 Jim Blandy <jimb@redhat.com>
11998 * stack.c (get_selected_block): Add new argument `addr_in_block',
11999 used to return the exact code address we used to select the block,
12000 not just the block.
12001 * blockframe.c (get_frame_block, get_current_block): Same.
12002 * frame.h (get_frame_block, get_current_block,
12003 get_selected_block): Update declarations.
12004 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12005 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12007 2002-04-05 Michael Snyder <msnyder@redhat.com>
12009 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12012 2002-04-05 J. Brobecker <brobecker@gnat.com>
12014 * utils.c (xfullpath): New function.
12015 * defs.h (xfullpath): Add declaration.
12016 * source.c (openp): Use xfullpath in place of gdb_realpath to
12017 avoid resolving the basename part of filenames when the
12018 associated file is a symbolic link. This fixes a potential
12019 inconsistency between the filenames known to GDB and the
12020 filenames it prints in the annotations.
12021 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12022 to be able to match a filename with either the real filename, or
12023 the name of any symbolic link to this file.
12024 (lookup_partial_symtab): Ditto.
12026 2002-04-04 Michael Snyder <msnyder@redhat.com>
12028 * breakpoint.c: Add support for hardware breakpoints in overlays.
12029 (overlay_events_enabled): New state variable.
12030 (insert_breakpoints): Use overlay_events_enabled to decide
12031 whether to attempt to set a breakpoint at the overlay load addr.
12032 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12033 (remove_breakpoint): Use overlay_events_enabled to decide
12034 whether breakpoints need to be removed from overlay load addr.
12035 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12036 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12037 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12038 disable_overlay_breakpoints): Update overlay_events_enabled.
12040 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12042 * dwarf2read.c (struct function_range): New.
12043 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12044 (check_cu_functions): New.
12045 (read_file_scope): Initialize global function lists.
12046 Call dwarf_decode_line after processing children.
12047 (read_func_scope): Add to global function list.
12048 (dwarf_decode_lines): Call check_cu_functions everywhere
12049 record_line is called. Call record_line with a linenumber
12050 of 0 to mark sequence ends.
12052 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12054 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12055 change sync with glibc.
12057 2002-04-03 Jim Blandy <jimb@redhat.com>
12059 * configure.in: Call AC_C_INLINE.
12060 * configure: Regenerated.
12062 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12064 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12065 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12067 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12069 * NEWS: Mention gcore support on FreeBSD/i386.
12071 * fbsd-proc.c: New file.
12072 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12073 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12075 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12078 2002-03-29 Jim Blandy <jimb@redhat.com>
12080 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12081 unescaped newlines in string literals, but newer ones don't. So
12084 2002-03-26 Michael Snyder <msnyder@redhat.com>
12085 Andrew Cagney <cagney@redhat.com>
12087 * cli/cli-dump.c: New file. Dump memory to file,
12088 restore file to memory.
12089 * cli/cli-dump.h: New file.
12090 * Makefile.in: Add rules, dependencies for cli-dump.o.
12091 * NEWS: Mention new commands.
12093 2002-03-28 Michael Snyder <msnyder@redhat.com>
12095 * symfile.c (symbol_file_add): Move test for null symbols to later.
12097 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12099 From veksler at il.ibm.com:
12100 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12101 the xstrduped original path.
12104 2002-03-27 Michael Snyder <msnyder@redhat.com>
12106 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12107 * infcmd.c (_initialize_infcmd): Ditto.
12108 * language.c (_initialize_language): Ditto.
12109 * symfile.c (_initialize_symfile): Ditto.
12110 * top.c (_init_main): Ditto.
12111 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12113 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12115 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12116 vector registers handling.
12117 (skip_prologue): Handle new AltiVec instructions. Fill in new
12118 fields of frame data.
12119 (frame_get_saved_regs): Fill in information for AltiVec registers.
12121 2002-03-27 Jim Blandy <jimb@redhat.com>
12123 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12124 a function; leave this macro here to invoke that function.
12125 (symbol_init_mangled_name): Declaration for that function.
12126 * symtab.c (symbol_init_mangled_name): New function.
12128 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12130 * valarith.c: Replace strerror with safe_strerror.
12131 * tracepoint.c: Ditto.
12132 * lin-lwp.c: Ditto.
12133 * go32-nat.c: Ditto.
12135 * gnu-nat.c: Ditto.
12137 2002-03-27 Andreas Schwab <schwab@suse.de>
12139 * event-top.c (command_line_handler): Remove useless if.
12141 2002-03-27 Andreas Jaeger <aj@suse.de>
12143 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12146 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12148 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12149 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12150 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12151 (x86_64_linux_dr_get_status, supply_gregset),
12152 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12153 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12154 (x86_64_register_info_table): Add.
12155 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12156 (x86_64_register_raw_size, x86_64_register_virtual_type),
12157 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12158 general x86_64_register_info_table.
12159 (i386_gdbarch_init): gdbarch_register_bytes is now set
12160 dynamicaly during initialization.
12161 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12162 * gdbserver/linux-x86-64-low.c: Ditto.
12164 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12166 * gdbserver/server.c (main): Call target_signal_to_host_p
12167 and target_signal_to_host on signals received from the remote.
12168 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12169 target_signal_from_host on signals sent to the remote.
12170 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12171 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12173 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12175 * signals/signals.c: Include "server.h" in gdbserver build.
12176 (target_signal_from_name): Don't use STREQ.
12177 (_initialize_signals): Likewise. Don't include function in
12180 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12182 * signals.c: Moved to...
12183 * signals/signals.c: Here.
12184 * Makefile (signals.o): Update.
12186 2002-03-26 Jeff Law (law@redhat.com)
12188 * somread.c (som_symtab_read): Remove some commented out code and
12189 updated related comments. Do not set the minimal symbol table to
12190 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12191 in a dynamic executable.
12192 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12193 where we are unable to find the minimal symbol for the given
12196 2002-03-25 Jeff Law (law@redhat.com)
12198 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12200 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12202 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12204 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12206 * command.h: Update copyright.
12207 (struct cmd_list_element): Replace definition with opaque
12209 (enum cmd_types): Document that it will eventually be moved to
12211 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12212 (MALLOCED_REPLACEMENT): Delete macro.
12213 * Makefile.in (cli_decode_h): Add $(command_h).
12214 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12215 * top.c: Include "cli/cli-decode.h".
12216 * completer.c: Include "cli/cli-decode.h".
12217 * maint.c: Include "cli/cli-decode.h".
12218 * cli/cli-decode.h: Include "command.h".
12219 (enum command_class): Delete.
12220 (enum cmd_types): Comment out.
12221 (enum cmd_auto_boolean): Delete.
12222 (enum var_types): Delete.
12224 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12226 * cli/cli-decode.c: Include "gdb_assert.h".
12227 (add_set_or_show_cmd): New static function.
12228 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12229 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12230 all fields, such as func, from the set command.
12232 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12234 * MAINTAINERS (sh-elf): Change warning flag to -w.
12236 2002-03-23 Andrew Cagney <cagney@redhat.com>
12238 * defs.h (error): Add printf format attribute.
12239 * thread-db.c (thread_from_lwp): Fix error format string.
12240 * stack.c (parse_frame_specification): Ditto.
12241 * cli/cli-decode.c (undef_cmd_error): Ditto.
12242 * scm-lang.c (scm_lookup_name): Ditto.
12243 * tracepoint.c (trace_error): Ditto.
12244 * remote-utils.c (usage): Ditto.
12245 * remote.c (compare_sections_command): Ditto.
12248 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12250 * gdbtypes.c (append_composite_type_field): New function.
12251 (init_composite_type): New function.
12252 * gdbtypes.h (append_composite_type_field): Declare.
12253 (init_composite_type): Ditto.
12255 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12257 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12259 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12260 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12261 structure returning convention for SYSV ABI case, but not
12262 for GNU/Linux, FreeBSD, or NetBSD.
12264 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12266 * symtab.h (lookup_block_symbol): Add mangled_name argument
12269 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12270 with new mangled_name argument.
12271 * linespec.c (decode_line_1): Likewise.
12272 * valops (value_of_this): Likewise.
12273 * symtab.c (lookup_transparent_type): Likewise.
12274 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12275 (lookup_symbol): If we are given a mangled name, pass it down
12276 to lookup_symbol_aux.
12277 (lookup_block_symbol): If we are given a mangled name to check
12278 against, only return symbols which match it.
12280 2002-03-22 Christopher Faylor <cgf@redhat.com>
12282 * win32-nat.c (child_create_inferior): Check for proper shell to use
12283 here, in case the user changes it on the fly.
12284 (_initialize_inftarg): Remove shell path considerations.
12286 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12288 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12289 for gdbarch_max_register_raw_size and max_register_virtual_size.
12290 Adjust copyright year.
12292 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12294 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12295 in a function to cover the entire beginning of the function
12296 as well if it does not already.
12298 2002-03-21 Tom Rix <trix@redhat.com>
12300 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12301 (rs6000_ptrace64): Renamed from ptrace64.
12303 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12305 * gdbserver/remote-utils.c (remote_open): Don't call
12306 getprotobyname, we're all using TCP here so just use
12308 * gdbserver/gdbreplay.c (remote_open): Ditto.
12310 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12312 * regcache.c (_initialize_regcache): No need to call
12313 build_regcache() at this time; it gets called whenever
12314 the gdbarch changes.
12316 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12318 * sparc-nat.c: Include sys/param.h where possible.
12320 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12323 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12324 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12325 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12327 * stabsread.c (rs6000_builtin_type): Likewise.
12328 (read_sun_floating_type): Likewise.
12330 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12332 * stabsread.c (read_member_functions): Remove skip code for duplicate
12333 constructor/destructor methods. Use standard parsing for these
12334 methods and just do not chain them to the list of methods after
12337 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12339 * coffread.c: Remove redundant static declarations. Replace
12340 occurrences of `PTR' with `void *'.
12341 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12342 * top.h (quit_cover): Likewise.
12343 * defs.h (catch_errors): Likewise.
12345 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12347 * defs.h (XMALLOC): Define.
12348 * gdb-events.sh (XMALLOC): Delete macro.
12349 * gdb-events.c, gdb-events.h: Regenerate.
12350 * gdbarch.sh (XMALLOC): Delete macro.
12351 * gdbarch.c: Regenerate.
12352 * serial.c (XMALLOC): Delete macro.
12353 * ui-file.c (XMALLOC): Ditto.
12354 * ser-unix.h (XMALLOC): Ditto.
12355 * sh-tdep.c (XMALLOC): Ditto.
12356 * ui-out.c (XMALLOC): Ditto.
12357 * utils.c (XMALLOC): Ditto.
12358 * i386-tdep.c (XMALLOC): Ditto.
12359 * gdb-events.c (XMALLOC): Ditto.
12360 * d10v-tdep.c (XMALLOC): Ditto.
12361 * cli-out.c (XMALLOC): Ditto.
12363 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12364 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12365 * ui-file.c, ui-out.c: Ditto.
12367 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12369 * command.h (struct cmd_list_element): Add field context.
12370 (set_cmd_context, get_cmd_context): Declare.
12371 * cli/cli-decode.h: Ditto.
12372 * cli/cli-decode.c (get_cmd_context): New function.
12373 (set_cmd_context): New function.
12374 (add_cmd): Initialize context.
12375 Part of fixing PR gdb/145 and PR gdb/146.
12377 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12379 * cli/cli-decode.c (cmd_type): New function.
12380 * command.h (cmd_type): Declare.
12381 * infrun.c (set_schedlock_func): Call function cmd_type.
12382 * kod.c (kod_set_os): Call cmd_type.
12383 * cris-tdep.c (cris_version_update): Use function cmd_type.
12384 (cris_mode_update, cris_abi_update): Ditto.
12386 * command.h: (execute_cmd_post_hook): Declare.
12387 (execute_cmd_pre_hook): Declare.
12388 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12389 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12390 functions. Execute pre/post hook while ensuring that afterwords
12391 hook_in is cleared.
12392 * top.c (execute_command): Use execute_cmd_post_hook, and
12393 execute_cmd_pre_hook to execute pre/post commands.
12394 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12396 (hook_stop_stub): Call execute_cmd_pre_hook.
12398 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12400 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12401 set'' and this leads to a core dump. Move xstrdup of
12402 operating_system to after check that it is not NULL.
12404 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12406 * kod.c (kod_set_os): Remove unnecessary check that
12407 ``command->type'' is set_cmd.
12409 * valprint.c (set_input_radix): Use input_radix.
12410 (set_output_radix): Use output_radix.
12411 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12414 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12416 * value.h (struct value): Delete field ``substring_addr''. Change
12417 aligner fields to force_doublest_align, force_longest_align,
12418 force_core_addr_align and force_pointer_aligh.
12420 * value.h (struct value): Fix typo in above change.
12422 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12424 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12425 to fix internal_error from ``maintenance print architecture''.
12427 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12429 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12430 for gcc versions after gcc-2.8.1.
12432 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12434 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12435 for method resolution. Restore adjustment of ``this'' pointer after
12436 calling value_struct_elt, which was accidentally removed during the
12439 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12441 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12443 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12444 get_saved_register.
12445 * value.h (value_of_register): Update.
12447 2002-03-14 Richard Henderson <rth@redhat.com>
12449 * configure.in: Detect declaration for canonicalize_file_name.
12450 * utils.c (canonicalize_file_name): Declare, if needed.
12451 (gdb_realpath): Prefer realpath if available and usable.
12452 * config.in, configure: Rebuild.
12454 2002-03-14 Richard Henderson <rth@redhat.com>
12456 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12457 a constant array bound.
12459 * MAINTAINERS: Add myself to write-after-approval.
12461 2002-03-14 Michael Snyder <msnyder@redhat.com>
12463 * symfile.c (syms_from_objfile): Return immediately if no syms.
12464 (symbol_file_add): Return immediately if no syms.
12465 (find_sym_fns): Return immediately if no syms.
12467 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12469 * gdbserver/remote-util.c (remote_open): Print remote-side's
12470 IP address when remote debugging over the network.
12472 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12474 * config/sparc/fbsd.mh: Fix copyright.
12475 * config/sparc/fbsd.mt: Likewise.
12477 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12479 * MAINTAINERS: Fix typo in name of gdb warnings option.
12480 (x86-64): Fix formating so that this can be parsed by awk.
12482 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12484 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12485 * defs.h: Include "gdb/signals.h".
12486 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12488 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12490 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12491 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12494 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12495 Don Howard <dhoward@redhat.com>
12497 * mips-tdep.c (ST0_FR): Define.
12498 (mips2_fp_compat): New function, temporarily disabled.
12499 (mips_read_fp_register_single): New function.
12500 (mips_read_fp_register_double): New function.
12501 (mips_print_register): Use them.
12502 (do_fp_register_row): Likewise.
12504 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12506 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12509 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12511 * stabsread.c (read_member_functions): Fix is_stub test for
12512 static member functions, improve comment.
12514 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12516 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12517 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12518 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12519 commands that set boolean values.
12520 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12521 (arm_rdi_resume): Always initialize PC.
12522 (arm_rdi_open): Don't use rslt as a boolean.
12523 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12524 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12525 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12526 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12528 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12530 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12531 * configure: Rebuilt.
12533 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12535 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12536 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12538 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12540 * cli/cli-decode.c (set_cmd_completer): New function.
12541 * command.h (set_cmd_completer): Declare.
12542 * cli/cli-decode.h (set_cmd_completer): Ditto.
12544 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12545 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12546 * win32-nat.c (_initialize_inftarg): Ditto.
12547 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12548 * proc-api.c (_initialize_proc_api): Ditto.
12549 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12550 * source.c (_initialize_source): Ditto.
12551 * exec.c (_initialize_exec): Ditto.
12552 * solib.c (_initialize_solib): Ditto.
12553 * top.c (init_main): Ditto.
12554 * tracepoint.c (_initialize_tracepoint): Ditto.
12555 * symfile.c (_initialize_symfile): Ditto.
12556 * printcmd.c (_initialize_printcmd): Ditto.
12557 * infcmd.c (_initialize_infcmd): Ditto.
12558 * corefile.c (_initialize_core): Ditto.
12560 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12562 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12564 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12566 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12568 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12570 * NEWS: Update headings, 5.2 has branched.
12572 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12574 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12575 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12576 (register_addr, REGISTER_RAW_SIZE): Likewise.
12577 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12578 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12580 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12582 * MAINTAINERS (x86-64): Add myself.
12583 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12584 changed value_ptr -> struct value *
12586 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12588 * configure.host (sparc64-*-freebsd): Add.
12589 * configure.tgt: Likewise.
12590 * config/sparc/fbsd.mh: New file.
12591 * config/sparc/fbsd.mt: Likewise.
12592 * config/sparc/nm-fbsd.h: Likewise.
12593 * config/sparc/tm-fbsd.h: Likewise.
12595 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12597 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12598 regformats/reg-s390x.dat.
12600 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12602 * utils.c: Add FIXME explaining true/false problem.
12604 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12606 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12608 2002-02-28 Michael Chastain <mec@shout.net>
12610 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12612 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12614 * gdbserver/linux-s390-low.c: New file.
12615 * regformats/reg-s390.dat: New file.
12616 * regformats/reg-s390x.dat: New file.
12617 * gdbserver/configure.srv: Add S/390.
12618 * gdbserver/Makefile.in: Add S/390.
12619 * configure.tgt: Enable gdbserver for S/390.
12621 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12623 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12624 first line of the doc string for "info dos", except at the end of
12625 the sentence, since the short help stops at the first period.
12627 2002-02-28 Jason Merrill <jason@redhat.com>
12629 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12631 2002-02-27 Fred Fish <fnf@redhat.com>
12633 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12634 comment (dumy -> dummy).
12636 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12638 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12640 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12642 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12644 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12646 * gdbserver/acconfig.h: New file.
12647 * gdbserver/i387-fp.c: New file.
12648 * gdbserver/i387-fp.h: New file.
12649 * gdbserver/linux-x86-64.c: New file.
12650 * regformats/reg-x86-64.dat: New file.
12651 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12652 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12653 * gdbserver/configure.in: Add support for regsets.
12654 * gdbserver/config.in: Regenerate.
12655 * gdbserver/configure: Regenerate.
12656 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12657 * gdbserver/linux-low.h: New file.
12658 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12660 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12661 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12662 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12663 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12664 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12665 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12666 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12667 "i387-fp.h". Add PTRACE_GETREGS and friends.
12668 * gdbserver/regcache.c (supply_register): New function.
12669 (supply_register_by_name): New function.
12670 (collect_register): New function.
12671 (collect_register_by_name): New function.
12673 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12675 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12676 (config.status): Add configure.srv dependency.
12677 (server_h): Add config.h dependency.
12679 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12681 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12682 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12683 * gdbserver/configure.srv: Change i386-*-linux* to use
12686 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12688 * x86-64-tdep.c: Re-indent. Update copyright date.
12690 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12692 From Michal Ludvig <mludvig@suse.cz>:
12693 * x86-64-tdep.c (value.h): Delete.
12694 (gdb_assert.h): Include.
12695 (x86_64_register_convert_to_virtual,
12696 x86_64_register_convert_to_raw ): Add check which lets only
12697 floating-point values to be converted.
12698 (value_push): Delete.
12699 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12700 (i386_gdbarch_init): Number of register_bytes fixed.
12702 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12704 * MAINTAINERS: Add x86-64 target.
12706 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12708 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12709 * osfsolib.c (solib_map_sections): Ditto.
12710 * irix5-nat.c (solib_map_sections): Ditto.
12711 * corelow.c (gdb_check_format): Ditto.
12712 * symfile.c (symfile_bfd_open): Ditto.
12713 * solib.c (solib_map_sections): Ditto.
12716 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12718 * remote.c (_initialize_remote): By default, disable ``e'' and
12719 ``E'' step out-of-range packets.
12721 2002-02-26 Andreas Schwab <schwab@suse.de>
12723 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12724 m68k_linux_frame_saved_pc.
12725 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12727 (SIGCONTEXT_PC_OFFSET): Remove.
12728 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12729 m68k_linux_sigtramp_saved_pc): New functions.
12730 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12731 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12732 (UCONTEXT_PC_OFFSET): Define.
12733 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12734 non-RT and RT signal trampolines.
12736 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12738 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12739 (TARGET_NBPG, STACK_END_ADDR): Delete
12740 (VARIABLES_INSIDE_BLOCK): Delete.
12742 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12744 * utils.c (perror_with_name): Make string parameter constant.
12745 (print_sys_errmsg): Ditto.
12747 * defs.h (perror_with_name): Update.
12748 (print_sys_errmsg): Update.
12751 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12753 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12754 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12756 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12758 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12759 if it already matches the current architecture from the exec file.
12760 Include arch-utils.h for gdbarch_info_init prototype.
12761 * Makefile.in (rs6000-nat.o): Update dependencies.
12763 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12765 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12766 list of exported variables.
12768 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12770 * gdbserver/configure.srv: New file.
12771 * gdbserver/configure.in: Use configure.srv instead
12772 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12774 * gdbserver/configure: Regenerated.
12775 * gdbserver/terminal.h: New file.
12776 * gdbserver/Makefile.in: Update for configure changes. Remove
12777 more unneeded include paths.
12779 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12781 From wiz at danbala:
12782 * config/sparc/tm-sp64.h: Fix grammar and typos.
12785 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12787 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12788 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12789 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12790 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12791 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12792 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12793 * s390-tdep.c: Ditto.
12794 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12795 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12796 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12797 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12798 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12799 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12800 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12801 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12802 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12803 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12806 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12808 * lin-thread.c: Delete file.
12809 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12810 to gdb_proc_service.h.
12811 * configure: Re-generate.
12813 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12814 * serial.c (serial_open): Delete check for "ocd".
12817 * Makefile.in (linux-thread.o): Delete target.
12818 * linux-thread.c: Delete file.
12820 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12821 renamed SH files to be consistent.
12823 * symtab.c (sort_search_symbols): Use xfree.
12825 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12827 * arm-linux-tdep.c (arm_linux_init_abi): Register
12828 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12829 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12830 definition with undef, since we don't want the sysvr4 definition.
12831 (SKIP_TRAMPOLINE_CODE): Likewise.
12833 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12835 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12837 * configure.in: (AC_CHECK_FUNCS) Added test for
12838 canonicalize_file_name Regenerated.
12839 * config.in, configure: Regenerated.
12840 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12841 defined use canonicalize_file_name.
12843 2002-02-23 Michael Chastain <mec@shout.net>
12845 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12847 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12849 * README: Remove references to cygnus.com.
12850 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12851 dot com'' form. Remove references to cygnus.com and sourceware.
12853 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12855 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12856 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12857 1003.1-2001 no longer allows "head -1".
12858 * gdb/Makefile.in (version.c): Likewise.
12859 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12860 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12861 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12863 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12865 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12866 * command.h (cmd_cfunc_eq): Declare.
12867 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12869 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12870 ``struct cmd_list_element *''.
12871 * cli/cli-cmds.c (is_complete_command): Update. Use
12873 * top.c (execute_command): Pass the command to
12874 is_complete_command.
12875 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12877 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12879 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12880 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12881 architecture defines.
12882 * s390-tdep.c (s390_gdbarch_init): Likewise.
12884 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12886 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12887 (arm_linux_push_arguments): Likewise.
12888 (arm_linux_init_abi): Register them. Also register linux-specific
12890 (find_minsym_and_objfile): Use strcmp, not STREQ.
12891 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12892 (arm_linux_call_dummy_words): Delete declaration.
12893 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12894 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12896 (LOWEST_PC): Delete.
12898 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12900 * maint.c (print_section_info): Do not prepend `0x' to filepos
12901 output, it will be handled by local_hex_string_custom.
12903 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12905 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12906 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12907 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12909 2002-02-22 Jim Blandy <jimb@redhat.com>
12911 Indicate that the bcache functions don't change the strings
12913 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12914 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12916 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12918 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12920 2002-02-21 Christopher Faylor <cgf@redhat.com>
12922 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12923 find the complete path to a loaded DLL.
12925 2002-02-21 Fred Fish <fnf@redhat.com>
12927 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12928 that marks the end of the range of a function, enter a line number
12929 entry that has a line number of zero and a PC offset that matches
12930 the end of the function. This starts a range of PC's for which no
12931 line number information is known.
12932 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12933 PC's for which no line number info is found (line number is zero)
12934 then we didn't find any valid line information.
12935 * symtab.h: Document use of zero line number entry.
12937 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
12939 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12940 (have_ptrace_getvrregs): Define for run time checks.
12941 (gdb_vrregset_t): New type for Altivec register handling.
12942 (fetch_register, store_register): Fetch/store altivec register
12944 (fetch_altivec_register, store_altivec_register): New functions.
12945 (supply_vrregset, fill_vrregset): New functions.
12946 (fetch_altivec_registers, store_altivec_registers): New functions.
12947 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12950 2002-02-21 Jiri Smid <smid@suse.cz>
12952 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12954 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12956 * Makefile.in (armnbsd-nat.o): Update dependencies.
12957 * armnbsd-nat.c (supply_gregset): New function. Common code to
12958 supply the integer register set.
12959 (supply_fparegset): New function. Similar for FPA registers.
12960 (fetch_regs, fetch_fp_regs): Use them.
12961 (fetch_core_registers): Likewise.
12962 (fetch_elfcore_registers): New function.
12963 (arm_netbsd_elfcore_fns): New core-file type specification.
12964 (_initialize_arm_netbsd_nat): Register it.
12966 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
12968 * armnbsd-nat.c: Include gdbcore.h.
12969 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12970 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12971 'void' to declaration, to shut up ARI.
12972 (fetch_core_registers): Make static. Rewrite using supply_register.
12973 (arm_netbsd_core_fns): New core-file type specification.
12974 (_initialize_arm_netbsd_nat): New function.
12976 2002-02-21 Christopher Faylor <cgf@redhat.com>
12978 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12981 2002-02-20 Christopher Faylor <cgf@redhat.com>
12983 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12986 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12988 * jv-exp.y (parse_number): Change type of implicit longs
12989 to builtin_type_uint64.
12991 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12993 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12994 to be an integer instead of a `union wait'.
12996 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
12998 * mips-linux-nat.c: Call the operating system GNU/Linux.
12999 * mips-linux-tdep.c: Likewise.
13000 * mips-tdep.c: Likewise.
13002 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13005 * jv-exp.y (parse_number): Handle 64-bit integers.
13007 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13009 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13010 AC_STDC_HEADERS to AC_HEADER_STDC.
13011 * gdbserver/configure: Regenerated.
13013 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13015 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13017 * sparc-tdep.c (get_longjmp_target): Likewise.
13019 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13021 * News: Add news about ARM and Multi-arch. Mention the new target
13024 2002-02-19 Jim Blandy <jimb@redhat.com>
13026 * stabsread.c (error_type_complaint): Improve error message.
13028 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13030 * gdbserver/README: Update documentation.
13031 * gdbserver/configure.in: Update configury to match documentation.
13032 * gdbserver/Makefile.in: Likewise.
13033 * gdbserver/configure: Regenerated.
13034 * gdbserver/aclocal.m4: New file, generated by aclocal.
13035 * gdbserver/config.in: New file, generated by autoheader.
13037 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13039 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13042 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13044 * arm-tdep.h (enum arm_float_model): New enum.
13045 (struct gdbarch_tdep): Add fp_model.
13046 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13047 up floating-point conversions until we know the floating-point model
13048 in use by the inferior. Don't complain about being unable to
13049 determine the ABI of the inferior when we don't have one.
13050 (arm_extract_return_value): Support different floating-point models.
13051 (arm_store_return_value): Likewise.
13052 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13054 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13056 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13058 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13059 of ``current_gdbarch''.
13061 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13063 * armnbsd-nat.c : ANSIfy all function declarations.
13064 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13065 (fetch_inferior_registers): Re-implement in terms of above.
13066 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13067 (store_inferior_registers): Re-implement in terms of above.
13069 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13071 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13073 * arm-linux-tdep.c: Likewise.
13074 * config/arm/tm-linux.h: Likewise.
13076 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13078 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13079 * config/arm/nbsd.mt (TM_FILE): Delete.
13080 * config/arm/tm-nbsd.h: Delete.
13082 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13084 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13085 Initialize CALL_DUMMY_LENGTH.
13087 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13089 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13091 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13092 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13093 defines one thing and that is incorrect for this port.
13094 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13096 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13098 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13100 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13102 * win32-nat.c (display_selector): New function. Displays information
13103 about the information returned by GetThreadSelectorEntry API function.
13104 (display_selectors): New function. Displays the infomation of
13105 the selector given as argument, or of CS, DS ans FS selectors
13106 if no argument is given.
13107 ( _initialize_inftarg): Add "w32" as info prefix command.
13108 Add "info w32 selector" as command calling display_selectors.
13110 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13112 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13113 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13116 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13118 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13120 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13122 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13123 (arm_fix_call_dummy): Call it.
13124 (arm_call_dummy_breakpoint_offset): Delete.
13125 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13126 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13128 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13130 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13131 Default to func_frame_chain_valid.
13132 * gdbarch.h, gdbarch.c: Re-generate.
13133 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13135 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13137 * ppc-linux-nat.c: Update copyright.
13138 (fetch_register, store_register): Add tid parameter, don't compute
13140 (fetch_ppc_registers, store_ppc_registers): Add tid
13141 parameter. Pass it along to callees.
13142 (fetch_inferior_registers, store_inferior_registers): Compute tid
13143 here, and pass it to calleed functions.
13144 (fill_gregset, supply_fpregset): Clean up formatting.
13146 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13148 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13149 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13151 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13153 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13154 * gdbarch.c gdbarch.h: Regenerate.
13155 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13157 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13158 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13159 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13161 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13162 * arm-tdep.c (arm_get_longjmp_target): New function.
13163 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13164 this to a positive value register arm_get_longjmp_target as the
13166 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13167 (arm_linux_init_abi): Set up longjmp description in tdep.
13168 * armnbsd-nat.c (get_longjmp_target): Delete.
13169 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13170 description in tdep.
13171 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13172 (get_longjmp_target): Delete declaration.
13173 (GET_LONGJMP_TARGET): Delete.
13174 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13175 (GET_LONGJMP_TARGET): Delete.
13177 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13179 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13180 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13181 of ``current_gdbarch''.
13183 2002-02-17 Tom Tromey <tromey@redhat.com>
13185 * cli/cli-cmds.c (compare_strings): New function.
13186 (complete_command): Only print each unique item once.
13187 * completer.h (complete_line): Declare.
13188 * completer.c (complete_line): New function.
13189 (line_completion_function): Use it.
13191 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13193 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13194 * gdbarch.h, gdbarch.c: Re-generate.
13196 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13198 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13200 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13202 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13203 * valops.c (value_arg_coerce): Don't take the address of a reference
13204 to convert an argument to a reference.
13206 2002-02-15 Christopher Faylor <cgf@redhat.com>
13208 * win32-nat.c (get_image_name): New function.
13209 (handle_load_dll): Use get_image_name function.
13210 (get_child_debug_event): Avoid registering debug events until possibly
13211 execed process is started.
13212 (child_create_inferior): Allow invocation via shell so that command
13213 line redirection, etc. works ok.
13214 (_initialize_inftarg): Add new command: "set shell" to control whether
13215 a shell is used to start a process.
13217 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13219 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13220 instead of find_register_by_number.
13221 (cannot_store_register): Likewise.
13223 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13225 * dwarf2read.c: Replace fprintf (stderr, ...) by
13226 fprintf_unfiltered (gdb_stderr, ...).
13228 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13230 * gdbserver/gdbserver.1: Document --attach.
13232 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13234 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13236 * arm-tdep.c (arm_default_arm_le_breakpoint)
13237 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13238 (arm_default_thumb_be_breakpoint): New. Initialize them from
13239 traditional breakpoint defines.
13240 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13241 (arm_gdbarch_init): Initialize new breakpoint variables.
13242 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13243 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13244 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13245 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13247 (arm_netbsd_init_abi_common): ... here; new function.
13248 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13249 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13250 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13251 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13253 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13255 * arm-tdep.h (enum arm_abi): New enum.
13256 (struct gdbarch_tdep): New structure.
13257 (LOWEST_PC): Provide a default.
13258 (arm_gdbarch_register_os_abi): Declare new function.
13259 * arm-tdep.c (arm_abi_names): New array.
13260 (process_note_abi_tag_sections): New function.
13261 (get_elfosabi): New function.
13262 (arm_gdbarch_register_os_abi): New function.
13263 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13264 support for that ABI has been built in, then call the appropriate
13265 configuration routine. Use gdbarch_num_regs() to get the number
13267 (arm_dump_tdep): New function.
13268 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13269 place-holder functions.
13270 (_initialize_arm_tdep): Register them.
13271 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13273 * armnbsd-tdep.c: New file.
13274 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13275 * config/arm/nbsd.mt (TDEPFILES): Add it.
13276 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13278 * armnbsd-nat.c: Include regcache.h.
13279 * Makefile.in (armnbsd-nat.o): Update dependency list.
13281 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13283 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13285 * gdbserver/Makefile.in: Fix typos in target rules.
13287 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13289 Fix part of PR gdb/267.
13290 * linespec.c (find_methods): Handle constructors specially for now.
13292 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13294 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13296 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13297 standard_coerce_float_to_double().
13299 2002-02-14 Christopher Faylor <cgf@redhat.com>
13301 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13304 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13306 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13307 find_variant_by_name, because it confuses the multiarch
13308 framework. Return NULL if there isn't an architecture with the
13309 user supplied name, instead of forcing a different one without
13310 recording the change with the multiarch machinery.
13311 (find_variant_by_name): Delete.
13313 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13315 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13316 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13318 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13320 * stack.c (print_frame_info_base): When calling
13321 print_frame_info_listing_hook, set current_source_symtab.
13323 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13325 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13326 and remove unused $(INCLUDE_DIR).
13327 Add regcache.c to OBS.
13328 Add generated register protocol files to clean target.
13329 Update dependencies for new objects, obsolete old target code.
13331 * gdbserver/linux-low.c: Remove all platform-specific code to
13332 new files. Remove various dead code. Update to use regcache
13334 * gdbserver/remote-utils.c (fromhex): Add return statement
13336 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13338 (input_interrupt): Add integer parameter to match prototype
13339 of a signal handler.
13340 (outreg): Use register_data ().
13341 (prepare_resume_reply): Use gdbserver_expedite_regs.
13342 * gdbserver/server.c (main): Dynamically allocate own_buf because
13343 PBUFSIZ is no longer constant. Use registers_to_string () and
13344 registers_from_string ().
13345 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13346 for error (), fatal (), and warning (). Update definition of
13347 PBUFSIZ to use regcache functionality. Add include guard.
13348 * gdbserver/utils.c (fatal): Add missing ``const''.
13349 (warning): New function.
13351 * regformats/regdat.sh: Include "regcache.h" in generated files.
13352 Provide init_registers () function.
13353 * regformats/regdef.h: Add prototype for set_register_cache ().
13356 * gdbserver/linux-arm-low.c: New file.
13357 * gdbserver/linux-i386-low.c: New file.
13358 * gdbserver/linux-ia64-low.c: New file.
13359 * gdbserver/linux-m68k-low.c: New file.
13360 * gdbserver/linux-mips-low.c: New file.
13361 * gdbserver/linux-ppc-low.c: New file.
13362 * gdbserver/linux-sh-low.c: New file.
13364 * gdbserver/regcache.c: New file.
13365 * gdbserver/regcache.h: New file.
13367 * gdbserver/low-linux.c: Removed obsolete file.
13369 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13371 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13372 * config/i386/linux.mt: Likewise.
13373 * config/ia64/linux.mt: Likewise.
13374 * config/m68k/linux.mh: Likewise.
13375 * config/powerpc/linux.mh: Likewise.
13376 * config/mips/linux.mt: Likewise.
13378 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13380 * config/i386/i386lynx.mh: Mark gdbserver variables
13381 as (currently) obsolete for this target.
13382 * config/i386/nbsd.mt: Likewise.
13383 * config/i386/nbsdelf.mt: Likewise.
13384 * config/m32r/m32r.mt: Likewise.
13385 * config/m68k/m68klynx.mh: Likewise.
13386 * config/m68k/nbsd.mt: Likewise.
13387 * config/m68k/sun3os4.mh: Likewise.
13388 * config/mips/vr5000.mt: Likewise.
13389 * config/ns32k/nbsd.mt: Likewise.
13390 * config/pa/hppabsd.mh: Likewise.
13391 * config/pa/hppaosf.mh: Likewise.
13392 * config/powerpc/nbsd.mt: Likewise.
13393 * config/rs6000/rs6000lynx.mh: Likewise.
13394 * config/s390/s390.mt: Likewise.
13395 * config/s390/s390x.mt: Likewise.
13396 * config/sparc/sparclynx.mh: Likewise.
13397 * config/sparc/sun4os4.mh: Likewise.
13398 * config/i386/x86-64linux.mt: Likewise.
13399 * config/sparc/linux.mh: Likewise.
13401 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13403 * configure.tgt: Configure gdbserver only for known working
13404 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13405 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13406 SUBDIRS if it is configured. Update comment for ${nativefile}.
13407 * configure: Regenerated.
13409 2002-02-13 Michael Snyder <msnyder@redhat.com>
13411 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13413 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13414 (default_gcore_mach): Just return 0, work around a problem in bfd.
13415 (default_gcore_target): OK to return NULL if exec_bfd is null.
13416 (make_mem_sec): Use a cast, avoid a warning.
13418 * procfs.c (find_memory_regions_callback): Use a cast instead of
13419 calling host_pointer_to_address (which complains if
13420 sizeof (host pointer) != sizeof (target pointer)).
13421 (procfs_make_note_section): Avoid overflow in psargs string.
13423 * procfs.c (procfs_make_note_section): Make the default
13424 implementation return an error.
13426 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13428 * procfs.c (procfs_make_note_section): Provide a default definition
13429 (for alpha-dec-osf4.0f). Fix typos.
13431 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13433 * linux-proc.c: Add include of regcache.h.
13434 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13436 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13438 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13439 * memattr.c (create_mem_region): Disallow useless empty region.
13440 Regions are half-open intervals, so allow [A..B) [B..C) as
13443 2002-02-13 Michael Chastain <mec@shout.net>
13445 * defs.h: Kill CONST_PTR.
13446 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13447 * c-lang.c (c_builtin_types): Likewise.
13448 * ch-lang.c (ch_builtin_types): Likewise.
13449 * f-lang.c (f_builtin_types): Likewise.
13450 * language.c (unknown_builtin_types): Likewise.
13451 * m2-lang.c (m2_builtin_types): Likewise.
13452 * p-lang.c (pascal_builtin_types): Likewise.
13453 * scm-lang.c (c_builtin_types): Likewise.
13455 2002-02-13 Keith Seitz <keiths@redhat.com>
13457 * arm-tdep.h (arm_get_next_pc): Add declaration.
13459 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13461 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13462 with other related struct-returning functions.
13463 (arm_extract_struct_value_address): New function.
13464 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13465 initialize float_format, double_format and long_double_format as
13466 appropriate to the endianness of the target.
13467 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13468 (arm_use_struct_convention): Delete declaration.
13469 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13471 2002-02-13 Keith Seitz <keiths@redhat.com>
13473 * defs.h (core_addr_to_string_nz): New function.
13475 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13477 Apply missing bits of 2002-01-15 patch.
13478 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13479 (fill_fpregset): Use i387_fill_fsave.
13481 2002-02-12 Keith Seitz <keiths@redhat.com>
13483 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13484 (core_addr_to_string_nz): New function.
13486 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13488 * arm-linux-nat.c: Really include arm-tdep.h.
13489 * config/arm/tm-linux.h (struct type, struct value): Declare.
13491 2002-02-11 Michael Snyder <msnyder@redhat.com>
13493 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13494 (gcore section): Ifdef for Solaris and Unixware only.
13495 (procfs_do_thread_registers): Unixware needs one lwpstatus
13496 per thread (not one prstatus or pstatus).
13497 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13498 not over all gdb threads. For unixware, call elfcore_write_pstatus
13499 once before iterating over threads.
13501 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13503 * arm-tdep.h: New file.
13504 * arm-tdep.c: Include arm-tdep.h.
13505 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13506 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13507 (arm_print_float_info, arm_register_type, convert_to_extended)
13508 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13509 (arm_extract_return_value, arm_register_name): Make static.
13510 (arm_software_single_step): Similarly. Fix types in declaration.
13511 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13512 (arm_store_return_value, arm_store_struct_return): New functions.
13513 (arm_gdbarch_init): Register the above functions. Also register
13514 call_dummy_start_offset, sizeof_call_dummy_words,
13515 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13516 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13517 max_register_virtual_size, register_size. Set up
13518 prologue_cache.saved_regs here, rather than ...
13519 (_initialize_arm_tdep): ... here.
13520 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13522 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13523 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13524 (arm_print_float_info, arm_register_type, convert_to_extended)
13525 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13526 (arm_extract_return_value, arm_register_name): Delete declarations.
13527 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13528 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13529 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13530 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13531 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13532 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13533 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13534 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13535 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13536 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13537 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13538 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13540 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13541 * remote-rdi.c remote-rdp.c: Likewise.
13542 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13543 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13544 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13547 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13548 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13549 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13550 from non-ARM_ prefixed definitions.
13551 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13553 * remote-rdi.c remote-rdp.c: Likewise.
13554 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13556 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13558 * arm-tdep.c (arm_frameless_function_invocation)
13559 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13560 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13561 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13562 (arm_pop_frame, arm_get_next_pc): Make static.
13563 (arm_gdbarch_init): Register above in gdbarch structure.
13564 (arm_read_fp): Renamed from arm_target_read_fp.
13565 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13566 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13567 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13568 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13569 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13570 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13571 (arm_pc_is_thumb_dummy): Delete declarations.
13572 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13573 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13574 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13575 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13577 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13579 * symtab.c (compare_search_syms): New function.
13580 (sort_search_symbols): New function.
13581 (search_symbols): Sort symbols after searching rather than
13584 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13586 * NEWS: Linux -> GNU/Linux.
13588 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13590 * gdbarch.sh: For for level one methods, disallow a definition
13591 when partially multi-arched. Add comments explaining rationale.
13592 * gdbarch.h: Re-generate.
13594 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13596 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13597 multi-arch partial.
13599 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13601 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13602 field. Use diff -u.
13603 * gdbarch.c: Re-generate.
13605 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13607 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13608 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13611 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13613 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13614 multi-arch partial.
13615 (PUSH_ARGUMENTS): Switch to using predefault.
13616 * gdbarch.c: Regenerate.
13618 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13620 * valops.c (PUSH_ARGUMENTS): Delete definition.
13621 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13622 partial. Default to default_push_arguments.
13623 * gdbarch.h, gdbarch.c: Regenerate.
13625 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13627 * defs.h (throw_exception): Rename return_to_top_level. Update
13629 * utils.c (error_stream, internal_verror, quit): Ditto.
13630 * top.c (throw_exception, catcher): Ditto.
13631 * sparclet-rom.c (sparclet_load): Ditto.
13632 * remote.c (interrupt_query, minitelnet): Ditto.
13633 * remote-sds.c (interrupt_query): Ditto.
13634 * remote-mips.c (mips_error, mips_kill): Ditto.
13635 * ocd.c (interrupt_query): Ditto.
13636 * monitor.c (monitor_interrupt_query): Ditto.
13637 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13638 * target.h: Update comment.
13640 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13642 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13644 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13645 default_double_format.
13646 * gdbarch.h, gdbarch.c: Re-generate.
13647 * findvar.c (floatformat_unknown): Delete variable definition.
13648 * doublest.h (floatformat_unknown): Delete variable declaration.
13650 2002-02-09 Jim Blandy <jimb@redhat.com>
13652 * stabsread.c (read_type): Add code to parse Sun's syntax for
13653 prototyped function types.
13655 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13657 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13658 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13660 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13662 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13663 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13664 now _initialize_xcoffsolib gets called again and overrides the
13665 commands from solib.c in a native configuration.
13667 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13669 * doublest.c (store_typed_floating): Don't try to return a value.
13672 2002-02-08 Jim Blandy <jimb@redhat.com>
13674 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13675 is prototyped and has no arguments, print its argument list as
13678 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13680 * MAINTAINERS (write-after-approval): Add myself.
13681 (paper-trail): I've escaped!
13683 2002-02-08 Christopher Faylor <cgf@redhat.com>
13685 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13687 (_initialize_check_for_gdb_ini): Ditto.
13689 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13691 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13692 xaprintf -> xasprintf.
13694 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13696 * win32-nat.c: Remove use of printf and sprintf functions.
13698 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13700 * arm-tdep.c (arm_frame_chain_valid): Make static.
13701 (arm_push_arguments): Likewise.
13702 (arm_gdbarch_init): New function.
13703 (_initialize_arm_tdep): Call it.
13704 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13705 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13706 (FRAME_CHAIN_VALID): Delete.
13707 (arm_frame_chain_valid): Delete declaration.
13708 (PUSH_ARGUMENTS): Delete.
13709 (arm_push_arguments): Delete declaration.
13710 (CALL_DUMMY_P): Delete.
13712 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13713 Corinna Vinschen <vinschen@redhat.com>
13715 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13716 on builtin float types.
13718 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13720 * utils.c: Include <curses.h> before "bfd.h".
13721 * tui/tui-hooks.c: Likewise.
13722 * tui/tui.c: Likewise.
13723 * tui/tuiCommand.c: Likewise.
13724 * tui/tuiData.c: Likewise.
13725 * tui/tuiDataWin.c: Likewise.
13726 * tui/tuiDisassem.c: Likewise.
13727 * tui/tuiGeneralWin.c: Likewise.
13728 * tui/tuiIO.c: Likewise.
13729 * tui/tuiLayout.c: Likewise.
13730 * tui/tuiRegs.c: Likewise.
13731 * tui/tuiSource.c: Likewise.
13732 * tui/tuiSourceWin.c: Likewise.
13733 * tui/tuiStack.c: Likewise.
13734 * tui/tuiWin.c: Likewise.
13736 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13738 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13739 to include space for pseudoregs as well. Update loops accordingly.
13740 (sh_fp_frame_init_saved_regs): Ditto.
13741 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13743 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13745 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13746 Add Richard Earnshaw to Arm maintainers.
13748 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13750 * defs.h (warning_begin): Delete declaration.
13752 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13755 2002-02-07 Michael Snyder <msnyder@redhat.com>
13757 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13758 Logic bug, remove misplaced else.
13760 2002-02-07 Klee Dienes <klee@apple.com>
13762 * fork-inferior.c (fork_inferior): Add '!' to the list of
13763 characters that need to be quoted when building a string for the
13764 shell. Quote '!' specifically with a backslash, since CSH chokes
13765 when trying to evaluate "str!str".
13767 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13769 * rdi-share/host.h: Only provide a typedef for bool if it is not
13772 2002-02-04 Michael Snyder <msnyder@redhat.com>
13774 * breakpoint.h (enum bptype): Add new overlay event bp type.
13775 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13777 * breakpoint.c (create_internal_breakpoint): New function.
13778 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13779 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13780 (create_thread_event_breakpoint): Ditto.
13781 (create_solib_event_breakpoint): Ditto.
13782 (create_overlay_event_breakpoint): New function.
13783 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13784 (update_breakpoints_after_exec): Delete and re-initialize
13785 overlay event breakpoints after an exec. Add FIXME comment
13786 about longjmp breakpoint.
13787 (print_it_typical): Ignore overlay event breakpoints.
13788 (print_one_breakpoint): Ditto.
13790 (bpstat_what): Do not stop for overlay event breakpoints.
13791 (delete_breakpoint): Don't delete overlay event breakpoints.
13792 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13793 (breakpoint_re_set): Re-create overlay event breakpoint.
13795 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13796 (overlay_manual_command): Disable overlay breakpoints.
13797 (overlay_off_command): Disable overlay breakpoints.
13799 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13801 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13802 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13803 to here from config/tm-arm.h.
13804 (coff_sym_is_thumb): Make static.
13805 (arm_elf_make_msymbol_special): New function.
13806 (arm_coff_make_msymbol_special): New function.
13807 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13808 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13809 (coff_sym_is_thumb): Delete declaration.
13810 (arm_elf_make_msymbol_special): Declare.
13811 (arm_coff_make_msymbol_special): Declare.
13812 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13813 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13815 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13817 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13819 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13821 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13822 * gdbarch.c gdbarch.h: Regenerate.
13823 * arch-utils.c (default_print_float_info): New function.
13824 * arch-utils.h (default_print_float_info): Prototype it.
13825 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13826 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13827 (PRINT_FLOAT_INFO): Document it.
13829 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13830 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13831 (PRINT_FLOAT_INFO): Define.
13833 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13835 * win32-nat.c (_initialize_check_for_gdb_ini):
13836 Add typecast to sprintf argument to suppress a warning.
13838 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13840 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13841 to allow easier handling of pass state.
13842 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13843 that gives exception name and address.
13844 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13845 and set last_sig value to ourstatus->value.sig. Some missing
13847 (child_continue): Correctly report continue_status.
13848 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13849 TARGET_SIGNAL_0 (new default value).
13850 (child_resume): consider sig argument passed to decide if
13851 the exception should be passed to debuggee or not.
13853 2002-02-05 Michael Snyder <msnyder@redhat.com>
13855 * regcache.c (fetch_register): Call target_fetch_register
13856 only if we don't call FETCH_PSEUDO_REGISTER.
13857 (store_register): Call target_store_register only if we
13858 don't call STORE_PSEUDO_REGISTER.
13860 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13862 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13863 ELF_MAKE_MSYMBOL_SPECIAL.
13864 * gdbarch.c, gdbarch.h: Regenerate.
13865 * arch-utils.c (default_make_msymbol_special): New function.
13866 * arch-utils.h (default_make_msymbol_special): Export.
13867 * elfread.c (elf_symtab_read): Compile use of
13868 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13870 * coffread.c (coff_symtab_read): Ditto, for
13871 COFF_MAKE_MSYMBOL_SPECIAL.
13873 2002-02-05 Jim Blandy <jimb@redhat.com>
13875 * solib-svr4.c (svr4_truncate_ptr): New function.
13876 (svr4_relocate_section_addresses): Do the address arithmetic with
13877 the appropriate truncation for target addresses, even when
13878 CORE_ADDR is larger than a target address.
13880 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13882 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13885 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13887 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13890 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13892 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13894 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13896 * gdbserver/linux-low.c: Remove unused include files.
13898 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13900 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13901 (read_inferior_memory): Use it.
13902 (write_inferior_memory): Likewise.
13904 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13906 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13907 grubbing through sys_errlist.
13909 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13911 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13913 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13914 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13916 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13918 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13919 (do_sfunc, set_cmd_sfunc): New functions.
13921 * command.h (struct cmd_list_element): Add field func.
13922 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13923 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13924 * cli/cli-decode.h: Ditto.
13926 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13927 (help_all, help_cmd_list): Ditto.
13928 (find_cmd, complete_on_cmdlist): Ditto.
13929 * top.c (execute_command): Ditto.
13931 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13934 * infcmd.c (notice_args_read): Fix function signature.
13936 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13937 * cli/cli-decode.c (add_set_cmd): Ditto.
13938 * utils.c (initialize_utils): Ditto.
13939 * maint.c (_initialize_maint_cmds): Ditto.
13940 * infrun.c (_initialize_infrun): Ditto.
13941 * demangle.c (_initialize_demangler): Ditto.
13942 * remote.c (add_packet_config_cmd): Ditto.
13943 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13944 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13945 * proc-api.c (_initialize_proc_api): Ditto.
13946 * kod.c (_initialize_kod): Ditto.
13947 * valprint.c (_initialize_valprint): Ditto.
13948 * top.c (init_main): Ditto.
13949 * infcmd.c (_initialize_infcmd): Ditto.
13950 * corefile.c (_initialize_core): Ditto.
13951 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13952 * arch-utils.c (initialize_current_architecture): Ditto.
13953 (_initialize_gdbarch_utils): Ditto.
13954 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13956 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13957 * wince.c (_initialize_inftarg): Ditto.
13958 * symfile.c (_initialize_symfile): Ditto.
13959 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13960 * language.c (_initialize_language): Ditto.
13961 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13963 2002-02-04 Michael Snyder <msnyder@redhat.com>
13965 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13967 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13969 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13970 Add rules for building the register data files.
13972 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13974 * regformats/regdat.sh: Add braces to the definition of
13975 expedite_regs_${arch}.
13977 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
13979 * regformats/regdef.h (struct reg): Add comment describing the
13980 requirements for offset and size fields.
13982 2002-02-04 Andreas Schwab <schwab@suse.de>
13984 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13985 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13987 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
13989 * gdbarch.sh (copyright): Update years in generated header.
13990 (SMASH_TEXT_ADDRESS): Add rule.
13991 * gdbarch.h, gdbarch.c: Re-generate.
13992 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13993 * dbxread.c: Likewise.
13994 * dwarfread.c: Likewise.
13995 * elfread.c: Likewise.
13996 * somread.c: Likewise.
13998 * arm-tdep.c (arm_smash_text_address): New function.
13999 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14001 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14003 Add support for hardware watchpoints on win32 native.
14004 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14005 CONTEXT_DEBUG_REGISTERS.
14006 (dr variable): New variable. Static array containing a local copy
14007 of debug registers.
14008 (debug_registers_changed): New variable. Reflects when debug registers
14009 are changed and need to be written to inferior.
14010 (debug_registers_used): New variable. Reflects when any debug register
14011 was set, used when new threads are created.
14012 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14014 (thread_rec): Set dr array if id is the thread of current_event .
14015 (child_continue, child_resume): Change the debug registers for all
14016 threads if debug_registers_changed.
14017 (child_add_thread): Change the debug registers if debug_registers_used.
14018 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14019 Link nm.h to new nm-cygwin.h file.
14020 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14021 of hardware registers.
14023 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14025 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14026 Restore behavour broken by 2002-01-20 Andrew Cagney
14027 <ac131313@redhat.com> IEEE_FLOAT removal.
14029 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14031 * c-valprint.c (c_val_print): Pass a proper valaddr to
14032 cp_print_class_method.
14033 * valops.c (search_struct_method): If there is only one method
14034 and args is NULL, return that method.
14036 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14038 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14039 accessing tag_name directly.
14041 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14043 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14044 of accessing tag_name directly.
14046 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14049 * gdbtypes.c (replace_type): New function.
14050 * gdbtypes.h (replace_type): Add prototype.
14051 * stabsread.c (read_type): Use replace_type.
14053 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14055 * Makefile.in (memattr.o): Add missing dependencies rule.
14057 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14059 * breakpoint.c (break_at_finish_command): Really export.
14060 (break_at_finish_at_depth_command): Ditto.
14061 (tbreak_at_finish_command): Ditto.
14062 * hppa-tdep.c: Include completer.h.
14063 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14064 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14066 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14068 * utils.c (do_write): New function.
14069 (error_stream): Rewrite combining the code from error_begin and
14071 (verror): Rewrite using error_stream.
14072 (error_begin): Delete function.
14074 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14076 * utils.c (error_begin): Make static.
14077 * defs.h (error_begin): Delete declaration.
14079 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14080 (decode_line_1): Use cplusplus_error instead of error_begin,
14081 cplusplus_hint and return_to_top_level.
14082 * coffread.c (coff_symfile_read): Use error instead of error_begin
14083 and return_to_top_level.
14084 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14086 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14088 * language.h (type_error, range_error): Make string parameter
14090 * language.c (warning_pre_print): Delete extern declaration.
14091 * dwarfread.c (warning_pre_print): Ditto.
14092 * language.c (type_error, range_error): Rewrite to use verror and
14093 vwarning instead of warning_begin.
14095 2002-02-01 Michael Snyder <msnyder@redhat.com>
14097 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14098 (set_ignore_count): Move misplaced comment back where it belongs.
14100 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14102 * command.h (NO_FUNCTION): Delete macro.
14103 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14104 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14105 * tracepoint.c (_initialize_tracepoint): Ditto.
14106 * cli/cli-decode.c (add_set_cmd): Ditto.
14107 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14109 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14111 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14112 Update ``this'' pointer when calling virtual functions.
14114 2002-02-01 Michael Snyder <msnyder@redhat.com>
14116 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14117 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14119 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14121 * regformats/reg-arm.dat: New file.
14122 * regformats/reg-i386.dat: New file.
14123 * regformats/reg-ia64.dat: New file.
14124 * regformats/reg-m68k.dat: New file.
14125 * regformats/reg-mips.dat: New file.
14126 * regformats/reg-ppc.dat: New file.
14127 * regformats/reg-sh.dat: New file.
14128 * regformats/regdef.h: New file.
14129 * regformats/regdat.sh: New file.
14131 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14133 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14134 (arm_frame_args_address, arm_frame_locals_address): New functions.
14135 (arm_frame_num_args): New function.
14136 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14137 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14138 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14140 2002-01-31 Michael Snyder <msnyder@redhat.com>
14142 * breakpoint.c (break_at_finish_command): Export.
14143 (break_at_finish_at_depth_command): Export.
14144 (tbreak_at_finish_command): Export.
14145 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14146 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14147 "txbreak" commands, which are HPPA specific.
14149 * printcmd.c (disassemble_command): Remove an ancient
14150 artifact of an old merge.
14152 * symfile.h (enum overlay_debugging_state):
14153 Define enum constant values for overlay mode.
14154 * symfile.c (overlay_debugging): Use enums instead of literals.
14155 (overlay_is_mapped, overlay_auto_command,
14156 overlay_manual_command): Ditto.
14158 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14159 breakpoint_here_p, breakpoint_inserted_here_p,
14160 breakpoint_thread_match, bpstat_stop_status,
14161 describe_other_breakpoints, check_duplicates, clear_command):
14162 Coding standard fixes.
14164 * target.c (target_xfer_memory): Add spaces, coding standard.
14165 (do_xfer_memory): Add missing line to trust-readonly
14166 code: check bfd SEC_READONLY flag for section.
14168 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14170 * PROBLEMS: Fix typo, 5.1->5.1.1.
14172 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14174 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14175 data symbols, since we search based on textlow and texthigh.
14176 (find_pc_sect_symtab): Likewise.
14178 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14180 * defs.h (vwarning): Declare.
14181 * utils.c (vwarning): New function.
14182 (warning): Call vwarning.
14183 (warning_begin): Delete function.
14185 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14186 the warning message.
14187 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14190 2002-01-30 Michael Snyder <msnyder@redhat.com>
14192 * NEWS: Mention "set trust-readonly-sections" command.
14193 Mention generate-core-file command.
14195 2002-01-15 Michael Snyder <msnyder@redhat.com>
14197 * target.c: New command, "set trust-readonly-sections on".
14198 (do_xfer_memory): Honor the suggestion to trust readonly sections
14199 by reading them from the object file instead of from the target.
14200 (initialize_targets): Register command "set trust-readonly-sections".
14202 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14204 * parse.c (target_map_name_to_register): Simplify, search regs and
14205 pseudo-regs using a single loop.
14207 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14209 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14211 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14213 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14214 * config/i386/i386v42mp.mh: Add i387-nat.o .
14215 * i386v4-nat.c: Include i387-nat.h.
14216 (supply_fpregset): Use i387_supply_fsave.
14217 (fill_fpregset): Use i387_fill_fsave.
14219 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14221 * arm-tdep.c (arm_call_dummy_words): Define.
14222 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14223 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14224 (CALL_DUMMY_WORDS): Define.
14225 (arm_call_dummy_words): Declare.
14226 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14227 (arm_linux_call_dummy_words): Declare.
14229 2002-01-30 Andreas Schwab <schwab@suse.de>
14231 * m68klinux-nat.c: Fix last change to use regcache_collect
14232 instead of referencing registers[] directly.
14234 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14236 * parse.c (target_map_name_to_register): Delete code wrapped in
14237 #ifdef REGISTER_NAME_ALIAS_HOOK.
14239 2002-01-28 Michael Snyder <msnyder@redhat.com>
14241 * regcache.c (legacy_read_register_gen): Need to be able to
14242 read pseudo-register as well as real register.
14243 (legacy_write_register_gen): Ditto.
14245 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14247 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14248 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14249 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14250 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14251 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14252 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14253 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14254 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14255 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14256 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14257 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14258 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14259 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14260 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14261 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14262 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14263 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14264 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14265 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14266 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14268 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14270 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14271 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14272 (initialize_current_architecture): Update target_byte_order using
14273 information from BFD.
14274 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14275 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14277 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14279 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14280 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14282 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14283 #ifdef INVALID_FLOAT.
14284 * infcmd.c (do_registers_info): Ditto.
14285 * values.c (unpack_double): Ditto. Add comment.
14287 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14288 already commented out.
14290 2002-01-26 Andreas Schwab <schwab@suse.de>
14292 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14293 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14294 registers and add support for PTRACE_GETREGS.
14296 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14298 GDB 5.1.1 released from 5.1 branch.
14299 * NEWS: Add 5.1.1 news.
14300 * README: Sync with 5.1 branch.
14302 2002-01-23 Fred Fish <fnf@redhat.com>
14304 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14305 stabstring on initial malloc. Reallocing will copy it for us,
14308 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14310 * Makefile.in (hpread_h): Delete.
14311 (HFILES_NO_SRCDIR): Remove hpread.h.
14312 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14313 (hpread.o): Update dependencies.
14314 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14316 * hp-psymtab-read.c: Remove file.
14317 * hp-symtab-read.c: Remove file.
14318 * hpread.h: Remove file.
14320 * hpread.c: Merge all contents of hp-psymtab-read.c,
14321 hp-symtab-read.c and hpread.h into this file, as it was prior to
14324 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14325 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14326 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14327 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14329 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14331 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14332 fill_gregset): Call gdbarch_tdep() just once, assign result to
14333 variable and use that, instead of calling the function several
14336 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14338 * configure.host: Accept sparcv9 as alias for sparc64.
14339 * configure.tgt: Likewise.
14341 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14343 * solib-aix5.c (build_so_list_from_mapfile)
14344 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14345 arguments is not reversed.
14346 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14347 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14349 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14351 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14352 modified version of obsolete sh_fetch_pseudo_register.
14353 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14354 (sh4_register_read): New function.
14355 (sh_pseudo_register_write): New function. Renamed and modified
14356 version of obsolete sh_store_pseudo_register.
14357 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14358 (sh4_register_write): New function.
14359 (sh_gdbarch_init): Remove setting of gdbarch function
14360 fetch_pseudo_register and store_pseudo_register. Remove setting of
14361 register_convert_to_raw, register_convert_to_virtual,
14362 register_convertible.
14363 (sh_sh4_register_convertible): Delete. No longer needed. All is
14364 taken care by architecture specific functions
14365 register_read/register_write.
14366 (sh_sh4_register_convert_to_virtual): Make static.
14367 (sh_sh4_register_convert_to_raw): Ditto.
14369 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14371 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14372 (floatformat_is_nan, floatformat_mantissa): Ditto.
14374 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14375 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14376 builtin_type_ieee_double_little,
14377 builtin_type_ieee_double_littlebyte_bigword,
14378 builtin_type_m68881_ext, builtin_type_i960_ext,
14379 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14380 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14381 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14382 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14384 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14386 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14387 parameter. Set frameless flag if it exists and depended of
14388 whether the scanned function is frameless or not.
14389 (xstormy16_skip_prologue): If function is frameless, return
14390 result of xstormy16_scan_prologue().
14391 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14394 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14396 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14397 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14398 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14399 sh_sh4_register_byte, sh_sh4_register_raw_size,
14400 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14401 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14402 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14403 sh_store_pseudo_register, sh_do_pseudo_register): Call
14404 gdbarch_tdep() just once, assign result to variable and use that,
14405 instead of calling the function several times.
14407 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14409 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14410 macros instead of LAST_FPU_CTRL_REGNUM.
14411 (store_register): Likewise.
14413 2002-01-21 Jim Blandy <jimb@redhat.com>
14415 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14416 is up-to-date before running the program, not just when a program
14419 2002-01-21 Fred Fish <fnf@redhat.com>
14421 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14422 when we have found all instructions we are looking for.
14424 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14426 * arm-tdep.c (arm_register_name): New function.
14427 (arm_registers_names): Make static.
14428 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14429 (arm_register_name): Declare.
14430 (REGISTER_NAME): Use it.
14432 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14433 Kevin Buettner <kevinb@redhat.com>
14435 Convert arm targets to new FRAME interface.
14436 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14437 (arm_frame_find_save_regs): Delete.
14438 (arm_frame_init_saved_regs): New.
14439 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14440 Allocate extra_info as required. Convert all uses of fsr.regs
14441 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14443 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14444 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14445 (check_prologue_cache, save_prologue_cache): Likewise.
14446 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14447 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14448 (FRAME_FIND_SAVED_REGS): Delete.
14449 (arm_frame_find_saved_regs): Delete prototype.
14450 (arm_frame_init_saved_regs): New prototype.
14451 (FRAME_INIT_SAVED_REGS): Define.
14453 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14455 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14457 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14459 From Jeff Law <law@redhat.com>:
14460 * infttrace.c: Include <sys/pstat.h>.
14461 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14462 exec file if the ttrace equivalent fails.
14464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14466 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14467 (closeLogFile): Ditto.
14469 2002-01-20 Michael Chastain <mec@shout.net>
14471 * top.c (print_gdb_version): Bump copyright year to 2002.
14473 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14475 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14476 Zannoni and Eli Zaretskii.
14478 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14480 * buildsym.c: Update copyright years.
14481 * c-typeprint.c: Likewise.
14482 * dwarf2read.c: Likewise.
14483 * f-typeprint.c: Likewise.
14484 * gdbtypes.c: Likewise.
14485 * gdbtypes.h: Likewise.
14486 * hp-symtab-read.c: Likewise.
14487 * hpread.c: Likewise.
14488 * mdebugread.c: Likewise.
14489 * p-typeprint.c: Likewise.
14491 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14493 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14494 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14495 byte-order selectable.
14496 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14497 * arch-utils.c: Ditto.
14498 (set_endian): Ditto.
14499 (set_endian_from_file): Ditto.
14500 * gdbserver/low-sim.c (create_inferior): Ditto.
14501 * gdbarch.sh: Ditto.
14502 * gdbarch.h: Re-generate.
14503 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14504 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14505 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14506 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14507 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14508 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14509 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14510 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14512 * config/mips/tm-wince.h: Remove #undef of macro
14513 TARGET_BYTE_ORDER_SELECTABLE.
14514 * config/sh/tm-wince.h: Ditto.
14516 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14518 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14519 member function fields. Add accessor macro
14520 TYPE_FN_FIELD_ARTIFICIAL.
14521 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14522 * c-typeprint.c (c_type_print_base): Skip artificial member
14525 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14527 * f-typeprint.c: Delete unused function f_type_print_args.
14528 * p-typeprint.c: Delete unused function pascal_type_print_args.
14530 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14532 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14533 comment. Add ``artificial'' to ``union field_location''.
14535 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14537 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14538 * mdebugread.c (parse_symbol): Likewise.
14539 * stabsread.c (define_symbol): Likewise.
14540 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14541 initializing TYPE_FIELD_BITPOS to n (obsolete).
14542 (hpread_doc_function_type): Likewise.
14543 * hpread.c (hpread_function_type): Likewise.
14545 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14547 * configure.in (host_makefile_frag): Only require a host makefile
14548 fragment when a native build.
14549 * configure: Re-generate.
14551 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14553 * doublest.h (floatformat_from_type): Declare.
14554 * doublest.c (floatformat_from_type): New function.
14555 (convert_typed_floating): Use.
14557 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14558 call to function floatformat_from_type.
14560 * gdbarch.sh (IEEE_FLOAT): Delete.
14561 * gdbarch.h, gdbarch.c: Re-generate.
14562 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14563 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14564 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14565 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14566 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14567 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14568 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14569 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14570 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14571 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14572 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14573 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14575 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14576 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14578 * sh-tdep.c (sh_gdbarch_init): Ditto.
14579 * mips-tdep.c (mips_gdbarch_init): Ditto.
14580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14581 * cris-tdep.c (cris_gdbarch_init): Ditto.
14583 2002-01-20 Jiri Smid <smid@suse.cz>
14585 * configure.host, configure.tgt: Support x86-64.
14586 * NEWS: Note new target x86-64.
14588 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14589 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14590 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14591 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14592 x86-64-linux-nat.o): Fix dependencies.
14594 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14596 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14597 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14598 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14599 * config/sparc/xm-sun4os4.h: Delete file.
14600 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14602 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14604 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14605 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14606 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14607 * config/i386/i386lynx.mh (XM_FILE): Delete.
14608 * config/rs6000/xm-rs6000ly.h: Delete file.
14609 * config/sparc/xm-sparclynx.h: Delete file.
14610 * config/m68k/xm-m68klynx.h: Delete file.
14611 * config/i386/xm-i386lynx.h: Delete file.
14612 * config/xm-lynx.h: Delete file.
14613 * config/djgpp/fnchange.lst: Update.
14615 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14617 * alpha-tdep.c (alpha_register_byte): New function.
14618 (alpha_register_raw_size): Ditto.
14619 (alpha_register_virtual_size): Ditto.
14620 (alpha_skip_prologue_internal): Renamed from
14621 alpha_skip_prologue.
14622 (alpha_skip_prologue): New version that calls
14623 alpha_skip_prologue_internal.
14624 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14625 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14626 second argument from alpha_skip_prologue.
14627 (REGISTER_BYTE): Use alpha_register_byte.
14628 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14629 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14630 (FRAMELESS_FUNCTION_INVOCATION): Use
14631 generic_frameless_function_invocation_not.
14632 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14633 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14635 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14637 * config/mips/xm-news-mips.h: Delete file.
14638 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14640 * config/m88k/xm-m88k.h: Delete file.
14641 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14642 * config/m88k/xm-delta88v4.h: Ditto.
14643 * config/m88k/xm-delta88.h: Ditto.
14645 * config/alpha/xm-fbsd.h: Delete file.
14646 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14648 * config/sparc/xm-sparc.h: Delete file.
14649 * Makefile.in (xm-sun4os4.h): Delete dependency.
14650 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14651 * config/sparc/xm-sun4os4.h: Ditto.
14652 * config/sparc/xm-linux.h: Ditto.
14654 * config/i386/xm-windows.h: Delete file.
14656 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14658 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14659 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14661 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14663 * alpha-tdep.c (alpha_call_dummy_words): New.
14664 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14665 (CALL_DUMMY_P): Define.
14666 (CALL_DUMMY_WORDS): Define.
14667 (SIZEOF_CALL_DUMMY_WORDS): Define.
14669 2002-01-19 Per Bothner <per@bothner.com>
14671 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14672 isn't NULL, which can happen with some gcj-3.x-produced code.
14674 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14676 * alpha-tdep.c (alpha_register_virtual_type): New function.
14677 (alpha_init_frame_pc_first): Ditto.
14678 (alpha_fix_call_dummy): Ditto.
14679 (alpha_store_struct_return): Ditto.
14680 (alpha_extract_struct_value_address): Ditto.
14681 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14682 alpha_register_virtual_type.
14683 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14684 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14685 alpha_extract_struct_value_address.
14686 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14687 (INIT_FRAME_PC): Use init_frame_pc_noop.
14688 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14690 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14692 * i386gnu-nat.c: Include "i386-tdep.h".
14693 (fetch_fpregs): Simplify code dealing with uninitialized floating
14694 point states such that it doesn't require FP7_REGNUM.
14696 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14698 * alpha-tdep.c (frame_extra_info): New.
14699 (alpha_find_saved_regs): Make static. Use
14701 (alpha_frame_init_saved_regs): New function.
14702 (alpha_frame_saved_pc): Use frame->extra_info.
14703 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14704 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14705 (init_extra_frame_info): Rename to...
14706 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14707 (alpha_print_extra_frame_info): New function.
14708 (alpha_frame_locals_address): Ditto.
14709 (alpha_frame_args_address): Ditto.
14710 (alpha_pop_frame): Use frame->extra_info.
14711 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14712 alpha_frame_args_address.
14713 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14714 (alpha_find_saved_regs): Remove prototype.
14715 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14716 (EXTRA_FRAME_INFO): Remove.
14717 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14718 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14720 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14722 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14723 (alpha_cannot_fetch_register): Ditto.
14724 (alpha_cannot_store_register): Ditto.
14725 (alpha_register_convertible): Ditto.
14726 (alpha_use_struct_convention): Ditto.
14727 * config/alpha/tm-alpha.h: Update copyright years.
14728 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14729 (INNER_THAN): Use core_addr_lessthan.
14730 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14731 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14732 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14733 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14734 (FRAME_CHAIN): Remove unnecessary cast.
14736 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14738 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14741 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14743 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14744 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14745 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14746 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14747 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14748 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14749 * x86-64-linux-nat.c: Ditto.
14751 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14753 * alpha-tdep.c (alpha_register_name): New function.
14754 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14755 (REGISTER_NAME): Define.
14757 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14759 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14761 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14763 * alpha-tdep.c: Update copyright years.
14764 (alpha_next_pc): New function.
14765 (alpha_software_single_step): Ditto.
14766 * config/alpha/tm-alpha.h: Add prototype for
14767 alpha_software_single_step.
14769 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14771 * alphabsd-nat.c: Update copyright years.
14772 (fill_gregset): Use regcache_collect.
14773 (fill_fpregset): Likewise.
14774 (fetch_inferior_registers): Only fetch integer registers
14775 if requested to do so.
14776 (store_inferior_registers): Only store integer registers
14777 if requested to do so.
14779 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14781 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14782 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14783 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14784 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14785 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14786 * config/arm/linux.mh (XDEPFILES): Delete.
14787 * config/arm/nbsd.mh (XDEPFILES): Delete.
14788 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14789 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14790 * config/i386/i386m3.mh (XDEPFILES): Delete.
14791 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14792 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14793 * config/i386/fbsd.mh (XDEPFILES): Delete.
14794 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14795 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14796 * config/i386/i386v4.mh (XDEPFILES): Delete.
14797 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14798 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14799 * config/i386/i386aix.mh (XDEPFILES): Delete.
14800 * config/i386/go32.mh (XDEPFILES): Delete.
14801 * config/i386/cygwin.mh (XDEPFILES): Delete.
14802 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14803 * config/i386/i386mach.mh (XDEPFILES): Delete.
14804 * config/i386/i386v32.mh (XDEPFILES): Delete.
14805 * config/i386/linux.mh (XDEPFILES): Delete.
14806 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14807 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14808 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14809 * config/i386/i386sco.mh (XDEPFILES): Delete.
14810 * config/i386/i386v.mh (XDEPFILES): Delete.
14811 * config/i386/nbsd.mh (XDEPFILES): Delete.
14812 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14813 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14814 * config/i386/symmetry.mh (XDEPFILES): Delete.
14815 * config/i386/obsd.mh (XDEPFILES): Delete.
14816 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14817 * config/ia64/linux.mh (XDEPFILES): Delete.
14818 * config/ia64/aix.mh (XDEPFILES): Delete.
14819 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14820 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14821 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14822 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14823 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14824 * config/m68k/linux.mh (XDEPFILES): Delete.
14825 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14826 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14827 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14828 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14829 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14830 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14831 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14832 * config/m88k/delta88.mh (XDEPFILES): Delete.
14833 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14834 * config/m88k/m88k.mh (XDEPFILES): Delete.
14835 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14836 * config/mips/linux.mh (XDEPFILES): Delete.
14837 * config/mips/irix6.mh (XDEPFILES): Delete.
14838 * config/mips/irix5.mh (XDEPFILES): Delete.
14839 * config/mips/irix4.mh (XDEPFILES): Delete.
14840 * config/mips/irix3.mh (XDEPFILES): Delete.
14841 * config/mips/decstation.mh (XDEPFILES): Delete.
14842 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14843 (NATDEPFILES): Move core-aout.o to here.
14844 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14845 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14846 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14847 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14848 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14849 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14850 * config/pa/hpux11.mh (XDEPFILES): Delete.
14851 * config/powerpc/aix.mh (XDEPFILES): Delete.
14852 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14853 * config/powerpc/linux.mh (XDEPFILES): Delete.
14854 * config/romp/rtbsd.mh: Rename XDEPFILES.
14855 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14856 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14857 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14858 * config/s390/s390.mh (XDEPFILES): Delete.
14859 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14860 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14861 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14862 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14863 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14864 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14865 * config/sparc/linux.mh (XDEPFILES): Delete.
14866 * config/vax/vaxult.mh (XDEPFILES): Delete.
14867 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14868 * Makefile.in (DEPFILES): Remove XDEPFILES.
14870 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14872 * utils.c (internal_verror): Fix comments, default is yes not no.
14873 Update queries to match. Default to quit and dump core.
14875 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14877 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14879 * defs.h, event-top.c, gdbcmd.h: Ditto.
14880 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14881 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14882 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14883 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14884 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14885 * mi/mi-main.c:Ditto.
14887 * stack.c, symfile.c: Update copyright.
14889 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14891 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14892 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14893 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14894 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14896 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14898 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14899 * gdbserver/low-lynx.c (myattach): Likewise.
14900 * gdbserver/low-nbsd.c (myattach): Likewise.
14901 * gdbserver/low-sim.c (myattach): Likewise.
14902 * gdbserver/low-sparc.c (myattach): Likewise.
14903 * gdbserver/low-sun3.c (myattach): Likewise.
14905 * gdbserver/low-linux.c (myattach): New function.
14907 * gdbserver/server.c (attach_inferior): New function.
14908 (main): Handle "--attach".
14910 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14912 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14915 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14917 * c-typeprint.c (is_type_conversion_operator): Add additional
14918 check for non-conversion operators.
14920 2002-01-15 Michael Snyder <msnyder@redhat.com>
14922 * linux-proc.c: Add "info proc" command, a la procfs.c.
14923 (read_mapping): New function, abstract and re-use code.
14924 (linux_find_memory_regions): Use new func read_mapping.
14925 (linux_info_proc_cmd): New function, implement "info proc".
14926 (_initialize_linux_proc): Add new command "info proc".
14928 2002-01-15 Michael Snyder <msnyder@redhat.com>
14930 * symfile.c (generic_load): Use bfd_map_over_sections method
14931 instead of manipulating bfd structure members directly.
14932 (add_section_size_callback): New function, bfd sections callback
14933 used by generic_load.
14934 (load_sections_callback): New function, bfd sections callback
14935 used by generic_load.
14937 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
14939 [Based on work by Jim Blandy]
14940 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14941 (builtin_type_vec128): Export.
14942 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14944 (builtin_type_vec128): New builtin type for 128 bit vector
14946 (build_gdbtypes): Initialize builtin_type_v16qi and
14947 builtin_type_v8hi. Create the vec128 register builtin type
14949 (build_builtin_type_vec128): New function.
14950 (_initialize_gdbtypes): Register builtin_type_v16qi and
14951 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14952 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14953 AltiVec register to new builtin type.
14955 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
14957 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14960 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14962 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14963 CLEAN_UP_REGISTER_VALUE.
14964 * regcache.c (supply_register): Update only call.
14966 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14968 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14969 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14970 a29k-*-vxworks* targets as obsolete.
14972 2002-01-14 Michael Snyder <msnyder@redhat.com>
14974 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14975 until we can resolve portability issues.
14976 * gregset.h: Remove references to fpxregs.
14977 * gcore.c (gcore_command): Initialize note_sec to NULL.
14979 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14981 * signals.c (target_signal_to_name): Rewrite. Only use
14982 signals[].name when in bounds and non-NULL.
14984 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14986 From Petr Ledvina <ledvinap@kae.zcu.cz>:
14987 * signals.c (target_signal_to_name): Verify that SIG is within the
14988 bounds of the signals array.
14990 2002-01-13 Andrew Cagney <ac131313@redhat.com>
14992 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14994 2002-01-13 Keith Seitz <keiths@redhat.com>
14996 * stack.c (print_frame_info_base): Print the frame's pc
14997 only if when print_frame_info_listing_hook is not defined.
14999 2002-01-13 Keith Seitz <keiths@redhat.com>
15001 * varobj.c (varobj_set_value): Make sure that there were no
15002 errors evaluating the object before attempting to set its
15004 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15005 so this offset adjustment is no longer necessary.
15006 (create_child): Don't set the error flag if the child is
15007 a CPLUS_FAKE_CHILD.
15008 (value_of_child): If value_fetch_lazy fails, return NULL
15009 so that callers will be notified that an error occurred.
15010 (c_value_of_variable): Delay check of variable's validity
15011 until later. We actually want all structs and unions to have
15013 Do not return "???" for variables which could not be evaluated.
15014 This error condition must be returned to the caller so that it
15015 can get the error condition from gdb.
15016 (cplus_name_of_child): Adjust index for vptr before figuring
15017 out the name of the child.
15018 (cplus_value_of_child): If a child's (real) parent is not valid,
15019 don't even bother trying to give a value for it. Just return
15020 an error. Change all instances in this function.
15021 (cplus_type_of_child): If our parent is one of the "fake"
15022 parents, we need to get at the type of the real parent, and
15023 derive the child's true type using this information.
15025 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15027 From 2002-01-09 John Marshall <johnm@falch.net>:
15028 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15029 sources.redhat.com, and tweak some related URLs which had
15030 suffered from linkrot.
15032 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15035 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15036 structures passed in registers.
15038 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15040 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15041 white space which prevented compilation. Reported by DSK
15042 <dsk@student.unsw.edu.au>.
15044 2002-01-11 Michael Snyder <msnyder@redhat.com>
15046 * symfile.c (build_section_addr_info_from_section_tab):
15047 Use bfd access method instead of manipulating bfd directly.
15048 (syms_from_objfile): Ditto.
15049 (simple_overlay_update_1): Ditto.
15050 (simple_overlay_update): Ditto.
15051 (generic_load): Ditto.
15052 (overlay_unmapped_address): FIXME comment, bfd access methods.
15053 (sections_overlap): FIXME comment, bfd access methods.
15054 (pc_in_mapped_range): FIXME comment, bfd access methods.
15055 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15056 (section_is_mapped): FIXME comment, bfd access methods.
15057 (section_is_overlay): FIXME comment, bfd access methods.
15059 * symfile.c (generic_load): Whitespace and long line cleanups.
15060 Remove duplicate variable, change several local variables to
15061 more appropriate data types.
15062 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15064 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15066 From Peter Schauer:
15067 * language.c (longest_local_hex_string_custom): Use phex_nz to
15068 convert NUM to a hex string.
15070 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15072 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15074 Update Copyright year.
15076 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15078 * language.c (longest_raw_hex_string): Delete unused function.
15080 2002-01-11 Petr Sorfa <petrs@caldera.com>
15082 * MAINTAINERS (write-after-approval): Add myself.
15083 * dwarf2read.c (read_tag_string_type): Handling of
15085 (read_tag_string_type): FORTRAN fix to prevent propagation of
15087 (set_cu_language): Handling of DW_LANG_Fortran95
15089 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15091 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15092 GETPID(inferior_ptid).
15093 (store_inferior_registers): Likewise.
15095 2002-01-10 Jason Merrill <jason@redhat.com>
15097 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15100 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15102 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15103 and bfd/elf32-sh-nbsd.c.
15105 2002-01-10 Michael Snyder <msnyder@redhat.com>
15107 * NEWS: Mention --pid and corefile/proc-id behavior change.
15109 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15110 * gcore.c: Include cli/cli-decode.h instead of command.h.
15112 * main.c (captured_main): Add new command line option "--pid".
15113 If the second command line argument (following the symbol-file)
15114 begins with a digit, try to attach to it before trying to open
15116 (print_gdb_help): Document the "--pid" argument.
15118 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15120 * completer.c (command_completer): New function.
15122 * completer.h <command_completer>: Add prototype.
15124 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15125 completer for the "help" command.
15127 2002-01-09 Jason Merrill <jason@redhat.com>
15129 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15131 2002-01-09 Michael Snyder <msnyder@redhat.com>
15133 * i386-linux-nat.c (fill_fpxregset): Make global.
15134 (store_fpxregset): Ditto.
15136 * gregset.h (gdb_fpxregset_t): Define.
15137 (supply_fpxregset): Prototype.
15138 (fill_fpxregset): Prototype.
15140 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15142 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15144 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15145 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15146 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15148 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15150 * MAINTAINERS: Update target maintainer rules so that any
15151 Maintainer can approve a tested patch for a maintenance-only
15154 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15156 * MAINTAINERS (write-after-approval): Add myself.
15158 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15161 2002-01-08 Michael Snyder <msnyder@redhat.com>
15163 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15164 real name of the executable, rather than the /proc name.
15166 2002-01-03 Michael Snyder <msnyder@redhat.com>
15168 Implement a "generate-core-file" command in gdb, save target state.
15169 * gcore.c: New file. Implement new command 'generate-core-file'.
15170 Save a corefile image of the current state of the inferior.
15171 * linux-proc.c: Add linux-specific code for saving corefiles.
15172 * target.h (struct target_ops): Add new target vectors for saving
15173 corefiles; to_find_memory_regions and to_make_corefile_notes.
15174 (target_find_memory_regions): New macro.
15175 (target_make_corefile_notes): New macro.
15176 * target.c (update_current_target): Inherit new target methods.
15177 (dummy_find_memory_regions): New place-holder method.
15178 (dummy_make_corefile_notes): New place-holder method.
15179 (init_dummy_target): Initialize new dummy target vectors.
15180 * exec.c (exec_set_find_memory_regions): New function.
15181 Allow the exec_ops vector for memory regions to be taken over.
15182 (exec_make_note_section): New function, target vector method.
15183 * defs.h (exec_set_find_memory_regions): Export prototype.
15184 * procfs.c (proc_find_memory_regions): New function, corefile method.
15185 (procfs_make_note_section): New function, corefile method.
15186 (init_procfs_ops): Set new target vector pointers.
15187 (find_memory_regions_callback): New function.
15188 (procfs_do_thread_registers): New function.
15189 (procfs_corefile_thread_callback): New function.
15190 * sol-thread.c (sol_find_memory_regions): New function.
15191 (sol_make_note_section): New function.
15192 (init_sol_thread_ops): Initialize new target vectors.
15193 * inftarg.c (inftarg_set_find_memory_regions): New function.
15194 Allow to_find_memory_regions vector to be taken over.
15195 (inftarg_set_make_corefile_notes): New function.
15196 Allow to_make_corefile_notes vector to be taken over.
15197 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15198 interface layer if not target_has_execution (may be a corefile).
15199 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15200 * config/sparc/sun4sol2.mh: Ditto.
15201 * config/alpha/alpha-linux.mh: Ditto.
15202 * config/arm/linux.mh: Ditto.
15203 * config/i386/x86-64linux.mh: Ditto.
15204 * config/ia64/linux.mh: Ditto.
15205 * config/m68k/linux.mh: Ditto.
15206 * config/mips/linux.mh: Ditto.
15207 * config/powerpc/linux.mh: Ditto.
15208 * config/sparc/linux.mh: Ditto.
15210 2002-01-07 Michael Snyder <msnyder@redhat.com>
15212 * arm-linux-nat.c: Remove references to regcache.c internal data
15213 (registers[] and register_valid[]).
15215 2002-01-07 Michael Snyder <msnyder@redhat.com>
15217 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15218 so that attaching to a pid will automatically read the process's
15219 symbol file and shlibs.
15220 * Makefile.in: Add rule for linux-proc.o.
15221 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15222 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15223 * config/arm/linux.mh: Ditto.
15224 * config/i386/linux.mh: Ditto.
15225 * config/i386/x86-64linux.mh: Ditto.
15226 * config/ia64/linux.mh: Ditto.
15227 * config/m68k/linux.mh: Ditto.
15228 * config/mips/linux.mh: Ditto.
15229 * config/powerpc/linux.mh: Ditto.
15230 * config/sparc/linux.mh: Ditto.
15232 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15234 * win32-nat.c: Add i386-tdep.h dependency.
15236 2002-01-07 Michael Snyder <msnyder@redhat.com>
15238 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15239 instead of bfd_get_arch_size. Don't bail out just because
15240 there's no exec_bfd.
15242 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15243 * p-valprint.c (pascal_object_print_value): Ditto.
15244 * somread.c (som_symtab_read): Ditto.
15245 * symfile.c (simple_free_overlay_region_table): Ditto.
15246 * valops.c (value_assign): Ditto.
15248 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15249 use tilde_expand and strerror for opening save-tracepoints file.
15251 * thread-db.c (thread_db_new_objfile): Indendation fix.
15253 * infptrace.c (GDB_MAX_ALLOCA): New define.
15254 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15255 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15256 can be overridden with whatever value is appropriate to the host).
15257 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15258 alloca to allocate potentially large buffer.
15259 * rs6000-nat.c (child_xfer_memory): Ditto.
15260 * symm-nat.c (child_xfer_memory): Ditto.
15261 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15263 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15265 From Nick Clifton <nickc@redhat.com>
15266 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15268 2002-01-07 Michael Snyder <msnyder@redhat.com>
15270 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15271 Don't use exec_bfd if it's NULL.
15273 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15275 * valops.c (value_arg_coerce): Fix formatting.
15277 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15279 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15280 * gnu-nat.c: Ditto.
15282 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15284 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15285 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15286 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15287 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15288 z8k-coff have not been multi-arched. Update z8k-coff build
15291 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15293 * MAINTAINERS: Mark a29k target as obsolete.
15294 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15295 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15297 * NEWS: Note that a29k targets are obsolete.
15298 * a29k-tdep.c: Mark as obsolete.
15299 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15300 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15301 a29k-*-vxworks* targets as obsolete.
15302 * remote-adapt.c: Obsolete.
15303 * remote-eb.c: Obsolete.
15304 * remote-mm.c: Obsolete.
15305 * remote-udi.c: Obsolete.
15306 * config/a29k/a29k-udi.mt: Obsolete.
15307 * config/a29k/a29k.mt: Obsolete.
15308 * config/a29k/tm-a29k.h: Obsolete.
15309 * config/a29k/tm-vx29k.h: Obsolete.
15310 * config/a29k/vx29k.mt: Obsolete.
15312 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15314 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15315 with BFD_ENDIAN_BIG.
15317 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15319 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15320 * configure, config.in: Re-generate.
15321 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15322 * defs.h: Do not include <endian.h>.
15324 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15326 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15327 * config.in: Regenerate.
15328 * configure.in: Update copyright years.
15329 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15330 * configure: Regenerate.
15331 * i386bsd-nat.c: Update copyright years.
15332 (fill_gregset): Use regcache_collect.
15333 (fetch_inferior_registers): Only fetch integer registers
15334 if requested to do so. Add support for XMM registers
15335 using PT_GETXMMREGS.
15336 (store_inferior_registers): Only store integer registers
15337 if requested to do so. Add support for XMM registers
15338 using PT_SETXMMREGS.
15339 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15340 (store_inferior_registers): Remove.
15341 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15342 (fetch_elfcore_registers): New function.
15343 (i386nbsd_elfcore_fns): New.
15344 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15345 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15347 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15348 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15349 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15350 * config/i386/tm-nbsd.h: Update copyright years.
15351 (HAVE_SSE_REGS): Define.
15352 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15353 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15354 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15355 (SIGCONTEXT_PC_OFFSET): Remove.
15356 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15358 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15360 * configure.tgt: Remove powerpc-*-macos* target.
15361 * config/m68k/xm-mpw.h: Delete file.
15362 * config/xm-mpw.h: Delete file.
15363 * ser-mac.c: Delete file.
15364 * mpw-make.sed: Delete file.
15365 * mpw-config.in: Delete file.
15366 * mac-xdep.c: Delete file.
15367 * mac-gdb.r: Delete file.
15368 * mac-defs.h: Delete file.
15369 * mac-nat.c: Delete file.
15370 * config/powerpc/macos.mh: Delete file.
15371 * config/powerpc/macos.mt: Delete file.
15372 * config/powerpc/nm-macos.h: Delete file.
15373 * config/powerpc/tm-macos.h: Delete file.
15374 * source.c (openp, open_source_file): Remove obsolete code.
15375 * top.c (gdb_readline): Ditto.
15376 * utils.c (query): Ditto.
15377 * event-top.c (display_gdb_prompt): Ditto.
15378 * Makefile.in (ser-mac.o): Delete obsolete target.
15381 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15383 * defs.h (BIG_ENDIAN): Delete macro definition.
15384 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15385 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15386 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15387 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15388 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15389 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15390 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15391 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15392 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15393 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15394 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15395 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15396 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15397 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15398 * gdbarch.c: Re-generate.
15400 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15402 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15405 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15407 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15409 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15411 * value.h (value_ptr): Delete typedef.
15413 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15415 * i386nbsd-nat.c: Update copyright years.
15416 Include i386-tdep.h.
15418 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15420 * stabsread.c: Update copyright years.
15422 From Debashis Mahata <debashis.mahata@wipro.com>:
15423 (read_struct_fields): Deal with Sun C compiler erroneous stab
15424 output for structs and unions.
15427 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15429 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15432 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15434 * cp-abi.c: Fix whitespace.
15435 (baseclass_offset): New wrapper function.
15436 * cp-abi.h (baseclass_offset): Add prototype.
15437 (struct cp_abi_ops): Add baseclass_offset pointer.
15439 * valops.c (vb_match): Move to...
15440 * gnu-v2-abi.c (vb_match): here.
15441 * valops.c (baseclass_offset): Move to...
15442 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15444 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15446 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15447 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15448 * hpacc-abi.c (init_hpacc_ops): Likewise.
15450 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15452 * valops.c (find_overload_match): Accept obj as a
15453 reference parameter. Update it before returning.
15454 * value.h (find_overload_match): Update prototype.
15455 * eval.c (evaluate_subexp_standard): Pass object to
15456 find_overload_match by reference.
15458 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15460 * valarith.c: Replace value_ptr with struct value pointer. Remove
15461 register attribute from value declarations.
15464 * scm-lang.c (scm_lookup_name): Ditto.
15466 2002-01-03 Michael Snyder <msnyder@redhat.com>
15468 Abstract the functionality of iterating over mapped memory
15469 regions into a general purpose iterator function.
15470 * procfs.c (iterate_over_mappings): New function, general purpose
15471 iterator for memory sections.
15472 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15473 (solib_mappings_callback): New function, callback for above.
15474 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15475 (info_mappings_callback): New function, callback for above.
15477 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15479 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15481 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15482 * i386-tdep.c: Include "elf-bfd.h".
15483 (process_note_abi_tag_sections): New function.
15484 (i386_gdbarch_init): Add code to recognize various OS/ABI
15487 * maint.c (_initialize_maint_cmds): Add missing \ in
15490 For older changes see ChangeLog-2001
15496 version-control: never